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
a1ac8190
JM
876 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
877 Binutils"
c428fa83 878 --with-bugurl=URL Direct users to URL to report a bug
5464f5a1
NN
879
880Some influential environment variables:
881 CC C compiler command
882 CFLAGS C compiler flags
883 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
884 nonstandard directory <lib dir>
885 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
886 headers in a nonstandard directory <include dir>
887 CPP C preprocessor
888
889Use these variables to override the choices made by `configure' or to help
890it to find libraries and programs with nonstandard names/locations.
891
892_ACEOF
893fi
894
895if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
901
902if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906else
907 ac_dir_suffix= ac_top_builddir=
908fi
909
910case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
924esac
925
5464f5a1
NN
926# Do not use `cd foo && pwd` to compute absolute paths, because
927# the directories may not exist.
928case `pwd` in
929.) ac_abs_builddir="$ac_dir";;
930*)
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936esac
937case $ac_abs_builddir in
938.) ac_abs_top_builddir=${ac_top_builddir}.;;
939*)
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945esac
946case $ac_abs_builddir in
947.) ac_abs_srcdir=$ac_srcdir;;
948*)
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_top_srcdir=$ac_top_srcdir;;
957*)
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963esac
6be7c12c 964
5464f5a1
NN
965 cd $ac_dir
966 # Check for guested configure; otherwise get Cygnus style configure.
967 if test -f $ac_srcdir/configure.gnu; then
968 echo
969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
971 echo
972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
974 test -f $ac_srcdir/configure.in; then
975 echo
976 $ac_configure --help
977 else
978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 fi
49c96104 980 cd $ac_popdir
5464f5a1 981 done
6be7c12c
AO
982fi
983
5464f5a1
NN
984test -n "$ac_init_help" && exit 0
985if $ac_init_version; then
986 cat <<\_ACEOF
6be7c12c 987
5464f5a1
NN
988Copyright (C) 2003 Free Software Foundation, Inc.
989This configure script is free software; the Free Software Foundation
990gives unlimited permission to copy, distribute and modify it.
991_ACEOF
992 exit 0
993fi
994exec 5>config.log
995cat >&5 <<_ACEOF
996This file contains any messages produced by compilers while
997running configure, to aid debugging if configure makes a mistake.
6be7c12c 998
5464f5a1
NN
999It was created by $as_me, which was
1000generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 1001
5464f5a1 1002 $ $0 $@
6be7c12c 1003
5464f5a1
NN
1004_ACEOF
1005{
1006cat <<_ASUNAME
1007## --------- ##
1008## Platform. ##
1009## --------- ##
1010
1011hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019
1020/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027
1028_ASUNAME
1029
1030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031for as_dir in $PATH
1032do
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036done
6be7c12c 1037
5464f5a1 1038} >&5
66e25bab 1039
5464f5a1 1040cat >&5 <<_ACEOF
b3baf5d0 1041
6be7c12c 1042
5464f5a1
NN
1043## ----------- ##
1044## Core tests. ##
1045## ----------- ##
252b5132 1046
5464f5a1 1047_ACEOF
c5d1701e 1048
6be7c12c 1049
5464f5a1
NN
1050# Keep a trace of the command line.
1051# Strip out --no-create and --no-recursion so they do not pile up.
1052# Strip out --silent because we don't want to record it for future runs.
1053# Also quote any args containing shell meta-characters.
1054# Make two passes to allow for proper duplicate-argument suppression.
1055ac_configure_args=
1056ac_configure_args0=
1057ac_configure_args1=
1058ac_sep=
1059ac_must_keep_next=false
1060for ac_pass in 1 2
1061do
1062 for ac_arg
1063 do
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 2)
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1087 ;;
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1090 fi
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1094 ;;
1095 esac
1096 done
1097done
1098$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100
1101# When interrupted or exit'd, cleanup temporary files, and complete
1102# config.log. We remove comments because anyway the quotes in there
1103# would cause problems or look ugly.
1104# WARNING: Be sure not to use single quotes in there, as some shells,
1105# such as our DU 5.0 friend, will then `close' the trap.
1106trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1108 {
1109 echo
1110
1111 cat <<\_ASBOX
1112## ---------------- ##
1113## Cache variables. ##
1114## ---------------- ##
1115_ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1118{
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 ;;
1126 *)
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 ;;
1130 esac;
1131}
1132 echo
1133
1134 cat <<\_ASBOX
1135## ----------------- ##
1136## Output variables. ##
1137## ----------------- ##
1138_ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1141 do
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1146
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149## ------------- ##
1150## Output files. ##
1151## ------------- ##
1152_ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1155 do
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1160 fi
1161
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164## ----------- ##
1165## confdefs.h. ##
1166## ----------- ##
1167_ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1171 fi
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1179 ' 0
1180for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182done
1183ac_signal=0
1184
1185# confdefs.h avoids OS command line length limits that DEFS can exceed.
1186rm -rf conftest* confdefs.h
1187# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188echo >confdefs.h
1189
1190# Predefined preprocessor variables.
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_NAME "$PACKAGE_NAME"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_VERSION "$PACKAGE_VERSION"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_STRING "$PACKAGE_STRING"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214_ACEOF
1215
1216
1217# Let the site file select an alternate cache file if it wants to.
1218# Prefer explicitly selected file to automatically selected ones.
1219if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 fi
1225fi
1226for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1232 fi
1233done
1234
1235if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1245 fi
1246else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1250fi
1251
1252# Check that the precious variables saved in the cache have kept the same
1253# value.
1254ac_cache_corrupted=false
1255for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1271 *)
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1293 fi
1294done
1295if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1301fi
1302
1303ac_ext=c
1304ac_cpp='$CPP $CPPFLAGS'
1305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307ac_compiler_gnu=$ac_cv_c_compiler_gnu
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329ac_aux_dir=
1330for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1331 if test -f $ac_dir/install-sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 break
1335 elif test -f $ac_dir/install.sh; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 break
1339 elif test -f $ac_dir/shtool; then
1340 ac_aux_dir=$ac_dir
1341 ac_install_sh="$ac_aux_dir/shtool install -c"
1342 break
1343 fi
1344done
1345if test -z "$ac_aux_dir"; then
1346 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1347echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1348 { (exit 1); exit 1; }; }
1349fi
1350ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1351ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1352ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353
1354# Make sure we can run config.sub.
1355$ac_config_sub sun4 >/dev/null 2>&1 ||
1356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1357echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1358 { (exit 1); exit 1; }; }
1359
1360echo "$as_me:$LINENO: checking build system type" >&5
1361echo $ECHO_N "checking build system type... $ECHO_C" >&6
1362if test "${ac_cv_build+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364else
1365 ac_cv_build_alias=$build_alias
1366test -z "$ac_cv_build_alias" &&
1367 ac_cv_build_alias=`$ac_config_guess`
1368test -z "$ac_cv_build_alias" &&
1369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1370echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1371 { (exit 1); exit 1; }; }
1372ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1374echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
1376
1377fi
1378echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1379echo "${ECHO_T}$ac_cv_build" >&6
1380build=$ac_cv_build
1381build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384
1385
1386echo "$as_me:$LINENO: checking host system type" >&5
1387echo $ECHO_N "checking host system type... $ECHO_C" >&6
1388if test "${ac_cv_host+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390else
1391 ac_cv_host_alias=$host_alias
1392test -z "$ac_cv_host_alias" &&
1393 ac_cv_host_alias=$ac_cv_build_alias
1394ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1396echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1398
1399fi
1400echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1401echo "${ECHO_T}$ac_cv_host" >&6
1402host=$ac_cv_host
1403host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406
1407
1408echo "$as_me:$LINENO: checking target system type" >&5
1409echo $ECHO_N "checking target system type... $ECHO_C" >&6
1410if test "${ac_cv_target+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412else
1413 ac_cv_target_alias=$target_alias
1414test "x$ac_cv_target_alias" = "x" &&
1415 ac_cv_target_alias=$ac_cv_host_alias
1416ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1418echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1420
1421fi
1422echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1423echo "${ECHO_T}$ac_cv_target" >&6
1424target=$ac_cv_target
1425target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430# The aliases save the names the user supplied, while $host etc.
1431# will get canonicalized.
1432test -n "$target_alias" &&
1433 test "$program_prefix$program_suffix$program_transform_name" = \
1434 NONENONEs,x,x, &&
1435 program_prefix=${target_alias}-
1436ac_ext=c
1437ac_cpp='$CPP $CPPFLAGS'
1438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1440ac_compiler_gnu=$ac_cv_c_compiler_gnu
1441if test -n "$ac_tool_prefix"; then
1442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1443set dummy ${ac_tool_prefix}gcc; ac_word=$2
1444echo "$as_me:$LINENO: checking for $ac_word" >&5
1445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446if test "${ac_cv_prog_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448else
1449 if test -n "$CC"; then
1450 ac_cv_prog_CC="$CC" # Let the user override the test.
1451else
1452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453for as_dir in $PATH
1454do
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 for ac_exec_ext in '' $ac_executable_extensions; do
1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1461 break 2
1462 fi
1463done
1464done
1465
1466fi
1467fi
1468CC=$ac_cv_prog_CC
1469if test -n "$CC"; then
1470 echo "$as_me:$LINENO: result: $CC" >&5
1471echo "${ECHO_T}$CC" >&6
1472else
1473 echo "$as_me:$LINENO: result: no" >&5
1474echo "${ECHO_T}no" >&6
1475fi
1476
1477fi
1478if test -z "$ac_cv_prog_CC"; then
1479 ac_ct_CC=$CC
1480 # Extract the first word of "gcc", so it can be a program name with args.
1481set dummy gcc; ac_word=$2
1482echo "$as_me:$LINENO: checking for $ac_word" >&5
1483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486else
1487 if test -n "$ac_ct_CC"; then
1488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1489else
1490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491for as_dir in $PATH
1492do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_ac_ct_CC="gcc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501done
1502done
1503
1504fi
1505fi
1506ac_ct_CC=$ac_cv_prog_ac_ct_CC
1507if test -n "$ac_ct_CC"; then
1508 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1509echo "${ECHO_T}$ac_ct_CC" >&6
1510else
1511 echo "$as_me:$LINENO: result: no" >&5
1512echo "${ECHO_T}no" >&6
1513fi
1514
1515 CC=$ac_ct_CC
1516else
1517 CC="$ac_cv_prog_CC"
1518fi
1519
1520if test -z "$CC"; then
1521 if test -n "$ac_tool_prefix"; then
1522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1523set dummy ${ac_tool_prefix}cc; ac_word=$2
1524echo "$as_me:$LINENO: checking for $ac_word" >&5
1525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526if test "${ac_cv_prog_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528else
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC="$CC" # Let the user override the test.
1531else
1532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533for as_dir in $PATH
1534do
1535 IFS=$as_save_IFS
1536 test -z "$as_dir" && as_dir=.
1537 for ac_exec_ext in '' $ac_executable_extensions; do
1538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539 ac_cv_prog_CC="${ac_tool_prefix}cc"
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541 break 2
1542 fi
1543done
1544done
1545
1546fi
1547fi
1548CC=$ac_cv_prog_CC
1549if test -n "$CC"; then
1550 echo "$as_me:$LINENO: result: $CC" >&5
1551echo "${ECHO_T}$CC" >&6
1552else
1553 echo "$as_me:$LINENO: result: no" >&5
1554echo "${ECHO_T}no" >&6
1555fi
1556
1557fi
1558if test -z "$ac_cv_prog_CC"; then
1559 ac_ct_CC=$CC
1560 # Extract the first word of "cc", so it can be a program name with args.
1561set dummy cc; ac_word=$2
1562echo "$as_me:$LINENO: checking for $ac_word" >&5
1563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566else
1567 if test -n "$ac_ct_CC"; then
1568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1569else
1570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571for as_dir in $PATH
1572do
1573 IFS=$as_save_IFS
1574 test -z "$as_dir" && as_dir=.
1575 for ac_exec_ext in '' $ac_executable_extensions; do
1576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1577 ac_cv_prog_ac_ct_CC="cc"
1578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1579 break 2
1580 fi
1581done
1582done
1583
1584fi
1585fi
1586ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587if test -n "$ac_ct_CC"; then
1588 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1589echo "${ECHO_T}$ac_ct_CC" >&6
1590else
1591 echo "$as_me:$LINENO: result: no" >&5
1592echo "${ECHO_T}no" >&6
1593fi
1594
1595 CC=$ac_ct_CC
1596else
1597 CC="$ac_cv_prog_CC"
1598fi
1599
1600fi
1601if test -z "$CC"; then
1602 # Extract the first word of "cc", so it can be a program name with args.
1603set dummy cc; ac_word=$2
1604echo "$as_me:$LINENO: checking for $ac_word" >&5
1605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608else
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1611else
1612 ac_prog_rejected=no
1613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614for as_dir in $PATH
1615do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 for ac_exec_ext in '' $ac_executable_extensions; do
1619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1621 ac_prog_rejected=yes
1622 continue
1623 fi
1624 ac_cv_prog_CC="cc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626 break 2
1627 fi
1628done
1629done
1630
1631if test $ac_prog_rejected = yes; then
1632 # We found a bogon in the path, so make sure we never use it.
1633 set dummy $ac_cv_prog_CC
1634 shift
1635 if test $# != 0; then
1636 # We chose a different compiler from the bogus one.
1637 # However, it has the same basename, so the bogon will be chosen
1638 # first if we set CC to just the basename; use the full file name.
1639 shift
1640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1641 fi
1642fi
1643fi
1644fi
1645CC=$ac_cv_prog_CC
1646if test -n "$CC"; then
1647 echo "$as_me:$LINENO: result: $CC" >&5
1648echo "${ECHO_T}$CC" >&6
1649else
1650 echo "$as_me:$LINENO: result: no" >&5
1651echo "${ECHO_T}no" >&6
1652fi
1653
1654fi
1655if test -z "$CC"; then
1656 if test -n "$ac_tool_prefix"; then
1657 for ac_prog in cl
1658 do
1659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1661echo "$as_me:$LINENO: checking for $ac_word" >&5
1662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663if test "${ac_cv_prog_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665else
1666 if test -n "$CC"; then
1667 ac_cv_prog_CC="$CC" # Let the user override the test.
1668else
1669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670for as_dir in $PATH
1671do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1679 fi
1680done
1681done
1682
1683fi
1684fi
1685CC=$ac_cv_prog_CC
1686if test -n "$CC"; then
1687 echo "$as_me:$LINENO: result: $CC" >&5
1688echo "${ECHO_T}$CC" >&6
1689else
1690 echo "$as_me:$LINENO: result: no" >&5
1691echo "${ECHO_T}no" >&6
1692fi
1693
1694 test -n "$CC" && break
1695 done
1696fi
1697if test -z "$CC"; then
1698 ac_ct_CC=$CC
1699 for ac_prog in cl
1700do
1701 # Extract the first word of "$ac_prog", so it can be a program name with args.
1702set dummy $ac_prog; ac_word=$2
1703echo "$as_me:$LINENO: checking for $ac_word" >&5
1704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1706 echo $ECHO_N "(cached) $ECHO_C" >&6
1707else
1708 if test -n "$ac_ct_CC"; then
1709 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1710else
1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 for ac_exec_ext in '' $ac_executable_extensions; do
1717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718 ac_cv_prog_ac_ct_CC="$ac_prog"
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720 break 2
1721 fi
1722done
1723done
1724
1725fi
1726fi
1727ac_ct_CC=$ac_cv_prog_ac_ct_CC
1728if test -n "$ac_ct_CC"; then
1729 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1730echo "${ECHO_T}$ac_ct_CC" >&6
1731else
1732 echo "$as_me:$LINENO: result: no" >&5
1733echo "${ECHO_T}no" >&6
1734fi
1735
1736 test -n "$ac_ct_CC" && break
1737done
1738
1739 CC=$ac_ct_CC
1740fi
1741
1742fi
1743
1744
1745test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1746See \`config.log' for more details." >&5
1747echo "$as_me: error: no acceptable C compiler found in \$PATH
1748See \`config.log' for more details." >&2;}
1749 { (exit 1); exit 1; }; }
1750
1751# Provide some information about the compiler.
1752echo "$as_me:$LINENO:" \
1753 "checking for C compiler version" >&5
1754ac_compiler=`set X $ac_compile; echo $2`
1755{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1756 (eval $ac_compiler --version </dev/null >&5) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1761 (eval $ac_compiler -v </dev/null >&5) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }
1765{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1766 (eval $ac_compiler -V </dev/null >&5) 2>&5
1767 ac_status=$?
1768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1769 (exit $ac_status); }
1770
1771cat >conftest.$ac_ext <<_ACEOF
1772/* confdefs.h. */
1773_ACEOF
1774cat confdefs.h >>conftest.$ac_ext
1775cat >>conftest.$ac_ext <<_ACEOF
1776/* end confdefs.h. */
1777
1778int
1779main ()
1780{
1781
1782 ;
1783 return 0;
1784}
1785_ACEOF
1786ac_clean_files_save=$ac_clean_files
1787ac_clean_files="$ac_clean_files a.out a.exe b.out"
1788# Try to create an executable without -o first, disregard a.out.
1789# It will help us diagnose broken compilers, and finding out an intuition
1790# of exeext.
1791echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1792echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1793ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1794if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1795 (eval $ac_link_default) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }; then
1799 # Find the output, starting from the most likely. This scheme is
1800# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1801# resort.
1802
1803# Be careful to initialize this variable, since it used to be cached.
1804# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1805ac_cv_exeext=
1806# b.out is created by i960 compilers.
1807for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1808do
1809 test -f "$ac_file" || continue
1810 case $ac_file in
1811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1812 ;;
1813 conftest.$ac_ext )
1814 # This is the source file.
1815 ;;
1816 [ab].out )
1817 # We found the default executable, but exeext='' is most
1818 # certainly right.
1819 break;;
1820 *.* )
1821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1822 # FIXME: I believe we export ac_cv_exeext for Libtool,
1823 # but it would be cool to find out if it's true. Does anybody
1824 # maintain Libtool? --akim.
1825 export ac_cv_exeext
1826 break;;
1827 * )
1828 break;;
1829 esac
1830done
1831else
1832 echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1836See \`config.log' for more details." >&5
1837echo "$as_me: error: C compiler cannot create executables
1838See \`config.log' for more details." >&2;}
1839 { (exit 77); exit 77; }; }
1840fi
1841
1842ac_exeext=$ac_cv_exeext
1843echo "$as_me:$LINENO: result: $ac_file" >&5
1844echo "${ECHO_T}$ac_file" >&6
1845
1846# Check the compiler produces executables we can run. If not, either
1847# the compiler is broken, or we cross compile.
1848echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1849echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1850# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1851# If not cross compiling, check that we can run a simple program.
1852if test "$cross_compiling" != yes; then
1853 if { ac_try='./$ac_file'
1854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1855 (eval $ac_try) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; }; then
1859 cross_compiling=no
1860 else
1861 if test "$cross_compiling" = maybe; then
1862 cross_compiling=yes
1863 else
1864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1865If you meant to cross compile, use \`--host'.
1866See \`config.log' for more details." >&5
1867echo "$as_me: error: cannot run C compiled programs.
1868If you meant to cross compile, use \`--host'.
1869See \`config.log' for more details." >&2;}
1870 { (exit 1); exit 1; }; }
1871 fi
1872 fi
1873fi
1874echo "$as_me:$LINENO: result: yes" >&5
1875echo "${ECHO_T}yes" >&6
1876
1877rm -f a.out a.exe conftest$ac_cv_exeext b.out
1878ac_clean_files=$ac_clean_files_save
1879# Check the compiler produces executables we can run. If not, either
1880# the compiler is broken, or we cross compile.
1881echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1882echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1883echo "$as_me:$LINENO: result: $cross_compiling" >&5
1884echo "${ECHO_T}$cross_compiling" >&6
1885
1886echo "$as_me:$LINENO: checking for suffix of executables" >&5
1887echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1889 (eval $ac_link) 2>&5
1890 ac_status=$?
1891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892 (exit $ac_status); }; then
1893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1894# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1895# work properly (i.e., refer to `conftest.exe'), while it won't with
1896# `rm'.
1897for ac_file in conftest.exe conftest conftest.*; do
1898 test -f "$ac_file" || continue
1899 case $ac_file in
1900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1902 export ac_cv_exeext
1903 break;;
1904 * ) break;;
1905 esac
1906done
1907else
1908 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1909See \`config.log' for more details." >&5
1910echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1911See \`config.log' for more details." >&2;}
1912 { (exit 1); exit 1; }; }
1913fi
1914
1915rm -f conftest$ac_cv_exeext
1916echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1917echo "${ECHO_T}$ac_cv_exeext" >&6
1918
1919rm -f conftest.$ac_ext
1920EXEEXT=$ac_cv_exeext
1921ac_exeext=$EXEEXT
1922echo "$as_me:$LINENO: checking for suffix of object files" >&5
1923echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1924if test "${ac_cv_objext+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926else
1927 cat >conftest.$ac_ext <<_ACEOF
1928/* confdefs.h. */
1929_ACEOF
1930cat confdefs.h >>conftest.$ac_ext
1931cat >>conftest.$ac_ext <<_ACEOF
1932/* end confdefs.h. */
1933
1934int
1935main ()
1936{
1937
1938 ;
1939 return 0;
1940}
1941_ACEOF
1942rm -f conftest.o conftest.obj
1943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1945 ac_status=$?
1946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947 (exit $ac_status); }; then
1948 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1949 case $ac_file in
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1952 break;;
1953 esac
1954done
1955else
1956 echo "$as_me: failed program was:" >&5
1957sed 's/^/| /' conftest.$ac_ext >&5
1958
1959{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1960See \`config.log' for more details." >&5
1961echo "$as_me: error: cannot compute suffix of object files: cannot compile
1962See \`config.log' for more details." >&2;}
1963 { (exit 1); exit 1; }; }
1964fi
1965
1966rm -f conftest.$ac_cv_objext conftest.$ac_ext
1967fi
1968echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1969echo "${ECHO_T}$ac_cv_objext" >&6
1970OBJEXT=$ac_cv_objext
1971ac_objext=$OBJEXT
1972echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1973echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1974if test "${ac_cv_c_compiler_gnu+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
1977 cat >conftest.$ac_ext <<_ACEOF
1978/* confdefs.h. */
1979_ACEOF
1980cat confdefs.h >>conftest.$ac_ext
1981cat >>conftest.$ac_ext <<_ACEOF
1982/* end confdefs.h. */
1983
1984int
1985main ()
1986{
1987#ifndef __GNUC__
1988 choke me
1989#endif
1990
1991 ;
1992 return 0;
1993}
1994_ACEOF
1995rm -f conftest.$ac_objext
1996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1997 (eval $ac_compile) 2>conftest.er1
1998 ac_status=$?
1999 grep -v '^ *+' conftest.er1 >conftest.err
2000 rm -f conftest.er1
2001 cat conftest.err >&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); } &&
49c96104
SE
2004 { ac_try='test -z "$ac_c_werror_flag"
2005 || test ! -s conftest.err'
5464f5a1
NN
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; } &&
2011 { ac_try='test -s conftest.$ac_objext'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 (eval $ac_try) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; }; then
2017 ac_compiler_gnu=yes
2018else
2019 echo "$as_me: failed program was:" >&5
2020sed 's/^/| /' conftest.$ac_ext >&5
2021
2022ac_compiler_gnu=no
2023fi
2024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2025ac_cv_c_compiler_gnu=$ac_compiler_gnu
2026
2027fi
2028echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2029echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2030GCC=`test $ac_compiler_gnu = yes && echo yes`
2031ac_test_CFLAGS=${CFLAGS+set}
2032ac_save_CFLAGS=$CFLAGS
2033CFLAGS="-g"
2034echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2035echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2036if test "${ac_cv_prog_cc_g+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038else
2039 cat >conftest.$ac_ext <<_ACEOF
2040/* confdefs.h. */
2041_ACEOF
2042cat confdefs.h >>conftest.$ac_ext
2043cat >>conftest.$ac_ext <<_ACEOF
2044/* end confdefs.h. */
2045
2046int
2047main ()
2048{
2049
2050 ;
2051 return 0;
2052}
2053_ACEOF
2054rm -f conftest.$ac_objext
2055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2056 (eval $ac_compile) 2>conftest.er1
2057 ac_status=$?
2058 grep -v '^ *+' conftest.er1 >conftest.err
2059 rm -f conftest.er1
2060 cat conftest.err >&5
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); } &&
49c96104
SE
2063 { ac_try='test -z "$ac_c_werror_flag"
2064 || test ! -s conftest.err'
5464f5a1
NN
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; } &&
2070 { ac_try='test -s conftest.$ac_objext'
2071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 (eval $ac_try) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; }; then
2076 ac_cv_prog_cc_g=yes
2077else
2078 echo "$as_me: failed program was:" >&5
2079sed 's/^/| /' conftest.$ac_ext >&5
2080
2081ac_cv_prog_cc_g=no
2082fi
2083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2084fi
2085echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2086echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2087if test "$ac_test_CFLAGS" = set; then
2088 CFLAGS=$ac_save_CFLAGS
2089elif test $ac_cv_prog_cc_g = yes; then
2090 if test "$GCC" = yes; then
2091 CFLAGS="-g -O2"
2092 else
2093 CFLAGS="-g"
2094 fi
2095else
2096 if test "$GCC" = yes; then
2097 CFLAGS="-O2"
2098 else
2099 CFLAGS=
2100 fi
2101fi
2102echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2103echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2104if test "${ac_cv_prog_cc_stdc+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107 ac_cv_prog_cc_stdc=no
2108ac_save_CC=$CC
2109cat >conftest.$ac_ext <<_ACEOF
2110/* confdefs.h. */
2111_ACEOF
2112cat confdefs.h >>conftest.$ac_ext
2113cat >>conftest.$ac_ext <<_ACEOF
2114/* end confdefs.h. */
2115#include <stdarg.h>
2116#include <stdio.h>
2117#include <sys/types.h>
2118#include <sys/stat.h>
2119/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2120struct buf { int x; };
2121FILE * (*rcsopen) (struct buf *, struct stat *, int);
2122static char *e (p, i)
2123 char **p;
2124 int i;
2125{
2126 return p[i];
2127}
2128static char *f (char * (*g) (char **, int), char **p, ...)
2129{
2130 char *s;
2131 va_list v;
2132 va_start (v,p);
2133 s = g (p, va_arg (v,int));
2134 va_end (v);
2135 return s;
2136}
2137
2138/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2139 function prototypes and stuff, but not '\xHH' hex character constants.
2140 These don't provoke an error unfortunately, instead are silently treated
2141 as 'x'. The following induces an error, until -std1 is added to get
2142 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2143 array size at least. It's necessary to write '\x00'==0 to get something
2144 that's true only with -std1. */
2145int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2146
2147int test (int i, double x);
2148struct s1 {int (*f) (int a);};
2149struct s2 {int (*f) (double a);};
2150int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2151int argc;
2152char **argv;
2153int
2154main ()
2155{
2156return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2157 ;
2158 return 0;
2159}
2160_ACEOF
2161# Don't try gcc -ansi; that turns off useful extensions and
2162# breaks some systems' header files.
2163# AIX -qlanglvl=ansi
2164# Ultrix and OSF/1 -std1
2165# HP-UX 10.20 and later -Ae
2166# HP-UX older versions -Aa -D_HPUX_SOURCE
2167# SVR4 -Xc -D__EXTENSIONS__
2168for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2169do
2170 CC="$ac_save_CC $ac_arg"
2171 rm -f conftest.$ac_objext
2172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>conftest.er1
2174 ac_status=$?
2175 grep -v '^ *+' conftest.er1 >conftest.err
2176 rm -f conftest.er1
2177 cat conftest.err >&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
49c96104
SE
2180 { ac_try='test -z "$ac_c_werror_flag"
2181 || test ! -s conftest.err'
5464f5a1
NN
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; } &&
2187 { ac_try='test -s conftest.$ac_objext'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189 (eval $ac_try) 2>&5
2190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2193 ac_cv_prog_cc_stdc=$ac_arg
2194break
2195else
2196 echo "$as_me: failed program was:" >&5
2197sed 's/^/| /' conftest.$ac_ext >&5
2198
2199fi
2200rm -f conftest.err conftest.$ac_objext
2201done
2202rm -f conftest.$ac_ext conftest.$ac_objext
2203CC=$ac_save_CC
2204
2205fi
2206
2207case "x$ac_cv_prog_cc_stdc" in
2208 x|xno)
2209 echo "$as_me:$LINENO: result: none needed" >&5
2210echo "${ECHO_T}none needed" >&6 ;;
2211 *)
2212 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2213echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2214 CC="$CC $ac_cv_prog_cc_stdc" ;;
2215esac
2216
2217# Some people use a C++ compiler to compile C. Since we use `exit',
2218# in C++ we need to declare it. In case someone uses the same compiler
2219# for both compiling C and C++ we need to have the C++ compiler decide
2220# the declaration of exit, since it's the most demanding environment.
2221cat >conftest.$ac_ext <<_ACEOF
2222#ifndef __cplusplus
2223 choke me
2224#endif
2225_ACEOF
2226rm -f conftest.$ac_objext
2227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228 (eval $ac_compile) 2>conftest.er1
2229 ac_status=$?
2230 grep -v '^ *+' conftest.er1 >conftest.err
2231 rm -f conftest.er1
2232 cat conftest.err >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
49c96104
SE
2235 { ac_try='test -z "$ac_c_werror_flag"
2236 || test ! -s conftest.err'
5464f5a1
NN
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; } &&
2242 { ac_try='test -s conftest.$ac_objext'
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 (eval $ac_try) 2>&5
2245 ac_status=$?
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247 (exit $ac_status); }; }; then
2248 for ac_declaration in \
2249 '' \
2250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
2254 'void exit (int);'
2255do
2256 cat >conftest.$ac_ext <<_ACEOF
2257/* confdefs.h. */
2258_ACEOF
2259cat confdefs.h >>conftest.$ac_ext
2260cat >>conftest.$ac_ext <<_ACEOF
2261/* end confdefs.h. */
2262$ac_declaration
2263#include <stdlib.h>
2264int
2265main ()
2266{
2267exit (42);
2268 ;
2269 return 0;
2270}
2271_ACEOF
2272rm -f conftest.$ac_objext
2273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2275 ac_status=$?
2276 grep -v '^ *+' conftest.er1 >conftest.err
2277 rm -f conftest.er1
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
49c96104
SE
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
5464f5a1
NN
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2294 :
2295else
2296 echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299continue
2300fi
2301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302 cat >conftest.$ac_ext <<_ACEOF
2303/* confdefs.h. */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h. */
2308$ac_declaration
2309int
2310main ()
2311{
2312exit (42);
2313 ;
2314 return 0;
2315}
2316_ACEOF
2317rm -f conftest.$ac_objext
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319 (eval $ac_compile) 2>conftest.er1
2320 ac_status=$?
2321 grep -v '^ *+' conftest.er1 >conftest.err
2322 rm -f conftest.er1
2323 cat conftest.err >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); } &&
49c96104
SE
2326 { ac_try='test -z "$ac_c_werror_flag"
2327 || test ! -s conftest.err'
5464f5a1
NN
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; } &&
2333 { ac_try='test -s conftest.$ac_objext'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; }; then
2339 break
2340else
2341 echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344fi
2345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2346done
2347rm -f conftest*
2348if test -n "$ac_declaration"; then
2349 echo '#ifdef __cplusplus' >>confdefs.h
2350 echo $ac_declaration >>confdefs.h
2351 echo '#endif' >>confdefs.h
2352fi
2353
2354else
2355 echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358fi
2359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360ac_ext=c
2361ac_cpp='$CPP $CPPFLAGS'
2362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2364ac_compiler_gnu=$ac_cv_c_compiler_gnu
2365
2366
f5385ebf
AM
2367echo "$as_me:$LINENO: checking for library containing strerror" >&5
2368echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2369if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
f5385ebf
AM
2372 ac_func_search_save_LIBS=$LIBS
2373ac_cv_search_strerror=no
5464f5a1
NN
2374cat >conftest.$ac_ext <<_ACEOF
2375/* confdefs.h. */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h. */
2380
2381/* Override any gcc2 internal prototype to avoid an error. */
2382#ifdef __cplusplus
2383extern "C"
2384#endif
2385/* We use char because int might match the return type of a gcc2
2386 builtin and then its argument prototype would still apply. */
2387char strerror ();
2388int
2389main ()
2390{
2391strerror ();
2392 ;
2393 return 0;
2394}
2395_ACEOF
2396rm -f conftest.$ac_objext conftest$ac_exeext
2397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2398 (eval $ac_link) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
49c96104
SE
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
5464f5a1
NN
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest$ac_exeext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
f5385ebf 2418 ac_cv_search_strerror="none required"
5464f5a1
NN
2419else
2420 echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
5464f5a1
NN
2423fi
2424rm -f conftest.err conftest.$ac_objext \
2425 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2426if test "$ac_cv_search_strerror" = no; then
2427 for ac_lib in cposix; do
2428 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2429 cat >conftest.$ac_ext <<_ACEOF
2430/* confdefs.h. */
2431_ACEOF
2432cat confdefs.h >>conftest.$ac_ext
2433cat >>conftest.$ac_ext <<_ACEOF
2434/* end confdefs.h. */
2435
2436/* Override any gcc2 internal prototype to avoid an error. */
2437#ifdef __cplusplus
2438extern "C"
2439#endif
2440/* We use char because int might match the return type of a gcc2
2441 builtin and then its argument prototype would still apply. */
2442char strerror ();
2443int
2444main ()
2445{
2446strerror ();
2447 ;
2448 return 0;
2449}
2450_ACEOF
2451rm -f conftest.$ac_objext conftest$ac_exeext
2452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2453 (eval $ac_link) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
49c96104
SE
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
f5385ebf
AM
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest$ac_exeext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 ac_cv_search_strerror="-l$ac_lib"
2474break
2475else
2476 echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
5464f5a1 2479fi
f5385ebf
AM
2480rm -f conftest.err conftest.$ac_objext \
2481 conftest$ac_exeext conftest.$ac_ext
2482 done
5464f5a1 2483fi
f5385ebf
AM
2484LIBS=$ac_func_search_save_LIBS
2485fi
2486echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2487echo "${ECHO_T}$ac_cv_search_strerror" >&6
2488if test "$ac_cv_search_strerror" != no; then
2489 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2490
f5385ebf 2491fi
5464f5a1
NN
2492
2493
f5385ebf 2494am__api_version="1.9"
5464f5a1
NN
2495# Find a good install program. We prefer a C program (faster),
2496# so one script is as good as another. But avoid the broken or
2497# incompatible versions:
2498# SysV /etc/install, /usr/sbin/install
2499# SunOS /usr/etc/install
2500# IRIX /sbin/install
2501# AIX /bin/install
2502# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2503# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2504# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2505# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2506# OS/2's system install, which has a completely different semantic
252b5132 2507# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2508echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2509echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2510if test -z "$INSTALL"; then
5464f5a1
NN
2511if test "${ac_cv_path_install+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2513else
5464f5a1
NN
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 # Account for people who put trailing slashes in PATH elements.
2520case $as_dir/ in
2521 ./ | .// | /cC/* | \
2522 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2523 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2524 /usr/ucb/* ) ;;
2525 *)
2526 # OSF1 and SCO ODT 3.0 have their own names for install.
2527 # Don't use installbsd from OSF since it installs stuff as root
2528 # by default.
2529 for ac_prog in ginstall scoinst install; do
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2532 if test $ac_prog = install &&
5464f5a1 2533 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2534 # AIX install. It has an incompatible calling convention.
2535 :
5464f5a1
NN
2536 elif test $ac_prog = install &&
2537 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # program-specific install script used by HP pwplus--don't use.
2539 :
252b5132 2540 else
5464f5a1
NN
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
252b5132
RH
2543 fi
2544 fi
2545 done
5464f5a1
NN
2546 done
2547 ;;
2548esac
2549done
2550
252b5132
RH
2551
2552fi
2553 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2554 INSTALL=$ac_cv_path_install
252b5132
RH
2555 else
2556 # As a last resort, use the slow shell script. We don't cache a
2557 # path for INSTALL within a source directory, because that will
2558 # break other packages using the cache if that directory is
2559 # removed, or if the path is relative.
5464f5a1 2560 INSTALL=$ac_install_sh
252b5132
RH
2561 fi
2562fi
5464f5a1
NN
2563echo "$as_me:$LINENO: result: $INSTALL" >&5
2564echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2565
2566# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2567# It thinks the first close brace ends the variable substitution.
2568test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569
5464f5a1 2570test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2571
2572test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573
5464f5a1
NN
2574echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2575echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2576# Just in case
2577sleep 1
f5385ebf 2578echo timestamp > conftest.file
252b5132
RH
2579# Do `set' in a subshell so we don't clobber the current shell's
2580# arguments. Must try -L first in case configure is actually a
2581# symlink; some systems play weird games with the mod time of symlinks
2582# (eg FreeBSD returns the mod time of the symlink's containing
2583# directory).
2584if (
f5385ebf 2585 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2586 if test "$*" = "X"; then
2587 # -L didn't work.
f5385ebf 2588 set X `ls -t $srcdir/configure conftest.file`
252b5132 2589 fi
f5385ebf
AM
2590 rm -f conftest.file
2591 if test "$*" != "X $srcdir/configure conftest.file" \
2592 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2593
2594 # If neither matched, then we have a broken ls. This can happen
2595 # if, for instance, CONFIG_SHELL is bash and it inherits a
2596 # broken ls alias from the environment. This has actually
2597 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2598 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2599alias in your environment" >&5
2600echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2601alias in your environment" >&2;}
2602 { (exit 1); exit 1; }; }
252b5132
RH
2603 fi
2604
f5385ebf 2605 test "$2" = conftest.file
252b5132
RH
2606 )
2607then
2608 # Ok.
2609 :
2610else
5464f5a1
NN
2611 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2612Check your system clock" >&5
2613echo "$as_me: error: newly created file is older than distributed files!
2614Check your system clock" >&2;}
2615 { (exit 1); exit 1; }; }
252b5132 2616fi
5464f5a1
NN
2617echo "$as_me:$LINENO: result: yes" >&5
2618echo "${ECHO_T}yes" >&6
252b5132 2619test "$program_prefix" != NONE &&
5464f5a1 2620 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2621# Use a double $ so make ignores it.
2622test "$program_suffix" != NONE &&
5464f5a1
NN
2623 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2624# Double any \ or $. echo might interpret backslashes.
2625# By default was `s,x,x', remove it if useless.
2626cat <<\_ACEOF >conftest.sed
2627s/[\\$]/&&/g;s/;s,x,x,$//
2628_ACEOF
2629program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2630rm conftest.sed
2631
f5385ebf
AM
2632# expand $ac_aux_dir to an absolute path
2633am_aux_dir=`cd $ac_aux_dir && pwd`
2634
2635test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2636# Use eval to expand $SHELL
2637if eval "$MISSING --run true"; then
2638 am_missing_run="$MISSING --run "
2639else
2640 am_missing_run=
2641 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2642echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2643fi
2644
2645if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2646 # We used to keeping the `.' as first argument, in order to
2647 # allow $(mkdir_p) to be used without argument. As in
2648 # $(mkdir_p) $(somedir)
2649 # where $(somedir) is conditionally defined. However this is wrong
2650 # for two reasons:
2651 # 1. if the package is installed by a user who cannot write `.'
2652 # make install will fail,
2653 # 2. the above comment should most certainly read
2654 # $(mkdir_p) $(DESTDIR)$(somedir)
2655 # so it does not work when $(somedir) is undefined and
2656 # $(DESTDIR) is not.
2657 # To support the latter case, we have to write
2658 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2659 # so the `.' trick is pointless.
2660 mkdir_p='mkdir -p --'
2661else
2662 # On NextStep and OpenStep, the `mkdir' command does not
2663 # recognize any option. It will interpret all options as
2664 # directories to create, and then abort because `.' already
2665 # exists.
2666 for d in ./-p ./--version;
2667 do
2668 test -d $d && rmdir $d
2669 done
2670 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2671 if test -f "$ac_aux_dir/mkinstalldirs"; then
2672 mkdir_p='$(mkinstalldirs)'
2673 else
2674 mkdir_p='$(install_sh) -d'
2675 fi
2676fi
2677
2678for ac_prog in gawk mawk nawk awk
2679do
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681set dummy $ac_prog; ac_word=$2
2682echo "$as_me:$LINENO: checking for $ac_word" >&5
2683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684if test "${ac_cv_prog_AWK+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686else
2687 if test -n "$AWK"; then
2688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_AWK="$ac_prog"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701done
2702done
2703
2704fi
2705fi
2706AWK=$ac_cv_prog_AWK
2707if test -n "$AWK"; then
2708 echo "$as_me:$LINENO: result: $AWK" >&5
2709echo "${ECHO_T}$AWK" >&6
2710else
2711 echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6
2713fi
2714
2715 test -n "$AWK" && break
2716done
2717
5464f5a1
NN
2718echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2719echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2720set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2721if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724 cat >conftest.make <<\_ACEOF
252b5132 2725all:
5464f5a1
NN
2726 @echo 'ac_maketemp="$(MAKE)"'
2727_ACEOF
252b5132 2728# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2729eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2730if test -n "$ac_maketemp"; then
2731 eval ac_cv_prog_make_${ac_make}_set=yes
2732else
2733 eval ac_cv_prog_make_${ac_make}_set=no
2734fi
5464f5a1 2735rm -f conftest.make
252b5132
RH
2736fi
2737if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2738 echo "$as_me:$LINENO: result: yes" >&5
2739echo "${ECHO_T}yes" >&6
252b5132
RH
2740 SET_MAKE=
2741else
5464f5a1
NN
2742 echo "$as_me:$LINENO: result: no" >&5
2743echo "${ECHO_T}no" >&6
252b5132
RH
2744 SET_MAKE="MAKE=${MAKE-make}"
2745fi
2746
f5385ebf
AM
2747rm -rf .tst 2>/dev/null
2748mkdir .tst 2>/dev/null
2749if test -d .tst; then
2750 am__leading_dot=.
2751else
2752 am__leading_dot=_
2753fi
2754rmdir .tst 2>/dev/null
2755
2756DEPDIR="${am__leading_dot}deps"
2757
2758 ac_config_commands="$ac_config_commands depfiles"
2759
2760
2761am_make=${MAKE-make}
2762cat > confinc << 'END'
2763am__doit:
2764 @echo done
2765.PHONY: am__doit
2766END
2767# If we don't find an include directive, just comment out the code.
2768echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2769echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2770am__include="#"
2771am__quote=
2772_am_result=none
2773# First try GNU make style include.
2774echo "include confinc" > confmf
2775# We grep out `Entering directory' and `Leaving directory'
2776# messages which can occur if `w' ends up in MAKEFLAGS.
2777# In particular we don't look at `^make:' because GNU make might
2778# be invoked under some other name (usually "gmake"), in which
2779# case it prints its new name instead of `make'.
2780if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2781 am__include=include
2782 am__quote=
2783 _am_result=GNU
2784fi
2785# Now try BSD make style include.
2786if test "$am__include" = "#"; then
2787 echo '.include "confinc"' > confmf
2788 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2789 am__include=.include
2790 am__quote="\""
2791 _am_result=BSD
2792 fi
2793fi
2794
2795
2796echo "$as_me:$LINENO: result: $_am_result" >&5
2797echo "${ECHO_T}$_am_result" >&6
2798rm -f confinc confmf
2799
2800# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2801if test "${enable_dependency_tracking+set}" = set; then
2802 enableval="$enable_dependency_tracking"
2803
2804fi;
2805if test "x$enable_dependency_tracking" != xno; then
2806 am_depcomp="$ac_aux_dir/depcomp"
2807 AMDEPBACKSLASH='\'
2808fi
2809
2810
2811if test "x$enable_dependency_tracking" != xno; then
2812 AMDEP_TRUE=
2813 AMDEP_FALSE='#'
2814else
2815 AMDEP_TRUE='#'
2816 AMDEP_FALSE=
2817fi
6be7c12c 2818
252b5132 2819
252b5132 2820
f5385ebf
AM
2821# test to see if srcdir already configured
2822if test "`cd $srcdir && pwd`" != "`pwd`" &&
2823 test -f $srcdir/config.status; then
5464f5a1
NN
2824 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2825echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2826 { (exit 1); exit 1; }; }
252b5132 2827fi
5464f5a1 2828
f5385ebf
AM
2829# test whether we have cygpath
2830if test -z "$CYGPATH_W"; then
2831 if (cygpath --version) >/dev/null 2>/dev/null; then
2832 CYGPATH_W='cygpath -w'
2833 else
2834 CYGPATH_W=echo
2835 fi
2836fi
2837
2838
2839# Define the identity of the package.
2840 PACKAGE=bfd
ffdc4eed 2841 VERSION=2.17.50
f5385ebf
AM
2842
2843
5464f5a1 2844cat >>confdefs.h <<_ACEOF
252b5132 2845#define PACKAGE "$PACKAGE"
5464f5a1 2846_ACEOF
252b5132 2847
5464f5a1
NN
2848
2849cat >>confdefs.h <<_ACEOF
252b5132 2850#define VERSION "$VERSION"
5464f5a1 2851_ACEOF
252b5132 2852
f5385ebf
AM
2853# Some tools Automake needs.
2854
2855ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2856
2857
2858AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2859
2860
2861AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2862
2863
2864AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2865
2866
2867MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2868
f5385ebf 2869install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2870
f5385ebf
AM
2871# Installed binaries are usually stripped using `strip' when the user
2872# run `make install-strip'. However `strip' might not be the right
2873# tool to use in cross-compilation environments, therefore Automake
2874# will honor the `STRIP' environment variable to overrule this program.
2875if test "$cross_compiling" != no; then
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2878set dummy ${ac_tool_prefix}strip; ac_word=$2
2879echo "$as_me:$LINENO: checking for $ac_word" >&5
2880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881if test "${ac_cv_prog_STRIP+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
2884 if test -n "$STRIP"; then
2885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2886else
f5385ebf
AM
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898done
2899done
2900
2901fi
2902fi
2903STRIP=$ac_cv_prog_STRIP
2904if test -n "$STRIP"; then
2905 echo "$as_me:$LINENO: result: $STRIP" >&5
2906echo "${ECHO_T}$STRIP" >&6
2907else
2908 echo "$as_me:$LINENO: result: no" >&5
2909echo "${ECHO_T}no" >&6
2910fi
2911
252b5132 2912fi
f5385ebf
AM
2913if test -z "$ac_cv_prog_STRIP"; then
2914 ac_ct_STRIP=$STRIP
2915 # Extract the first word of "strip", so it can be a program name with args.
2916set dummy strip; ac_word=$2
2917echo "$as_me:$LINENO: checking for $ac_word" >&5
2918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2919if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2921else
2922 if test -n "$ac_ct_STRIP"; then
2923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_ac_ct_STRIP="strip"
2933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936done
2937done
252b5132 2938
f5385ebf
AM
2939 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2940fi
2941fi
2942ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943if test -n "$ac_ct_STRIP"; then
2944 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2945echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2946else
f5385ebf
AM
2947 echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6
252b5132
RH
2949fi
2950
f5385ebf 2951 STRIP=$ac_ct_STRIP
252b5132 2952else
f5385ebf
AM
2953 STRIP="$ac_cv_prog_STRIP"
2954fi
2955
252b5132 2956fi
f5385ebf
AM
2957INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2958
2959# We need awk for the "check" target. The system "awk" is bad on
2960# some platforms.
2961# Always define AMTAR for backward compatibility.
2962
2963AMTAR=${AMTAR-"${am_missing_run}tar"}
2964
2965am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2966
252b5132 2967
f5385ebf
AM
2968
2969
2970depcc="$CC" am_compiler_list=
2971
2972echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2973echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2974if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2976else
f5385ebf
AM
2977 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2978 # We make a subdir and do the tests there. Otherwise we can end up
2979 # making bogus files that we don't know about and never remove. For
2980 # instance it was reported that on HP-UX the gcc test will end up
2981 # making a dummy file named `D' -- because `-MD' means `put the output
2982 # in D'.
2983 mkdir conftest.dir
2984 # Copy depcomp to subdir because otherwise we won't find it if we're
2985 # using a relative directory.
2986 cp "$am_depcomp" conftest.dir
2987 cd conftest.dir
2988 # We will build objects and dependencies in a subdirectory because
2989 # it helps to detect inapplicable dependency modes. For instance
2990 # both Tru64's cc and ICC support -MD to output dependencies as a
2991 # side effect of compilation, but ICC will put the dependencies in
2992 # the current directory while Tru64 will put them in the object
2993 # directory.
2994 mkdir sub
2995
2996 am_cv_CC_dependencies_compiler_type=none
2997 if test "$am_compiler_list" = ""; then
2998 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2999 fi
3000 for depmode in $am_compiler_list; do
3001 # Setup a source with many dependencies, because some compilers
3002 # like to wrap large dependency lists on column 80 (with \), and
3003 # we should not choose a depcomp mode which is confused by this.
3004 #
3005 # We need to recreate these files for each test, as the compiler may
3006 # overwrite some of them when testing with obscure command lines.
3007 # This happens at least with the AIX C compiler.
3008 : > sub/conftest.c
3009 for i in 1 2 3 4 5 6; do
3010 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3011 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3012 # Solaris 8's {/usr,}/bin/sh.
3013 touch sub/conftst$i.h
3014 done
3015 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3016
3017 case $depmode in
3018 nosideeffect)
3019 # after this tag, mechanisms are not by side-effect, so they'll
3020 # only be used when explicitly requested
3021 if test "x$enable_dependency_tracking" = xyes; then
3022 continue
3023 else
3024 break
3025 fi
3026 ;;
3027 none) break ;;
3028 esac
3029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3030 # mode. It turns out that the SunPro C++ compiler does not properly
3031 # handle `-M -o', and we need to detect this.
3032 if depmode=$depmode \
3033 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3034 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3035 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3036 >/dev/null 2>conftest.err &&
3037 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3038 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3039 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3040 # icc doesn't choke on unknown options, it will just issue warnings
3041 # or remarks (even with -Werror). So we grep stderr for any message
3042 # that says an option was ignored or not supported.
3043 # When given -MP, icc 7.0 and 7.1 complain thusly:
3044 # icc: Command line warning: ignoring option '-M'; no argument required
3045 # The diagnosis changed in icc 8.0:
3046 # icc: Command line remark: option '-MP' not supported
3047 if (grep 'ignoring option' conftest.err ||
3048 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3049 am_cv_CC_dependencies_compiler_type=$depmode
3050 break
3051 fi
3052 fi
3053 done
3054
3055 cd ..
3056 rm -rf conftest.dir
3057else
3058 am_cv_CC_dependencies_compiler_type=none
3059fi
3060
252b5132 3061fi
f5385ebf
AM
3062echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3063echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3064CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3065
f5385ebf
AM
3066
3067
3068if
3069 test "x$enable_dependency_tracking" != xno \
3070 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3071 am__fastdepCC_TRUE=
3072 am__fastdepCC_FALSE='#'
252b5132 3073else
f5385ebf
AM
3074 am__fastdepCC_TRUE='#'
3075 am__fastdepCC_FALSE=
252b5132
RH
3076fi
3077
6be7c12c 3078
e43d48cc 3079
f5385ebf 3080
5464f5a1
NN
3081if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3083set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3084echo "$as_me:$LINENO: checking for $ac_word" >&5
3085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086if test "${ac_cv_prog_AR+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3088else
3089 if test -n "$AR"; then
3090 ac_cv_prog_AR="$AR" # Let the user override the test.
3091else
5464f5a1
NN
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_AR="${ac_tool_prefix}ar"
3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103done
3104done
3105
252b5132
RH
3106fi
3107fi
5464f5a1 3108AR=$ac_cv_prog_AR
252b5132 3109if test -n "$AR"; then
5464f5a1
NN
3110 echo "$as_me:$LINENO: result: $AR" >&5
3111echo "${ECHO_T}$AR" >&6
252b5132 3112else
5464f5a1
NN
3113 echo "$as_me:$LINENO: result: no" >&5
3114echo "${ECHO_T}no" >&6
3115fi
3116
252b5132 3117fi
5464f5a1
NN
3118if test -z "$ac_cv_prog_AR"; then
3119 ac_ct_AR=$AR
3120 # Extract the first word of "ar", so it can be a program name with args.
3121set dummy ar; ac_word=$2
3122echo "$as_me:$LINENO: checking for $ac_word" >&5
3123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3124if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126else
3127 if test -n "$ac_ct_AR"; then
3128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_ac_ct_AR="ar"
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141done
3142done
252b5132 3143
5464f5a1
NN
3144fi
3145fi
3146ac_ct_AR=$ac_cv_prog_ac_ct_AR
3147if test -n "$ac_ct_AR"; then
3148 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3149echo "${ECHO_T}$ac_ct_AR" >&6
3150else
3151 echo "$as_me:$LINENO: result: no" >&5
3152echo "${ECHO_T}no" >&6
3153fi
252b5132 3154
5464f5a1
NN
3155 AR=$ac_ct_AR
3156else
3157 AR="$ac_cv_prog_AR"
3158fi
6be7c12c 3159
5464f5a1
NN
3160if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3162set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3163echo "$as_me:$LINENO: checking for $ac_word" >&5
3164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165if test "${ac_cv_prog_RANLIB+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3167else
3168 if test -n "$RANLIB"; then
3169 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3170else
5464f5a1
NN
3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172for as_dir in $PATH
3173do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182done
3183done
3184
252b5132
RH
3185fi
3186fi
5464f5a1 3187RANLIB=$ac_cv_prog_RANLIB
252b5132 3188if test -n "$RANLIB"; then
5464f5a1
NN
3189 echo "$as_me:$LINENO: result: $RANLIB" >&5
3190echo "${ECHO_T}$RANLIB" >&6
252b5132 3191else
5464f5a1
NN
3192 echo "$as_me:$LINENO: result: no" >&5
3193echo "${ECHO_T}no" >&6
252b5132
RH
3194fi
3195
5464f5a1 3196fi
252b5132 3197if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3198 ac_ct_RANLIB=$RANLIB
252b5132
RH
3199 # Extract the first word of "ranlib", so it can be a program name with args.
3200set dummy ranlib; ac_word=$2
5464f5a1
NN
3201echo "$as_me:$LINENO: checking for $ac_word" >&5
3202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3205else
5464f5a1
NN
3206 if test -n "$ac_ct_RANLIB"; then
3207 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3208else
5464f5a1
NN
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_RANLIB="ranlib"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220done
3221done
3222
3223 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3224fi
3225fi
5464f5a1
NN
3226ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3227if test -n "$ac_ct_RANLIB"; then
3228 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3229echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3230else
5464f5a1
NN
3231 echo "$as_me:$LINENO: result: no" >&5
3232echo "${ECHO_T}no" >&6
252b5132
RH
3233fi
3234
5464f5a1 3235 RANLIB=$ac_ct_RANLIB
252b5132 3236else
5464f5a1 3237 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3238fi
3239
252b5132
RH
3240
3241# Check whether --enable-shared or --disable-shared was given.
3242if test "${enable_shared+set}" = set; then
3243 enableval="$enable_shared"
3244 p=${PACKAGE-default}
55c80943 3245case $enableval in
252b5132
RH
3246yes) enable_shared=yes ;;
3247no) enable_shared=no ;;
3248*)
3249 enable_shared=no
3250 # Look at the argument we got. We use all the common list separators.
3251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3252 for pkg in $enableval; do
3253 if test "X$pkg" = "X$p"; then
3254 enable_shared=yes
3255 fi
3256 done
3257 IFS="$ac_save_ifs"
3258 ;;
3259esac
3260else
3261 enable_shared=no
5464f5a1 3262fi;
252b5132
RH
3263
3264# Check whether --enable-static or --disable-static was given.
3265if test "${enable_static+set}" = set; then
3266 enableval="$enable_static"
3267 p=${PACKAGE-default}
55c80943 3268case $enableval in
252b5132
RH
3269yes) enable_static=yes ;;
3270no) enable_static=no ;;
3271*)
3272 enable_static=no
3273 # Look at the argument we got. We use all the common list separators.
3274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3275 for pkg in $enableval; do
3276 if test "X$pkg" = "X$p"; then
3277 enable_static=yes
3278 fi
3279 done
3280 IFS="$ac_save_ifs"
3281 ;;
3282esac
3283else
3284 enable_static=yes
5464f5a1 3285fi;
b2ef150d
ILT
3286# Check whether --enable-fast-install or --disable-fast-install was given.
3287if test "${enable_fast_install+set}" = set; then
3288 enableval="$enable_fast_install"
3289 p=${PACKAGE-default}
55c80943 3290case $enableval in
b2ef150d
ILT
3291yes) enable_fast_install=yes ;;
3292no) enable_fast_install=no ;;
3293*)
3294 enable_fast_install=no
3295 # Look at the argument we got. We use all the common list separators.
3296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3297 for pkg in $enableval; do
3298 if test "X$pkg" = "X$p"; then
3299 enable_fast_install=yes
3300 fi
3301 done
3302 IFS="$ac_save_ifs"
3303 ;;
3304esac
3305else
3306 enable_fast_install=yes
5464f5a1 3307fi;
c5d1701e 3308
252b5132
RH
3309# Check whether --with-gnu-ld or --without-gnu-ld was given.
3310if test "${with_gnu_ld+set}" = set; then
3311 withval="$with_gnu_ld"
3312 test "$withval" = no || with_gnu_ld=yes
3313else
3314 with_gnu_ld=no
5464f5a1 3315fi;
252b5132 3316ac_prog=ld
55c80943 3317if test "$GCC" = yes; then
252b5132 3318 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
3319 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3320echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3321 case $host in
3322 *-*-mingw*)
3323 # gcc leaves a trailing carriage return which upsets mingw
3324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3325 *)
3326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3327 esac
55c80943 3328 case $ac_prog in
b2ef150d 3329 # Accept absolute paths.
a74801ba 3330 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
3331 re_direlt='/[^/][^/]*/\.\./'
3332 # Canonicalize the path of ld
3333 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3334 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3335 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3336 done
3337 test -z "$LD" && LD="$ac_prog"
3338 ;;
252b5132
RH
3339 "")
3340 # If it fails, then pretend we aren't using GCC.
3341 ac_prog=ld
3342 ;;
3343 *)
3344 # If it is relative, then search for the first ld in PATH.
3345 with_gnu_ld=unknown
3346 ;;
3347 esac
3348elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
3349 echo "$as_me:$LINENO: checking for GNU ld" >&5
3350echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3351else
5464f5a1
NN
3352 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3353echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3354fi
5464f5a1
NN
3355if test "${lt_cv_path_LD+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3357else
3358 if test -z "$LD"; then
a74801ba 3359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3360 for ac_dir in $PATH; do
3361 test -z "$ac_dir" && ac_dir=.
a74801ba 3362 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 3363 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3364 # Check to see if the program is GNU ld. I'd rather use --version,
3365 # but apparently some GNU ld's only accept -v.
3366 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 3367 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3368 test "$with_gnu_ld" != no && break
3369 else
b2ef150d 3370 test "$with_gnu_ld" != yes && break
252b5132
RH
3371 fi
3372 fi
3373 done
3374 IFS="$ac_save_ifs"
3375else
55c80943 3376 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3377fi
3378fi
3379
55c80943 3380LD="$lt_cv_path_LD"
252b5132 3381if test -n "$LD"; then
5464f5a1
NN
3382 echo "$as_me:$LINENO: result: $LD" >&5
3383echo "${ECHO_T}$LD" >&6
252b5132 3384else
5464f5a1
NN
3385 echo "$as_me:$LINENO: result: no" >&5
3386echo "${ECHO_T}no" >&6
252b5132 3387fi
5464f5a1
NN
3388test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3389echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3390 { (exit 1); exit 1; }; }
3391echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3392echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3393if test "${lt_cv_prog_gnu_ld+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3395else
3396 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3397if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3398 lt_cv_prog_gnu_ld=yes
252b5132 3399else
55c80943 3400 lt_cv_prog_gnu_ld=no
252b5132
RH
3401fi
3402fi
5464f5a1
NN
3403echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3404echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3405with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3406
6be7c12c 3407
5464f5a1
NN
3408echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3409echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3410if test "${lt_cv_ld_reload_flag+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3412else
3413 lt_cv_ld_reload_flag='-r'
3414fi
5464f5a1
NN
3415echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3416echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3417reload_flag=$lt_cv_ld_reload_flag
3418test -n "$reload_flag" && reload_flag=" $reload_flag"
3419
5464f5a1
NN
3420echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3421echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3422if test "${lt_cv_path_NM+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3424else
3425 if test -n "$NM"; then
3426 # Let the user override the test.
55c80943 3427 lt_cv_path_NM="$NM"
252b5132 3428else
a74801ba 3429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3430 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3431 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3432 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3433 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3434 # Check to see if the nm accepts a BSD-compat flag.
3435 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3436 # nm: unknown option "B" ignored
90f2472a
AO
3437 # Tru64's nm complains that /dev/null is an invalid object file
3438 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3439 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3440 break
ac48eca1 3441 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3442 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3443 break
252b5132 3444 else
55c80943 3445 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3446 continue # so that we can try to find one that supports BSD flags
252b5132 3447 fi
252b5132
RH
3448 fi
3449 done
3450 IFS="$ac_save_ifs"
55c80943 3451 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3452fi
3453fi
3454
55c80943 3455NM="$lt_cv_path_NM"
5464f5a1
NN
3456echo "$as_me:$LINENO: result: $NM" >&5
3457echo "${ECHO_T}$NM" >&6
252b5132 3458
5464f5a1
NN
3459echo "$as_me:$LINENO: checking whether ln -s works" >&5
3460echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3461LN_S=$as_ln_s
3462if test "$LN_S" = "ln -s"; then
3463 echo "$as_me:$LINENO: result: yes" >&5
3464echo "${ECHO_T}yes" >&6
6be7c12c 3465else
5464f5a1
NN
3466 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3467echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3468fi
3469
5464f5a1
NN
3470echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3471echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3472if test "${lt_cv_deplibs_check_method+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3474else
d64552c5 3475 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3476lt_cv_file_magic_test_file=
3477lt_cv_deplibs_check_method='unknown'
3478# Need to set the preceding variable on all platforms that support
3479# interlibrary dependencies.
3480# 'none' -- dependencies not supported.
3481# `unknown' -- same as none, but documents that we really don't know.
3482# 'pass_all' -- all dependencies passed with no checks.
3483# 'test_compile' -- check by making test program.
3484# 'file_magic [regex]' -- check by looking for files in library path
3485# which responds to the $file_magic_cmd with a given egrep regex.
3486# If you have `file' or equivalent on your system and you're not sure
3487# whether `pass_all' will *always* work, you probably want this one.
3488
55c80943
NC
3489case $host_os in
3490aix*)
ac48eca1
AO
3491 lt_cv_deplibs_check_method=pass_all
3492 ;;
3493
3494beos*)
3495 lt_cv_deplibs_check_method=pass_all
3496 ;;
3497
3498bsdi4*)
55c80943
NC
3499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3500 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3501 lt_cv_file_magic_test_file=/shlib/libc.so
3502 ;;
3503
d64552c5 3504cygwin* | mingw* |pw32*)
ac48eca1 3505 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3506 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3507 ;;
3508
55c80943 3509darwin* | rhapsody*)
d70c5fc7 3510 # this will be overwritten by pass_all, but leave it in just in case
55c80943 3511 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3512 lt_cv_file_magic_cmd='/usr/bin/file -L'
3513 case "$host_os" in
3514 rhapsody* | darwin1.012)
3515 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3516 ;;
3517 *) # Darwin 1.3 on
3518 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3519 ;;
3520 esac
d70c5fc7 3521 lt_cv_deplibs_check_method=pass_all
55c80943
NC
3522 ;;
3523
5464f5a1 3524freebsd* | kfreebsd*-gnu)
ac48eca1 3525 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3526 case $host_cpu in
ac48eca1 3527 i*86 )
90f2472a
AO
3528 # Not sure whether the presence of OpenBSD here was a mistake.
3529 # Let's accept both of them until this is cleared up.
55c80943
NC
3530 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3531 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3533 ;;
3534 esac
3535 else
3536 lt_cv_deplibs_check_method=pass_all
3537 fi
3538 ;;
3539
3540gnu*)
3541 lt_cv_deplibs_check_method=pass_all
3542 ;;
3543
55c80943 3544hpux10.20*|hpux11*)
4867be41
DJ
3545 case $host_cpu in
3546 hppa*)
3547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3548 lt_cv_file_magic_cmd=/usr/bin/file
3549 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3550 ;;
3551 ia64*)
3552 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3553 lt_cv_file_magic_cmd=/usr/bin/file
3554 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3555 ;;
3556 esac
ac48eca1
AO
3557 ;;
3558
3559irix5* | irix6*)
55c80943 3560 case $host_os in
ac48eca1
AO
3561 irix5*)
3562 # this will be overridden with pass_all, but let us keep it just in case
3563 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3564 ;;
3565 *)
55c80943 3566 case $LD in
ac48eca1
AO
3567 *-32|*"-32 ") libmagic=32-bit;;
3568 *-n32|*"-n32 ") libmagic=N32;;
3569 *-64|*"-64 ") libmagic=64-bit;;
3570 *) libmagic=never-match;;
3571 esac
3572 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3573 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3574 ;;
ac48eca1
AO
3575 esac
3576 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3577 lt_cv_deplibs_check_method=pass_all
3578 ;;
3579
3580# This must be Linux ELF.
90f2472a 3581linux-gnu*)
d70c5fc7 3582 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
3583 ;;
3584
5464f5a1 3585netbsd* | knetbsd*-gnu)
55c80943 3586 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3587 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3588 else
b3baf5d0 3589 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3590 fi
55c80943
NC
3591 ;;
3592
3593newsos6)
3594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3595 lt_cv_file_magic_cmd=/usr/bin/file
3596 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3597 ;;
3598
3599osf3* | osf4* | osf5*)
3600 # this will be overridden with pass_all, but let us keep it just in case
3601 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3602 lt_cv_file_magic_test_file=/shlib/libc.so
3603 lt_cv_deplibs_check_method=pass_all
3604 ;;
3605
3606sco3.2v5*)
3607 lt_cv_deplibs_check_method=pass_all
3608 ;;
3609
3610solaris*)
3611 lt_cv_deplibs_check_method=pass_all
3612 lt_cv_file_magic_test_file=/lib/libc.so
3613 ;;
3614
6be7c12c
AO
3615sysv5uw[78]* | sysv4*uw2*)
3616 lt_cv_deplibs_check_method=pass_all
3617 ;;
3618
ac48eca1 3619sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3620 case $host_vendor in
ac48eca1
AO
3621 ncr)
3622 lt_cv_deplibs_check_method=pass_all
3623 ;;
3624 motorola)
55c80943
NC
3625 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]'
3626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3627 ;;
3628 esac
3629 ;;
3630esac
3631
3632fi
5464f5a1
NN
3633echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3634echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3635file_magic_cmd=$lt_cv_file_magic_cmd
3636deplibs_check_method=$lt_cv_deplibs_check_method
3637
6be7c12c
AO
3638
3639
6be7c12c
AO
3640
3641# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3642
d70c5fc7
NC
3643# find the maximum length of command line arguments
3644echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3645echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3646if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648else
3649 i=0
3650 teststring="ABCD"
3651
3652 case $build_os in
3653 msdosdjgpp*)
3654 # On DJGPP, this test can blow up pretty badly due to problems in libc
3655 # (any single argument exceeding 2000 bytes causes a buffer overrun
3656 # during glob expansion). Even if it were fixed, the result of this
3657 # check would be larger than it should be.
3658 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3659 ;;
3660
3661 cygwin* | mingw*)
3662 # On Win9x/ME, this test blows up -- it succeeds, but takes
3663 # about 5 minutes as the teststring grows exponentially.
3664 # Worse, since 9x/ME are not pre-emptively multitasking,
3665 # you end up with a "frozen" computer, even though with patience
3666 # the test eventually succeeds (with a max line length of 256k).
3667 # Instead, let's just punt: use the minimum linelength reported by
3668 # all of the supported platforms: 8192 (on NT/2K/XP).
3669 lt_cv_sys_max_cmd_len=8192;
3670 ;;
3671
3672 amigaos*)
3673 # On AmigaOS with pdksh, this test takes hours, literally.
3674 # So we just punt and use a minimum line length of 8192.
3675 lt_cv_sys_max_cmd_len=8192;
3676 ;;
3677
3678 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3679 # This has been around since 386BSD, at least. Likely further.
3680 if test -x /sbin/sysctl; then
3681 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3682 elif test -x /usr/sbin/sysctl; then
3683 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3684 else
3685 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3686 fi
3687 # And add a safety zone
3688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3689 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3690 ;;
3691 esac
3692
3693fi
3694
3695if test -n "$lt_cv_sys_max_cmd_len" ; then
3696 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3697echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3698else
3699 echo "$as_me:$LINENO: result: none" >&5
3700echo "${ECHO_T}none" >&6
3701fi
3702
3703
6be7c12c
AO
3704# Only perform the check for file, if the check method requires it
3705case $deplibs_check_method in
3706file_magic*)
3707 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3708 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3709echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3710if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3712else
3713 case $MAGIC_CMD in
3714 /*)
3715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3716 ;;
3717 ?:/*)
3718 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3719 ;;
3720 *)
d64552c5 3721 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3723 ac_dummy="/usr/bin:$PATH"
3724 for ac_dir in $ac_dummy; do
3725 test -z "$ac_dir" && ac_dir=.
3726 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3727 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3728 if test -n "$file_magic_test_file"; then
55c80943 3729 case $deplibs_check_method in
ac48eca1
AO
3730 "file_magic "*)
3731 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3733 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3734 egrep "$file_magic_regex" > /dev/null; then
3735 :
3736 else
3737 cat <<EOF 1>&2
3738
3739*** Warning: the command libtool uses to detect shared libraries,
3740*** $file_magic_cmd, produces output that libtool cannot recognize.
3741*** The result is that libtool may fail to recognize shared libraries
3742*** as such. This will affect the creation of libtool libraries that
3743*** depend on shared libraries, but programs linked with such libtool
3744*** libraries will work regardless of this problem. Nevertheless, you
3745*** may want to report the problem to your system manager and/or to
3746*** bug-libtool@gnu.org
3747
3748EOF
3749 fi ;;
3750 esac
3751 fi
3752 break
3753 fi
3754 done
3755 IFS="$ac_save_ifs"
d64552c5 3756 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3757 ;;
3758esac
3759fi
3760
d64552c5
AO
3761MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3762if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3763 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3764echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3765else
5464f5a1
NN
3766 echo "$as_me:$LINENO: result: no" >&5
3767echo "${ECHO_T}no" >&6
ac48eca1
AO
3768fi
3769
d64552c5 3770if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3771 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3772 echo "$as_me:$LINENO: checking for file" >&5
3773echo $ECHO_N "checking for file... $ECHO_C" >&6
3774if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3776else
55c80943 3777 case $MAGIC_CMD in
ac48eca1 3778 /*)
d64552c5 3779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3780 ;;
3781 ?:/*)
d64552c5 3782 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3783 ;;
3784 *)
d64552c5 3785 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3787 ac_dummy="/usr/bin:$PATH"
3788 for ac_dir in $ac_dummy; do
3789 test -z "$ac_dir" && ac_dir=.
3790 if test -f $ac_dir/file; then
d64552c5 3791 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3792 if test -n "$file_magic_test_file"; then
55c80943 3793 case $deplibs_check_method in
ac48eca1
AO
3794 "file_magic "*)
3795 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3797 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3798 egrep "$file_magic_regex" > /dev/null; then
3799 :
3800 else
3801 cat <<EOF 1>&2
3802
3803*** Warning: the command libtool uses to detect shared libraries,
3804*** $file_magic_cmd, produces output that libtool cannot recognize.
3805*** The result is that libtool may fail to recognize shared libraries
3806*** as such. This will affect the creation of libtool libraries that
3807*** depend on shared libraries, but programs linked with such libtool
3808*** libraries will work regardless of this problem. Nevertheless, you
3809*** may want to report the problem to your system manager and/or to
3810*** bug-libtool@gnu.org
3811
3812EOF
3813 fi ;;
3814 esac
3815 fi
3816 break
3817 fi
3818 done
3819 IFS="$ac_save_ifs"
d64552c5 3820 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3821 ;;
3822esac
3823fi
3824
d64552c5
AO
3825MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3826if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3827 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3828echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3829else
5464f5a1
NN
3830 echo "$as_me:$LINENO: result: no" >&5
3831echo "${ECHO_T}no" >&6
ac48eca1
AO
3832fi
3833
3834 else
d64552c5 3835 MAGIC_CMD=:
ac48eca1
AO
3836 fi
3837fi
3838
3839 fi
3840 ;;
3841esac
3842
5464f5a1
NN
3843if test -n "$ac_tool_prefix"; then
3844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3845set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3846echo "$as_me:$LINENO: checking for $ac_word" >&5
3847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3848if test "${ac_cv_prog_RANLIB+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3850else
3851 if test -n "$RANLIB"; then
3852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3853else
5464f5a1
NN
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 break 2
3864 fi
3865done
3866done
3867
ac48eca1
AO
3868fi
3869fi
5464f5a1 3870RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3871if test -n "$RANLIB"; then
5464f5a1
NN
3872 echo "$as_me:$LINENO: result: $RANLIB" >&5
3873echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3874else
5464f5a1
NN
3875 echo "$as_me:$LINENO: result: no" >&5
3876echo "${ECHO_T}no" >&6
ac48eca1
AO
3877fi
3878
5464f5a1 3879fi
ac48eca1 3880if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3881 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3882 # Extract the first word of "ranlib", so it can be a program name with args.
3883set dummy ranlib; ac_word=$2
5464f5a1
NN
3884echo "$as_me:$LINENO: checking for $ac_word" >&5
3885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3888else
5464f5a1
NN
3889 if test -n "$ac_ct_RANLIB"; then
3890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3891else
5464f5a1
NN
3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_ac_ct_RANLIB="ranlib"
3900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903done
3904done
3905
3906 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3907fi
3908fi
5464f5a1
NN
3909ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3910if test -n "$ac_ct_RANLIB"; then
3911 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3912echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3913else
5464f5a1
NN
3914 echo "$as_me:$LINENO: result: no" >&5
3915echo "${ECHO_T}no" >&6
ac48eca1
AO
3916fi
3917
5464f5a1 3918 RANLIB=$ac_ct_RANLIB
ac48eca1 3919else
5464f5a1 3920 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3921fi
3922
5464f5a1
NN
3923if test -n "$ac_tool_prefix"; then
3924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3925set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3926echo "$as_me:$LINENO: checking for $ac_word" >&5
3927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3928if test "${ac_cv_prog_STRIP+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3930else
3931 if test -n "$STRIP"; then
3932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3933else
5464f5a1
NN
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3944 fi
3945done
3946done
3947
ac48eca1
AO
3948fi
3949fi
5464f5a1 3950STRIP=$ac_cv_prog_STRIP
ac48eca1 3951if test -n "$STRIP"; then
5464f5a1
NN
3952 echo "$as_me:$LINENO: result: $STRIP" >&5
3953echo "${ECHO_T}$STRIP" >&6
ac48eca1 3954else
5464f5a1
NN
3955 echo "$as_me:$LINENO: result: no" >&5
3956echo "${ECHO_T}no" >&6
ac48eca1
AO
3957fi
3958
5464f5a1 3959fi
ac48eca1 3960if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3961 ac_ct_STRIP=$STRIP
ac48eca1
AO
3962 # Extract the first word of "strip", so it can be a program name with args.
3963set dummy strip; ac_word=$2
5464f5a1
NN
3964echo "$as_me:$LINENO: checking for $ac_word" >&5
3965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3968else
5464f5a1
NN
3969 if test -n "$ac_ct_STRIP"; then
3970 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3971else
5464f5a1
NN
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_ac_ct_STRIP="strip"
3980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983done
3984done
3985
3986 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3987fi
3988fi
5464f5a1
NN
3989ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3990if test -n "$ac_ct_STRIP"; then
3991 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3992echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3993else
5464f5a1
NN
3994 echo "$as_me:$LINENO: result: no" >&5
3995echo "${ECHO_T}no" >&6
ac48eca1
AO
3996fi
3997
5464f5a1 3998 STRIP=$ac_ct_STRIP
ac48eca1 3999else
5464f5a1 4000 STRIP="$ac_cv_prog_STRIP"
ac48eca1 4001fi
252b5132 4002
6be7c12c 4003
252b5132 4004# Check for any special flags to pass to ltconfig.
b2ef150d 4005libtool_flags="--cache-file=$cache_file"
252b5132
RH
4006test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4007test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 4008test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
4009test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4010test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 4011
6be7c12c 4012
a74801ba
ILT
4013# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4014if test "${enable_libtool_lock+set}" = set; then
4015 enableval="$enable_libtool_lock"
a74801ba 4016
5464f5a1 4017fi;
a74801ba
ILT
4018test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4019test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4020
5464f5a1 4021
ac48eca1
AO
4022# Check whether --with-pic or --without-pic was given.
4023if test "${with_pic+set}" = set; then
4024 withval="$with_pic"
4025 pic_mode="$withval"
4026else
5464f5a1
NN
4027 pic_mode=default
4028fi;
ac48eca1
AO
4029test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4030test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4031
252b5132
RH
4032# Some flags need to be propagated to the compiler or linker for good
4033# libtool support.
55c80943 4034case $host in
252b5132
RH
4035*-*-irix6*)
4036 # Find out which ABI we are using.
a1ac8190 4037 echo '#line 4037 "configure"' > conftest.$ac_ext
5464f5a1
NN
4038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039 (eval $ac_compile) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; then
6a457e5c
NC
4043 if test "$lt_cv_prog_gnu_ld" = yes; then
4044 case `/usr/bin/file conftest.$ac_objext` in
4045 *32-bit*)
4046 LD="${LD-ld} -melf32bsmip"
4047 ;;
4048 *N32*)
4049 LD="${LD-ld} -melf32bmipn32"
4050 ;;
4051 *64-bit*)
4052 LD="${LD-ld} -melf64bmip"
4053 ;;
4054 esac
4055 else
55c80943 4056 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
4057 *32-bit*)
4058 LD="${LD-ld} -32"
4059 ;;
4060 *N32*)
4061 LD="${LD-ld} -n32"
4062 ;;
4063 *64-bit*)
4064 LD="${LD-ld} -64"
4065 ;;
4066 esac
6a457e5c 4067 fi
252b5132
RH
4068 fi
4069 rm -rf conftest*
4070 ;;
4071
4867be41
DJ
4072ia64-*-hpux*)
4073 # Find out which ABI we are using.
4074 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; then
4867be41
DJ
4080 case "`/usr/bin/file conftest.o`" in
4081 *ELF-32*)
4082 HPUX_IA64_MODE="32"
4083 ;;
4084 *ELF-64*)
4085 HPUX_IA64_MODE="64"
4086 ;;
4087 esac
4088 fi
4089 rm -rf conftest*
4090 ;;
4091
65fe5dd6 4092x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
d70c5fc7
NC
4093 # Find out which ABI we are using.
4094 echo 'int i;' > conftest.$ac_ext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096 (eval $ac_compile) 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; then
4100 case "`/usr/bin/file conftest.o`" in
4101 *32-bit*)
4102 case $host in
65fe5dd6 4103 x86_64-*linux*)
d70c5fc7
NC
4104 LD="${LD-ld} -m elf_i386"
4105 ;;
4106 ppc64-*linux*|powerpc64-*linux*)
4107 LD="${LD-ld} -m elf32ppclinux"
4108 ;;
4109 s390x-*linux*)
4110 LD="${LD-ld} -m elf_s390"
4111 ;;
4112 sparc64-*linux*)
4113 LD="${LD-ld} -m elf32_sparc"
4114 ;;
4115 esac
4116 ;;
4117 *64-bit*)
4118 case $host in
65fe5dd6 4119 x86_64-*linux*)
d70c5fc7
NC
4120 LD="${LD-ld} -m elf_x86_64"
4121 ;;
4122 ppc*-*linux*|powerpc*-*linux*)
4123 LD="${LD-ld} -m elf64ppc"
4124 ;;
4125 s390*-*linux*)
4126 LD="${LD-ld} -m elf64_s390"
4127 ;;
4128 sparc*-*linux*)
4129 LD="${LD-ld} -m elf64_sparc"
4130 ;;
4131 esac
4132 ;;
4133 esac
4134 fi
4135 rm -rf conftest*
4136 ;;
4137
252b5132
RH
4138*-*-sco3.2v5*)
4139 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4140 SAVE_CFLAGS="$CFLAGS"
252b5132 4141 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4142 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4143echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4144if test "${lt_cv_cc_needs_belf+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4146else
5464f5a1
NN
4147
4148
ac48eca1 4149 ac_ext=c
ac48eca1 4150ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4154
5464f5a1
NN
4155 cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h. */
b2ef150d 4161
5464f5a1
NN
4162int
4163main ()
4164{
b2ef150d 4165
5464f5a1
NN
4166 ;
4167 return 0;
4168}
4169_ACEOF
4170rm -f conftest.$ac_objext conftest$ac_exeext
4171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4172 (eval $ac_link) 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
49c96104
SE
4179 { ac_try='test -z "$ac_c_werror_flag"
4180 || test ! -s conftest.err'
5464f5a1
NN
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try='test -s conftest$ac_exeext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
b2ef150d
ILT
4192 lt_cv_cc_needs_belf=yes
4193else
5464f5a1
NN
4194 echo "$as_me: failed program was:" >&5
4195sed 's/^/| /' conftest.$ac_ext >&5
4196
4197lt_cv_cc_needs_belf=no
b2ef150d 4198fi
5464f5a1
NN
4199rm -f conftest.err conftest.$ac_objext \
4200 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4201 ac_ext=c
ac48eca1 4202ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4206
b2ef150d 4207fi
5464f5a1
NN
4208echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4209echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4212 CFLAGS="$SAVE_CFLAGS"
4213 fi
252b5132
RH
4214 ;;
4215
6be7c12c 4216
252b5132
RH
4217esac
4218
6be7c12c 4219
b2ef150d 4220# Save cache, so that ltconfig can load it
5464f5a1 4221cat >confcache <<\_ACEOF
b2ef150d
ILT
4222# This file is a shell script that caches the results of configure
4223# tests run on this system so they can be shared between configure
5464f5a1
NN
4224# scripts and configure runs, see configure's option --config-cache.
4225# It is not useful on other systems. If it contains results you don't
4226# want to keep, you may remove or edit it.
b2ef150d 4227#
5464f5a1
NN
4228# config.status only pays attention to the cache file if you give it
4229# the --recheck option to rerun configure.
b2ef150d 4230#
5464f5a1
NN
4231# `ac_cv_env_foo' variables (set or unset) will be overridden when
4232# loading this file, other *unset* `ac_cv_foo' will be assigned the
4233# following values.
4234
4235_ACEOF
4236
b2ef150d
ILT
4237# The following way of writing the cache mishandles newlines in values,
4238# but we know of no workaround that is simple, portable, and efficient.
4239# So, don't put newlines in cache variables' values.
4240# Ultrix sh set writes to stderr and can't be redirected directly,
4241# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4242{
4243 (set) 2>&1 |
4244 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4245 *ac_space=\ *)
4246 # `set' does not quote correctly, so add quotes (double-quote
4247 # substitution turns \\\\ into \\, and sed turns \\ into \).
4248 sed -n \
4249 "s/'/'\\\\''/g;
4250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4251 ;;
4252 *)
4253 # `set' quotes correctly as required by POSIX, so do not add quotes.
4254 sed -n \
4255 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4256 ;;
4257 esac;
4258} |
4259 sed '
4260 t clear
4261 : clear
4262 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4263 t end
4264 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4265 : end' >>confcache
4266if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4267 if test -w $cache_file; then
5464f5a1
NN
4268 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4269 cat confcache >$cache_file
b2ef150d
ILT
4270 else
4271 echo "not updating unwritable cache $cache_file"
4272 fi
4273fi
4274rm -f confcache
4275
252b5132 4276# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4277AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4278MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4279LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4280AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4281objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4282deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4283${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4284$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4285|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4286echo "$as_me: error: libtool configure failed" >&2;}
4287 { (exit 1); exit 1; }; }
252b5132 4288
b2ef150d
ILT
4289# Reload cache, that may have been modified by ltconfig
4290if test -r "$cache_file"; then
5464f5a1
NN
4291 # Some versions of bash will fail to source /dev/null (special
4292 # files actually), so we avoid doing that.
4293 if test -f "$cache_file"; then
4294 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4295echo "$as_me: loading cache $cache_file" >&6;}
4296 case $cache_file in
4297 [\\/]* | ?:[\\/]* ) . $cache_file;;
4298 *) . ./$cache_file;;
4299 esac
4300 fi
b2ef150d 4301else
5464f5a1
NN
4302 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4303echo "$as_me: creating cache $cache_file" >&6;}
4304 >$cache_file
b2ef150d
ILT
4305fi
4306
6be7c12c 4307
b2ef150d 4308# This can be used to rebuild libtool when needed
ac48eca1 4309LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4310
4311# Always use our own libtool.
4312LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4313
252b5132
RH
4314# Redirect the config.log output again, so that the ltconfig log is not
4315# clobbered by the next message.
4316exec 5>>./config.log
4317
6be7c12c 4318
5464f5a1
NN
4319
4320
4321
4322
6be7c12c 4323
252b5132
RH
4324# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4325if test "${enable_64_bit_bfd+set}" = set; then
4326 enableval="$enable_64_bit_bfd"
4327 case "${enableval}" in
4328 yes) want64=true ;;
4329 no) want64=false ;;
5464f5a1
NN
4330 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4331echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4332 { (exit 1); exit 1; }; } ;;
252b5132
RH
4333esac
4334else
4335 want64=false
5464f5a1 4336fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4337if test "${enable_targets+set}" = set; then
4338 enableval="$enable_targets"
4339 case "${enableval}" in
5464f5a1
NN
4340 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4341echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4342 { (exit 1); exit 1; }; }
252b5132
RH
4343 ;;
4344 no) enable_targets= ;;
4345 *) enable_targets=$enableval ;;
4346esac
5464f5a1 4347fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4348if test "${enable_commonbfdlib+set}" = set; then
4349 enableval="$enable_commonbfdlib"
4350 case "${enableval}" in
4351 yes) commonbfdlib=true ;;
4352 no) commonbfdlib=false ;;
5464f5a1
NN
4353 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4354echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4355 { (exit 1); exit 1; }; } ;;
252b5132 4356esac
5464f5a1 4357fi;
252b5132
RH
4358# Check whether --with-mmap or --without-mmap was given.
4359if test "${with_mmap+set}" = set; then
4360 withval="$with_mmap"
4361 case "${withval}" in
4362 yes) want_mmap=true ;;
4363 no) want_mmap=false ;;
5464f5a1
NN
4364 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4365echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4366 { (exit 1); exit 1; }; } ;;
252b5132
RH
4367esac
4368else
4369 want_mmap=false
5464f5a1 4370fi;
6ec7057a
RH
4371# Check whether --enable-secureplt or --disable-secureplt was given.
4372if test "${enable_secureplt+set}" = set; then
4373 enableval="$enable_secureplt"
4374 case "${enableval}" in
4375 yes) use_secureplt=true ;;
4376 no) use_secureplt=false ;;
4377 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4378echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4379 { (exit 1); exit 1; }; } ;;
4380esac
4381else
4382 use_secureplt=false
4383fi; if test $use_secureplt = true; then
4384
4385cat >>confdefs.h <<\_ACEOF
4386#define USE_SECUREPLT 1
4387_ACEOF
4388
4389fi
4390
a1ac8190 4391
92f01d61
JM
4392
4393# Check whether --with-pkgversion or --without-pkgversion was given.
4394if test "${with_pkgversion+set}" = set; then
4395 withval="$with_pkgversion"
4396 case "$withval" in
a1ac8190 4397 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
92f01d61
JM
4398echo "$as_me: error: package version not specified" >&2;}
4399 { (exit 1); exit 1; }; } ;;
a1ac8190
JM
4400 no) PKGVERSION= ;;
4401 *) PKGVERSION="($withval) " ;;
4402 esac
92f01d61 4403else
066c2a57 4404 PKGVERSION="(GNU Binutils) "
92f01d61
JM
4405
4406fi;
4407
4408
a1ac8190 4409
c428fa83
L
4410
4411# Check whether --with-bugurl or --without-bugurl was given.
4412if test "${with_bugurl+set}" = set; then
4413 withval="$with_bugurl"
4414 case "$withval" in
a1ac8190 4415 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
c428fa83
L
4416echo "$as_me: error: bug URL not specified" >&2;}
4417 { (exit 1); exit 1; }; } ;;
5bd8253d 4418 no) BUGURL=
a1ac8190 4419 ;;
5bd8253d 4420 *) BUGURL="$withval"
a1ac8190
JM
4421 ;;
4422 esac
c428fa83 4423else
5bd8253d 4424 BUGURL="http://www.sourceware.org/bugzilla/"
c428fa83
L
4425
4426fi;
5bd8253d
L
4427 case ${BUGURL} in
4428 "")
4429 REPORT_BUGS_TO=
4430 REPORT_BUGS_TEXI=
4431 ;;
4432 *)
4433 REPORT_BUGS_TO="<$BUGURL>"
4434 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4435 ;;
4436 esac;
c428fa83
L
4437
4438
4439
9e9b66a9 4440
a1ac8190 4441
49c96104 4442GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4443
569acd2c
NC
4444# Check whether --enable-werror or --disable-werror was given.
4445if test "${enable_werror+set}" = set; then
4446 enableval="$enable_werror"
1ad12f97
NC
4447 case "${enableval}" in
4448 yes | y) ERROR_ON_WARNING="yes" ;;
4449 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4450 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4451echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4452 { (exit 1); exit 1; }; } ;;
4453 esac
4454fi;
4455
9e9b66a9
AM
4456# Enable -Werror by default when using gcc
4457if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4458 ERROR_ON_WARNING=yes
4459fi
4460
4461NO_WERROR=
4462if test "${ERROR_ON_WARNING}" = yes ; then
49c96104 4463 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 4464 NO_WERROR="-Wno-error"
1ad12f97
NC
4465fi
4466
49c96104
SE
4467if test "${GCC}" = yes ; then
4468 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4469fi
4470
a2d91340
AC
4471# Check whether --enable-build-warnings or --disable-build-warnings was given.
4472if test "${enable_build_warnings+set}" = set; then
4473 enableval="$enable_build_warnings"
4474 case "${enableval}" in
49c96104
SE
4475 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4476 no) if test "${GCC}" = yes ; then
4477 WARN_CFLAGS="-w"
4478 fi;;
a2d91340 4479 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4480 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4481 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4482 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4483 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4484esac
9e9b66a9
AM
4485fi;
4486
4487if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4488 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4489fi
4490
4491
9e9b66a9
AM
4492
4493
4494
5464f5a1 4495 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4496
252b5132
RH
4497
4498if test -z "$target" ; then
5464f5a1
NN
4499 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4500echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4501 { (exit 1); exit 1; }; }
252b5132 4502fi
252b5132 4503
5464f5a1
NN
4504echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4505echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4506 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4507if test "${enable_maintainer_mode+set}" = set; then
4508 enableval="$enable_maintainer_mode"
4509 USE_MAINTAINER_MODE=$enableval
4510else
4511 USE_MAINTAINER_MODE=no
5464f5a1
NN
4512fi;
4513 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4514echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4515
252b5132
RH
4516
4517if test $USE_MAINTAINER_MODE = yes; then
4518 MAINTAINER_MODE_TRUE=
4519 MAINTAINER_MODE_FALSE='#'
4520else
4521 MAINTAINER_MODE_TRUE='#'
4522 MAINTAINER_MODE_FALSE=
4523fi
f5385ebf 4524
252b5132 4525 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4526
5464f5a1 4527
d5fbea21
DJ
4528
4529
4530if false; then
4531 GENINSRC_NEVER_TRUE=
4532 GENINSRC_NEVER_FALSE='#'
4533else
4534 GENINSRC_NEVER_TRUE='#'
4535 GENINSRC_NEVER_FALSE=
4536fi
4537
24443139
AS
4538 case ${build_alias} in
4539 "") build_noncanonical=${build} ;;
4540 *) build_noncanonical=${build_alias} ;;
4541esac
4542
4543 case ${host_alias} in
4544 "") host_noncanonical=${build_noncanonical} ;;
4545 *) host_noncanonical=${host_alias} ;;
4546esac
4547
4548 case ${target_alias} in
4549 "") target_noncanonical=${host_noncanonical} ;;
4550 *) target_noncanonical=${target_alias} ;;
4551esac
4552
5464f5a1
NN
4553echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4554echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4555 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4556if test "${enable_install_libbfd+set}" = set; then
4557 enableval="$enable_install_libbfd"
4558 install_libbfd_p=$enableval
4559else
66e25bab 4560 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4561 install_libbfd_p=yes
4562 else
4563 install_libbfd_p=no
4564 fi
5464f5a1
NN
4565fi;
4566 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4567echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4568
a703a6ea
AM
4569
4570if test $install_libbfd_p = yes; then
4571 INSTALL_LIBBFD_TRUE=
4572 INSTALL_LIBBFD_FALSE='#'
4573else
4574 INSTALL_LIBBFD_TRUE='#'
4575 INSTALL_LIBBFD_FALSE=
4576fi
f5385ebf 4577
5464f5a1 4578 # Need _noncanonical variables for this.
24443139
AS
4579
4580
4581
4582
a703a6ea
AM
4583 # libbfd.a is a host library containing target dependent code
4584 bfdlibdir='$(libdir)'
4585 bfdincludedir='$(includedir)'
4586 if test "${host}" != "${target}"; then
5464f5a1
NN
4587 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4588 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4589 fi
a703a6ea
AM
4590
4591
252b5132
RH
4592
4593
5464f5a1
NN
4594
4595
4596host64=false
4597target64=false
4598bfd_default_target_size=32
4599
4600# host stuff:
4601
4602ac_ext=c
4603ac_cpp='$CPP $CPPFLAGS'
4604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4606ac_compiler_gnu=$ac_cv_c_compiler_gnu
4607if test -n "$ac_tool_prefix"; then
4608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4609set dummy ${ac_tool_prefix}gcc; ac_word=$2
4610echo "$as_me:$LINENO: checking for $ac_word" >&5
4611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4612if test "${ac_cv_prog_CC+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4614else
5464f5a1
NN
4615 if test -n "$CC"; then
4616 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4617else
5464f5a1
NN
4618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
6be7c12c 4628 fi
5464f5a1
NN
4629done
4630done
4631
252b5132 4632fi
b3baf5d0 4633fi
5464f5a1
NN
4634CC=$ac_cv_prog_CC
4635if test -n "$CC"; then
4636 echo "$as_me:$LINENO: result: $CC" >&5
4637echo "${ECHO_T}$CC" >&6
4638else
4639 echo "$as_me:$LINENO: result: no" >&5
4640echo "${ECHO_T}no" >&6
4641fi
252b5132 4642
5464f5a1
NN
4643fi
4644if test -z "$ac_cv_prog_CC"; then
4645 ac_ct_CC=$CC
4646 # Extract the first word of "gcc", so it can be a program name with args.
4647set dummy gcc; ac_word=$2
4648echo "$as_me:$LINENO: checking for $ac_word" >&5
4649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 if test -n "$ac_ct_CC"; then
4654 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_ac_ct_CC="gcc"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667done
4668done
252b5132 4669
5464f5a1
NN
4670fi
4671fi
4672ac_ct_CC=$ac_cv_prog_ac_ct_CC
4673if test -n "$ac_ct_CC"; then
4674 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4675echo "${ECHO_T}$ac_ct_CC" >&6
4676else
4677 echo "$as_me:$LINENO: result: no" >&5
4678echo "${ECHO_T}no" >&6
4679fi
252b5132 4680
5464f5a1
NN
4681 CC=$ac_ct_CC
4682else
4683 CC="$ac_cv_prog_CC"
4684fi
252b5132 4685
5464f5a1
NN
4686if test -z "$CC"; then
4687 if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4689set dummy ${ac_tool_prefix}cc; ac_word=$2
4690echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692if test "${ac_cv_prog_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 if test -n "$CC"; then
4696 ac_cv_prog_CC="$CC" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705 ac_cv_prog_CC="${ac_tool_prefix}cc"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710done
6be7c12c 4711
5464f5a1
NN
4712fi
4713fi
4714CC=$ac_cv_prog_CC
4715if test -n "$CC"; then
4716 echo "$as_me:$LINENO: result: $CC" >&5
4717echo "${ECHO_T}$CC" >&6
4718else
4719 echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6
4721fi
4722
4723fi
4724if test -z "$ac_cv_prog_CC"; then
4725 ac_ct_CC=$CC
4726 # Extract the first word of "cc", so it can be a program name with args.
4727set dummy cc; ac_word=$2
4728echo "$as_me:$LINENO: checking for $ac_word" >&5
4729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4730if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 if test -n "$ac_ct_CC"; then
4734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743 ac_cv_prog_ac_ct_CC="cc"
4744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747done
4748done
4749
4750fi
4751fi
4752ac_ct_CC=$ac_cv_prog_ac_ct_CC
4753if test -n "$ac_ct_CC"; then
4754 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4755echo "${ECHO_T}$ac_ct_CC" >&6
4756else
4757 echo "$as_me:$LINENO: result: no" >&5
4758echo "${ECHO_T}no" >&6
4759fi
4760
4761 CC=$ac_ct_CC
4762else
4763 CC="$ac_cv_prog_CC"
4764fi
4765
4766fi
4767if test -z "$CC"; then
4768 # Extract the first word of "cc", so it can be a program name with args.
4769set dummy cc; ac_word=$2
4770echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4772if test "${ac_cv_prog_CC+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4774else
4775 if test -n "$CC"; then
4776 ac_cv_prog_CC="$CC" # Let the user override the test.
4777else
5464f5a1
NN
4778 ac_prog_rejected=no
4779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4787 ac_prog_rejected=yes
4788 continue
4789 fi
4790 ac_cv_prog_CC="cc"
4791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 break 2
4793 fi
4794done
4795done
4796
4797if test $ac_prog_rejected = yes; then
4798 # We found a bogon in the path, so make sure we never use it.
4799 set dummy $ac_cv_prog_CC
4800 shift
4801 if test $# != 0; then
4802 # We chose a different compiler from the bogus one.
4803 # However, it has the same basename, so the bogon will be chosen
4804 # first if we set CC to just the basename; use the full file name.
4805 shift
4806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4807 fi
4808fi
4809fi
4810fi
4811CC=$ac_cv_prog_CC
4812if test -n "$CC"; then
4813 echo "$as_me:$LINENO: result: $CC" >&5
4814echo "${ECHO_T}$CC" >&6
4815else
4816 echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
4818fi
4819
4820fi
4821if test -z "$CC"; then
4822 if test -n "$ac_tool_prefix"; then
4823 for ac_prog in cl
4824 do
4825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4827echo "$as_me:$LINENO: checking for $ac_word" >&5
4828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829if test "${ac_cv_prog_CC+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832 if test -n "$CC"; then
4833 ac_cv_prog_CC="$CC" # Let the user override the test.
4834else
4835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4845 fi
4846done
4847done
4848
4849fi
4850fi
4851CC=$ac_cv_prog_CC
4852if test -n "$CC"; then
4853 echo "$as_me:$LINENO: result: $CC" >&5
4854echo "${ECHO_T}$CC" >&6
4855else
4856 echo "$as_me:$LINENO: result: no" >&5
4857echo "${ECHO_T}no" >&6
4858fi
4859
4860 test -n "$CC" && break
6be7c12c 4861 done
252b5132 4862fi
5464f5a1
NN
4863if test -z "$CC"; then
4864 ac_ct_CC=$CC
4865 for ac_prog in cl
4866do
4867 # Extract the first word of "$ac_prog", so it can be a program name with args.
4868set dummy $ac_prog; ac_word=$2
4869echo "$as_me:$LINENO: checking for $ac_word" >&5
4870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4873else
4874 if test -n "$ac_ct_CC"; then
4875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4876else
4877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH
4879do
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884 ac_cv_prog_ac_ct_CC="$ac_prog"
4885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4887 fi
4888done
4889done
4890
4891fi
4892fi
4893ac_ct_CC=$ac_cv_prog_ac_ct_CC
4894if test -n "$ac_ct_CC"; then
4895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4896echo "${ECHO_T}$ac_ct_CC" >&6
4897else
4898 echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6
4900fi
4901
4902 test -n "$ac_ct_CC" && break
4903done
4904
4905 CC=$ac_ct_CC
4906fi
4907
4908fi
4909
4910
4911test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4912See \`config.log' for more details." >&5
4913echo "$as_me: error: no acceptable C compiler found in \$PATH
4914See \`config.log' for more details." >&2;}
4915 { (exit 1); exit 1; }; }
4916
4917# Provide some information about the compiler.
4918echo "$as_me:$LINENO:" \
4919 "checking for C compiler version" >&5
4920ac_compiler=`set X $ac_compile; echo $2`
4921{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4922 (eval $ac_compiler --version </dev/null >&5) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }
4926{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4927 (eval $ac_compiler -v </dev/null >&5) 2>&5
4928 ac_status=$?
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }
4931{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4932 (eval $ac_compiler -V </dev/null >&5) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }
4936
4937echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4938echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4939if test "${ac_cv_c_compiler_gnu+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941else
4942 cat >conftest.$ac_ext <<_ACEOF
4943/* confdefs.h. */
4944_ACEOF
4945cat confdefs.h >>conftest.$ac_ext
4946cat >>conftest.$ac_ext <<_ACEOF
4947/* end confdefs.h. */
4948
4949int
4950main ()
4951{
4952#ifndef __GNUC__
4953 choke me
4954#endif
4955
4956 ;
4957 return 0;
4958}
4959_ACEOF
4960rm -f conftest.$ac_objext
4961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>conftest.er1
4963 ac_status=$?
4964 grep -v '^ *+' conftest.er1 >conftest.err
4965 rm -f conftest.er1
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
49c96104
SE
4969 { ac_try='test -z "$ac_c_werror_flag"
4970 || test ! -s conftest.err'
5464f5a1
NN
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 ac_compiler_gnu=yes
4983else
4984 echo "$as_me: failed program was:" >&5
4985sed 's/^/| /' conftest.$ac_ext >&5
4986
4987ac_compiler_gnu=no
4988fi
4989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4990ac_cv_c_compiler_gnu=$ac_compiler_gnu
4991
4992fi
4993echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4994echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4995GCC=`test $ac_compiler_gnu = yes && echo yes`
4996ac_test_CFLAGS=${CFLAGS+set}
4997ac_save_CFLAGS=$CFLAGS
4998CFLAGS="-g"
4999echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5000echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5001if test "${ac_cv_prog_cc_g+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5003else
5004 cat >conftest.$ac_ext <<_ACEOF
5005/* confdefs.h. */
5006_ACEOF
5007cat confdefs.h >>conftest.$ac_ext
5008cat >>conftest.$ac_ext <<_ACEOF
5009/* end confdefs.h. */
5010
5011int
5012main ()
5013{
5014
5015 ;
5016 return 0;
5017}
5018_ACEOF
5019rm -f conftest.$ac_objext
5020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021 (eval $ac_compile) 2>conftest.er1
5022 ac_status=$?
5023 grep -v '^ *+' conftest.er1 >conftest.err
5024 rm -f conftest.er1
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } &&
49c96104
SE
5028 { ac_try='test -z "$ac_c_werror_flag"
5029 || test ! -s conftest.err'
5464f5a1
NN
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 (eval $ac_try) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; } &&
5035 { ac_try='test -s conftest.$ac_objext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 (eval $ac_try) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 ac_cv_prog_cc_g=yes
5042else
5043 echo "$as_me: failed program was:" >&5
5044sed 's/^/| /' conftest.$ac_ext >&5
5045
5046ac_cv_prog_cc_g=no
5047fi
5048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5049fi
5050echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5051echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5052if test "$ac_test_CFLAGS" = set; then
5053 CFLAGS=$ac_save_CFLAGS
5054elif test $ac_cv_prog_cc_g = yes; then
5055 if test "$GCC" = yes; then
5056 CFLAGS="-g -O2"
5057 else
5058 CFLAGS="-g"
5059 fi
5060else
5061 if test "$GCC" = yes; then
5062 CFLAGS="-O2"
5063 else
5064 CFLAGS=
5065 fi
5066fi
5067echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5068echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5069if test "${ac_cv_prog_cc_stdc+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071else
5072 ac_cv_prog_cc_stdc=no
5073ac_save_CC=$CC
5074cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
5080#include <stdarg.h>
5081#include <stdio.h>
5082#include <sys/types.h>
5083#include <sys/stat.h>
5084/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5085struct buf { int x; };
5086FILE * (*rcsopen) (struct buf *, struct stat *, int);
5087static char *e (p, i)
5088 char **p;
5089 int i;
5090{
5091 return p[i];
5092}
5093static char *f (char * (*g) (char **, int), char **p, ...)
5094{
5095 char *s;
5096 va_list v;
5097 va_start (v,p);
5098 s = g (p, va_arg (v,int));
5099 va_end (v);
5100 return s;
5101}
5102
5103/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5104 function prototypes and stuff, but not '\xHH' hex character constants.
5105 These don't provoke an error unfortunately, instead are silently treated
5106 as 'x'. The following induces an error, until -std1 is added to get
5107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5108 array size at least. It's necessary to write '\x00'==0 to get something
5109 that's true only with -std1. */
5110int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5111
5112int test (int i, double x);
5113struct s1 {int (*f) (int a);};
5114struct s2 {int (*f) (double a);};
5115int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5116int argc;
5117char **argv;
5118int
5119main ()
5120{
5121return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5122 ;
5123 return 0;
5124}
5125_ACEOF
5126# Don't try gcc -ansi; that turns off useful extensions and
5127# breaks some systems' header files.
5128# AIX -qlanglvl=ansi
5129# Ultrix and OSF/1 -std1
5130# HP-UX 10.20 and later -Ae
5131# HP-UX older versions -Aa -D_HPUX_SOURCE
5132# SVR4 -Xc -D__EXTENSIONS__
5133for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5134do
5135 CC="$ac_save_CC $ac_arg"
5136 rm -f conftest.$ac_objext
5137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5138 (eval $ac_compile) 2>conftest.er1
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } &&
49c96104
SE
5145 { ac_try='test -z "$ac_c_werror_flag"
5146 || test ! -s conftest.err'
5464f5a1
NN
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 (eval $ac_try) 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; } &&
5152 { ac_try='test -s conftest.$ac_objext'
5153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 (eval $ac_try) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_cv_prog_cc_stdc=$ac_arg
5159break
5160else
5161 echo "$as_me: failed program was:" >&5
5162sed 's/^/| /' conftest.$ac_ext >&5
5163
5164fi
5165rm -f conftest.err conftest.$ac_objext
5166done
5167rm -f conftest.$ac_ext conftest.$ac_objext
5168CC=$ac_save_CC
5169
5170fi
5171
5172case "x$ac_cv_prog_cc_stdc" in
5173 x|xno)
5174 echo "$as_me:$LINENO: result: none needed" >&5
5175echo "${ECHO_T}none needed" >&6 ;;
5176 *)
5177 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5178echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5179 CC="$CC $ac_cv_prog_cc_stdc" ;;
5180esac
5181
5182# Some people use a C++ compiler to compile C. Since we use `exit',
5183# in C++ we need to declare it. In case someone uses the same compiler
5184# for both compiling C and C++ we need to have the C++ compiler decide
5185# the declaration of exit, since it's the most demanding environment.
5186cat >conftest.$ac_ext <<_ACEOF
5187#ifndef __cplusplus
5188 choke me
5189#endif
5190_ACEOF
5191rm -f conftest.$ac_objext
5192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5193 (eval $ac_compile) 2>conftest.er1
5194 ac_status=$?
5195 grep -v '^ *+' conftest.er1 >conftest.err
5196 rm -f conftest.er1
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } &&
49c96104
SE
5200 { ac_try='test -z "$ac_c_werror_flag"
5201 || test ! -s conftest.err'
5464f5a1
NN
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 (eval $ac_try) 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; } &&
5207 { ac_try='test -s conftest.$ac_objext'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 (eval $ac_try) 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5213 for ac_declaration in \
5214 '' \
5215 'extern "C" void std::exit (int) throw (); using std::exit;' \
5216 'extern "C" void std::exit (int); using std::exit;' \
5217 'extern "C" void exit (int) throw ();' \
5218 'extern "C" void exit (int);' \
5219 'void exit (int);'
5220do
5221 cat >conftest.$ac_ext <<_ACEOF
5222/* confdefs.h. */
5223_ACEOF
5224cat confdefs.h >>conftest.$ac_ext
5225cat >>conftest.$ac_ext <<_ACEOF
5226/* end confdefs.h. */
5227$ac_declaration
5228#include <stdlib.h>
5229int
5230main ()
5231{
5232exit (42);
5233 ;
5234 return 0;
5235}
5236_ACEOF
5237rm -f conftest.$ac_objext
5238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5239 (eval $ac_compile) 2>conftest.er1
5240 ac_status=$?
5241 grep -v '^ *+' conftest.er1 >conftest.err
5242 rm -f conftest.er1
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } &&
49c96104
SE
5246 { ac_try='test -z "$ac_c_werror_flag"
5247 || test ! -s conftest.err'
5464f5a1
NN
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5249 (eval $ac_try) 2>&5
5250 ac_status=$?
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; } &&
5253 { ac_try='test -s conftest.$ac_objext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 (eval $ac_try) 2>&5
5256 ac_status=$?
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 :
5260else
5261 echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264continue
5265fi
5266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5267 cat >conftest.$ac_ext <<_ACEOF
5268/* confdefs.h. */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h. */
5273$ac_declaration
5274int
5275main ()
5276{
5277exit (42);
5278 ;
5279 return 0;
5280}
5281_ACEOF
5282rm -f conftest.$ac_objext
5283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5284 (eval $ac_compile) 2>conftest.er1
5285 ac_status=$?
5286 grep -v '^ *+' conftest.er1 >conftest.err
5287 rm -f conftest.er1
5288 cat conftest.err >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } &&
49c96104
SE
5291 { ac_try='test -z "$ac_c_werror_flag"
5292 || test ! -s conftest.err'
5464f5a1
NN
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 (eval $ac_try) 2>&5
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; } &&
5298 { ac_try='test -s conftest.$ac_objext'
5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300 (eval $ac_try) 2>&5
5301 ac_status=$?
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; }; then
5304 break
5305else
5306 echo "$as_me: failed program was:" >&5
5307sed 's/^/| /' conftest.$ac_ext >&5
5308
5309fi
5310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5311done
5312rm -f conftest*
5313if test -n "$ac_declaration"; then
5314 echo '#ifdef __cplusplus' >>confdefs.h
5315 echo $ac_declaration >>confdefs.h
5316 echo '#endif' >>confdefs.h
252b5132 5317fi
5464f5a1 5318
b3baf5d0 5319else
5464f5a1
NN
5320 echo "$as_me: failed program was:" >&5
5321sed 's/^/| /' conftest.$ac_ext >&5
5322
b3baf5d0 5323fi
5464f5a1
NN
5324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5325ac_ext=c
5326ac_cpp='$CPP $CPPFLAGS'
5327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5330
5464f5a1 5331
4a2a2686
HPN
5332cat >>confdefs.h <<\_ACEOF
5333#define _GNU_SOURCE 1
5334_ACEOF
5335
5336
5337
dcd4b381 5338ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
20e95c23
DJ
5339# If we haven't got the data from the intl directory,
5340# assume NLS is disabled.
5341USE_NLS=no
5342LIBINTL=
5343LIBINTL_DEP=
5344INCINTL=
5345XGETTEXT=
5346GMSGFMT=
5347POSUB=
9d7cbccd
NC
5348
5349if test -f ../intl/config.intl; then
5350 . ../intl/config.intl
20e95c23
DJ
5351fi
5352echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5353echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5354if test x"$USE_NLS" != xyes; then
5355 echo "$as_me:$LINENO: result: no" >&5
5356echo "${ECHO_T}no" >&6
252b5132 5357else
20e95c23
DJ
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
5360
5361cat >>confdefs.h <<\_ACEOF
5362#define ENABLE_NLS 1
5363_ACEOF
5364
5365
5366 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5367echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5368 # Look for .po and .gmo files in the source directory.
5369 CATALOGS=
5370 XLINGUAS=
5371 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5372 # If there aren't any .gmo files the shell will give us the
5373 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5374 # weeded out.
5375 case "$cat" in *\**)
5376 continue;;
5377 esac
5378 # The quadruple backslash is collapsed to a double backslash
5379 # by the backticks, then collapsed again by the double quotes,
5380 # leaving us with one backslash in the sed expression (right
5381 # before the dot that mustn't act as a wildcard).
5382 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5383 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5384 # The user is allowed to set LINGUAS to a list of languages to
5385 # install catalogs for. If it's empty that means "all of them."
5386 if test "x$LINGUAS" = x; then
5387 CATALOGS="$CATALOGS $cat"
5388 XLINGUAS="$XLINGUAS $lang"
5389 else
5390 case "$LINGUAS" in *$lang*)
5391 CATALOGS="$CATALOGS $cat"
5392 XLINGUAS="$XLINGUAS $lang"
5393 ;;
5394 esac
5395 fi
5396 done
5397 LINGUAS="$XLINGUAS"
5398 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5399echo "${ECHO_T}$LINGUAS" >&6
5400
5401
5402 DATADIRNAME=share
5403
5404 INSTOBJEXT=.mo
5405
5406 GENCAT=gencat
5407
5408 CATOBJEXT=.gmo
5409
5410fi
5411
5412 MKINSTALLDIRS=
5413 if test -n "$ac_aux_dir"; then
5414 case "$ac_aux_dir" in
5415 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5416 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5417 esac
5418 fi
5419 if test -z "$MKINSTALLDIRS"; then
5420 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5421 fi
5422
5423
5424
5425 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5426echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5427 # Check whether --enable-nls or --disable-nls was given.
5428if test "${enable_nls+set}" = set; then
5429 enableval="$enable_nls"
5430 USE_NLS=$enableval
252b5132 5431else
20e95c23
DJ
5432 USE_NLS=yes
5433fi;
5434 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5435echo "${ECHO_T}$USE_NLS" >&6
5436
5437
5438
5439
5440
5441
5442# Prepare PATH_SEPARATOR.
5443# The user is always right.
5444if test "${PATH_SEPARATOR+set}" != set; then
5445 echo "#! /bin/sh" >conf$$.sh
5446 echo "exit 0" >>conf$$.sh
5447 chmod +x conf$$.sh
5448 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5449 PATH_SEPARATOR=';'
5450 else
5451 PATH_SEPARATOR=:
252b5132 5452 fi
20e95c23
DJ
5453 rm -f conf$$.sh
5454fi
5464f5a1 5455
20e95c23
DJ
5456# Find out how to test for executable files. Don't use a zero-byte file,
5457# as systems may use methods other than mode bits to determine executability.
5458cat >conf$$.file <<_ASEOF
5459#! /bin/sh
5460exit 0
5461_ASEOF
5462chmod +x conf$$.file
5463if test -x conf$$.file >/dev/null 2>&1; then
5464 ac_executable_p="test -x"
5465else
5466 ac_executable_p="test -f"
252b5132 5467fi
20e95c23
DJ
5468rm -f conf$$.file
5469
5470# Extract the first word of "msgfmt", so it can be a program name with args.
5471set dummy msgfmt; ac_word=$2
5472echo "$as_me:$LINENO: checking for $ac_word" >&5
5473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5474if test "${ac_cv_path_MSGFMT+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5476else
5477 case "$MSGFMT" in
5478 [\\/]* | ?:[\\/]*)
5479 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5480 ;;
5481 *)
5482 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5483 for ac_dir in $PATH; do
5484 IFS="$ac_save_IFS"
5485 test -z "$ac_dir" && ac_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5488 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5489 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5490 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5491 break 2
5492 fi
5493 fi
5494 done
5495 done
5496 IFS="$ac_save_IFS"
5497 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5498 ;;
5499esac
252b5132 5500fi
20e95c23
DJ
5501MSGFMT="$ac_cv_path_MSGFMT"
5502if test "$MSGFMT" != ":"; then
5503 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5504echo "${ECHO_T}$MSGFMT" >&6
252b5132 5505else
5464f5a1
NN
5506 echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
252b5132
RH
5508fi
5509
20e95c23
DJ
5510 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5511set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
5512echo "$as_me:$LINENO: checking for $ac_word" >&5
5513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 5514if test "${ac_cv_path_GMSGFMT+set}" = set; then
5464f5a1 5515 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5516else
20e95c23
DJ
5517 case $GMSGFMT in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464f5a1
NN
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20e95c23 5529 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5464f5a1
NN
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534done
5535
20e95c23
DJ
5536 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5537 ;;
5538esac
252b5132 5539fi
20e95c23
DJ
5540GMSGFMT=$ac_cv_path_GMSGFMT
5541
5542if test -n "$GMSGFMT"; then
5543 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5544echo "${ECHO_T}$GMSGFMT" >&6
252b5132 5545else
5464f5a1
NN
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
b3baf5d0 5548fi
252b5132 5549
20e95c23
DJ
5550
5551
5552# Prepare PATH_SEPARATOR.
5553# The user is always right.
5554if test "${PATH_SEPARATOR+set}" != set; then
5555 echo "#! /bin/sh" >conf$$.sh
5556 echo "exit 0" >>conf$$.sh
5557 chmod +x conf$$.sh
5558 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5559 PATH_SEPARATOR=';'
5560 else
5561 PATH_SEPARATOR=:
5562 fi
5563 rm -f conf$$.sh
252b5132 5564fi
5464f5a1 5565
20e95c23
DJ
5566# Find out how to test for executable files. Don't use a zero-byte file,
5567# as systems may use methods other than mode bits to determine executability.
5568cat >conf$$.file <<_ASEOF
5569#! /bin/sh
5570exit 0
5571_ASEOF
5572chmod +x conf$$.file
5573if test -x conf$$.file >/dev/null 2>&1; then
5574 ac_executable_p="test -x"
5575else
5576 ac_executable_p="test -f"
6be7c12c 5577fi
20e95c23
DJ
5578rm -f conf$$.file
5579
5580# Extract the first word of "xgettext", so it can be a program name with args.
5581set dummy xgettext; ac_word=$2
5582echo "$as_me:$LINENO: checking for $ac_word" >&5
5583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5584if test "${ac_cv_path_XGETTEXT+set}" = set; then
5464f5a1 5585 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5586else
20e95c23
DJ
5587 case "$XGETTEXT" in
5588 [\\/]* | ?:[\\/]*)
5589 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5590 ;;
5591 *)
5592 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5593 for ac_dir in $PATH; do
5594 IFS="$ac_save_IFS"
5595 test -z "$ac_dir" && ac_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5598 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5599 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5600 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5601 break 2
5602 fi
5603 fi
5604 done
5605 done
5606 IFS="$ac_save_IFS"
5607 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5608 ;;
5609esac
5610fi
5611XGETTEXT="$ac_cv_path_XGETTEXT"
5612if test "$XGETTEXT" != ":"; then
5613 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5614echo "${ECHO_T}$XGETTEXT" >&6
5615else
5616 echo "$as_me:$LINENO: result: no" >&5
5617echo "${ECHO_T}no" >&6
5618fi
5619
5620 rm -f messages.po
5621
5622
5623# Prepare PATH_SEPARATOR.
5624# The user is always right.
5625if test "${PATH_SEPARATOR+set}" != set; then
5626 echo "#! /bin/sh" >conf$$.sh
5627 echo "exit 0" >>conf$$.sh
5628 chmod +x conf$$.sh
5629 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5630 PATH_SEPARATOR=';'
5464f5a1 5631 else
20e95c23 5632 PATH_SEPARATOR=:
5464f5a1 5633 fi
20e95c23 5634 rm -f conf$$.sh
6be7c12c 5635fi
5464f5a1 5636
20e95c23
DJ
5637# Find out how to test for executable files. Don't use a zero-byte file,
5638# as systems may use methods other than mode bits to determine executability.
5639cat >conf$$.file <<_ASEOF
5640#! /bin/sh
5641exit 0
5642_ASEOF
5643chmod +x conf$$.file
5644if test -x conf$$.file >/dev/null 2>&1; then
5645 ac_executable_p="test -x"
5646else
5647 ac_executable_p="test -f"
5464f5a1 5648fi
20e95c23 5649rm -f conf$$.file
5464f5a1 5650
20e95c23
DJ
5651# Extract the first word of "msgmerge", so it can be a program name with args.
5652set dummy msgmerge; ac_word=$2
5653echo "$as_me:$LINENO: checking for $ac_word" >&5
5654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5655if test "${ac_cv_path_MSGMERGE+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5657else
20e95c23
DJ
5658 case "$MSGMERGE" in
5659 [\\/]* | ?:[\\/]*)
5660 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5661 ;;
5662 *)
5663 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5664 for ac_dir in $PATH; do
5665 IFS="$ac_save_IFS"
5666 test -z "$ac_dir" && ac_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5669 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5670 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5671 break 2
5672 fi
5673 fi
5674 done
5464f5a1 5675 done
20e95c23
DJ
5676 IFS="$ac_save_IFS"
5677 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5678 ;;
5679esac
5464f5a1 5680fi
20e95c23
DJ
5681MSGMERGE="$ac_cv_path_MSGMERGE"
5682if test "$MSGMERGE" != ":"; then
5683 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5684echo "${ECHO_T}$MSGMERGE" >&6
252b5132 5685else
20e95c23
DJ
5686 echo "$as_me:$LINENO: result: no" >&5
5687echo "${ECHO_T}no" >&6
5464f5a1 5688fi
5464f5a1 5689
5464f5a1 5690
20e95c23
DJ
5691 if test "$GMSGFMT" != ":"; then
5692 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5693 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5694 : ;
5695 else
5696 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5697 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5698echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5699 GMSGFMT=":"
5700 fi
5464f5a1 5701 fi
5464f5a1 5702
20e95c23
DJ
5703 if test "$XGETTEXT" != ":"; then
5704 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5705 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5706 : ;
5707 else
5708 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5709echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5710 XGETTEXT=":"
5711 fi
5712 rm -f messages.po
5713 fi
6be7c12c 5714
20e95c23 5715 ac_config_commands="$ac_config_commands default-1"
5464f5a1 5716
5464f5a1
NN
5717
5718
20e95c23
DJ
5719# Permit host specific settings.
5720. ${srcdir}/configure.host
5464f5a1 5721
ac48eca1 5722
20e95c23
DJ
5723# Find a good install program. We prefer a C program (faster),
5724# so one script is as good as another. But avoid the broken or
5725# incompatible versions:
5726# SysV /etc/install, /usr/sbin/install
5727# SunOS /usr/etc/install
5728# IRIX /sbin/install
5729# AIX /bin/install
5730# AmigaOS /C/install, which installs bootblocks on floppy discs
5731# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5732# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5733# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5734# OS/2's system install, which has a completely different semantic
5735# ./install, which can be erroneously created by make from ./install.sh.
5736echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5737echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5738if test -z "$INSTALL"; then
5739if test "${ac_cv_path_install+set}" = set; then
5464f5a1 5740 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5741else
20e95c23
DJ
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743for as_dir in $PATH
5744do
5745 IFS=$as_save_IFS
5746 test -z "$as_dir" && as_dir=.
5747 # Account for people who put trailing slashes in PATH elements.
5748case $as_dir/ in
5749 ./ | .// | /cC/* | \
5750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5751 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5752 /usr/ucb/* ) ;;
5464f5a1 5753 *)
20e95c23
DJ
5754 # OSF1 and SCO ODT 3.0 have their own names for install.
5755 # Don't use installbsd from OSF since it installs stuff as root
5756 # by default.
5757 for ac_prog in ginstall scoinst install; do
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5760 if test $ac_prog = install &&
5761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5762 # AIX install. It has an incompatible calling convention.
5763 :
5764 elif test $ac_prog = install &&
5765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5766 # program-specific install script used by HP pwplus--don't use.
5767 :
5768 else
5769 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5770 break 3
5771 fi
5772 fi
5773 done
5774 done
5464f5a1
NN
5775 ;;
5776esac
252b5132
RH
5777done
5778
20e95c23 5779
252b5132 5780fi
20e95c23
DJ
5781 if test "${ac_cv_path_install+set}" = set; then
5782 INSTALL=$ac_cv_path_install
5783 else
5784 # As a last resort, use the slow shell script. We don't cache a
5785 # path for INSTALL within a source directory, because that will
5786 # break other packages using the cache if that directory is
5787 # removed, or if the path is relative.
5788 INSTALL=$ac_install_sh
5789 fi
252b5132 5790fi
20e95c23
DJ
5791echo "$as_me:$LINENO: result: $INSTALL" >&5
5792echo "${ECHO_T}$INSTALL" >&6
5464f5a1 5793
20e95c23
DJ
5794# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5795# It thinks the first close brace ends the variable substitution.
5796test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 5797
20e95c23 5798test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6be7c12c 5799
20e95c23 5800test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 5801
252b5132 5802
20e95c23
DJ
5803BFD_HOST_64BIT_LONG=0
5804BFD_HOST_LONG_LONG=0
5805BFD_HOST_64_BIT_DEFINED=0
5806BFD_HOST_64_BIT=
5807BFD_HOST_U_64_BIT=
5464f5a1 5808
20e95c23
DJ
5809echo "$as_me:$LINENO: checking for long long" >&5
5810echo $ECHO_N "checking for long long... $ECHO_C" >&6
5811if test "${bfd_cv_has_long_long+set}" = set; then
5464f5a1 5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5813else
20e95c23 5814 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5815/* confdefs.h. */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h. */
20e95c23
DJ
5820
5821int
5822main ()
5823{
5824unsigned long long ll = 18446744073709551615ULL;
5825 ;
5826 return 0;
5827}
5464f5a1
NN
5828_ACEOF
5829rm -f conftest.$ac_objext
5830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
49c96104
SE
5838 { ac_try='test -z "$ac_c_werror_flag"
5839 || test ! -s conftest.err'
5464f5a1
NN
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest.$ac_objext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
20e95c23 5851 bfd_cv_has_long_long=yes
5464f5a1
NN
5852else
5853 echo "$as_me: failed program was:" >&5
5854sed 's/^/| /' conftest.$ac_ext >&5
5855
20e95c23 5856bfd_cv_has_long_long=no
5464f5a1
NN
5857fi
5858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23 5859fi
5464f5a1 5860
20e95c23
DJ
5861echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5862echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5863if test $bfd_cv_has_long_long = yes; then
5864 BFD_HOST_LONG_LONG=1
5865 ac_ext=c
5866ac_cpp='$CPP $CPPFLAGS'
5867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5871echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5872# On Suns, sometimes $CPP names a directory.
5873if test -n "$CPP" && test -d "$CPP"; then
5874 CPP=
5875fi
5876if test -z "$CPP"; then
5877 if test "${ac_cv_prog_CPP+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
5880 # Double quotes because CPP needs to be expanded
5881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5882 do
5883 ac_preproc_ok=false
5884for ac_c_preproc_warn_flag in '' yes
5885do
5886 # Use a header file that comes with gcc, so configuring glibc
5887 # with a fresh cross-compiler works.
5888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5889 # <limits.h> exists even on freestanding compilers.
5890 # On the NeXT, cc -E runs the code through the compiler's parser,
5891 # not just through cpp. "Syntax error" is here to catch this case.
5892 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
20e95c23
DJ
5898#ifdef __STDC__
5899# include <limits.h>
5900#else
5901# include <assert.h>
5902#endif
5903 Syntax error
5464f5a1
NN
5904_ACEOF
5905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5907 ac_status=$?
5908 grep -v '^ *+' conftest.er1 >conftest.err
5909 rm -f conftest.er1
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev/null; then
5913 if test -s conftest.err; then
5914 ac_cpp_err=$ac_c_preproc_warn_flag
5915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5916 else
5917 ac_cpp_err=
5918 fi
252b5132 5919else
5464f5a1 5920 ac_cpp_err=yes
252b5132 5921fi
5464f5a1 5922if test -z "$ac_cpp_err"; then
20e95c23 5923 :
5464f5a1
NN
5924else
5925 echo "$as_me: failed program was:" >&5
5926sed 's/^/| /' conftest.$ac_ext >&5
5927
20e95c23
DJ
5928 # Broken: fails on valid input.
5929continue
252b5132 5930fi
5464f5a1 5931rm -f conftest.err conftest.$ac_ext
5464f5a1 5932
20e95c23
DJ
5933 # OK, works on sane cases. Now check whether non-existent headers
5934 # can be detected and how.
5464f5a1
NN
5935 cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h. */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h. */
20e95c23 5941#include <ac_nonexistent.h>
5464f5a1 5942_ACEOF
20e95c23
DJ
5943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1 5945 ac_status=$?
20e95c23
DJ
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5464f5a1 5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
5950 (exit $ac_status); } >/dev/null; then
5951 if test -s conftest.err; then
5952 ac_cpp_err=$ac_c_preproc_warn_flag
5953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5954 else
5955 ac_cpp_err=
5956 fi
5957else
5958 ac_cpp_err=yes
5959fi
5960if test -z "$ac_cpp_err"; then
5961 # Broken: success on invalid input.
5962continue
252b5132 5963else
5464f5a1
NN
5964 echo "$as_me: failed program was:" >&5
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
20e95c23
DJ
5967 # Passes both tests.
5968ac_preproc_ok=:
5969break
252b5132 5970fi
20e95c23 5971rm -f conftest.err conftest.$ac_ext
252b5132 5972
20e95c23
DJ
5973done
5974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5975rm -f conftest.err conftest.$ac_ext
5976if $ac_preproc_ok; then
5977 break
5978fi
5464f5a1 5979
20e95c23
DJ
5980 done
5981 ac_cv_prog_CPP=$CPP
252b5132 5982
252b5132 5983fi
20e95c23 5984 CPP=$ac_cv_prog_CPP
252b5132 5985else
20e95c23 5986 ac_cv_prog_CPP=$CPP
252b5132 5987fi
20e95c23
DJ
5988echo "$as_me:$LINENO: result: $CPP" >&5
5989echo "${ECHO_T}$CPP" >&6
5990ac_preproc_ok=false
5991for ac_c_preproc_warn_flag in '' yes
252b5132 5992do
20e95c23
DJ
5993 # Use a header file that comes with gcc, so configuring glibc
5994 # with a fresh cross-compiler works.
5995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5996 # <limits.h> exists even on freestanding compilers.
5997 # On the NeXT, cc -E runs the code through the compiler's parser,
5998 # not just through cpp. "Syntax error" is here to catch this case.
5464f5a1
NN
5999 cat >conftest.$ac_ext <<_ACEOF
6000/* confdefs.h. */
6001_ACEOF
6002cat confdefs.h >>conftest.$ac_ext
6003cat >>conftest.$ac_ext <<_ACEOF
6004/* end confdefs.h. */
5464f5a1
NN
6005#ifdef __STDC__
6006# include <limits.h>
6007#else
6008# include <assert.h>
6009#endif
20e95c23 6010 Syntax error
5464f5a1 6011_ACEOF
20e95c23
DJ
6012if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1
NN
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6019 (exit $ac_status); } >/dev/null; then
6020 if test -s conftest.err; then
6021 ac_cpp_err=$ac_c_preproc_warn_flag
6022 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6023 else
6024 ac_cpp_err=
6025 fi
6026else
6027 ac_cpp_err=yes
6028fi
6029if test -z "$ac_cpp_err"; then
6030 :
5464f5a1
NN
6031else
6032 echo "$as_me: failed program was:" >&5
6033sed 's/^/| /' conftest.$ac_ext >&5
6034
20e95c23
DJ
6035 # Broken: fails on valid input.
6036continue
5464f5a1 6037fi
20e95c23 6038rm -f conftest.err conftest.$ac_ext
252b5132 6039
20e95c23
DJ
6040 # OK, works on sane cases. Now check whether non-existent headers
6041 # can be detected and how.
6042 cat >conftest.$ac_ext <<_ACEOF
6043/* confdefs.h. */
6044_ACEOF
6045cat confdefs.h >>conftest.$ac_ext
6046cat >>conftest.$ac_ext <<_ACEOF
6047/* end confdefs.h. */
6048#include <ac_nonexistent.h>
6049_ACEOF
6050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } >/dev/null; then
6058 if test -s conftest.err; then
6059 ac_cpp_err=$ac_c_preproc_warn_flag
6060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6061 else
6062 ac_cpp_err=
6063 fi
6064else
6065 ac_cpp_err=yes
252b5132 6066fi
20e95c23
DJ
6067if test -z "$ac_cpp_err"; then
6068 # Broken: success on invalid input.
6069continue
252b5132 6070else
20e95c23
DJ
6071 echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6073
20e95c23
DJ
6074 # Passes both tests.
6075ac_preproc_ok=:
6076break
252b5132 6077fi
20e95c23 6078rm -f conftest.err conftest.$ac_ext
5464f5a1 6079
20e95c23
DJ
6080done
6081# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6082rm -f conftest.err conftest.$ac_ext
6083if $ac_preproc_ok; then
6084 :
252b5132 6085else
20e95c23
DJ
6086 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6087See \`config.log' for more details." >&5
6088echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6089See \`config.log' for more details." >&2;}
6090 { (exit 1); exit 1; }; }
252b5132
RH
6091fi
6092
20e95c23
DJ
6093ac_ext=c
6094ac_cpp='$CPP $CPPFLAGS'
6095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098
6099
6100echo "$as_me:$LINENO: checking for egrep" >&5
6101echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6102if test "${ac_cv_prog_egrep+set}" = set; then
5464f5a1 6103 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6104else
20e95c23
DJ
6105 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6106 then ac_cv_prog_egrep='grep -E'
6107 else ac_cv_prog_egrep='egrep'
252b5132 6108 fi
252b5132 6109fi
20e95c23
DJ
6110echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6111echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6112 EGREP=$ac_cv_prog_egrep
6113
252b5132 6114
20e95c23
DJ
6115echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6116echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6117if test "${ac_cv_header_stdc+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6119else
6120 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6121/* confdefs.h. */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h. */
20e95c23
DJ
6126#include <stdlib.h>
6127#include <stdarg.h>
6128#include <string.h>
6129#include <float.h>
252b5132 6130
5464f5a1
NN
6131int
6132main ()
6133{
20e95c23 6134
5464f5a1
NN
6135 ;
6136 return 0;
6137}
6138_ACEOF
20e95c23
DJ
6139rm -f conftest.$ac_objext
6140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6141 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
49c96104
SE
6148 { ac_try='test -z "$ac_c_werror_flag"
6149 || test ! -s conftest.err'
5464f5a1
NN
6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 (eval $ac_try) 2>&5
6152 ac_status=$?
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); }; } &&
20e95c23 6155 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
20e95c23 6161 ac_cv_header_stdc=yes
252b5132 6162else
5464f5a1
NN
6163 echo "$as_me: failed program was:" >&5
6164sed 's/^/| /' conftest.$ac_ext >&5
6165
20e95c23 6166ac_cv_header_stdc=no
252b5132 6167fi
20e95c23 6168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6169
20e95c23
DJ
6170if test $ac_cv_header_stdc = yes; then
6171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6172 cat >conftest.$ac_ext <<_ACEOF
6173/* confdefs.h. */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h. */
6178#include <string.h>
5464f5a1 6179
20e95c23
DJ
6180_ACEOF
6181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6182 $EGREP "memchr" >/dev/null 2>&1; then
6183 :
252b5132 6184else
20e95c23 6185 ac_cv_header_stdc=no
252b5132 6186fi
20e95c23 6187rm -f conftest*
252b5132 6188
252b5132
RH
6189fi
6190
20e95c23
DJ
6191if test $ac_cv_header_stdc = yes; then
6192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6193 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6194/* confdefs.h. */
6195_ACEOF
6196cat confdefs.h >>conftest.$ac_ext
6197cat >>conftest.$ac_ext <<_ACEOF
6198/* end confdefs.h. */
20e95c23
DJ
6199#include <stdlib.h>
6200
5464f5a1 6201_ACEOF
20e95c23
DJ
6202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6203 $EGREP "free" >/dev/null 2>&1; then
6204 :
5464f5a1 6205else
20e95c23
DJ
6206 ac_cv_header_stdc=no
6207fi
6208rm -f conftest*
5464f5a1 6209
5464f5a1 6210fi
5464f5a1 6211
20e95c23
DJ
6212if test $ac_cv_header_stdc = yes; then
6213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6214 if test "$cross_compiling" = yes; then
6215 :
6216else
6217 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6218/* confdefs.h. */
6219_ACEOF
6220cat confdefs.h >>conftest.$ac_ext
6221cat >>conftest.$ac_ext <<_ACEOF
6222/* end confdefs.h. */
20e95c23
DJ
6223#include <ctype.h>
6224#if ((' ' & 0x0FF) == 0x020)
6225# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6226# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6227#else
6228# define ISLOWER(c) \
6229 (('a' <= (c) && (c) <= 'i') \
6230 || ('j' <= (c) && (c) <= 'r') \
6231 || ('s' <= (c) && (c) <= 'z'))
6232# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6233#endif
6234
6235#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6236int
6237main ()
6238{
6239 int i;
6240 for (i = 0; i < 256; i++)
6241 if (XOR (islower (i), ISLOWER (i))
6242 || toupper (i) != TOUPPER (i))
6243 exit(2);
6244 exit (0);
6245}
5464f5a1 6246_ACEOF
20e95c23
DJ
6247rm -f conftest$ac_exeext
6248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6249 (eval $ac_link) 2>&5
5464f5a1 6250 ac_status=$?
5464f5a1 6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 :
5464f5a1 6259else
20e95c23
DJ
6260 echo "$as_me: program exited with status $ac_status" >&5
6261echo "$as_me: failed program was:" >&5
5464f5a1
NN
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
20e95c23
DJ
6264( exit $ac_status )
6265ac_cv_header_stdc=no
5464f5a1 6266fi
20e95c23 6267rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5464f5a1 6268fi
252b5132 6269fi
252b5132 6270fi
20e95c23
DJ
6271echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6272echo "${ECHO_T}$ac_cv_header_stdc" >&6
6273if test $ac_cv_header_stdc = yes; then
252b5132 6274
20e95c23
DJ
6275cat >>confdefs.h <<\_ACEOF
6276#define STDC_HEADERS 1
6277_ACEOF
6be7c12c 6278
20e95c23 6279fi
5464f5a1 6280
20e95c23 6281# On IRIX 5.3, sys/types and inttypes.h are conflicting.
252b5132 6282
5464f5a1 6283
252b5132 6284
5464f5a1 6285
252b5132 6286
5464f5a1 6287
252b5132 6288
252b5132 6289
6be7c12c 6290
20e95c23
DJ
6291for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6292 inttypes.h stdint.h unistd.h
5464f5a1 6293do
20e95c23
DJ
6294as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6295echo "$as_me:$LINENO: checking for $ac_header" >&5
6296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6297if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464f5a1 6298 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 6299else
5464f5a1
NN
6300 cat >conftest.$ac_ext <<_ACEOF
6301/* confdefs.h. */
6302_ACEOF
6303cat confdefs.h >>conftest.$ac_ext
6304cat >>conftest.$ac_ext <<_ACEOF
6305/* end confdefs.h. */
20e95c23 6306$ac_includes_default
ec317fb1 6307
20e95c23 6308#include <$ac_header>
5464f5a1
NN
6309_ACEOF
6310rm -f conftest.$ac_objext
6311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6312 (eval $ac_compile) 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
49c96104
SE
6319 { ac_try='test -z "$ac_c_werror_flag"
6320 || test ! -s conftest.err'
5464f5a1
NN
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try='test -s conftest.$ac_objext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 (eval $ac_try) 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
20e95c23 6332 eval "$as_ac_Header=yes"
ec317fb1 6333else
5464f5a1
NN
6334 echo "$as_me: failed program was:" >&5
6335sed 's/^/| /' conftest.$ac_ext >&5
6336
20e95c23 6337eval "$as_ac_Header=no"
ec317fb1 6338fi
5464f5a1 6339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23
DJ
6340fi
6341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6343if test `eval echo '${'$as_ac_Header'}'` = yes; then
6344 cat >>confdefs.h <<_ACEOF
6345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6346_ACEOF
6347
ec317fb1
ILT
6348fi
6349
20e95c23
DJ
6350done
6351
6352
6353echo "$as_me:$LINENO: checking for long long" >&5
2ba49b59
KC
6354echo $ECHO_N "checking for long long... $ECHO_C" >&6
6355if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6357else
5464f5a1
NN
6358 cat >conftest.$ac_ext <<_ACEOF
6359/* confdefs.h. */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h. */
2ba49b59 6364$ac_includes_default
5464f5a1
NN
6365int
6366main ()
6367{
2ba49b59
KC
6368if ((long long *) 0)
6369 return 0;
6370if (sizeof (long long))
6371 return 0;
5464f5a1
NN
6372 ;
6373 return 0;
6374}
6375_ACEOF
6376rm -f conftest.$ac_objext
6377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
49c96104
SE
6385 { ac_try='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
5464f5a1
NN
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
2ba49b59 6398 ac_cv_type_long_long=yes
6726e1ea 6399else
5464f5a1
NN
6400 echo "$as_me: failed program was:" >&5
6401sed 's/^/| /' conftest.$ac_ext >&5
6402
2ba49b59 6403ac_cv_type_long_long=no
6726e1ea 6404fi
5464f5a1 6405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 6406fi
2ba49b59
KC
6407echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6408echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 6409
2ba49b59
KC
6410echo "$as_me:$LINENO: checking size of long long" >&5
6411echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6412if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6414else
2ba49b59
KC
6415 if test "$ac_cv_type_long_long" = yes; then
6416 # The cast to unsigned long works around a bug in the HP C Compiler
6417 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6418 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6419 # This bug is HP SR number 8606223364.
6420 if test "$cross_compiling" = yes; then
6421 # Depending upon the size, compute the lo and hi bounds.
6422cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6423/* confdefs.h. */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h. */
2ba49b59
KC
6428$ac_includes_default
6429int
6430main ()
6431{
6432static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6433test_array [0] = 0
6726e1ea 6434
2ba49b59
KC
6435 ;
6436 return 0;
6437}
6438_ACEOF
6439rm -f conftest.$ac_objext
6440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>conftest.er1
6442 ac_status=$?
6443 grep -v '^ *+' conftest.er1 >conftest.err
6444 rm -f conftest.er1
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
49c96104
SE
6448 { ac_try='test -z "$ac_c_werror_flag"
6449 || test ! -s conftest.err'
2ba49b59
KC
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest.$ac_objext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_lo=0 ac_mid=0
6462 while :; do
6463 cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h. */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h. */
6469$ac_includes_default
5464f5a1
NN
6470int
6471main ()
6472{
2ba49b59
KC
6473static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6474test_array [0] = 0
6475
5464f5a1
NN
6476 ;
6477 return 0;
6478}
6479_ACEOF
6480rm -f conftest.$ac_objext
6481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>conftest.er1
6483 ac_status=$?
6484 grep -v '^ *+' conftest.er1 >conftest.err
6485 rm -f conftest.er1
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
49c96104
SE
6489 { ac_try='test -z "$ac_c_werror_flag"
6490 || test ! -s conftest.err'
5464f5a1
NN
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest.$ac_objext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 (eval $ac_try) 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
2ba49b59 6502 ac_hi=$ac_mid; break
6726e1ea 6503else
5464f5a1
NN
6504 echo "$as_me: failed program was:" >&5
6505sed 's/^/| /' conftest.$ac_ext >&5
6506
2ba49b59
KC
6507ac_lo=`expr $ac_mid + 1`
6508 if test $ac_lo -le $ac_mid; then
6509 ac_lo= ac_hi=
6510 break
6511 fi
6512 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 6513fi
5464f5a1 6514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 6515 done
252b5132 6516else
2ba49b59
KC
6517 echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6519
5464f5a1
NN
6520cat >conftest.$ac_ext <<_ACEOF
6521/* confdefs.h. */
6522_ACEOF
6523cat confdefs.h >>conftest.$ac_ext
6524cat >>conftest.$ac_ext <<_ACEOF
6525/* end confdefs.h. */
6526$ac_includes_default
2ba49b59
KC
6527int
6528main ()
6529{
6530static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6531test_array [0] = 0
6532
6533 ;
6534 return 0;
6535}
5464f5a1
NN
6536_ACEOF
6537rm -f conftest.$ac_objext
6538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539 (eval $ac_compile) 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } &&
49c96104
SE
6546 { ac_try='test -z "$ac_c_werror_flag"
6547 || test ! -s conftest.err'
5464f5a1
NN
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 (eval $ac_try) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; } &&
6553 { ac_try='test -s conftest.$ac_objext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 (eval $ac_try) 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
2ba49b59
KC
6559 ac_hi=-1 ac_mid=-1
6560 while :; do
6561 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6562/* confdefs.h. */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h. */
2ba49b59
KC
6567$ac_includes_default
6568int
6569main ()
6570{
6571static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6572test_array [0] = 0
6573
6574 ;
6575 return 0;
6576}
5464f5a1 6577_ACEOF
2ba49b59
KC
6578rm -f conftest.$ac_objext
6579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6580 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 6586 (exit $ac_status); } &&
49c96104
SE
6587 { ac_try='test -z "$ac_c_werror_flag"
6588 || test ! -s conftest.err'
2ba49b59
KC
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; } &&
6594 { ac_try='test -s conftest.$ac_objext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_lo=$ac_mid; break
252b5132 6601else
2ba49b59
KC
6602 echo "$as_me: failed program was:" >&5
6603sed 's/^/| /' conftest.$ac_ext >&5
6604
6605ac_hi=`expr '(' $ac_mid ')' - 1`
6606 if test $ac_mid -le $ac_hi; then
6607 ac_lo= ac_hi=
6608 break
6609 fi
6610 ac_mid=`expr 2 '*' $ac_mid`
252b5132 6611fi
2ba49b59
KC
6612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6613 done
5464f5a1
NN
6614else
6615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
2ba49b59 6618ac_lo= ac_hi=
252b5132 6619fi
2ba49b59
KC
6620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621fi
6622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623# Binary search between lo and hi bounds.
6624while test "x$ac_lo" != "x$ac_hi"; do
6625 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6626 cat >conftest.$ac_ext <<_ACEOF
6627/* confdefs.h. */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
6631/* end confdefs.h. */
6632$ac_includes_default
6633int
6634main ()
6635{
6636static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6637test_array [0] = 0
5464f5a1 6638
2ba49b59
KC
6639 ;
6640 return 0;
6641}
5464f5a1
NN
6642_ACEOF
6643rm -f conftest.$ac_objext
6644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645 (eval $ac_compile) 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
49c96104
SE
6652 { ac_try='test -z "$ac_c_werror_flag"
6653 || test ! -s conftest.err'
5464f5a1
NN
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest.$ac_objext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
2ba49b59 6665 ac_hi=$ac_mid
5464f5a1
NN
6666else
6667 echo "$as_me: failed program was:" >&5
6668sed 's/^/| /' conftest.$ac_ext >&5
6669
2ba49b59 6670ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
6671fi
6672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
6673done
6674case $ac_lo in
6675?*) ac_cv_sizeof_long_long=$ac_lo;;
6676'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6677See \`config.log' for more details." >&5
6678echo "$as_me: error: cannot compute sizeof (long long), 77
6679See \`config.log' for more details." >&2;}
6680 { (exit 1); exit 1; }; } ;;
6681esac
6682else
6683 if test "$cross_compiling" = yes; then
49c96104
SE
6684 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6685See \`config.log' for more details." >&5
6686echo "$as_me: error: cannot run test program while cross compiling
6687See \`config.log' for more details." >&2;}
2ba49b59
KC
6688 { (exit 1); exit 1; }; }
6689else
6690 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6691/* confdefs.h. */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h. */
2ba49b59
KC
6696$ac_includes_default
6697long longval () { return (long) (sizeof (long long)); }
6698unsigned long ulongval () { return (long) (sizeof (long long)); }
6699#include <stdio.h>
6700#include <stdlib.h>
6701int
6702main ()
6703{
6704
6705 FILE *f = fopen ("conftest.val", "w");
6706 if (! f)
6707 exit (1);
6708 if (((long) (sizeof (long long))) < 0)
6709 {
6710 long i = longval ();
6711 if (i != ((long) (sizeof (long long))))
6712 exit (1);
6713 fprintf (f, "%ld\n", i);
6714 }
6715 else
6716 {
6717 unsigned long i = ulongval ();
6718 if (i != ((long) (sizeof (long long))))
6719 exit (1);
6720 fprintf (f, "%lu\n", i);
6721 }
6722 exit (ferror (f) || fclose (f) != 0);
6723
6724 ;
6725 return 0;
6726}
5464f5a1 6727_ACEOF
2ba49b59
KC
6728rm -f conftest$ac_exeext
6729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6730 (eval $ac_link) 2>&5
5464f5a1 6731 ac_status=$?
5464f5a1 6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
6733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 6740else
2ba49b59
KC
6741 echo "$as_me: program exited with status $ac_status" >&5
6742echo "$as_me: failed program was:" >&5
5464f5a1
NN
6743sed 's/^/| /' conftest.$ac_ext >&5
6744
2ba49b59
KC
6745( exit $ac_status )
6746{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6747See \`config.log' for more details." >&5
6748echo "$as_me: error: cannot compute sizeof (long long), 77
6749See \`config.log' for more details." >&2;}
6750 { (exit 1); exit 1; }; }
252b5132 6751fi
2ba49b59
KC
6752rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6753fi
6754fi
6755rm -f conftest.val
6be7c12c 6756else
2ba49b59 6757 ac_cv_sizeof_long_long=0
5464f5a1 6758fi
5464f5a1 6759fi
2ba49b59
KC
6760echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6761echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6762cat >>confdefs.h <<_ACEOF
6763#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
6764_ACEOF
6765
5464f5a1 6766
2ba49b59 6767fi
252b5132 6768
2ba49b59
KC
6769echo "$as_me:$LINENO: checking for long" >&5
6770echo $ECHO_N "checking for long... $ECHO_C" >&6
6771if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774 cat >conftest.$ac_ext <<_ACEOF
6775/* confdefs.h. */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h. */
2ba49b59 6780$ac_includes_default
5464f5a1
NN
6781int
6782main ()
6783{
2ba49b59
KC
6784if ((long *) 0)
6785 return 0;
6786if (sizeof (long))
6787 return 0;
5464f5a1
NN
6788 ;
6789 return 0;
6790}
6791_ACEOF
6792rm -f conftest.$ac_objext
6793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6794 (eval $ac_compile) 2>conftest.er1
6795 ac_status=$?
6796 grep -v '^ *+' conftest.er1 >conftest.err
6797 rm -f conftest.er1
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
49c96104
SE
6801 { ac_try='test -z "$ac_c_werror_flag"
6802 || test ! -s conftest.err'
5464f5a1
NN
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest.$ac_objext'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
2ba49b59 6814 ac_cv_type_long=yes
252b5132 6815else
5464f5a1
NN
6816 echo "$as_me: failed program was:" >&5
6817sed 's/^/| /' conftest.$ac_ext >&5
6818
2ba49b59 6819ac_cv_type_long=no
252b5132 6820fi
5464f5a1 6821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6822fi
2ba49b59
KC
6823echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6824echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 6825
2ba49b59
KC
6826echo "$as_me:$LINENO: checking size of long" >&5
6827echo $ECHO_N "checking size of long... $ECHO_C" >&6
6828if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6830else
2ba49b59
KC
6831 if test "$ac_cv_type_long" = yes; then
6832 # The cast to unsigned long works around a bug in the HP C Compiler
6833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6835 # This bug is HP SR number 8606223364.
6836 if test "$cross_compiling" = yes; then
6837 # Depending upon the size, compute the lo and hi bounds.
6838cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6839/* confdefs.h. */
6840_ACEOF
6841cat confdefs.h >>conftest.$ac_ext
6842cat >>conftest.$ac_ext <<_ACEOF
6843/* end confdefs.h. */
2ba49b59 6844$ac_includes_default
5464f5a1
NN
6845int
6846main ()
6847{
2ba49b59
KC
6848static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6849test_array [0] = 0
6850
5464f5a1
NN
6851 ;
6852 return 0;
6853}
6854_ACEOF
6855rm -f conftest.$ac_objext
6856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6857 (eval $ac_compile) 2>conftest.er1
6858 ac_status=$?
6859 grep -v '^ *+' conftest.er1 >conftest.err
6860 rm -f conftest.er1
6861 cat conftest.err >&5
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); } &&
49c96104
SE
6864 { ac_try='test -z "$ac_c_werror_flag"
6865 || test ! -s conftest.err'
5464f5a1
NN
6866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867 (eval $ac_try) 2>&5
6868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); }; } &&
6871 { ac_try='test -s conftest.$ac_objext'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873 (eval $ac_try) 2>&5
6874 ac_status=$?
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
2ba49b59
KC
6877 ac_lo=0 ac_mid=0
6878 while :; do
6879 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6880/* confdefs.h. */
6881_ACEOF
6882cat confdefs.h >>conftest.$ac_ext
6883cat >>conftest.$ac_ext <<_ACEOF
6884/* end confdefs.h. */
2ba49b59 6885$ac_includes_default
5464f5a1
NN
6886int
6887main ()
6888{
2ba49b59
KC
6889static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6890test_array [0] = 0
6891
5464f5a1
NN
6892 ;
6893 return 0;
6894}
6895_ACEOF
2ba49b59
KC
6896rm -f conftest.$ac_objext
6897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
49c96104
SE
6905 { ac_try='test -z "$ac_c_werror_flag"
6906 || test ! -s conftest.err'
5464f5a1
NN
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; } &&
2ba49b59 6912 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
2ba49b59 6918 ac_hi=$ac_mid; break
5464f5a1
NN
6919else
6920 echo "$as_me: failed program was:" >&5
6921sed 's/^/| /' conftest.$ac_ext >&5
6922
2ba49b59
KC
6923ac_lo=`expr $ac_mid + 1`
6924 if test $ac_lo -le $ac_mid; then
6925 ac_lo= ac_hi=
6926 break
6927 fi
6928 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 6929fi
2ba49b59
KC
6930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6931 done
6932else
6933 echo "$as_me: failed program was:" >&5
6934sed 's/^/| /' conftest.$ac_ext >&5
6935
6936cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6937/* confdefs.h. */
6938_ACEOF
6939cat confdefs.h >>conftest.$ac_ext
6940cat >>conftest.$ac_ext <<_ACEOF
6941/* end confdefs.h. */
2ba49b59 6942$ac_includes_default
5464f5a1
NN
6943int
6944main ()
6945{
2ba49b59
KC
6946static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6947test_array [0] = 0
6948
5464f5a1
NN
6949 ;
6950 return 0;
6951}
6952_ACEOF
2ba49b59
KC
6953rm -f conftest.$ac_objext
6954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6955 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
49c96104
SE
6962 { ac_try='test -z "$ac_c_werror_flag"
6963 || test ! -s conftest.err'
5464f5a1
NN
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 (eval $ac_try) 2>&5
6966 ac_status=$?
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; } &&
2ba49b59 6969 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
2ba49b59
KC
6975 ac_hi=-1 ac_mid=-1
6976 while :; do
6977 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6978/* confdefs.h. */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h. */
2ba49b59 6983$ac_includes_default
5464f5a1
NN
6984int
6985main ()
6986{
2ba49b59
KC
6987static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6988test_array [0] = 0
6989
5464f5a1
NN
6990 ;
6991 return 0;
6992}
6993_ACEOF
2ba49b59
KC
6994rm -f conftest.$ac_objext
6995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6997 ac_status=$?
6998 grep -v '^ *+' conftest.er1 >conftest.err
6999 rm -f conftest.er1
7000 cat conftest.err >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
49c96104
SE
7003 { ac_try='test -z "$ac_c_werror_flag"
7004 || test ! -s conftest.err'
5464f5a1
NN
7005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 (eval $ac_try) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; } &&
2ba49b59 7010 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
2ba49b59 7016 ac_lo=$ac_mid; break
5464f5a1
NN
7017else
7018 echo "$as_me: failed program was:" >&5
7019sed 's/^/| /' conftest.$ac_ext >&5
7020
2ba49b59
KC
7021ac_hi=`expr '(' $ac_mid ')' - 1`
7022 if test $ac_mid -le $ac_hi; then
7023 ac_lo= ac_hi=
7024 break
7025 fi
7026 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 7027fi
2ba49b59
KC
7028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7029 done
7030else
7031 echo "$as_me: failed program was:" >&5
7032sed 's/^/| /' conftest.$ac_ext >&5
7033
7034ac_lo= ac_hi=
7035fi
7036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7037fi
7038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039# Binary search between lo and hi bounds.
7040while test "x$ac_lo" != "x$ac_hi"; do
7041 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7042 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
7043/* confdefs.h. */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h. */
2ba49b59 7048$ac_includes_default
5464f5a1
NN
7049int
7050main ()
7051{
2ba49b59
KC
7052static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7053test_array [0] = 0
7054
5464f5a1
NN
7055 ;
7056 return 0;
7057}
7058_ACEOF
2ba49b59
KC
7059rm -f conftest.$ac_objext
7060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
7062 ac_status=$?
7063 grep -v '^ *+' conftest.er1 >conftest.err
7064 rm -f conftest.er1
7065 cat conftest.err >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
49c96104
SE
7068 { ac_try='test -z "$ac_c_werror_flag"
7069 || test ! -s conftest.err'
5464f5a1
NN
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; } &&
2ba49b59 7075 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
7076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 (eval $ac_try) 2>&5
7078 ac_status=$?
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); }; }; then
2ba49b59 7081 ac_hi=$ac_mid
5464f5a1
NN
7082else
7083 echo "$as_me: failed program was:" >&5
7084sed 's/^/| /' conftest.$ac_ext >&5
7085
2ba49b59 7086ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 7087fi
2ba49b59
KC
7088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7089done
7090case $ac_lo in
7091?*) ac_cv_sizeof_long=$ac_lo;;
7092'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7093See \`config.log' for more details." >&5
7094echo "$as_me: error: cannot compute sizeof (long), 77
7095See \`config.log' for more details." >&2;}
7096 { (exit 1); exit 1; }; } ;;
7097esac
7098else
7099 if test "$cross_compiling" = yes; then
49c96104
SE
7100 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7101See \`config.log' for more details." >&5
7102echo "$as_me: error: cannot run test program while cross compiling
7103See \`config.log' for more details." >&2;}
2ba49b59 7104 { (exit 1); exit 1; }; }
2e0fbf77
JW
7105else
7106 cat >conftest.$ac_ext <<_ACEOF
7107/* confdefs.h. */
7108_ACEOF
7109cat confdefs.h >>conftest.$ac_ext
7110cat >>conftest.$ac_ext <<_ACEOF
7111/* end confdefs.h. */
2ba49b59
KC
7112$ac_includes_default
7113long longval () { return (long) (sizeof (long)); }
7114unsigned long ulongval () { return (long) (sizeof (long)); }
7115#include <stdio.h>
7116#include <stdlib.h>
2e0fbf77
JW
7117int
7118main ()
7119{
7120
2ba49b59
KC
7121 FILE *f = fopen ("conftest.val", "w");
7122 if (! f)
7123 exit (1);
7124 if (((long) (sizeof (long))) < 0)
7125 {
7126 long i = longval ();
7127 if (i != ((long) (sizeof (long))))
7128 exit (1);
7129 fprintf (f, "%ld\n", i);
7130 }
7131 else
7132 {
7133 unsigned long i = ulongval ();
7134 if (i != ((long) (sizeof (long))))
7135 exit (1);
7136 fprintf (f, "%lu\n", i);
7137 }
7138 exit (ferror (f) || fclose (f) != 0);
7139
2e0fbf77
JW
7140 ;
7141 return 0;
7142}
7143_ACEOF
2ba49b59
KC
7144rm -f conftest$ac_exeext
7145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7146 (eval $ac_link) 2>&5
2e0fbf77
JW
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 7149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; }; then
2ba49b59 7155 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 7156else
2ba49b59
KC
7157 echo "$as_me: program exited with status $ac_status" >&5
7158echo "$as_me: failed program was:" >&5
2e0fbf77
JW
7159sed 's/^/| /' conftest.$ac_ext >&5
7160
2ba49b59
KC
7161( exit $ac_status )
7162{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7163See \`config.log' for more details." >&5
7164echo "$as_me: error: cannot compute sizeof (long), 77
7165See \`config.log' for more details." >&2;}
7166 { (exit 1); exit 1; }; }
2e0fbf77 7167fi
2ba49b59 7168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 7169fi
2ba49b59
KC
7170fi
7171rm -f conftest.val
7172else
7173 ac_cv_sizeof_long=0
7174fi
7175fi
7176echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7177echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7178cat >>confdefs.h <<_ACEOF
7179#define SIZEOF_LONG $ac_cv_sizeof_long
7180_ACEOF
7181
7182
7183if test "x${ac_cv_sizeof_long}" = "x8"; then
7184 host64=true
7185 BFD_HOST_64BIT_LONG=1
7186 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7187 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7188elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7189 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7190 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7191fi
7192
7193if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7194 BFD_HOST_64_BIT_DEFINED=1
7195 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7196 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7197fi
7198
7199
7200
7201
7202
7203
7204
7205# Put a plausible default for CC_FOR_BUILD in Makefile.
7206if test -z "$CC_FOR_BUILD"; then
7207 if test "x$cross_compiling" = "xno"; then
7208 CC_FOR_BUILD='$(CC)'
7209 else
7210 CC_FOR_BUILD=gcc
7211 fi
7212fi
7213
7214# Also set EXEEXT_FOR_BUILD.
7215if test "x$cross_compiling" = "xno"; then
7216 EXEEXT_FOR_BUILD='$(EXEEXT)'
7217else
7218 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7219echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7220if test "${bfd_cv_build_exeext+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223 rm -f conftest*
7224 echo 'int main () { return 0; }' > conftest.c
7225 bfd_cv_build_exeext=
7226 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7227 for file in conftest.*; do
7228 case $file in
7229 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7230 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7231 esac
7232 done
7233 rm -f conftest*
7234 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7235fi
7236echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7237echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7238 EXEEXT_FOR_BUILD=""
7239 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7240fi
7241
7242
7243
7244
7245
7246
7247
7248
7249for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7250do
7251as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7252if eval "test \"\${$as_ac_Header+set}\" = set"; then
7253 echo "$as_me:$LINENO: checking for $ac_header" >&5
7254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257fi
7258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7260else
7261 # Is the header compilable?
7262echo "$as_me:$LINENO: checking $ac_header usability" >&5
7263echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7264cat >conftest.$ac_ext <<_ACEOF
7265/* confdefs.h. */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h. */
7270$ac_includes_default
7271#include <$ac_header>
7272_ACEOF
7273rm -f conftest.$ac_objext
7274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
49c96104
SE
7282 { ac_try='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
2ba49b59
KC
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 (eval $ac_try) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_header_compiler=yes
7296else
7297 echo "$as_me: failed program was:" >&5
7298sed 's/^/| /' conftest.$ac_ext >&5
7299
7300ac_header_compiler=no
7301fi
7302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7303echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7304echo "${ECHO_T}$ac_header_compiler" >&6
7305
7306# Is the header present?
7307echo "$as_me:$LINENO: checking $ac_header presence" >&5
7308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7309cat >conftest.$ac_ext <<_ACEOF
7310/* confdefs.h. */
7311_ACEOF
7312cat confdefs.h >>conftest.$ac_ext
7313cat >>conftest.$ac_ext <<_ACEOF
7314/* end confdefs.h. */
7315#include <$ac_header>
7316_ACEOF
7317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } >/dev/null; then
7325 if test -s conftest.err; then
7326 ac_cpp_err=$ac_c_preproc_warn_flag
7327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7328 else
7329 ac_cpp_err=
7330 fi
7331else
7332 ac_cpp_err=yes
7333fi
7334if test -z "$ac_cpp_err"; then
7335 ac_header_preproc=yes
7336else
7337 echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340 ac_header_preproc=no
7341fi
7342rm -f conftest.err conftest.$ac_ext
7343echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7344echo "${ECHO_T}$ac_header_preproc" >&6
7345
7346# So? What about this header?
7347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7348 yes:no: )
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7353 ac_header_preproc=yes
7354 ;;
7355 no:yes:* )
7356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7363echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7368 (
7369 cat <<\_ASBOX
7370## ------------------------------------------ ##
7371## Report this to the AC_PACKAGE_NAME lists. ##
7372## ------------------------------------------ ##
7373_ASBOX
7374 ) |
7375 sed "s/^/$as_me: WARNING: /" >&2
7376 ;;
7377esac
7378echo "$as_me:$LINENO: checking for $ac_header" >&5
7379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7380if eval "test \"\${$as_ac_Header+set}\" = set"; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383 eval "$as_ac_Header=\$ac_header_preproc"
7384fi
7385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7387
7388fi
7389if test `eval echo '${'$as_ac_Header'}'` = yes; then
7390 cat >>confdefs.h <<_ACEOF
7391#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7392_ACEOF
7393
7394fi
7395
7396done
7397
7398
7399
7400
7401for ac_header in fcntl.h sys/file.h sys/time.h
7402do
7403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7404if eval "test \"\${$as_ac_Header+set}\" = set"; then
7405 echo "$as_me:$LINENO: checking for $ac_header" >&5
7406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7407if eval "test \"\${$as_ac_Header+set}\" = set"; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409fi
7410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7412else
7413 # Is the header compilable?
7414echo "$as_me:$LINENO: checking $ac_header usability" >&5
7415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7416cat >conftest.$ac_ext <<_ACEOF
7417/* confdefs.h. */
7418_ACEOF
7419cat confdefs.h >>conftest.$ac_ext
7420cat >>conftest.$ac_ext <<_ACEOF
7421/* end confdefs.h. */
7422$ac_includes_default
7423#include <$ac_header>
7424_ACEOF
7425rm -f conftest.$ac_objext
7426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
49c96104
SE
7434 { ac_try='test -z "$ac_c_werror_flag"
7435 || test ! -s conftest.err'
2ba49b59
KC
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 (eval $ac_try) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; } &&
7441 { ac_try='test -s conftest.$ac_objext'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 (eval $ac_try) 2>&5
7444 ac_status=$?
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; }; then
7447 ac_header_compiler=yes
7448else
7449 echo "$as_me: failed program was:" >&5
7450sed 's/^/| /' conftest.$ac_ext >&5
7451
7452ac_header_compiler=no
7453fi
7454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7456echo "${ECHO_T}$ac_header_compiler" >&6
7457
7458# Is the header present?
7459echo "$as_me:$LINENO: checking $ac_header presence" >&5
7460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7461cat >conftest.$ac_ext <<_ACEOF
7462/* confdefs.h. */
7463_ACEOF
7464cat confdefs.h >>conftest.$ac_ext
7465cat >>conftest.$ac_ext <<_ACEOF
7466/* end confdefs.h. */
7467#include <$ac_header>
7468_ACEOF
7469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7471 ac_status=$?
7472 grep -v '^ *+' conftest.er1 >conftest.err
7473 rm -f conftest.er1
7474 cat conftest.err >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } >/dev/null; then
7477 if test -s conftest.err; then
7478 ac_cpp_err=$ac_c_preproc_warn_flag
7479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7480 else
7481 ac_cpp_err=
7482 fi
7483else
7484 ac_cpp_err=yes
7485fi
7486if test -z "$ac_cpp_err"; then
7487 ac_header_preproc=yes
7488else
7489 echo "$as_me: failed program was:" >&5
7490sed 's/^/| /' conftest.$ac_ext >&5
7491
7492 ac_header_preproc=no
7493fi
7494rm -f conftest.err conftest.$ac_ext
7495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7496echo "${ECHO_T}$ac_header_preproc" >&6
7497
7498# So? What about this header?
7499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7500 yes:no: )
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7505 ac_header_preproc=yes
7506 ;;
7507 no:yes:* )
7508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7511echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7515echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7520 (
7521 cat <<\_ASBOX
7522## ------------------------------------------ ##
7523## Report this to the AC_PACKAGE_NAME lists. ##
7524## ------------------------------------------ ##
7525_ASBOX
7526 ) |
7527 sed "s/^/$as_me: WARNING: /" >&2
7528 ;;
7529esac
7530echo "$as_me:$LINENO: checking for $ac_header" >&5
7531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7532if eval "test \"\${$as_ac_Header+set}\" = set"; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7534else
7535 eval "$as_ac_Header=\$ac_header_preproc"
7536fi
7537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7539
7540fi
7541if test `eval echo '${'$as_ac_Header'}'` = yes; then
7542 cat >>confdefs.h <<_ACEOF
7543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7544_ACEOF
7545
7546fi
7547
7548done
7549
7550echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7551echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7552if test "${ac_cv_header_time+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555 cat >conftest.$ac_ext <<_ACEOF
7556/* confdefs.h. */
7557_ACEOF
7558cat confdefs.h >>conftest.$ac_ext
7559cat >>conftest.$ac_ext <<_ACEOF
7560/* end confdefs.h. */
7561#include <sys/types.h>
7562#include <sys/time.h>
7563#include <time.h>
7564
7565int
7566main ()
7567{
7568if ((struct tm *) 0)
7569return 0;
7570 ;
7571 return 0;
7572}
7573_ACEOF
7574rm -f conftest.$ac_objext
7575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7576 (eval $ac_compile) 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } &&
49c96104
SE
7583 { ac_try='test -z "$ac_c_werror_flag"
7584 || test ! -s conftest.err'
2ba49b59
KC
7585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7586 (eval $ac_try) 2>&5
7587 ac_status=$?
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; } &&
7590 { ac_try='test -s conftest.$ac_objext'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; }; then
7596 ac_cv_header_time=yes
7597else
7598 echo "$as_me: failed program was:" >&5
7599sed 's/^/| /' conftest.$ac_ext >&5
7600
7601ac_cv_header_time=no
7602fi
7603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7604fi
7605echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7606echo "${ECHO_T}$ac_cv_header_time" >&6
7607if test $ac_cv_header_time = yes; then
7608
7609cat >>confdefs.h <<\_ACEOF
7610#define TIME_WITH_SYS_TIME 1
7611_ACEOF
7612
7613fi
7614
7615
7616
7617
7618
7619
7620ac_header_dirent=no
7621for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7622 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7623echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7624echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7625if eval "test \"\${$as_ac_Header+set}\" = set"; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 cat >conftest.$ac_ext <<_ACEOF
7629/* confdefs.h. */
7630_ACEOF
7631cat confdefs.h >>conftest.$ac_ext
7632cat >>conftest.$ac_ext <<_ACEOF
7633/* end confdefs.h. */
7634#include <sys/types.h>
7635#include <$ac_hdr>
7636
7637int
7638main ()
7639{
7640if ((DIR *) 0)
7641return 0;
7642 ;
7643 return 0;
7644}
7645_ACEOF
7646rm -f conftest.$ac_objext
7647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7648 (eval $ac_compile) 2>conftest.er1
7649 ac_status=$?
7650 grep -v '^ *+' conftest.er1 >conftest.err
7651 rm -f conftest.er1
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } &&
49c96104
SE
7655 { ac_try='test -z "$ac_c_werror_flag"
7656 || test ! -s conftest.err'
2ba49b59
KC
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; } &&
7662 { ac_try='test -s conftest.$ac_objext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 eval "$as_ac_Header=yes"
7669else
7670 echo "$as_me: failed program was:" >&5
7671sed 's/^/| /' conftest.$ac_ext >&5
7672
7673eval "$as_ac_Header=no"
7674fi
7675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7676fi
7677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7679if test `eval echo '${'$as_ac_Header'}'` = yes; then
7680 cat >>confdefs.h <<_ACEOF
7681#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7682_ACEOF
7683
7684ac_header_dirent=$ac_hdr; break
7685fi
7686
7687done
7688# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7689if test $ac_header_dirent = dirent.h; then
7690 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7691echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7692if test "${ac_cv_search_opendir+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7694else
7695 ac_func_search_save_LIBS=$LIBS
7696ac_cv_search_opendir=no
7697cat >conftest.$ac_ext <<_ACEOF
7698/* confdefs.h. */
7699_ACEOF
7700cat confdefs.h >>conftest.$ac_ext
7701cat >>conftest.$ac_ext <<_ACEOF
7702/* end confdefs.h. */
7703
7704/* Override any gcc2 internal prototype to avoid an error. */
7705#ifdef __cplusplus
7706extern "C"
7707#endif
7708/* We use char because int might match the return type of a gcc2
7709 builtin and then its argument prototype would still apply. */
7710char opendir ();
7711int
7712main ()
7713{
7714opendir ();
7715 ;
7716 return 0;
7717}
7718_ACEOF
7719rm -f conftest.$ac_objext conftest$ac_exeext
7720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7721 (eval $ac_link) 2>conftest.er1
7722 ac_status=$?
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
49c96104
SE
7728 { ac_try='test -z "$ac_c_werror_flag"
7729 || test ! -s conftest.err'
2ba49b59
KC
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 (eval $ac_try) 2>&5
7732 ac_status=$?
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; } &&
7735 { ac_try='test -s conftest$ac_exeext'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 (eval $ac_try) 2>&5
7738 ac_status=$?
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 ac_cv_search_opendir="none required"
7742else
7743 echo "$as_me: failed program was:" >&5
7744sed 's/^/| /' conftest.$ac_ext >&5
7745
7746fi
7747rm -f conftest.err conftest.$ac_objext \
7748 conftest$ac_exeext conftest.$ac_ext
7749if test "$ac_cv_search_opendir" = no; then
7750 for ac_lib in dir; do
7751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7752 cat >conftest.$ac_ext <<_ACEOF
7753/* confdefs.h. */
7754_ACEOF
7755cat confdefs.h >>conftest.$ac_ext
7756cat >>conftest.$ac_ext <<_ACEOF
7757/* end confdefs.h. */
7758
7759/* Override any gcc2 internal prototype to avoid an error. */
7760#ifdef __cplusplus
7761extern "C"
7762#endif
7763/* We use char because int might match the return type of a gcc2
7764 builtin and then its argument prototype would still apply. */
7765char opendir ();
7766int
7767main ()
7768{
7769opendir ();
7770 ;
7771 return 0;
7772}
7773_ACEOF
7774rm -f conftest.$ac_objext conftest$ac_exeext
7775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7776 (eval $ac_link) 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
49c96104
SE
7783 { ac_try='test -z "$ac_c_werror_flag"
7784 || test ! -s conftest.err'
2ba49b59
KC
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 (eval $ac_try) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; } &&
7790 { ac_try='test -s conftest$ac_exeext'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; }; then
7796 ac_cv_search_opendir="-l$ac_lib"
7797break
7798else
7799 echo "$as_me: failed program was:" >&5
7800sed 's/^/| /' conftest.$ac_ext >&5
7801
7802fi
7803rm -f conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805 done
7806fi
7807LIBS=$ac_func_search_save_LIBS
7808fi
7809echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7810echo "${ECHO_T}$ac_cv_search_opendir" >&6
7811if test "$ac_cv_search_opendir" != no; then
7812 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7813
7814fi
7815
7816else
7817 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7818echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7819if test "${ac_cv_search_opendir+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821else
7822 ac_func_search_save_LIBS=$LIBS
7823ac_cv_search_opendir=no
7824cat >conftest.$ac_ext <<_ACEOF
7825/* confdefs.h. */
7826_ACEOF
7827cat confdefs.h >>conftest.$ac_ext
7828cat >>conftest.$ac_ext <<_ACEOF
7829/* end confdefs.h. */
7830
7831/* Override any gcc2 internal prototype to avoid an error. */
7832#ifdef __cplusplus
7833extern "C"
7834#endif
7835/* We use char because int might match the return type of a gcc2
7836 builtin and then its argument prototype would still apply. */
7837char opendir ();
7838int
7839main ()
7840{
7841opendir ();
7842 ;
7843 return 0;
7844}
7845_ACEOF
7846rm -f conftest.$ac_objext conftest$ac_exeext
7847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848 (eval $ac_link) 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
49c96104
SE
7855 { ac_try='test -z "$ac_c_werror_flag"
7856 || test ! -s conftest.err'
2ba49b59
KC
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest$ac_exeext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 ac_cv_search_opendir="none required"
7869else
7870 echo "$as_me: failed program was:" >&5
7871sed 's/^/| /' conftest.$ac_ext >&5
7872
7873fi
7874rm -f conftest.err conftest.$ac_objext \
7875 conftest$ac_exeext conftest.$ac_ext
7876if test "$ac_cv_search_opendir" = no; then
7877 for ac_lib in x; do
7878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7879 cat >conftest.$ac_ext <<_ACEOF
7880/* confdefs.h. */
7881_ACEOF
7882cat confdefs.h >>conftest.$ac_ext
7883cat >>conftest.$ac_ext <<_ACEOF
7884/* end confdefs.h. */
7885
7886/* Override any gcc2 internal prototype to avoid an error. */
7887#ifdef __cplusplus
7888extern "C"
7889#endif
7890/* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7892char opendir ();
7893int
7894main ()
7895{
7896opendir ();
7897 ;
7898 return 0;
7899}
7900_ACEOF
7901rm -f conftest.$ac_objext conftest$ac_exeext
7902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>conftest.er1
7904 ac_status=$?
7905 grep -v '^ *+' conftest.er1 >conftest.err
7906 rm -f conftest.er1
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } &&
49c96104
SE
7910 { ac_try='test -z "$ac_c_werror_flag"
7911 || test ! -s conftest.err'
2ba49b59
KC
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest$ac_exeext'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_cv_search_opendir="-l$ac_lib"
7924break
7925else
7926 echo "$as_me: failed program was:" >&5
7927sed 's/^/| /' conftest.$ac_ext >&5
7928
7929fi
7930rm -f conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 done
7933fi
7934LIBS=$ac_func_search_save_LIBS
7935fi
7936echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7937echo "${ECHO_T}$ac_cv_search_opendir" >&6
7938if test "$ac_cv_search_opendir" != no; then
7939 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7940
7941fi
7942
7943fi
7944
7945echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7946echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7947if test "${gcc_cv_header_string+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7949else
7950 cat >conftest.$ac_ext <<_ACEOF
7951/* confdefs.h. */
7952_ACEOF
7953cat confdefs.h >>conftest.$ac_ext
7954cat >>conftest.$ac_ext <<_ACEOF
7955/* end confdefs.h. */
7956#include <string.h>
7957#include <strings.h>
7958int
7959main ()
7960{
7961
7962 ;
7963 return 0;
7964}
7965_ACEOF
7966rm -f conftest.$ac_objext
7967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7968 (eval $ac_compile) 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
49c96104
SE
7975 { ac_try='test -z "$ac_c_werror_flag"
7976 || test ! -s conftest.err'
2ba49b59
KC
7977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 (eval $ac_try) 2>&5
7979 ac_status=$?
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); }; } &&
7982 { ac_try='test -s conftest.$ac_objext'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 (eval $ac_try) 2>&5
7985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 gcc_cv_header_string=yes
7989else
7990 echo "$as_me: failed program was:" >&5
7991sed 's/^/| /' conftest.$ac_ext >&5
7992
7993gcc_cv_header_string=no
7994fi
7995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7996fi
7997echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7998echo "${ECHO_T}$gcc_cv_header_string" >&6
7999if test $gcc_cv_header_string = yes; then
8000
8001cat >>confdefs.h <<\_ACEOF
8002#define STRING_WITH_STRINGS 1
8003_ACEOF
8004
2e0fbf77
JW
8005fi
8006
5464f5a1
NN
8007
8008
8009
8010
8011
8012
8013
633fd09f 8014for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 8015do
5464f5a1
NN
8016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8017echo "$as_me:$LINENO: checking for $ac_func" >&5
8018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8019if eval "test \"\${$as_ac_var+set}\" = set"; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021else
8022 cat >conftest.$ac_ext <<_ACEOF
8023/* confdefs.h. */
8024_ACEOF
8025cat confdefs.h >>conftest.$ac_ext
8026cat >>conftest.$ac_ext <<_ACEOF
8027/* end confdefs.h. */
8028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8030#define $ac_func innocuous_$ac_func
8031
252b5132 8032/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
8033 which can conflict with char $ac_func (); below.
8034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8035 <limits.h> exists even on freestanding compilers. */
8036
8037#ifdef __STDC__
8038# include <limits.h>
8039#else
8040# include <assert.h>
8041#endif
6be7c12c 8042
5464f5a1 8043#undef $ac_func
252b5132 8044
5464f5a1
NN
8045/* Override any gcc2 internal prototype to avoid an error. */
8046#ifdef __cplusplus
8047extern "C"
8048{
8049#endif
8050/* We use char because int might match the return type of a gcc2
8051 builtin and then its argument prototype would still apply. */
8052char $ac_func ();
252b5132
RH
8053/* The GNU C library defines this for functions which it implements
8054 to always fail with ENOSYS. Some functions are actually named
8055 something starting with __ and the normal name is an alias. */
8056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8057choke me
8058#else
5464f5a1
NN
8059char (*f) () = $ac_func;
8060#endif
8061#ifdef __cplusplus
8062}
252b5132
RH
8063#endif
8064
5464f5a1
NN
8065int
8066main ()
8067{
8068return f != $ac_func;
8069 ;
8070 return 0;
8071}
8072_ACEOF
8073rm -f conftest.$ac_objext conftest$ac_exeext
8074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075 (eval $ac_link) 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
49c96104
SE
8082 { ac_try='test -z "$ac_c_werror_flag"
8083 || test ! -s conftest.err'
5464f5a1
NN
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; } &&
8089 { ac_try='test -s conftest$ac_exeext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 eval "$as_ac_var=yes"
8096else
8097 echo "$as_me: failed program was:" >&5
8098sed 's/^/| /' conftest.$ac_ext >&5
8099
8100eval "$as_ac_var=no"
8101fi
8102rm -f conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext conftest.$ac_ext
8104fi
8105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8106echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8107if test `eval echo '${'$as_ac_var'}'` = yes; then
8108 cat >>confdefs.h <<_ACEOF
8109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8110_ACEOF
252b5132 8111
252b5132
RH
8112fi
8113done
8114
5464f5a1 8115
49c97a80
ILT
8116for ac_func in strtoull
8117do
5464f5a1
NN
8118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8119echo "$as_me:$LINENO: checking for $ac_func" >&5
8120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8121if eval "test \"\${$as_ac_var+set}\" = set"; then
8122 echo $ECHO_N "(cached) $ECHO_C" >&6
8123else
8124 cat >conftest.$ac_ext <<_ACEOF
8125/* confdefs.h. */
8126_ACEOF
8127cat confdefs.h >>conftest.$ac_ext
8128cat >>conftest.$ac_ext <<_ACEOF
8129/* end confdefs.h. */
8130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8132#define $ac_func innocuous_$ac_func
8133
49c97a80 8134/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
8135 which can conflict with char $ac_func (); below.
8136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8137 <limits.h> exists even on freestanding compilers. */
8138
8139#ifdef __STDC__
8140# include <limits.h>
8141#else
8142# include <assert.h>
8143#endif
49c97a80 8144
5464f5a1 8145#undef $ac_func
49c97a80 8146
5464f5a1
NN
8147/* Override any gcc2 internal prototype to avoid an error. */
8148#ifdef __cplusplus
8149extern "C"
8150{
8151#endif
8152/* We use char because int might match the return type of a gcc2
8153 builtin and then its argument prototype would still apply. */
8154char $ac_func ();
49c97a80
ILT
8155/* The GNU C library defines this for functions which it implements
8156 to always fail with ENOSYS. Some functions are actually named
8157 something starting with __ and the normal name is an alias. */
8158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8159choke me
8160#else
5464f5a1
NN
8161char (*f) () = $ac_func;
8162#endif
8163#ifdef __cplusplus
8164}
49c97a80
ILT
8165#endif
8166
5464f5a1
NN
8167int
8168main ()
8169{
8170return f != $ac_func;
8171 ;
8172 return 0;
8173}
8174_ACEOF
8175rm -f conftest.$ac_objext conftest$ac_exeext
8176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177 (eval $ac_link) 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
49c96104
SE
8184 { ac_try='test -z "$ac_c_werror_flag"
8185 || test ! -s conftest.err'
5464f5a1
NN
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest$ac_exeext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 eval "$as_ac_var=yes"
8198else
8199 echo "$as_me: failed program was:" >&5
8200sed 's/^/| /' conftest.$ac_ext >&5
8201
8202eval "$as_ac_var=no"
8203fi
8204rm -f conftest.err conftest.$ac_objext \
8205 conftest$ac_exeext conftest.$ac_ext
8206fi
8207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8208echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8209if test `eval echo '${'$as_ac_var'}'` = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8212_ACEOF
49c97a80 8213
49c97a80
ILT
8214fi
8215done
8216
6be7c12c 8217
2e9ebff5
JG
8218echo "$as_me:$LINENO: checking whether basename is declared" >&5
8219echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8220if test "${ac_cv_have_decl_basename+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else
8223 cat >conftest.$ac_ext <<_ACEOF
8224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
ec7b76fe 8229$ac_includes_default
2e9ebff5
JG
8230int
8231main ()
8232{
8233#ifndef basename
8234 char *p = (char *) basename;
8235#endif
8236
8237 ;
8238 return 0;
8239}
8240_ACEOF
8241rm -f conftest.$ac_objext
8242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8243 (eval $ac_compile) 2>conftest.er1
8244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
49c96104
SE
8250 { ac_try='test -z "$ac_c_werror_flag"
8251 || test ! -s conftest.err'
2e9ebff5
JG
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 (eval $ac_try) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; } &&
8257 { ac_try='test -s conftest.$ac_objext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_cv_have_decl_basename=yes
8264else
8265 echo "$as_me: failed program was:" >&5
8266sed 's/^/| /' conftest.$ac_ext >&5
8267
8268ac_cv_have_decl_basename=no
8269fi
8270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8271fi
8272echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8273echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8274if test $ac_cv_have_decl_basename = yes; then
8275
8276cat >>confdefs.h <<_ACEOF
8277#define HAVE_DECL_BASENAME 1
8278_ACEOF
8279
8280
8281else
8282 cat >>confdefs.h <<_ACEOF
8283#define HAVE_DECL_BASENAME 0
8284_ACEOF
8285
8286
8287fi
8288
8289
ec7b76fe
JG
8290echo "$as_me:$LINENO: checking whether ftello is declared" >&5
8291echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
8292if test "${ac_cv_have_decl_ftello+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294else
8295 cat >conftest.$ac_ext <<_ACEOF
8296/* confdefs.h. */
8297_ACEOF
8298cat confdefs.h >>conftest.$ac_ext
8299cat >>conftest.$ac_ext <<_ACEOF
8300/* end confdefs.h. */
8301$ac_includes_default
8302int
8303main ()
8304{
8305#ifndef ftello
8306 char *p = (char *) ftello;
8307#endif
8308
8309 ;
8310 return 0;
8311}
8312_ACEOF
8313rm -f conftest.$ac_objext
8314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315 (eval $ac_compile) 2>conftest.er1
8316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } &&
49c96104
SE
8322 { ac_try='test -z "$ac_c_werror_flag"
8323 || test ! -s conftest.err'
ec7b76fe
JG
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; } &&
8329 { ac_try='test -s conftest.$ac_objext'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8335 ac_cv_have_decl_ftello=yes
8336else
8337 echo "$as_me: failed program was:" >&5
8338sed 's/^/| /' conftest.$ac_ext >&5
8339
8340ac_cv_have_decl_ftello=no
8341fi
8342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8343fi
8344echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
8345echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
8346if test $ac_cv_have_decl_ftello = yes; then
8347
8348cat >>confdefs.h <<_ACEOF
8349#define HAVE_DECL_FTELLO 1
8350_ACEOF
8351
8352
8353else
8354 cat >>confdefs.h <<_ACEOF
8355#define HAVE_DECL_FTELLO 0
8356_ACEOF
8357
8358
8359fi
8360
8361
8362echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
8363echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
8364if test "${ac_cv_have_decl_ftello64+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366else
8367 cat >conftest.$ac_ext <<_ACEOF
8368/* confdefs.h. */
8369_ACEOF
8370cat confdefs.h >>conftest.$ac_ext
8371cat >>conftest.$ac_ext <<_ACEOF
8372/* end confdefs.h. */
8373$ac_includes_default
8374int
8375main ()
8376{
8377#ifndef ftello64
8378 char *p = (char *) ftello64;
8379#endif
8380
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385rm -f conftest.$ac_objext
8386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
49c96104
SE
8394 { ac_try='test -z "$ac_c_werror_flag"
8395 || test ! -s conftest.err'
ec7b76fe
JG
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest.$ac_objext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_cv_have_decl_ftello64=yes
8408else
8409 echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
8412ac_cv_have_decl_ftello64=no
8413fi
8414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8415fi
8416echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
8417echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
8418if test $ac_cv_have_decl_ftello64 = yes; then
8419
8420cat >>confdefs.h <<_ACEOF
8421#define HAVE_DECL_FTELLO64 1
8422_ACEOF
8423
8424
8425else
8426 cat >>confdefs.h <<_ACEOF
8427#define HAVE_DECL_FTELLO64 0
8428_ACEOF
8429
8430
8431fi
8432
8433
8434echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
8435echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
8436if test "${ac_cv_have_decl_fseeko+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438else
8439 cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h. */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h. */
8445$ac_includes_default
8446int
8447main ()
8448{
8449#ifndef fseeko
8450 char *p = (char *) fseeko;
8451#endif
8452
8453 ;
8454 return 0;
8455}
8456_ACEOF
8457rm -f conftest.$ac_objext
8458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8459 (eval $ac_compile) 2>conftest.er1
8460 ac_status=$?
8461 grep -v '^ *+' conftest.er1 >conftest.err
8462 rm -f conftest.er1
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
49c96104
SE
8466 { ac_try='test -z "$ac_c_werror_flag"
8467 || test ! -s conftest.err'
ec7b76fe
JG
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 ac_cv_have_decl_fseeko=yes
8480else
8481 echo "$as_me: failed program was:" >&5
8482sed 's/^/| /' conftest.$ac_ext >&5
8483
8484ac_cv_have_decl_fseeko=no
8485fi
8486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8487fi
8488echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
8489echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
8490if test $ac_cv_have_decl_fseeko = yes; then
8491
8492cat >>confdefs.h <<_ACEOF
8493#define HAVE_DECL_FSEEKO 1
8494_ACEOF
8495
8496
8497else
8498 cat >>confdefs.h <<_ACEOF
8499#define HAVE_DECL_FSEEKO 0
8500_ACEOF
8501
8502
8503fi
8504
8505
8506echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
8507echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
8508if test "${ac_cv_have_decl_fseeko64+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
8510else
8511 cat >conftest.$ac_ext <<_ACEOF
8512/* confdefs.h. */
8513_ACEOF
8514cat confdefs.h >>conftest.$ac_ext
8515cat >>conftest.$ac_ext <<_ACEOF
8516/* end confdefs.h. */
8517$ac_includes_default
8518int
8519main ()
8520{
8521#ifndef fseeko64
8522 char *p = (char *) fseeko64;
8523#endif
8524
8525 ;
8526 return 0;
8527}
8528_ACEOF
8529rm -f conftest.$ac_objext
8530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531 (eval $ac_compile) 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
49c96104
SE
8538 { ac_try='test -z "$ac_c_werror_flag"
8539 || test ! -s conftest.err'
ec7b76fe
JG
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try='test -s conftest.$ac_objext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_cv_have_decl_fseeko64=yes
8552else
8553 echo "$as_me: failed program was:" >&5
8554sed 's/^/| /' conftest.$ac_ext >&5
8555
8556ac_cv_have_decl_fseeko64=no
8557fi
8558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8559fi
8560echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
8561echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
8562if test $ac_cv_have_decl_fseeko64 = yes; then
8563
8564cat >>confdefs.h <<_ACEOF
8565#define HAVE_DECL_FSEEKO64 1
8566_ACEOF
8567
8568
8569else
8570 cat >>confdefs.h <<_ACEOF
8571#define HAVE_DECL_FSEEKO64 0
8572_ACEOF
8573
8574
8575fi
8576
8577
2e9ebff5 8578
6be7c12c 8579
252b5132 8580case "${host}" in
855b0be7 8581*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
8582
8583cat >>confdefs.h <<\_ACEOF
252b5132 8584#define USE_BINARY_FOPEN 1
5464f5a1 8585_ACEOF
252b5132
RH
8586 ;;
8587esac
8588
d34a2b1d
JG
8589echo "$as_me:$LINENO: checking whether ffs is declared" >&5
8590echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
8591if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 8592 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8593else
5464f5a1
NN
8594 cat >conftest.$ac_ext <<_ACEOF
8595/* confdefs.h. */
8596_ACEOF
8597cat confdefs.h >>conftest.$ac_ext
8598cat >>conftest.$ac_ext <<_ACEOF
8599/* end confdefs.h. */
d34a2b1d 8600$ac_includes_default
5464f5a1
NN
8601int
8602main ()
8603{
d34a2b1d
JG
8604#ifndef ffs
8605 char *p = (char *) ffs;
8606#endif
8607
5464f5a1
NN
8608 ;
8609 return 0;
8610}
8611_ACEOF
8612rm -f conftest.$ac_objext
8613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 (eval $ac_compile) 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
49c96104
SE
8621 { ac_try='test -z "$ac_c_werror_flag"
8622 || test ! -s conftest.err'
5464f5a1
NN
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } &&
8628 { ac_try='test -s conftest.$ac_objext'
8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 (eval $ac_try) 2>&5
8631 ac_status=$?
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); }; }; then
d34a2b1d 8634 ac_cv_have_decl_ffs=yes
252b5132 8635else
5464f5a1
NN
8636 echo "$as_me: failed program was:" >&5
8637sed 's/^/| /' conftest.$ac_ext >&5
8638
d34a2b1d 8639ac_cv_have_decl_ffs=no
252b5132 8640fi
5464f5a1 8641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8642fi
d34a2b1d
JG
8643echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8644echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8645if test $ac_cv_have_decl_ffs = yes; then
252b5132 8646
d34a2b1d
JG
8647cat >>confdefs.h <<_ACEOF
8648#define HAVE_DECL_FFS 1
8649_ACEOF
5464f5a1 8650
d34a2b1d
JG
8651
8652else
8653 cat >>confdefs.h <<_ACEOF
8654#define HAVE_DECL_FFS 0
5464f5a1 8655_ACEOF
252b5132 8656
d34a2b1d 8657
252b5132
RH
8658fi
8659
d34a2b1d
JG
8660
8661echo "$as_me:$LINENO: checking whether free is declared" >&5
8662echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8663if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 8664 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8665else
5464f5a1
NN
8666 cat >conftest.$ac_ext <<_ACEOF
8667/* confdefs.h. */
8668_ACEOF
8669cat confdefs.h >>conftest.$ac_ext
8670cat >>conftest.$ac_ext <<_ACEOF
8671/* end confdefs.h. */
d34a2b1d 8672$ac_includes_default
5464f5a1
NN
8673int
8674main ()
8675{
d34a2b1d
JG
8676#ifndef free
8677 char *p = (char *) free;
8678#endif
8679
5464f5a1
NN
8680 ;
8681 return 0;
8682}
8683_ACEOF
8684rm -f conftest.$ac_objext
8685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8686 (eval $ac_compile) 2>conftest.er1
8687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
49c96104
SE
8693 { ac_try='test -z "$ac_c_werror_flag"
8694 || test ! -s conftest.err'
5464f5a1
NN
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try='test -s conftest.$ac_objext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 (eval $ac_try) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
d34a2b1d 8706 ac_cv_have_decl_free=yes
252b5132 8707else
5464f5a1
NN
8708 echo "$as_me: failed program was:" >&5
8709sed 's/^/| /' conftest.$ac_ext >&5
8710
d34a2b1d 8711ac_cv_have_decl_free=no
252b5132 8712fi
5464f5a1 8713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8714fi
d34a2b1d
JG
8715echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8716echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8717if test $ac_cv_have_decl_free = yes; then
8718
8719cat >>confdefs.h <<_ACEOF
8720#define HAVE_DECL_FREE 1
8721_ACEOF
252b5132 8722
5464f5a1 8723
d34a2b1d
JG
8724else
8725 cat >>confdefs.h <<_ACEOF
8726#define HAVE_DECL_FREE 0
5464f5a1 8727_ACEOF
252b5132 8728
d34a2b1d 8729
252b5132
RH
8730fi
8731
d34a2b1d
JG
8732
8733echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8734echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8735if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 8736 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8737else
5464f5a1
NN
8738 cat >conftest.$ac_ext <<_ACEOF
8739/* confdefs.h. */
8740_ACEOF
8741cat confdefs.h >>conftest.$ac_ext
8742cat >>conftest.$ac_ext <<_ACEOF
8743/* end confdefs.h. */
d34a2b1d 8744$ac_includes_default
5464f5a1
NN
8745int
8746main ()
8747{
d34a2b1d
JG
8748#ifndef getenv
8749 char *p = (char *) getenv;
8750#endif
8751
5464f5a1
NN
8752 ;
8753 return 0;
8754}
8755_ACEOF
8756rm -f conftest.$ac_objext
8757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
49c96104
SE
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
5464f5a1
NN
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest.$ac_objext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
d34a2b1d 8778 ac_cv_have_decl_getenv=yes
252b5132 8779else
5464f5a1
NN
8780 echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
d34a2b1d 8783ac_cv_have_decl_getenv=no
252b5132 8784fi
5464f5a1 8785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8786fi
d34a2b1d
JG
8787echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8788echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8789if test $ac_cv_have_decl_getenv = yes; then
252b5132 8790
d34a2b1d
JG
8791cat >>confdefs.h <<_ACEOF
8792#define HAVE_DECL_GETENV 1
8793_ACEOF
5464f5a1 8794
d34a2b1d
JG
8795
8796else
8797 cat >>confdefs.h <<_ACEOF
8798#define HAVE_DECL_GETENV 0
5464f5a1 8799_ACEOF
252b5132 8800
d34a2b1d 8801
252b5132
RH
8802fi
8803
d34a2b1d
JG
8804
8805echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8806echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8807if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 8808 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8809else
5464f5a1
NN
8810 cat >conftest.$ac_ext <<_ACEOF
8811/* confdefs.h. */
8812_ACEOF
8813cat confdefs.h >>conftest.$ac_ext
8814cat >>conftest.$ac_ext <<_ACEOF
8815/* end confdefs.h. */
d34a2b1d 8816$ac_includes_default
5464f5a1
NN
8817int
8818main ()
8819{
d34a2b1d
JG
8820#ifndef malloc
8821 char *p = (char *) malloc;
8822#endif
8823
5464f5a1
NN
8824 ;
8825 return 0;
8826}
8827_ACEOF
8828rm -f conftest.$ac_objext
8829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8830 (eval $ac_compile) 2>conftest.er1
8831 ac_status=$?
8832 grep -v '^ *+' conftest.er1 >conftest.err
8833 rm -f conftest.er1
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
49c96104
SE
8837 { ac_try='test -z "$ac_c_werror_flag"
8838 || test ! -s conftest.err'
5464f5a1
NN
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; } &&
8844 { ac_try='test -s conftest.$ac_objext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
d34a2b1d 8850 ac_cv_have_decl_malloc=yes
252b5132 8851else
5464f5a1
NN
8852 echo "$as_me: failed program was:" >&5
8853sed 's/^/| /' conftest.$ac_ext >&5
8854
d34a2b1d 8855ac_cv_have_decl_malloc=no
252b5132 8856fi
5464f5a1 8857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8858fi
d34a2b1d
JG
8859echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8860echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8861if test $ac_cv_have_decl_malloc = yes; then
252b5132 8862
d34a2b1d
JG
8863cat >>confdefs.h <<_ACEOF
8864#define HAVE_DECL_MALLOC 1
8865_ACEOF
5464f5a1 8866
d34a2b1d
JG
8867
8868else
8869 cat >>confdefs.h <<_ACEOF
8870#define HAVE_DECL_MALLOC 0
5464f5a1 8871_ACEOF
252b5132 8872
d34a2b1d 8873
252b5132
RH
8874fi
8875
d34a2b1d
JG
8876
8877echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8878echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8879if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 8880 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8881else
5464f5a1
NN
8882 cat >conftest.$ac_ext <<_ACEOF
8883/* confdefs.h. */
8884_ACEOF
8885cat confdefs.h >>conftest.$ac_ext
8886cat >>conftest.$ac_ext <<_ACEOF
8887/* end confdefs.h. */
d34a2b1d 8888$ac_includes_default
5464f5a1
NN
8889int
8890main ()
8891{
d34a2b1d
JG
8892#ifndef realloc
8893 char *p = (char *) realloc;
8894#endif
8895
5464f5a1
NN
8896 ;
8897 return 0;
8898}
8899_ACEOF
8900rm -f conftest.$ac_objext
8901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8902 (eval $ac_compile) 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
49c96104
SE
8909 { ac_try='test -z "$ac_c_werror_flag"
8910 || test ! -s conftest.err'
5464f5a1
NN
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest.$ac_objext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8918 (eval $ac_try) 2>&5
8919 ac_status=$?
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
d34a2b1d 8922 ac_cv_have_decl_realloc=yes
252b5132 8923else
5464f5a1
NN
8924 echo "$as_me: failed program was:" >&5
8925sed 's/^/| /' conftest.$ac_ext >&5
8926
d34a2b1d 8927ac_cv_have_decl_realloc=no
252b5132 8928fi
5464f5a1 8929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8930fi
d34a2b1d
JG
8931echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8932echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8933if test $ac_cv_have_decl_realloc = yes; then
8934
8935cat >>confdefs.h <<_ACEOF
8936#define HAVE_DECL_REALLOC 1
8937_ACEOF
252b5132 8938
5464f5a1 8939
d34a2b1d
JG
8940else
8941 cat >>confdefs.h <<_ACEOF
8942#define HAVE_DECL_REALLOC 0
efa9bda4
AL
8943_ACEOF
8944
d34a2b1d 8945
efa9bda4
AL
8946fi
8947
d34a2b1d 8948
be5cacdb
L
8949echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8950echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8951if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953else
8954 cat >conftest.$ac_ext <<_ACEOF
8955/* confdefs.h. */
8956_ACEOF
8957cat confdefs.h >>conftest.$ac_ext
8958cat >>conftest.$ac_ext <<_ACEOF
8959/* end confdefs.h. */
8960$ac_includes_default
8961int
8962main ()
8963{
8964#ifndef stpcpy
8965 char *p = (char *) stpcpy;
8966#endif
8967
8968 ;
8969 return 0;
8970}
8971_ACEOF
8972rm -f conftest.$ac_objext
8973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8974 (eval $ac_compile) 2>conftest.er1
8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
49c96104
SE
8981 { ac_try='test -z "$ac_c_werror_flag"
8982 || test ! -s conftest.err'
be5cacdb
L
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest.$ac_objext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 ac_cv_have_decl_stpcpy=yes
8995else
8996 echo "$as_me: failed program was:" >&5
8997sed 's/^/| /' conftest.$ac_ext >&5
8998
8999ac_cv_have_decl_stpcpy=no
9000fi
9001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9002fi
9003echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
9004echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
9005if test $ac_cv_have_decl_stpcpy = yes; then
9006
9007cat >>confdefs.h <<_ACEOF
9008#define HAVE_DECL_STPCPY 1
9009_ACEOF
9010
9011
9012else
9013 cat >>confdefs.h <<_ACEOF
9014#define HAVE_DECL_STPCPY 0
9015_ACEOF
9016
9017
9018fi
9019
9020
d34a2b1d
JG
9021echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9022echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9023if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9025else
9026 cat >conftest.$ac_ext <<_ACEOF
9027/* confdefs.h. */
9028_ACEOF
9029cat confdefs.h >>conftest.$ac_ext
9030cat >>conftest.$ac_ext <<_ACEOF
9031/* end confdefs.h. */
d34a2b1d 9032$ac_includes_default
efa9bda4
AL
9033int
9034main ()
9035{
d34a2b1d
JG
9036#ifndef strstr
9037 char *p = (char *) strstr;
9038#endif
9039
efa9bda4
AL
9040 ;
9041 return 0;
9042}
9043_ACEOF
9044rm -f conftest.$ac_objext
9045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
49c96104
SE
9053 { ac_try='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
efa9bda4
AL
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest.$ac_objext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
d34a2b1d 9066 ac_cv_have_decl_strstr=yes
efa9bda4
AL
9067else
9068 echo "$as_me: failed program was:" >&5
9069sed 's/^/| /' conftest.$ac_ext >&5
9070
d34a2b1d 9071ac_cv_have_decl_strstr=no
efa9bda4
AL
9072fi
9073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9074fi
d34a2b1d
JG
9075echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9076echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9077if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 9078
d34a2b1d
JG
9079cat >>confdefs.h <<_ACEOF
9080#define HAVE_DECL_STRSTR 1
9081_ACEOF
efa9bda4 9082
d34a2b1d
JG
9083
9084else
9085 cat >>confdefs.h <<_ACEOF
9086#define HAVE_DECL_STRSTR 0
5464f5a1 9087_ACEOF
252b5132 9088
d34a2b1d 9089
252b5132
RH
9090fi
9091
6be7c12c 9092
36527912
AJ
9093echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9094echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
9095if test "${ac_cv_have_decl_snprintf+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9097else
9098 cat >conftest.$ac_ext <<_ACEOF
9099/* confdefs.h. */
9100_ACEOF
9101cat confdefs.h >>conftest.$ac_ext
9102cat >>conftest.$ac_ext <<_ACEOF
9103/* end confdefs.h. */
9104$ac_includes_default
9105int
9106main ()
9107{
9108#ifndef snprintf
9109 char *p = (char *) snprintf;
9110#endif
9111
9112 ;
9113 return 0;
9114}
9115_ACEOF
9116rm -f conftest.$ac_objext
9117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9118 (eval $ac_compile) 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } &&
49c96104
SE
9125 { ac_try='test -z "$ac_c_werror_flag"
9126 || test ! -s conftest.err'
36527912
AJ
9127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 (eval $ac_try) 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest.$ac_objext'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5
9135 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; }; then
9138 ac_cv_have_decl_snprintf=yes
9139else
9140 echo "$as_me: failed program was:" >&5
9141sed 's/^/| /' conftest.$ac_ext >&5
9142
9143ac_cv_have_decl_snprintf=no
9144fi
9145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9146fi
9147echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9148echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
9149if test $ac_cv_have_decl_snprintf = yes; then
9150
9151cat >>confdefs.h <<_ACEOF
9152#define HAVE_DECL_SNPRINTF 1
9153_ACEOF
9154
9155
9156else
9157 cat >>confdefs.h <<_ACEOF
9158#define HAVE_DECL_SNPRINTF 0
9159_ACEOF
9160
9161
9162fi
9163
9164
9165echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
9166echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
9167if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9169else
9170 cat >conftest.$ac_ext <<_ACEOF
9171/* confdefs.h. */
9172_ACEOF
9173cat confdefs.h >>conftest.$ac_ext
9174cat >>conftest.$ac_ext <<_ACEOF
9175/* end confdefs.h. */
9176$ac_includes_default
9177int
9178main ()
9179{
9180#ifndef vsnprintf
9181 char *p = (char *) vsnprintf;
9182#endif
9183
9184 ;
9185 return 0;
9186}
9187_ACEOF
9188rm -f conftest.$ac_objext
9189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9190 (eval $ac_compile) 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
49c96104
SE
9197 { ac_try='test -z "$ac_c_werror_flag"
9198 || test ! -s conftest.err'
36527912
AJ
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest.$ac_objext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_cv_have_decl_vsnprintf=yes
9211else
9212 echo "$as_me: failed program was:" >&5
9213sed 's/^/| /' conftest.$ac_ext >&5
9214
9215ac_cv_have_decl_vsnprintf=no
9216fi
9217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9218fi
9219echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
9220echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
9221if test $ac_cv_have_decl_vsnprintf = yes; then
9222
9223cat >>confdefs.h <<_ACEOF
9224#define HAVE_DECL_VSNPRINTF 1
9225_ACEOF
9226
9227
9228else
9229 cat >>confdefs.h <<_ACEOF
9230#define HAVE_DECL_VSNPRINTF 0
9231_ACEOF
9232
9233
9234fi
9235
9236
d34a2b1d 9237
252b5132
RH
9238# If we are configured native, pick a core file support file.
9239COREFILE=
9240COREFLAG=
9241TRAD_HEADER=
9242if test "${target}" = "${host}"; then
9243 case "${host}" in
13dfd2d0 9244 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
9245 COREFILE=''
9246 ;;
ed84e695 9247 alpha*-*-linux-*)
252b5132
RH
9248 COREFILE=trad-core.lo
9249 TRAD_HEADER='"hosts/alphalinux.h"'
9250 ;;
690cc98b
NC
9251 alpha*-*-netbsd* | alpha*-*-openbsd*)
9252 COREFILE=netbsd-core.lo
9253 ;;
252b5132 9254 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
9255 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9256 COREFILE='' ;;
e33533a4
MK
9257 arm-*-netbsd* | arm-*-openbsd*)
9258 COREFILE=netbsd-core.lo
9259 ;;
252b5132
RH
9260 arm-*-riscix) COREFILE=trad-core.lo ;;
9261 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9262 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9263 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9264 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9265 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
9266 hppa*-*-netbsd* | hppa*-*-openbsd*)
9267 COREFILE=netbsd-core.lo
9268 ;;
9269
dc810e39 9270 i370-*-*)
5b93d8bb
AM
9271 COREFILE=trad-core.lo
9272 TRAD_HEADER='"hosts/i370linux.h"'
9273 ;;
9274
80c7c40a 9275 i[3-7]86-sequent-bsd*)
5b93d8bb 9276 COREFILE=trad-core.lo
252b5132
RH
9277 TRAD_HEADER='"hosts/symmetry.h"'
9278 ;;
80c7c40a
NC
9279 i[3-7]86-sequent-sysv4*) ;;
9280 i[3-7]86-sequent-sysv*)
252b5132
RH
9281 COREFILE=trad-core.lo
9282 TRAD_HEADER='"hosts/symmetry.h"'
9283 ;;
80c7c40a 9284 i[3-7]86-*-bsdi)
7e3b3466
NC
9285 COREFILE=
9286 ;;
d2bef492 9287 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
9288 COREFILE=trad-core.lo
9289 TRAD_HEADER='"hosts/i386bsd.h"'
9290 ;;
13dfd2d0 9291 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
9292 COREFILE=''
9293 TRAD_HEADER='"hosts/i386bsd.h"'
9294 ;;
4615568e 9295 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
9296 COREFILE=netbsd-core.lo
9297 ;;
80c7c40a 9298 i[3-7]86-esix-sysv3*)
252b5132
RH
9299 COREFILE=trad-core.lo
9300 TRAD_HEADER='"hosts/esix.h"'
9301 ;;
80c7c40a 9302 i[3-7]86-*-sco3.2v5*)
252b5132
RH
9303 COREFILE=sco5-core.lo
9304 ;;
80c7c40a 9305 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
9306 COREFILE=trad-core.lo
9307 TRAD_HEADER='"hosts/i386sco.h"'
9308 ;;
80c7c40a 9309 i[3-7]86-*-mach3*)
252b5132
RH
9310 COREFILE=trad-core.lo
9311 TRAD_HEADER='"hosts/i386mach3.h"'
9312 ;;
ed84e695 9313 i[3-7]86-*-linux-*)
252b5132
RH
9314 COREFILE=trad-core.lo
9315 TRAD_HEADER='"hosts/i386linux.h"'
9316 ;;
80c7c40a
NC
9317 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9318 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
9319 i860-*-mach3* | i860-*-osf1*)
9320 COREFILE=trad-core.lo
9321 TRAD_HEADER='"hosts/i860mach3.h"'
9322 ;;
252b5132
RH
9323 mips-*-netbsd* | mips*-*-openbsd*)
9324 COREFILE=netbsd-core.lo
9325 ;;
9326 mips-dec-*)
9327 COREFILE=trad-core.lo
9328 TRAD_HEADER='"hosts/decstation.h"'
9329 ;;
9330 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9331 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9332 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
9333 mips-*-sysv4*) ;;
9334 mips-*-sysv* | mips-*-riscos*)
9335 COREFILE=trad-core.lo
9336 TRAD_HEADER='"hosts/riscos.h"'
9337 ;;
9338 mips-sony-bsd*)
9339 COREFILE=trad-core.lo
9340 TRAD_HEADER='"hosts/news-mips.h"'
9341 ;;
9342 m68*-bull*-sysv*)
9343 COREFILE=trad-core.lo
9344 TRAD_HEADER='"hosts/dpx2.h"'
9345 ;;
9346 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9347 m68*-hp-bsd*)
9348 COREFILE=trad-core.lo
9349 TRAD_HEADER='"hosts/hp300bsd.h"'
9350 ;;
ed84e695 9351 m68*-*-linux-*)
252b5132
RH
9352 COREFILE=trad-core.lo
9353 TRAD_HEADER='"hosts/m68klinux.h"'
9354 ;;
9355 m68*-motorola-sysv*)
9356 COREFILE=trad-core.lo
9357 TRAD_HEADER='"hosts/delta68.h"'
9358 ;;
9359 m68*-sony-*)
9360 COREFILE=trad-core.lo
9361 TRAD_HEADER='"hosts/news.h"'
9362 ;;
9363 m68*-*-netbsd* | m68*-*-openbsd*)
9364 COREFILE=netbsd-core.lo
9365 ;;
9366 m68*-apple-aux*)
9367 COREFILE=trad-core.lo
9368 TRAD_HEADER='"hosts/m68kaux.h"'
9369 ;;
eb1e0e80
NC
9370 m88*-*-sysv4*)
9371 ;;
9372 m88*-motorola-sysv*)
9373 COREFILE=ptrace-core.lo
9374 ;;
252b5132
RH
9375 m88*-*-mach3*)
9376 COREFILE=trad-core.lo
9377 TRAD_HEADER='"hosts/m88kmach3.h"'
9378 ;;
c6f8758f
NC
9379 m88*-*-openbsd*)
9380 COREFILE=netbsd-core.lo
9381 ;;
252b5132
RH
9382 ns32k-pc532-mach)
9383 COREFILE=trad-core.lo
9384 TRAD_HEADER='"hosts/pc532mach.h"'
9385 ;;
9386 ns32k-*-netbsd* | ns32k-*-openbsd*)
9387 COREFILE=netbsd-core.lo
9388 ;;
eb1e0e80
NC
9389 rs6000-*-lynx*)
9390 COREFILE=lynx-core.lo
9391 ;;
9392 rs6000-*-aix5.* | powerpc-*-aix5.*)
9393 COREFILE=rs6000-core.lo
9394 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9395 ;;
83954261 9396 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
9397 COREFILE=rs6000-core.lo
9398 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
9399 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9400 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
9401 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9402echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9403 cat >conftest.$ac_ext <<_ACEOF
9404/* confdefs.h. */
9405_ACEOF
9406cat confdefs.h >>conftest.$ac_ext
9407cat >>conftest.$ac_ext <<_ACEOF
9408/* end confdefs.h. */
83954261 9409#include <core.h>
5464f5a1
NN
9410int
9411main ()
9412{
83954261 9413struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
9414 ;
9415 return 0;
9416}
9417_ACEOF
9418rm -f conftest.$ac_objext
9419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9420 (eval $ac_compile) 2>conftest.er1
9421 ac_status=$?
9422 grep -v '^ *+' conftest.er1 >conftest.err
9423 rm -f conftest.er1
9424 cat conftest.err >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); } &&
49c96104
SE
9427 { ac_try='test -z "$ac_c_werror_flag"
9428 || test ! -s conftest.err'
5464f5a1
NN
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 (eval $ac_try) 2>&5
9431 ac_status=$?
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; } &&
9434 { ac_try='test -s conftest.$ac_objext'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 (eval $ac_try) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; }; then
9440
9441cat >>confdefs.h <<\_ACEOF
83954261 9442#define HAVE_ST_C_IMPL 1
5464f5a1 9443_ACEOF
83954261 9444
5464f5a1
NN
9445 echo "$as_me:$LINENO: result: yes" >&5
9446echo "${ECHO_T}yes" >&6
83954261 9447else
5464f5a1
NN
9448 echo "$as_me: failed program was:" >&5
9449sed 's/^/| /' conftest.$ac_ext >&5
9450
9451echo "$as_me:$LINENO: result: no" >&5
9452echo "${ECHO_T}no" >&6
83954261 9453fi
5464f5a1 9454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 9455 ;;
252b5132
RH
9456 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9457 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
9458 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9459 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9460 powerpc-*-beos*) ;;
13dfd2d0
NC
9461 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9462 COREFILE='' ;;
252b5132 9463 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 9464 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 9465 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
9466 sh*-*-netbsd* | sh*-*-openbsd*)
9467 COREFILE=netbsd-core.lo
9468 ;;
a9bf1154 9469 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
9470 COREFILE=netbsd-core.lo
9471 ;;
9472 tahoe-*-*)
9473 COREFILE=trad-core.lo
9474 TRAD_HEADER='"hosts/tahoe.h"'
9475 ;;
de6e5e1a
NC
9476 vax-*-netbsd* | vax-*-openbsd*)
9477 COREFILE=netbsd-core.lo
9478 ;;
252b5132
RH
9479 vax-*-ultrix2*)
9480 COREFILE=trad-core.lo
9481 TRAD_HEADER='"hosts/vaxult2.h"'
9482 ;;
9483 vax-*-ultrix*)
9484 COREFILE=trad-core.lo
9485 TRAD_HEADER='"hosts/vaxult2.h"'
9486 ;;
ed84e695 9487 vax-*-linux-*)
f8fc3443
NC
9488 COREFILE=trad-core.lo
9489 TRAD_HEADER='"hosts/vaxlinux.h"'
9490 ;;
252b5132
RH
9491 vax-*-*)
9492 COREFILE=trad-core.lo
9493 TRAD_HEADER='"hosts/vaxbsd.h"'
9494 ;;
85cfd8d3
MK
9495 x86_64-*-netbsd* | x86_64-*-openbsd*)
9496 COREFILE=netbsd-core.lo
9497 ;;
252b5132
RH
9498 esac
9499
9500 case "$COREFILE" in
9501 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9502 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9503 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9504 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9505 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9506 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9507 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9508 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9509 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9510 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9511 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9512 esac
9513
9514 # ELF corefile support has several flavors, but all of
9515 # them use something called <sys/procfs.h>
5464f5a1
NN
9516
9517for ac_header in sys/procfs.h
252b5132 9518do
5464f5a1
NN
9519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9520if eval "test \"\${$as_ac_Header+set}\" = set"; then
9521 echo "$as_me:$LINENO: checking for $ac_header" >&5
9522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9523if eval "test \"\${$as_ac_Header+set}\" = set"; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9525fi
9526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9528else
9529 # Is the header compilable?
9530echo "$as_me:$LINENO: checking $ac_header usability" >&5
9531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9532cat >conftest.$ac_ext <<_ACEOF
9533/* confdefs.h. */
9534_ACEOF
9535cat confdefs.h >>conftest.$ac_ext
9536cat >>conftest.$ac_ext <<_ACEOF
9537/* end confdefs.h. */
9538$ac_includes_default
9539#include <$ac_header>
9540_ACEOF
9541rm -f conftest.$ac_objext
9542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9543 (eval $ac_compile) 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
49c96104
SE
9550 { ac_try='test -z "$ac_c_werror_flag"
9551 || test ! -s conftest.err'
5464f5a1
NN
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 (eval $ac_try) 2>&5
9554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try='test -s conftest.$ac_objext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559 (eval $ac_try) 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_header_compiler=yes
9564else
9565 echo "$as_me: failed program was:" >&5
9566sed 's/^/| /' conftest.$ac_ext >&5
9567
9568ac_header_compiler=no
9569fi
9570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9572echo "${ECHO_T}$ac_header_compiler" >&6
9573
9574# Is the header present?
9575echo "$as_me:$LINENO: checking $ac_header presence" >&5
9576echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9577cat >conftest.$ac_ext <<_ACEOF
9578/* confdefs.h. */
9579_ACEOF
9580cat confdefs.h >>conftest.$ac_ext
9581cat >>conftest.$ac_ext <<_ACEOF
9582/* end confdefs.h. */
9583#include <$ac_header>
9584_ACEOF
9585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } >/dev/null; then
9593 if test -s conftest.err; then
9594 ac_cpp_err=$ac_c_preproc_warn_flag
9595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9596 else
9597 ac_cpp_err=
9598 fi
252b5132 9599else
5464f5a1 9600 ac_cpp_err=yes
252b5132 9601fi
5464f5a1
NN
9602if test -z "$ac_cpp_err"; then
9603 ac_header_preproc=yes
9604else
9605 echo "$as_me: failed program was:" >&5
9606sed 's/^/| /' conftest.$ac_ext >&5
9607
9608 ac_header_preproc=no
252b5132 9609fi
5464f5a1
NN
9610rm -f conftest.err conftest.$ac_ext
9611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9612echo "${ECHO_T}$ac_header_preproc" >&6
9613
9614# So? What about this header?
9615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9616 yes:no: )
9617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9621 ac_header_preproc=yes
9622 ;;
9623 no:yes:* )
9624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9627echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9631echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9636 (
9637 cat <<\_ASBOX
9638## ------------------------------------------ ##
9639## Report this to the AC_PACKAGE_NAME lists. ##
9640## ------------------------------------------ ##
9641_ASBOX
9642 ) |
9643 sed "s/^/$as_me: WARNING: /" >&2
9644 ;;
9645esac
9646echo "$as_me:$LINENO: checking for $ac_header" >&5
9647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9648if eval "test \"\${$as_ac_Header+set}\" = set"; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 9650else
5464f5a1
NN
9651 eval "$as_ac_Header=\$ac_header_preproc"
9652fi
9653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9655
252b5132 9656fi
5464f5a1
NN
9657if test `eval echo '${'$as_ac_Header'}'` = yes; then
9658 cat >>confdefs.h <<_ACEOF
9659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9660_ACEOF
9661
9662fi
9663
252b5132
RH
9664done
9665
9666 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
9667 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9668echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9669 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671else
9672 cat >conftest.$ac_ext <<_ACEOF
9673/* confdefs.h. */
9674_ACEOF
9675cat confdefs.h >>conftest.$ac_ext
9676cat >>conftest.$ac_ext <<_ACEOF
9677/* end confdefs.h. */
7ee38065
MS
9678
9679#define _SYSCALL32
252b5132 9680#include <sys/procfs.h>
5464f5a1
NN
9681int
9682main ()
9683{
252b5132 9684prstatus_t avar
5464f5a1
NN
9685 ;
9686 return 0;
9687}
9688_ACEOF
9689rm -f conftest.$ac_objext
9690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691 (eval $ac_compile) 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
49c96104
SE
9698 { ac_try='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
5464f5a1
NN
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try='test -s conftest.$ac_objext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
252b5132
RH
9711 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9712else
5464f5a1
NN
9713 echo "$as_me: failed program was:" >&5
9714sed 's/^/| /' conftest.$ac_ext >&5
9715
9716bfd_cv_have_sys_procfs_type_prstatus_t=no
9717
252b5132 9718fi
5464f5a1 9719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9720fi
9721
9722 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
9723
9724cat >>confdefs.h <<\_ACEOF
252b5132 9725#define HAVE_PRSTATUS_T 1
5464f5a1 9726_ACEOF
252b5132
RH
9727
9728 fi
5464f5a1
NN
9729 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9730echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 9731
5464f5a1
NN
9732 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9733echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9734 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9736else
5464f5a1
NN
9737 cat >conftest.$ac_ext <<_ACEOF
9738/* confdefs.h. */
9739_ACEOF
9740cat confdefs.h >>conftest.$ac_ext
9741cat >>conftest.$ac_ext <<_ACEOF
9742/* end confdefs.h. */
7ee38065
MS
9743
9744#define _SYSCALL32
9745#include <sys/procfs.h>
5464f5a1
NN
9746int
9747main ()
9748{
7ee38065 9749prstatus32_t avar
5464f5a1
NN
9750 ;
9751 return 0;
9752}
9753_ACEOF
9754rm -f conftest.$ac_objext
9755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
49c96104
SE
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
5464f5a1
NN
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest.$ac_objext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
7ee38065
MS
9776 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9777else
5464f5a1
NN
9778 echo "$as_me: failed program was:" >&5
9779sed 's/^/| /' conftest.$ac_ext >&5
9780
9781bfd_cv_have_sys_procfs_type_prstatus32_t=no
9782
7ee38065 9783fi
5464f5a1 9784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
9785fi
9786
9787 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
9788
9789cat >>confdefs.h <<\_ACEOF
7ee38065 9790#define HAVE_PRSTATUS32_T 1
5464f5a1 9791_ACEOF
7ee38065
MS
9792
9793 fi
5464f5a1
NN
9794 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
9795echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 9796
5464f5a1
NN
9797 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
9798echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9799 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9801else
5464f5a1
NN
9802 cat >conftest.$ac_ext <<_ACEOF
9803/* confdefs.h. */
9804_ACEOF
9805cat confdefs.h >>conftest.$ac_ext
9806cat >>conftest.$ac_ext <<_ACEOF
9807/* end confdefs.h. */
7ee38065
MS
9808
9809#define _SYSCALL32
252b5132 9810#include <sys/procfs.h>
5464f5a1
NN
9811int
9812main ()
9813{
252b5132 9814prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
9815 ;
9816 return 0;
9817}
9818_ACEOF
9819rm -f conftest.$ac_objext
9820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9821 (eval $ac_compile) 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
49c96104
SE
9828 { ac_try='test -z "$ac_c_werror_flag"
9829 || test ! -s conftest.err'
5464f5a1
NN
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest.$ac_objext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
252b5132
RH
9841 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
9842else
5464f5a1
NN
9843 echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
9847
252b5132 9848fi
5464f5a1 9849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9850fi
9851
9852 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
9853
9854cat >>confdefs.h <<\_ACEOF
252b5132 9855#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 9856_ACEOF
252b5132
RH
9857
9858 fi
5464f5a1
NN
9859 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
9860echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 9861
5464f5a1
NN
9862 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
9863echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9864 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9866else
5464f5a1
NN
9867 cat >conftest.$ac_ext <<_ACEOF
9868/* confdefs.h. */
9869_ACEOF
9870cat confdefs.h >>conftest.$ac_ext
9871cat >>conftest.$ac_ext <<_ACEOF
9872/* end confdefs.h. */
7ee38065
MS
9873
9874#define _SYSCALL32
9875#include <sys/procfs.h>
5464f5a1
NN
9876int
9877main ()
9878{
7ee38065 9879prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
9880 ;
9881 return 0;
9882}
9883_ACEOF
9884rm -f conftest.$ac_objext
9885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886 (eval $ac_compile) 2>conftest.er1
9887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
49c96104
SE
9893 { ac_try='test -z "$ac_c_werror_flag"
9894 || test ! -s conftest.err'
5464f5a1
NN
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 (eval $ac_try) 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest.$ac_objext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
7ee38065
MS
9906 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
9907else
5464f5a1
NN
9908 echo "$as_me: failed program was:" >&5
9909sed 's/^/| /' conftest.$ac_ext >&5
9910
9911bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
9912
7ee38065 9913fi
5464f5a1 9914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
9915fi
9916
9917 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
9918
9919cat >>confdefs.h <<\_ACEOF
7ee38065 9920#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 9921_ACEOF
7ee38065
MS
9922
9923 fi
5464f5a1
NN
9924 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
9925echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 9926
5464f5a1
NN
9927 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
9928echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
9929 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9931else
5464f5a1
NN
9932 cat >conftest.$ac_ext <<_ACEOF
9933/* confdefs.h. */
9934_ACEOF
9935cat confdefs.h >>conftest.$ac_ext
9936cat >>conftest.$ac_ext <<_ACEOF
9937/* end confdefs.h. */
7ee38065
MS
9938
9939#define _SYSCALL32
252b5132 9940#include <sys/procfs.h>
5464f5a1
NN
9941int
9942main ()
9943{
252b5132 9944pstatus_t avar
5464f5a1
NN
9945 ;
9946 return 0;
9947}
9948_ACEOF
9949rm -f conftest.$ac_objext
9950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9951 (eval $ac_compile) 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
49c96104
SE
9958 { ac_try='test -z "$ac_c_werror_flag"
9959 || test ! -s conftest.err'
5464f5a1
NN
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest.$ac_objext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 (eval $ac_try) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
252b5132
RH
9971 bfd_cv_have_sys_procfs_type_pstatus_t=yes
9972else
5464f5a1
NN
9973 echo "$as_me: failed program was:" >&5
9974sed 's/^/| /' conftest.$ac_ext >&5
9975
9976bfd_cv_have_sys_procfs_type_pstatus_t=no
9977
252b5132 9978fi
5464f5a1 9979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9980fi
9981
9982 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
9983
9984cat >>confdefs.h <<\_ACEOF
252b5132 9985#define HAVE_PSTATUS_T 1
5464f5a1 9986_ACEOF
252b5132
RH
9987
9988 fi
5464f5a1
NN
9989 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
9990echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 9991
5464f5a1
NN
9992 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
9993echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
9994 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 9996else
5464f5a1
NN
9997 cat >conftest.$ac_ext <<_ACEOF
9998/* confdefs.h. */
9999_ACEOF
10000cat confdefs.h >>conftest.$ac_ext
10001cat >>conftest.$ac_ext <<_ACEOF
10002/* end confdefs.h. */
f572a39d
AM
10003
10004#define _SYSCALL32
10005#include <sys/procfs.h>
5464f5a1
NN
10006int
10007main ()
10008{
f572a39d 10009pxstatus_t avar
5464f5a1
NN
10010 ;
10011 return 0;
10012}
10013_ACEOF
10014rm -f conftest.$ac_objext
10015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
49c96104
SE
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
5464f5a1
NN
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest.$ac_objext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
f572a39d
AM
10036 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10037else
5464f5a1
NN
10038 echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041bfd_cv_have_sys_procfs_type_pxstatus_t=no
10042
f572a39d 10043fi
5464f5a1 10044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10045fi
10046
10047 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
10048
10049cat >>confdefs.h <<\_ACEOF
f572a39d 10050#define HAVE_PXSTATUS_T 1
5464f5a1 10051_ACEOF
f572a39d
AM
10052
10053 fi
5464f5a1
NN
10054 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10055echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 10056
5464f5a1
NN
10057 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10058echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10059 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10061else
5464f5a1
NN
10062 cat >conftest.$ac_ext <<_ACEOF
10063/* confdefs.h. */
10064_ACEOF
10065cat confdefs.h >>conftest.$ac_ext
10066cat >>conftest.$ac_ext <<_ACEOF
10067/* end confdefs.h. */
7ee38065
MS
10068
10069#define _SYSCALL32
10070#include <sys/procfs.h>
5464f5a1
NN
10071int
10072main ()
10073{
7ee38065 10074pstatus32_t avar
5464f5a1
NN
10075 ;
10076 return 0;
10077}
10078_ACEOF
10079rm -f conftest.$ac_objext
10080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10081 (eval $ac_compile) 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
49c96104
SE
10088 { ac_try='test -z "$ac_c_werror_flag"
10089 || test ! -s conftest.err'
5464f5a1
NN
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest.$ac_objext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
7ee38065
MS
10101 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10102else
5464f5a1
NN
10103 echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
10106bfd_cv_have_sys_procfs_type_pstatus32_t=no
10107
7ee38065 10108fi
5464f5a1 10109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10110fi
10111
10112 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
10113
10114cat >>confdefs.h <<\_ACEOF
7ee38065 10115#define HAVE_PSTATUS32_T 1
5464f5a1 10116_ACEOF
7ee38065
MS
10117
10118 fi
5464f5a1
NN
10119 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10120echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 10121
5464f5a1
NN
10122 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10123echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10124 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10126else
5464f5a1
NN
10127 cat >conftest.$ac_ext <<_ACEOF
10128/* confdefs.h. */
10129_ACEOF
10130cat confdefs.h >>conftest.$ac_ext
10131cat >>conftest.$ac_ext <<_ACEOF
10132/* end confdefs.h. */
7ee38065
MS
10133
10134#define _SYSCALL32
252b5132 10135#include <sys/procfs.h>
5464f5a1
NN
10136int
10137main ()
10138{
252b5132 10139prpsinfo_t avar
5464f5a1
NN
10140 ;
10141 return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext
10145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10146 (eval $ac_compile) 2>conftest.er1
10147 ac_status=$?
10148 grep -v '^ *+' conftest.er1 >conftest.err
10149 rm -f conftest.er1
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } &&
49c96104
SE
10153 { ac_try='test -z "$ac_c_werror_flag"
10154 || test ! -s conftest.err'
5464f5a1
NN
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; } &&
10160 { ac_try='test -s conftest.$ac_objext'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
252b5132
RH
10166 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10167else
5464f5a1
NN
10168 echo "$as_me: failed program was:" >&5
10169sed 's/^/| /' conftest.$ac_ext >&5
10170
10171bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10172
252b5132 10173fi
5464f5a1 10174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10175fi
10176
10177 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
10178
10179cat >>confdefs.h <<\_ACEOF
252b5132 10180#define HAVE_PRPSINFO_T 1
5464f5a1 10181_ACEOF
252b5132
RH
10182
10183 fi
5464f5a1
NN
10184 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10185echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 10186
5464f5a1
NN
10187 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10188echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10189 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10191else
5464f5a1
NN
10192 cat >conftest.$ac_ext <<_ACEOF
10193/* confdefs.h. */
10194_ACEOF
10195cat confdefs.h >>conftest.$ac_ext
10196cat >>conftest.$ac_ext <<_ACEOF
10197/* end confdefs.h. */
7ee38065
MS
10198
10199#define _SYSCALL32
10200#include <sys/procfs.h>
5464f5a1
NN
10201int
10202main ()
10203{
7ee38065 10204prpsinfo32_t avar
5464f5a1
NN
10205 ;
10206 return 0;
10207}
10208_ACEOF
10209rm -f conftest.$ac_objext
10210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10211 (eval $ac_compile) 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
49c96104
SE
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
5464f5a1
NN
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest.$ac_objext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
7ee38065
MS
10231 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10232else
5464f5a1
NN
10233 echo "$as_me: failed program was:" >&5
10234sed 's/^/| /' conftest.$ac_ext >&5
10235
10236bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10237
7ee38065 10238fi
5464f5a1 10239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10240fi
10241
10242 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
10243
10244cat >>confdefs.h <<\_ACEOF
7ee38065 10245#define HAVE_PRPSINFO32_T 1
5464f5a1 10246_ACEOF
7ee38065
MS
10247
10248 fi
5464f5a1
NN
10249 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10250echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 10251
5464f5a1
NN
10252 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10253echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10254 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10256else
5464f5a1
NN
10257 cat >conftest.$ac_ext <<_ACEOF
10258/* confdefs.h. */
10259_ACEOF
10260cat confdefs.h >>conftest.$ac_ext
10261cat >>conftest.$ac_ext <<_ACEOF
10262/* end confdefs.h. */
7ee38065
MS
10263
10264#define _SYSCALL32
252b5132 10265#include <sys/procfs.h>
5464f5a1
NN
10266int
10267main ()
10268{
252b5132 10269psinfo_t avar
5464f5a1
NN
10270 ;
10271 return 0;
10272}
10273_ACEOF
10274rm -f conftest.$ac_objext
10275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
49c96104
SE
10283 { ac_try='test -z "$ac_c_werror_flag"
10284 || test ! -s conftest.err'
5464f5a1
NN
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
252b5132
RH
10296 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10297else
5464f5a1
NN
10298 echo "$as_me: failed program was:" >&5
10299sed 's/^/| /' conftest.$ac_ext >&5
10300
10301bfd_cv_have_sys_procfs_type_psinfo_t=no
10302
252b5132 10303fi
5464f5a1 10304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10305fi
10306
10307 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
10308
10309cat >>confdefs.h <<\_ACEOF
252b5132 10310#define HAVE_PSINFO_T 1
5464f5a1 10311_ACEOF
252b5132
RH
10312
10313 fi
5464f5a1
NN
10314 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10315echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 10316
5464f5a1
NN
10317 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10318echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10319 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10321else
5464f5a1
NN
10322 cat >conftest.$ac_ext <<_ACEOF
10323/* confdefs.h. */
10324_ACEOF
10325cat confdefs.h >>conftest.$ac_ext
10326cat >>conftest.$ac_ext <<_ACEOF
10327/* end confdefs.h. */
7ee38065
MS
10328
10329#define _SYSCALL32
10330#include <sys/procfs.h>
5464f5a1
NN
10331int
10332main ()
10333{
7ee38065 10334psinfo32_t avar
5464f5a1
NN
10335 ;
10336 return 0;
10337}
10338_ACEOF
10339rm -f conftest.$ac_objext
10340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341 (eval $ac_compile) 2>conftest.er1
10342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
49c96104
SE
10348 { ac_try='test -z "$ac_c_werror_flag"
10349 || test ! -s conftest.err'
5464f5a1
NN
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10352 ac_status=$?
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; } &&
10355 { ac_try='test -s conftest.$ac_objext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
7ee38065
MS
10361 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10362else
5464f5a1
NN
10363 echo "$as_me: failed program was:" >&5
10364sed 's/^/| /' conftest.$ac_ext >&5
10365
10366bfd_cv_have_sys_procfs_type_psinfo32_t=no
10367
7ee38065 10368fi
5464f5a1 10369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10370fi
10371
10372 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
10373
10374cat >>confdefs.h <<\_ACEOF
7ee38065 10375#define HAVE_PSINFO32_T 1
5464f5a1 10376_ACEOF
7ee38065
MS
10377
10378 fi
5464f5a1
NN
10379 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10380echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 10381
5464f5a1
NN
10382 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10383echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10384 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10386else
5464f5a1
NN
10387 cat >conftest.$ac_ext <<_ACEOF
10388/* confdefs.h. */
10389_ACEOF
10390cat confdefs.h >>conftest.$ac_ext
10391cat >>conftest.$ac_ext <<_ACEOF
10392/* end confdefs.h. */
7ee38065
MS
10393
10394#define _SYSCALL32
252b5132 10395#include <sys/procfs.h>
5464f5a1
NN
10396int
10397main ()
10398{
252b5132 10399lwpstatus_t avar
5464f5a1
NN
10400 ;
10401 return 0;
10402}
10403_ACEOF
10404rm -f conftest.$ac_objext
10405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406 (eval $ac_compile) 2>conftest.er1
10407 ac_status=$?
10408 grep -v '^ *+' conftest.er1 >conftest.err
10409 rm -f conftest.er1
10410 cat conftest.err >&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } &&
49c96104
SE
10413 { ac_try='test -z "$ac_c_werror_flag"
10414 || test ! -s conftest.err'
5464f5a1
NN
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; } &&
10420 { ac_try='test -s conftest.$ac_objext'
10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422 (eval $ac_try) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; }; then
252b5132
RH
10426 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10427else
5464f5a1
NN
10428 echo "$as_me: failed program was:" >&5
10429sed 's/^/| /' conftest.$ac_ext >&5
10430
10431bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10432
252b5132 10433fi
5464f5a1 10434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10435fi
10436
10437 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
10438
10439cat >>confdefs.h <<\_ACEOF
252b5132 10440#define HAVE_LWPSTATUS_T 1
5464f5a1 10441_ACEOF
252b5132
RH
10442
10443 fi
5464f5a1
NN
10444 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10445echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 10446
5464f5a1
NN
10447 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10448echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10449 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10451else
5464f5a1
NN
10452 cat >conftest.$ac_ext <<_ACEOF
10453/* confdefs.h. */
10454_ACEOF
10455cat confdefs.h >>conftest.$ac_ext
10456cat >>conftest.$ac_ext <<_ACEOF
10457/* end confdefs.h. */
f572a39d
AM
10458
10459#define _SYSCALL32
10460#include <sys/procfs.h>
5464f5a1
NN
10461int
10462main ()
10463{
f572a39d 10464lwpxstatus_t avar
5464f5a1
NN
10465 ;
10466 return 0;
10467}
10468_ACEOF
10469rm -f conftest.$ac_objext
10470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10471 (eval $ac_compile) 2>conftest.er1
10472 ac_status=$?
10473 grep -v '^ *+' conftest.er1 >conftest.err
10474 rm -f conftest.er1
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
49c96104
SE
10478 { ac_try='test -z "$ac_c_werror_flag"
10479 || test ! -s conftest.err'
5464f5a1
NN
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; } &&
10485 { ac_try='test -s conftest.$ac_objext'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
f572a39d
AM
10491 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10492else
5464f5a1
NN
10493 echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
10496bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10497
f572a39d 10498fi
5464f5a1 10499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10500fi
10501
10502 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
10503
10504cat >>confdefs.h <<\_ACEOF
f572a39d 10505#define HAVE_LWPXSTATUS_T 1
5464f5a1 10506_ACEOF
f572a39d
AM
10507
10508 fi
5464f5a1
NN
10509 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10510echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 10511
5464f5a1
NN
10512 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10513echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10514 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10516else
5464f5a1
NN
10517 cat >conftest.$ac_ext <<_ACEOF
10518/* confdefs.h. */
10519_ACEOF
10520cat confdefs.h >>conftest.$ac_ext
10521cat >>conftest.$ac_ext <<_ACEOF
10522/* end confdefs.h. */
7ee38065
MS
10523
10524#define _SYSCALL32
252b5132 10525#include <sys/procfs.h>
5464f5a1
NN
10526int
10527main ()
10528{
252b5132 10529lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
10530 ;
10531 return 0;
10532}
10533_ACEOF
10534rm -f conftest.$ac_objext
10535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10536 (eval $ac_compile) 2>conftest.er1
10537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
49c96104
SE
10543 { ac_try='test -z "$ac_c_werror_flag"
10544 || test ! -s conftest.err'
5464f5a1
NN
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; } &&
10550 { ac_try='test -s conftest.$ac_objext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10553 ac_status=$?
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
252b5132
RH
10556 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10557else
5464f5a1
NN
10558 echo "$as_me: failed program was:" >&5
10559sed 's/^/| /' conftest.$ac_ext >&5
10560
10561bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10562
252b5132 10563fi
5464f5a1 10564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10565fi
10566
10567 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
10568
10569cat >>confdefs.h <<\_ACEOF
252b5132 10570#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 10571_ACEOF
252b5132
RH
10572
10573 fi
5464f5a1
NN
10574 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10575echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 10576
5464f5a1
NN
10577 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10578echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10579 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10581else
5464f5a1
NN
10582 cat >conftest.$ac_ext <<_ACEOF
10583/* confdefs.h. */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h. */
7ee38065
MS
10588
10589#define _SYSCALL32
252b5132 10590#include <sys/procfs.h>
5464f5a1
NN
10591int
10592main ()
10593{
252b5132 10594lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
10595 ;
10596 return 0;
10597}
10598_ACEOF
10599rm -f conftest.$ac_objext
10600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601 (eval $ac_compile) 2>conftest.er1
10602 ac_status=$?
10603 grep -v '^ *+' conftest.er1 >conftest.err
10604 rm -f conftest.er1
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
49c96104
SE
10608 { ac_try='test -z "$ac_c_werror_flag"
10609 || test ! -s conftest.err'
5464f5a1
NN
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; } &&
10615 { ac_try='test -s conftest.$ac_objext'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
252b5132
RH
10621 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10622else
5464f5a1
NN
10623 echo "$as_me: failed program was:" >&5
10624sed 's/^/| /' conftest.$ac_ext >&5
10625
10626bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10627
252b5132 10628fi
5464f5a1 10629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10630fi
10631
10632 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
10633
10634cat >>confdefs.h <<\_ACEOF
252b5132 10635#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 10636_ACEOF
252b5132
RH
10637
10638 fi
5464f5a1
NN
10639 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10640echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 10641
5464f5a1
NN
10642 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10643echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10644 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 10646else
5464f5a1
NN
10647 cat >conftest.$ac_ext <<_ACEOF
10648/* confdefs.h. */
10649_ACEOF
10650cat confdefs.h >>conftest.$ac_ext
10651cat >>conftest.$ac_ext <<_ACEOF
10652/* end confdefs.h. */
7ee38065
MS
10653
10654#define _SYSCALL32
e3c976c4 10655#include <sys/procfs.h>
5464f5a1
NN
10656int
10657main ()
10658{
e3c976c4 10659win32_pstatus_t avar
5464f5a1
NN
10660 ;
10661 return 0;
10662}
10663_ACEOF
10664rm -f conftest.$ac_objext
10665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10666 (eval $ac_compile) 2>conftest.er1
10667 ac_status=$?
10668 grep -v '^ *+' conftest.er1 >conftest.err
10669 rm -f conftest.er1
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
49c96104
SE
10673 { ac_try='test -z "$ac_c_werror_flag"
10674 || test ! -s conftest.err'
5464f5a1
NN
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; } &&
10680 { ac_try='test -s conftest.$ac_objext'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }; then
e3c976c4
ILT
10686 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10687else
5464f5a1
NN
10688 echo "$as_me: failed program was:" >&5
10689sed 's/^/| /' conftest.$ac_ext >&5
10690
10691bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10692
e3c976c4 10693fi
5464f5a1 10694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10695fi
10696
e3c976c4 10697 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
10698
10699cat >>confdefs.h <<\_ACEOF
e3c976c4 10700#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 10701_ACEOF
16e9c715
NC
10702
10703 fi
5464f5a1
NN
10704 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10705echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
10706
10707 fi
10708fi
16e9c715 10709
b3baf5d0 10710
6be7c12c 10711if test -n "$TRAD_HEADER"; then
5464f5a1
NN
10712
10713cat >>confdefs.h <<_ACEOF
252b5132 10714#define TRAD_HEADER $TRAD_HEADER
5464f5a1 10715_ACEOF
252b5132 10716
3f9b03b5 10717fi
252b5132
RH
10718
10719# Horrible hacks to build DLLs on Windows.
10720WIN32LDFLAGS=
10721WIN32LIBADD=
10722case "${host}" in
10723*-*-cygwin*)
10724 if test "$enable_shared" = "yes"; then
10725 WIN32LDFLAGS="-no-undefined"
10726 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10727 fi
10728 ;;
78be1d6e 10729*-*-linux*)
39691762
L
10730 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10731 # libiberty.a.
ca51bfff
L
10732 case "${host}" in
10733 mips*-*-linux*)
10734 # Linux/MIPS uses PIC by default.
10735 if test "$enable_shared" = "yes"; then
10736 WIN32LIBADD="-L../libiberty -liberty"
10737 fi
10738 ;;
10739 *)
66e25bab 10740 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 10741 if test -n "$x"; then
ca51bfff
L
10742 WIN32LIBADD="-L../libiberty/pic -liberty"
10743 fi
10744 ;;
10745 esac
39691762 10746 ;;
252b5132
RH
10747esac
10748
6be7c12c
AO
10749
10750
252b5132
RH
10751# target stuff:
10752
10753# Canonicalize the secondary target names.
10754if test -n "$enable_targets" ; then
10755 for targ in `echo $enable_targets | sed 's/,/ /g'`
10756 do
6d83c84b 10757 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
10758 if test -n "$result" ; then
10759 canon_targets="$canon_targets $result"
10760 else
10761 # Allow targets that config.sub doesn't recognize, like "all".
10762 canon_targets="$canon_targets $targ"
10763 fi
10764 done
10765fi
10766
10767all_targets=false
10768defvec=
10769selvecs=
08f74004 10770assocvecs=
252b5132
RH
10771selarchs=
10772TDEFINES=
10773for targ in $target $canon_targets
10774do
10775 if test "x$targ" = "xall"; then
10776 all_targets=true
08f74004 10777 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
10778 else
10779 . $srcdir/config.bfd
10780 if test "x$targ" = "x$target"; then
10781 defvec=$targ_defvec
10782 fi
10783 selvecs="$selvecs $targ_defvec $targ_selvecs"
10784 selarchs="$selarchs $targ_archs"
10785 TDEFINES="$TDEFINES $targ_cflags"
10786 fi
10787done
10788
6be7c12c 10789
252b5132
RH
10790# This processing still needs to be done if we're to decide properly whether
10791# 64-bit support needs to be compiled in. Currently, it will be included if
10792# the default or any other explicitly requested target requires it; it
10793# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 10794# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
10795# used.
10796
10797# uniq the default and selected vectors in all the configured targets.
10798f=""
10799for i in $selvecs ; do
10800 case " $f " in
10801 *" $i "*) ;;
10802 *) f="$f $i" ;;
10803 esac
10804done
10805selvecs="$f"
10806
6be7c12c 10807
08f74004
AM
10808# uniq the associated vectors in all the configured targets.
10809f=""
10810for i in $assocvecs ; do
10811 case " $f " in
10812 *" $i "*) ;;
10813 *) f="$f $i" ;;
10814 esac
10815done
10816assocvecs="$f"
10817
10818
252b5132
RH
10819# uniq the architectures in all the configured targets.
10820f=""
10821for i in $selarchs ; do
10822 case " $f " in
10823 *" $i "*) ;;
10824 *) f="$f $i" ;;
10825 esac
10826done
10827selarchs="$f"
10828
10829# Target backend .o files.
10830tb=
10831
65765700 10832elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
10833
10834for vec in $selvecs
10835do
69263e90 10836 target_size=32
252b5132
RH
10837 case "$vec" in
10838 # This list is alphabetized to make it easy to compare
dc810e39
AM
10839 # with the two vector lists in targets.c. For the same reason,
10840 # use one entry per line, even though this leads to long lines.
252b5132 10841 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 10842 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
10843 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
10844 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10845 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 10846 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
10847 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10848 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10849 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10850 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
10851 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10852 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10853 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10854 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
10855 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10856 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10857 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
10858 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10859 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10860 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10861 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
10862 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
10863 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 10864 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 10865 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 10866 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 10867 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 10868 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 10869 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 10870 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 10871 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 10872 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 10873 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 10874 bfd_elf32_bigarm_symbian_vec)
00a97672 10875 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 10876 bfd_elf32_bigarm_vxworks_vec)
00a97672 10877 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
10878 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10879 bfd_elf32_bigmips_vxworks_vec)
10880 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 10881 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 10882 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 10883 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
10884 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
10885 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 10886 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 10887 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 10888 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 10889 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 10890 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 10891 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 10892 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 10893 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 10894 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
10895 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10896 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10897 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 10898 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 10899 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 10900 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 10901 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 10902 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 10903 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 10904 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 10905 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 10906 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 10907 bfd_elf32_littlearm_symbian_vec)
00a97672 10908 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 10909 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
10910 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10911 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
10912 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10913 bfd_elf32_littlemips_vxworks_vec)
10914 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 10915 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 10916 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
10917 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10918 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10919 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
10920 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10921 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
10922 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
10923 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
10924 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10925 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
10926 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
10927 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
10928 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
10929 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 10930 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 10931 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
10932 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10933 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10934 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10935 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 10936 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 10937 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
10938 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10939 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
10940 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10941 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10942 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 10943 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
10944 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10945 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
10946 # FIXME: We include cofflink.lo not because it's needed for
10947 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
10948 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
10949 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10950 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10951 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10952 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10953 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10954 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10955 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10956 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10957 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10958 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10959 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10960 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10961 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 10962 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 10963 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
10964 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10965 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 10966 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
10967 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10968 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 10969 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 10970 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 10971 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 10972 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 10973 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
10974 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10975 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 10976 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
10977 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10978 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 10979 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
10980 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10981 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 10982 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 10983 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
10984 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10985 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 10986 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 10987 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
10988 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10989 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
10990 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
10991 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10992 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
10993 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10994 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10995 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10996 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 10997 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 10998 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
10999 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 ;;
11000 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 11001 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 11002 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 11003 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
11004 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11005 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11006 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11007 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 11008 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 11009 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 11010 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 11011 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
11012 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11013 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
11014 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11015 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11016 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11017 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11018 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11019 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11020 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11021 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11022 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11023 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 11024 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
11025 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11026 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
11027 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11028 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11029 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11030 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 11031 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
11032 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11033 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
11034 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11035 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
11036 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
11037 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
11038 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11039 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11040 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11041 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
11042 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11043 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
11044 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11045 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11046 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 11047 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
11048 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11049 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 11050 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 11051 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 11052 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
11053 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11054 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11055 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
11056 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11057 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11058 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11059 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
11060 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11061 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 11062 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 11063 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 11064 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 11065 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 11066 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 11067 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 11068 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 11069 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
11070 pef_vec) tb="$tb pef.lo" ;;
11071 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 11072 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 11073 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11074 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 11075 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 11076 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 11077 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11078 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11079 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 11080 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11081 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
11082 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11083 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 11084 som_vec) tb="$tb som.lo" ;;
dc810e39 11085 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
11086 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11087 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11088 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11089 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11090 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 11091 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 11092 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
11093 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11094 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
11095 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11096 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11097 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11098 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11099 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11100 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 11101 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11102 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11103 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11104 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11105 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11106 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 11107 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 11108 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 11109 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 11110 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 11111 versados_vec) tb="$tb versados.lo" ;;
dc810e39 11112 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
11113 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11114 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11115 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 11116 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 11117 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 11118
341ca622
AM
11119 # These appear out of order in targets.c
11120 srec_vec) tb="$tb srec.lo" ;;
11121 symbolsrec_vec) tb="$tb srec.lo" ;;
11122 tekhex_vec) tb="$tb tekhex.lo" ;;
11123 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11124 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11125
252b5132 11126 "") ;;
5464f5a1
NN
11127 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11128echo "$as_me: error: *** unknown target vector $vec" >&2;}
11129 { (exit 1); exit 1; }; } ;;
252b5132 11130 esac
69263e90
AM
11131
11132 if test ${target_size} = 64; then
11133 target64=true
11134 fi
11135 if test x"${vec}" = x"${defvec}"; then
11136 bfd_default_target_size=${target_size}
11137 fi
252b5132
RH
11138done
11139
11140# Target architecture .o files.
11141# A couple of CPUs use shorter file names to avoid problems on DOS
11142# filesystems.
d031aafb 11143ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
11144
11145# Weed out duplicate .o files.
11146f=""
11147for i in $tb ; do
11148 case " $f " in
11149 *" $i "*) ;;
11150 *) f="$f $i" ;;
11151 esac
11152done
11153tb="$f"
11154
11155f=""
11156for i in $ta ; do
11157 case " $f " in
11158 *" $i "*) ;;
11159 *) f="$f $i" ;;
11160 esac
11161done
11162ta="$f"
11163
11164bfd_backends="$tb"
11165bfd_machines="$ta"
11166
11167if test x${all_targets} = xtrue ; then
11168 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11169 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11170 selvecs=
11171 havevecs=
11172 selarchs=
08f74004
AM
11173 test -n "$assocvecs" &&
11174 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
11175else # all_targets is true
11176 # Only set these if they will be nonempty, for the clever echo.
11177 havevecs=
08f74004 11178 assocvecs=
252b5132
RH
11179 test -n "$selvecs" &&
11180 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11181 test -n "$selvecs" &&
11182 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11183 test -n "$selarchs" &&
11184 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11185fi # all_targets is true
11186
11187case ${host64}-${target64}-${want64} in
11188 *true*)
11189 wordsize=64
21e40a48 11190 bfd64_libs='$(BFD64_LIBS)'
252b5132 11191 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 11192 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
11193 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11194echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11196echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 11197 fi
966abd70
HPN
11198 if test -n "$GCC" ; then
11199 bad_64bit_gcc=no;
5464f5a1
NN
11200 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11201echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 11202 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
11203 cat >conftest.$ac_ext <<_ACEOF
11204/* confdefs.h. */
11205_ACEOF
11206cat confdefs.h >>conftest.$ac_ext
11207cat >>conftest.$ac_ext <<_ACEOF
11208/* end confdefs.h. */
966abd70 11209:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 11210_ACEOF
966abd70 11211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 11212 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 11213 bad_64bit_gcc=yes;
5464f5a1
NN
11214 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11215echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 11216else
5464f5a1
NN
11217 echo "$as_me:$LINENO: result: no" >&5
11218echo "${ECHO_T}no" >&6
966abd70
HPN
11219fi
11220rm -f conftest*
11221
11222 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
11223 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11224echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11225 { (exit 1); exit 1; }; }
966abd70
HPN
11226 fi
11227 fi
252b5132
RH
11228 ;;
11229 false-false-false)
11230 wordsize=32
11231 all_backends='$(BFD32_BACKENDS)'
11232 ;;
11233esac
11234
6be7c12c
AO
11235
11236
11237
11238
11239
69263e90 11240
2858ef35 11241
1012372a
AC
11242# Determine the host dependant file_ptr a.k.a. off_t type. In order
11243# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11244# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11245# Hopefully a reasonable assumption since fseeko et.al. should be
11246# upward compatible.
5464f5a1
NN
11247
11248
11249
11250
2e6f4fae
DJ
11251
11252for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 11253do
5464f5a1
NN
11254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11255echo "$as_me:$LINENO: checking for $ac_func" >&5
11256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11257if eval "test \"\${$as_ac_var+set}\" = set"; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11259else
2ba49b59
KC
11260 cat >conftest.$ac_ext <<_ACEOF
11261/* confdefs.h. */
11262_ACEOF
11263cat confdefs.h >>conftest.$ac_ext
11264cat >>conftest.$ac_ext <<_ACEOF
11265/* end confdefs.h. */
11266/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11268#define $ac_func innocuous_$ac_func
11269
11270/* System header to define __stub macros and hopefully few prototypes,
11271 which can conflict with char $ac_func (); below.
11272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11273 <limits.h> exists even on freestanding compilers. */
11274
11275#ifdef __STDC__
11276# include <limits.h>
11277#else
11278# include <assert.h>
11279#endif
11280
11281#undef $ac_func
11282
11283/* Override any gcc2 internal prototype to avoid an error. */
11284#ifdef __cplusplus
11285extern "C"
11286{
11287#endif
11288/* We use char because int might match the return type of a gcc2
11289 builtin and then its argument prototype would still apply. */
11290char $ac_func ();
11291/* The GNU C library defines this for functions which it implements
11292 to always fail with ENOSYS. Some functions are actually named
11293 something starting with __ and the normal name is an alias. */
11294#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11295choke me
11296#else
11297char (*f) () = $ac_func;
11298#endif
11299#ifdef __cplusplus
11300}
11301#endif
11302
11303int
11304main ()
11305{
11306return f != $ac_func;
11307 ;
11308 return 0;
11309}
11310_ACEOF
11311rm -f conftest.$ac_objext conftest$ac_exeext
11312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11313 (eval $ac_link) 2>conftest.er1
11314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
49c96104
SE
11320 { ac_try='test -z "$ac_c_werror_flag"
11321 || test ! -s conftest.err'
2ba49b59
KC
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; } &&
11327 { ac_try='test -s conftest$ac_exeext'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11330 ac_status=$?
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; }; then
11333 eval "$as_ac_var=yes"
11334else
11335 echo "$as_me: failed program was:" >&5
11336sed 's/^/| /' conftest.$ac_ext >&5
11337
11338eval "$as_ac_var=no"
11339fi
11340rm -f conftest.err conftest.$ac_objext \
11341 conftest$ac_exeext conftest.$ac_ext
11342fi
11343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11344echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11345if test `eval echo '${'$as_ac_var'}'` = yes; then
11346 cat >>confdefs.h <<_ACEOF
11347#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11348_ACEOF
11349
11350fi
11351done
11352
11353if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11354 echo "$as_me:$LINENO: checking for off_t" >&5
11355echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11356if test "${ac_cv_type_off_t+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358else
11359 cat >conftest.$ac_ext <<_ACEOF
11360/* confdefs.h. */
11361_ACEOF
11362cat confdefs.h >>conftest.$ac_ext
11363cat >>conftest.$ac_ext <<_ACEOF
11364/* end confdefs.h. */
11365$ac_includes_default
11366int
11367main ()
11368{
11369if ((off_t *) 0)
11370 return 0;
11371if (sizeof (off_t))
11372 return 0;
11373 ;
11374 return 0;
11375}
11376_ACEOF
11377rm -f conftest.$ac_objext
11378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11379 (eval $ac_compile) 2>conftest.er1
11380 ac_status=$?
11381 grep -v '^ *+' conftest.er1 >conftest.err
11382 rm -f conftest.er1
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
49c96104
SE
11386 { ac_try='test -z "$ac_c_werror_flag"
11387 || test ! -s conftest.err'
2ba49b59
KC
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11390 ac_status=$?
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; } &&
11393 { ac_try='test -s conftest.$ac_objext'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11399 ac_cv_type_off_t=yes
11400else
11401 echo "$as_me: failed program was:" >&5
11402sed 's/^/| /' conftest.$ac_ext >&5
11403
11404ac_cv_type_off_t=no
11405fi
11406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11407fi
11408echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11409echo "${ECHO_T}$ac_cv_type_off_t" >&6
11410
11411echo "$as_me:$LINENO: checking size of off_t" >&5
11412echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11413if test "${ac_cv_sizeof_off_t+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11415else
11416 if test "$ac_cv_type_off_t" = yes; then
11417 # The cast to unsigned long works around a bug in the HP C Compiler
11418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11420 # This bug is HP SR number 8606223364.
11421 if test "$cross_compiling" = yes; then
11422 # Depending upon the size, compute the lo and hi bounds.
11423cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11424/* confdefs.h. */
11425_ACEOF
11426cat confdefs.h >>conftest.$ac_ext
11427cat >>conftest.$ac_ext <<_ACEOF
11428/* end confdefs.h. */
2ba49b59
KC
11429$ac_includes_default
11430int
11431main ()
11432{
11433static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
11434test_array [0] = 0
5464f5a1 11435
2ba49b59
KC
11436 ;
11437 return 0;
11438}
11439_ACEOF
11440rm -f conftest.$ac_objext
11441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11442 (eval $ac_compile) 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
49c96104
SE
11449 { ac_try='test -z "$ac_c_werror_flag"
11450 || test ! -s conftest.err'
2ba49b59
KC
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest.$ac_objext'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11459 ac_status=$?
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 ac_lo=0 ac_mid=0
11463 while :; do
11464 cat >conftest.$ac_ext <<_ACEOF
11465/* confdefs.h. */
11466_ACEOF
11467cat confdefs.h >>conftest.$ac_ext
11468cat >>conftest.$ac_ext <<_ACEOF
11469/* end confdefs.h. */
11470$ac_includes_default
11471int
11472main ()
11473{
11474static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11475test_array [0] = 0
5464f5a1 11476
2ba49b59
KC
11477 ;
11478 return 0;
11479}
11480_ACEOF
11481rm -f conftest.$ac_objext
11482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11483 (eval $ac_compile) 2>conftest.er1
11484 ac_status=$?
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
49c96104
SE
11490 { ac_try='test -z "$ac_c_werror_flag"
11491 || test ! -s conftest.err'
2ba49b59
KC
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest.$ac_objext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 ac_hi=$ac_mid; break
11504else
11505 echo "$as_me: failed program was:" >&5
11506sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11507
2ba49b59
KC
11508ac_lo=`expr $ac_mid + 1`
11509 if test $ac_lo -le $ac_mid; then
11510 ac_lo= ac_hi=
11511 break
11512 fi
11513 ac_mid=`expr 2 '*' $ac_mid + 1`
11514fi
11515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11516 done
11517else
11518 echo "$as_me: failed program was:" >&5
11519sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11520
2ba49b59
KC
11521cat >conftest.$ac_ext <<_ACEOF
11522/* confdefs.h. */
11523_ACEOF
11524cat confdefs.h >>conftest.$ac_ext
11525cat >>conftest.$ac_ext <<_ACEOF
11526/* end confdefs.h. */
11527$ac_includes_default
11528int
11529main ()
5464f5a1 11530{
2ba49b59
KC
11531static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
11532test_array [0] = 0
1012372a 11533
2ba49b59
KC
11534 ;
11535 return 0;
11536}
11537_ACEOF
11538rm -f conftest.$ac_objext
11539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11540 (eval $ac_compile) 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
49c96104
SE
11547 { ac_try='test -z "$ac_c_werror_flag"
11548 || test ! -s conftest.err'
2ba49b59
KC
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; } &&
11554 { ac_try='test -s conftest.$ac_objext'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 ac_hi=-1 ac_mid=-1
11561 while :; do
11562 cat >conftest.$ac_ext <<_ACEOF
11563/* confdefs.h. */
11564_ACEOF
11565cat confdefs.h >>conftest.$ac_ext
11566cat >>conftest.$ac_ext <<_ACEOF
11567/* end confdefs.h. */
11568$ac_includes_default
5464f5a1
NN
11569int
11570main ()
11571{
2ba49b59
KC
11572static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
11573test_array [0] = 0
11574
5464f5a1
NN
11575 ;
11576 return 0;
11577}
11578_ACEOF
2ba49b59
KC
11579rm -f conftest.$ac_objext
11580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11581 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
49c96104
SE
11588 { ac_try='test -z "$ac_c_werror_flag"
11589 || test ! -s conftest.err'
5464f5a1
NN
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; } &&
2ba49b59 11595 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
2ba49b59 11601 ac_lo=$ac_mid; break
5464f5a1
NN
11602else
11603 echo "$as_me: failed program was:" >&5
11604sed 's/^/| /' conftest.$ac_ext >&5
11605
2ba49b59
KC
11606ac_hi=`expr '(' $ac_mid ')' - 1`
11607 if test $ac_mid -le $ac_hi; then
11608 ac_lo= ac_hi=
11609 break
11610 fi
11611 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 11612fi
2ba49b59
KC
11613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11614 done
11615else
11616 echo "$as_me: failed program was:" >&5
11617sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11618
2ba49b59 11619ac_lo= ac_hi=
1012372a 11620fi
2ba49b59
KC
11621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11622fi
11623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11624# Binary search between lo and hi bounds.
11625while test "x$ac_lo" != "x$ac_hi"; do
11626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
11627 cat >conftest.$ac_ext <<_ACEOF
11628/* confdefs.h. */
11629_ACEOF
11630cat confdefs.h >>conftest.$ac_ext
11631cat >>conftest.$ac_ext <<_ACEOF
11632/* end confdefs.h. */
2ba49b59 11633$ac_includes_default
5464f5a1
NN
11634int
11635main ()
11636{
2ba49b59
KC
11637static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11638test_array [0] = 0
11639
5464f5a1
NN
11640 ;
11641 return 0;
11642}
11643_ACEOF
11644rm -f conftest.$ac_objext
11645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646 (eval $ac_compile) 2>conftest.er1
11647 ac_status=$?
11648 grep -v '^ *+' conftest.er1 >conftest.err
11649 rm -f conftest.er1
11650 cat conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
49c96104
SE
11653 { ac_try='test -z "$ac_c_werror_flag"
11654 || test ! -s conftest.err'
5464f5a1
NN
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; } &&
11660 { ac_try='test -s conftest.$ac_objext'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
2ba49b59 11666 ac_hi=$ac_mid
1012372a 11667else
5464f5a1
NN
11668 echo "$as_me: failed program was:" >&5
11669sed 's/^/| /' conftest.$ac_ext >&5
11670
2ba49b59 11671ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 11672fi
5464f5a1 11673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 11674done
2ba49b59
KC
11675case $ac_lo in
11676?*) ac_cv_sizeof_off_t=$ac_lo;;
11677'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11678See \`config.log' for more details." >&5
11679echo "$as_me: error: cannot compute sizeof (off_t), 77
11680See \`config.log' for more details." >&2;}
11681 { (exit 1); exit 1; }; } ;;
11682esac
11683else
11684 if test "$cross_compiling" = yes; then
49c96104
SE
11685 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11686See \`config.log' for more details." >&5
11687echo "$as_me: error: cannot run test program while cross compiling
11688See \`config.log' for more details." >&2;}
2ba49b59
KC
11689 { (exit 1); exit 1; }; }
11690else
11691 cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h. */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h. */
11697$ac_includes_default
11698long longval () { return (long) (sizeof (off_t)); }
11699unsigned long ulongval () { return (long) (sizeof (off_t)); }
11700#include <stdio.h>
11701#include <stdlib.h>
11702int
11703main ()
11704{
1012372a 11705
2ba49b59
KC
11706 FILE *f = fopen ("conftest.val", "w");
11707 if (! f)
11708 exit (1);
11709 if (((long) (sizeof (off_t))) < 0)
11710 {
11711 long i = longval ();
11712 if (i != ((long) (sizeof (off_t))))
11713 exit (1);
11714 fprintf (f, "%ld\n", i);
11715 }
11716 else
11717 {
11718 unsigned long i = ulongval ();
11719 if (i != ((long) (sizeof (off_t))))
11720 exit (1);
11721 fprintf (f, "%lu\n", i);
11722 }
11723 exit (ferror (f) || fclose (f) != 0);
11724
11725 ;
11726 return 0;
11727}
11728_ACEOF
11729rm -f conftest$ac_exeext
11730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11731 (eval $ac_link) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 ac_cv_sizeof_off_t=`cat conftest.val`
11741else
11742 echo "$as_me: program exited with status $ac_status" >&5
11743echo "$as_me: failed program was:" >&5
11744sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11745
2ba49b59
KC
11746( exit $ac_status )
11747{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11748See \`config.log' for more details." >&5
11749echo "$as_me: error: cannot compute sizeof (off_t), 77
11750See \`config.log' for more details." >&2;}
5464f5a1 11751 { (exit 1); exit 1; }; }
1012372a 11752fi
2ba49b59
KC
11753rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11754fi
11755fi
11756rm -f conftest.val
11757else
11758 ac_cv_sizeof_off_t=0
11759fi
11760fi
5464f5a1
NN
11761echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11762echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 11763cat >>confdefs.h <<_ACEOF
1012372a 11764#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 11765_ACEOF
1012372a
AC
11766
11767
1012372a 11768fi
5464f5a1
NN
11769echo "$as_me:$LINENO: checking file_ptr type" >&5
11770echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
11771bfd_file_ptr="long"
11772bfd_ufile_ptr="unsigned long"
11773if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11774 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
11775 bfd_file_ptr=BFD_HOST_64_BIT
11776 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11777fi
5464f5a1
NN
11778echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11779echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
11780
11781
11782
11783
252b5132
RH
11784tdefaults=""
11785test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11786test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 11787test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
11788test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11789test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11790
6be7c12c 11791
5464f5a1
NN
11792
11793
11794for ac_header in stdlib.h unistd.h
252b5132 11795do
5464f5a1
NN
11796as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11797if eval "test \"\${$as_ac_Header+set}\" = set"; then
11798 echo "$as_me:$LINENO: checking for $ac_header" >&5
11799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11800if eval "test \"\${$as_ac_Header+set}\" = set"; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11802fi
11803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11805else
11806 # Is the header compilable?
11807echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11809cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815$ac_includes_default
11816#include <$ac_header>
11817_ACEOF
11818rm -f conftest.$ac_objext
11819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11820 (eval $ac_compile) 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } &&
49c96104
SE
11827 { ac_try='test -z "$ac_c_werror_flag"
11828 || test ! -s conftest.err'
5464f5a1
NN
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; } &&
11834 { ac_try='test -s conftest.$ac_objext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 ac_header_compiler=yes
11841else
11842 echo "$as_me: failed program was:" >&5
11843sed 's/^/| /' conftest.$ac_ext >&5
11844
11845ac_header_compiler=no
11846fi
11847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11848echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11849echo "${ECHO_T}$ac_header_compiler" >&6
11850
11851# Is the header present?
11852echo "$as_me:$LINENO: checking $ac_header presence" >&5
11853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11854cat >conftest.$ac_ext <<_ACEOF
11855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860#include <$ac_header>
11861_ACEOF
11862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } >/dev/null; then
11870 if test -s conftest.err; then
11871 ac_cpp_err=$ac_c_preproc_warn_flag
11872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11873 else
11874 ac_cpp_err=
11875 fi
252b5132 11876else
5464f5a1 11877 ac_cpp_err=yes
252b5132 11878fi
5464f5a1
NN
11879if test -z "$ac_cpp_err"; then
11880 ac_header_preproc=yes
11881else
11882 echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 ac_header_preproc=no
252b5132 11886fi
5464f5a1
NN
11887rm -f conftest.err conftest.$ac_ext
11888echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11889echo "${ECHO_T}$ac_header_preproc" >&6
11890
11891# So? What about this header?
11892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11893 yes:no: )
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11897echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11898 ac_header_preproc=yes
11899 ;;
11900 no:yes:* )
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11906echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11908echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11912echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11913 (
11914 cat <<\_ASBOX
11915## ------------------------------------------ ##
11916## Report this to the AC_PACKAGE_NAME lists. ##
11917## ------------------------------------------ ##
11918_ASBOX
11919 ) |
11920 sed "s/^/$as_me: WARNING: /" >&2
11921 ;;
11922esac
11923echo "$as_me:$LINENO: checking for $ac_header" >&5
11924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11925if eval "test \"\${$as_ac_Header+set}\" = set"; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 11927else
5464f5a1
NN
11928 eval "$as_ac_Header=\$ac_header_preproc"
11929fi
11930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11932
11933fi
11934if test `eval echo '${'$as_ac_Header'}'` = yes; then
11935 cat >>confdefs.h <<_ACEOF
11936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11937_ACEOF
11938
252b5132 11939fi
5464f5a1 11940
252b5132
RH
11941done
11942
5464f5a1 11943
252b5132
RH
11944for ac_func in getpagesize
11945do
5464f5a1
NN
11946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11947echo "$as_me:$LINENO: checking for $ac_func" >&5
11948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11949if eval "test \"\${$as_ac_var+set}\" = set"; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951else
11952 cat >conftest.$ac_ext <<_ACEOF
11953/* confdefs.h. */
11954_ACEOF
11955cat confdefs.h >>conftest.$ac_ext
11956cat >>conftest.$ac_ext <<_ACEOF
11957/* end confdefs.h. */
11958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11960#define $ac_func innocuous_$ac_func
11961
252b5132 11962/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11963 which can conflict with char $ac_func (); below.
11964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11965 <limits.h> exists even on freestanding compilers. */
11966
11967#ifdef __STDC__
11968# include <limits.h>
11969#else
11970# include <assert.h>
11971#endif
6be7c12c 11972
5464f5a1 11973#undef $ac_func
252b5132 11974
5464f5a1
NN
11975/* Override any gcc2 internal prototype to avoid an error. */
11976#ifdef __cplusplus
11977extern "C"
11978{
11979#endif
11980/* We use char because int might match the return type of a gcc2
11981 builtin and then its argument prototype would still apply. */
11982char $ac_func ();
252b5132
RH
11983/* The GNU C library defines this for functions which it implements
11984 to always fail with ENOSYS. Some functions are actually named
11985 something starting with __ and the normal name is an alias. */
11986#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11987choke me
11988#else
5464f5a1
NN
11989char (*f) () = $ac_func;
11990#endif
11991#ifdef __cplusplus
11992}
252b5132
RH
11993#endif
11994
5464f5a1
NN
11995int
11996main ()
11997{
11998return f != $ac_func;
11999 ;
12000 return 0;
12001}
12002_ACEOF
12003rm -f conftest.$ac_objext conftest$ac_exeext
12004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005 (eval $ac_link) 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } &&
49c96104
SE
12012 { ac_try='test -z "$ac_c_werror_flag"
12013 || test ! -s conftest.err'
5464f5a1
NN
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } &&
12019 { ac_try='test -s conftest$ac_exeext'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 eval "$as_ac_var=yes"
12026else
12027 echo "$as_me: failed program was:" >&5
12028sed 's/^/| /' conftest.$ac_ext >&5
12029
12030eval "$as_ac_var=no"
12031fi
12032rm -f conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12034fi
12035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12037if test `eval echo '${'$as_ac_var'}'` = yes; then
12038 cat >>confdefs.h <<_ACEOF
12039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12040_ACEOF
252b5132 12041
252b5132
RH
12042fi
12043done
12044
5464f5a1
NN
12045echo "$as_me:$LINENO: checking for working mmap" >&5
12046echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12047if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12049else
12050 if test "$cross_compiling" = yes; then
12051 ac_cv_func_mmap_fixed_mapped=no
12052else
5464f5a1
NN
12053 cat >conftest.$ac_ext <<_ACEOF
12054/* confdefs.h. */
12055_ACEOF
12056cat confdefs.h >>conftest.$ac_ext
12057cat >>conftest.$ac_ext <<_ACEOF
12058/* end confdefs.h. */
12059$ac_includes_default
12060/* malloc might have been renamed as rpl_malloc. */
12061#undef malloc
6be7c12c 12062
252b5132
RH
12063/* Thanks to Mike Haertel and Jim Avera for this test.
12064 Here is a matrix of mmap possibilities:
12065 mmap private not fixed
12066 mmap private fixed at somewhere currently unmapped
12067 mmap private fixed at somewhere already mapped
12068 mmap shared not fixed
12069 mmap shared fixed at somewhere currently unmapped
12070 mmap shared fixed at somewhere already mapped
12071 For private mappings, we should verify that changes cannot be read()
12072 back from the file, nor mmap's back from the file at a different
12073 address. (There have been systems where private was not correctly
12074 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 12075 VM page cache was not coherent with the file system buffer cache
252b5132
RH
12076 like early versions of FreeBSD and possibly contemporary NetBSD.)
12077 For shared mappings, we should conversely verify that changes get
5464f5a1 12078 propagated back to all the places they're supposed to be.
252b5132
RH
12079
12080 Grep wants private fixed already mapped.
12081 The main things grep needs to know about mmap are:
12082 * does it exist and is it safe to write into the mmap'd area
12083 * how to use it (BSD variants) */
5464f5a1 12084
252b5132
RH
12085#include <fcntl.h>
12086#include <sys/mman.h>
12087
5464f5a1
NN
12088#if !STDC_HEADERS && !HAVE_STDLIB_H
12089char *malloc ();
12090#endif
6be7c12c 12091
5464f5a1
NN
12092/* This mess was copied from the GNU getpagesize.h. */
12093#if !HAVE_GETPAGESIZE
252b5132 12094/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 12095# if !HAVE_SYS_PARAM_H
252b5132
RH
12096# define HAVE_SYS_PARAM_H 1
12097# endif
12098
12099# ifdef _SC_PAGESIZE
12100# define getpagesize() sysconf(_SC_PAGESIZE)
12101# else /* no _SC_PAGESIZE */
5464f5a1 12102# if HAVE_SYS_PARAM_H
252b5132
RH
12103# include <sys/param.h>
12104# ifdef EXEC_PAGESIZE
12105# define getpagesize() EXEC_PAGESIZE
12106# else /* no EXEC_PAGESIZE */
12107# ifdef NBPG
12108# define getpagesize() NBPG * CLSIZE
12109# ifndef CLSIZE
12110# define CLSIZE 1
12111# endif /* no CLSIZE */
12112# else /* no NBPG */
12113# ifdef NBPC
12114# define getpagesize() NBPC
12115# else /* no NBPC */
12116# ifdef PAGESIZE
12117# define getpagesize() PAGESIZE
12118# endif /* PAGESIZE */
12119# endif /* no NBPC */
12120# endif /* no NBPG */
12121# endif /* no EXEC_PAGESIZE */
12122# else /* no HAVE_SYS_PARAM_H */
12123# define getpagesize() 8192 /* punt totally */
12124# endif /* no HAVE_SYS_PARAM_H */
12125# endif /* no _SC_PAGESIZE */
12126
5464f5a1
NN
12127#endif /* no HAVE_GETPAGESIZE */
12128
12129int
12130main ()
12131{
12132 char *data, *data2, *data3;
12133 int i, pagesize;
12134 int fd;
12135
12136 pagesize = getpagesize ();
12137
12138 /* First, make a file with some known garbage in it. */
12139 data = (char *) malloc (pagesize);
12140 if (!data)
12141 exit (1);
12142 for (i = 0; i < pagesize; ++i)
12143 *(data + i) = rand ();
12144 umask (0);
12145 fd = creat ("conftest.mmap", 0600);
12146 if (fd < 0)
12147 exit (1);
12148 if (write (fd, data, pagesize) != pagesize)
12149 exit (1);
12150 close (fd);
12151
12152 /* Next, try to mmap the file at a fixed address which already has
12153 something else allocated at it. If we can, also make sure that
12154 we see the same garbage. */
12155 fd = open ("conftest.mmap", O_RDWR);
12156 if (fd < 0)
12157 exit (1);
12158 data2 = (char *) malloc (2 * pagesize);
12159 if (!data2)
12160 exit (1);
12161 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12162 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12163 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12164 exit (1);
12165 for (i = 0; i < pagesize; ++i)
12166 if (*(data + i) != *(data2 + i))
12167 exit (1);
12168
12169 /* Finally, make sure that changes to the mapped area do not
12170 percolate back to the file as seen by read(). (This is a bug on
12171 some variants of i386 svr4.0.) */
12172 for (i = 0; i < pagesize; ++i)
12173 *(data2 + i) = *(data2 + i) + 1;
12174 data3 = (char *) malloc (pagesize);
12175 if (!data3)
12176 exit (1);
12177 if (read (fd, data3, pagesize) != pagesize)
12178 exit (1);
12179 for (i = 0; i < pagesize; ++i)
12180 if (*(data + i) != *(data3 + i))
12181 exit (1);
12182 close (fd);
12183 exit (0);
12184}
12185_ACEOF
12186rm -f conftest$ac_exeext
12187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188 (eval $ac_link) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 ac_cv_func_mmap_fixed_mapped=yes
12198else
12199 echo "$as_me: program exited with status $ac_status" >&5
12200echo "$as_me: failed program was:" >&5
12201sed 's/^/| /' conftest.$ac_ext >&5
12202
12203( exit $ac_status )
12204ac_cv_func_mmap_fixed_mapped=no
12205fi
12206rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12207fi
12208fi
12209echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12210echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12211if test $ac_cv_func_mmap_fixed_mapped = yes; then
12212
12213cat >>confdefs.h <<\_ACEOF
12214#define HAVE_MMAP 1
12215_ACEOF
12216
12217fi
12218rm -f conftest.mmap
12219
12220
12221
12222for ac_func in madvise mprotect
12223do
12224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12225echo "$as_me:$LINENO: checking for $ac_func" >&5
12226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12227if eval "test \"\${$as_ac_var+set}\" = set"; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12229else
12230 cat >conftest.$ac_ext <<_ACEOF
12231/* confdefs.h. */
12232_ACEOF
12233cat confdefs.h >>conftest.$ac_ext
12234cat >>conftest.$ac_ext <<_ACEOF
12235/* end confdefs.h. */
12236/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12238#define $ac_func innocuous_$ac_func
12239
12240/* System header to define __stub macros and hopefully few prototypes,
12241 which can conflict with char $ac_func (); below.
12242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12243 <limits.h> exists even on freestanding compilers. */
12244
12245#ifdef __STDC__
12246# include <limits.h>
12247#else
12248# include <assert.h>
12249#endif
12250
12251#undef $ac_func
12252
12253/* Override any gcc2 internal prototype to avoid an error. */
12254#ifdef __cplusplus
12255extern "C"
12256{
12257#endif
12258/* We use char because int might match the return type of a gcc2
12259 builtin and then its argument prototype would still apply. */
12260char $ac_func ();
12261/* The GNU C library defines this for functions which it implements
12262 to always fail with ENOSYS. Some functions are actually named
12263 something starting with __ and the normal name is an alias. */
12264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12265choke me
12266#else
12267char (*f) () = $ac_func;
12268#endif
12269#ifdef __cplusplus
12270}
12271#endif
12272
12273int
12274main ()
12275{
12276return f != $ac_func;
12277 ;
12278 return 0;
12279}
12280_ACEOF
12281rm -f conftest.$ac_objext conftest$ac_exeext
12282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12283 (eval $ac_link) 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
49c96104
SE
12290 { ac_try='test -z "$ac_c_werror_flag"
12291 || test ! -s conftest.err'
5464f5a1
NN
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest$ac_exeext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 eval "$as_ac_var=yes"
12304else
12305 echo "$as_me: failed program was:" >&5
12306sed 's/^/| /' conftest.$ac_ext >&5
12307
12308eval "$as_ac_var=no"
12309fi
12310rm -f conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
12312fi
12313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12314echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12315if test `eval echo '${'$as_ac_var'}'` = yes; then
12316 cat >>confdefs.h <<_ACEOF
12317#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12318_ACEOF
12319
12320fi
12321done
12322
12323case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12324 true+yes )
12325cat >>confdefs.h <<\_ACEOF
12326#define USE_MMAP 1
12327_ACEOF
12328 ;;
12329esac
12330
12331rm -f doc/config.status
12332 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12333
20e95c23 12334
5464f5a1
NN
12335 ac_config_commands="$ac_config_commands default"
12336
108a6f8e
CD
12337
12338
12339
12340
12341
5464f5a1
NN
12342cat >confcache <<\_ACEOF
12343# This file is a shell script that caches the results of configure
12344# tests run on this system so they can be shared between configure
12345# scripts and configure runs, see configure's option --config-cache.
12346# It is not useful on other systems. If it contains results you don't
12347# want to keep, you may remove or edit it.
12348#
12349# config.status only pays attention to the cache file if you give it
12350# the --recheck option to rerun configure.
12351#
12352# `ac_cv_env_foo' variables (set or unset) will be overridden when
12353# loading this file, other *unset* `ac_cv_foo' will be assigned the
12354# following values.
12355
12356_ACEOF
12357
12358# The following way of writing the cache mishandles newlines in values,
12359# but we know of no workaround that is simple, portable, and efficient.
12360# So, don't put newlines in cache variables' values.
12361# Ultrix sh set writes to stderr and can't be redirected directly,
12362# and sets the high bit in the cache file unless we assign to the vars.
12363{
12364 (set) 2>&1 |
12365 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12366 *ac_space=\ *)
12367 # `set' does not quote correctly, so add quotes (double-quote
12368 # substitution turns \\\\ into \\, and sed turns \\ into \).
12369 sed -n \
12370 "s/'/'\\\\''/g;
12371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12372 ;;
12373 *)
12374 # `set' quotes correctly as required by POSIX, so do not add quotes.
12375 sed -n \
12376 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12377 ;;
12378 esac;
12379} |
12380 sed '
12381 t clear
12382 : clear
12383 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12384 t end
12385 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12386 : end' >>confcache
12387if diff $cache_file confcache >/dev/null 2>&1; then :; else
12388 if test -w $cache_file; then
12389 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12390 cat confcache >$cache_file
12391 else
12392 echo "not updating unwritable cache $cache_file"
12393 fi
12394fi
12395rm -f confcache
12396
12397test "x$prefix" = xNONE && prefix=$ac_default_prefix
12398# Let make expand exec_prefix.
12399test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12400
12401# VPATH may cause trouble with some makes, so we remove $(srcdir),
12402# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12403# trailing colons and then remove the whole line if VPATH becomes empty
12404# (actually we leave an empty line to preserve line numbers).
12405if test "x$srcdir" = x.; then
12406 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12407s/:*\$(srcdir):*/:/;
12408s/:*\${srcdir}:*/:/;
12409s/:*@srcdir@:*/:/;
12410s/^\([^=]*=[ ]*\):*/\1/;
12411s/:*$//;
12412s/^[^=]*=[ ]*$//;
12413}'
12414fi
12415
12416DEFS=-DHAVE_CONFIG_H
12417
12418ac_libobjs=
12419ac_ltlibobjs=
12420for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12421 # 1. Remove the extension, and $U if already installed.
12422 ac_i=`echo "$ac_i" |
12423 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12424 # 2. Add them.
12425 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12426 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12427done
12428LIBOBJS=$ac_libobjs
12429
12430LTLIBOBJS=$ac_ltlibobjs
12431
12432
f5385ebf
AM
12433if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12434 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12435Usually this means the macro was only invoked conditionally." >&5
12436echo "$as_me: error: conditional \"AMDEP\" was never defined.
12437Usually this means the macro was only invoked conditionally." >&2;}
12438 { (exit 1); exit 1; }; }
12439fi
12440if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12441 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12442Usually this means the macro was only invoked conditionally." >&5
12443echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12444Usually this means the macro was only invoked conditionally." >&2;}
12445 { (exit 1); exit 1; }; }
12446fi
12447if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12448 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12449Usually this means the macro was only invoked conditionally." >&5
12450echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12451Usually this means the macro was only invoked conditionally." >&2;}
12452 { (exit 1); exit 1; }; }
12453fi
d5fbea21
DJ
12454if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12455 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12456Usually this means the macro was only invoked conditionally." >&5
12457echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12458Usually this means the macro was only invoked conditionally." >&2;}
12459 { (exit 1); exit 1; }; }
12460fi
f5385ebf
AM
12461if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12462 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12463Usually this means the macro was only invoked conditionally." >&5
12464echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12465Usually this means the macro was only invoked conditionally." >&2;}
12466 { (exit 1); exit 1; }; }
12467fi
5464f5a1
NN
12468
12469: ${CONFIG_STATUS=./config.status}
12470ac_clean_files_save=$ac_clean_files
12471ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12472{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12473echo "$as_me: creating $CONFIG_STATUS" >&6;}
12474cat >$CONFIG_STATUS <<_ACEOF
12475#! $SHELL
12476# Generated by $as_me.
12477# Run this file to recreate the current configuration.
12478# Compiler output produced by configure, useful for debugging
12479# configure, is in config.log if it exists.
12480
12481debug=false
12482ac_cs_recheck=false
12483ac_cs_silent=false
12484SHELL=\${CONFIG_SHELL-$SHELL}
12485_ACEOF
12486
12487cat >>$CONFIG_STATUS <<\_ACEOF
12488## --------------------- ##
12489## M4sh Initialization. ##
12490## --------------------- ##
12491
12492# Be Bourne compatible
12493if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12494 emulate sh
12495 NULLCMD=:
12496 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12497 # is contrary to our usage. Disable this feature.
12498 alias -g '${1+"$@"}'='"$@"'
12499elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12500 set -o posix
12501fi
12502DUALCASE=1; export DUALCASE # for MKS sh
12503
12504# Support unset when possible.
12505if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12506 as_unset=unset
12507else
12508 as_unset=false
12509fi
12510
12511
12512# Work around bugs in pre-3.0 UWIN ksh.
12513$as_unset ENV MAIL MAILPATH
12514PS1='$ '
12515PS2='> '
12516PS4='+ '
12517
12518# NLS nuisances.
12519for as_var in \
12520 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12521 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12522 LC_TELEPHONE LC_TIME
12523do
12524 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12525 eval $as_var=C; export $as_var
12526 else
12527 $as_unset $as_var
12528 fi
12529done
12530
12531# Required to use basename.
12532if expr a : '\(a\)' >/dev/null 2>&1; then
12533 as_expr=expr
12534else
12535 as_expr=false
12536fi
12537
12538if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12539 as_basename=basename
12540else
12541 as_basename=false
12542fi
252b5132 12543
6be7c12c 12544
5464f5a1
NN
12545# Name of the executable.
12546as_me=`$as_basename "$0" ||
12547$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12548 X"$0" : 'X\(//\)$' \| \
12549 X"$0" : 'X\(/\)$' \| \
12550 . : '\(.\)' 2>/dev/null ||
12551echo X/"$0" |
12552 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12553 /^X\/\(\/\/\)$/{ s//\1/; q; }
12554 /^X\/\(\/\).*/{ s//\1/; q; }
12555 s/.*/./; q'`
12556
12557
12558# PATH needs CR, and LINENO needs CR and PATH.
12559# Avoid depending upon Character Ranges.
12560as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12561as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12562as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12563as_cr_digits='0123456789'
12564as_cr_alnum=$as_cr_Letters$as_cr_digits
12565
12566# The user is always right.
12567if test "${PATH_SEPARATOR+set}" != set; then
12568 echo "#! /bin/sh" >conf$$.sh
12569 echo "exit 0" >>conf$$.sh
12570 chmod +x conf$$.sh
12571 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12572 PATH_SEPARATOR=';'
12573 else
12574 PATH_SEPARATOR=:
12575 fi
12576 rm -f conf$$.sh
12577fi
12578
12579
12580 as_lineno_1=$LINENO
12581 as_lineno_2=$LINENO
12582 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12583 test "x$as_lineno_1" != "x$as_lineno_2" &&
12584 test "x$as_lineno_3" = "x$as_lineno_2" || {
12585 # Find who we are. Look in the path if we contain no path at all
12586 # relative or not.
12587 case $0 in
12588 *[\\/]* ) as_myself=$0 ;;
12589 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590for as_dir in $PATH
12591do
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12595done
12596
12597 ;;
12598 esac
12599 # We did not find ourselves, most probably we were run as `sh COMMAND'
12600 # in which case we are not to be found in the path.
12601 if test "x$as_myself" = x; then
12602 as_myself=$0
12603 fi
12604 if test ! -f "$as_myself"; then
12605 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12606echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12607 { (exit 1); exit 1; }; }
12608 fi
12609 case $CONFIG_SHELL in
12610 '')
12611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12613do
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
12616 for as_base in sh bash ksh sh5; do
12617 case $as_dir in
12618 /*)
12619 if ("$as_dir/$as_base" -c '
12620 as_lineno_1=$LINENO
12621 as_lineno_2=$LINENO
12622 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12623 test "x$as_lineno_1" != "x$as_lineno_2" &&
12624 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12625 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12626 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12627 CONFIG_SHELL=$as_dir/$as_base
12628 export CONFIG_SHELL
12629 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12630 fi;;
12631 esac
12632 done
12633done
12634;;
12635 esac
12636
12637 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12638 # uniformly replaced by the line number. The first 'sed' inserts a
12639 # line-number line before each line; the second 'sed' does the real
12640 # work. The second script uses 'N' to pair each line-number line
12641 # with the numbered line, and appends trailing '-' during
12642 # substitution so that $LINENO is not a special case at line end.
12643 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12644 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12645 sed '=' <$as_myself |
12646 sed '
12647 N
12648 s,$,-,
12649 : loop
12650 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12651 t loop
12652 s,-$,,
12653 s,^['$as_cr_digits']*\n,,
12654 ' >$as_me.lineno &&
12655 chmod +x $as_me.lineno ||
12656 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12657echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12658 { (exit 1); exit 1; }; }
12659
12660 # Don't try to exec as it changes $[0], causing all sort of problems
12661 # (the dirname of $[0] is not the place where we might find the
12662 # original and so on. Autoconf is especially sensible to this).
12663 . ./$as_me.lineno
12664 # Exit status is that of the last command.
12665 exit
252b5132 12666}
6be7c12c 12667
5464f5a1
NN
12668
12669case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12670 *c*,-n*) ECHO_N= ECHO_C='
12671' ECHO_T=' ' ;;
12672 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12673 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12674esac
12675
12676if expr a : '\(a\)' >/dev/null 2>&1; then
12677 as_expr=expr
252b5132 12678else
5464f5a1 12679 as_expr=false
252b5132 12680fi
5464f5a1
NN
12681
12682rm -f conf$$ conf$$.exe conf$$.file
12683echo >conf$$.file
12684if ln -s conf$$.file conf$$ 2>/dev/null; then
12685 # We could just check for DJGPP; but this test a) works b) is more generic
12686 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12687 if test -f conf$$.exe; then
12688 # Don't use ln at all; we don't have any links
12689 as_ln_s='cp -p'
12690 else
12691 as_ln_s='ln -s'
12692 fi
12693elif ln conf$$.file conf$$ 2>/dev/null; then
12694 as_ln_s=ln
12695else
12696 as_ln_s='cp -p'
252b5132 12697fi
5464f5a1 12698rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 12699
5464f5a1
NN
12700if mkdir -p . 2>/dev/null; then
12701 as_mkdir_p=:
12702else
12703 test -d ./-p && rmdir ./-p
12704 as_mkdir_p=false
252b5132 12705fi
b3baf5d0 12706
5464f5a1 12707as_executable_p="test -f"
252b5132 12708
5464f5a1
NN
12709# Sed expression to map a string onto a valid CPP name.
12710as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 12711
5464f5a1
NN
12712# Sed expression to map a string onto a valid variable name.
12713as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 12714
252b5132 12715
5464f5a1
NN
12716# IFS
12717# We need space, tab and new line, in precisely that order.
12718as_nl='
12719'
12720IFS=" $as_nl"
252b5132 12721
5464f5a1
NN
12722# CDPATH.
12723$as_unset CDPATH
12724
12725exec 6>&1
12726
12727# Open the log real soon, to keep \$[0] and so on meaningful, and to
12728# report actual input values of CONFIG_FILES etc. instead of their
12729# values after options handling. Logging --version etc. is OK.
12730exec 5>>config.log
12731{
12732 echo
12733 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12734## Running $as_me. ##
12735_ASBOX
12736} >&5
12737cat >&5 <<_CSEOF
12738
12739This file was extended by $as_me, which was
12740generated by GNU Autoconf 2.59. Invocation command line was
12741
12742 CONFIG_FILES = $CONFIG_FILES
12743 CONFIG_HEADERS = $CONFIG_HEADERS
12744 CONFIG_LINKS = $CONFIG_LINKS
12745 CONFIG_COMMANDS = $CONFIG_COMMANDS
12746 $ $0 $@
12747
12748_CSEOF
12749echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12750echo >&5
12751_ACEOF
12752
12753# Files that config.status was made for.
12754if test -n "$ac_config_files"; then
12755 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 12756fi
5464f5a1
NN
12757
12758if test -n "$ac_config_headers"; then
12759 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 12760fi
252b5132 12761
5464f5a1
NN
12762if test -n "$ac_config_links"; then
12763 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 12764fi
252b5132 12765
5464f5a1
NN
12766if test -n "$ac_config_commands"; then
12767 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12768fi
252b5132 12769
5464f5a1
NN
12770cat >>$CONFIG_STATUS <<\_ACEOF
12771
12772ac_cs_usage="\
12773\`$as_me' instantiates files from templates according to the
12774current configuration.
12775
12776Usage: $0 [OPTIONS] [FILE]...
12777
12778 -h, --help print this help, then exit
12779 -V, --version print version number, then exit
12780 -q, --quiet do not print progress messages
12781 -d, --debug don't remove temporary files
12782 --recheck update $as_me by reconfiguring in the same conditions
12783 --file=FILE[:TEMPLATE]
12784 instantiate the configuration file FILE
12785 --header=FILE[:TEMPLATE]
12786 instantiate the configuration header FILE
12787
12788Configuration files:
12789$config_files
12790
12791Configuration headers:
12792$config_headers
12793
12794Configuration commands:
12795$config_commands
12796
12797Report bugs to <bug-autoconf@gnu.org>."
12798_ACEOF
12799
12800cat >>$CONFIG_STATUS <<_ACEOF
12801ac_cs_version="\\
12802config.status
12803configured by $0, generated by GNU Autoconf 2.59,
12804 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12805
12806Copyright (C) 2003 Free Software Foundation, Inc.
12807This config.status script is free software; the Free Software Foundation
12808gives unlimited permission to copy, distribute and modify it."
12809srcdir=$srcdir
12810INSTALL="$INSTALL"
12811_ACEOF
12812
12813cat >>$CONFIG_STATUS <<\_ACEOF
12814# If no file are specified by the user, then we need to provide default
12815# value. By we need to know if files were specified by the user.
12816ac_need_defaults=:
12817while test $# != 0
12818do
12819 case $1 in
12820 --*=*)
12821 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12822 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12823 ac_shift=:
6be7c12c 12824 ;;
5464f5a1
NN
12825 -*)
12826 ac_option=$1
12827 ac_optarg=$2
12828 ac_shift=shift
6be7c12c 12829 ;;
5464f5a1
NN
12830 *) # This is not an option, so the user has probably given explicit
12831 # arguments.
12832 ac_option=$1
12833 ac_need_defaults=false;;
12834 esac
252b5132 12835
5464f5a1
NN
12836 case $ac_option in
12837 # Handling of the options.
12838_ACEOF
12839cat >>$CONFIG_STATUS <<\_ACEOF
12840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12841 ac_cs_recheck=: ;;
12842 --version | --vers* | -V )
12843 echo "$ac_cs_version"; exit 0 ;;
12844 --he | --h)
12845 # Conflict between --help and --header
12846 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12847Try \`$0 --help' for more information." >&5
12848echo "$as_me: error: ambiguous option: $1
12849Try \`$0 --help' for more information." >&2;}
12850 { (exit 1); exit 1; }; };;
12851 --help | --hel | -h )
12852 echo "$ac_cs_usage"; exit 0 ;;
12853 --debug | --d* | -d )
12854 debug=: ;;
12855 --file | --fil | --fi | --f )
12856 $ac_shift
12857 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12858 ac_need_defaults=false;;
12859 --header | --heade | --head | --hea )
12860 $ac_shift
12861 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12862 ac_need_defaults=false;;
12863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12864 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12865 ac_cs_silent=: ;;
6be7c12c 12866
5464f5a1
NN
12867 # This is an error.
12868 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12869Try \`$0 --help' for more information." >&5
12870echo "$as_me: error: unrecognized option: $1
12871Try \`$0 --help' for more information." >&2;}
12872 { (exit 1); exit 1; }; } ;;
252b5132 12873
5464f5a1 12874 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 12875
5464f5a1
NN
12876 esac
12877 shift
12878done
6be7c12c 12879
5464f5a1 12880ac_configure_extra_args=
252b5132 12881
5464f5a1
NN
12882if $ac_cs_silent; then
12883 exec 6>/dev/null
12884 ac_configure_extra_args="$ac_configure_extra_args --silent"
12885fi
6be7c12c 12886
5464f5a1
NN
12887_ACEOF
12888cat >>$CONFIG_STATUS <<_ACEOF
12889if \$ac_cs_recheck; then
12890 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12891 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12892fi
12893
12894_ACEOF
12895
12896cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 12897#
5464f5a1 12898# INIT-COMMANDS section.
6be7c12c 12899#
b3baf5d0 12900
f5385ebf 12901AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20e95c23
DJ
12902# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12903 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12904 # from automake.
12905 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12906 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12907 LINGUAS="${LINGUAS-%UNSET%}"
12908
5464f5a1
NN
12909
12910
12911_ACEOF
12912
12913
12914
12915cat >>$CONFIG_STATUS <<\_ACEOF
12916for ac_config_target in $ac_config_targets
252b5132 12917do
5464f5a1
NN
12918 case "$ac_config_target" in
12919 # Handling of arguments.
12920 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12921 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12922 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12923 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 12924 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20e95c23 12925 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5464f5a1
NN
12926 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12927 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12928 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12929echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12930 { (exit 1); exit 1; }; };;
252b5132
RH
12931 esac
12932done
12933
5464f5a1
NN
12934# If the user did not use the arguments to specify the items to instantiate,
12935# then the envvar interface is used. Set only those that are not.
12936# We use the long form for the default assignment because of an extremely
12937# bizarre bug on SunOS 4.1.3.
12938if $ac_need_defaults; then
12939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12940 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12941 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12942fi
12943
12944# Have a temporary directory for convenience. Make it in the build tree
12945# simply because there is no reason to put it here, and in addition,
12946# creating and moving files from /tmp can sometimes cause problems.
12947# Create a temporary directory, and hook for its removal unless debugging.
12948$debug ||
12949{
12950 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12951 trap '{ (exit 1); exit 1; }' 1 2 13 15
12952}
b3baf5d0 12953
5464f5a1 12954# Create a (secure) tmp directory for tmp files.
b3baf5d0 12955
5464f5a1
NN
12956{
12957 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12958 test -n "$tmp" && test -d "$tmp"
12959} ||
12960{
12961 tmp=./confstat$$-$RANDOM
12962 (umask 077 && mkdir $tmp)
12963} ||
12964{
12965 echo "$me: cannot create a temporary directory in ." >&2
12966 { (exit 1); exit 1; }
12967}
12968
12969_ACEOF
12970
12971cat >>$CONFIG_STATUS <<_ACEOF
12972
12973#
12974# CONFIG_FILES section.
12975#
b3baf5d0 12976
5464f5a1
NN
12977# No need to generate the scripts if there are no CONFIG_FILES.
12978# This happens for instance when ./config.status config.h
12979if test -n "\$CONFIG_FILES"; then
12980 # Protect against being on the right side of a sed subst in config.status.
12981 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12982 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12983s,@SHELL@,$SHELL,;t t
12984s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12985s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12986s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12987s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12988s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12989s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12990s,@exec_prefix@,$exec_prefix,;t t
12991s,@prefix@,$prefix,;t t
12992s,@program_transform_name@,$program_transform_name,;t t
12993s,@bindir@,$bindir,;t t
12994s,@sbindir@,$sbindir,;t t
12995s,@libexecdir@,$libexecdir,;t t
12996s,@datadir@,$datadir,;t t
12997s,@sysconfdir@,$sysconfdir,;t t
12998s,@sharedstatedir@,$sharedstatedir,;t t
12999s,@localstatedir@,$localstatedir,;t t
13000s,@libdir@,$libdir,;t t
13001s,@includedir@,$includedir,;t t
13002s,@oldincludedir@,$oldincludedir,;t t
13003s,@infodir@,$infodir,;t t
13004s,@mandir@,$mandir,;t t
13005s,@build_alias@,$build_alias,;t t
13006s,@host_alias@,$host_alias,;t t
13007s,@target_alias@,$target_alias,;t t
13008s,@DEFS@,$DEFS,;t t
13009s,@ECHO_C@,$ECHO_C,;t t
13010s,@ECHO_N@,$ECHO_N,;t t
13011s,@ECHO_T@,$ECHO_T,;t t
13012s,@LIBS@,$LIBS,;t t
13013s,@build@,$build,;t t
13014s,@build_cpu@,$build_cpu,;t t
13015s,@build_vendor@,$build_vendor,;t t
13016s,@build_os@,$build_os,;t t
13017s,@host@,$host,;t t
13018s,@host_cpu@,$host_cpu,;t t
13019s,@host_vendor@,$host_vendor,;t t
13020s,@host_os@,$host_os,;t t
13021s,@target@,$target,;t t
13022s,@target_cpu@,$target_cpu,;t t
13023s,@target_vendor@,$target_vendor,;t t
13024s,@target_os@,$target_os,;t t
13025s,@CC@,$CC,;t t
13026s,@CFLAGS@,$CFLAGS,;t t
13027s,@LDFLAGS@,$LDFLAGS,;t t
13028s,@CPPFLAGS@,$CPPFLAGS,;t t
13029s,@ac_ct_CC@,$ac_ct_CC,;t t
13030s,@EXEEXT@,$EXEEXT,;t t
13031s,@OBJEXT@,$OBJEXT,;t t
13032s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13033s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13034s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 13035s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
13036s,@PACKAGE@,$PACKAGE,;t t
13037s,@VERSION@,$VERSION,;t t
13038s,@ACLOCAL@,$ACLOCAL,;t t
13039s,@AUTOCONF@,$AUTOCONF,;t t
13040s,@AUTOMAKE@,$AUTOMAKE,;t t
13041s,@AUTOHEADER@,$AUTOHEADER,;t t
13042s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
13043s,@install_sh@,$install_sh,;t t
13044s,@STRIP@,$STRIP,;t t
13045s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13046s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13047s,@mkdir_p@,$mkdir_p,;t t
13048s,@AWK@,$AWK,;t t
5464f5a1 13049s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
13050s,@am__leading_dot@,$am__leading_dot,;t t
13051s,@AMTAR@,$AMTAR,;t t
13052s,@am__tar@,$am__tar,;t t
13053s,@am__untar@,$am__untar,;t t
13054s,@DEPDIR@,$DEPDIR,;t t
13055s,@am__include@,$am__include,;t t
13056s,@am__quote@,$am__quote,;t t
13057s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13058s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13059s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13060s,@CCDEPMODE@,$CCDEPMODE,;t t
13061s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13062s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
13063s,@AR@,$AR,;t t
13064s,@ac_ct_AR@,$ac_ct_AR,;t t
13065s,@RANLIB@,$RANLIB,;t t
13066s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13067s,@LN_S@,$LN_S,;t t
5464f5a1 13068s,@LIBTOOL@,$LIBTOOL,;t t
92f01d61 13069s,@PKGVERSION@,$PKGVERSION,;t t
c428fa83
L
13070s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
13071s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
5464f5a1 13072s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 13073s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
13074s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13075s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13076s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
13077s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13078s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
13079s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13080s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
13081s,@host_noncanonical@,$host_noncanonical,;t t
13082s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
13083s,@bfdlibdir@,$bfdlibdir,;t t
13084s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 13085s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
13086s,@LIBINTL@,$LIBINTL,;t t
13087s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13088s,@INCINTL@,$INCINTL,;t t
5464f5a1 13089s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
13090s,@GMSGFMT@,$GMSGFMT,;t t
13091s,@POSUB@,$POSUB,;t t
5464f5a1 13092s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 13093s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 13094s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
13095s,@GENCAT@,$GENCAT,;t t
13096s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 13097s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13098s,@MSGFMT@,$MSGFMT,;t t
13099s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1 13100s,@HDEFINES@,$HDEFINES,;t t
20e95c23
DJ
13101s,@CPP@,$CPP,;t t
13102s,@EGREP@,$EGREP,;t t
5464f5a1
NN
13103s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13104s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13105s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13106s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13107s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13108s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13109s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13110s,@COREFILE@,$COREFILE,;t t
13111s,@COREFLAG@,$COREFLAG,;t t
13112s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13113s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13114s,@TDEFINES@,$TDEFINES,;t t
13115s,@wordsize@,$wordsize,;t t
21e40a48 13116s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
13117s,@all_backends@,$all_backends,;t t
13118s,@bfd_backends@,$bfd_backends,;t t
13119s,@bfd_machines@,$bfd_machines,;t t
13120s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13121s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13122s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13123s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
13124s,@datarootdir@,$datarootdir,;t t
13125s,@docdir@,$docdir,;t t
13126s,@htmldir@,$htmldir,;t t
5464f5a1
NN
13127s,@LIBOBJS@,$LIBOBJS,;t t
13128s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 13129CEOF
252b5132 13130
5464f5a1
NN
13131_ACEOF
13132
13133 cat >>$CONFIG_STATUS <<\_ACEOF
13134 # Split the substitutions into bite-sized pieces for seds with
13135 # small command number limits, like on Digital OSF/1 and HP-UX.
13136 ac_max_sed_lines=48
13137 ac_sed_frag=1 # Number of current file.
13138 ac_beg=1 # First line for current file.
13139 ac_end=$ac_max_sed_lines # Line after last line for current file.
13140 ac_more_lines=:
13141 ac_sed_cmds=
13142 while $ac_more_lines; do
13143 if test $ac_beg -gt 1; then
13144 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 13145 else
5464f5a1
NN
13146 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13147 fi
13148 if test ! -s $tmp/subs.frag; then
13149 ac_more_lines=false
13150 else
13151 # The purpose of the label and of the branching condition is to
13152 # speed up the sed processing (if there are no `@' at all, there
13153 # is no need to browse any of the substitutions).
13154 # These are the two extra sed commands mentioned above.
13155 (echo ':t
13156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13157 if test -z "$ac_sed_cmds"; then
13158 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13159 else
13160 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13161 fi
13162 ac_sed_frag=`expr $ac_sed_frag + 1`
13163 ac_beg=$ac_end
13164 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13165 fi
5464f5a1
NN
13166 done
13167 if test -z "$ac_sed_cmds"; then
13168 ac_sed_cmds=cat
252b5132 13169 fi
5464f5a1 13170fi # test -n "$CONFIG_FILES"
6be7c12c 13171
5464f5a1
NN
13172_ACEOF
13173cat >>$CONFIG_STATUS <<\_ACEOF
13174for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13176 case $ac_file in
13177 - | *:- | *:-:* ) # input from stdin
13178 cat >$tmp/stdin
13179 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13181 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13183 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13184 esac
13185
5464f5a1
NN
13186 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13187 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13189 X"$ac_file" : 'X\(//\)[^/]' \| \
13190 X"$ac_file" : 'X\(//\)$' \| \
13191 X"$ac_file" : 'X\(/\)' \| \
13192 . : '\(.\)' 2>/dev/null ||
13193echo X"$ac_file" |
13194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13195 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13196 /^X\(\/\/\)$/{ s//\1/; q; }
13197 /^X\(\/\).*/{ s//\1/; q; }
13198 s/.*/./; q'`
13199 { if $as_mkdir_p; then
13200 mkdir -p "$ac_dir"
252b5132 13201 else
5464f5a1
NN
13202 as_dir="$ac_dir"
13203 as_dirs=
13204 while test ! -d "$as_dir"; do
13205 as_dirs="$as_dir $as_dirs"
13206 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13207$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13208 X"$as_dir" : 'X\(//\)[^/]' \| \
13209 X"$as_dir" : 'X\(//\)$' \| \
13210 X"$as_dir" : 'X\(/\)' \| \
13211 . : '\(.\)' 2>/dev/null ||
13212echo X"$as_dir" |
13213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13215 /^X\(\/\/\)$/{ s//\1/; q; }
13216 /^X\(\/\).*/{ s//\1/; q; }
13217 s/.*/./; q'`
13218 done
13219 test ! -n "$as_dirs" || mkdir $as_dirs
13220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13221echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13222 { (exit 1); exit 1; }; }; }
13223
13224 ac_builddir=.
13225
13226if test "$ac_dir" != .; then
13227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13228 # A "../" for each directory in $ac_dir_suffix.
13229 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13230else
13231 ac_dir_suffix= ac_top_builddir=
13232fi
252b5132 13233
5464f5a1
NN
13234case $srcdir in
13235 .) # No --srcdir option. We are building in place.
13236 ac_srcdir=.
13237 if test -z "$ac_top_builddir"; then
13238 ac_top_srcdir=.
13239 else
13240 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13241 fi ;;
13242 [\\/]* | ?:[\\/]* ) # Absolute path.
13243 ac_srcdir=$srcdir$ac_dir_suffix;
13244 ac_top_srcdir=$srcdir ;;
252b5132 13245 *) # Relative path.
5464f5a1
NN
13246 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13247 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13248esac
252b5132 13249
5464f5a1
NN
13250# Do not use `cd foo && pwd` to compute absolute paths, because
13251# the directories may not exist.
13252case `pwd` in
13253.) ac_abs_builddir="$ac_dir";;
13254*)
13255 case "$ac_dir" in
13256 .) ac_abs_builddir=`pwd`;;
13257 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13258 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13259 esac;;
13260esac
13261case $ac_abs_builddir in
13262.) ac_abs_top_builddir=${ac_top_builddir}.;;
13263*)
13264 case ${ac_top_builddir}. in
13265 .) ac_abs_top_builddir=$ac_abs_builddir;;
13266 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13267 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13268 esac;;
13269esac
13270case $ac_abs_builddir in
13271.) ac_abs_srcdir=$ac_srcdir;;
13272*)
13273 case $ac_srcdir in
13274 .) ac_abs_srcdir=$ac_abs_builddir;;
13275 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13276 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13277 esac;;
13278esac
13279case $ac_abs_builddir in
13280.) ac_abs_top_srcdir=$ac_top_srcdir;;
13281*)
13282 case $ac_top_srcdir in
13283 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13284 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13285 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13286 esac;;
13287esac
252b5132 13288
5464f5a1
NN
13289
13290 case $INSTALL in
13291 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13292 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 13293 esac
252b5132 13294
49c96104
SE
13295 if test x"$ac_file" != x-; then
13296 { echo "$as_me:$LINENO: creating $ac_file" >&5
13297echo "$as_me: creating $ac_file" >&6;}
13298 rm -f "$ac_file"
13299 fi
5464f5a1
NN
13300 # Let's still pretend it is `configure' which instantiates (i.e., don't
13301 # use $as_me), people would be surprised to read:
13302 # /* config.h. Generated by config.status. */
13303 if test x"$ac_file" = x-; then
13304 configure_input=
13305 else
13306 configure_input="$ac_file. "
13307 fi
13308 configure_input=$configure_input"Generated from `echo $ac_file_in |
13309 sed 's,.*/,,'` by configure."
13310
13311 # First look for the input files in the build tree, otherwise in the
13312 # src tree.
13313 ac_file_inputs=`IFS=:
13314 for f in $ac_file_in; do
13315 case $f in
13316 -) echo $tmp/stdin ;;
13317 [\\/$]*)
13318 # Absolute (can't be DOS-style, as IFS=:)
13319 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13320echo "$as_me: error: cannot find input file: $f" >&2;}
13321 { (exit 1); exit 1; }; }
13322 echo "$f";;
13323 *) # Relative
13324 if test -f "$f"; then
13325 # Build tree
13326 echo "$f"
13327 elif test -f "$srcdir/$f"; then
13328 # Source tree
13329 echo "$srcdir/$f"
13330 else
13331 # /dev/null tree
13332 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13333echo "$as_me: error: cannot find input file: $f" >&2;}
13334 { (exit 1); exit 1; }; }
13335 fi;;
13336 esac
13337 done` || { (exit 1); exit 1; }
5464f5a1
NN
13338_ACEOF
13339cat >>$CONFIG_STATUS <<_ACEOF
13340 sed "$ac_vpsub
13341$extrasub
13342_ACEOF
13343cat >>$CONFIG_STATUS <<\_ACEOF
13344:t
13345/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13346s,@configure_input@,$configure_input,;t t
13347s,@srcdir@,$ac_srcdir,;t t
13348s,@abs_srcdir@,$ac_abs_srcdir,;t t
13349s,@top_srcdir@,$ac_top_srcdir,;t t
13350s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13351s,@builddir@,$ac_builddir,;t t
13352s,@abs_builddir@,$ac_abs_builddir,;t t
13353s,@top_builddir@,$ac_top_builddir,;t t
13354s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13355s,@INSTALL@,$ac_INSTALL,;t t
13356" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13357 rm -f $tmp/stdin
13358 if test x"$ac_file" != x-; then
13359 mv $tmp/out $ac_file
13360 else
13361 cat $tmp/out
13362 rm -f $tmp/out
13363 fi
13364
13365done
13366_ACEOF
13367cat >>$CONFIG_STATUS <<\_ACEOF
13368
13369#
13370# CONFIG_HEADER section.
13371#
252b5132
RH
13372
13373# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13374# NAME is the cpp macro being defined and VALUE is the value it is being given.
13375#
13376# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
13377ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13378ac_dB='[ ].*$,\1#\2'
13379ac_dC=' '
13380ac_dD=',;t'
13381# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13382ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13383ac_uB='$,\1#\2define\3'
252b5132 13384ac_uC=' '
5464f5a1
NN
13385ac_uD=',;t'
13386
13387for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 13388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13389 case $ac_file in
13390 - | *:- | *:-:* ) # input from stdin
13391 cat >$tmp/stdin
13392 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13394 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13396 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13397 esac
13398
5464f5a1
NN
13399 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13400echo "$as_me: creating $ac_file" >&6;}
13401
13402 # First look for the input files in the build tree, otherwise in the
13403 # src tree.
13404 ac_file_inputs=`IFS=:
13405 for f in $ac_file_in; do
13406 case $f in
13407 -) echo $tmp/stdin ;;
13408 [\\/$]*)
13409 # Absolute (can't be DOS-style, as IFS=:)
13410 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13411echo "$as_me: error: cannot find input file: $f" >&2;}
13412 { (exit 1); exit 1; }; }
13413 # Do quote $f, to prevent DOS paths from being IFS'd.
13414 echo "$f";;
13415 *) # Relative
13416 if test -f "$f"; then
13417 # Build tree
13418 echo "$f"
13419 elif test -f "$srcdir/$f"; then
13420 # Source tree
13421 echo "$srcdir/$f"
13422 else
13423 # /dev/null tree
13424 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13425echo "$as_me: error: cannot find input file: $f" >&2;}
13426 { (exit 1); exit 1; }; }
13427 fi;;
13428 esac
13429 done` || { (exit 1); exit 1; }
13430 # Remove the trailing spaces.
13431 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13432
13433_ACEOF
13434
13435# Transform confdefs.h into two sed scripts, `conftest.defines' and
13436# `conftest.undefs', that substitutes the proper values into
13437# config.h.in to produce config.h. The first handles `#define'
13438# templates, and the second `#undef' templates.
13439# And first: Protect against being on the right side of a sed subst in
13440# config.status. Protect against being in an unquoted here document
13441# in config.status.
13442rm -f conftest.defines conftest.undefs
13443# Using a here document instead of a string reduces the quoting nightmare.
13444# Putting comments in sed scripts is not portable.
13445#
13446# `end' is used to avoid that the second main sed command (meant for
13447# 0-ary CPP macros) applies to n-ary macro definitions.
13448# See the Autoconf documentation for `clear'.
13449cat >confdef2sed.sed <<\_ACEOF
13450s/[\\&,]/\\&/g
13451s,[\\$`],\\&,g
13452t clear
13453: clear
13454s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13455t end
13456s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13457: end
13458_ACEOF
13459# If some macros were called several times there might be several times
13460# the same #defines, which is useless. Nevertheless, we may not want to
13461# sort them, since we want the *last* AC-DEFINE to be honored.
13462uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13463sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13464rm -f confdef2sed.sed
252b5132
RH
13465
13466# This sed command replaces #undef with comments. This is necessary, for
13467# example, in the case of _POSIX_SOURCE, which is predefined and required
13468# on some systems where configure will not decide to define it.
5464f5a1
NN
13469cat >>conftest.undefs <<\_ACEOF
13470s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13471_ACEOF
13472
13473# Break up conftest.defines because some shells have a limit on the size
13474# of here documents, and old seds have small limits too (100 cmds).
13475echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13476echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13477echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13478echo ' :' >>$CONFIG_STATUS
13479rm -f conftest.tail
13480while grep . conftest.defines >/dev/null
13481do
13482 # Write a limited-size here document to $tmp/defines.sed.
13483 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13484 # Speed up: don't consider the non `#define' lines.
13485 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13486 # Work around the forget-to-reset-the-flag bug.
13487 echo 't clr' >>$CONFIG_STATUS
13488 echo ': clr' >>$CONFIG_STATUS
13489 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13490 echo 'CEOF
13491 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13492 rm -f $tmp/in
13493 mv $tmp/out $tmp/in
13494' >>$CONFIG_STATUS
13495 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13496 rm -f conftest.defines
13497 mv conftest.tail conftest.defines
13498done
13499rm -f conftest.defines
13500echo ' fi # grep' >>$CONFIG_STATUS
13501echo >>$CONFIG_STATUS
252b5132 13502
5464f5a1
NN
13503# Break up conftest.undefs because some shells have a limit on the size
13504# of here documents, and old seds have small limits too (100 cmds).
13505echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13506rm -f conftest.tail
5464f5a1 13507while grep . conftest.undefs >/dev/null
252b5132 13508do
5464f5a1
NN
13509 # Write a limited-size here document to $tmp/undefs.sed.
13510 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13511 # Speed up: don't consider the non `#undef'
13512 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13513 # Work around the forget-to-reset-the-flag bug.
13514 echo 't clr' >>$CONFIG_STATUS
13515 echo ': clr' >>$CONFIG_STATUS
13516 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13517 echo 'CEOF
5464f5a1
NN
13518 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13519 rm -f $tmp/in
13520 mv $tmp/out $tmp/in
13521' >>$CONFIG_STATUS
13522 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13523 rm -f conftest.undefs
13524 mv conftest.tail conftest.undefs
252b5132 13525done
5464f5a1
NN
13526rm -f conftest.undefs
13527
13528cat >>$CONFIG_STATUS <<\_ACEOF
13529 # Let's still pretend it is `configure' which instantiates (i.e., don't
13530 # use $as_me), people would be surprised to read:
13531 # /* config.h. Generated by config.status. */
13532 if test x"$ac_file" = x-; then
13533 echo "/* Generated by configure. */" >$tmp/config.h
13534 else
13535 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13536 fi
13537 cat $tmp/in >>$tmp/config.h
13538 rm -f $tmp/in
13539 if test x"$ac_file" != x-; then
13540 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13541 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13542echo "$as_me: $ac_file is unchanged" >&6;}
13543 else
13544 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13545$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13546 X"$ac_file" : 'X\(//\)[^/]' \| \
13547 X"$ac_file" : 'X\(//\)$' \| \
13548 X"$ac_file" : 'X\(/\)' \| \
13549 . : '\(.\)' 2>/dev/null ||
13550echo X"$ac_file" |
13551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13552 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13553 /^X\(\/\/\)$/{ s//\1/; q; }
13554 /^X\(\/\).*/{ s//\1/; q; }
13555 s/.*/./; q'`
13556 { if $as_mkdir_p; then
13557 mkdir -p "$ac_dir"
252b5132 13558 else
5464f5a1
NN
13559 as_dir="$ac_dir"
13560 as_dirs=
13561 while test ! -d "$as_dir"; do
13562 as_dirs="$as_dir $as_dirs"
13563 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13564$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13565 X"$as_dir" : 'X\(//\)[^/]' \| \
13566 X"$as_dir" : 'X\(//\)$' \| \
13567 X"$as_dir" : 'X\(/\)' \| \
13568 . : '\(.\)' 2>/dev/null ||
13569echo X"$as_dir" |
13570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13572 /^X\(\/\/\)$/{ s//\1/; q; }
13573 /^X\(\/\).*/{ s//\1/; q; }
13574 s/.*/./; q'`
13575 done
13576 test ! -n "$as_dirs" || mkdir $as_dirs
13577 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13578echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13579 { (exit 1); exit 1; }; }; }
13580
13581 rm -f $ac_file
13582 mv $tmp/config.h $ac_file
252b5132 13583 fi
5464f5a1
NN
13584 else
13585 cat $tmp/config.h
13586 rm -f $tmp/config.h
252b5132 13587 fi
f5385ebf
AM
13588# Compute $ac_file's index in $config_headers.
13589_am_stamp_count=1
13590for _am_header in $config_headers :; do
13591 case $_am_header in
13592 $ac_file | $ac_file:* )
13593 break ;;
13594 * )
13595 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13596 esac
13597done
13598echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13599$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13600 X$ac_file : 'X\(//\)[^/]' \| \
13601 X$ac_file : 'X\(//\)$' \| \
13602 X$ac_file : 'X\(/\)' \| \
13603 . : '\(.\)' 2>/dev/null ||
13604echo X$ac_file |
13605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13607 /^X\(\/\/\)$/{ s//\1/; q; }
13608 /^X\(\/\).*/{ s//\1/; q; }
13609 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
13610done
13611_ACEOF
13612cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13613
5464f5a1
NN
13614#
13615# CONFIG_COMMANDS section.
13616#
13617for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13618 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13619 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13620 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13621$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13622 X"$ac_dest" : 'X\(//\)[^/]' \| \
13623 X"$ac_dest" : 'X\(//\)$' \| \
13624 X"$ac_dest" : 'X\(/\)' \| \
13625 . : '\(.\)' 2>/dev/null ||
13626echo X"$ac_dest" |
13627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13629 /^X\(\/\/\)$/{ s//\1/; q; }
13630 /^X\(\/\).*/{ s//\1/; q; }
13631 s/.*/./; q'`
13632 { if $as_mkdir_p; then
13633 mkdir -p "$ac_dir"
13634 else
13635 as_dir="$ac_dir"
13636 as_dirs=
13637 while test ! -d "$as_dir"; do
13638 as_dirs="$as_dir $as_dirs"
13639 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13640$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13641 X"$as_dir" : 'X\(//\)[^/]' \| \
13642 X"$as_dir" : 'X\(//\)$' \| \
13643 X"$as_dir" : 'X\(/\)' \| \
13644 . : '\(.\)' 2>/dev/null ||
13645echo X"$as_dir" |
13646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13648 /^X\(\/\/\)$/{ s//\1/; q; }
13649 /^X\(\/\).*/{ s//\1/; q; }
13650 s/.*/./; q'`
13651 done
13652 test ! -n "$as_dirs" || mkdir $as_dirs
13653 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13654echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13655 { (exit 1); exit 1; }; }; }
b3baf5d0 13656
5464f5a1 13657 ac_builddir=.
b3baf5d0 13658
5464f5a1
NN
13659if test "$ac_dir" != .; then
13660 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13661 # A "../" for each directory in $ac_dir_suffix.
13662 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13663else
13664 ac_dir_suffix= ac_top_builddir=
13665fi
13666
13667case $srcdir in
13668 .) # No --srcdir option. We are building in place.
13669 ac_srcdir=.
13670 if test -z "$ac_top_builddir"; then
13671 ac_top_srcdir=.
13672 else
13673 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13674 fi ;;
13675 [\\/]* | ?:[\\/]* ) # Absolute path.
13676 ac_srcdir=$srcdir$ac_dir_suffix;
13677 ac_top_srcdir=$srcdir ;;
13678 *) # Relative path.
13679 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13680 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13681esac
13682
13683# Do not use `cd foo && pwd` to compute absolute paths, because
13684# the directories may not exist.
13685case `pwd` in
13686.) ac_abs_builddir="$ac_dir";;
13687*)
13688 case "$ac_dir" in
13689 .) ac_abs_builddir=`pwd`;;
13690 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13691 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13692 esac;;
13693esac
13694case $ac_abs_builddir in
13695.) ac_abs_top_builddir=${ac_top_builddir}.;;
13696*)
13697 case ${ac_top_builddir}. in
13698 .) ac_abs_top_builddir=$ac_abs_builddir;;
13699 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13700 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13701 esac;;
13702esac
13703case $ac_abs_builddir in
13704.) ac_abs_srcdir=$ac_srcdir;;
13705*)
13706 case $ac_srcdir in
13707 .) ac_abs_srcdir=$ac_abs_builddir;;
13708 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13709 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13710 esac;;
13711esac
13712case $ac_abs_builddir in
13713.) ac_abs_top_srcdir=$ac_top_srcdir;;
13714*)
13715 case $ac_top_srcdir in
13716 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13717 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13718 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13719 esac;;
13720esac
13721
13722
13723 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13724echo "$as_me: executing $ac_dest commands" >&6;}
13725 case $ac_dest in
f5385ebf
AM
13726 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13727 # Strip MF so we end up with the name of the file.
13728 mf=`echo "$mf" | sed -e 's/:.*$//'`
13729 # Check whether this is an Automake generated Makefile or not.
13730 # We used to match only the files named `Makefile.in', but
13731 # some people rename them; so instead we look at the file content.
13732 # Grep'ing the first line is not enough: some people post-process
13733 # each Makefile.in and add a new line on top of each file to say so.
13734 # So let's grep whole file.
13735 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13736 dirpart=`(dirname "$mf") 2>/dev/null ||
13737$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13738 X"$mf" : 'X\(//\)[^/]' \| \
13739 X"$mf" : 'X\(//\)$' \| \
13740 X"$mf" : 'X\(/\)' \| \
13741 . : '\(.\)' 2>/dev/null ||
13742echo X"$mf" |
13743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13745 /^X\(\/\/\)$/{ s//\1/; q; }
13746 /^X\(\/\).*/{ s//\1/; q; }
13747 s/.*/./; q'`
13748 else
13749 continue
13750 fi
13751 # Extract the definition of DEPDIR, am__include, and am__quote
13752 # from the Makefile without running `make'.
13753 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13754 test -z "$DEPDIR" && continue
13755 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13756 test -z "am__include" && continue
13757 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13758 # When using ansi2knr, U may be empty or an underscore; expand it
13759 U=`sed -n 's/^U = //p' < "$mf"`
13760 # Find all dependency output files, they are included files with
13761 # $(DEPDIR) in their names. We invoke sed twice because it is the
13762 # simplest approach to changing $(DEPDIR) to its actual value in the
13763 # expansion.
13764 for file in `sed -n "
13765 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13766 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13767 # Make sure the directory exists.
13768 test -f "$dirpart/$file" && continue
13769 fdir=`(dirname "$file") 2>/dev/null ||
13770$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13771 X"$file" : 'X\(//\)[^/]' \| \
13772 X"$file" : 'X\(//\)$' \| \
13773 X"$file" : 'X\(/\)' \| \
13774 . : '\(.\)' 2>/dev/null ||
13775echo X"$file" |
13776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13777 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13778 /^X\(\/\/\)$/{ s//\1/; q; }
13779 /^X\(\/\).*/{ s//\1/; q; }
13780 s/.*/./; q'`
13781 { if $as_mkdir_p; then
13782 mkdir -p $dirpart/$fdir
13783 else
13784 as_dir=$dirpart/$fdir
13785 as_dirs=
13786 while test ! -d "$as_dir"; do
13787 as_dirs="$as_dir $as_dirs"
13788 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13789$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13790 X"$as_dir" : 'X\(//\)[^/]' \| \
13791 X"$as_dir" : 'X\(//\)$' \| \
13792 X"$as_dir" : 'X\(/\)' \| \
13793 . : '\(.\)' 2>/dev/null ||
13794echo X"$as_dir" |
13795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13797 /^X\(\/\/\)$/{ s//\1/; q; }
13798 /^X\(\/\).*/{ s//\1/; q; }
13799 s/.*/./; q'`
13800 done
13801 test ! -n "$as_dirs" || mkdir $as_dirs
13802 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13803echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13804 { (exit 1); exit 1; }; }; }
13805
13806 # echo "creating $dirpart/$file"
13807 echo '# dummy' > "$dirpart/$file"
13808 done
13809done
13810 ;;
20e95c23
DJ
13811 default-1 )
13812 for ac_file in $CONFIG_FILES; do
13813 # Support "outfile[:infile[:infile...]]"
13814 case "$ac_file" in
13815 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13816 esac
13817 # PO directories have a Makefile.in generated from Makefile.in.in.
13818 case "$ac_file" in */Makefile.in)
13819 # Adjust a relative srcdir.
13820 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13821 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13822 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13823 # In autoconf-2.13 it is called $ac_given_srcdir.
13824 # In autoconf-2.50 it is called $srcdir.
13825 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13826 case "$ac_given_srcdir" in
13827 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13828 /*) top_srcdir="$ac_given_srcdir" ;;
13829 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13830 esac
13831 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13832 rm -f "$ac_dir/POTFILES"
13833 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13834 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13835 POMAKEFILEDEPS="POTFILES.in"
13836 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13837 # on $ac_dir but don't depend on user-specified configuration
13838 # parameters.
13839 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13840 # The LINGUAS file contains the set of available languages.
13841 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13842 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13843 fi
13844 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13845 # Hide the ALL_LINGUAS assigment from automake.
13846 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13847 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13848 else
13849 # The set of available languages was given in configure.in.
13850 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13851 fi
13852 case "$ac_given_srcdir" in
13853 .) srcdirpre= ;;
13854 *) srcdirpre='$(srcdir)/' ;;
13855 esac
13856 POFILES=
13857 GMOFILES=
13858 UPDATEPOFILES=
13859 DUMMYPOFILES=
13860 for lang in $ALL_LINGUAS; do
13861 POFILES="$POFILES $srcdirpre$lang.po"
13862 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13863 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13864 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13865 done
13866 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13867 # environment variable.
13868 INST_LINGUAS=
13869 if test -n "$ALL_LINGUAS"; then
13870 for presentlang in $ALL_LINGUAS; do
13871 useit=no
13872 if test "%UNSET%" != "$LINGUAS"; then
13873 desiredlanguages="$LINGUAS"
13874 else
13875 desiredlanguages="$ALL_LINGUAS"
13876 fi
13877 for desiredlang in $desiredlanguages; do
13878 # Use the presentlang catalog if desiredlang is
13879 # a. equal to presentlang, or
13880 # b. a variant of presentlang (because in this case,
13881 # presentlang can be used as a fallback for messages
13882 # which are not translated in the desiredlang catalog).
13883 case "$desiredlang" in
13884 "$presentlang"*) useit=yes;;
13885 esac
13886 done
13887 if test $useit = yes; then
13888 INST_LINGUAS="$INST_LINGUAS $presentlang"
13889 fi
13890 done
13891 fi
13892 CATALOGS=
13893 if test -n "$INST_LINGUAS"; then
13894 for lang in $INST_LINGUAS; do
13895 CATALOGS="$CATALOGS $lang.gmo"
13896 done
13897 fi
13898 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13899 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"
13900 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13901 if test -f "$f"; then
13902 case "$f" in
13903 *.orig | *.bak | *~) ;;
13904 *) cat "$f" >> "$ac_dir/Makefile" ;;
13905 esac
13906 fi
13907 done
13908 fi
13909 ;;
13910 esac
13911 done ;;
13912 default )
13913case "$srcdir" in
13914 .) srcdirpre= ;;
13915 *) srcdirpre='$(srcdir)/' ;;
13916esac
13917POFILES=
13918GMOFILES=
13919for lang in dummy $OBSOLETE_ALL_LINGUAS; do
13920 if test $lang != dummy; then
13921 POFILES="$POFILES $srcdirpre$lang.po"
13922 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13923 fi
13924done
13925sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
13926 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
13927 -e "s,@POFILES@,$POFILES," \
13928 -e "s,@GMOFILES@,$GMOFILES," \
13929 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
13930 esac
13931done
13932_ACEOF
13933
13934cat >>$CONFIG_STATUS <<\_ACEOF
13935
13936{ (exit 0); exit 0; }
13937_ACEOF
252b5132 13938chmod +x $CONFIG_STATUS
5464f5a1
NN
13939ac_clean_files=$ac_clean_files_save
13940
13941
13942# configure is writing to config.log, and then calls config.status.
13943# config.status does its own redirection, appending to config.log.
13944# Unfortunately, on DOS this fails, as config.log is still kept open
13945# by configure, so config.status won't be able to write to it; its
13946# output is simply discarded. So we exec the FD to /dev/null,
13947# effectively closing config.log, so it can be properly (re)opened and
13948# appended to by config.status. When coming back to configure, we
13949# need to make the FD available again.
13950if test "$no_create" != yes; then
13951 ac_cs_success=:
13952 ac_config_status_args=
13953 test "$silent" = yes &&
13954 ac_config_status_args="$ac_config_status_args --quiet"
13955 exec 5>/dev/null
13956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13957 exec 5>>config.log
13958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13959 # would make configure fail if this is the last instruction.
13960 $ac_cs_success || { (exit 1); exit 1; }
13961fi
252b5132 13962
55c80943 13963
This page took 1.252279 seconds and 4 git commands to generate.