* i386obsd-nat.c: Include "gdbcore.h", "regcache.h", "target.h",
[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
d5fbea21 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
5464f5a1 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
5464f5a1
NN
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
5464f5a1 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
5464f5a1
NN
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
5464f5a1 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
5464f5a1 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
5464f5a1 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 377 build_alias=$ac_optarg ;;
252b5132
RH
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
5464f5a1 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
5464f5a1 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
5464f5a1
NN
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
5464f5a1 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
5464f5a1
NN
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
5464f5a1 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
5464f5a1 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
5464f5a1
NN
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
5464f5a1 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 440 host_alias=$ac_optarg ;;
252b5132
RH
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 457 libdir=$ac_optarg ;;
252b5132
RH
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
5464f5a1 464 libexecdir=$ac_optarg ;;
252b5132
RH
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5464f5a1 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 478 mandir=$ac_optarg ;;
252b5132
RH
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 485 | --no-cr | --no-c | -n)
252b5132
RH
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 504 prefix=$ac_optarg ;;
252b5132
RH
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 511 program_prefix=$ac_optarg ;;
252b5132
RH
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 518 program_suffix=$ac_optarg ;;
252b5132
RH
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 535 program_transform_name=$ac_optarg ;;
252b5132
RH
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
5464f5a1 545 sbindir=$ac_optarg ;;
252b5132
RH
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
5464f5a1 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
5464f5a1 561 site=$ac_optarg ;;
6be7c12c 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 566 srcdir=$ac_optarg ;;
252b5132
RH
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
5464f5a1
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
5464f5a1 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
5464f5a1
NN
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
5464f5a1 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
5464f5a1 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
5464f5a1
NN
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
252b5132
RH
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 617 x_includes=$ac_optarg ;;
252b5132
RH
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 624 x_libraries=$ac_optarg ;;
252b5132 625
5464f5a1
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
5464f5a1
NN
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
252b5132 641 *)
5464f5a1
NN
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
5464f5a1
NN
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
252b5132 656fi
252b5132 657
5464f5a1
NN
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
6be7c12c 668
5464f5a1
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
5464f5a1
NN
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
252b5132
RH
678 esac
679done
680
5464f5a1
NN
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
252b5132 698
5464f5a1
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
5464f5a1
NN
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
252b5132
RH
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
5464f5a1
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
5464f5a1
NN
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
b3baf5d0 773
5464f5a1
NN
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
252b5132 782
5464f5a1 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
5464f5a1
NN
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 787
5464f5a1 788Defaults for the options are specified in brackets.
6be7c12c 789
5464f5a1
NN
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
6be7c12c 809
5464f5a1
NN
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
6be7c12c 814
5464f5a1 815For better control, use the options below.
6be7c12c 816
5464f5a1
NN
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
6be7c12c 831
5464f5a1 832 cat <<\_ACEOF
6be7c12c 833
5464f5a1
NN
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 838
5464f5a1
NN
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
252b5132 844fi
252b5132 845
5464f5a1 846if test -n "$ac_init_help"; then
6be7c12c 847
5464f5a1 848 cat <<\_ACEOF
252b5132 849
5464f5a1
NN
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
5464f5a1
NN
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
6ec7057a 862 --enable-secureplt Default to creating read-only plt entries
241a6c40
AM
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings enable build-time compiler warnings
f5385ebf
AM
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
5464f5a1
NN
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
869
870Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
5464f5a1
NN
876
877Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CPP C preprocessor
885
886Use these variables to override the choices made by `configure' or to help
887it to find libraries and programs with nonstandard names/locations.
888
889_ACEOF
890fi
891
892if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
894 ac_popdir=`pwd`
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
897 ac_builddir=.
898
899if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903else
904 ac_dir_suffix= ac_top_builddir=
905fi
906
907case $srcdir in
908 .) # No --srcdir option. We are building in place.
909 ac_srcdir=.
910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
921esac
922
5464f5a1
NN
923# Do not use `cd foo && pwd` to compute absolute paths, because
924# the directories may not exist.
925case `pwd` in
926.) ac_abs_builddir="$ac_dir";;
927*)
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933esac
934case $ac_abs_builddir in
935.) ac_abs_top_builddir=${ac_top_builddir}.;;
936*)
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_srcdir=$ac_srcdir;;
945*)
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_srcdir=$ac_top_srcdir;;
954*)
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960esac
6be7c12c 961
5464f5a1
NN
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
974 else
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 fi
49c96104 977 cd $ac_popdir
5464f5a1 978 done
6be7c12c
AO
979fi
980
5464f5a1
NN
981test -n "$ac_init_help" && exit 0
982if $ac_init_version; then
983 cat <<\_ACEOF
6be7c12c 984
5464f5a1
NN
985Copyright (C) 2003 Free Software Foundation, Inc.
986This configure script is free software; the Free Software Foundation
987gives unlimited permission to copy, distribute and modify it.
988_ACEOF
989 exit 0
990fi
991exec 5>config.log
992cat >&5 <<_ACEOF
993This file contains any messages produced by compilers while
994running configure, to aid debugging if configure makes a mistake.
6be7c12c 995
5464f5a1
NN
996It was created by $as_me, which was
997generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 998
5464f5a1 999 $ $0 $@
6be7c12c 1000
5464f5a1
NN
1001_ACEOF
1002{
1003cat <<_ASUNAME
1004## --------- ##
1005## Platform. ##
1006## --------- ##
1007
1008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016
1017/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024
1025_ASUNAME
1026
1027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028for as_dir in $PATH
1029do
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033done
6be7c12c 1034
5464f5a1 1035} >&5
66e25bab 1036
5464f5a1 1037cat >&5 <<_ACEOF
b3baf5d0 1038
6be7c12c 1039
5464f5a1
NN
1040## ----------- ##
1041## Core tests. ##
1042## ----------- ##
252b5132 1043
5464f5a1 1044_ACEOF
c5d1701e 1045
6be7c12c 1046
5464f5a1
NN
1047# Keep a trace of the command line.
1048# Strip out --no-create and --no-recursion so they do not pile up.
1049# Strip out --silent because we don't want to record it for future runs.
1050# Also quote any args containing shell meta-characters.
1051# Make two passes to allow for proper duplicate-argument suppression.
1052ac_configure_args=
1053ac_configure_args0=
1054ac_configure_args1=
1055ac_sep=
1056ac_must_keep_next=false
1057for ac_pass in 1 2
1058do
1059 for ac_arg
1060 do
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 2)
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1084 ;;
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1087 fi
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1091 ;;
1092 esac
1093 done
1094done
1095$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098# When interrupted or exit'd, cleanup temporary files, and complete
1099# config.log. We remove comments because anyway the quotes in there
1100# would cause problems or look ugly.
1101# WARNING: Be sure not to use single quotes in there, as some shells,
1102# such as our DU 5.0 friend, will then `close' the trap.
1103trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1105 {
1106 echo
1107
1108 cat <<\_ASBOX
1109## ---------------- ##
1110## Cache variables. ##
1111## ---------------- ##
1112_ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1115{
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 ;;
1123 *)
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 ;;
1127 esac;
1128}
1129 echo
1130
1131 cat <<\_ASBOX
1132## ----------------- ##
1133## Output variables. ##
1134## ----------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146## ------------- ##
1147## Output files. ##
1148## ------------- ##
1149_ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157 fi
1158
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161## ----------- ##
1162## confdefs.h. ##
1163## ----------- ##
1164_ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1168 fi
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1176 ' 0
1177for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179done
1180ac_signal=0
1181
1182# confdefs.h avoids OS command line length limits that DEFS can exceed.
1183rm -rf conftest* confdefs.h
1184# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185echo >confdefs.h
1186
1187# Predefined preprocessor variables.
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_NAME "$PACKAGE_NAME"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_VERSION "$PACKAGE_VERSION"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_STRING "$PACKAGE_STRING"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211_ACEOF
1212
1213
1214# Let the site file select an alternate cache file if it wants to.
1215# Prefer explicitly selected file to automatically selected ones.
1216if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 fi
1222fi
1223for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1229 fi
1230done
1231
1232if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1242 fi
1243else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1247fi
1248
1249# Check that the precious variables saved in the cache have kept the same
1250# value.
1251ac_cache_corrupted=false
1252for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1268 *)
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1290 fi
1291done
1292if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1298fi
1299
1300ac_ext=c
1301ac_cpp='$CPP $CPPFLAGS'
1302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326ac_aux_dir=
1327for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1328 if test -f $ac_dir/install-sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install-sh -c"
1331 break
1332 elif test -f $ac_dir/install.sh; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/install.sh -c"
1335 break
1336 elif test -f $ac_dir/shtool; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/shtool install -c"
1339 break
1340 fi
1341done
1342if test -z "$ac_aux_dir"; then
1343 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1344echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1345 { (exit 1); exit 1; }; }
1346fi
1347ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1348ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1349ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350
1351# Make sure we can run config.sub.
1352$ac_config_sub sun4 >/dev/null 2>&1 ||
1353 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355 { (exit 1); exit 1; }; }
1356
1357echo "$as_me:$LINENO: checking build system type" >&5
1358echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359if test "${ac_cv_build+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361else
1362 ac_cv_build_alias=$build_alias
1363test -z "$ac_cv_build_alias" &&
1364 ac_cv_build_alias=`$ac_config_guess`
1365test -z "$ac_cv_build_alias" &&
1366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368 { (exit 1); exit 1; }; }
1369ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372 { (exit 1); exit 1; }; }
1373
1374fi
1375echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376echo "${ECHO_T}$ac_cv_build" >&6
1377build=$ac_cv_build
1378build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
1382
1383echo "$as_me:$LINENO: checking host system type" >&5
1384echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385if test "${ac_cv_host+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1387else
1388 ac_cv_host_alias=$host_alias
1389test -z "$ac_cv_host_alias" &&
1390 ac_cv_host_alias=$ac_cv_build_alias
1391ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1395
1396fi
1397echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398echo "${ECHO_T}$ac_cv_host" >&6
1399host=$ac_cv_host
1400host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405echo "$as_me:$LINENO: checking target system type" >&5
1406echo $ECHO_N "checking target system type... $ECHO_C" >&6
1407if test "${ac_cv_target+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410 ac_cv_target_alias=$target_alias
1411test "x$ac_cv_target_alias" = "x" &&
1412 ac_cv_target_alias=$ac_cv_host_alias
1413ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1415echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1417
1418fi
1419echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1420echo "${ECHO_T}$ac_cv_target" >&6
1421target=$ac_cv_target
1422target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427# The aliases save the names the user supplied, while $host etc.
1428# will get canonicalized.
1429test -n "$target_alias" &&
1430 test "$program_prefix$program_suffix$program_transform_name" = \
1431 NONENONEs,x,x, &&
1432 program_prefix=${target_alias}-
1433ac_ext=c
1434ac_cpp='$CPP $CPPFLAGS'
1435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437ac_compiler_gnu=$ac_cv_c_compiler_gnu
1438if test -n "$ac_tool_prefix"; then
1439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1440set dummy ${ac_tool_prefix}gcc; ac_word=$2
1441echo "$as_me:$LINENO: checking for $ac_word" >&5
1442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443if test "${ac_cv_prog_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445else
1446 if test -n "$CC"; then
1447 ac_cv_prog_CC="$CC" # Let the user override the test.
1448else
1449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450for as_dir in $PATH
1451do
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1459 fi
1460done
1461done
1462
1463fi
1464fi
1465CC=$ac_cv_prog_CC
1466if test -n "$CC"; then
1467 echo "$as_me:$LINENO: result: $CC" >&5
1468echo "${ECHO_T}$CC" >&6
1469else
1470 echo "$as_me:$LINENO: result: no" >&5
1471echo "${ECHO_T}no" >&6
1472fi
1473
1474fi
1475if test -z "$ac_cv_prog_CC"; then
1476 ac_ct_CC=$CC
1477 # Extract the first word of "gcc", so it can be a program name with args.
1478set dummy gcc; ac_word=$2
1479echo "$as_me:$LINENO: checking for $ac_word" >&5
1480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483else
1484 if test -n "$ac_ct_CC"; then
1485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1486else
1487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488for as_dir in $PATH
1489do
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_ac_ct_CC="gcc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1497 fi
1498done
1499done
1500
1501fi
1502fi
1503ac_ct_CC=$ac_cv_prog_ac_ct_CC
1504if test -n "$ac_ct_CC"; then
1505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1506echo "${ECHO_T}$ac_ct_CC" >&6
1507else
1508 echo "$as_me:$LINENO: result: no" >&5
1509echo "${ECHO_T}no" >&6
1510fi
1511
1512 CC=$ac_ct_CC
1513else
1514 CC="$ac_cv_prog_CC"
1515fi
1516
1517if test -z "$CC"; then
1518 if test -n "$ac_tool_prefix"; then
1519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1520set dummy ${ac_tool_prefix}cc; ac_word=$2
1521echo "$as_me:$LINENO: checking for $ac_word" >&5
1522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523if test "${ac_cv_prog_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526 if test -n "$CC"; then
1527 ac_cv_prog_CC="$CC" # Let the user override the test.
1528else
1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530for as_dir in $PATH
1531do
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_CC="${ac_tool_prefix}cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1539 fi
1540done
1541done
1542
1543fi
1544fi
1545CC=$ac_cv_prog_CC
1546if test -n "$CC"; then
1547 echo "$as_me:$LINENO: result: $CC" >&5
1548echo "${ECHO_T}$CC" >&6
1549else
1550 echo "$as_me:$LINENO: result: no" >&5
1551echo "${ECHO_T}no" >&6
1552fi
1553
1554fi
1555if test -z "$ac_cv_prog_CC"; then
1556 ac_ct_CC=$CC
1557 # Extract the first word of "cc", so it can be a program name with args.
1558set dummy cc; ac_word=$2
1559echo "$as_me:$LINENO: checking for $ac_word" >&5
1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 if test -n "$ac_ct_CC"; then
1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566else
1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568for as_dir in $PATH
1569do
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_ac_ct_CC="cc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1577 fi
1578done
1579done
1580
1581fi
1582fi
1583ac_ct_CC=$ac_cv_prog_ac_ct_CC
1584if test -n "$ac_ct_CC"; then
1585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1586echo "${ECHO_T}$ac_ct_CC" >&6
1587else
1588 echo "$as_me:$LINENO: result: no" >&5
1589echo "${ECHO_T}no" >&6
1590fi
1591
1592 CC=$ac_ct_CC
1593else
1594 CC="$ac_cv_prog_CC"
1595fi
1596
1597fi
1598if test -z "$CC"; then
1599 # Extract the first word of "cc", so it can be a program name with args.
1600set dummy cc; ac_word=$2
1601echo "$as_me:$LINENO: checking for $ac_word" >&5
1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608else
1609 ac_prog_rejected=no
1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1618 ac_prog_rejected=yes
1619 continue
1620 fi
1621 ac_cv_prog_CC="cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625done
1626done
1627
1628if test $ac_prog_rejected = yes; then
1629 # We found a bogon in the path, so make sure we never use it.
1630 set dummy $ac_cv_prog_CC
1631 shift
1632 if test $# != 0; then
1633 # We chose a different compiler from the bogus one.
1634 # However, it has the same basename, so the bogon will be chosen
1635 # first if we set CC to just the basename; use the full file name.
1636 shift
1637 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1638 fi
1639fi
1640fi
1641fi
1642CC=$ac_cv_prog_CC
1643if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645echo "${ECHO_T}$CC" >&6
1646else
1647 echo "$as_me:$LINENO: result: no" >&5
1648echo "${ECHO_T}no" >&6
1649fi
1650
1651fi
1652if test -z "$CC"; then
1653 if test -n "$ac_tool_prefix"; then
1654 for ac_prog in cl
1655 do
1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658echo "$as_me:$LINENO: checking for $ac_word" >&5
1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1665else
1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667for as_dir in $PATH
1668do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 break 2
1676 fi
1677done
1678done
1679
1680fi
1681fi
1682CC=$ac_cv_prog_CC
1683if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685echo "${ECHO_T}$CC" >&6
1686else
1687 echo "$as_me:$LINENO: result: no" >&5
1688echo "${ECHO_T}no" >&6
1689fi
1690
1691 test -n "$CC" && break
1692 done
1693fi
1694if test -z "$CC"; then
1695 ac_ct_CC=$CC
1696 for ac_prog in cl
1697do
1698 # Extract the first word of "$ac_prog", so it can be a program name with args.
1699set dummy $ac_prog; ac_word=$2
1700echo "$as_me:$LINENO: checking for $ac_word" >&5
1701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1707else
1708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709for as_dir in $PATH
1710do
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="$ac_prog"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 break 2
1718 fi
1719done
1720done
1721
1722fi
1723fi
1724ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727echo "${ECHO_T}$ac_ct_CC" >&6
1728else
1729 echo "$as_me:$LINENO: result: no" >&5
1730echo "${ECHO_T}no" >&6
1731fi
1732
1733 test -n "$ac_ct_CC" && break
1734done
1735
1736 CC=$ac_ct_CC
1737fi
1738
1739fi
1740
1741
1742test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1743See \`config.log' for more details." >&5
1744echo "$as_me: error: no acceptable C compiler found in \$PATH
1745See \`config.log' for more details." >&2;}
1746 { (exit 1); exit 1; }; }
1747
1748# Provide some information about the compiler.
1749echo "$as_me:$LINENO:" \
1750 "checking for C compiler version" >&5
1751ac_compiler=`set X $ac_compile; echo $2`
1752{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 ac_status=$?
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }
1767
1768cat >conftest.$ac_ext <<_ACEOF
1769/* confdefs.h. */
1770_ACEOF
1771cat confdefs.h >>conftest.$ac_ext
1772cat >>conftest.$ac_ext <<_ACEOF
1773/* end confdefs.h. */
1774
1775int
1776main ()
1777{
1778
1779 ;
1780 return 0;
1781}
1782_ACEOF
1783ac_clean_files_save=$ac_clean_files
1784ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785# Try to create an executable without -o first, disregard a.out.
1786# It will help us diagnose broken compilers, and finding out an intuition
1787# of exeext.
1788echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1789echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1790ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798# resort.
1799
1800# Be careful to initialize this variable, since it used to be cached.
1801# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802ac_cv_exeext=
1803# b.out is created by i960 compilers.
1804for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1805do
1806 test -f "$ac_file" || continue
1807 case $ac_file in
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 ;;
1810 conftest.$ac_ext )
1811 # This is the source file.
1812 ;;
1813 [ab].out )
1814 # We found the default executable, but exeext='' is most
1815 # certainly right.
1816 break;;
1817 *.* )
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1822 export ac_cv_exeext
1823 break;;
1824 * )
1825 break;;
1826 esac
1827done
1828else
1829 echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1833See \`config.log' for more details." >&5
1834echo "$as_me: error: C compiler cannot create executables
1835See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1837fi
1838
1839ac_exeext=$ac_cv_exeext
1840echo "$as_me:$LINENO: result: $ac_file" >&5
1841echo "${ECHO_T}$ac_file" >&6
1842
1843# Check the compiler produces executables we can run. If not, either
1844# the compiler is broken, or we cross compile.
1845echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1846echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1847# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848# If not cross compiling, check that we can run a simple program.
1849if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 (eval $ac_try) 2>&5
1853 ac_status=$?
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1856 cross_compiling=no
1857 else
1858 if test "$cross_compiling" = maybe; then
1859 cross_compiling=yes
1860 else
1861 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1862If you meant to cross compile, use \`--host'.
1863See \`config.log' for more details." >&5
1864echo "$as_me: error: cannot run C compiled programs.
1865If you meant to cross compile, use \`--host'.
1866See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1868 fi
1869 fi
1870fi
1871echo "$as_me:$LINENO: result: yes" >&5
1872echo "${ECHO_T}yes" >&6
1873
1874rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875ac_clean_files=$ac_clean_files_save
1876# Check the compiler produces executables we can run. If not, either
1877# the compiler is broken, or we cross compile.
1878echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881echo "${ECHO_T}$cross_compiling" >&6
1882
1883echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892# work properly (i.e., refer to `conftest.exe'), while it won't with
1893# `rm'.
1894for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
1896 case $ac_file in
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 export ac_cv_exeext
1900 break;;
1901 * ) break;;
1902 esac
1903done
1904else
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906See \`config.log' for more details." >&5
1907echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1910fi
1911
1912rm -f conftest$ac_cv_exeext
1913echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914echo "${ECHO_T}$ac_cv_exeext" >&6
1915
1916rm -f conftest.$ac_ext
1917EXEEXT=$ac_cv_exeext
1918ac_exeext=$EXEEXT
1919echo "$as_me:$LINENO: checking for suffix of object files" >&5
1920echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1921if test "${ac_cv_objext+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 cat >conftest.$ac_ext <<_ACEOF
1925/* confdefs.h. */
1926_ACEOF
1927cat confdefs.h >>conftest.$ac_ext
1928cat >>conftest.$ac_ext <<_ACEOF
1929/* end confdefs.h. */
1930
1931int
1932main ()
1933{
1934
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939rm -f conftest.o conftest.obj
1940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1946 case $ac_file in
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949 break;;
1950 esac
1951done
1952else
1953 echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
1956{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1957See \`config.log' for more details." >&5
1958echo "$as_me: error: cannot compute suffix of object files: cannot compile
1959See \`config.log' for more details." >&2;}
1960 { (exit 1); exit 1; }; }
1961fi
1962
1963rm -f conftest.$ac_cv_objext conftest.$ac_ext
1964fi
1965echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1966echo "${ECHO_T}$ac_cv_objext" >&6
1967OBJEXT=$ac_cv_objext
1968ac_objext=$OBJEXT
1969echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1970echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1971if test "${ac_cv_c_compiler_gnu+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973else
1974 cat >conftest.$ac_ext <<_ACEOF
1975/* confdefs.h. */
1976_ACEOF
1977cat confdefs.h >>conftest.$ac_ext
1978cat >>conftest.$ac_ext <<_ACEOF
1979/* end confdefs.h. */
1980
1981int
1982main ()
1983{
1984#ifndef __GNUC__
1985 choke me
1986#endif
1987
1988 ;
1989 return 0;
1990}
1991_ACEOF
1992rm -f conftest.$ac_objext
1993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>conftest.er1
1995 ac_status=$?
1996 grep -v '^ *+' conftest.er1 >conftest.err
1997 rm -f conftest.er1
1998 cat conftest.err >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); } &&
49c96104
SE
2001 { ac_try='test -z "$ac_c_werror_flag"
2002 || test ! -s conftest.err'
5464f5a1
NN
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 ac_compiler_gnu=yes
2015else
2016 echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
2018
2019ac_compiler_gnu=no
2020fi
2021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022ac_cv_c_compiler_gnu=$ac_compiler_gnu
2023
2024fi
2025echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2026echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2027GCC=`test $ac_compiler_gnu = yes && echo yes`
2028ac_test_CFLAGS=${CFLAGS+set}
2029ac_save_CFLAGS=$CFLAGS
2030CFLAGS="-g"
2031echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2032echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2033if test "${ac_cv_prog_cc_g+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035else
2036 cat >conftest.$ac_ext <<_ACEOF
2037/* confdefs.h. */
2038_ACEOF
2039cat confdefs.h >>conftest.$ac_ext
2040cat >>conftest.$ac_ext <<_ACEOF
2041/* end confdefs.h. */
2042
2043int
2044main ()
2045{
2046
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051rm -f conftest.$ac_objext
2052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>conftest.er1
2054 ac_status=$?
2055 grep -v '^ *+' conftest.er1 >conftest.err
2056 rm -f conftest.er1
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
49c96104
SE
2060 { ac_try='test -z "$ac_c_werror_flag"
2061 || test ! -s conftest.err'
5464f5a1
NN
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 (eval $ac_try) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2073 ac_cv_prog_cc_g=yes
2074else
2075 echo "$as_me: failed program was:" >&5
2076sed 's/^/| /' conftest.$ac_ext >&5
2077
2078ac_cv_prog_cc_g=no
2079fi
2080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2081fi
2082echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2083echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2084if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS=$ac_save_CFLAGS
2086elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2088 CFLAGS="-g -O2"
2089 else
2090 CFLAGS="-g"
2091 fi
2092else
2093 if test "$GCC" = yes; then
2094 CFLAGS="-O2"
2095 else
2096 CFLAGS=
2097 fi
2098fi
2099echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2100echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2101if test "${ac_cv_prog_cc_stdc+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104 ac_cv_prog_cc_stdc=no
2105ac_save_CC=$CC
2106cat >conftest.$ac_ext <<_ACEOF
2107/* confdefs.h. */
2108_ACEOF
2109cat confdefs.h >>conftest.$ac_ext
2110cat >>conftest.$ac_ext <<_ACEOF
2111/* end confdefs.h. */
2112#include <stdarg.h>
2113#include <stdio.h>
2114#include <sys/types.h>
2115#include <sys/stat.h>
2116/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2117struct buf { int x; };
2118FILE * (*rcsopen) (struct buf *, struct stat *, int);
2119static char *e (p, i)
2120 char **p;
2121 int i;
2122{
2123 return p[i];
2124}
2125static char *f (char * (*g) (char **, int), char **p, ...)
2126{
2127 char *s;
2128 va_list v;
2129 va_start (v,p);
2130 s = g (p, va_arg (v,int));
2131 va_end (v);
2132 return s;
2133}
2134
2135/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2136 function prototypes and stuff, but not '\xHH' hex character constants.
2137 These don't provoke an error unfortunately, instead are silently treated
2138 as 'x'. The following induces an error, until -std1 is added to get
2139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2140 array size at least. It's necessary to write '\x00'==0 to get something
2141 that's true only with -std1. */
2142int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2143
2144int test (int i, double x);
2145struct s1 {int (*f) (int a);};
2146struct s2 {int (*f) (double a);};
2147int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2148int argc;
2149char **argv;
2150int
2151main ()
2152{
2153return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 ;
2155 return 0;
2156}
2157_ACEOF
2158# Don't try gcc -ansi; that turns off useful extensions and
2159# breaks some systems' header files.
2160# AIX -qlanglvl=ansi
2161# Ultrix and OSF/1 -std1
2162# HP-UX 10.20 and later -Ae
2163# HP-UX older versions -Aa -D_HPUX_SOURCE
2164# SVR4 -Xc -D__EXTENSIONS__
2165for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166do
2167 CC="$ac_save_CC $ac_arg"
2168 rm -f conftest.$ac_objext
2169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
49c96104
SE
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
5464f5a1
NN
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2191break
2192else
2193 echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196fi
2197rm -f conftest.err conftest.$ac_objext
2198done
2199rm -f conftest.$ac_ext conftest.$ac_objext
2200CC=$ac_save_CC
2201
2202fi
2203
2204case "x$ac_cv_prog_cc_stdc" in
2205 x|xno)
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207echo "${ECHO_T}none needed" >&6 ;;
2208 *)
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2212esac
2213
2214# Some people use a C++ compiler to compile C. Since we use `exit',
2215# in C++ we need to declare it. In case someone uses the same compiler
2216# for both compiling C and C++ we need to have the C++ compiler decide
2217# the declaration of exit, since it's the most demanding environment.
2218cat >conftest.$ac_ext <<_ACEOF
2219#ifndef __cplusplus
2220 choke me
2221#endif
2222_ACEOF
2223rm -f conftest.$ac_objext
2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
49c96104
SE
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
5464f5a1
NN
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 for ac_declaration in \
2246 '' \
2247 'extern "C" void std::exit (int) throw (); using std::exit;' \
2248 'extern "C" void std::exit (int); using std::exit;' \
2249 'extern "C" void exit (int) throw ();' \
2250 'extern "C" void exit (int);' \
2251 'void exit (int);'
2252do
2253 cat >conftest.$ac_ext <<_ACEOF
2254/* confdefs.h. */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h. */
2259$ac_declaration
2260#include <stdlib.h>
2261int
2262main ()
2263{
2264exit (42);
2265 ;
2266 return 0;
2267}
2268_ACEOF
2269rm -f conftest.$ac_objext
2270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2272 ac_status=$?
2273 grep -v '^ *+' conftest.er1 >conftest.err
2274 rm -f conftest.er1
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
49c96104
SE
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
5464f5a1
NN
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 :
2292else
2293 echo "$as_me: failed program was:" >&5
2294sed 's/^/| /' conftest.$ac_ext >&5
2295
2296continue
2297fi
2298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 cat >conftest.$ac_ext <<_ACEOF
2300/* confdefs.h. */
2301_ACEOF
2302cat confdefs.h >>conftest.$ac_ext
2303cat >>conftest.$ac_ext <<_ACEOF
2304/* end confdefs.h. */
2305$ac_declaration
2306int
2307main ()
2308{
2309exit (42);
2310 ;
2311 return 0;
2312}
2313_ACEOF
2314rm -f conftest.$ac_objext
2315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>conftest.er1
2317 ac_status=$?
2318 grep -v '^ *+' conftest.er1 >conftest.err
2319 rm -f conftest.er1
2320 cat conftest.err >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
49c96104
SE
2323 { ac_try='test -z "$ac_c_werror_flag"
2324 || test ! -s conftest.err'
5464f5a1
NN
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; } &&
2330 { ac_try='test -s conftest.$ac_objext'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2336 break
2337else
2338 echo "$as_me: failed program was:" >&5
2339sed 's/^/| /' conftest.$ac_ext >&5
2340
2341fi
2342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343done
2344rm -f conftest*
2345if test -n "$ac_declaration"; then
2346 echo '#ifdef __cplusplus' >>confdefs.h
2347 echo $ac_declaration >>confdefs.h
2348 echo '#endif' >>confdefs.h
2349fi
2350
2351else
2352 echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355fi
2356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357ac_ext=c
2358ac_cpp='$CPP $CPPFLAGS'
2359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
f5385ebf
AM
2364echo "$as_me:$LINENO: checking for library containing strerror" >&5
2365echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2366if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
f5385ebf
AM
2369 ac_func_search_save_LIBS=$LIBS
2370ac_cv_search_strerror=no
5464f5a1
NN
2371cat >conftest.$ac_ext <<_ACEOF
2372/* confdefs.h. */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h. */
2377
2378/* Override any gcc2 internal prototype to avoid an error. */
2379#ifdef __cplusplus
2380extern "C"
2381#endif
2382/* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2384char strerror ();
2385int
2386main ()
2387{
2388strerror ();
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext conftest$ac_exeext
2394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395 (eval $ac_link) 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
49c96104
SE
2402 { ac_try='test -z "$ac_c_werror_flag"
2403 || test ! -s conftest.err'
5464f5a1
NN
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest$ac_exeext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
f5385ebf 2415 ac_cv_search_strerror="none required"
5464f5a1
NN
2416else
2417 echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
5464f5a1
NN
2420fi
2421rm -f conftest.err conftest.$ac_objext \
2422 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2423if test "$ac_cv_search_strerror" = no; then
2424 for ac_lib in cposix; do
2425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h. */
2432
2433/* Override any gcc2 internal prototype to avoid an error. */
2434#ifdef __cplusplus
2435extern "C"
2436#endif
2437/* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439char strerror ();
2440int
2441main ()
2442{
2443strerror ();
2444 ;
2445 return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext conftest$ac_exeext
2449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450 (eval $ac_link) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
49c96104
SE
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
f5385ebf
AM
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest$ac_exeext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_search_strerror="-l$ac_lib"
2471break
2472else
2473 echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
5464f5a1 2476fi
f5385ebf
AM
2477rm -f conftest.err conftest.$ac_objext \
2478 conftest$ac_exeext conftest.$ac_ext
2479 done
5464f5a1 2480fi
f5385ebf
AM
2481LIBS=$ac_func_search_save_LIBS
2482fi
2483echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2484echo "${ECHO_T}$ac_cv_search_strerror" >&6
2485if test "$ac_cv_search_strerror" != no; then
2486 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2487
f5385ebf 2488fi
5464f5a1
NN
2489
2490
f5385ebf 2491am__api_version="1.9"
5464f5a1
NN
2492# Find a good install program. We prefer a C program (faster),
2493# so one script is as good as another. But avoid the broken or
2494# incompatible versions:
2495# SysV /etc/install, /usr/sbin/install
2496# SunOS /usr/etc/install
2497# IRIX /sbin/install
2498# AIX /bin/install
2499# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2500# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2503# OS/2's system install, which has a completely different semantic
252b5132 2504# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2505echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2506echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2507if test -z "$INSTALL"; then
5464f5a1
NN
2508if test "${ac_cv_path_install+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2510else
5464f5a1
NN
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 # Account for people who put trailing slashes in PATH elements.
2517case $as_dir/ in
2518 ./ | .// | /cC/* | \
2519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2521 /usr/ucb/* ) ;;
2522 *)
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2525 # by default.
2526 for ac_prog in ginstall scoinst install; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2529 if test $ac_prog = install &&
5464f5a1 2530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2531 # AIX install. It has an incompatible calling convention.
2532 :
5464f5a1
NN
2533 elif test $ac_prog = install &&
2534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # program-specific install script used by HP pwplus--don't use.
2536 :
252b5132 2537 else
5464f5a1
NN
2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 break 3
252b5132
RH
2540 fi
2541 fi
2542 done
5464f5a1
NN
2543 done
2544 ;;
2545esac
2546done
2547
252b5132
RH
2548
2549fi
2550 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2551 INSTALL=$ac_cv_path_install
252b5132
RH
2552 else
2553 # As a last resort, use the slow shell script. We don't cache a
2554 # path for INSTALL within a source directory, because that will
2555 # break other packages using the cache if that directory is
2556 # removed, or if the path is relative.
5464f5a1 2557 INSTALL=$ac_install_sh
252b5132
RH
2558 fi
2559fi
5464f5a1
NN
2560echo "$as_me:$LINENO: result: $INSTALL" >&5
2561echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2562
2563# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564# It thinks the first close brace ends the variable substitution.
2565test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566
5464f5a1 2567test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2568
2569test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570
5464f5a1
NN
2571echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2572echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2573# Just in case
2574sleep 1
f5385ebf 2575echo timestamp > conftest.file
252b5132
RH
2576# Do `set' in a subshell so we don't clobber the current shell's
2577# arguments. Must try -L first in case configure is actually a
2578# symlink; some systems play weird games with the mod time of symlinks
2579# (eg FreeBSD returns the mod time of the symlink's containing
2580# directory).
2581if (
f5385ebf 2582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2583 if test "$*" = "X"; then
2584 # -L didn't work.
f5385ebf 2585 set X `ls -t $srcdir/configure conftest.file`
252b5132 2586 fi
f5385ebf
AM
2587 rm -f conftest.file
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2590
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2596alias in your environment" >&5
2597echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2598alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
252b5132
RH
2600 fi
2601
f5385ebf 2602 test "$2" = conftest.file
252b5132
RH
2603 )
2604then
2605 # Ok.
2606 :
2607else
5464f5a1
NN
2608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609Check your system clock" >&5
2610echo "$as_me: error: newly created file is older than distributed files!
2611Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
252b5132 2613fi
5464f5a1
NN
2614echo "$as_me:$LINENO: result: yes" >&5
2615echo "${ECHO_T}yes" >&6
252b5132 2616test "$program_prefix" != NONE &&
5464f5a1 2617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2618# Use a double $ so make ignores it.
2619test "$program_suffix" != NONE &&
5464f5a1
NN
2620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2621# Double any \ or $. echo might interpret backslashes.
2622# By default was `s,x,x', remove it if useless.
2623cat <<\_ACEOF >conftest.sed
2624s/[\\$]/&&/g;s/;s,x,x,$//
2625_ACEOF
2626program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2627rm conftest.sed
2628
f5385ebf
AM
2629# expand $ac_aux_dir to an absolute path
2630am_aux_dir=`cd $ac_aux_dir && pwd`
2631
2632test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2633# Use eval to expand $SHELL
2634if eval "$MISSING --run true"; then
2635 am_missing_run="$MISSING --run "
2636else
2637 am_missing_run=
2638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2639echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640fi
2641
2642if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2643 # We used to keeping the `.' as first argument, in order to
2644 # allow $(mkdir_p) to be used without argument. As in
2645 # $(mkdir_p) $(somedir)
2646 # where $(somedir) is conditionally defined. However this is wrong
2647 # for two reasons:
2648 # 1. if the package is installed by a user who cannot write `.'
2649 # make install will fail,
2650 # 2. the above comment should most certainly read
2651 # $(mkdir_p) $(DESTDIR)$(somedir)
2652 # so it does not work when $(somedir) is undefined and
2653 # $(DESTDIR) is not.
2654 # To support the latter case, we have to write
2655 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2656 # so the `.' trick is pointless.
2657 mkdir_p='mkdir -p --'
2658else
2659 # On NextStep and OpenStep, the `mkdir' command does not
2660 # recognize any option. It will interpret all options as
2661 # directories to create, and then abort because `.' already
2662 # exists.
2663 for d in ./-p ./--version;
2664 do
2665 test -d $d && rmdir $d
2666 done
2667 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2668 if test -f "$ac_aux_dir/mkinstalldirs"; then
2669 mkdir_p='$(mkinstalldirs)'
2670 else
2671 mkdir_p='$(install_sh) -d'
2672 fi
2673fi
2674
2675for ac_prog in gawk mawk nawk awk
2676do
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678set dummy $ac_prog; ac_word=$2
2679echo "$as_me:$LINENO: checking for $ac_word" >&5
2680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681if test "${ac_cv_prog_AWK+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683else
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_AWK="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698done
2699done
2700
2701fi
2702fi
2703AWK=$ac_cv_prog_AWK
2704if test -n "$AWK"; then
2705 echo "$as_me:$LINENO: result: $AWK" >&5
2706echo "${ECHO_T}$AWK" >&6
2707else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710fi
2711
2712 test -n "$AWK" && break
2713done
2714
5464f5a1
NN
2715echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2717set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2718if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720else
2721 cat >conftest.make <<\_ACEOF
252b5132 2722all:
5464f5a1
NN
2723 @echo 'ac_maketemp="$(MAKE)"'
2724_ACEOF
252b5132 2725# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2726eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2727if test -n "$ac_maketemp"; then
2728 eval ac_cv_prog_make_${ac_make}_set=yes
2729else
2730 eval ac_cv_prog_make_${ac_make}_set=no
2731fi
5464f5a1 2732rm -f conftest.make
252b5132
RH
2733fi
2734if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2735 echo "$as_me:$LINENO: result: yes" >&5
2736echo "${ECHO_T}yes" >&6
252b5132
RH
2737 SET_MAKE=
2738else
5464f5a1
NN
2739 echo "$as_me:$LINENO: result: no" >&5
2740echo "${ECHO_T}no" >&6
252b5132
RH
2741 SET_MAKE="MAKE=${MAKE-make}"
2742fi
2743
f5385ebf
AM
2744rm -rf .tst 2>/dev/null
2745mkdir .tst 2>/dev/null
2746if test -d .tst; then
2747 am__leading_dot=.
2748else
2749 am__leading_dot=_
2750fi
2751rmdir .tst 2>/dev/null
2752
2753DEPDIR="${am__leading_dot}deps"
2754
2755 ac_config_commands="$ac_config_commands depfiles"
2756
2757
2758am_make=${MAKE-make}
2759cat > confinc << 'END'
2760am__doit:
2761 @echo done
2762.PHONY: am__doit
2763END
2764# If we don't find an include directive, just comment out the code.
2765echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2766echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2767am__include="#"
2768am__quote=
2769_am_result=none
2770# First try GNU make style include.
2771echo "include confinc" > confmf
2772# We grep out `Entering directory' and `Leaving directory'
2773# messages which can occur if `w' ends up in MAKEFLAGS.
2774# In particular we don't look at `^make:' because GNU make might
2775# be invoked under some other name (usually "gmake"), in which
2776# case it prints its new name instead of `make'.
2777if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2778 am__include=include
2779 am__quote=
2780 _am_result=GNU
2781fi
2782# Now try BSD make style include.
2783if test "$am__include" = "#"; then
2784 echo '.include "confinc"' > confmf
2785 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2786 am__include=.include
2787 am__quote="\""
2788 _am_result=BSD
2789 fi
2790fi
2791
2792
2793echo "$as_me:$LINENO: result: $_am_result" >&5
2794echo "${ECHO_T}$_am_result" >&6
2795rm -f confinc confmf
2796
2797# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2798if test "${enable_dependency_tracking+set}" = set; then
2799 enableval="$enable_dependency_tracking"
2800
2801fi;
2802if test "x$enable_dependency_tracking" != xno; then
2803 am_depcomp="$ac_aux_dir/depcomp"
2804 AMDEPBACKSLASH='\'
2805fi
2806
2807
2808if test "x$enable_dependency_tracking" != xno; then
2809 AMDEP_TRUE=
2810 AMDEP_FALSE='#'
2811else
2812 AMDEP_TRUE='#'
2813 AMDEP_FALSE=
2814fi
6be7c12c 2815
252b5132 2816
252b5132 2817
f5385ebf
AM
2818# test to see if srcdir already configured
2819if test "`cd $srcdir && pwd`" != "`pwd`" &&
2820 test -f $srcdir/config.status; then
5464f5a1
NN
2821 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2822echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2823 { (exit 1); exit 1; }; }
252b5132 2824fi
5464f5a1 2825
f5385ebf
AM
2826# test whether we have cygpath
2827if test -z "$CYGPATH_W"; then
2828 if (cygpath --version) >/dev/null 2>/dev/null; then
2829 CYGPATH_W='cygpath -w'
2830 else
2831 CYGPATH_W=echo
2832 fi
2833fi
2834
2835
2836# Define the identity of the package.
2837 PACKAGE=bfd
ffdc4eed 2838 VERSION=2.17.50
f5385ebf
AM
2839
2840
5464f5a1 2841cat >>confdefs.h <<_ACEOF
252b5132 2842#define PACKAGE "$PACKAGE"
5464f5a1 2843_ACEOF
252b5132 2844
5464f5a1
NN
2845
2846cat >>confdefs.h <<_ACEOF
252b5132 2847#define VERSION "$VERSION"
5464f5a1 2848_ACEOF
252b5132 2849
f5385ebf
AM
2850# Some tools Automake needs.
2851
2852ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853
2854
2855AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856
2857
2858AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859
2860
2861AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862
2863
2864MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2865
f5385ebf 2866install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2867
f5385ebf
AM
2868# Installed binaries are usually stripped using `strip' when the user
2869# run `make install-strip'. However `strip' might not be the right
2870# tool to use in cross-compilation environments, therefore Automake
2871# will honor the `STRIP' environment variable to overrule this program.
2872if test "$cross_compiling" != no; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2875set dummy ${ac_tool_prefix}strip; ac_word=$2
2876echo "$as_me:$LINENO: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878if test "${ac_cv_prog_STRIP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 if test -n "$STRIP"; then
2882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2883else
f5385ebf
AM
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895done
2896done
2897
2898fi
2899fi
2900STRIP=$ac_cv_prog_STRIP
2901if test -n "$STRIP"; then
2902 echo "$as_me:$LINENO: result: $STRIP" >&5
2903echo "${ECHO_T}$STRIP" >&6
2904else
2905 echo "$as_me:$LINENO: result: no" >&5
2906echo "${ECHO_T}no" >&6
2907fi
2908
252b5132 2909fi
f5385ebf
AM
2910if test -z "$ac_cv_prog_STRIP"; then
2911 ac_ct_STRIP=$STRIP
2912 # Extract the first word of "strip", so it can be a program name with args.
2913set dummy strip; ac_word=$2
2914echo "$as_me:$LINENO: checking for $ac_word" >&5
2915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 if test -n "$ac_ct_STRIP"; then
2920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_STRIP="strip"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933done
2934done
252b5132 2935
f5385ebf
AM
2936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2937fi
2938fi
2939ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940if test -n "$ac_ct_STRIP"; then
2941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2942echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2943else
f5385ebf
AM
2944 echo "$as_me:$LINENO: result: no" >&5
2945echo "${ECHO_T}no" >&6
252b5132
RH
2946fi
2947
f5385ebf 2948 STRIP=$ac_ct_STRIP
252b5132 2949else
f5385ebf
AM
2950 STRIP="$ac_cv_prog_STRIP"
2951fi
2952
252b5132 2953fi
f5385ebf
AM
2954INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2955
2956# We need awk for the "check" target. The system "awk" is bad on
2957# some platforms.
2958# Always define AMTAR for backward compatibility.
2959
2960AMTAR=${AMTAR-"${am_missing_run}tar"}
2961
2962am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2963
252b5132 2964
f5385ebf
AM
2965
2966
2967depcc="$CC" am_compiler_list=
2968
2969echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2970echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2971if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2973else
f5385ebf
AM
2974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2975 # We make a subdir and do the tests there. Otherwise we can end up
2976 # making bogus files that we don't know about and never remove. For
2977 # instance it was reported that on HP-UX the gcc test will end up
2978 # making a dummy file named `D' -- because `-MD' means `put the output
2979 # in D'.
2980 mkdir conftest.dir
2981 # Copy depcomp to subdir because otherwise we won't find it if we're
2982 # using a relative directory.
2983 cp "$am_depcomp" conftest.dir
2984 cd conftest.dir
2985 # We will build objects and dependencies in a subdirectory because
2986 # it helps to detect inapplicable dependency modes. For instance
2987 # both Tru64's cc and ICC support -MD to output dependencies as a
2988 # side effect of compilation, but ICC will put the dependencies in
2989 # the current directory while Tru64 will put them in the object
2990 # directory.
2991 mkdir sub
2992
2993 am_cv_CC_dependencies_compiler_type=none
2994 if test "$am_compiler_list" = ""; then
2995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2996 fi
2997 for depmode in $am_compiler_list; do
2998 # Setup a source with many dependencies, because some compilers
2999 # like to wrap large dependency lists on column 80 (with \), and
3000 # we should not choose a depcomp mode which is confused by this.
3001 #
3002 # We need to recreate these files for each test, as the compiler may
3003 # overwrite some of them when testing with obscure command lines.
3004 # This happens at least with the AIX C compiler.
3005 : > sub/conftest.c
3006 for i in 1 2 3 4 5 6; do
3007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3009 # Solaris 8's {/usr,}/bin/sh.
3010 touch sub/conftst$i.h
3011 done
3012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3013
3014 case $depmode in
3015 nosideeffect)
3016 # after this tag, mechanisms are not by side-effect, so they'll
3017 # only be used when explicitly requested
3018 if test "x$enable_dependency_tracking" = xyes; then
3019 continue
3020 else
3021 break
3022 fi
3023 ;;
3024 none) break ;;
3025 esac
3026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3027 # mode. It turns out that the SunPro C++ compiler does not properly
3028 # handle `-M -o', and we need to detect this.
3029 if depmode=$depmode \
3030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3033 >/dev/null 2>conftest.err &&
3034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3037 # icc doesn't choke on unknown options, it will just issue warnings
3038 # or remarks (even with -Werror). So we grep stderr for any message
3039 # that says an option was ignored or not supported.
3040 # When given -MP, icc 7.0 and 7.1 complain thusly:
3041 # icc: Command line warning: ignoring option '-M'; no argument required
3042 # The diagnosis changed in icc 8.0:
3043 # icc: Command line remark: option '-MP' not supported
3044 if (grep 'ignoring option' conftest.err ||
3045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3046 am_cv_CC_dependencies_compiler_type=$depmode
3047 break
3048 fi
3049 fi
3050 done
3051
3052 cd ..
3053 rm -rf conftest.dir
3054else
3055 am_cv_CC_dependencies_compiler_type=none
3056fi
3057
252b5132 3058fi
f5385ebf
AM
3059echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3060echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3061CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3062
f5385ebf
AM
3063
3064
3065if
3066 test "x$enable_dependency_tracking" != xno \
3067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3068 am__fastdepCC_TRUE=
3069 am__fastdepCC_FALSE='#'
252b5132 3070else
f5385ebf
AM
3071 am__fastdepCC_TRUE='#'
3072 am__fastdepCC_FALSE=
252b5132
RH
3073fi
3074
6be7c12c 3075
e43d48cc 3076
f5385ebf 3077
5464f5a1
NN
3078if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3080set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3081echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3083if test "${ac_cv_prog_AR+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3085else
3086 if test -n "$AR"; then
3087 ac_cv_prog_AR="$AR" # Let the user override the test.
3088else
5464f5a1
NN
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_AR="${ac_tool_prefix}ar"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
3102
252b5132
RH
3103fi
3104fi
5464f5a1 3105AR=$ac_cv_prog_AR
252b5132 3106if test -n "$AR"; then
5464f5a1
NN
3107 echo "$as_me:$LINENO: result: $AR" >&5
3108echo "${ECHO_T}$AR" >&6
252b5132 3109else
5464f5a1
NN
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
3112fi
3113
252b5132 3114fi
5464f5a1
NN
3115if test -z "$ac_cv_prog_AR"; then
3116 ac_ct_AR=$AR
3117 # Extract the first word of "ar", so it can be a program name with args.
3118set dummy ar; ac_word=$2
3119echo "$as_me:$LINENO: checking for $ac_word" >&5
3120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124 if test -n "$ac_ct_AR"; then
3125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_AR="ar"
3135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138done
3139done
252b5132 3140
5464f5a1
NN
3141fi
3142fi
3143ac_ct_AR=$ac_cv_prog_ac_ct_AR
3144if test -n "$ac_ct_AR"; then
3145 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3146echo "${ECHO_T}$ac_ct_AR" >&6
3147else
3148 echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
3150fi
252b5132 3151
5464f5a1
NN
3152 AR=$ac_ct_AR
3153else
3154 AR="$ac_cv_prog_AR"
3155fi
6be7c12c 3156
5464f5a1
NN
3157if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3159set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3160echo "$as_me:$LINENO: checking for $ac_word" >&5
3161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162if test "${ac_cv_prog_RANLIB+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3164else
3165 if test -n "$RANLIB"; then
3166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3167else
5464f5a1
NN
3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179done
3180done
3181
252b5132
RH
3182fi
3183fi
5464f5a1 3184RANLIB=$ac_cv_prog_RANLIB
252b5132 3185if test -n "$RANLIB"; then
5464f5a1
NN
3186 echo "$as_me:$LINENO: result: $RANLIB" >&5
3187echo "${ECHO_T}$RANLIB" >&6
252b5132 3188else
5464f5a1
NN
3189 echo "$as_me:$LINENO: result: no" >&5
3190echo "${ECHO_T}no" >&6
252b5132
RH
3191fi
3192
5464f5a1 3193fi
252b5132 3194if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3195 ac_ct_RANLIB=$RANLIB
252b5132
RH
3196 # Extract the first word of "ranlib", so it can be a program name with args.
3197set dummy ranlib; ac_word=$2
5464f5a1
NN
3198echo "$as_me:$LINENO: checking for $ac_word" >&5
3199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3202else
5464f5a1
NN
3203 if test -n "$ac_ct_RANLIB"; then
3204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3205else
5464f5a1
NN
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_ac_ct_RANLIB="ranlib"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217done
3218done
3219
3220 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3221fi
3222fi
5464f5a1
NN
3223ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3224if test -n "$ac_ct_RANLIB"; then
3225 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3226echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3227else
5464f5a1
NN
3228 echo "$as_me:$LINENO: result: no" >&5
3229echo "${ECHO_T}no" >&6
252b5132
RH
3230fi
3231
5464f5a1 3232 RANLIB=$ac_ct_RANLIB
252b5132 3233else
5464f5a1 3234 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3235fi
3236
252b5132
RH
3237
3238# Check whether --enable-shared or --disable-shared was given.
3239if test "${enable_shared+set}" = set; then
3240 enableval="$enable_shared"
3241 p=${PACKAGE-default}
55c80943 3242case $enableval in
252b5132
RH
3243yes) enable_shared=yes ;;
3244no) enable_shared=no ;;
3245*)
3246 enable_shared=no
3247 # Look at the argument we got. We use all the common list separators.
3248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3249 for pkg in $enableval; do
3250 if test "X$pkg" = "X$p"; then
3251 enable_shared=yes
3252 fi
3253 done
3254 IFS="$ac_save_ifs"
3255 ;;
3256esac
3257else
3258 enable_shared=no
5464f5a1 3259fi;
252b5132
RH
3260
3261# Check whether --enable-static or --disable-static was given.
3262if test "${enable_static+set}" = set; then
3263 enableval="$enable_static"
3264 p=${PACKAGE-default}
55c80943 3265case $enableval in
252b5132
RH
3266yes) enable_static=yes ;;
3267no) enable_static=no ;;
3268*)
3269 enable_static=no
3270 # Look at the argument we got. We use all the common list separators.
3271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3272 for pkg in $enableval; do
3273 if test "X$pkg" = "X$p"; then
3274 enable_static=yes
3275 fi
3276 done
3277 IFS="$ac_save_ifs"
3278 ;;
3279esac
3280else
3281 enable_static=yes
5464f5a1 3282fi;
b2ef150d
ILT
3283# Check whether --enable-fast-install or --disable-fast-install was given.
3284if test "${enable_fast_install+set}" = set; then
3285 enableval="$enable_fast_install"
3286 p=${PACKAGE-default}
55c80943 3287case $enableval in
b2ef150d
ILT
3288yes) enable_fast_install=yes ;;
3289no) enable_fast_install=no ;;
3290*)
3291 enable_fast_install=no
3292 # Look at the argument we got. We use all the common list separators.
3293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3294 for pkg in $enableval; do
3295 if test "X$pkg" = "X$p"; then
3296 enable_fast_install=yes
3297 fi
3298 done
3299 IFS="$ac_save_ifs"
3300 ;;
3301esac
3302else
3303 enable_fast_install=yes
5464f5a1 3304fi;
c5d1701e 3305
252b5132
RH
3306# Check whether --with-gnu-ld or --without-gnu-ld was given.
3307if test "${with_gnu_ld+set}" = set; then
3308 withval="$with_gnu_ld"
3309 test "$withval" = no || with_gnu_ld=yes
3310else
3311 with_gnu_ld=no
5464f5a1 3312fi;
252b5132 3313ac_prog=ld
55c80943 3314if test "$GCC" = yes; then
252b5132 3315 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
3316 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3317echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3318 case $host in
3319 *-*-mingw*)
3320 # gcc leaves a trailing carriage return which upsets mingw
3321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3322 *)
3323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3324 esac
55c80943 3325 case $ac_prog in
b2ef150d 3326 # Accept absolute paths.
a74801ba 3327 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
3328 re_direlt='/[^/][^/]*/\.\./'
3329 # Canonicalize the path of ld
3330 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3331 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3332 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3333 done
3334 test -z "$LD" && LD="$ac_prog"
3335 ;;
252b5132
RH
3336 "")
3337 # If it fails, then pretend we aren't using GCC.
3338 ac_prog=ld
3339 ;;
3340 *)
3341 # If it is relative, then search for the first ld in PATH.
3342 with_gnu_ld=unknown
3343 ;;
3344 esac
3345elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
3346 echo "$as_me:$LINENO: checking for GNU ld" >&5
3347echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3348else
5464f5a1
NN
3349 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3350echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3351fi
5464f5a1
NN
3352if test "${lt_cv_path_LD+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3354else
3355 if test -z "$LD"; then
a74801ba 3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3357 for ac_dir in $PATH; do
3358 test -z "$ac_dir" && ac_dir=.
a74801ba 3359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 3360 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3361 # Check to see if the program is GNU ld. I'd rather use --version,
3362 # but apparently some GNU ld's only accept -v.
3363 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 3364 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3365 test "$with_gnu_ld" != no && break
3366 else
b2ef150d 3367 test "$with_gnu_ld" != yes && break
252b5132
RH
3368 fi
3369 fi
3370 done
3371 IFS="$ac_save_ifs"
3372else
55c80943 3373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3374fi
3375fi
3376
55c80943 3377LD="$lt_cv_path_LD"
252b5132 3378if test -n "$LD"; then
5464f5a1
NN
3379 echo "$as_me:$LINENO: result: $LD" >&5
3380echo "${ECHO_T}$LD" >&6
252b5132 3381else
5464f5a1
NN
3382 echo "$as_me:$LINENO: result: no" >&5
3383echo "${ECHO_T}no" >&6
252b5132 3384fi
5464f5a1
NN
3385test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3386echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3387 { (exit 1); exit 1; }; }
3388echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3389echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3390if test "${lt_cv_prog_gnu_ld+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3392else
3393 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3394if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3395 lt_cv_prog_gnu_ld=yes
252b5132 3396else
55c80943 3397 lt_cv_prog_gnu_ld=no
252b5132
RH
3398fi
3399fi
5464f5a1
NN
3400echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3401echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3402with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3403
6be7c12c 3404
5464f5a1
NN
3405echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3406echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3407if test "${lt_cv_ld_reload_flag+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3409else
3410 lt_cv_ld_reload_flag='-r'
3411fi
5464f5a1
NN
3412echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3413echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3414reload_flag=$lt_cv_ld_reload_flag
3415test -n "$reload_flag" && reload_flag=" $reload_flag"
3416
5464f5a1
NN
3417echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3418echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3419if test "${lt_cv_path_NM+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3421else
3422 if test -n "$NM"; then
3423 # Let the user override the test.
55c80943 3424 lt_cv_path_NM="$NM"
252b5132 3425else
a74801ba 3426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3427 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3428 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3429 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3430 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3431 # Check to see if the nm accepts a BSD-compat flag.
3432 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3433 # nm: unknown option "B" ignored
90f2472a
AO
3434 # Tru64's nm complains that /dev/null is an invalid object file
3435 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3436 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3437 break
ac48eca1 3438 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3439 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3440 break
252b5132 3441 else
55c80943 3442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3443 continue # so that we can try to find one that supports BSD flags
252b5132 3444 fi
252b5132
RH
3445 fi
3446 done
3447 IFS="$ac_save_ifs"
55c80943 3448 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3449fi
3450fi
3451
55c80943 3452NM="$lt_cv_path_NM"
5464f5a1
NN
3453echo "$as_me:$LINENO: result: $NM" >&5
3454echo "${ECHO_T}$NM" >&6
252b5132 3455
5464f5a1
NN
3456echo "$as_me:$LINENO: checking whether ln -s works" >&5
3457echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3458LN_S=$as_ln_s
3459if test "$LN_S" = "ln -s"; then
3460 echo "$as_me:$LINENO: result: yes" >&5
3461echo "${ECHO_T}yes" >&6
6be7c12c 3462else
5464f5a1
NN
3463 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3464echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3465fi
3466
5464f5a1
NN
3467echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3468echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3469if test "${lt_cv_deplibs_check_method+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3471else
d64552c5 3472 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3473lt_cv_file_magic_test_file=
3474lt_cv_deplibs_check_method='unknown'
3475# Need to set the preceding variable on all platforms that support
3476# interlibrary dependencies.
3477# 'none' -- dependencies not supported.
3478# `unknown' -- same as none, but documents that we really don't know.
3479# 'pass_all' -- all dependencies passed with no checks.
3480# 'test_compile' -- check by making test program.
3481# 'file_magic [regex]' -- check by looking for files in library path
3482# which responds to the $file_magic_cmd with a given egrep regex.
3483# If you have `file' or equivalent on your system and you're not sure
3484# whether `pass_all' will *always* work, you probably want this one.
3485
55c80943
NC
3486case $host_os in
3487aix*)
ac48eca1
AO
3488 lt_cv_deplibs_check_method=pass_all
3489 ;;
3490
3491beos*)
3492 lt_cv_deplibs_check_method=pass_all
3493 ;;
3494
3495bsdi4*)
55c80943
NC
3496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3497 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3498 lt_cv_file_magic_test_file=/shlib/libc.so
3499 ;;
3500
d64552c5 3501cygwin* | mingw* |pw32*)
ac48eca1 3502 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3503 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3504 ;;
3505
55c80943 3506darwin* | rhapsody*)
d70c5fc7 3507 # this will be overwritten by pass_all, but leave it in just in case
55c80943 3508 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3509 lt_cv_file_magic_cmd='/usr/bin/file -L'
3510 case "$host_os" in
3511 rhapsody* | darwin1.012)
3512 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3513 ;;
3514 *) # Darwin 1.3 on
3515 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3516 ;;
3517 esac
d70c5fc7 3518 lt_cv_deplibs_check_method=pass_all
55c80943
NC
3519 ;;
3520
5464f5a1 3521freebsd* | kfreebsd*-gnu)
ac48eca1 3522 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3523 case $host_cpu in
ac48eca1 3524 i*86 )
90f2472a
AO
3525 # Not sure whether the presence of OpenBSD here was a mistake.
3526 # Let's accept both of them until this is cleared up.
55c80943
NC
3527 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3528 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3530 ;;
3531 esac
3532 else
3533 lt_cv_deplibs_check_method=pass_all
3534 fi
3535 ;;
3536
3537gnu*)
3538 lt_cv_deplibs_check_method=pass_all
3539 ;;
3540
55c80943 3541hpux10.20*|hpux11*)
4867be41
DJ
3542 case $host_cpu in
3543 hppa*)
3544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3545 lt_cv_file_magic_cmd=/usr/bin/file
3546 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3547 ;;
3548 ia64*)
3549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3550 lt_cv_file_magic_cmd=/usr/bin/file
3551 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3552 ;;
3553 esac
ac48eca1
AO
3554 ;;
3555
3556irix5* | irix6*)
55c80943 3557 case $host_os in
ac48eca1
AO
3558 irix5*)
3559 # this will be overridden with pass_all, but let us keep it just in case
3560 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3561 ;;
3562 *)
55c80943 3563 case $LD in
ac48eca1
AO
3564 *-32|*"-32 ") libmagic=32-bit;;
3565 *-n32|*"-n32 ") libmagic=N32;;
3566 *-64|*"-64 ") libmagic=64-bit;;
3567 *) libmagic=never-match;;
3568 esac
3569 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3570 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3571 ;;
ac48eca1
AO
3572 esac
3573 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3574 lt_cv_deplibs_check_method=pass_all
3575 ;;
3576
3577# This must be Linux ELF.
90f2472a 3578linux-gnu*)
d70c5fc7 3579 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
3580 ;;
3581
5464f5a1 3582netbsd* | knetbsd*-gnu)
55c80943 3583 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3584 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3585 else
b3baf5d0 3586 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3587 fi
55c80943
NC
3588 ;;
3589
3590newsos6)
3591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3592 lt_cv_file_magic_cmd=/usr/bin/file
3593 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3594 ;;
3595
3596osf3* | osf4* | osf5*)
3597 # this will be overridden with pass_all, but let us keep it just in case
3598 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3599 lt_cv_file_magic_test_file=/shlib/libc.so
3600 lt_cv_deplibs_check_method=pass_all
3601 ;;
3602
3603sco3.2v5*)
3604 lt_cv_deplibs_check_method=pass_all
3605 ;;
3606
3607solaris*)
3608 lt_cv_deplibs_check_method=pass_all
3609 lt_cv_file_magic_test_file=/lib/libc.so
3610 ;;
3611
6be7c12c
AO
3612sysv5uw[78]* | sysv4*uw2*)
3613 lt_cv_deplibs_check_method=pass_all
3614 ;;
3615
ac48eca1 3616sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3617 case $host_vendor in
ac48eca1
AO
3618 ncr)
3619 lt_cv_deplibs_check_method=pass_all
3620 ;;
3621 motorola)
55c80943
NC
3622 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3624 ;;
3625 esac
3626 ;;
3627esac
3628
3629fi
5464f5a1
NN
3630echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3631echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3632file_magic_cmd=$lt_cv_file_magic_cmd
3633deplibs_check_method=$lt_cv_deplibs_check_method
3634
6be7c12c
AO
3635
3636
6be7c12c
AO
3637
3638# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3639
d70c5fc7
NC
3640# find the maximum length of command line arguments
3641echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3642echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3643if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
3646 i=0
3647 teststring="ABCD"
3648
3649 case $build_os in
3650 msdosdjgpp*)
3651 # On DJGPP, this test can blow up pretty badly due to problems in libc
3652 # (any single argument exceeding 2000 bytes causes a buffer overrun
3653 # during glob expansion). Even if it were fixed, the result of this
3654 # check would be larger than it should be.
3655 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3656 ;;
3657
3658 cygwin* | mingw*)
3659 # On Win9x/ME, this test blows up -- it succeeds, but takes
3660 # about 5 minutes as the teststring grows exponentially.
3661 # Worse, since 9x/ME are not pre-emptively multitasking,
3662 # you end up with a "frozen" computer, even though with patience
3663 # the test eventually succeeds (with a max line length of 256k).
3664 # Instead, let's just punt: use the minimum linelength reported by
3665 # all of the supported platforms: 8192 (on NT/2K/XP).
3666 lt_cv_sys_max_cmd_len=8192;
3667 ;;
3668
3669 amigaos*)
3670 # On AmigaOS with pdksh, this test takes hours, literally.
3671 # So we just punt and use a minimum line length of 8192.
3672 lt_cv_sys_max_cmd_len=8192;
3673 ;;
3674
3675 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3676 # This has been around since 386BSD, at least. Likely further.
3677 if test -x /sbin/sysctl; then
3678 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3679 elif test -x /usr/sbin/sysctl; then
3680 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3681 else
3682 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3683 fi
3684 # And add a safety zone
3685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3687 ;;
3688 esac
3689
3690fi
3691
3692if test -n "$lt_cv_sys_max_cmd_len" ; then
3693 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3694echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3695else
3696 echo "$as_me:$LINENO: result: none" >&5
3697echo "${ECHO_T}none" >&6
3698fi
3699
3700
6be7c12c
AO
3701# Only perform the check for file, if the check method requires it
3702case $deplibs_check_method in
3703file_magic*)
3704 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3705 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3706echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3707if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3709else
3710 case $MAGIC_CMD in
3711 /*)
3712 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3713 ;;
3714 ?:/*)
3715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3716 ;;
3717 *)
d64552c5 3718 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3720 ac_dummy="/usr/bin:$PATH"
3721 for ac_dir in $ac_dummy; do
3722 test -z "$ac_dir" && ac_dir=.
3723 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3724 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3725 if test -n "$file_magic_test_file"; then
55c80943 3726 case $deplibs_check_method in
ac48eca1
AO
3727 "file_magic "*)
3728 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3731 egrep "$file_magic_regex" > /dev/null; then
3732 :
3733 else
3734 cat <<EOF 1>&2
3735
3736*** Warning: the command libtool uses to detect shared libraries,
3737*** $file_magic_cmd, produces output that libtool cannot recognize.
3738*** The result is that libtool may fail to recognize shared libraries
3739*** as such. This will affect the creation of libtool libraries that
3740*** depend on shared libraries, but programs linked with such libtool
3741*** libraries will work regardless of this problem. Nevertheless, you
3742*** may want to report the problem to your system manager and/or to
3743*** bug-libtool@gnu.org
3744
3745EOF
3746 fi ;;
3747 esac
3748 fi
3749 break
3750 fi
3751 done
3752 IFS="$ac_save_ifs"
d64552c5 3753 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3754 ;;
3755esac
3756fi
3757
d64552c5
AO
3758MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3759if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3760 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3761echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3762else
5464f5a1
NN
3763 echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
ac48eca1
AO
3765fi
3766
d64552c5 3767if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3768 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3769 echo "$as_me:$LINENO: checking for file" >&5
3770echo $ECHO_N "checking for file... $ECHO_C" >&6
3771if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3773else
55c80943 3774 case $MAGIC_CMD in
ac48eca1 3775 /*)
d64552c5 3776 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3777 ;;
3778 ?:/*)
d64552c5 3779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3780 ;;
3781 *)
d64552c5 3782 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3784 ac_dummy="/usr/bin:$PATH"
3785 for ac_dir in $ac_dummy; do
3786 test -z "$ac_dir" && ac_dir=.
3787 if test -f $ac_dir/file; then
d64552c5 3788 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3789 if test -n "$file_magic_test_file"; then
55c80943 3790 case $deplibs_check_method in
ac48eca1
AO
3791 "file_magic "*)
3792 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3794 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3795 egrep "$file_magic_regex" > /dev/null; then
3796 :
3797 else
3798 cat <<EOF 1>&2
3799
3800*** Warning: the command libtool uses to detect shared libraries,
3801*** $file_magic_cmd, produces output that libtool cannot recognize.
3802*** The result is that libtool may fail to recognize shared libraries
3803*** as such. This will affect the creation of libtool libraries that
3804*** depend on shared libraries, but programs linked with such libtool
3805*** libraries will work regardless of this problem. Nevertheless, you
3806*** may want to report the problem to your system manager and/or to
3807*** bug-libtool@gnu.org
3808
3809EOF
3810 fi ;;
3811 esac
3812 fi
3813 break
3814 fi
3815 done
3816 IFS="$ac_save_ifs"
d64552c5 3817 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3818 ;;
3819esac
3820fi
3821
d64552c5
AO
3822MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3823if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3824 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3825echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3826else
5464f5a1
NN
3827 echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6
ac48eca1
AO
3829fi
3830
3831 else
d64552c5 3832 MAGIC_CMD=:
ac48eca1
AO
3833 fi
3834fi
3835
3836 fi
3837 ;;
3838esac
3839
5464f5a1
NN
3840if test -n "$ac_tool_prefix"; then
3841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3842set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3843echo "$as_me:$LINENO: checking for $ac_word" >&5
3844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845if test "${ac_cv_prog_RANLIB+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3847else
3848 if test -n "$RANLIB"; then
3849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3850else
5464f5a1
NN
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862done
3863done
3864
ac48eca1
AO
3865fi
3866fi
5464f5a1 3867RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3868if test -n "$RANLIB"; then
5464f5a1
NN
3869 echo "$as_me:$LINENO: result: $RANLIB" >&5
3870echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3871else
5464f5a1
NN
3872 echo "$as_me:$LINENO: result: no" >&5
3873echo "${ECHO_T}no" >&6
ac48eca1
AO
3874fi
3875
5464f5a1 3876fi
ac48eca1 3877if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3878 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3879 # Extract the first word of "ranlib", so it can be a program name with args.
3880set dummy ranlib; ac_word=$2
5464f5a1
NN
3881echo "$as_me:$LINENO: checking for $ac_word" >&5
3882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3885else
5464f5a1
NN
3886 if test -n "$ac_ct_RANLIB"; then
3887 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3888else
5464f5a1
NN
3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH
3891do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_ac_ct_RANLIB="ranlib"
3897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3899 fi
3900done
3901done
3902
3903 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3904fi
3905fi
5464f5a1
NN
3906ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3907if test -n "$ac_ct_RANLIB"; then
3908 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3909echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3910else
5464f5a1
NN
3911 echo "$as_me:$LINENO: result: no" >&5
3912echo "${ECHO_T}no" >&6
ac48eca1
AO
3913fi
3914
5464f5a1 3915 RANLIB=$ac_ct_RANLIB
ac48eca1 3916else
5464f5a1 3917 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3918fi
3919
5464f5a1
NN
3920if test -n "$ac_tool_prefix"; then
3921 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3922set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3923echo "$as_me:$LINENO: checking for $ac_word" >&5
3924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925if test "${ac_cv_prog_STRIP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3927else
3928 if test -n "$STRIP"; then
3929 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3930else
5464f5a1
NN
3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH
3933do
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3941 fi
3942done
3943done
3944
ac48eca1
AO
3945fi
3946fi
5464f5a1 3947STRIP=$ac_cv_prog_STRIP
ac48eca1 3948if test -n "$STRIP"; then
5464f5a1
NN
3949 echo "$as_me:$LINENO: result: $STRIP" >&5
3950echo "${ECHO_T}$STRIP" >&6
ac48eca1 3951else
5464f5a1
NN
3952 echo "$as_me:$LINENO: result: no" >&5
3953echo "${ECHO_T}no" >&6
ac48eca1
AO
3954fi
3955
5464f5a1 3956fi
ac48eca1 3957if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3958 ac_ct_STRIP=$STRIP
ac48eca1
AO
3959 # Extract the first word of "strip", so it can be a program name with args.
3960set dummy strip; ac_word=$2
5464f5a1
NN
3961echo "$as_me:$LINENO: checking for $ac_word" >&5
3962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3965else
5464f5a1
NN
3966 if test -n "$ac_ct_STRIP"; then
3967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3968else
5464f5a1
NN
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH
3971do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976 ac_cv_prog_ac_ct_STRIP="strip"
3977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 break 2
3979 fi
3980done
3981done
3982
3983 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3984fi
3985fi
5464f5a1
NN
3986ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3987if test -n "$ac_ct_STRIP"; then
3988 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3989echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3990else
5464f5a1
NN
3991 echo "$as_me:$LINENO: result: no" >&5
3992echo "${ECHO_T}no" >&6
ac48eca1
AO
3993fi
3994
5464f5a1 3995 STRIP=$ac_ct_STRIP
ac48eca1 3996else
5464f5a1 3997 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3998fi
252b5132 3999
6be7c12c 4000
252b5132 4001# Check for any special flags to pass to ltconfig.
b2ef150d 4002libtool_flags="--cache-file=$cache_file"
252b5132
RH
4003test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4004test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 4005test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
4006test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4007test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 4008
6be7c12c 4009
a74801ba
ILT
4010# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4011if test "${enable_libtool_lock+set}" = set; then
4012 enableval="$enable_libtool_lock"
a74801ba 4013
5464f5a1 4014fi;
a74801ba
ILT
4015test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4016test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4017
5464f5a1 4018
ac48eca1
AO
4019# Check whether --with-pic or --without-pic was given.
4020if test "${with_pic+set}" = set; then
4021 withval="$with_pic"
4022 pic_mode="$withval"
4023else
5464f5a1
NN
4024 pic_mode=default
4025fi;
ac48eca1
AO
4026test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4027test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4028
252b5132
RH
4029# Some flags need to be propagated to the compiler or linker for good
4030# libtool support.
55c80943 4031case $host in
252b5132
RH
4032*-*-irix6*)
4033 # Find out which ABI we are using.
20e95c23 4034 echo '#line 4034 "configure"' > conftest.$ac_ext
5464f5a1
NN
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; then
6a457e5c
NC
4040 if test "$lt_cv_prog_gnu_ld" = yes; then
4041 case `/usr/bin/file conftest.$ac_objext` in
4042 *32-bit*)
4043 LD="${LD-ld} -melf32bsmip"
4044 ;;
4045 *N32*)
4046 LD="${LD-ld} -melf32bmipn32"
4047 ;;
4048 *64-bit*)
4049 LD="${LD-ld} -melf64bmip"
4050 ;;
4051 esac
4052 else
55c80943 4053 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
4054 *32-bit*)
4055 LD="${LD-ld} -32"
4056 ;;
4057 *N32*)
4058 LD="${LD-ld} -n32"
4059 ;;
4060 *64-bit*)
4061 LD="${LD-ld} -64"
4062 ;;
4063 esac
6a457e5c 4064 fi
252b5132
RH
4065 fi
4066 rm -rf conftest*
4067 ;;
4068
4867be41
DJ
4069ia64-*-hpux*)
4070 # Find out which ABI we are using.
4071 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; then
4867be41
DJ
4077 case "`/usr/bin/file conftest.o`" in
4078 *ELF-32*)
4079 HPUX_IA64_MODE="32"
4080 ;;
4081 *ELF-64*)
4082 HPUX_IA64_MODE="64"
4083 ;;
4084 esac
4085 fi
4086 rm -rf conftest*
4087 ;;
4088
65fe5dd6 4089x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
d70c5fc7
NC
4090 # Find out which ABI we are using.
4091 echo 'int i;' > conftest.$ac_ext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4093 (eval $ac_compile) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; then
4097 case "`/usr/bin/file conftest.o`" in
4098 *32-bit*)
4099 case $host in
65fe5dd6 4100 x86_64-*linux*)
d70c5fc7
NC
4101 LD="${LD-ld} -m elf_i386"
4102 ;;
4103 ppc64-*linux*|powerpc64-*linux*)
4104 LD="${LD-ld} -m elf32ppclinux"
4105 ;;
4106 s390x-*linux*)
4107 LD="${LD-ld} -m elf_s390"
4108 ;;
4109 sparc64-*linux*)
4110 LD="${LD-ld} -m elf32_sparc"
4111 ;;
4112 esac
4113 ;;
4114 *64-bit*)
4115 case $host in
65fe5dd6 4116 x86_64-*linux*)
d70c5fc7
NC
4117 LD="${LD-ld} -m elf_x86_64"
4118 ;;
4119 ppc*-*linux*|powerpc*-*linux*)
4120 LD="${LD-ld} -m elf64ppc"
4121 ;;
4122 s390*-*linux*)
4123 LD="${LD-ld} -m elf64_s390"
4124 ;;
4125 sparc*-*linux*)
4126 LD="${LD-ld} -m elf64_sparc"
4127 ;;
4128 esac
4129 ;;
4130 esac
4131 fi
4132 rm -rf conftest*
4133 ;;
4134
252b5132
RH
4135*-*-sco3.2v5*)
4136 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4137 SAVE_CFLAGS="$CFLAGS"
252b5132 4138 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4139 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4140echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4141if test "${lt_cv_cc_needs_belf+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4143else
5464f5a1
NN
4144
4145
ac48eca1 4146 ac_ext=c
ac48eca1 4147ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4151
5464f5a1
NN
4152 cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
b2ef150d 4158
5464f5a1
NN
4159int
4160main ()
4161{
b2ef150d 4162
5464f5a1
NN
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167rm -f conftest.$ac_objext conftest$ac_exeext
4168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4169 (eval $ac_link) 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
49c96104
SE
4176 { ac_try='test -z "$ac_c_werror_flag"
4177 || test ! -s conftest.err'
5464f5a1
NN
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest$ac_exeext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
b2ef150d
ILT
4189 lt_cv_cc_needs_belf=yes
4190else
5464f5a1
NN
4191 echo "$as_me: failed program was:" >&5
4192sed 's/^/| /' conftest.$ac_ext >&5
4193
4194lt_cv_cc_needs_belf=no
b2ef150d 4195fi
5464f5a1
NN
4196rm -f conftest.err conftest.$ac_objext \
4197 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4198 ac_ext=c
ac48eca1 4199ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4203
b2ef150d 4204fi
5464f5a1
NN
4205echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4206echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4207 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4208 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4209 CFLAGS="$SAVE_CFLAGS"
4210 fi
252b5132
RH
4211 ;;
4212
6be7c12c 4213
252b5132
RH
4214esac
4215
6be7c12c 4216
b2ef150d 4217# Save cache, so that ltconfig can load it
5464f5a1 4218cat >confcache <<\_ACEOF
b2ef150d
ILT
4219# This file is a shell script that caches the results of configure
4220# tests run on this system so they can be shared between configure
5464f5a1
NN
4221# scripts and configure runs, see configure's option --config-cache.
4222# It is not useful on other systems. If it contains results you don't
4223# want to keep, you may remove or edit it.
b2ef150d 4224#
5464f5a1
NN
4225# config.status only pays attention to the cache file if you give it
4226# the --recheck option to rerun configure.
b2ef150d 4227#
5464f5a1
NN
4228# `ac_cv_env_foo' variables (set or unset) will be overridden when
4229# loading this file, other *unset* `ac_cv_foo' will be assigned the
4230# following values.
4231
4232_ACEOF
4233
b2ef150d
ILT
4234# The following way of writing the cache mishandles newlines in values,
4235# but we know of no workaround that is simple, portable, and efficient.
4236# So, don't put newlines in cache variables' values.
4237# Ultrix sh set writes to stderr and can't be redirected directly,
4238# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4239{
4240 (set) 2>&1 |
4241 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4242 *ac_space=\ *)
4243 # `set' does not quote correctly, so add quotes (double-quote
4244 # substitution turns \\\\ into \\, and sed turns \\ into \).
4245 sed -n \
4246 "s/'/'\\\\''/g;
4247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4248 ;;
4249 *)
4250 # `set' quotes correctly as required by POSIX, so do not add quotes.
4251 sed -n \
4252 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4253 ;;
4254 esac;
4255} |
4256 sed '
4257 t clear
4258 : clear
4259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4260 t end
4261 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4262 : end' >>confcache
4263if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4264 if test -w $cache_file; then
5464f5a1
NN
4265 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4266 cat confcache >$cache_file
b2ef150d
ILT
4267 else
4268 echo "not updating unwritable cache $cache_file"
4269 fi
4270fi
4271rm -f confcache
4272
252b5132 4273# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4274AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4275MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4276LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4277AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4278objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4279deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4280${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4281$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4282|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4283echo "$as_me: error: libtool configure failed" >&2;}
4284 { (exit 1); exit 1; }; }
252b5132 4285
b2ef150d
ILT
4286# Reload cache, that may have been modified by ltconfig
4287if test -r "$cache_file"; then
5464f5a1
NN
4288 # Some versions of bash will fail to source /dev/null (special
4289 # files actually), so we avoid doing that.
4290 if test -f "$cache_file"; then
4291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4292echo "$as_me: loading cache $cache_file" >&6;}
4293 case $cache_file in
4294 [\\/]* | ?:[\\/]* ) . $cache_file;;
4295 *) . ./$cache_file;;
4296 esac
4297 fi
b2ef150d 4298else
5464f5a1
NN
4299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4300echo "$as_me: creating cache $cache_file" >&6;}
4301 >$cache_file
b2ef150d
ILT
4302fi
4303
6be7c12c 4304
b2ef150d 4305# This can be used to rebuild libtool when needed
ac48eca1 4306LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4307
4308# Always use our own libtool.
4309LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4310
252b5132
RH
4311# Redirect the config.log output again, so that the ltconfig log is not
4312# clobbered by the next message.
4313exec 5>>./config.log
4314
6be7c12c 4315
5464f5a1
NN
4316
4317
4318
4319
6be7c12c 4320
252b5132
RH
4321# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4322if test "${enable_64_bit_bfd+set}" = set; then
4323 enableval="$enable_64_bit_bfd"
4324 case "${enableval}" in
4325 yes) want64=true ;;
4326 no) want64=false ;;
5464f5a1
NN
4327 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4328echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4329 { (exit 1); exit 1; }; } ;;
252b5132
RH
4330esac
4331else
4332 want64=false
5464f5a1 4333fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4334if test "${enable_targets+set}" = set; then
4335 enableval="$enable_targets"
4336 case "${enableval}" in
5464f5a1
NN
4337 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4338echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4339 { (exit 1); exit 1; }; }
252b5132
RH
4340 ;;
4341 no) enable_targets= ;;
4342 *) enable_targets=$enableval ;;
4343esac
5464f5a1 4344fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4345if test "${enable_commonbfdlib+set}" = set; then
4346 enableval="$enable_commonbfdlib"
4347 case "${enableval}" in
4348 yes) commonbfdlib=true ;;
4349 no) commonbfdlib=false ;;
5464f5a1
NN
4350 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4351echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4352 { (exit 1); exit 1; }; } ;;
252b5132 4353esac
5464f5a1 4354fi;
252b5132
RH
4355# Check whether --with-mmap or --without-mmap was given.
4356if test "${with_mmap+set}" = set; then
4357 withval="$with_mmap"
4358 case "${withval}" in
4359 yes) want_mmap=true ;;
4360 no) want_mmap=false ;;
5464f5a1
NN
4361 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4362echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4363 { (exit 1); exit 1; }; } ;;
252b5132
RH
4364esac
4365else
4366 want_mmap=false
5464f5a1 4367fi;
6ec7057a
RH
4368# Check whether --enable-secureplt or --disable-secureplt was given.
4369if test "${enable_secureplt+set}" = set; then
4370 enableval="$enable_secureplt"
4371 case "${enableval}" in
4372 yes) use_secureplt=true ;;
4373 no) use_secureplt=false ;;
4374 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4375echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4376 { (exit 1); exit 1; }; } ;;
4377esac
4378else
4379 use_secureplt=false
4380fi; if test $use_secureplt = true; then
4381
4382cat >>confdefs.h <<\_ACEOF
4383#define USE_SECUREPLT 1
4384_ACEOF
4385
4386fi
4387
9e9b66a9 4388
49c96104 4389GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4390
569acd2c
NC
4391# Check whether --enable-werror or --disable-werror was given.
4392if test "${enable_werror+set}" = set; then
4393 enableval="$enable_werror"
1ad12f97
NC
4394 case "${enableval}" in
4395 yes | y) ERROR_ON_WARNING="yes" ;;
4396 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4397 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4398echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4399 { (exit 1); exit 1; }; } ;;
4400 esac
4401fi;
4402
9e9b66a9
AM
4403# Enable -Werror by default when using gcc
4404if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4405 ERROR_ON_WARNING=yes
4406fi
4407
4408NO_WERROR=
4409if test "${ERROR_ON_WARNING}" = yes ; then
49c96104 4410 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 4411 NO_WERROR="-Wno-error"
1ad12f97
NC
4412fi
4413
49c96104
SE
4414if test "${GCC}" = yes ; then
4415 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4416fi
4417
a2d91340
AC
4418# Check whether --enable-build-warnings or --disable-build-warnings was given.
4419if test "${enable_build_warnings+set}" = set; then
4420 enableval="$enable_build_warnings"
4421 case "${enableval}" in
49c96104
SE
4422 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4423 no) if test "${GCC}" = yes ; then
4424 WARN_CFLAGS="-w"
4425 fi;;
a2d91340 4426 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4427 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4428 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4429 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4430 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4431esac
9e9b66a9
AM
4432fi;
4433
4434if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4435 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4436fi
4437
4438
9e9b66a9
AM
4439
4440
4441
5464f5a1 4442 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4443
252b5132
RH
4444
4445if test -z "$target" ; then
5464f5a1
NN
4446 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4447echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4448 { (exit 1); exit 1; }; }
252b5132 4449fi
252b5132 4450
5464f5a1
NN
4451echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4452echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4453 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4454if test "${enable_maintainer_mode+set}" = set; then
4455 enableval="$enable_maintainer_mode"
4456 USE_MAINTAINER_MODE=$enableval
4457else
4458 USE_MAINTAINER_MODE=no
5464f5a1
NN
4459fi;
4460 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4461echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4462
252b5132
RH
4463
4464if test $USE_MAINTAINER_MODE = yes; then
4465 MAINTAINER_MODE_TRUE=
4466 MAINTAINER_MODE_FALSE='#'
4467else
4468 MAINTAINER_MODE_TRUE='#'
4469 MAINTAINER_MODE_FALSE=
4470fi
f5385ebf 4471
252b5132 4472 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4473
5464f5a1 4474
d5fbea21
DJ
4475
4476
4477if false; then
4478 GENINSRC_NEVER_TRUE=
4479 GENINSRC_NEVER_FALSE='#'
4480else
4481 GENINSRC_NEVER_TRUE='#'
4482 GENINSRC_NEVER_FALSE=
4483fi
4484
24443139
AS
4485 case ${build_alias} in
4486 "") build_noncanonical=${build} ;;
4487 *) build_noncanonical=${build_alias} ;;
4488esac
4489
4490 case ${host_alias} in
4491 "") host_noncanonical=${build_noncanonical} ;;
4492 *) host_noncanonical=${host_alias} ;;
4493esac
4494
4495 case ${target_alias} in
4496 "") target_noncanonical=${host_noncanonical} ;;
4497 *) target_noncanonical=${target_alias} ;;
4498esac
4499
5464f5a1
NN
4500echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4501echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4502 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4503if test "${enable_install_libbfd+set}" = set; then
4504 enableval="$enable_install_libbfd"
4505 install_libbfd_p=$enableval
4506else
66e25bab 4507 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4508 install_libbfd_p=yes
4509 else
4510 install_libbfd_p=no
4511 fi
5464f5a1
NN
4512fi;
4513 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4514echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4515
a703a6ea
AM
4516
4517if test $install_libbfd_p = yes; then
4518 INSTALL_LIBBFD_TRUE=
4519 INSTALL_LIBBFD_FALSE='#'
4520else
4521 INSTALL_LIBBFD_TRUE='#'
4522 INSTALL_LIBBFD_FALSE=
4523fi
f5385ebf 4524
5464f5a1 4525 # Need _noncanonical variables for this.
24443139
AS
4526
4527
4528
4529
a703a6ea
AM
4530 # libbfd.a is a host library containing target dependent code
4531 bfdlibdir='$(libdir)'
4532 bfdincludedir='$(includedir)'
4533 if test "${host}" != "${target}"; then
5464f5a1
NN
4534 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4535 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4536 fi
a703a6ea
AM
4537
4538
252b5132
RH
4539
4540
5464f5a1
NN
4541
4542
4543host64=false
4544target64=false
4545bfd_default_target_size=32
4546
4547# host stuff:
4548
4549ac_ext=c
4550ac_cpp='$CPP $CPPFLAGS'
4551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4556set dummy ${ac_tool_prefix}gcc; ac_word=$2
4557echo "$as_me:$LINENO: checking for $ac_word" >&5
4558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4559if test "${ac_cv_prog_CC+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4561else
5464f5a1
NN
4562 if test -n "$CC"; then
4563 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4564else
5464f5a1
NN
4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in $PATH
4567do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
6be7c12c 4575 fi
5464f5a1
NN
4576done
4577done
4578
252b5132 4579fi
b3baf5d0 4580fi
5464f5a1
NN
4581CC=$ac_cv_prog_CC
4582if test -n "$CC"; then
4583 echo "$as_me:$LINENO: result: $CC" >&5
4584echo "${ECHO_T}$CC" >&6
4585else
4586 echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6
4588fi
252b5132 4589
5464f5a1
NN
4590fi
4591if test -z "$ac_cv_prog_CC"; then
4592 ac_ct_CC=$CC
4593 # Extract the first word of "gcc", so it can be a program name with args.
4594set dummy gcc; ac_word=$2
4595echo "$as_me:$LINENO: checking for $ac_word" >&5
4596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4597if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599else
4600 if test -n "$ac_ct_CC"; then
4601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_ac_ct_CC="gcc"
4611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614done
4615done
252b5132 4616
5464f5a1
NN
4617fi
4618fi
4619ac_ct_CC=$ac_cv_prog_ac_ct_CC
4620if test -n "$ac_ct_CC"; then
4621 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4622echo "${ECHO_T}$ac_ct_CC" >&6
4623else
4624 echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6
4626fi
252b5132 4627
5464f5a1
NN
4628 CC=$ac_ct_CC
4629else
4630 CC="$ac_cv_prog_CC"
4631fi
252b5132 4632
5464f5a1
NN
4633if test -z "$CC"; then
4634 if test -n "$ac_tool_prefix"; then
4635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4636set dummy ${ac_tool_prefix}cc; ac_word=$2
4637echo "$as_me:$LINENO: checking for $ac_word" >&5
4638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4639if test "${ac_cv_prog_CC+set}" = set; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652 ac_cv_prog_CC="${ac_tool_prefix}cc"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656done
4657done
6be7c12c 4658
5464f5a1
NN
4659fi
4660fi
4661CC=$ac_cv_prog_CC
4662if test -n "$CC"; then
4663 echo "$as_me:$LINENO: result: $CC" >&5
4664echo "${ECHO_T}$CC" >&6
4665else
4666 echo "$as_me:$LINENO: result: no" >&5
4667echo "${ECHO_T}no" >&6
4668fi
4669
4670fi
4671if test -z "$ac_cv_prog_CC"; then
4672 ac_ct_CC=$CC
4673 # Extract the first word of "cc", so it can be a program name with args.
4674set dummy cc; ac_word=$2
4675echo "$as_me:$LINENO: checking for $ac_word" >&5
4676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4677if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679else
4680 if test -n "$ac_ct_CC"; then
4681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4682else
4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690 ac_cv_prog_ac_ct_CC="cc"
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4693 fi
4694done
4695done
4696
4697fi
4698fi
4699ac_ct_CC=$ac_cv_prog_ac_ct_CC
4700if test -n "$ac_ct_CC"; then
4701 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4702echo "${ECHO_T}$ac_ct_CC" >&6
4703else
4704 echo "$as_me:$LINENO: result: no" >&5
4705echo "${ECHO_T}no" >&6
4706fi
4707
4708 CC=$ac_ct_CC
4709else
4710 CC="$ac_cv_prog_CC"
4711fi
4712
4713fi
4714if test -z "$CC"; then
4715 # Extract the first word of "cc", so it can be a program name with args.
4716set dummy cc; ac_word=$2
4717echo "$as_me:$LINENO: checking for $ac_word" >&5
4718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4719if test "${ac_cv_prog_CC+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4721else
4722 if test -n "$CC"; then
4723 ac_cv_prog_CC="$CC" # Let the user override the test.
4724else
5464f5a1
NN
4725 ac_prog_rejected=no
4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4734 ac_prog_rejected=yes
4735 continue
4736 fi
4737 ac_cv_prog_CC="cc"
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4740 fi
4741done
4742done
4743
4744if test $ac_prog_rejected = yes; then
4745 # We found a bogon in the path, so make sure we never use it.
4746 set dummy $ac_cv_prog_CC
4747 shift
4748 if test $# != 0; then
4749 # We chose a different compiler from the bogus one.
4750 # However, it has the same basename, so the bogon will be chosen
4751 # first if we set CC to just the basename; use the full file name.
4752 shift
4753 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4754 fi
4755fi
4756fi
4757fi
4758CC=$ac_cv_prog_CC
4759if test -n "$CC"; then
4760 echo "$as_me:$LINENO: result: $CC" >&5
4761echo "${ECHO_T}$CC" >&6
4762else
4763 echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6
4765fi
4766
4767fi
4768if test -z "$CC"; then
4769 if test -n "$ac_tool_prefix"; then
4770 for ac_prog in cl
4771 do
4772 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4773set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4774echo "$as_me:$LINENO: checking for $ac_word" >&5
4775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4776if test "${ac_cv_prog_CC+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778else
4779 if test -n "$CC"; then
4780 ac_cv_prog_CC="$CC" # Let the user override the test.
4781else
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4792 fi
4793done
4794done
4795
4796fi
4797fi
4798CC=$ac_cv_prog_CC
4799if test -n "$CC"; then
4800 echo "$as_me:$LINENO: result: $CC" >&5
4801echo "${ECHO_T}$CC" >&6
4802else
4803 echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6
4805fi
4806
4807 test -n "$CC" && break
6be7c12c 4808 done
252b5132 4809fi
5464f5a1
NN
4810if test -z "$CC"; then
4811 ac_ct_CC=$CC
4812 for ac_prog in cl
4813do
4814 # Extract the first word of "$ac_prog", so it can be a program name with args.
4815set dummy $ac_prog; ac_word=$2
4816echo "$as_me:$LINENO: checking for $ac_word" >&5
4817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4818if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4819 echo $ECHO_N "(cached) $ECHO_C" >&6
4820else
4821 if test -n "$ac_ct_CC"; then
4822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4823else
4824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825for as_dir in $PATH
4826do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_ac_ct_CC="$ac_prog"
4832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835done
4836done
4837
4838fi
4839fi
4840ac_ct_CC=$ac_cv_prog_ac_ct_CC
4841if test -n "$ac_ct_CC"; then
4842 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4843echo "${ECHO_T}$ac_ct_CC" >&6
4844else
4845 echo "$as_me:$LINENO: result: no" >&5
4846echo "${ECHO_T}no" >&6
4847fi
4848
4849 test -n "$ac_ct_CC" && break
4850done
4851
4852 CC=$ac_ct_CC
4853fi
4854
4855fi
4856
4857
4858test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4859See \`config.log' for more details." >&5
4860echo "$as_me: error: no acceptable C compiler found in \$PATH
4861See \`config.log' for more details." >&2;}
4862 { (exit 1); exit 1; }; }
4863
4864# Provide some information about the compiler.
4865echo "$as_me:$LINENO:" \
4866 "checking for C compiler version" >&5
4867ac_compiler=`set X $ac_compile; echo $2`
4868{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4869 (eval $ac_compiler --version </dev/null >&5) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }
4873{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4874 (eval $ac_compiler -v </dev/null >&5) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }
4878{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4879 (eval $ac_compiler -V </dev/null >&5) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }
4883
4884echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4885echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4886if test "${ac_cv_c_compiler_gnu+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
4889 cat >conftest.$ac_ext <<_ACEOF
4890/* confdefs.h. */
4891_ACEOF
4892cat confdefs.h >>conftest.$ac_ext
4893cat >>conftest.$ac_ext <<_ACEOF
4894/* end confdefs.h. */
4895
4896int
4897main ()
4898{
4899#ifndef __GNUC__
4900 choke me
4901#endif
4902
4903 ;
4904 return 0;
4905}
4906_ACEOF
4907rm -f conftest.$ac_objext
4908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>conftest.er1
4910 ac_status=$?
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
49c96104
SE
4916 { ac_try='test -z "$ac_c_werror_flag"
4917 || test ! -s conftest.err'
5464f5a1
NN
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; } &&
4923 { ac_try='test -s conftest.$ac_objext'
4924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4925 (eval $ac_try) 2>&5
4926 ac_status=$?
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); }; }; then
4929 ac_compiler_gnu=yes
4930else
4931 echo "$as_me: failed program was:" >&5
4932sed 's/^/| /' conftest.$ac_ext >&5
4933
4934ac_compiler_gnu=no
4935fi
4936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937ac_cv_c_compiler_gnu=$ac_compiler_gnu
4938
4939fi
4940echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4941echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4942GCC=`test $ac_compiler_gnu = yes && echo yes`
4943ac_test_CFLAGS=${CFLAGS+set}
4944ac_save_CFLAGS=$CFLAGS
4945CFLAGS="-g"
4946echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4947echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4948if test "${ac_cv_prog_cc_g+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950else
4951 cat >conftest.$ac_ext <<_ACEOF
4952/* confdefs.h. */
4953_ACEOF
4954cat confdefs.h >>conftest.$ac_ext
4955cat >>conftest.$ac_ext <<_ACEOF
4956/* end confdefs.h. */
4957
4958int
4959main ()
4960{
4961
4962 ;
4963 return 0;
4964}
4965_ACEOF
4966rm -f conftest.$ac_objext
4967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4968 (eval $ac_compile) 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
49c96104
SE
4975 { ac_try='test -z "$ac_c_werror_flag"
4976 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
4982 { ac_try='test -s conftest.$ac_objext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 (eval $ac_try) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_cv_prog_cc_g=yes
4989else
4990 echo "$as_me: failed program was:" >&5
4991sed 's/^/| /' conftest.$ac_ext >&5
4992
4993ac_cv_prog_cc_g=no
4994fi
4995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996fi
4997echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4998echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4999if test "$ac_test_CFLAGS" = set; then
5000 CFLAGS=$ac_save_CFLAGS
5001elif test $ac_cv_prog_cc_g = yes; then
5002 if test "$GCC" = yes; then
5003 CFLAGS="-g -O2"
5004 else
5005 CFLAGS="-g"
5006 fi
5007else
5008 if test "$GCC" = yes; then
5009 CFLAGS="-O2"
5010 else
5011 CFLAGS=
5012 fi
5013fi
5014echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5015echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5016if test "${ac_cv_prog_cc_stdc+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018else
5019 ac_cv_prog_cc_stdc=no
5020ac_save_CC=$CC
5021cat >conftest.$ac_ext <<_ACEOF
5022/* confdefs.h. */
5023_ACEOF
5024cat confdefs.h >>conftest.$ac_ext
5025cat >>conftest.$ac_ext <<_ACEOF
5026/* end confdefs.h. */
5027#include <stdarg.h>
5028#include <stdio.h>
5029#include <sys/types.h>
5030#include <sys/stat.h>
5031/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5032struct buf { int x; };
5033FILE * (*rcsopen) (struct buf *, struct stat *, int);
5034static char *e (p, i)
5035 char **p;
5036 int i;
5037{
5038 return p[i];
5039}
5040static char *f (char * (*g) (char **, int), char **p, ...)
5041{
5042 char *s;
5043 va_list v;
5044 va_start (v,p);
5045 s = g (p, va_arg (v,int));
5046 va_end (v);
5047 return s;
5048}
5049
5050/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5051 function prototypes and stuff, but not '\xHH' hex character constants.
5052 These don't provoke an error unfortunately, instead are silently treated
5053 as 'x'. The following induces an error, until -std1 is added to get
5054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5055 array size at least. It's necessary to write '\x00'==0 to get something
5056 that's true only with -std1. */
5057int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5058
5059int test (int i, double x);
5060struct s1 {int (*f) (int a);};
5061struct s2 {int (*f) (double a);};
5062int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5063int argc;
5064char **argv;
5065int
5066main ()
5067{
5068return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5069 ;
5070 return 0;
5071}
5072_ACEOF
5073# Don't try gcc -ansi; that turns off useful extensions and
5074# breaks some systems' header files.
5075# AIX -qlanglvl=ansi
5076# Ultrix and OSF/1 -std1
5077# HP-UX 10.20 and later -Ae
5078# HP-UX older versions -Aa -D_HPUX_SOURCE
5079# SVR4 -Xc -D__EXTENSIONS__
5080for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5081do
5082 CC="$ac_save_CC $ac_arg"
5083 rm -f conftest.$ac_objext
5084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5085 (eval $ac_compile) 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
49c96104
SE
5092 { ac_try='test -z "$ac_c_werror_flag"
5093 || test ! -s conftest.err'
5464f5a1
NN
5094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 (eval $ac_try) 2>&5
5096 ac_status=$?
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); }; } &&
5099 { ac_try='test -s conftest.$ac_objext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 (eval $ac_try) 2>&5
5102 ac_status=$?
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 ac_cv_prog_cc_stdc=$ac_arg
5106break
5107else
5108 echo "$as_me: failed program was:" >&5
5109sed 's/^/| /' conftest.$ac_ext >&5
5110
5111fi
5112rm -f conftest.err conftest.$ac_objext
5113done
5114rm -f conftest.$ac_ext conftest.$ac_objext
5115CC=$ac_save_CC
5116
5117fi
5118
5119case "x$ac_cv_prog_cc_stdc" in
5120 x|xno)
5121 echo "$as_me:$LINENO: result: none needed" >&5
5122echo "${ECHO_T}none needed" >&6 ;;
5123 *)
5124 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5125echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5126 CC="$CC $ac_cv_prog_cc_stdc" ;;
5127esac
5128
5129# Some people use a C++ compiler to compile C. Since we use `exit',
5130# in C++ we need to declare it. In case someone uses the same compiler
5131# for both compiling C and C++ we need to have the C++ compiler decide
5132# the declaration of exit, since it's the most demanding environment.
5133cat >conftest.$ac_ext <<_ACEOF
5134#ifndef __cplusplus
5135 choke me
5136#endif
5137_ACEOF
5138rm -f conftest.$ac_objext
5139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>conftest.er1
5141 ac_status=$?
5142 grep -v '^ *+' conftest.er1 >conftest.err
5143 rm -f conftest.er1
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } &&
49c96104
SE
5147 { ac_try='test -z "$ac_c_werror_flag"
5148 || test ! -s conftest.err'
5464f5a1
NN
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 (eval $ac_try) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; } &&
5154 { ac_try='test -s conftest.$ac_objext'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5156 (eval $ac_try) 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 for ac_declaration in \
5161 '' \
5162 'extern "C" void std::exit (int) throw (); using std::exit;' \
5163 'extern "C" void std::exit (int); using std::exit;' \
5164 'extern "C" void exit (int) throw ();' \
5165 'extern "C" void exit (int);' \
5166 'void exit (int);'
5167do
5168 cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h. */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h. */
5174$ac_declaration
5175#include <stdlib.h>
5176int
5177main ()
5178{
5179exit (42);
5180 ;
5181 return 0;
5182}
5183_ACEOF
5184rm -f conftest.$ac_objext
5185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
49c96104
SE
5193 { ac_try='test -z "$ac_c_werror_flag"
5194 || test ! -s conftest.err'
5464f5a1
NN
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest.$ac_objext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 :
5207else
5208 echo "$as_me: failed program was:" >&5
5209sed 's/^/| /' conftest.$ac_ext >&5
5210
5211continue
5212fi
5213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5214 cat >conftest.$ac_ext <<_ACEOF
5215/* confdefs.h. */
5216_ACEOF
5217cat confdefs.h >>conftest.$ac_ext
5218cat >>conftest.$ac_ext <<_ACEOF
5219/* end confdefs.h. */
5220$ac_declaration
5221int
5222main ()
5223{
5224exit (42);
5225 ;
5226 return 0;
5227}
5228_ACEOF
5229rm -f conftest.$ac_objext
5230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231 (eval $ac_compile) 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
49c96104
SE
5238 { ac_try='test -z "$ac_c_werror_flag"
5239 || test ! -s conftest.err'
5464f5a1
NN
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; } &&
5245 { ac_try='test -s conftest.$ac_objext'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 (eval $ac_try) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; }; then
5251 break
5252else
5253 echo "$as_me: failed program was:" >&5
5254sed 's/^/| /' conftest.$ac_ext >&5
5255
5256fi
5257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5258done
5259rm -f conftest*
5260if test -n "$ac_declaration"; then
5261 echo '#ifdef __cplusplus' >>confdefs.h
5262 echo $ac_declaration >>confdefs.h
5263 echo '#endif' >>confdefs.h
252b5132 5264fi
5464f5a1 5265
b3baf5d0 5266else
5464f5a1
NN
5267 echo "$as_me: failed program was:" >&5
5268sed 's/^/| /' conftest.$ac_ext >&5
5269
b3baf5d0 5270fi
5464f5a1
NN
5271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5272ac_ext=c
5273ac_cpp='$CPP $CPPFLAGS'
5274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5277
5464f5a1 5278
4a2a2686
HPN
5279cat >>confdefs.h <<\_ACEOF
5280#define _GNU_SOURCE 1
5281_ACEOF
5282
5283
5284
dcd4b381 5285ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
20e95c23
DJ
5286# If we haven't got the data from the intl directory,
5287# assume NLS is disabled.
5288USE_NLS=no
5289LIBINTL=
5290LIBINTL_DEP=
5291INCINTL=
5292XGETTEXT=
5293GMSGFMT=
5294POSUB=
9d7cbccd
NC
5295
5296if test -f ../intl/config.intl; then
5297 . ../intl/config.intl
20e95c23
DJ
5298fi
5299echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5300echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5301if test x"$USE_NLS" != xyes; then
5302 echo "$as_me:$LINENO: result: no" >&5
5303echo "${ECHO_T}no" >&6
252b5132 5304else
20e95c23
DJ
5305 echo "$as_me:$LINENO: result: yes" >&5
5306echo "${ECHO_T}yes" >&6
5307
5308cat >>confdefs.h <<\_ACEOF
5309#define ENABLE_NLS 1
5310_ACEOF
5311
5312
5313 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5314echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5315 # Look for .po and .gmo files in the source directory.
5316 CATALOGS=
5317 XLINGUAS=
5318 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5319 # If there aren't any .gmo files the shell will give us the
5320 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5321 # weeded out.
5322 case "$cat" in *\**)
5323 continue;;
5324 esac
5325 # The quadruple backslash is collapsed to a double backslash
5326 # by the backticks, then collapsed again by the double quotes,
5327 # leaving us with one backslash in the sed expression (right
5328 # before the dot that mustn't act as a wildcard).
5329 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5330 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5331 # The user is allowed to set LINGUAS to a list of languages to
5332 # install catalogs for. If it's empty that means "all of them."
5333 if test "x$LINGUAS" = x; then
5334 CATALOGS="$CATALOGS $cat"
5335 XLINGUAS="$XLINGUAS $lang"
5336 else
5337 case "$LINGUAS" in *$lang*)
5338 CATALOGS="$CATALOGS $cat"
5339 XLINGUAS="$XLINGUAS $lang"
5340 ;;
5341 esac
5342 fi
5343 done
5344 LINGUAS="$XLINGUAS"
5345 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5346echo "${ECHO_T}$LINGUAS" >&6
5347
5348
5349 DATADIRNAME=share
5350
5351 INSTOBJEXT=.mo
5352
5353 GENCAT=gencat
5354
5355 CATOBJEXT=.gmo
5356
5357fi
5358
5359 MKINSTALLDIRS=
5360 if test -n "$ac_aux_dir"; then
5361 case "$ac_aux_dir" in
5362 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5363 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5364 esac
5365 fi
5366 if test -z "$MKINSTALLDIRS"; then
5367 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5368 fi
5369
5370
5371
5372 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5373echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5374 # Check whether --enable-nls or --disable-nls was given.
5375if test "${enable_nls+set}" = set; then
5376 enableval="$enable_nls"
5377 USE_NLS=$enableval
252b5132 5378else
20e95c23
DJ
5379 USE_NLS=yes
5380fi;
5381 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5382echo "${ECHO_T}$USE_NLS" >&6
5383
5384
5385
5386
5387
5388
5389# Prepare PATH_SEPARATOR.
5390# The user is always right.
5391if test "${PATH_SEPARATOR+set}" != set; then
5392 echo "#! /bin/sh" >conf$$.sh
5393 echo "exit 0" >>conf$$.sh
5394 chmod +x conf$$.sh
5395 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5396 PATH_SEPARATOR=';'
5397 else
5398 PATH_SEPARATOR=:
252b5132 5399 fi
20e95c23
DJ
5400 rm -f conf$$.sh
5401fi
5464f5a1 5402
20e95c23
DJ
5403# Find out how to test for executable files. Don't use a zero-byte file,
5404# as systems may use methods other than mode bits to determine executability.
5405cat >conf$$.file <<_ASEOF
5406#! /bin/sh
5407exit 0
5408_ASEOF
5409chmod +x conf$$.file
5410if test -x conf$$.file >/dev/null 2>&1; then
5411 ac_executable_p="test -x"
5412else
5413 ac_executable_p="test -f"
252b5132 5414fi
20e95c23
DJ
5415rm -f conf$$.file
5416
5417# Extract the first word of "msgfmt", so it can be a program name with args.
5418set dummy msgfmt; ac_word=$2
5419echo "$as_me:$LINENO: checking for $ac_word" >&5
5420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5421if test "${ac_cv_path_MSGFMT+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5423else
5424 case "$MSGFMT" in
5425 [\\/]* | ?:[\\/]*)
5426 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5427 ;;
5428 *)
5429 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5430 for ac_dir in $PATH; do
5431 IFS="$ac_save_IFS"
5432 test -z "$ac_dir" && ac_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5435 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5436 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5437 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5438 break 2
5439 fi
5440 fi
5441 done
5442 done
5443 IFS="$ac_save_IFS"
5444 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5445 ;;
5446esac
252b5132 5447fi
20e95c23
DJ
5448MSGFMT="$ac_cv_path_MSGFMT"
5449if test "$MSGFMT" != ":"; then
5450 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5451echo "${ECHO_T}$MSGFMT" >&6
252b5132 5452else
5464f5a1
NN
5453 echo "$as_me:$LINENO: result: no" >&5
5454echo "${ECHO_T}no" >&6
252b5132
RH
5455fi
5456
20e95c23
DJ
5457 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5458set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
5459echo "$as_me:$LINENO: checking for $ac_word" >&5
5460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 5461if test "${ac_cv_path_GMSGFMT+set}" = set; then
5464f5a1 5462 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5463else
20e95c23
DJ
5464 case $GMSGFMT in
5465 [\\/]* | ?:[\\/]*)
5466 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5467 ;;
5468 *)
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464f5a1
NN
5470for as_dir in $PATH
5471do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20e95c23 5476 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5464f5a1
NN
5477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5479 fi
5480done
5481done
5482
20e95c23
DJ
5483 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5484 ;;
5485esac
252b5132 5486fi
20e95c23
DJ
5487GMSGFMT=$ac_cv_path_GMSGFMT
5488
5489if test -n "$GMSGFMT"; then
5490 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5491echo "${ECHO_T}$GMSGFMT" >&6
252b5132 5492else
5464f5a1
NN
5493 echo "$as_me:$LINENO: result: no" >&5
5494echo "${ECHO_T}no" >&6
b3baf5d0 5495fi
252b5132 5496
20e95c23
DJ
5497
5498
5499# Prepare PATH_SEPARATOR.
5500# The user is always right.
5501if test "${PATH_SEPARATOR+set}" != set; then
5502 echo "#! /bin/sh" >conf$$.sh
5503 echo "exit 0" >>conf$$.sh
5504 chmod +x conf$$.sh
5505 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5506 PATH_SEPARATOR=';'
5507 else
5508 PATH_SEPARATOR=:
5509 fi
5510 rm -f conf$$.sh
252b5132 5511fi
5464f5a1 5512
20e95c23
DJ
5513# Find out how to test for executable files. Don't use a zero-byte file,
5514# as systems may use methods other than mode bits to determine executability.
5515cat >conf$$.file <<_ASEOF
5516#! /bin/sh
5517exit 0
5518_ASEOF
5519chmod +x conf$$.file
5520if test -x conf$$.file >/dev/null 2>&1; then
5521 ac_executable_p="test -x"
5522else
5523 ac_executable_p="test -f"
6be7c12c 5524fi
20e95c23
DJ
5525rm -f conf$$.file
5526
5527# Extract the first word of "xgettext", so it can be a program name with args.
5528set dummy xgettext; ac_word=$2
5529echo "$as_me:$LINENO: checking for $ac_word" >&5
5530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5531if test "${ac_cv_path_XGETTEXT+set}" = set; then
5464f5a1 5532 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5533else
20e95c23
DJ
5534 case "$XGETTEXT" in
5535 [\\/]* | ?:[\\/]*)
5536 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5537 ;;
5538 *)
5539 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5540 for ac_dir in $PATH; do
5541 IFS="$ac_save_IFS"
5542 test -z "$ac_dir" && ac_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5545 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5546 (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
5547 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5548 break 2
5549 fi
5550 fi
5551 done
5552 done
5553 IFS="$ac_save_IFS"
5554 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5555 ;;
5556esac
5557fi
5558XGETTEXT="$ac_cv_path_XGETTEXT"
5559if test "$XGETTEXT" != ":"; then
5560 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5561echo "${ECHO_T}$XGETTEXT" >&6
5562else
5563 echo "$as_me:$LINENO: result: no" >&5
5564echo "${ECHO_T}no" >&6
5565fi
5566
5567 rm -f messages.po
5568
5569
5570# Prepare PATH_SEPARATOR.
5571# The user is always right.
5572if test "${PATH_SEPARATOR+set}" != set; then
5573 echo "#! /bin/sh" >conf$$.sh
5574 echo "exit 0" >>conf$$.sh
5575 chmod +x conf$$.sh
5576 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5577 PATH_SEPARATOR=';'
5464f5a1 5578 else
20e95c23 5579 PATH_SEPARATOR=:
5464f5a1 5580 fi
20e95c23 5581 rm -f conf$$.sh
6be7c12c 5582fi
5464f5a1 5583
20e95c23
DJ
5584# Find out how to test for executable files. Don't use a zero-byte file,
5585# as systems may use methods other than mode bits to determine executability.
5586cat >conf$$.file <<_ASEOF
5587#! /bin/sh
5588exit 0
5589_ASEOF
5590chmod +x conf$$.file
5591if test -x conf$$.file >/dev/null 2>&1; then
5592 ac_executable_p="test -x"
5593else
5594 ac_executable_p="test -f"
5464f5a1 5595fi
20e95c23 5596rm -f conf$$.file
5464f5a1 5597
20e95c23
DJ
5598# Extract the first word of "msgmerge", so it can be a program name with args.
5599set dummy msgmerge; ac_word=$2
5600echo "$as_me:$LINENO: checking for $ac_word" >&5
5601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602if test "${ac_cv_path_MSGMERGE+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5604else
20e95c23
DJ
5605 case "$MSGMERGE" in
5606 [\\/]* | ?:[\\/]*)
5607 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5608 ;;
5609 *)
5610 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5611 for ac_dir in $PATH; do
5612 IFS="$ac_save_IFS"
5613 test -z "$ac_dir" && ac_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5616 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5617 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5618 break 2
5619 fi
5620 fi
5621 done
5464f5a1 5622 done
20e95c23
DJ
5623 IFS="$ac_save_IFS"
5624 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5625 ;;
5626esac
5464f5a1 5627fi
20e95c23
DJ
5628MSGMERGE="$ac_cv_path_MSGMERGE"
5629if test "$MSGMERGE" != ":"; then
5630 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5631echo "${ECHO_T}$MSGMERGE" >&6
252b5132 5632else
20e95c23
DJ
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5464f5a1 5635fi
5464f5a1 5636
5464f5a1 5637
20e95c23
DJ
5638 if test "$GMSGFMT" != ":"; then
5639 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5640 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5641 : ;
5642 else
5643 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5644 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5645echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5646 GMSGFMT=":"
5647 fi
5464f5a1 5648 fi
5464f5a1 5649
20e95c23
DJ
5650 if test "$XGETTEXT" != ":"; then
5651 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5652 (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
5653 : ;
5654 else
5655 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5656echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5657 XGETTEXT=":"
5658 fi
5659 rm -f messages.po
5660 fi
6be7c12c 5661
20e95c23 5662 ac_config_commands="$ac_config_commands default-1"
5464f5a1 5663
5464f5a1
NN
5664
5665
20e95c23
DJ
5666# Permit host specific settings.
5667. ${srcdir}/configure.host
5464f5a1 5668
ac48eca1 5669
20e95c23
DJ
5670# Find a good install program. We prefer a C program (faster),
5671# so one script is as good as another. But avoid the broken or
5672# incompatible versions:
5673# SysV /etc/install, /usr/sbin/install
5674# SunOS /usr/etc/install
5675# IRIX /sbin/install
5676# AIX /bin/install
5677# AmigaOS /C/install, which installs bootblocks on floppy discs
5678# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5679# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5680# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5681# OS/2's system install, which has a completely different semantic
5682# ./install, which can be erroneously created by make from ./install.sh.
5683echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5684echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5685if test -z "$INSTALL"; then
5686if test "${ac_cv_path_install+set}" = set; then
5464f5a1 5687 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5688else
20e95c23
DJ
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690for as_dir in $PATH
5691do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 # Account for people who put trailing slashes in PATH elements.
5695case $as_dir/ in
5696 ./ | .// | /cC/* | \
5697 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5698 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5699 /usr/ucb/* ) ;;
5464f5a1 5700 *)
20e95c23
DJ
5701 # OSF1 and SCO ODT 3.0 have their own names for install.
5702 # Don't use installbsd from OSF since it installs stuff as root
5703 # by default.
5704 for ac_prog in ginstall scoinst install; do
5705 for ac_exec_ext in '' $ac_executable_extensions; do
5706 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5707 if test $ac_prog = install &&
5708 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5709 # AIX install. It has an incompatible calling convention.
5710 :
5711 elif test $ac_prog = install &&
5712 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5713 # program-specific install script used by HP pwplus--don't use.
5714 :
5715 else
5716 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5717 break 3
5718 fi
5719 fi
5720 done
5721 done
5464f5a1
NN
5722 ;;
5723esac
252b5132
RH
5724done
5725
20e95c23 5726
252b5132 5727fi
20e95c23
DJ
5728 if test "${ac_cv_path_install+set}" = set; then
5729 INSTALL=$ac_cv_path_install
5730 else
5731 # As a last resort, use the slow shell script. We don't cache a
5732 # path for INSTALL within a source directory, because that will
5733 # break other packages using the cache if that directory is
5734 # removed, or if the path is relative.
5735 INSTALL=$ac_install_sh
5736 fi
252b5132 5737fi
20e95c23
DJ
5738echo "$as_me:$LINENO: result: $INSTALL" >&5
5739echo "${ECHO_T}$INSTALL" >&6
5464f5a1 5740
20e95c23
DJ
5741# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5742# It thinks the first close brace ends the variable substitution.
5743test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 5744
20e95c23 5745test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6be7c12c 5746
20e95c23 5747test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 5748
252b5132 5749
20e95c23
DJ
5750BFD_HOST_64BIT_LONG=0
5751BFD_HOST_LONG_LONG=0
5752BFD_HOST_64_BIT_DEFINED=0
5753BFD_HOST_64_BIT=
5754BFD_HOST_U_64_BIT=
5464f5a1 5755
20e95c23
DJ
5756echo "$as_me:$LINENO: checking for long long" >&5
5757echo $ECHO_N "checking for long long... $ECHO_C" >&6
5758if test "${bfd_cv_has_long_long+set}" = set; then
5464f5a1 5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5760else
20e95c23 5761 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5762/* confdefs.h. */
5763_ACEOF
5764cat confdefs.h >>conftest.$ac_ext
5765cat >>conftest.$ac_ext <<_ACEOF
5766/* end confdefs.h. */
20e95c23
DJ
5767
5768int
5769main ()
5770{
5771unsigned long long ll = 18446744073709551615ULL;
5772 ;
5773 return 0;
5774}
5464f5a1
NN
5775_ACEOF
5776rm -f conftest.$ac_objext
5777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
49c96104
SE
5785 { ac_try='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
5464f5a1
NN
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
20e95c23 5798 bfd_cv_has_long_long=yes
5464f5a1
NN
5799else
5800 echo "$as_me: failed program was:" >&5
5801sed 's/^/| /' conftest.$ac_ext >&5
5802
20e95c23 5803bfd_cv_has_long_long=no
5464f5a1
NN
5804fi
5805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23 5806fi
5464f5a1 5807
20e95c23
DJ
5808echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5809echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5810if test $bfd_cv_has_long_long = yes; then
5811 BFD_HOST_LONG_LONG=1
5812 ac_ext=c
5813ac_cpp='$CPP $CPPFLAGS'
5814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5818echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5819# On Suns, sometimes $CPP names a directory.
5820if test -n "$CPP" && test -d "$CPP"; then
5821 CPP=
5822fi
5823if test -z "$CPP"; then
5824 if test "${ac_cv_prog_CPP+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827 # Double quotes because CPP needs to be expanded
5828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5829 do
5830 ac_preproc_ok=false
5831for ac_c_preproc_warn_flag in '' yes
5832do
5833 # Use a header file that comes with gcc, so configuring glibc
5834 # with a fresh cross-compiler works.
5835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836 # <limits.h> exists even on freestanding compilers.
5837 # On the NeXT, cc -E runs the code through the compiler's parser,
5838 # not just through cpp. "Syntax error" is here to catch this case.
5839 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5840/* confdefs.h. */
5841_ACEOF
5842cat confdefs.h >>conftest.$ac_ext
5843cat >>conftest.$ac_ext <<_ACEOF
5844/* end confdefs.h. */
20e95c23
DJ
5845#ifdef __STDC__
5846# include <limits.h>
5847#else
5848# include <assert.h>
5849#endif
5850 Syntax error
5464f5a1
NN
5851_ACEOF
5852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } >/dev/null; then
5860 if test -s conftest.err; then
5861 ac_cpp_err=$ac_c_preproc_warn_flag
5862 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5863 else
5864 ac_cpp_err=
5865 fi
252b5132 5866else
5464f5a1 5867 ac_cpp_err=yes
252b5132 5868fi
5464f5a1 5869if test -z "$ac_cpp_err"; then
20e95c23 5870 :
5464f5a1
NN
5871else
5872 echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
20e95c23
DJ
5875 # Broken: fails on valid input.
5876continue
252b5132 5877fi
5464f5a1 5878rm -f conftest.err conftest.$ac_ext
5464f5a1 5879
20e95c23
DJ
5880 # OK, works on sane cases. Now check whether non-existent headers
5881 # can be detected and how.
5464f5a1
NN
5882 cat >conftest.$ac_ext <<_ACEOF
5883/* confdefs.h. */
5884_ACEOF
5885cat confdefs.h >>conftest.$ac_ext
5886cat >>conftest.$ac_ext <<_ACEOF
5887/* end confdefs.h. */
20e95c23 5888#include <ac_nonexistent.h>
5464f5a1 5889_ACEOF
20e95c23
DJ
5890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1 5892 ac_status=$?
20e95c23
DJ
5893 grep -v '^ *+' conftest.er1 >conftest.err
5894 rm -f conftest.er1
5895 cat conftest.err >&5
5464f5a1 5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
5897 (exit $ac_status); } >/dev/null; then
5898 if test -s conftest.err; then
5899 ac_cpp_err=$ac_c_preproc_warn_flag
5900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5901 else
5902 ac_cpp_err=
5903 fi
5904else
5905 ac_cpp_err=yes
5906fi
5907if test -z "$ac_cpp_err"; then
5908 # Broken: success on invalid input.
5909continue
252b5132 5910else
5464f5a1
NN
5911 echo "$as_me: failed program was:" >&5
5912sed 's/^/| /' conftest.$ac_ext >&5
5913
20e95c23
DJ
5914 # Passes both tests.
5915ac_preproc_ok=:
5916break
252b5132 5917fi
20e95c23 5918rm -f conftest.err conftest.$ac_ext
252b5132 5919
20e95c23
DJ
5920done
5921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5922rm -f conftest.err conftest.$ac_ext
5923if $ac_preproc_ok; then
5924 break
5925fi
5464f5a1 5926
20e95c23
DJ
5927 done
5928 ac_cv_prog_CPP=$CPP
252b5132 5929
252b5132 5930fi
20e95c23 5931 CPP=$ac_cv_prog_CPP
252b5132 5932else
20e95c23 5933 ac_cv_prog_CPP=$CPP
252b5132 5934fi
20e95c23
DJ
5935echo "$as_me:$LINENO: result: $CPP" >&5
5936echo "${ECHO_T}$CPP" >&6
5937ac_preproc_ok=false
5938for ac_c_preproc_warn_flag in '' yes
252b5132 5939do
20e95c23
DJ
5940 # Use a header file that comes with gcc, so configuring glibc
5941 # with a fresh cross-compiler works.
5942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5943 # <limits.h> exists even on freestanding compilers.
5944 # On the NeXT, cc -E runs the code through the compiler's parser,
5945 # not just through cpp. "Syntax error" is here to catch this case.
5464f5a1
NN
5946 cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h. */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h. */
5464f5a1
NN
5952#ifdef __STDC__
5953# include <limits.h>
5954#else
5955# include <assert.h>
5956#endif
20e95c23 5957 Syntax error
5464f5a1 5958_ACEOF
20e95c23
DJ
5959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1
NN
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
5966 (exit $ac_status); } >/dev/null; then
5967 if test -s conftest.err; then
5968 ac_cpp_err=$ac_c_preproc_warn_flag
5969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5970 else
5971 ac_cpp_err=
5972 fi
5973else
5974 ac_cpp_err=yes
5975fi
5976if test -z "$ac_cpp_err"; then
5977 :
5464f5a1
NN
5978else
5979 echo "$as_me: failed program was:" >&5
5980sed 's/^/| /' conftest.$ac_ext >&5
5981
20e95c23
DJ
5982 # Broken: fails on valid input.
5983continue
5464f5a1 5984fi
20e95c23 5985rm -f conftest.err conftest.$ac_ext
252b5132 5986
20e95c23
DJ
5987 # OK, works on sane cases. Now check whether non-existent headers
5988 # can be detected and how.
5989 cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h. */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
5994/* end confdefs.h. */
5995#include <ac_nonexistent.h>
5996_ACEOF
5997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } >/dev/null; then
6005 if test -s conftest.err; then
6006 ac_cpp_err=$ac_c_preproc_warn_flag
6007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6008 else
6009 ac_cpp_err=
6010 fi
6011else
6012 ac_cpp_err=yes
252b5132 6013fi
20e95c23
DJ
6014if test -z "$ac_cpp_err"; then
6015 # Broken: success on invalid input.
6016continue
252b5132 6017else
20e95c23
DJ
6018 echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6020
20e95c23
DJ
6021 # Passes both tests.
6022ac_preproc_ok=:
6023break
252b5132 6024fi
20e95c23 6025rm -f conftest.err conftest.$ac_ext
5464f5a1 6026
20e95c23
DJ
6027done
6028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6029rm -f conftest.err conftest.$ac_ext
6030if $ac_preproc_ok; then
6031 :
252b5132 6032else
20e95c23
DJ
6033 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6034See \`config.log' for more details." >&5
6035echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6036See \`config.log' for more details." >&2;}
6037 { (exit 1); exit 1; }; }
252b5132
RH
6038fi
6039
20e95c23
DJ
6040ac_ext=c
6041ac_cpp='$CPP $CPPFLAGS'
6042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6044ac_compiler_gnu=$ac_cv_c_compiler_gnu
6045
6046
6047echo "$as_me:$LINENO: checking for egrep" >&5
6048echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6049if test "${ac_cv_prog_egrep+set}" = set; then
5464f5a1 6050 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6051else
20e95c23
DJ
6052 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6053 then ac_cv_prog_egrep='grep -E'
6054 else ac_cv_prog_egrep='egrep'
252b5132 6055 fi
252b5132 6056fi
20e95c23
DJ
6057echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6058echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6059 EGREP=$ac_cv_prog_egrep
6060
252b5132 6061
20e95c23
DJ
6062echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6063echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6064if test "${ac_cv_header_stdc+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066else
6067 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6068/* confdefs.h. */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
6072/* end confdefs.h. */
20e95c23
DJ
6073#include <stdlib.h>
6074#include <stdarg.h>
6075#include <string.h>
6076#include <float.h>
252b5132 6077
5464f5a1
NN
6078int
6079main ()
6080{
20e95c23 6081
5464f5a1
NN
6082 ;
6083 return 0;
6084}
6085_ACEOF
20e95c23
DJ
6086rm -f conftest.$ac_objext
6087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
49c96104
SE
6095 { ac_try='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
5464f5a1
NN
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 (eval $ac_try) 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
20e95c23 6102 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
20e95c23 6108 ac_cv_header_stdc=yes
252b5132 6109else
5464f5a1
NN
6110 echo "$as_me: failed program was:" >&5
6111sed 's/^/| /' conftest.$ac_ext >&5
6112
20e95c23 6113ac_cv_header_stdc=no
252b5132 6114fi
20e95c23 6115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6116
20e95c23
DJ
6117if test $ac_cv_header_stdc = yes; then
6118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6119 cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h. */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h. */
6125#include <string.h>
5464f5a1 6126
20e95c23
DJ
6127_ACEOF
6128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6129 $EGREP "memchr" >/dev/null 2>&1; then
6130 :
252b5132 6131else
20e95c23 6132 ac_cv_header_stdc=no
252b5132 6133fi
20e95c23 6134rm -f conftest*
252b5132 6135
252b5132
RH
6136fi
6137
20e95c23
DJ
6138if test $ac_cv_header_stdc = yes; then
6139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6140 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6141/* confdefs.h. */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h. */
20e95c23
DJ
6146#include <stdlib.h>
6147
5464f5a1 6148_ACEOF
20e95c23
DJ
6149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6150 $EGREP "free" >/dev/null 2>&1; then
6151 :
5464f5a1 6152else
20e95c23
DJ
6153 ac_cv_header_stdc=no
6154fi
6155rm -f conftest*
5464f5a1 6156
5464f5a1 6157fi
5464f5a1 6158
20e95c23
DJ
6159if test $ac_cv_header_stdc = yes; then
6160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6161 if test "$cross_compiling" = yes; then
6162 :
6163else
6164 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6165/* confdefs.h. */
6166_ACEOF
6167cat confdefs.h >>conftest.$ac_ext
6168cat >>conftest.$ac_ext <<_ACEOF
6169/* end confdefs.h. */
20e95c23
DJ
6170#include <ctype.h>
6171#if ((' ' & 0x0FF) == 0x020)
6172# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6173# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6174#else
6175# define ISLOWER(c) \
6176 (('a' <= (c) && (c) <= 'i') \
6177 || ('j' <= (c) && (c) <= 'r') \
6178 || ('s' <= (c) && (c) <= 'z'))
6179# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6180#endif
6181
6182#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6183int
6184main ()
6185{
6186 int i;
6187 for (i = 0; i < 256; i++)
6188 if (XOR (islower (i), ISLOWER (i))
6189 || toupper (i) != TOUPPER (i))
6190 exit(2);
6191 exit (0);
6192}
5464f5a1 6193_ACEOF
20e95c23
DJ
6194rm -f conftest$ac_exeext
6195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6196 (eval $ac_link) 2>&5
5464f5a1 6197 ac_status=$?
5464f5a1 6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 :
5464f5a1 6206else
20e95c23
DJ
6207 echo "$as_me: program exited with status $ac_status" >&5
6208echo "$as_me: failed program was:" >&5
5464f5a1
NN
6209sed 's/^/| /' conftest.$ac_ext >&5
6210
20e95c23
DJ
6211( exit $ac_status )
6212ac_cv_header_stdc=no
5464f5a1 6213fi
20e95c23 6214rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5464f5a1 6215fi
252b5132 6216fi
252b5132 6217fi
20e95c23
DJ
6218echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6219echo "${ECHO_T}$ac_cv_header_stdc" >&6
6220if test $ac_cv_header_stdc = yes; then
252b5132 6221
20e95c23
DJ
6222cat >>confdefs.h <<\_ACEOF
6223#define STDC_HEADERS 1
6224_ACEOF
6be7c12c 6225
20e95c23 6226fi
5464f5a1 6227
20e95c23 6228# On IRIX 5.3, sys/types and inttypes.h are conflicting.
252b5132 6229
5464f5a1 6230
252b5132 6231
5464f5a1 6232
252b5132 6233
5464f5a1 6234
252b5132 6235
252b5132 6236
6be7c12c 6237
20e95c23
DJ
6238for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6239 inttypes.h stdint.h unistd.h
5464f5a1 6240do
20e95c23
DJ
6241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6242echo "$as_me:$LINENO: checking for $ac_header" >&5
6243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6244if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464f5a1 6245 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 6246else
5464f5a1
NN
6247 cat >conftest.$ac_ext <<_ACEOF
6248/* confdefs.h. */
6249_ACEOF
6250cat confdefs.h >>conftest.$ac_ext
6251cat >>conftest.$ac_ext <<_ACEOF
6252/* end confdefs.h. */
20e95c23 6253$ac_includes_default
ec317fb1 6254
20e95c23 6255#include <$ac_header>
5464f5a1
NN
6256_ACEOF
6257rm -f conftest.$ac_objext
6258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6259 (eval $ac_compile) 2>conftest.er1
6260 ac_status=$?
6261 grep -v '^ *+' conftest.er1 >conftest.err
6262 rm -f conftest.er1
6263 cat conftest.err >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
49c96104
SE
6266 { ac_try='test -z "$ac_c_werror_flag"
6267 || test ! -s conftest.err'
5464f5a1
NN
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 (eval $ac_try) 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; } &&
6273 { ac_try='test -s conftest.$ac_objext'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 (eval $ac_try) 2>&5
6276 ac_status=$?
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; }; then
20e95c23 6279 eval "$as_ac_Header=yes"
ec317fb1 6280else
5464f5a1
NN
6281 echo "$as_me: failed program was:" >&5
6282sed 's/^/| /' conftest.$ac_ext >&5
6283
20e95c23 6284eval "$as_ac_Header=no"
ec317fb1 6285fi
5464f5a1 6286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23
DJ
6287fi
6288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6290if test `eval echo '${'$as_ac_Header'}'` = yes; then
6291 cat >>confdefs.h <<_ACEOF
6292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6293_ACEOF
6294
ec317fb1
ILT
6295fi
6296
20e95c23
DJ
6297done
6298
6299
6300echo "$as_me:$LINENO: checking for long long" >&5
2ba49b59
KC
6301echo $ECHO_N "checking for long long... $ECHO_C" >&6
6302if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6304else
5464f5a1
NN
6305 cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h. */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h. */
2ba49b59 6311$ac_includes_default
5464f5a1
NN
6312int
6313main ()
6314{
2ba49b59
KC
6315if ((long long *) 0)
6316 return 0;
6317if (sizeof (long long))
6318 return 0;
5464f5a1
NN
6319 ;
6320 return 0;
6321}
6322_ACEOF
6323rm -f conftest.$ac_objext
6324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6325 (eval $ac_compile) 2>conftest.er1
6326 ac_status=$?
6327 grep -v '^ *+' conftest.er1 >conftest.err
6328 rm -f conftest.er1
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } &&
49c96104
SE
6332 { ac_try='test -z "$ac_c_werror_flag"
6333 || test ! -s conftest.err'
5464f5a1
NN
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; } &&
6339 { ac_try='test -s conftest.$ac_objext'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 (eval $ac_try) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
2ba49b59 6345 ac_cv_type_long_long=yes
6726e1ea 6346else
5464f5a1
NN
6347 echo "$as_me: failed program was:" >&5
6348sed 's/^/| /' conftest.$ac_ext >&5
6349
2ba49b59 6350ac_cv_type_long_long=no
6726e1ea 6351fi
5464f5a1 6352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 6353fi
2ba49b59
KC
6354echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6355echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 6356
2ba49b59
KC
6357echo "$as_me:$LINENO: checking size of long long" >&5
6358echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6359if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6361else
2ba49b59
KC
6362 if test "$ac_cv_type_long_long" = yes; then
6363 # The cast to unsigned long works around a bug in the HP C Compiler
6364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6366 # This bug is HP SR number 8606223364.
6367 if test "$cross_compiling" = yes; then
6368 # Depending upon the size, compute the lo and hi bounds.
6369cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6370/* confdefs.h. */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
6374/* end confdefs.h. */
2ba49b59
KC
6375$ac_includes_default
6376int
6377main ()
6378{
6379static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6380test_array [0] = 0
6726e1ea 6381
2ba49b59
KC
6382 ;
6383 return 0;
6384}
6385_ACEOF
6386rm -f conftest.$ac_objext
6387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
49c96104
SE
6395 { ac_try='test -z "$ac_c_werror_flag"
6396 || test ! -s conftest.err'
2ba49b59
KC
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_lo=0 ac_mid=0
6409 while :; do
6410 cat >conftest.$ac_ext <<_ACEOF
6411/* confdefs.h. */
6412_ACEOF
6413cat confdefs.h >>conftest.$ac_ext
6414cat >>conftest.$ac_ext <<_ACEOF
6415/* end confdefs.h. */
6416$ac_includes_default
5464f5a1
NN
6417int
6418main ()
6419{
2ba49b59
KC
6420static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6421test_array [0] = 0
6422
5464f5a1
NN
6423 ;
6424 return 0;
6425}
6426_ACEOF
6427rm -f conftest.$ac_objext
6428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
49c96104
SE
6436 { ac_try='test -z "$ac_c_werror_flag"
6437 || test ! -s conftest.err'
5464f5a1
NN
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; } &&
6443 { ac_try='test -s conftest.$ac_objext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
2ba49b59 6449 ac_hi=$ac_mid; break
6726e1ea 6450else
5464f5a1
NN
6451 echo "$as_me: failed program was:" >&5
6452sed 's/^/| /' conftest.$ac_ext >&5
6453
2ba49b59
KC
6454ac_lo=`expr $ac_mid + 1`
6455 if test $ac_lo -le $ac_mid; then
6456 ac_lo= ac_hi=
6457 break
6458 fi
6459 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 6460fi
5464f5a1 6461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 6462 done
252b5132 6463else
2ba49b59
KC
6464 echo "$as_me: failed program was:" >&5
6465sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6466
5464f5a1
NN
6467cat >conftest.$ac_ext <<_ACEOF
6468/* confdefs.h. */
6469_ACEOF
6470cat confdefs.h >>conftest.$ac_ext
6471cat >>conftest.$ac_ext <<_ACEOF
6472/* end confdefs.h. */
6473$ac_includes_default
2ba49b59
KC
6474int
6475main ()
6476{
6477static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6478test_array [0] = 0
6479
6480 ;
6481 return 0;
6482}
5464f5a1
NN
6483_ACEOF
6484rm -f conftest.$ac_objext
6485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486 (eval $ac_compile) 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
49c96104
SE
6493 { ac_try='test -z "$ac_c_werror_flag"
6494 || test ! -s conftest.err'
5464f5a1
NN
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; } &&
6500 { ac_try='test -s conftest.$ac_objext'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
2ba49b59
KC
6506 ac_hi=-1 ac_mid=-1
6507 while :; do
6508 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6509/* confdefs.h. */
6510_ACEOF
6511cat confdefs.h >>conftest.$ac_ext
6512cat >>conftest.$ac_ext <<_ACEOF
6513/* end confdefs.h. */
2ba49b59
KC
6514$ac_includes_default
6515int
6516main ()
6517{
6518static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6519test_array [0] = 0
6520
6521 ;
6522 return 0;
6523}
5464f5a1 6524_ACEOF
2ba49b59
KC
6525rm -f conftest.$ac_objext
6526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 6533 (exit $ac_status); } &&
49c96104
SE
6534 { ac_try='test -z "$ac_c_werror_flag"
6535 || test ! -s conftest.err'
2ba49b59
KC
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 (eval $ac_try) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 (eval $ac_try) 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 ac_lo=$ac_mid; break
252b5132 6548else
2ba49b59
KC
6549 echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552ac_hi=`expr '(' $ac_mid ')' - 1`
6553 if test $ac_mid -le $ac_hi; then
6554 ac_lo= ac_hi=
6555 break
6556 fi
6557 ac_mid=`expr 2 '*' $ac_mid`
252b5132 6558fi
2ba49b59
KC
6559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6560 done
5464f5a1
NN
6561else
6562 echo "$as_me: failed program was:" >&5
6563sed 's/^/| /' conftest.$ac_ext >&5
6564
2ba49b59 6565ac_lo= ac_hi=
252b5132 6566fi
2ba49b59
KC
6567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6568fi
6569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6570# Binary search between lo and hi bounds.
6571while test "x$ac_lo" != "x$ac_hi"; do
6572 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6573 cat >conftest.$ac_ext <<_ACEOF
6574/* confdefs.h. */
6575_ACEOF
6576cat confdefs.h >>conftest.$ac_ext
6577cat >>conftest.$ac_ext <<_ACEOF
6578/* end confdefs.h. */
6579$ac_includes_default
6580int
6581main ()
6582{
6583static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6584test_array [0] = 0
5464f5a1 6585
2ba49b59
KC
6586 ;
6587 return 0;
6588}
5464f5a1
NN
6589_ACEOF
6590rm -f conftest.$ac_objext
6591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592 (eval $ac_compile) 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
49c96104
SE
6599 { ac_try='test -z "$ac_c_werror_flag"
6600 || test ! -s conftest.err'
5464f5a1
NN
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; } &&
6606 { ac_try='test -s conftest.$ac_objext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
2ba49b59 6612 ac_hi=$ac_mid
5464f5a1
NN
6613else
6614 echo "$as_me: failed program was:" >&5
6615sed 's/^/| /' conftest.$ac_ext >&5
6616
2ba49b59 6617ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
6618fi
6619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
6620done
6621case $ac_lo in
6622?*) ac_cv_sizeof_long_long=$ac_lo;;
6623'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6624See \`config.log' for more details." >&5
6625echo "$as_me: error: cannot compute sizeof (long long), 77
6626See \`config.log' for more details." >&2;}
6627 { (exit 1); exit 1; }; } ;;
6628esac
6629else
6630 if test "$cross_compiling" = yes; then
49c96104
SE
6631 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6632See \`config.log' for more details." >&5
6633echo "$as_me: error: cannot run test program while cross compiling
6634See \`config.log' for more details." >&2;}
2ba49b59
KC
6635 { (exit 1); exit 1; }; }
6636else
6637 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6638/* confdefs.h. */
6639_ACEOF
6640cat confdefs.h >>conftest.$ac_ext
6641cat >>conftest.$ac_ext <<_ACEOF
6642/* end confdefs.h. */
2ba49b59
KC
6643$ac_includes_default
6644long longval () { return (long) (sizeof (long long)); }
6645unsigned long ulongval () { return (long) (sizeof (long long)); }
6646#include <stdio.h>
6647#include <stdlib.h>
6648int
6649main ()
6650{
6651
6652 FILE *f = fopen ("conftest.val", "w");
6653 if (! f)
6654 exit (1);
6655 if (((long) (sizeof (long long))) < 0)
6656 {
6657 long i = longval ();
6658 if (i != ((long) (sizeof (long long))))
6659 exit (1);
6660 fprintf (f, "%ld\n", i);
6661 }
6662 else
6663 {
6664 unsigned long i = ulongval ();
6665 if (i != ((long) (sizeof (long long))))
6666 exit (1);
6667 fprintf (f, "%lu\n", i);
6668 }
6669 exit (ferror (f) || fclose (f) != 0);
6670
6671 ;
6672 return 0;
6673}
5464f5a1 6674_ACEOF
2ba49b59
KC
6675rm -f conftest$ac_exeext
6676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>&5
5464f5a1 6678 ac_status=$?
5464f5a1 6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
6680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6686 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 6687else
2ba49b59
KC
6688 echo "$as_me: program exited with status $ac_status" >&5
6689echo "$as_me: failed program was:" >&5
5464f5a1
NN
6690sed 's/^/| /' conftest.$ac_ext >&5
6691
2ba49b59
KC
6692( exit $ac_status )
6693{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6694See \`config.log' for more details." >&5
6695echo "$as_me: error: cannot compute sizeof (long long), 77
6696See \`config.log' for more details." >&2;}
6697 { (exit 1); exit 1; }; }
252b5132 6698fi
2ba49b59
KC
6699rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6700fi
6701fi
6702rm -f conftest.val
6be7c12c 6703else
2ba49b59 6704 ac_cv_sizeof_long_long=0
5464f5a1 6705fi
5464f5a1 6706fi
2ba49b59
KC
6707echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6708echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6709cat >>confdefs.h <<_ACEOF
6710#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
6711_ACEOF
6712
5464f5a1 6713
2ba49b59 6714fi
252b5132 6715
2ba49b59
KC
6716echo "$as_me:$LINENO: checking for long" >&5
6717echo $ECHO_N "checking for long... $ECHO_C" >&6
6718if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6720else
6721 cat >conftest.$ac_ext <<_ACEOF
6722/* confdefs.h. */
6723_ACEOF
6724cat confdefs.h >>conftest.$ac_ext
6725cat >>conftest.$ac_ext <<_ACEOF
6726/* end confdefs.h. */
2ba49b59 6727$ac_includes_default
5464f5a1
NN
6728int
6729main ()
6730{
2ba49b59
KC
6731if ((long *) 0)
6732 return 0;
6733if (sizeof (long))
6734 return 0;
5464f5a1
NN
6735 ;
6736 return 0;
6737}
6738_ACEOF
6739rm -f conftest.$ac_objext
6740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6741 (eval $ac_compile) 2>conftest.er1
6742 ac_status=$?
6743 grep -v '^ *+' conftest.er1 >conftest.err
6744 rm -f conftest.er1
6745 cat conftest.err >&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } &&
49c96104
SE
6748 { ac_try='test -z "$ac_c_werror_flag"
6749 || test ! -s conftest.err'
5464f5a1
NN
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; } &&
6755 { ac_try='test -s conftest.$ac_objext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
2ba49b59 6761 ac_cv_type_long=yes
252b5132 6762else
5464f5a1
NN
6763 echo "$as_me: failed program was:" >&5
6764sed 's/^/| /' conftest.$ac_ext >&5
6765
2ba49b59 6766ac_cv_type_long=no
252b5132 6767fi
5464f5a1 6768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6769fi
2ba49b59
KC
6770echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6771echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 6772
2ba49b59
KC
6773echo "$as_me:$LINENO: checking size of long" >&5
6774echo $ECHO_N "checking size of long... $ECHO_C" >&6
6775if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777else
2ba49b59
KC
6778 if test "$ac_cv_type_long" = yes; then
6779 # The cast to unsigned long works around a bug in the HP C Compiler
6780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6782 # This bug is HP SR number 8606223364.
6783 if test "$cross_compiling" = yes; then
6784 # Depending upon the size, compute the lo and hi bounds.
6785cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6786/* confdefs.h. */
6787_ACEOF
6788cat confdefs.h >>conftest.$ac_ext
6789cat >>conftest.$ac_ext <<_ACEOF
6790/* end confdefs.h. */
2ba49b59 6791$ac_includes_default
5464f5a1
NN
6792int
6793main ()
6794{
2ba49b59
KC
6795static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6796test_array [0] = 0
6797
5464f5a1
NN
6798 ;
6799 return 0;
6800}
6801_ACEOF
6802rm -f conftest.$ac_objext
6803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804 (eval $ac_compile) 2>conftest.er1
6805 ac_status=$?
6806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
49c96104
SE
6811 { ac_try='test -z "$ac_c_werror_flag"
6812 || test ! -s conftest.err'
5464f5a1
NN
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; } &&
6818 { ac_try='test -s conftest.$ac_objext'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
2ba49b59
KC
6824 ac_lo=0 ac_mid=0
6825 while :; do
6826 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6827/* confdefs.h. */
6828_ACEOF
6829cat confdefs.h >>conftest.$ac_ext
6830cat >>conftest.$ac_ext <<_ACEOF
6831/* end confdefs.h. */
2ba49b59 6832$ac_includes_default
5464f5a1
NN
6833int
6834main ()
6835{
2ba49b59
KC
6836static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6837test_array [0] = 0
6838
5464f5a1
NN
6839 ;
6840 return 0;
6841}
6842_ACEOF
2ba49b59
KC
6843rm -f conftest.$ac_objext
6844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6846 ac_status=$?
6847 grep -v '^ *+' conftest.er1 >conftest.err
6848 rm -f conftest.er1
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
49c96104
SE
6852 { ac_try='test -z "$ac_c_werror_flag"
6853 || test ! -s conftest.err'
5464f5a1
NN
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; } &&
2ba49b59 6859 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6861 (eval $ac_try) 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
2ba49b59 6865 ac_hi=$ac_mid; break
5464f5a1
NN
6866else
6867 echo "$as_me: failed program was:" >&5
6868sed 's/^/| /' conftest.$ac_ext >&5
6869
2ba49b59
KC
6870ac_lo=`expr $ac_mid + 1`
6871 if test $ac_lo -le $ac_mid; then
6872 ac_lo= ac_hi=
6873 break
6874 fi
6875 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 6876fi
2ba49b59
KC
6877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6878 done
6879else
6880 echo "$as_me: failed program was:" >&5
6881sed 's/^/| /' conftest.$ac_ext >&5
6882
6883cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6884/* confdefs.h. */
6885_ACEOF
6886cat confdefs.h >>conftest.$ac_ext
6887cat >>conftest.$ac_ext <<_ACEOF
6888/* end confdefs.h. */
2ba49b59 6889$ac_includes_default
5464f5a1
NN
6890int
6891main ()
6892{
2ba49b59
KC
6893static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6894test_array [0] = 0
6895
5464f5a1
NN
6896 ;
6897 return 0;
6898}
6899_ACEOF
2ba49b59
KC
6900rm -f conftest.$ac_objext
6901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6903 ac_status=$?
6904 grep -v '^ *+' conftest.er1 >conftest.err
6905 rm -f conftest.er1
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
49c96104
SE
6909 { ac_try='test -z "$ac_c_werror_flag"
6910 || test ! -s conftest.err'
5464f5a1
NN
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912 (eval $ac_try) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
2ba49b59 6916 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918 (eval $ac_try) 2>&5
6919 ac_status=$?
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
2ba49b59
KC
6922 ac_hi=-1 ac_mid=-1
6923 while :; do
6924 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6925/* confdefs.h. */
6926_ACEOF
6927cat confdefs.h >>conftest.$ac_ext
6928cat >>conftest.$ac_ext <<_ACEOF
6929/* end confdefs.h. */
2ba49b59 6930$ac_includes_default
5464f5a1
NN
6931int
6932main ()
6933{
2ba49b59
KC
6934static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6935test_array [0] = 0
6936
5464f5a1
NN
6937 ;
6938 return 0;
6939}
6940_ACEOF
2ba49b59
KC
6941rm -f conftest.$ac_objext
6942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
49c96104
SE
6950 { ac_try='test -z "$ac_c_werror_flag"
6951 || test ! -s conftest.err'
5464f5a1
NN
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; } &&
2ba49b59 6957 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
2ba49b59 6963 ac_lo=$ac_mid; break
5464f5a1
NN
6964else
6965 echo "$as_me: failed program was:" >&5
6966sed 's/^/| /' conftest.$ac_ext >&5
6967
2ba49b59
KC
6968ac_hi=`expr '(' $ac_mid ')' - 1`
6969 if test $ac_mid -le $ac_hi; then
6970 ac_lo= ac_hi=
6971 break
6972 fi
6973 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 6974fi
2ba49b59
KC
6975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6976 done
6977else
6978 echo "$as_me: failed program was:" >&5
6979sed 's/^/| /' conftest.$ac_ext >&5
6980
6981ac_lo= ac_hi=
6982fi
6983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6984fi
6985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6986# Binary search between lo and hi bounds.
6987while test "x$ac_lo" != "x$ac_hi"; do
6988 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6989 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6990/* confdefs.h. */
6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h. */
2ba49b59 6995$ac_includes_default
5464f5a1
NN
6996int
6997main ()
6998{
2ba49b59
KC
6999static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7000test_array [0] = 0
7001
5464f5a1
NN
7002 ;
7003 return 0;
7004}
7005_ACEOF
2ba49b59
KC
7006rm -f conftest.$ac_objext
7007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7008 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
7009 ac_status=$?
7010 grep -v '^ *+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } &&
49c96104
SE
7015 { ac_try='test -z "$ac_c_werror_flag"
7016 || test ! -s conftest.err'
5464f5a1
NN
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; } &&
2ba49b59 7022 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
2ba49b59 7028 ac_hi=$ac_mid
5464f5a1
NN
7029else
7030 echo "$as_me: failed program was:" >&5
7031sed 's/^/| /' conftest.$ac_ext >&5
7032
2ba49b59 7033ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 7034fi
2ba49b59
KC
7035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7036done
7037case $ac_lo in
7038?*) ac_cv_sizeof_long=$ac_lo;;
7039'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7040See \`config.log' for more details." >&5
7041echo "$as_me: error: cannot compute sizeof (long), 77
7042See \`config.log' for more details." >&2;}
7043 { (exit 1); exit 1; }; } ;;
7044esac
7045else
7046 if test "$cross_compiling" = yes; then
49c96104
SE
7047 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7048See \`config.log' for more details." >&5
7049echo "$as_me: error: cannot run test program while cross compiling
7050See \`config.log' for more details." >&2;}
2ba49b59 7051 { (exit 1); exit 1; }; }
2e0fbf77
JW
7052else
7053 cat >conftest.$ac_ext <<_ACEOF
7054/* confdefs.h. */
7055_ACEOF
7056cat confdefs.h >>conftest.$ac_ext
7057cat >>conftest.$ac_ext <<_ACEOF
7058/* end confdefs.h. */
2ba49b59
KC
7059$ac_includes_default
7060long longval () { return (long) (sizeof (long)); }
7061unsigned long ulongval () { return (long) (sizeof (long)); }
7062#include <stdio.h>
7063#include <stdlib.h>
2e0fbf77
JW
7064int
7065main ()
7066{
7067
2ba49b59
KC
7068 FILE *f = fopen ("conftest.val", "w");
7069 if (! f)
7070 exit (1);
7071 if (((long) (sizeof (long))) < 0)
7072 {
7073 long i = longval ();
7074 if (i != ((long) (sizeof (long))))
7075 exit (1);
7076 fprintf (f, "%ld\n", i);
7077 }
7078 else
7079 {
7080 unsigned long i = ulongval ();
7081 if (i != ((long) (sizeof (long))))
7082 exit (1);
7083 fprintf (f, "%lu\n", i);
7084 }
7085 exit (ferror (f) || fclose (f) != 0);
7086
2e0fbf77
JW
7087 ;
7088 return 0;
7089}
7090_ACEOF
2ba49b59
KC
7091rm -f conftest$ac_exeext
7092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7093 (eval $ac_link) 2>&5
2e0fbf77
JW
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 7096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 (eval $ac_try) 2>&5
7099 ac_status=$?
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
2ba49b59 7102 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 7103else
2ba49b59
KC
7104 echo "$as_me: program exited with status $ac_status" >&5
7105echo "$as_me: failed program was:" >&5
2e0fbf77
JW
7106sed 's/^/| /' conftest.$ac_ext >&5
7107
2ba49b59
KC
7108( exit $ac_status )
7109{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7110See \`config.log' for more details." >&5
7111echo "$as_me: error: cannot compute sizeof (long), 77
7112See \`config.log' for more details." >&2;}
7113 { (exit 1); exit 1; }; }
2e0fbf77 7114fi
2ba49b59 7115rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 7116fi
2ba49b59
KC
7117fi
7118rm -f conftest.val
7119else
7120 ac_cv_sizeof_long=0
7121fi
7122fi
7123echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7124echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7125cat >>confdefs.h <<_ACEOF
7126#define SIZEOF_LONG $ac_cv_sizeof_long
7127_ACEOF
7128
7129
7130if test "x${ac_cv_sizeof_long}" = "x8"; then
7131 host64=true
7132 BFD_HOST_64BIT_LONG=1
7133 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7134 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7135elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7136 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7137 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7138fi
7139
7140if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7141 BFD_HOST_64_BIT_DEFINED=1
7142 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7143 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7144fi
7145
7146
7147
7148
7149
7150
7151
7152# Put a plausible default for CC_FOR_BUILD in Makefile.
7153if test -z "$CC_FOR_BUILD"; then
7154 if test "x$cross_compiling" = "xno"; then
7155 CC_FOR_BUILD='$(CC)'
7156 else
7157 CC_FOR_BUILD=gcc
7158 fi
7159fi
7160
7161# Also set EXEEXT_FOR_BUILD.
7162if test "x$cross_compiling" = "xno"; then
7163 EXEEXT_FOR_BUILD='$(EXEEXT)'
7164else
7165 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7166echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7167if test "${bfd_cv_build_exeext+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7169else
7170 rm -f conftest*
7171 echo 'int main () { return 0; }' > conftest.c
7172 bfd_cv_build_exeext=
7173 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7174 for file in conftest.*; do
7175 case $file in
7176 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7177 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7178 esac
7179 done
7180 rm -f conftest*
7181 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7182fi
7183echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7184echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7185 EXEEXT_FOR_BUILD=""
7186 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7187fi
7188
7189
7190
7191
7192
7193
7194
7195
7196for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7197do
7198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7199if eval "test \"\${$as_ac_Header+set}\" = set"; then
7200 echo "$as_me:$LINENO: checking for $ac_header" >&5
7201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7202if eval "test \"\${$as_ac_Header+set}\" = set"; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204fi
7205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7207else
7208 # Is the header compilable?
7209echo "$as_me:$LINENO: checking $ac_header usability" >&5
7210echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7211cat >conftest.$ac_ext <<_ACEOF
7212/* confdefs.h. */
7213_ACEOF
7214cat confdefs.h >>conftest.$ac_ext
7215cat >>conftest.$ac_ext <<_ACEOF
7216/* end confdefs.h. */
7217$ac_includes_default
7218#include <$ac_header>
7219_ACEOF
7220rm -f conftest.$ac_objext
7221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222 (eval $ac_compile) 2>conftest.er1
7223 ac_status=$?
7224 grep -v '^ *+' conftest.er1 >conftest.err
7225 rm -f conftest.er1
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } &&
49c96104
SE
7229 { ac_try='test -z "$ac_c_werror_flag"
7230 || test ! -s conftest.err'
2ba49b59
KC
7231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 (eval $ac_try) 2>&5
7233 ac_status=$?
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); }; } &&
7236 { ac_try='test -s conftest.$ac_objext'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 (eval $ac_try) 2>&5
7239 ac_status=$?
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; }; then
7242 ac_header_compiler=yes
7243else
7244 echo "$as_me: failed program was:" >&5
7245sed 's/^/| /' conftest.$ac_ext >&5
7246
7247ac_header_compiler=no
7248fi
7249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7250echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7251echo "${ECHO_T}$ac_header_compiler" >&6
7252
7253# Is the header present?
7254echo "$as_me:$LINENO: checking $ac_header presence" >&5
7255echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7256cat >conftest.$ac_ext <<_ACEOF
7257/* confdefs.h. */
7258_ACEOF
7259cat confdefs.h >>conftest.$ac_ext
7260cat >>conftest.$ac_ext <<_ACEOF
7261/* end confdefs.h. */
7262#include <$ac_header>
7263_ACEOF
7264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } >/dev/null; then
7272 if test -s conftest.err; then
7273 ac_cpp_err=$ac_c_preproc_warn_flag
7274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7275 else
7276 ac_cpp_err=
7277 fi
7278else
7279 ac_cpp_err=yes
7280fi
7281if test -z "$ac_cpp_err"; then
7282 ac_header_preproc=yes
7283else
7284 echo "$as_me: failed program was:" >&5
7285sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 ac_header_preproc=no
7288fi
7289rm -f conftest.err conftest.$ac_ext
7290echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7291echo "${ECHO_T}$ac_header_preproc" >&6
7292
7293# So? What about this header?
7294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7295 yes:no: )
7296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7297echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7299echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7300 ac_header_preproc=yes
7301 ;;
7302 no:yes:* )
7303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7304echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7306echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7308echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7310echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7312echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7314echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7315 (
7316 cat <<\_ASBOX
7317## ------------------------------------------ ##
7318## Report this to the AC_PACKAGE_NAME lists. ##
7319## ------------------------------------------ ##
7320_ASBOX
7321 ) |
7322 sed "s/^/$as_me: WARNING: /" >&2
7323 ;;
7324esac
7325echo "$as_me:$LINENO: checking for $ac_header" >&5
7326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7327if eval "test \"\${$as_ac_Header+set}\" = set"; then
7328 echo $ECHO_N "(cached) $ECHO_C" >&6
7329else
7330 eval "$as_ac_Header=\$ac_header_preproc"
7331fi
7332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7334
7335fi
7336if test `eval echo '${'$as_ac_Header'}'` = yes; then
7337 cat >>confdefs.h <<_ACEOF
7338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7339_ACEOF
7340
7341fi
7342
7343done
7344
7345
7346
7347
7348for ac_header in fcntl.h sys/file.h sys/time.h
7349do
7350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7351if eval "test \"\${$as_ac_Header+set}\" = set"; then
7352 echo "$as_me:$LINENO: checking for $ac_header" >&5
7353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7354if eval "test \"\${$as_ac_Header+set}\" = set"; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7356fi
7357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7359else
7360 # Is the header compilable?
7361echo "$as_me:$LINENO: checking $ac_header usability" >&5
7362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7363cat >conftest.$ac_ext <<_ACEOF
7364/* confdefs.h. */
7365_ACEOF
7366cat confdefs.h >>conftest.$ac_ext
7367cat >>conftest.$ac_ext <<_ACEOF
7368/* end confdefs.h. */
7369$ac_includes_default
7370#include <$ac_header>
7371_ACEOF
7372rm -f conftest.$ac_objext
7373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7374 (eval $ac_compile) 2>conftest.er1
7375 ac_status=$?
7376 grep -v '^ *+' conftest.er1 >conftest.err
7377 rm -f conftest.er1
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } &&
49c96104
SE
7381 { ac_try='test -z "$ac_c_werror_flag"
7382 || test ! -s conftest.err'
2ba49b59
KC
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 (eval $ac_try) 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; } &&
7388 { ac_try='test -s conftest.$ac_objext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 ac_header_compiler=yes
7395else
7396 echo "$as_me: failed program was:" >&5
7397sed 's/^/| /' conftest.$ac_ext >&5
7398
7399ac_header_compiler=no
7400fi
7401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7402echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7403echo "${ECHO_T}$ac_header_compiler" >&6
7404
7405# Is the header present?
7406echo "$as_me:$LINENO: checking $ac_header presence" >&5
7407echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7408cat >conftest.$ac_ext <<_ACEOF
7409/* confdefs.h. */
7410_ACEOF
7411cat confdefs.h >>conftest.$ac_ext
7412cat >>conftest.$ac_ext <<_ACEOF
7413/* end confdefs.h. */
7414#include <$ac_header>
7415_ACEOF
7416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } >/dev/null; then
7424 if test -s conftest.err; then
7425 ac_cpp_err=$ac_c_preproc_warn_flag
7426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7427 else
7428 ac_cpp_err=
7429 fi
7430else
7431 ac_cpp_err=yes
7432fi
7433if test -z "$ac_cpp_err"; then
7434 ac_header_preproc=yes
7435else
7436 echo "$as_me: failed program was:" >&5
7437sed 's/^/| /' conftest.$ac_ext >&5
7438
7439 ac_header_preproc=no
7440fi
7441rm -f conftest.err conftest.$ac_ext
7442echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7443echo "${ECHO_T}$ac_header_preproc" >&6
7444
7445# So? What about this header?
7446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7447 yes:no: )
7448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7449echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7451echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7452 ac_header_preproc=yes
7453 ;;
7454 no:yes:* )
7455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7456echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7458echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7460echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7462echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7466echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7467 (
7468 cat <<\_ASBOX
7469## ------------------------------------------ ##
7470## Report this to the AC_PACKAGE_NAME lists. ##
7471## ------------------------------------------ ##
7472_ASBOX
7473 ) |
7474 sed "s/^/$as_me: WARNING: /" >&2
7475 ;;
7476esac
7477echo "$as_me:$LINENO: checking for $ac_header" >&5
7478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7479if eval "test \"\${$as_ac_Header+set}\" = set"; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7481else
7482 eval "$as_ac_Header=\$ac_header_preproc"
7483fi
7484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7486
7487fi
7488if test `eval echo '${'$as_ac_Header'}'` = yes; then
7489 cat >>confdefs.h <<_ACEOF
7490#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7491_ACEOF
7492
7493fi
7494
7495done
7496
7497echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7498echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7499if test "${ac_cv_header_time+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501else
7502 cat >conftest.$ac_ext <<_ACEOF
7503/* confdefs.h. */
7504_ACEOF
7505cat confdefs.h >>conftest.$ac_ext
7506cat >>conftest.$ac_ext <<_ACEOF
7507/* end confdefs.h. */
7508#include <sys/types.h>
7509#include <sys/time.h>
7510#include <time.h>
7511
7512int
7513main ()
7514{
7515if ((struct tm *) 0)
7516return 0;
7517 ;
7518 return 0;
7519}
7520_ACEOF
7521rm -f conftest.$ac_objext
7522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523 (eval $ac_compile) 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
49c96104
SE
7530 { ac_try='test -z "$ac_c_werror_flag"
7531 || test ! -s conftest.err'
2ba49b59
KC
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest.$ac_objext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_cv_header_time=yes
7544else
7545 echo "$as_me: failed program was:" >&5
7546sed 's/^/| /' conftest.$ac_ext >&5
7547
7548ac_cv_header_time=no
7549fi
7550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7551fi
7552echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7553echo "${ECHO_T}$ac_cv_header_time" >&6
7554if test $ac_cv_header_time = yes; then
7555
7556cat >>confdefs.h <<\_ACEOF
7557#define TIME_WITH_SYS_TIME 1
7558_ACEOF
7559
7560fi
7561
7562
7563
7564
7565
7566
7567ac_header_dirent=no
7568for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7569 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7570echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7571echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7572if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574else
7575 cat >conftest.$ac_ext <<_ACEOF
7576/* confdefs.h. */
7577_ACEOF
7578cat confdefs.h >>conftest.$ac_ext
7579cat >>conftest.$ac_ext <<_ACEOF
7580/* end confdefs.h. */
7581#include <sys/types.h>
7582#include <$ac_hdr>
7583
7584int
7585main ()
7586{
7587if ((DIR *) 0)
7588return 0;
7589 ;
7590 return 0;
7591}
7592_ACEOF
7593rm -f conftest.$ac_objext
7594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595 (eval $ac_compile) 2>conftest.er1
7596 ac_status=$?
7597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
49c96104
SE
7602 { ac_try='test -z "$ac_c_werror_flag"
7603 || test ! -s conftest.err'
2ba49b59
KC
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 (eval $ac_try) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; } &&
7609 { ac_try='test -s conftest.$ac_objext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 (eval $ac_try) 2>&5
7612 ac_status=$?
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 eval "$as_ac_Header=yes"
7616else
7617 echo "$as_me: failed program was:" >&5
7618sed 's/^/| /' conftest.$ac_ext >&5
7619
7620eval "$as_ac_Header=no"
7621fi
7622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7623fi
7624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7626if test `eval echo '${'$as_ac_Header'}'` = yes; then
7627 cat >>confdefs.h <<_ACEOF
7628#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7629_ACEOF
7630
7631ac_header_dirent=$ac_hdr; break
7632fi
7633
7634done
7635# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7636if test $ac_header_dirent = dirent.h; then
7637 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7638echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7639if test "${ac_cv_search_opendir+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641else
7642 ac_func_search_save_LIBS=$LIBS
7643ac_cv_search_opendir=no
7644cat >conftest.$ac_ext <<_ACEOF
7645/* confdefs.h. */
7646_ACEOF
7647cat confdefs.h >>conftest.$ac_ext
7648cat >>conftest.$ac_ext <<_ACEOF
7649/* end confdefs.h. */
7650
7651/* Override any gcc2 internal prototype to avoid an error. */
7652#ifdef __cplusplus
7653extern "C"
7654#endif
7655/* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7657char opendir ();
7658int
7659main ()
7660{
7661opendir ();
7662 ;
7663 return 0;
7664}
7665_ACEOF
7666rm -f conftest.$ac_objext conftest$ac_exeext
7667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7668 (eval $ac_link) 2>conftest.er1
7669 ac_status=$?
7670 grep -v '^ *+' conftest.er1 >conftest.err
7671 rm -f conftest.er1
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } &&
49c96104
SE
7675 { ac_try='test -z "$ac_c_werror_flag"
7676 || test ! -s conftest.err'
2ba49b59
KC
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 (eval $ac_try) 2>&5
7679 ac_status=$?
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; } &&
7682 { ac_try='test -s conftest$ac_exeext'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7688 ac_cv_search_opendir="none required"
7689else
7690 echo "$as_me: failed program was:" >&5
7691sed 's/^/| /' conftest.$ac_ext >&5
7692
7693fi
7694rm -f conftest.err conftest.$ac_objext \
7695 conftest$ac_exeext conftest.$ac_ext
7696if test "$ac_cv_search_opendir" = no; then
7697 for ac_lib in dir; do
7698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7699 cat >conftest.$ac_ext <<_ACEOF
7700/* confdefs.h. */
7701_ACEOF
7702cat confdefs.h >>conftest.$ac_ext
7703cat >>conftest.$ac_ext <<_ACEOF
7704/* end confdefs.h. */
7705
7706/* Override any gcc2 internal prototype to avoid an error. */
7707#ifdef __cplusplus
7708extern "C"
7709#endif
7710/* We use char because int might match the return type of a gcc2
7711 builtin and then its argument prototype would still apply. */
7712char opendir ();
7713int
7714main ()
7715{
7716opendir ();
7717 ;
7718 return 0;
7719}
7720_ACEOF
7721rm -f conftest.$ac_objext conftest$ac_exeext
7722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7723 (eval $ac_link) 2>conftest.er1
7724 ac_status=$?
7725 grep -v '^ *+' conftest.er1 >conftest.err
7726 rm -f conftest.er1
7727 cat conftest.err >&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
49c96104
SE
7730 { ac_try='test -z "$ac_c_werror_flag"
7731 || test ! -s conftest.err'
2ba49b59
KC
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 (eval $ac_try) 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; } &&
7737 { ac_try='test -s conftest$ac_exeext'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; }; then
7743 ac_cv_search_opendir="-l$ac_lib"
7744break
7745else
7746 echo "$as_me: failed program was:" >&5
7747sed 's/^/| /' conftest.$ac_ext >&5
7748
7749fi
7750rm -f conftest.err conftest.$ac_objext \
7751 conftest$ac_exeext conftest.$ac_ext
7752 done
7753fi
7754LIBS=$ac_func_search_save_LIBS
7755fi
7756echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7757echo "${ECHO_T}$ac_cv_search_opendir" >&6
7758if test "$ac_cv_search_opendir" != no; then
7759 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7760
7761fi
7762
7763else
7764 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7765echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7766if test "${ac_cv_search_opendir+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7768else
7769 ac_func_search_save_LIBS=$LIBS
7770ac_cv_search_opendir=no
7771cat >conftest.$ac_ext <<_ACEOF
7772/* confdefs.h. */
7773_ACEOF
7774cat confdefs.h >>conftest.$ac_ext
7775cat >>conftest.$ac_ext <<_ACEOF
7776/* end confdefs.h. */
7777
7778/* Override any gcc2 internal prototype to avoid an error. */
7779#ifdef __cplusplus
7780extern "C"
7781#endif
7782/* We use char because int might match the return type of a gcc2
7783 builtin and then its argument prototype would still apply. */
7784char opendir ();
7785int
7786main ()
7787{
7788opendir ();
7789 ;
7790 return 0;
7791}
7792_ACEOF
7793rm -f conftest.$ac_objext conftest$ac_exeext
7794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7795 (eval $ac_link) 2>conftest.er1
7796 ac_status=$?
7797 grep -v '^ *+' conftest.er1 >conftest.err
7798 rm -f conftest.er1
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
49c96104
SE
7802 { ac_try='test -z "$ac_c_werror_flag"
7803 || test ! -s conftest.err'
2ba49b59
KC
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; } &&
7809 { ac_try='test -s conftest$ac_exeext'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 ac_cv_search_opendir="none required"
7816else
7817 echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820fi
7821rm -f conftest.err conftest.$ac_objext \
7822 conftest$ac_exeext conftest.$ac_ext
7823if test "$ac_cv_search_opendir" = no; then
7824 for ac_lib in x; do
7825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7826 cat >conftest.$ac_ext <<_ACEOF
7827/* confdefs.h. */
7828_ACEOF
7829cat confdefs.h >>conftest.$ac_ext
7830cat >>conftest.$ac_ext <<_ACEOF
7831/* end confdefs.h. */
7832
7833/* Override any gcc2 internal prototype to avoid an error. */
7834#ifdef __cplusplus
7835extern "C"
7836#endif
7837/* We use char because int might match the return type of a gcc2
7838 builtin and then its argument prototype would still apply. */
7839char opendir ();
7840int
7841main ()
7842{
7843opendir ();
7844 ;
7845 return 0;
7846}
7847_ACEOF
7848rm -f conftest.$ac_objext conftest$ac_exeext
7849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7850 (eval $ac_link) 2>conftest.er1
7851 ac_status=$?
7852 grep -v '^ *+' conftest.er1 >conftest.err
7853 rm -f conftest.er1
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } &&
49c96104
SE
7857 { ac_try='test -z "$ac_c_werror_flag"
7858 || test ! -s conftest.err'
2ba49b59
KC
7859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860 (eval $ac_try) 2>&5
7861 ac_status=$?
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; } &&
7864 { ac_try='test -s conftest$ac_exeext'
7865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 (eval $ac_try) 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); }; }; then
7870 ac_cv_search_opendir="-l$ac_lib"
7871break
7872else
7873 echo "$as_me: failed program was:" >&5
7874sed 's/^/| /' conftest.$ac_ext >&5
7875
7876fi
7877rm -f conftest.err conftest.$ac_objext \
7878 conftest$ac_exeext conftest.$ac_ext
7879 done
7880fi
7881LIBS=$ac_func_search_save_LIBS
7882fi
7883echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7884echo "${ECHO_T}$ac_cv_search_opendir" >&6
7885if test "$ac_cv_search_opendir" != no; then
7886 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7887
7888fi
7889
7890fi
7891
7892echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7893echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7894if test "${gcc_cv_header_string+set}" = set; then
7895 echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897 cat >conftest.$ac_ext <<_ACEOF
7898/* confdefs.h. */
7899_ACEOF
7900cat confdefs.h >>conftest.$ac_ext
7901cat >>conftest.$ac_ext <<_ACEOF
7902/* end confdefs.h. */
7903#include <string.h>
7904#include <strings.h>
7905int
7906main ()
7907{
7908
7909 ;
7910 return 0;
7911}
7912_ACEOF
7913rm -f conftest.$ac_objext
7914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
49c96104
SE
7922 { ac_try='test -z "$ac_c_werror_flag"
7923 || test ! -s conftest.err'
2ba49b59
KC
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; } &&
7929 { ac_try='test -s conftest.$ac_objext'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 (eval $ac_try) 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 gcc_cv_header_string=yes
7936else
7937 echo "$as_me: failed program was:" >&5
7938sed 's/^/| /' conftest.$ac_ext >&5
7939
7940gcc_cv_header_string=no
7941fi
7942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7943fi
7944echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7945echo "${ECHO_T}$gcc_cv_header_string" >&6
7946if test $gcc_cv_header_string = yes; then
7947
7948cat >>confdefs.h <<\_ACEOF
7949#define STRING_WITH_STRINGS 1
7950_ACEOF
7951
2e0fbf77
JW
7952fi
7953
5464f5a1
NN
7954
7955
7956
7957
7958
7959
7960
633fd09f 7961for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 7962do
5464f5a1
NN
7963as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7964echo "$as_me:$LINENO: checking for $ac_func" >&5
7965echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7966if eval "test \"\${$as_ac_var+set}\" = set"; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969 cat >conftest.$ac_ext <<_ACEOF
7970/* confdefs.h. */
7971_ACEOF
7972cat confdefs.h >>conftest.$ac_ext
7973cat >>conftest.$ac_ext <<_ACEOF
7974/* end confdefs.h. */
7975/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7977#define $ac_func innocuous_$ac_func
7978
252b5132 7979/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7980 which can conflict with char $ac_func (); below.
7981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7982 <limits.h> exists even on freestanding compilers. */
7983
7984#ifdef __STDC__
7985# include <limits.h>
7986#else
7987# include <assert.h>
7988#endif
6be7c12c 7989
5464f5a1 7990#undef $ac_func
252b5132 7991
5464f5a1
NN
7992/* Override any gcc2 internal prototype to avoid an error. */
7993#ifdef __cplusplus
7994extern "C"
7995{
7996#endif
7997/* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
7999char $ac_func ();
252b5132
RH
8000/* The GNU C library defines this for functions which it implements
8001 to always fail with ENOSYS. Some functions are actually named
8002 something starting with __ and the normal name is an alias. */
8003#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8004choke me
8005#else
5464f5a1
NN
8006char (*f) () = $ac_func;
8007#endif
8008#ifdef __cplusplus
8009}
252b5132
RH
8010#endif
8011
5464f5a1
NN
8012int
8013main ()
8014{
8015return f != $ac_func;
8016 ;
8017 return 0;
8018}
8019_ACEOF
8020rm -f conftest.$ac_objext conftest$ac_exeext
8021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
49c96104
SE
8029 { ac_try='test -z "$ac_c_werror_flag"
8030 || test ! -s conftest.err'
5464f5a1
NN
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 (eval $ac_try) 2>&5
8033 ac_status=$?
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try='test -s conftest$ac_exeext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8038 (eval $ac_try) 2>&5
8039 ac_status=$?
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8042 eval "$as_ac_var=yes"
8043else
8044 echo "$as_me: failed program was:" >&5
8045sed 's/^/| /' conftest.$ac_ext >&5
8046
8047eval "$as_ac_var=no"
8048fi
8049rm -f conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051fi
8052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8053echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8054if test `eval echo '${'$as_ac_var'}'` = yes; then
8055 cat >>confdefs.h <<_ACEOF
8056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8057_ACEOF
252b5132 8058
252b5132
RH
8059fi
8060done
8061
5464f5a1 8062
49c97a80
ILT
8063for ac_func in strtoull
8064do
5464f5a1
NN
8065as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8066echo "$as_me:$LINENO: checking for $ac_func" >&5
8067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8068if eval "test \"\${$as_ac_var+set}\" = set"; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071 cat >conftest.$ac_ext <<_ACEOF
8072/* confdefs.h. */
8073_ACEOF
8074cat confdefs.h >>conftest.$ac_ext
8075cat >>conftest.$ac_ext <<_ACEOF
8076/* end confdefs.h. */
8077/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8079#define $ac_func innocuous_$ac_func
8080
49c97a80 8081/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
8082 which can conflict with char $ac_func (); below.
8083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8084 <limits.h> exists even on freestanding compilers. */
8085
8086#ifdef __STDC__
8087# include <limits.h>
8088#else
8089# include <assert.h>
8090#endif
49c97a80 8091
5464f5a1 8092#undef $ac_func
49c97a80 8093
5464f5a1
NN
8094/* Override any gcc2 internal prototype to avoid an error. */
8095#ifdef __cplusplus
8096extern "C"
8097{
8098#endif
8099/* We use char because int might match the return type of a gcc2
8100 builtin and then its argument prototype would still apply. */
8101char $ac_func ();
49c97a80
ILT
8102/* The GNU C library defines this for functions which it implements
8103 to always fail with ENOSYS. Some functions are actually named
8104 something starting with __ and the normal name is an alias. */
8105#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8106choke me
8107#else
5464f5a1
NN
8108char (*f) () = $ac_func;
8109#endif
8110#ifdef __cplusplus
8111}
49c97a80
ILT
8112#endif
8113
5464f5a1
NN
8114int
8115main ()
8116{
8117return f != $ac_func;
8118 ;
8119 return 0;
8120}
8121_ACEOF
8122rm -f conftest.$ac_objext conftest$ac_exeext
8123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124 (eval $ac_link) 2>conftest.er1
8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
49c96104
SE
8131 { ac_try='test -z "$ac_c_werror_flag"
8132 || test ! -s conftest.err'
5464f5a1
NN
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 eval "$as_ac_var=yes"
8145else
8146 echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
8149eval "$as_ac_var=no"
8150fi
8151rm -f conftest.err conftest.$ac_objext \
8152 conftest$ac_exeext conftest.$ac_ext
8153fi
8154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8155echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8156if test `eval echo '${'$as_ac_var'}'` = yes; then
8157 cat >>confdefs.h <<_ACEOF
8158#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8159_ACEOF
49c97a80 8160
49c97a80
ILT
8161fi
8162done
8163
6be7c12c 8164
2e9ebff5
JG
8165echo "$as_me:$LINENO: checking whether basename is declared" >&5
8166echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8167if test "${ac_cv_have_decl_basename+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169else
8170 cat >conftest.$ac_ext <<_ACEOF
8171/* confdefs.h. */
8172_ACEOF
8173cat confdefs.h >>conftest.$ac_ext
8174cat >>conftest.$ac_ext <<_ACEOF
8175/* end confdefs.h. */
ec7b76fe 8176$ac_includes_default
2e9ebff5
JG
8177int
8178main ()
8179{
8180#ifndef basename
8181 char *p = (char *) basename;
8182#endif
8183
8184 ;
8185 return 0;
8186}
8187_ACEOF
8188rm -f conftest.$ac_objext
8189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
49c96104
SE
8197 { ac_try='test -z "$ac_c_werror_flag"
8198 || test ! -s conftest.err'
2e9ebff5
JG
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 (eval $ac_try) 2>&5
8207 ac_status=$?
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8210 ac_cv_have_decl_basename=yes
8211else
8212 echo "$as_me: failed program was:" >&5
8213sed 's/^/| /' conftest.$ac_ext >&5
8214
8215ac_cv_have_decl_basename=no
8216fi
8217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8218fi
8219echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8220echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8221if test $ac_cv_have_decl_basename = yes; then
8222
8223cat >>confdefs.h <<_ACEOF
8224#define HAVE_DECL_BASENAME 1
8225_ACEOF
8226
8227
8228else
8229 cat >>confdefs.h <<_ACEOF
8230#define HAVE_DECL_BASENAME 0
8231_ACEOF
8232
8233
8234fi
8235
8236
ec7b76fe
JG
8237echo "$as_me:$LINENO: checking whether ftello is declared" >&5
8238echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
8239if test "${ac_cv_have_decl_ftello+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241else
8242 cat >conftest.$ac_ext <<_ACEOF
8243/* confdefs.h. */
8244_ACEOF
8245cat confdefs.h >>conftest.$ac_ext
8246cat >>conftest.$ac_ext <<_ACEOF
8247/* end confdefs.h. */
8248$ac_includes_default
8249int
8250main ()
8251{
8252#ifndef ftello
8253 char *p = (char *) ftello;
8254#endif
8255
8256 ;
8257 return 0;
8258}
8259_ACEOF
8260rm -f conftest.$ac_objext
8261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8262 (eval $ac_compile) 2>conftest.er1
8263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } &&
49c96104
SE
8269 { ac_try='test -z "$ac_c_werror_flag"
8270 || test ! -s conftest.err'
ec7b76fe
JG
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest.$ac_objext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 ac_cv_have_decl_ftello=yes
8283else
8284 echo "$as_me: failed program was:" >&5
8285sed 's/^/| /' conftest.$ac_ext >&5
8286
8287ac_cv_have_decl_ftello=no
8288fi
8289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8290fi
8291echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
8292echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
8293if test $ac_cv_have_decl_ftello = yes; then
8294
8295cat >>confdefs.h <<_ACEOF
8296#define HAVE_DECL_FTELLO 1
8297_ACEOF
8298
8299
8300else
8301 cat >>confdefs.h <<_ACEOF
8302#define HAVE_DECL_FTELLO 0
8303_ACEOF
8304
8305
8306fi
8307
8308
8309echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
8310echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
8311if test "${ac_cv_have_decl_ftello64+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8313else
8314 cat >conftest.$ac_ext <<_ACEOF
8315/* confdefs.h. */
8316_ACEOF
8317cat confdefs.h >>conftest.$ac_ext
8318cat >>conftest.$ac_ext <<_ACEOF
8319/* end confdefs.h. */
8320$ac_includes_default
8321int
8322main ()
8323{
8324#ifndef ftello64
8325 char *p = (char *) ftello64;
8326#endif
8327
8328 ;
8329 return 0;
8330}
8331_ACEOF
8332rm -f conftest.$ac_objext
8333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8334 (eval $ac_compile) 2>conftest.er1
8335 ac_status=$?
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
49c96104
SE
8341 { ac_try='test -z "$ac_c_werror_flag"
8342 || test ! -s conftest.err'
ec7b76fe
JG
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; } &&
8348 { ac_try='test -s conftest.$ac_objext'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; }; then
8354 ac_cv_have_decl_ftello64=yes
8355else
8356 echo "$as_me: failed program was:" >&5
8357sed 's/^/| /' conftest.$ac_ext >&5
8358
8359ac_cv_have_decl_ftello64=no
8360fi
8361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8362fi
8363echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
8364echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
8365if test $ac_cv_have_decl_ftello64 = yes; then
8366
8367cat >>confdefs.h <<_ACEOF
8368#define HAVE_DECL_FTELLO64 1
8369_ACEOF
8370
8371
8372else
8373 cat >>confdefs.h <<_ACEOF
8374#define HAVE_DECL_FTELLO64 0
8375_ACEOF
8376
8377
8378fi
8379
8380
8381echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
8382echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
8383if test "${ac_cv_have_decl_fseeko+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385else
8386 cat >conftest.$ac_ext <<_ACEOF
8387/* confdefs.h. */
8388_ACEOF
8389cat confdefs.h >>conftest.$ac_ext
8390cat >>conftest.$ac_ext <<_ACEOF
8391/* end confdefs.h. */
8392$ac_includes_default
8393int
8394main ()
8395{
8396#ifndef fseeko
8397 char *p = (char *) fseeko;
8398#endif
8399
8400 ;
8401 return 0;
8402}
8403_ACEOF
8404rm -f conftest.$ac_objext
8405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8406 (eval $ac_compile) 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
49c96104
SE
8413 { ac_try='test -z "$ac_c_werror_flag"
8414 || test ! -s conftest.err'
ec7b76fe
JG
8415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416 (eval $ac_try) 2>&5
8417 ac_status=$?
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; } &&
8420 { ac_try='test -s conftest.$ac_objext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422 (eval $ac_try) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_cv_have_decl_fseeko=yes
8427else
8428 echo "$as_me: failed program was:" >&5
8429sed 's/^/| /' conftest.$ac_ext >&5
8430
8431ac_cv_have_decl_fseeko=no
8432fi
8433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8434fi
8435echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
8436echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
8437if test $ac_cv_have_decl_fseeko = yes; then
8438
8439cat >>confdefs.h <<_ACEOF
8440#define HAVE_DECL_FSEEKO 1
8441_ACEOF
8442
8443
8444else
8445 cat >>confdefs.h <<_ACEOF
8446#define HAVE_DECL_FSEEKO 0
8447_ACEOF
8448
8449
8450fi
8451
8452
8453echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
8454echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
8455if test "${ac_cv_have_decl_fseeko64+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8457else
8458 cat >conftest.$ac_ext <<_ACEOF
8459/* confdefs.h. */
8460_ACEOF
8461cat confdefs.h >>conftest.$ac_ext
8462cat >>conftest.$ac_ext <<_ACEOF
8463/* end confdefs.h. */
8464$ac_includes_default
8465int
8466main ()
8467{
8468#ifndef fseeko64
8469 char *p = (char *) fseeko64;
8470#endif
8471
8472 ;
8473 return 0;
8474}
8475_ACEOF
8476rm -f conftest.$ac_objext
8477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8478 (eval $ac_compile) 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } &&
49c96104
SE
8485 { ac_try='test -z "$ac_c_werror_flag"
8486 || test ! -s conftest.err'
ec7b76fe
JG
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; } &&
8492 { ac_try='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494 (eval $ac_try) 2>&5
8495 ac_status=$?
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 ac_cv_have_decl_fseeko64=yes
8499else
8500 echo "$as_me: failed program was:" >&5
8501sed 's/^/| /' conftest.$ac_ext >&5
8502
8503ac_cv_have_decl_fseeko64=no
8504fi
8505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8506fi
8507echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
8508echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
8509if test $ac_cv_have_decl_fseeko64 = yes; then
8510
8511cat >>confdefs.h <<_ACEOF
8512#define HAVE_DECL_FSEEKO64 1
8513_ACEOF
8514
8515
8516else
8517 cat >>confdefs.h <<_ACEOF
8518#define HAVE_DECL_FSEEKO64 0
8519_ACEOF
8520
8521
8522fi
8523
8524
2e9ebff5 8525
6be7c12c 8526
252b5132 8527case "${host}" in
855b0be7 8528*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
8529
8530cat >>confdefs.h <<\_ACEOF
252b5132 8531#define USE_BINARY_FOPEN 1
5464f5a1 8532_ACEOF
252b5132
RH
8533 ;;
8534esac
8535
d34a2b1d
JG
8536echo "$as_me:$LINENO: checking whether ffs is declared" >&5
8537echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
8538if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 8539 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8540else
5464f5a1
NN
8541 cat >conftest.$ac_ext <<_ACEOF
8542/* confdefs.h. */
8543_ACEOF
8544cat confdefs.h >>conftest.$ac_ext
8545cat >>conftest.$ac_ext <<_ACEOF
8546/* end confdefs.h. */
d34a2b1d 8547$ac_includes_default
5464f5a1
NN
8548int
8549main ()
8550{
d34a2b1d
JG
8551#ifndef ffs
8552 char *p = (char *) ffs;
8553#endif
8554
5464f5a1
NN
8555 ;
8556 return 0;
8557}
8558_ACEOF
8559rm -f conftest.$ac_objext
8560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8561 (eval $ac_compile) 2>conftest.er1
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } &&
49c96104
SE
8568 { ac_try='test -z "$ac_c_werror_flag"
8569 || test ! -s conftest.err'
5464f5a1
NN
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; } &&
8575 { ac_try='test -s conftest.$ac_objext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
d34a2b1d 8581 ac_cv_have_decl_ffs=yes
252b5132 8582else
5464f5a1
NN
8583 echo "$as_me: failed program was:" >&5
8584sed 's/^/| /' conftest.$ac_ext >&5
8585
d34a2b1d 8586ac_cv_have_decl_ffs=no
252b5132 8587fi
5464f5a1 8588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8589fi
d34a2b1d
JG
8590echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8591echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8592if test $ac_cv_have_decl_ffs = yes; then
252b5132 8593
d34a2b1d
JG
8594cat >>confdefs.h <<_ACEOF
8595#define HAVE_DECL_FFS 1
8596_ACEOF
5464f5a1 8597
d34a2b1d
JG
8598
8599else
8600 cat >>confdefs.h <<_ACEOF
8601#define HAVE_DECL_FFS 0
5464f5a1 8602_ACEOF
252b5132 8603
d34a2b1d 8604
252b5132
RH
8605fi
8606
d34a2b1d
JG
8607
8608echo "$as_me:$LINENO: checking whether free is declared" >&5
8609echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8610if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 8611 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8612else
5464f5a1
NN
8613 cat >conftest.$ac_ext <<_ACEOF
8614/* confdefs.h. */
8615_ACEOF
8616cat confdefs.h >>conftest.$ac_ext
8617cat >>conftest.$ac_ext <<_ACEOF
8618/* end confdefs.h. */
d34a2b1d 8619$ac_includes_default
5464f5a1
NN
8620int
8621main ()
8622{
d34a2b1d
JG
8623#ifndef free
8624 char *p = (char *) free;
8625#endif
8626
5464f5a1
NN
8627 ;
8628 return 0;
8629}
8630_ACEOF
8631rm -f conftest.$ac_objext
8632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
49c96104
SE
8640 { ac_try='test -z "$ac_c_werror_flag"
8641 || test ! -s conftest.err'
5464f5a1
NN
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; } &&
8647 { ac_try='test -s conftest.$ac_objext'
8648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 (eval $ac_try) 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
d34a2b1d 8653 ac_cv_have_decl_free=yes
252b5132 8654else
5464f5a1
NN
8655 echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
d34a2b1d 8658ac_cv_have_decl_free=no
252b5132 8659fi
5464f5a1 8660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8661fi
d34a2b1d
JG
8662echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8663echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8664if test $ac_cv_have_decl_free = yes; then
8665
8666cat >>confdefs.h <<_ACEOF
8667#define HAVE_DECL_FREE 1
8668_ACEOF
252b5132 8669
5464f5a1 8670
d34a2b1d
JG
8671else
8672 cat >>confdefs.h <<_ACEOF
8673#define HAVE_DECL_FREE 0
5464f5a1 8674_ACEOF
252b5132 8675
d34a2b1d 8676
252b5132
RH
8677fi
8678
d34a2b1d
JG
8679
8680echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8681echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8682if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 8683 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8684else
5464f5a1
NN
8685 cat >conftest.$ac_ext <<_ACEOF
8686/* confdefs.h. */
8687_ACEOF
8688cat confdefs.h >>conftest.$ac_ext
8689cat >>conftest.$ac_ext <<_ACEOF
8690/* end confdefs.h. */
d34a2b1d 8691$ac_includes_default
5464f5a1
NN
8692int
8693main ()
8694{
d34a2b1d
JG
8695#ifndef getenv
8696 char *p = (char *) getenv;
8697#endif
8698
5464f5a1
NN
8699 ;
8700 return 0;
8701}
8702_ACEOF
8703rm -f conftest.$ac_objext
8704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8705 (eval $ac_compile) 2>conftest.er1
8706 ac_status=$?
8707 grep -v '^ *+' conftest.er1 >conftest.err
8708 rm -f conftest.er1
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
49c96104
SE
8712 { ac_try='test -z "$ac_c_werror_flag"
8713 || test ! -s conftest.err'
5464f5a1
NN
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 (eval $ac_try) 2>&5
8716 ac_status=$?
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; } &&
8719 { ac_try='test -s conftest.$ac_objext'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721 (eval $ac_try) 2>&5
8722 ac_status=$?
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; }; then
d34a2b1d 8725 ac_cv_have_decl_getenv=yes
252b5132 8726else
5464f5a1
NN
8727 echo "$as_me: failed program was:" >&5
8728sed 's/^/| /' conftest.$ac_ext >&5
8729
d34a2b1d 8730ac_cv_have_decl_getenv=no
252b5132 8731fi
5464f5a1 8732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8733fi
d34a2b1d
JG
8734echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8735echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8736if test $ac_cv_have_decl_getenv = yes; then
252b5132 8737
d34a2b1d
JG
8738cat >>confdefs.h <<_ACEOF
8739#define HAVE_DECL_GETENV 1
8740_ACEOF
5464f5a1 8741
d34a2b1d
JG
8742
8743else
8744 cat >>confdefs.h <<_ACEOF
8745#define HAVE_DECL_GETENV 0
5464f5a1 8746_ACEOF
252b5132 8747
d34a2b1d 8748
252b5132
RH
8749fi
8750
d34a2b1d
JG
8751
8752echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8753echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8754if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 8755 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8756else
5464f5a1
NN
8757 cat >conftest.$ac_ext <<_ACEOF
8758/* confdefs.h. */
8759_ACEOF
8760cat confdefs.h >>conftest.$ac_ext
8761cat >>conftest.$ac_ext <<_ACEOF
8762/* end confdefs.h. */
d34a2b1d 8763$ac_includes_default
5464f5a1
NN
8764int
8765main ()
8766{
d34a2b1d
JG
8767#ifndef malloc
8768 char *p = (char *) malloc;
8769#endif
8770
5464f5a1
NN
8771 ;
8772 return 0;
8773}
8774_ACEOF
8775rm -f conftest.$ac_objext
8776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777 (eval $ac_compile) 2>conftest.er1
8778 ac_status=$?
8779 grep -v '^ *+' conftest.er1 >conftest.err
8780 rm -f conftest.er1
8781 cat conftest.err >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } &&
49c96104
SE
8784 { ac_try='test -z "$ac_c_werror_flag"
8785 || test ! -s conftest.err'
5464f5a1
NN
8786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 (eval $ac_try) 2>&5
8788 ac_status=$?
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; } &&
8791 { ac_try='test -s conftest.$ac_objext'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; }; then
d34a2b1d 8797 ac_cv_have_decl_malloc=yes
252b5132 8798else
5464f5a1
NN
8799 echo "$as_me: failed program was:" >&5
8800sed 's/^/| /' conftest.$ac_ext >&5
8801
d34a2b1d 8802ac_cv_have_decl_malloc=no
252b5132 8803fi
5464f5a1 8804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8805fi
d34a2b1d
JG
8806echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8807echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8808if test $ac_cv_have_decl_malloc = yes; then
252b5132 8809
d34a2b1d
JG
8810cat >>confdefs.h <<_ACEOF
8811#define HAVE_DECL_MALLOC 1
8812_ACEOF
5464f5a1 8813
d34a2b1d
JG
8814
8815else
8816 cat >>confdefs.h <<_ACEOF
8817#define HAVE_DECL_MALLOC 0
5464f5a1 8818_ACEOF
252b5132 8819
d34a2b1d 8820
252b5132
RH
8821fi
8822
d34a2b1d
JG
8823
8824echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8825echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8826if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 8827 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8828else
5464f5a1
NN
8829 cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h. */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
8834/* end confdefs.h. */
d34a2b1d 8835$ac_includes_default
5464f5a1
NN
8836int
8837main ()
8838{
d34a2b1d
JG
8839#ifndef realloc
8840 char *p = (char *) realloc;
8841#endif
8842
5464f5a1
NN
8843 ;
8844 return 0;
8845}
8846_ACEOF
8847rm -f conftest.$ac_objext
8848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849 (eval $ac_compile) 2>conftest.er1
8850 ac_status=$?
8851 grep -v '^ *+' conftest.er1 >conftest.err
8852 rm -f conftest.er1
8853 cat conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
49c96104
SE
8856 { ac_try='test -z "$ac_c_werror_flag"
8857 || test ! -s conftest.err'
5464f5a1
NN
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 (eval $ac_try) 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; } &&
8863 { ac_try='test -s conftest.$ac_objext'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 (eval $ac_try) 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
d34a2b1d 8869 ac_cv_have_decl_realloc=yes
252b5132 8870else
5464f5a1
NN
8871 echo "$as_me: failed program was:" >&5
8872sed 's/^/| /' conftest.$ac_ext >&5
8873
d34a2b1d 8874ac_cv_have_decl_realloc=no
252b5132 8875fi
5464f5a1 8876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8877fi
d34a2b1d
JG
8878echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8879echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8880if test $ac_cv_have_decl_realloc = yes; then
8881
8882cat >>confdefs.h <<_ACEOF
8883#define HAVE_DECL_REALLOC 1
8884_ACEOF
252b5132 8885
5464f5a1 8886
d34a2b1d
JG
8887else
8888 cat >>confdefs.h <<_ACEOF
8889#define HAVE_DECL_REALLOC 0
efa9bda4
AL
8890_ACEOF
8891
d34a2b1d 8892
efa9bda4
AL
8893fi
8894
d34a2b1d 8895
be5cacdb
L
8896echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8897echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8898if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900else
8901 cat >conftest.$ac_ext <<_ACEOF
8902/* confdefs.h. */
8903_ACEOF
8904cat confdefs.h >>conftest.$ac_ext
8905cat >>conftest.$ac_ext <<_ACEOF
8906/* end confdefs.h. */
8907$ac_includes_default
8908int
8909main ()
8910{
8911#ifndef stpcpy
8912 char *p = (char *) stpcpy;
8913#endif
8914
8915 ;
8916 return 0;
8917}
8918_ACEOF
8919rm -f conftest.$ac_objext
8920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921 (eval $ac_compile) 2>conftest.er1
8922 ac_status=$?
8923 grep -v '^ *+' conftest.er1 >conftest.err
8924 rm -f conftest.er1
8925 cat conftest.err >&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
49c96104
SE
8928 { ac_try='test -z "$ac_c_werror_flag"
8929 || test ! -s conftest.err'
be5cacdb
L
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try='test -s conftest.$ac_objext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937 (eval $ac_try) 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_have_decl_stpcpy=yes
8942else
8943 echo "$as_me: failed program was:" >&5
8944sed 's/^/| /' conftest.$ac_ext >&5
8945
8946ac_cv_have_decl_stpcpy=no
8947fi
8948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8949fi
8950echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8951echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8952if test $ac_cv_have_decl_stpcpy = yes; then
8953
8954cat >>confdefs.h <<_ACEOF
8955#define HAVE_DECL_STPCPY 1
8956_ACEOF
8957
8958
8959else
8960 cat >>confdefs.h <<_ACEOF
8961#define HAVE_DECL_STPCPY 0
8962_ACEOF
8963
8964
8965fi
8966
8967
d34a2b1d
JG
8968echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8969echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8970if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8972else
8973 cat >conftest.$ac_ext <<_ACEOF
8974/* confdefs.h. */
8975_ACEOF
8976cat confdefs.h >>conftest.$ac_ext
8977cat >>conftest.$ac_ext <<_ACEOF
8978/* end confdefs.h. */
d34a2b1d 8979$ac_includes_default
efa9bda4
AL
8980int
8981main ()
8982{
d34a2b1d
JG
8983#ifndef strstr
8984 char *p = (char *) strstr;
8985#endif
8986
efa9bda4
AL
8987 ;
8988 return 0;
8989}
8990_ACEOF
8991rm -f conftest.$ac_objext
8992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8993 (eval $ac_compile) 2>conftest.er1
8994 ac_status=$?
8995 grep -v '^ *+' conftest.er1 >conftest.err
8996 rm -f conftest.er1
8997 cat conftest.err >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
49c96104
SE
9000 { ac_try='test -z "$ac_c_werror_flag"
9001 || test ! -s conftest.err'
efa9bda4
AL
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; } &&
9007 { ac_try='test -s conftest.$ac_objext'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; }; then
d34a2b1d 9013 ac_cv_have_decl_strstr=yes
efa9bda4
AL
9014else
9015 echo "$as_me: failed program was:" >&5
9016sed 's/^/| /' conftest.$ac_ext >&5
9017
d34a2b1d 9018ac_cv_have_decl_strstr=no
efa9bda4
AL
9019fi
9020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9021fi
d34a2b1d
JG
9022echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9023echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9024if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 9025
d34a2b1d
JG
9026cat >>confdefs.h <<_ACEOF
9027#define HAVE_DECL_STRSTR 1
9028_ACEOF
efa9bda4 9029
d34a2b1d
JG
9030
9031else
9032 cat >>confdefs.h <<_ACEOF
9033#define HAVE_DECL_STRSTR 0
5464f5a1 9034_ACEOF
252b5132 9035
d34a2b1d 9036
252b5132
RH
9037fi
9038
6be7c12c 9039
36527912
AJ
9040echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9041echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
9042if test "${ac_cv_have_decl_snprintf+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045 cat >conftest.$ac_ext <<_ACEOF
9046/* confdefs.h. */
9047_ACEOF
9048cat confdefs.h >>conftest.$ac_ext
9049cat >>conftest.$ac_ext <<_ACEOF
9050/* end confdefs.h. */
9051$ac_includes_default
9052int
9053main ()
9054{
9055#ifndef snprintf
9056 char *p = (char *) snprintf;
9057#endif
9058
9059 ;
9060 return 0;
9061}
9062_ACEOF
9063rm -f conftest.$ac_objext
9064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065 (eval $ac_compile) 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
49c96104
SE
9072 { ac_try='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
36527912
AJ
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 (eval $ac_try) 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest.$ac_objext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 (eval $ac_try) 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_cv_have_decl_snprintf=yes
9086else
9087 echo "$as_me: failed program was:" >&5
9088sed 's/^/| /' conftest.$ac_ext >&5
9089
9090ac_cv_have_decl_snprintf=no
9091fi
9092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9093fi
9094echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9095echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
9096if test $ac_cv_have_decl_snprintf = yes; then
9097
9098cat >>confdefs.h <<_ACEOF
9099#define HAVE_DECL_SNPRINTF 1
9100_ACEOF
9101
9102
9103else
9104 cat >>confdefs.h <<_ACEOF
9105#define HAVE_DECL_SNPRINTF 0
9106_ACEOF
9107
9108
9109fi
9110
9111
9112echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
9113echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
9114if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116else
9117 cat >conftest.$ac_ext <<_ACEOF
9118/* confdefs.h. */
9119_ACEOF
9120cat confdefs.h >>conftest.$ac_ext
9121cat >>conftest.$ac_ext <<_ACEOF
9122/* end confdefs.h. */
9123$ac_includes_default
9124int
9125main ()
9126{
9127#ifndef vsnprintf
9128 char *p = (char *) vsnprintf;
9129#endif
9130
9131 ;
9132 return 0;
9133}
9134_ACEOF
9135rm -f conftest.$ac_objext
9136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137 (eval $ac_compile) 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
49c96104
SE
9144 { ac_try='test -z "$ac_c_werror_flag"
9145 || test ! -s conftest.err'
36527912
AJ
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest.$ac_objext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 (eval $ac_try) 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9157 ac_cv_have_decl_vsnprintf=yes
9158else
9159 echo "$as_me: failed program was:" >&5
9160sed 's/^/| /' conftest.$ac_ext >&5
9161
9162ac_cv_have_decl_vsnprintf=no
9163fi
9164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9165fi
9166echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
9167echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
9168if test $ac_cv_have_decl_vsnprintf = yes; then
9169
9170cat >>confdefs.h <<_ACEOF
9171#define HAVE_DECL_VSNPRINTF 1
9172_ACEOF
9173
9174
9175else
9176 cat >>confdefs.h <<_ACEOF
9177#define HAVE_DECL_VSNPRINTF 0
9178_ACEOF
9179
9180
9181fi
9182
9183
d34a2b1d 9184
252b5132
RH
9185# If we are configured native, pick a core file support file.
9186COREFILE=
9187COREFLAG=
9188TRAD_HEADER=
9189if test "${target}" = "${host}"; then
9190 case "${host}" in
13dfd2d0 9191 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
9192 COREFILE=''
9193 ;;
ed84e695 9194 alpha*-*-linux-*)
252b5132
RH
9195 COREFILE=trad-core.lo
9196 TRAD_HEADER='"hosts/alphalinux.h"'
9197 ;;
690cc98b
NC
9198 alpha*-*-netbsd* | alpha*-*-openbsd*)
9199 COREFILE=netbsd-core.lo
9200 ;;
252b5132 9201 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
9202 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9203 COREFILE='' ;;
e33533a4
MK
9204 arm-*-netbsd* | arm-*-openbsd*)
9205 COREFILE=netbsd-core.lo
9206 ;;
252b5132
RH
9207 arm-*-riscix) COREFILE=trad-core.lo ;;
9208 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9209 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9210 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9211 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9212 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
9213 hppa*-*-netbsd* | hppa*-*-openbsd*)
9214 COREFILE=netbsd-core.lo
9215 ;;
9216
dc810e39 9217 i370-*-*)
5b93d8bb
AM
9218 COREFILE=trad-core.lo
9219 TRAD_HEADER='"hosts/i370linux.h"'
9220 ;;
9221
80c7c40a 9222 i[3-7]86-sequent-bsd*)
5b93d8bb 9223 COREFILE=trad-core.lo
252b5132
RH
9224 TRAD_HEADER='"hosts/symmetry.h"'
9225 ;;
80c7c40a
NC
9226 i[3-7]86-sequent-sysv4*) ;;
9227 i[3-7]86-sequent-sysv*)
252b5132
RH
9228 COREFILE=trad-core.lo
9229 TRAD_HEADER='"hosts/symmetry.h"'
9230 ;;
80c7c40a 9231 i[3-7]86-*-bsdi)
7e3b3466
NC
9232 COREFILE=
9233 ;;
d2bef492 9234 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
9235 COREFILE=trad-core.lo
9236 TRAD_HEADER='"hosts/i386bsd.h"'
9237 ;;
13dfd2d0 9238 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
9239 COREFILE=''
9240 TRAD_HEADER='"hosts/i386bsd.h"'
9241 ;;
4615568e 9242 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
9243 COREFILE=netbsd-core.lo
9244 ;;
80c7c40a 9245 i[3-7]86-esix-sysv3*)
252b5132
RH
9246 COREFILE=trad-core.lo
9247 TRAD_HEADER='"hosts/esix.h"'
9248 ;;
80c7c40a 9249 i[3-7]86-*-sco3.2v5*)
252b5132
RH
9250 COREFILE=sco5-core.lo
9251 ;;
80c7c40a 9252 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
9253 COREFILE=trad-core.lo
9254 TRAD_HEADER='"hosts/i386sco.h"'
9255 ;;
80c7c40a 9256 i[3-7]86-*-mach3*)
252b5132
RH
9257 COREFILE=trad-core.lo
9258 TRAD_HEADER='"hosts/i386mach3.h"'
9259 ;;
ed84e695 9260 i[3-7]86-*-linux-*)
252b5132
RH
9261 COREFILE=trad-core.lo
9262 TRAD_HEADER='"hosts/i386linux.h"'
9263 ;;
80c7c40a
NC
9264 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9265 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
9266 i860-*-mach3* | i860-*-osf1*)
9267 COREFILE=trad-core.lo
9268 TRAD_HEADER='"hosts/i860mach3.h"'
9269 ;;
252b5132
RH
9270 mips-*-netbsd* | mips*-*-openbsd*)
9271 COREFILE=netbsd-core.lo
9272 ;;
9273 mips-dec-*)
9274 COREFILE=trad-core.lo
9275 TRAD_HEADER='"hosts/decstation.h"'
9276 ;;
9277 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9278 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9279 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
9280 mips-*-sysv4*) ;;
9281 mips-*-sysv* | mips-*-riscos*)
9282 COREFILE=trad-core.lo
9283 TRAD_HEADER='"hosts/riscos.h"'
9284 ;;
9285 mips-sony-bsd*)
9286 COREFILE=trad-core.lo
9287 TRAD_HEADER='"hosts/news-mips.h"'
9288 ;;
9289 m68*-bull*-sysv*)
9290 COREFILE=trad-core.lo
9291 TRAD_HEADER='"hosts/dpx2.h"'
9292 ;;
9293 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9294 m68*-hp-bsd*)
9295 COREFILE=trad-core.lo
9296 TRAD_HEADER='"hosts/hp300bsd.h"'
9297 ;;
ed84e695 9298 m68*-*-linux-*)
252b5132
RH
9299 COREFILE=trad-core.lo
9300 TRAD_HEADER='"hosts/m68klinux.h"'
9301 ;;
9302 m68*-motorola-sysv*)
9303 COREFILE=trad-core.lo
9304 TRAD_HEADER='"hosts/delta68.h"'
9305 ;;
9306 m68*-sony-*)
9307 COREFILE=trad-core.lo
9308 TRAD_HEADER='"hosts/news.h"'
9309 ;;
9310 m68*-*-netbsd* | m68*-*-openbsd*)
9311 COREFILE=netbsd-core.lo
9312 ;;
9313 m68*-apple-aux*)
9314 COREFILE=trad-core.lo
9315 TRAD_HEADER='"hosts/m68kaux.h"'
9316 ;;
eb1e0e80
NC
9317 m88*-*-sysv4*)
9318 ;;
9319 m88*-motorola-sysv*)
9320 COREFILE=ptrace-core.lo
9321 ;;
252b5132
RH
9322 m88*-*-mach3*)
9323 COREFILE=trad-core.lo
9324 TRAD_HEADER='"hosts/m88kmach3.h"'
9325 ;;
c6f8758f
NC
9326 m88*-*-openbsd*)
9327 COREFILE=netbsd-core.lo
9328 ;;
252b5132
RH
9329 ns32k-pc532-mach)
9330 COREFILE=trad-core.lo
9331 TRAD_HEADER='"hosts/pc532mach.h"'
9332 ;;
9333 ns32k-*-netbsd* | ns32k-*-openbsd*)
9334 COREFILE=netbsd-core.lo
9335 ;;
eb1e0e80
NC
9336 rs6000-*-lynx*)
9337 COREFILE=lynx-core.lo
9338 ;;
9339 rs6000-*-aix5.* | powerpc-*-aix5.*)
9340 COREFILE=rs6000-core.lo
9341 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9342 ;;
83954261 9343 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
9344 COREFILE=rs6000-core.lo
9345 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
9346 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9347 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
9348 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9349echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9350 cat >conftest.$ac_ext <<_ACEOF
9351/* confdefs.h. */
9352_ACEOF
9353cat confdefs.h >>conftest.$ac_ext
9354cat >>conftest.$ac_ext <<_ACEOF
9355/* end confdefs.h. */
83954261 9356#include <core.h>
5464f5a1
NN
9357int
9358main ()
9359{
83954261 9360struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
9361 ;
9362 return 0;
9363}
9364_ACEOF
9365rm -f conftest.$ac_objext
9366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367 (eval $ac_compile) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
49c96104
SE
9374 { ac_try='test -z "$ac_c_werror_flag"
9375 || test ! -s conftest.err'
5464f5a1
NN
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; } &&
9381 { ac_try='test -s conftest.$ac_objext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387
9388cat >>confdefs.h <<\_ACEOF
83954261 9389#define HAVE_ST_C_IMPL 1
5464f5a1 9390_ACEOF
83954261 9391
5464f5a1
NN
9392 echo "$as_me:$LINENO: result: yes" >&5
9393echo "${ECHO_T}yes" >&6
83954261 9394else
5464f5a1
NN
9395 echo "$as_me: failed program was:" >&5
9396sed 's/^/| /' conftest.$ac_ext >&5
9397
9398echo "$as_me:$LINENO: result: no" >&5
9399echo "${ECHO_T}no" >&6
83954261 9400fi
5464f5a1 9401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 9402 ;;
252b5132
RH
9403 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9404 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
9405 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9406 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9407 powerpc-*-beos*) ;;
13dfd2d0
NC
9408 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9409 COREFILE='' ;;
252b5132 9410 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 9411 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 9412 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 9413 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 9414 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
9415 COREFILE=netbsd-core.lo
9416 ;;
9417 tahoe-*-*)
9418 COREFILE=trad-core.lo
9419 TRAD_HEADER='"hosts/tahoe.h"'
9420 ;;
de6e5e1a
NC
9421 vax-*-netbsd* | vax-*-openbsd*)
9422 COREFILE=netbsd-core.lo
9423 ;;
252b5132
RH
9424 vax-*-ultrix2*)
9425 COREFILE=trad-core.lo
9426 TRAD_HEADER='"hosts/vaxult2.h"'
9427 ;;
9428 vax-*-ultrix*)
9429 COREFILE=trad-core.lo
9430 TRAD_HEADER='"hosts/vaxult2.h"'
9431 ;;
ed84e695 9432 vax-*-linux-*)
f8fc3443
NC
9433 COREFILE=trad-core.lo
9434 TRAD_HEADER='"hosts/vaxlinux.h"'
9435 ;;
252b5132
RH
9436 vax-*-*)
9437 COREFILE=trad-core.lo
9438 TRAD_HEADER='"hosts/vaxbsd.h"'
9439 ;;
85cfd8d3
MK
9440 x86_64-*-netbsd* | x86_64-*-openbsd*)
9441 COREFILE=netbsd-core.lo
9442 ;;
252b5132
RH
9443 esac
9444
9445 case "$COREFILE" in
9446 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9447 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9448 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9449 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9450 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9451 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9452 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9453 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9454 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9455 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9456 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9457 esac
9458
9459 # ELF corefile support has several flavors, but all of
9460 # them use something called <sys/procfs.h>
5464f5a1
NN
9461
9462for ac_header in sys/procfs.h
252b5132 9463do
5464f5a1
NN
9464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9465if eval "test \"\${$as_ac_Header+set}\" = set"; then
9466 echo "$as_me:$LINENO: checking for $ac_header" >&5
9467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9468if eval "test \"\${$as_ac_Header+set}\" = set"; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470fi
9471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9473else
9474 # Is the header compilable?
9475echo "$as_me:$LINENO: checking $ac_header usability" >&5
9476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9477cat >conftest.$ac_ext <<_ACEOF
9478/* confdefs.h. */
9479_ACEOF
9480cat confdefs.h >>conftest.$ac_ext
9481cat >>conftest.$ac_ext <<_ACEOF
9482/* end confdefs.h. */
9483$ac_includes_default
9484#include <$ac_header>
9485_ACEOF
9486rm -f conftest.$ac_objext
9487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
49c96104
SE
9495 { ac_try='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
5464f5a1
NN
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest.$ac_objext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_header_compiler=yes
9509else
9510 echo "$as_me: failed program was:" >&5
9511sed 's/^/| /' conftest.$ac_ext >&5
9512
9513ac_header_compiler=no
9514fi
9515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9517echo "${ECHO_T}$ac_header_compiler" >&6
9518
9519# Is the header present?
9520echo "$as_me:$LINENO: checking $ac_header presence" >&5
9521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9522cat >conftest.$ac_ext <<_ACEOF
9523/* confdefs.h. */
9524_ACEOF
9525cat confdefs.h >>conftest.$ac_ext
9526cat >>conftest.$ac_ext <<_ACEOF
9527/* end confdefs.h. */
9528#include <$ac_header>
9529_ACEOF
9530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } >/dev/null; then
9538 if test -s conftest.err; then
9539 ac_cpp_err=$ac_c_preproc_warn_flag
9540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9541 else
9542 ac_cpp_err=
9543 fi
252b5132 9544else
5464f5a1 9545 ac_cpp_err=yes
252b5132 9546fi
5464f5a1
NN
9547if test -z "$ac_cpp_err"; then
9548 ac_header_preproc=yes
9549else
9550 echo "$as_me: failed program was:" >&5
9551sed 's/^/| /' conftest.$ac_ext >&5
9552
9553 ac_header_preproc=no
252b5132 9554fi
5464f5a1
NN
9555rm -f conftest.err conftest.$ac_ext
9556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9557echo "${ECHO_T}$ac_header_preproc" >&6
9558
9559# So? What about this header?
9560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9561 yes:no: )
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9566 ac_header_preproc=yes
9567 ;;
9568 no:yes:* )
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9576echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9581 (
9582 cat <<\_ASBOX
9583## ------------------------------------------ ##
9584## Report this to the AC_PACKAGE_NAME lists. ##
9585## ------------------------------------------ ##
9586_ASBOX
9587 ) |
9588 sed "s/^/$as_me: WARNING: /" >&2
9589 ;;
9590esac
9591echo "$as_me:$LINENO: checking for $ac_header" >&5
9592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9593if eval "test \"\${$as_ac_Header+set}\" = set"; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 9595else
5464f5a1
NN
9596 eval "$as_ac_Header=\$ac_header_preproc"
9597fi
9598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9600
252b5132 9601fi
5464f5a1
NN
9602if test `eval echo '${'$as_ac_Header'}'` = yes; then
9603 cat >>confdefs.h <<_ACEOF
9604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9605_ACEOF
9606
9607fi
9608
252b5132
RH
9609done
9610
9611 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
9612 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9613echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9614 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9616else
9617 cat >conftest.$ac_ext <<_ACEOF
9618/* confdefs.h. */
9619_ACEOF
9620cat confdefs.h >>conftest.$ac_ext
9621cat >>conftest.$ac_ext <<_ACEOF
9622/* end confdefs.h. */
7ee38065
MS
9623
9624#define _SYSCALL32
252b5132 9625#include <sys/procfs.h>
5464f5a1
NN
9626int
9627main ()
9628{
252b5132 9629prstatus_t avar
5464f5a1
NN
9630 ;
9631 return 0;
9632}
9633_ACEOF
9634rm -f conftest.$ac_objext
9635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9636 (eval $ac_compile) 2>conftest.er1
9637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
49c96104
SE
9643 { ac_try='test -z "$ac_c_werror_flag"
9644 || test ! -s conftest.err'
5464f5a1
NN
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; } &&
9650 { ac_try='test -s conftest.$ac_objext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
252b5132
RH
9656 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9657else
5464f5a1
NN
9658 echo "$as_me: failed program was:" >&5
9659sed 's/^/| /' conftest.$ac_ext >&5
9660
9661bfd_cv_have_sys_procfs_type_prstatus_t=no
9662
252b5132 9663fi
5464f5a1 9664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9665fi
9666
9667 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
9668
9669cat >>confdefs.h <<\_ACEOF
252b5132 9670#define HAVE_PRSTATUS_T 1
5464f5a1 9671_ACEOF
252b5132
RH
9672
9673 fi
5464f5a1
NN
9674 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9675echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 9676
5464f5a1
NN
9677 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9678echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9679 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9681else
5464f5a1
NN
9682 cat >conftest.$ac_ext <<_ACEOF
9683/* confdefs.h. */
9684_ACEOF
9685cat confdefs.h >>conftest.$ac_ext
9686cat >>conftest.$ac_ext <<_ACEOF
9687/* end confdefs.h. */
7ee38065
MS
9688
9689#define _SYSCALL32
9690#include <sys/procfs.h>
5464f5a1
NN
9691int
9692main ()
9693{
7ee38065 9694prstatus32_t avar
5464f5a1
NN
9695 ;
9696 return 0;
9697}
9698_ACEOF
9699rm -f conftest.$ac_objext
9700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9701 (eval $ac_compile) 2>conftest.er1
9702 ac_status=$?
9703 grep -v '^ *+' conftest.er1 >conftest.err
9704 rm -f conftest.er1
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
49c96104
SE
9708 { ac_try='test -z "$ac_c_werror_flag"
9709 || test ! -s conftest.err'
5464f5a1
NN
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; } &&
9715 { ac_try='test -s conftest.$ac_objext'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 (eval $ac_try) 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
7ee38065
MS
9721 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9722else
5464f5a1
NN
9723 echo "$as_me: failed program was:" >&5
9724sed 's/^/| /' conftest.$ac_ext >&5
9725
9726bfd_cv_have_sys_procfs_type_prstatus32_t=no
9727
7ee38065 9728fi
5464f5a1 9729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
9730fi
9731
9732 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
9733
9734cat >>confdefs.h <<\_ACEOF
7ee38065 9735#define HAVE_PRSTATUS32_T 1
5464f5a1 9736_ACEOF
7ee38065
MS
9737
9738 fi
5464f5a1
NN
9739 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
9740echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 9741
5464f5a1
NN
9742 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
9743echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9744 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9746else
5464f5a1
NN
9747 cat >conftest.$ac_ext <<_ACEOF
9748/* confdefs.h. */
9749_ACEOF
9750cat confdefs.h >>conftest.$ac_ext
9751cat >>conftest.$ac_ext <<_ACEOF
9752/* end confdefs.h. */
7ee38065
MS
9753
9754#define _SYSCALL32
252b5132 9755#include <sys/procfs.h>
5464f5a1
NN
9756int
9757main ()
9758{
252b5132 9759prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
9760 ;
9761 return 0;
9762}
9763_ACEOF
9764rm -f conftest.$ac_objext
9765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9766 (eval $ac_compile) 2>conftest.er1
9767 ac_status=$?
9768 grep -v '^ *+' conftest.er1 >conftest.err
9769 rm -f conftest.er1
9770 cat conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
49c96104
SE
9773 { ac_try='test -z "$ac_c_werror_flag"
9774 || test ! -s conftest.err'
5464f5a1
NN
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; } &&
9780 { ac_try='test -s conftest.$ac_objext'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; }; then
252b5132
RH
9786 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
9787else
5464f5a1
NN
9788 echo "$as_me: failed program was:" >&5
9789sed 's/^/| /' conftest.$ac_ext >&5
9790
9791bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
9792
252b5132 9793fi
5464f5a1 9794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9795fi
9796
9797 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
9798
9799cat >>confdefs.h <<\_ACEOF
252b5132 9800#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 9801_ACEOF
252b5132
RH
9802
9803 fi
5464f5a1
NN
9804 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
9805echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 9806
5464f5a1
NN
9807 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
9808echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9809 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9811else
5464f5a1
NN
9812 cat >conftest.$ac_ext <<_ACEOF
9813/* confdefs.h. */
9814_ACEOF
9815cat confdefs.h >>conftest.$ac_ext
9816cat >>conftest.$ac_ext <<_ACEOF
9817/* end confdefs.h. */
7ee38065
MS
9818
9819#define _SYSCALL32
9820#include <sys/procfs.h>
5464f5a1
NN
9821int
9822main ()
9823{
7ee38065 9824prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
9825 ;
9826 return 0;
9827}
9828_ACEOF
9829rm -f conftest.$ac_objext
9830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9831 (eval $ac_compile) 2>conftest.er1
9832 ac_status=$?
9833 grep -v '^ *+' conftest.er1 >conftest.err
9834 rm -f conftest.er1
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } &&
49c96104
SE
9838 { ac_try='test -z "$ac_c_werror_flag"
9839 || test ! -s conftest.err'
5464f5a1
NN
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 (eval $ac_try) 2>&5
9842 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } &&
9845 { ac_try='test -s conftest.$ac_objext'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847 (eval $ac_try) 2>&5
9848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
7ee38065
MS
9851 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
9852else
5464f5a1
NN
9853 echo "$as_me: failed program was:" >&5
9854sed 's/^/| /' conftest.$ac_ext >&5
9855
9856bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
9857
7ee38065 9858fi
5464f5a1 9859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
9860fi
9861
9862 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
9863
9864cat >>confdefs.h <<\_ACEOF
7ee38065 9865#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 9866_ACEOF
7ee38065
MS
9867
9868 fi
5464f5a1
NN
9869 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
9870echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 9871
5464f5a1
NN
9872 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
9873echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
9874 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9876else
5464f5a1
NN
9877 cat >conftest.$ac_ext <<_ACEOF
9878/* confdefs.h. */
9879_ACEOF
9880cat confdefs.h >>conftest.$ac_ext
9881cat >>conftest.$ac_ext <<_ACEOF
9882/* end confdefs.h. */
7ee38065
MS
9883
9884#define _SYSCALL32
252b5132 9885#include <sys/procfs.h>
5464f5a1
NN
9886int
9887main ()
9888{
252b5132 9889pstatus_t avar
5464f5a1
NN
9890 ;
9891 return 0;
9892}
9893_ACEOF
9894rm -f conftest.$ac_objext
9895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896 (eval $ac_compile) 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
49c96104
SE
9903 { ac_try='test -z "$ac_c_werror_flag"
9904 || test ! -s conftest.err'
5464f5a1
NN
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest.$ac_objext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
252b5132
RH
9916 bfd_cv_have_sys_procfs_type_pstatus_t=yes
9917else
5464f5a1
NN
9918 echo "$as_me: failed program was:" >&5
9919sed 's/^/| /' conftest.$ac_ext >&5
9920
9921bfd_cv_have_sys_procfs_type_pstatus_t=no
9922
252b5132 9923fi
5464f5a1 9924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9925fi
9926
9927 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
9928
9929cat >>confdefs.h <<\_ACEOF
252b5132 9930#define HAVE_PSTATUS_T 1
5464f5a1 9931_ACEOF
252b5132
RH
9932
9933 fi
5464f5a1
NN
9934 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
9935echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 9936
5464f5a1
NN
9937 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
9938echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
9939 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 9941else
5464f5a1
NN
9942 cat >conftest.$ac_ext <<_ACEOF
9943/* confdefs.h. */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h. */
f572a39d
AM
9948
9949#define _SYSCALL32
9950#include <sys/procfs.h>
5464f5a1
NN
9951int
9952main ()
9953{
f572a39d 9954pxstatus_t avar
5464f5a1
NN
9955 ;
9956 return 0;
9957}
9958_ACEOF
9959rm -f conftest.$ac_objext
9960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9961 (eval $ac_compile) 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
49c96104
SE
9968 { ac_try='test -z "$ac_c_werror_flag"
9969 || test ! -s conftest.err'
5464f5a1
NN
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 (eval $ac_try) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest.$ac_objext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
f572a39d
AM
9981 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
9982else
5464f5a1
NN
9983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986bfd_cv_have_sys_procfs_type_pxstatus_t=no
9987
f572a39d 9988fi
5464f5a1 9989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
9990fi
9991
9992 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
9993
9994cat >>confdefs.h <<\_ACEOF
f572a39d 9995#define HAVE_PXSTATUS_T 1
5464f5a1 9996_ACEOF
f572a39d
AM
9997
9998 fi
5464f5a1
NN
9999 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10000echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 10001
5464f5a1
NN
10002 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10003echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10004 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10006else
5464f5a1
NN
10007 cat >conftest.$ac_ext <<_ACEOF
10008/* confdefs.h. */
10009_ACEOF
10010cat confdefs.h >>conftest.$ac_ext
10011cat >>conftest.$ac_ext <<_ACEOF
10012/* end confdefs.h. */
7ee38065
MS
10013
10014#define _SYSCALL32
10015#include <sys/procfs.h>
5464f5a1
NN
10016int
10017main ()
10018{
7ee38065 10019pstatus32_t avar
5464f5a1
NN
10020 ;
10021 return 0;
10022}
10023_ACEOF
10024rm -f conftest.$ac_objext
10025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10026 (eval $ac_compile) 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } &&
49c96104
SE
10033 { ac_try='test -z "$ac_c_werror_flag"
10034 || test ! -s conftest.err'
5464f5a1
NN
10035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036 (eval $ac_try) 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); }; } &&
10040 { ac_try='test -s conftest.$ac_objext'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
7ee38065
MS
10046 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10047else
5464f5a1
NN
10048 echo "$as_me: failed program was:" >&5
10049sed 's/^/| /' conftest.$ac_ext >&5
10050
10051bfd_cv_have_sys_procfs_type_pstatus32_t=no
10052
7ee38065 10053fi
5464f5a1 10054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10055fi
10056
10057 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
10058
10059cat >>confdefs.h <<\_ACEOF
7ee38065 10060#define HAVE_PSTATUS32_T 1
5464f5a1 10061_ACEOF
7ee38065
MS
10062
10063 fi
5464f5a1
NN
10064 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10065echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 10066
5464f5a1
NN
10067 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10068echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10069 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10071else
5464f5a1
NN
10072 cat >conftest.$ac_ext <<_ACEOF
10073/* confdefs.h. */
10074_ACEOF
10075cat confdefs.h >>conftest.$ac_ext
10076cat >>conftest.$ac_ext <<_ACEOF
10077/* end confdefs.h. */
7ee38065
MS
10078
10079#define _SYSCALL32
252b5132 10080#include <sys/procfs.h>
5464f5a1
NN
10081int
10082main ()
10083{
252b5132 10084prpsinfo_t avar
5464f5a1
NN
10085 ;
10086 return 0;
10087}
10088_ACEOF
10089rm -f conftest.$ac_objext
10090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10091 (eval $ac_compile) 2>conftest.er1
10092 ac_status=$?
10093 grep -v '^ *+' conftest.er1 >conftest.err
10094 rm -f conftest.er1
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
49c96104
SE
10098 { ac_try='test -z "$ac_c_werror_flag"
10099 || test ! -s conftest.err'
5464f5a1
NN
10100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101 (eval $ac_try) 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); }; } &&
10105 { ac_try='test -s conftest.$ac_objext'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
252b5132
RH
10111 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10112else
5464f5a1
NN
10113 echo "$as_me: failed program was:" >&5
10114sed 's/^/| /' conftest.$ac_ext >&5
10115
10116bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10117
252b5132 10118fi
5464f5a1 10119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10120fi
10121
10122 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
10123
10124cat >>confdefs.h <<\_ACEOF
252b5132 10125#define HAVE_PRPSINFO_T 1
5464f5a1 10126_ACEOF
252b5132
RH
10127
10128 fi
5464f5a1
NN
10129 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10130echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 10131
5464f5a1
NN
10132 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10133echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10134 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10136else
5464f5a1
NN
10137 cat >conftest.$ac_ext <<_ACEOF
10138/* confdefs.h. */
10139_ACEOF
10140cat confdefs.h >>conftest.$ac_ext
10141cat >>conftest.$ac_ext <<_ACEOF
10142/* end confdefs.h. */
7ee38065
MS
10143
10144#define _SYSCALL32
10145#include <sys/procfs.h>
5464f5a1
NN
10146int
10147main ()
10148{
7ee38065 10149prpsinfo32_t avar
5464f5a1
NN
10150 ;
10151 return 0;
10152}
10153_ACEOF
10154rm -f conftest.$ac_objext
10155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10156 (eval $ac_compile) 2>conftest.er1
10157 ac_status=$?
10158 grep -v '^ *+' conftest.er1 >conftest.err
10159 rm -f conftest.er1
10160 cat conftest.err >&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } &&
49c96104
SE
10163 { ac_try='test -z "$ac_c_werror_flag"
10164 || test ! -s conftest.err'
5464f5a1
NN
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10167 ac_status=$?
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; } &&
10170 { ac_try='test -s conftest.$ac_objext'
10171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172 (eval $ac_try) 2>&5
10173 ac_status=$?
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
7ee38065
MS
10176 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10177else
5464f5a1
NN
10178 echo "$as_me: failed program was:" >&5
10179sed 's/^/| /' conftest.$ac_ext >&5
10180
10181bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10182
7ee38065 10183fi
5464f5a1 10184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10185fi
10186
10187 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
10188
10189cat >>confdefs.h <<\_ACEOF
7ee38065 10190#define HAVE_PRPSINFO32_T 1
5464f5a1 10191_ACEOF
7ee38065
MS
10192
10193 fi
5464f5a1
NN
10194 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10195echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 10196
5464f5a1
NN
10197 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10198echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10199 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10201else
5464f5a1
NN
10202 cat >conftest.$ac_ext <<_ACEOF
10203/* confdefs.h. */
10204_ACEOF
10205cat confdefs.h >>conftest.$ac_ext
10206cat >>conftest.$ac_ext <<_ACEOF
10207/* end confdefs.h. */
7ee38065
MS
10208
10209#define _SYSCALL32
252b5132 10210#include <sys/procfs.h>
5464f5a1
NN
10211int
10212main ()
10213{
252b5132 10214psinfo_t avar
5464f5a1
NN
10215 ;
10216 return 0;
10217}
10218_ACEOF
10219rm -f conftest.$ac_objext
10220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10221 (eval $ac_compile) 2>conftest.er1
10222 ac_status=$?
10223 grep -v '^ *+' conftest.er1 >conftest.err
10224 rm -f conftest.er1
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } &&
49c96104
SE
10228 { ac_try='test -z "$ac_c_werror_flag"
10229 || test ! -s conftest.err'
5464f5a1
NN
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; } &&
10235 { ac_try='test -s conftest.$ac_objext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
252b5132
RH
10241 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10242else
5464f5a1
NN
10243 echo "$as_me: failed program was:" >&5
10244sed 's/^/| /' conftest.$ac_ext >&5
10245
10246bfd_cv_have_sys_procfs_type_psinfo_t=no
10247
252b5132 10248fi
5464f5a1 10249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10250fi
10251
10252 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
10253
10254cat >>confdefs.h <<\_ACEOF
252b5132 10255#define HAVE_PSINFO_T 1
5464f5a1 10256_ACEOF
252b5132
RH
10257
10258 fi
5464f5a1
NN
10259 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10260echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 10261
5464f5a1
NN
10262 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10263echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10264 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10266else
5464f5a1
NN
10267 cat >conftest.$ac_ext <<_ACEOF
10268/* confdefs.h. */
10269_ACEOF
10270cat confdefs.h >>conftest.$ac_ext
10271cat >>conftest.$ac_ext <<_ACEOF
10272/* end confdefs.h. */
7ee38065
MS
10273
10274#define _SYSCALL32
10275#include <sys/procfs.h>
5464f5a1
NN
10276int
10277main ()
10278{
7ee38065 10279psinfo32_t avar
5464f5a1
NN
10280 ;
10281 return 0;
10282}
10283_ACEOF
10284rm -f conftest.$ac_objext
10285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286 (eval $ac_compile) 2>conftest.er1
10287 ac_status=$?
10288 grep -v '^ *+' conftest.er1 >conftest.err
10289 rm -f conftest.er1
10290 cat conftest.err >&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } &&
49c96104
SE
10293 { ac_try='test -z "$ac_c_werror_flag"
10294 || test ! -s conftest.err'
5464f5a1
NN
10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10297 ac_status=$?
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; } &&
10300 { ac_try='test -s conftest.$ac_objext'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; }; then
7ee38065
MS
10306 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10307else
5464f5a1
NN
10308 echo "$as_me: failed program was:" >&5
10309sed 's/^/| /' conftest.$ac_ext >&5
10310
10311bfd_cv_have_sys_procfs_type_psinfo32_t=no
10312
7ee38065 10313fi
5464f5a1 10314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10315fi
10316
10317 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
10318
10319cat >>confdefs.h <<\_ACEOF
7ee38065 10320#define HAVE_PSINFO32_T 1
5464f5a1 10321_ACEOF
7ee38065
MS
10322
10323 fi
5464f5a1
NN
10324 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10325echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 10326
5464f5a1
NN
10327 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10328echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10329 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10331else
5464f5a1
NN
10332 cat >conftest.$ac_ext <<_ACEOF
10333/* confdefs.h. */
10334_ACEOF
10335cat confdefs.h >>conftest.$ac_ext
10336cat >>conftest.$ac_ext <<_ACEOF
10337/* end confdefs.h. */
7ee38065
MS
10338
10339#define _SYSCALL32
252b5132 10340#include <sys/procfs.h>
5464f5a1
NN
10341int
10342main ()
10343{
252b5132 10344lwpstatus_t avar
5464f5a1
NN
10345 ;
10346 return 0;
10347}
10348_ACEOF
10349rm -f conftest.$ac_objext
10350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10351 (eval $ac_compile) 2>conftest.er1
10352 ac_status=$?
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
49c96104
SE
10358 { ac_try='test -z "$ac_c_werror_flag"
10359 || test ! -s conftest.err'
5464f5a1
NN
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; } &&
10365 { ac_try='test -s conftest.$ac_objext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
252b5132
RH
10371 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10372else
5464f5a1
NN
10373 echo "$as_me: failed program was:" >&5
10374sed 's/^/| /' conftest.$ac_ext >&5
10375
10376bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10377
252b5132 10378fi
5464f5a1 10379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10380fi
10381
10382 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
10383
10384cat >>confdefs.h <<\_ACEOF
252b5132 10385#define HAVE_LWPSTATUS_T 1
5464f5a1 10386_ACEOF
252b5132
RH
10387
10388 fi
5464f5a1
NN
10389 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10390echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 10391
5464f5a1
NN
10392 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10393echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10394 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10396else
5464f5a1
NN
10397 cat >conftest.$ac_ext <<_ACEOF
10398/* confdefs.h. */
10399_ACEOF
10400cat confdefs.h >>conftest.$ac_ext
10401cat >>conftest.$ac_ext <<_ACEOF
10402/* end confdefs.h. */
f572a39d
AM
10403
10404#define _SYSCALL32
10405#include <sys/procfs.h>
5464f5a1
NN
10406int
10407main ()
10408{
f572a39d 10409lwpxstatus_t avar
5464f5a1
NN
10410 ;
10411 return 0;
10412}
10413_ACEOF
10414rm -f conftest.$ac_objext
10415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10416 (eval $ac_compile) 2>conftest.er1
10417 ac_status=$?
10418 grep -v '^ *+' conftest.er1 >conftest.err
10419 rm -f conftest.er1
10420 cat conftest.err >&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } &&
49c96104
SE
10423 { ac_try='test -z "$ac_c_werror_flag"
10424 || test ! -s conftest.err'
5464f5a1
NN
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; } &&
10430 { ac_try='test -s conftest.$ac_objext'
10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; }; then
f572a39d
AM
10436 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10437else
5464f5a1
NN
10438 echo "$as_me: failed program was:" >&5
10439sed 's/^/| /' conftest.$ac_ext >&5
10440
10441bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10442
f572a39d 10443fi
5464f5a1 10444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10445fi
10446
10447 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
10448
10449cat >>confdefs.h <<\_ACEOF
f572a39d 10450#define HAVE_LWPXSTATUS_T 1
5464f5a1 10451_ACEOF
f572a39d
AM
10452
10453 fi
5464f5a1
NN
10454 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10455echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 10456
5464f5a1
NN
10457 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10458echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10459 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10461else
5464f5a1
NN
10462 cat >conftest.$ac_ext <<_ACEOF
10463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
7ee38065
MS
10468
10469#define _SYSCALL32
252b5132 10470#include <sys/procfs.h>
5464f5a1
NN
10471int
10472main ()
10473{
252b5132 10474lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
10475 ;
10476 return 0;
10477}
10478_ACEOF
10479rm -f conftest.$ac_objext
10480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10481 (eval $ac_compile) 2>conftest.er1
10482 ac_status=$?
10483 grep -v '^ *+' conftest.er1 >conftest.err
10484 rm -f conftest.er1
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
49c96104
SE
10488 { ac_try='test -z "$ac_c_werror_flag"
10489 || test ! -s conftest.err'
5464f5a1
NN
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; } &&
10495 { ac_try='test -s conftest.$ac_objext'
10496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10498 ac_status=$?
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); }; }; then
252b5132
RH
10501 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10502else
5464f5a1
NN
10503 echo "$as_me: failed program was:" >&5
10504sed 's/^/| /' conftest.$ac_ext >&5
10505
10506bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10507
252b5132 10508fi
5464f5a1 10509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10510fi
10511
10512 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
10513
10514cat >>confdefs.h <<\_ACEOF
252b5132 10515#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 10516_ACEOF
252b5132
RH
10517
10518 fi
5464f5a1
NN
10519 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10520echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 10521
5464f5a1
NN
10522 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10523echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10524 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10526else
5464f5a1
NN
10527 cat >conftest.$ac_ext <<_ACEOF
10528/* confdefs.h. */
10529_ACEOF
10530cat confdefs.h >>conftest.$ac_ext
10531cat >>conftest.$ac_ext <<_ACEOF
10532/* end confdefs.h. */
7ee38065
MS
10533
10534#define _SYSCALL32
252b5132 10535#include <sys/procfs.h>
5464f5a1
NN
10536int
10537main ()
10538{
252b5132 10539lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
10540 ;
10541 return 0;
10542}
10543_ACEOF
10544rm -f conftest.$ac_objext
10545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 (eval $ac_compile) 2>conftest.er1
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
49c96104
SE
10553 { ac_try='test -z "$ac_c_werror_flag"
10554 || test ! -s conftest.err'
5464f5a1
NN
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest.$ac_objext'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
252b5132
RH
10566 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10567else
5464f5a1
NN
10568 echo "$as_me: failed program was:" >&5
10569sed 's/^/| /' conftest.$ac_ext >&5
10570
10571bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10572
252b5132 10573fi
5464f5a1 10574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10575fi
10576
10577 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
10578
10579cat >>confdefs.h <<\_ACEOF
252b5132 10580#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 10581_ACEOF
252b5132
RH
10582
10583 fi
5464f5a1
NN
10584 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10585echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 10586
5464f5a1
NN
10587 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10588echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10589 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 10591else
5464f5a1
NN
10592 cat >conftest.$ac_ext <<_ACEOF
10593/* confdefs.h. */
10594_ACEOF
10595cat confdefs.h >>conftest.$ac_ext
10596cat >>conftest.$ac_ext <<_ACEOF
10597/* end confdefs.h. */
7ee38065
MS
10598
10599#define _SYSCALL32
e3c976c4 10600#include <sys/procfs.h>
5464f5a1
NN
10601int
10602main ()
10603{
e3c976c4 10604win32_pstatus_t avar
5464f5a1
NN
10605 ;
10606 return 0;
10607}
10608_ACEOF
10609rm -f conftest.$ac_objext
10610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10611 (eval $ac_compile) 2>conftest.er1
10612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } &&
49c96104
SE
10618 { ac_try='test -z "$ac_c_werror_flag"
10619 || test ! -s conftest.err'
5464f5a1
NN
10620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest.$ac_objext'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
e3c976c4
ILT
10631 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10632else
5464f5a1
NN
10633 echo "$as_me: failed program was:" >&5
10634sed 's/^/| /' conftest.$ac_ext >&5
10635
10636bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10637
e3c976c4 10638fi
5464f5a1 10639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10640fi
10641
e3c976c4 10642 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
10643
10644cat >>confdefs.h <<\_ACEOF
e3c976c4 10645#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 10646_ACEOF
16e9c715
NC
10647
10648 fi
5464f5a1
NN
10649 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10650echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
10651
10652 fi
10653fi
16e9c715 10654
b3baf5d0 10655
6be7c12c 10656if test -n "$TRAD_HEADER"; then
5464f5a1
NN
10657
10658cat >>confdefs.h <<_ACEOF
252b5132 10659#define TRAD_HEADER $TRAD_HEADER
5464f5a1 10660_ACEOF
252b5132 10661
3f9b03b5 10662fi
252b5132
RH
10663
10664# Horrible hacks to build DLLs on Windows.
10665WIN32LDFLAGS=
10666WIN32LIBADD=
10667case "${host}" in
10668*-*-cygwin*)
10669 if test "$enable_shared" = "yes"; then
10670 WIN32LDFLAGS="-no-undefined"
10671 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10672 fi
10673 ;;
78be1d6e 10674*-*-linux*)
39691762
L
10675 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10676 # libiberty.a.
ca51bfff
L
10677 case "${host}" in
10678 mips*-*-linux*)
10679 # Linux/MIPS uses PIC by default.
10680 if test "$enable_shared" = "yes"; then
10681 WIN32LIBADD="-L../libiberty -liberty"
10682 fi
10683 ;;
10684 *)
66e25bab 10685 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 10686 if test -n "$x"; then
ca51bfff
L
10687 WIN32LIBADD="-L../libiberty/pic -liberty"
10688 fi
10689 ;;
10690 esac
39691762 10691 ;;
252b5132
RH
10692esac
10693
6be7c12c
AO
10694
10695
252b5132
RH
10696# target stuff:
10697
10698# Canonicalize the secondary target names.
10699if test -n "$enable_targets" ; then
10700 for targ in `echo $enable_targets | sed 's/,/ /g'`
10701 do
6d83c84b 10702 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
10703 if test -n "$result" ; then
10704 canon_targets="$canon_targets $result"
10705 else
10706 # Allow targets that config.sub doesn't recognize, like "all".
10707 canon_targets="$canon_targets $targ"
10708 fi
10709 done
10710fi
10711
10712all_targets=false
10713defvec=
10714selvecs=
08f74004 10715assocvecs=
252b5132
RH
10716selarchs=
10717TDEFINES=
10718for targ in $target $canon_targets
10719do
10720 if test "x$targ" = "xall"; then
10721 all_targets=true
08f74004 10722 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
10723 else
10724 . $srcdir/config.bfd
10725 if test "x$targ" = "x$target"; then
10726 defvec=$targ_defvec
10727 fi
10728 selvecs="$selvecs $targ_defvec $targ_selvecs"
10729 selarchs="$selarchs $targ_archs"
10730 TDEFINES="$TDEFINES $targ_cflags"
10731 fi
10732done
10733
6be7c12c 10734
252b5132
RH
10735# This processing still needs to be done if we're to decide properly whether
10736# 64-bit support needs to be compiled in. Currently, it will be included if
10737# the default or any other explicitly requested target requires it; it
10738# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 10739# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
10740# used.
10741
10742# uniq the default and selected vectors in all the configured targets.
10743f=""
10744for i in $selvecs ; do
10745 case " $f " in
10746 *" $i "*) ;;
10747 *) f="$f $i" ;;
10748 esac
10749done
10750selvecs="$f"
10751
6be7c12c 10752
08f74004
AM
10753# uniq the associated vectors in all the configured targets.
10754f=""
10755for i in $assocvecs ; do
10756 case " $f " in
10757 *" $i "*) ;;
10758 *) f="$f $i" ;;
10759 esac
10760done
10761assocvecs="$f"
10762
10763
252b5132
RH
10764# uniq the architectures in all the configured targets.
10765f=""
10766for i in $selarchs ; do
10767 case " $f " in
10768 *" $i "*) ;;
10769 *) f="$f $i" ;;
10770 esac
10771done
10772selarchs="$f"
10773
10774# Target backend .o files.
10775tb=
10776
65765700 10777elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
10778
10779for vec in $selvecs
10780do
69263e90 10781 target_size=32
252b5132
RH
10782 case "$vec" in
10783 # This list is alphabetized to make it easy to compare
dc810e39
AM
10784 # with the two vector lists in targets.c. For the same reason,
10785 # use one entry per line, even though this leads to long lines.
252b5132 10786 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 10787 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
10788 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
10789 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10790 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 10791 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
10792 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10793 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10794 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10795 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
10796 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10797 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10798 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10799 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
10800 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10801 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10802 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
10803 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10804 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10805 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10806 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
10807 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
10808 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 10809 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 10810 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 10811 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 10812 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 10813 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 10814 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 10815 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 10816 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 10817 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 10818 bfd_elf32_bigarm_symbian_vec)
00a97672 10819 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 10820 bfd_elf32_bigarm_vxworks_vec)
00a97672 10821 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
10822 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10823 bfd_elf32_bigmips_vxworks_vec)
10824 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 10825 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 10826 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 10827 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
10828 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
10829 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 10830 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 10831 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 10832 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 10833 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 10834 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 10835 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 10836 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 10837 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 10838 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
10839 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10840 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10841 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 10842 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 10843 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 10844 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 10845 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 10846 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 10847 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 10848 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 10849 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 10850 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 10851 bfd_elf32_littlearm_symbian_vec)
00a97672 10852 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 10853 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
10854 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10855 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
10856 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10857 bfd_elf32_littlemips_vxworks_vec)
10858 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 10859 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 10860 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
10861 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10862 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10863 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
10864 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10865 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
10866 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
10867 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
10868 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10869 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10870 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
10871 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 10872 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 10873 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
10874 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10875 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10876 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10877 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 10878 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 10879 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
10880 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10881 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
10882 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10883 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10884 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 10885 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
10886 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10887 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
10888 # FIXME: We include cofflink.lo not because it's needed for
10889 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
10890 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
10891 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10892 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10893 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10894 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10895 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10896 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10897 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10898 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10899 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10900 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10901 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10902 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10903 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 10904 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 10905 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
10906 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10907 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 10908 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
10909 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10910 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 10911 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 10912 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 10913 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 10914 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 10915 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
10916 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10917 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 10918 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
10919 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10920 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 10921 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
10922 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10923 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 10924 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 10925 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
10926 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10927 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 10928 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 10929 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
10930 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10931 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
10932 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
10933 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10934 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
10935 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10936 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10937 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10938 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 10939 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 10940 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
10941 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 ;;
10942 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 10943 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 10944 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 10945 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
10946 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10947 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
10948 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10949 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 10950 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 10951 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 10952 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 10953 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
10954 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
10955 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
10956 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
10957 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
10958 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
10959 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
10960 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
10961 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
10962 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
10963 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
10964 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
10965 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 10966 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
10967 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
10968 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
10969 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
10970 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
10971 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
10972 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 10973 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
10974 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
10975 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
10976 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
10977 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
10978 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
10979 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
10980 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
10981 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
10982 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
10983 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
10984 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
10985 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
10986 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
10987 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
10988 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 10989 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
10990 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
10991 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 10992 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 10993 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 10994 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
10995 mach_o_be_vec) tb="$tb mach-o.lo" ;;
10996 mach_o_le_vec) tb="$tb mach-o.lo" ;;
10997 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
10998 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
10999 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11000 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11001 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
11002 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11003 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 11004 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 11005 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 11006 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 11007 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 11008 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 11009 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 11010 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 11011 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
11012 pef_vec) tb="$tb pef.lo" ;;
11013 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 11014 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 11015 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11016 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 11017 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 11018 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 11019 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11020 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11021 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 11022 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11023 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
11024 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11025 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 11026 som_vec) tb="$tb som.lo" ;;
dc810e39 11027 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
11028 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11029 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11030 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11031 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11032 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 11033 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 11034 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
11035 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11036 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
11037 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11038 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11039 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11040 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11041 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11042 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 11043 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11044 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11045 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11046 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11047 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11048 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 11049 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 11050 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 11051 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 11052 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 11053 versados_vec) tb="$tb versados.lo" ;;
dc810e39 11054 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
11055 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11056 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11057 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 11058 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 11059 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 11060
341ca622
AM
11061 # These appear out of order in targets.c
11062 srec_vec) tb="$tb srec.lo" ;;
11063 symbolsrec_vec) tb="$tb srec.lo" ;;
11064 tekhex_vec) tb="$tb tekhex.lo" ;;
11065 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11066 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11067
252b5132 11068 "") ;;
5464f5a1
NN
11069 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11070echo "$as_me: error: *** unknown target vector $vec" >&2;}
11071 { (exit 1); exit 1; }; } ;;
252b5132 11072 esac
69263e90
AM
11073
11074 if test ${target_size} = 64; then
11075 target64=true
11076 fi
11077 if test x"${vec}" = x"${defvec}"; then
11078 bfd_default_target_size=${target_size}
11079 fi
252b5132
RH
11080done
11081
11082# Target architecture .o files.
11083# A couple of CPUs use shorter file names to avoid problems on DOS
11084# filesystems.
d031aafb 11085ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
11086
11087# Weed out duplicate .o files.
11088f=""
11089for i in $tb ; do
11090 case " $f " in
11091 *" $i "*) ;;
11092 *) f="$f $i" ;;
11093 esac
11094done
11095tb="$f"
11096
11097f=""
11098for i in $ta ; do
11099 case " $f " in
11100 *" $i "*) ;;
11101 *) f="$f $i" ;;
11102 esac
11103done
11104ta="$f"
11105
11106bfd_backends="$tb"
11107bfd_machines="$ta"
11108
11109if test x${all_targets} = xtrue ; then
11110 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11111 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11112 selvecs=
11113 havevecs=
11114 selarchs=
08f74004
AM
11115 test -n "$assocvecs" &&
11116 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
11117else # all_targets is true
11118 # Only set these if they will be nonempty, for the clever echo.
11119 havevecs=
08f74004 11120 assocvecs=
252b5132
RH
11121 test -n "$selvecs" &&
11122 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11123 test -n "$selvecs" &&
11124 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11125 test -n "$selarchs" &&
11126 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11127fi # all_targets is true
11128
11129case ${host64}-${target64}-${want64} in
11130 *true*)
11131 wordsize=64
2858ef35 11132 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 11133 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 11134 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
11135 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11136echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11138echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 11139 fi
966abd70
HPN
11140 if test -n "$GCC" ; then
11141 bad_64bit_gcc=no;
5464f5a1
NN
11142 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11143echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 11144 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
11145 cat >conftest.$ac_ext <<_ACEOF
11146/* confdefs.h. */
11147_ACEOF
11148cat confdefs.h >>conftest.$ac_ext
11149cat >>conftest.$ac_ext <<_ACEOF
11150/* end confdefs.h. */
966abd70 11151:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 11152_ACEOF
966abd70 11153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 11154 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 11155 bad_64bit_gcc=yes;
5464f5a1
NN
11156 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11157echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 11158else
5464f5a1
NN
11159 echo "$as_me:$LINENO: result: no" >&5
11160echo "${ECHO_T}no" >&6
966abd70
HPN
11161fi
11162rm -f conftest*
11163
11164 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
11165 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11166echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11167 { (exit 1); exit 1; }; }
966abd70
HPN
11168 fi
11169 fi
252b5132
RH
11170 ;;
11171 false-false-false)
11172 wordsize=32
2858ef35 11173 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
11174 all_backends='$(BFD32_BACKENDS)'
11175 ;;
11176esac
11177
6be7c12c
AO
11178
11179
11180
11181
11182
69263e90 11183
2858ef35 11184
1012372a
AC
11185# Determine the host dependant file_ptr a.k.a. off_t type. In order
11186# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11187# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11188# Hopefully a reasonable assumption since fseeko et.al. should be
11189# upward compatible.
5464f5a1
NN
11190
11191
11192
11193
2e6f4fae
DJ
11194
11195for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 11196do
5464f5a1
NN
11197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11198echo "$as_me:$LINENO: checking for $ac_func" >&5
11199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11200if eval "test \"\${$as_ac_var+set}\" = set"; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11202else
2ba49b59
KC
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. */
11209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11211#define $ac_func innocuous_$ac_func
11212
11213/* System header to define __stub macros and hopefully few prototypes,
11214 which can conflict with char $ac_func (); below.
11215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11216 <limits.h> exists even on freestanding compilers. */
11217
11218#ifdef __STDC__
11219# include <limits.h>
11220#else
11221# include <assert.h>
11222#endif
11223
11224#undef $ac_func
11225
11226/* Override any gcc2 internal prototype to avoid an error. */
11227#ifdef __cplusplus
11228extern "C"
11229{
11230#endif
11231/* We use char because int might match the return type of a gcc2
11232 builtin and then its argument prototype would still apply. */
11233char $ac_func ();
11234/* The GNU C library defines this for functions which it implements
11235 to always fail with ENOSYS. Some functions are actually named
11236 something starting with __ and the normal name is an alias. */
11237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11238choke me
11239#else
11240char (*f) () = $ac_func;
11241#endif
11242#ifdef __cplusplus
11243}
11244#endif
11245
11246int
11247main ()
11248{
11249return f != $ac_func;
11250 ;
11251 return 0;
11252}
11253_ACEOF
11254rm -f conftest.$ac_objext conftest$ac_exeext
11255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
49c96104
SE
11263 { ac_try='test -z "$ac_c_werror_flag"
11264 || test ! -s conftest.err'
2ba49b59
KC
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try='test -s conftest$ac_exeext'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 eval "$as_ac_var=yes"
11277else
11278 echo "$as_me: failed program was:" >&5
11279sed 's/^/| /' conftest.$ac_ext >&5
11280
11281eval "$as_ac_var=no"
11282fi
11283rm -f conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
11285fi
11286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11287echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11288if test `eval echo '${'$as_ac_var'}'` = yes; then
11289 cat >>confdefs.h <<_ACEOF
11290#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11291_ACEOF
11292
11293fi
11294done
11295
11296if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11297 echo "$as_me:$LINENO: checking for off_t" >&5
11298echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11299if test "${ac_cv_type_off_t+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301else
11302 cat >conftest.$ac_ext <<_ACEOF
11303/* confdefs.h. */
11304_ACEOF
11305cat confdefs.h >>conftest.$ac_ext
11306cat >>conftest.$ac_ext <<_ACEOF
11307/* end confdefs.h. */
11308$ac_includes_default
11309int
11310main ()
11311{
11312if ((off_t *) 0)
11313 return 0;
11314if (sizeof (off_t))
11315 return 0;
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320rm -f conftest.$ac_objext
11321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11322 (eval $ac_compile) 2>conftest.er1
11323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } &&
49c96104
SE
11329 { ac_try='test -z "$ac_c_werror_flag"
11330 || test ! -s conftest.err'
2ba49b59
KC
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11333 ac_status=$?
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; } &&
11336 { ac_try='test -s conftest.$ac_objext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 ac_cv_type_off_t=yes
11343else
11344 echo "$as_me: failed program was:" >&5
11345sed 's/^/| /' conftest.$ac_ext >&5
11346
11347ac_cv_type_off_t=no
11348fi
11349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11350fi
11351echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11352echo "${ECHO_T}$ac_cv_type_off_t" >&6
11353
11354echo "$as_me:$LINENO: checking size of off_t" >&5
11355echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11356if test "${ac_cv_sizeof_off_t+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358else
11359 if test "$ac_cv_type_off_t" = yes; then
11360 # The cast to unsigned long works around a bug in the HP C Compiler
11361 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11362 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11363 # This bug is HP SR number 8606223364.
11364 if test "$cross_compiling" = yes; then
11365 # Depending upon the size, compute the lo and hi bounds.
11366cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11367/* confdefs.h. */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h. */
2ba49b59
KC
11372$ac_includes_default
11373int
11374main ()
11375{
11376static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
11377test_array [0] = 0
5464f5a1 11378
2ba49b59
KC
11379 ;
11380 return 0;
11381}
11382_ACEOF
11383rm -f conftest.$ac_objext
11384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11385 (eval $ac_compile) 2>conftest.er1
11386 ac_status=$?
11387 grep -v '^ *+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } &&
49c96104
SE
11392 { ac_try='test -z "$ac_c_werror_flag"
11393 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 ac_lo=0 ac_mid=0
11406 while :; do
11407 cat >conftest.$ac_ext <<_ACEOF
11408/* confdefs.h. */
11409_ACEOF
11410cat confdefs.h >>conftest.$ac_ext
11411cat >>conftest.$ac_ext <<_ACEOF
11412/* end confdefs.h. */
11413$ac_includes_default
11414int
11415main ()
11416{
11417static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11418test_array [0] = 0
5464f5a1 11419
2ba49b59
KC
11420 ;
11421 return 0;
11422}
11423_ACEOF
11424rm -f conftest.$ac_objext
11425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11426 (eval $ac_compile) 2>conftest.er1
11427 ac_status=$?
11428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
49c96104
SE
11433 { ac_try='test -z "$ac_c_werror_flag"
11434 || test ! -s conftest.err'
2ba49b59
KC
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11437 ac_status=$?
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; } &&
11440 { ac_try='test -s conftest.$ac_objext'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
11446 ac_hi=$ac_mid; break
11447else
11448 echo "$as_me: failed program was:" >&5
11449sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11450
2ba49b59
KC
11451ac_lo=`expr $ac_mid + 1`
11452 if test $ac_lo -le $ac_mid; then
11453 ac_lo= ac_hi=
11454 break
11455 fi
11456 ac_mid=`expr 2 '*' $ac_mid + 1`
11457fi
11458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11459 done
11460else
11461 echo "$as_me: failed program was:" >&5
11462sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11463
2ba49b59
KC
11464cat >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 ()
5464f5a1 11473{
2ba49b59
KC
11474static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
11475test_array [0] = 0
1012372a 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=-1 ac_mid=-1
11504 while :; do
11505 cat >conftest.$ac_ext <<_ACEOF
11506/* confdefs.h. */
11507_ACEOF
11508cat confdefs.h >>conftest.$ac_ext
11509cat >>conftest.$ac_ext <<_ACEOF
11510/* end confdefs.h. */
11511$ac_includes_default
5464f5a1
NN
11512int
11513main ()
11514{
2ba49b59
KC
11515static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
11516test_array [0] = 0
11517
5464f5a1
NN
11518 ;
11519 return 0;
11520}
11521_ACEOF
2ba49b59
KC
11522rm -f conftest.$ac_objext
11523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11524 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11525 ac_status=$?
11526 grep -v '^ *+' conftest.er1 >conftest.err
11527 rm -f conftest.er1
11528 cat conftest.err >&5
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); } &&
49c96104
SE
11531 { ac_try='test -z "$ac_c_werror_flag"
11532 || test ! -s conftest.err'
5464f5a1
NN
11533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534 (eval $ac_try) 2>&5
11535 ac_status=$?
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; } &&
2ba49b59 11538 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
2ba49b59 11544 ac_lo=$ac_mid; break
5464f5a1
NN
11545else
11546 echo "$as_me: failed program was:" >&5
11547sed 's/^/| /' conftest.$ac_ext >&5
11548
2ba49b59
KC
11549ac_hi=`expr '(' $ac_mid ')' - 1`
11550 if test $ac_mid -le $ac_hi; then
11551 ac_lo= ac_hi=
11552 break
11553 fi
11554 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 11555fi
2ba49b59
KC
11556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11557 done
11558else
11559 echo "$as_me: failed program was:" >&5
11560sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11561
2ba49b59 11562ac_lo= ac_hi=
1012372a 11563fi
2ba49b59
KC
11564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11565fi
11566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11567# Binary search between lo and hi bounds.
11568while test "x$ac_lo" != "x$ac_hi"; do
11569 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
11570 cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
2ba49b59 11576$ac_includes_default
5464f5a1
NN
11577int
11578main ()
11579{
2ba49b59
KC
11580static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11581test_array [0] = 0
11582
5464f5a1
NN
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587rm -f conftest.$ac_objext
11588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
49c96104
SE
11596 { ac_try='test -z "$ac_c_werror_flag"
11597 || test ! -s conftest.err'
5464f5a1
NN
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; } &&
11603 { ac_try='test -s conftest.$ac_objext'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11606 ac_status=$?
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
2ba49b59 11609 ac_hi=$ac_mid
1012372a 11610else
5464f5a1
NN
11611 echo "$as_me: failed program was:" >&5
11612sed 's/^/| /' conftest.$ac_ext >&5
11613
2ba49b59 11614ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 11615fi
5464f5a1 11616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 11617done
2ba49b59
KC
11618case $ac_lo in
11619?*) ac_cv_sizeof_off_t=$ac_lo;;
11620'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11621See \`config.log' for more details." >&5
11622echo "$as_me: error: cannot compute sizeof (off_t), 77
11623See \`config.log' for more details." >&2;}
11624 { (exit 1); exit 1; }; } ;;
11625esac
11626else
11627 if test "$cross_compiling" = yes; then
49c96104
SE
11628 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11629See \`config.log' for more details." >&5
11630echo "$as_me: error: cannot run test program while cross compiling
11631See \`config.log' for more details." >&2;}
2ba49b59
KC
11632 { (exit 1); exit 1; }; }
11633else
11634 cat >conftest.$ac_ext <<_ACEOF
11635/* confdefs.h. */
11636_ACEOF
11637cat confdefs.h >>conftest.$ac_ext
11638cat >>conftest.$ac_ext <<_ACEOF
11639/* end confdefs.h. */
11640$ac_includes_default
11641long longval () { return (long) (sizeof (off_t)); }
11642unsigned long ulongval () { return (long) (sizeof (off_t)); }
11643#include <stdio.h>
11644#include <stdlib.h>
11645int
11646main ()
11647{
1012372a 11648
2ba49b59
KC
11649 FILE *f = fopen ("conftest.val", "w");
11650 if (! f)
11651 exit (1);
11652 if (((long) (sizeof (off_t))) < 0)
11653 {
11654 long i = longval ();
11655 if (i != ((long) (sizeof (off_t))))
11656 exit (1);
11657 fprintf (f, "%ld\n", i);
11658 }
11659 else
11660 {
11661 unsigned long i = ulongval ();
11662 if (i != ((long) (sizeof (off_t))))
11663 exit (1);
11664 fprintf (f, "%lu\n", i);
11665 }
11666 exit (ferror (f) || fclose (f) != 0);
11667
11668 ;
11669 return 0;
11670}
11671_ACEOF
11672rm -f conftest$ac_exeext
11673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674 (eval $ac_link) 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 ac_cv_sizeof_off_t=`cat conftest.val`
11684else
11685 echo "$as_me: program exited with status $ac_status" >&5
11686echo "$as_me: failed program was:" >&5
11687sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11688
2ba49b59
KC
11689( exit $ac_status )
11690{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11691See \`config.log' for more details." >&5
11692echo "$as_me: error: cannot compute sizeof (off_t), 77
11693See \`config.log' for more details." >&2;}
5464f5a1 11694 { (exit 1); exit 1; }; }
1012372a 11695fi
2ba49b59
KC
11696rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11697fi
11698fi
11699rm -f conftest.val
11700else
11701 ac_cv_sizeof_off_t=0
11702fi
11703fi
5464f5a1
NN
11704echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11705echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 11706cat >>confdefs.h <<_ACEOF
1012372a 11707#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 11708_ACEOF
1012372a
AC
11709
11710
1012372a 11711fi
5464f5a1
NN
11712echo "$as_me:$LINENO: checking file_ptr type" >&5
11713echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
11714bfd_file_ptr="long"
11715bfd_ufile_ptr="unsigned long"
11716if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11717 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
11718 bfd_file_ptr=BFD_HOST_64_BIT
11719 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11720fi
5464f5a1
NN
11721echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11722echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
11723
11724
11725
11726
252b5132
RH
11727tdefaults=""
11728test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11729test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 11730test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
11731test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11732test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11733
6be7c12c 11734
5464f5a1
NN
11735
11736
11737for ac_header in stdlib.h unistd.h
252b5132 11738do
5464f5a1
NN
11739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11740if eval "test \"\${$as_ac_Header+set}\" = set"; then
11741 echo "$as_me:$LINENO: checking for $ac_header" >&5
11742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11743if eval "test \"\${$as_ac_Header+set}\" = set"; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745fi
11746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11747echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11748else
11749 # Is the header compilable?
11750echo "$as_me:$LINENO: checking $ac_header usability" >&5
11751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11752cat >conftest.$ac_ext <<_ACEOF
11753/* confdefs.h. */
11754_ACEOF
11755cat confdefs.h >>conftest.$ac_ext
11756cat >>conftest.$ac_ext <<_ACEOF
11757/* end confdefs.h. */
11758$ac_includes_default
11759#include <$ac_header>
11760_ACEOF
11761rm -f conftest.$ac_objext
11762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
49c96104
SE
11770 { ac_try='test -z "$ac_c_werror_flag"
11771 || test ! -s conftest.err'
5464f5a1
NN
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try='test -s conftest.$ac_objext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 ac_header_compiler=yes
11784else
11785 echo "$as_me: failed program was:" >&5
11786sed 's/^/| /' conftest.$ac_ext >&5
11787
11788ac_header_compiler=no
11789fi
11790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11791echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11792echo "${ECHO_T}$ac_header_compiler" >&6
11793
11794# Is the header present?
11795echo "$as_me:$LINENO: checking $ac_header presence" >&5
11796echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11797cat >conftest.$ac_ext <<_ACEOF
11798/* confdefs.h. */
11799_ACEOF
11800cat confdefs.h >>conftest.$ac_ext
11801cat >>conftest.$ac_ext <<_ACEOF
11802/* end confdefs.h. */
11803#include <$ac_header>
11804_ACEOF
11805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } >/dev/null; then
11813 if test -s conftest.err; then
11814 ac_cpp_err=$ac_c_preproc_warn_flag
11815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11816 else
11817 ac_cpp_err=
11818 fi
252b5132 11819else
5464f5a1 11820 ac_cpp_err=yes
252b5132 11821fi
5464f5a1
NN
11822if test -z "$ac_cpp_err"; then
11823 ac_header_preproc=yes
11824else
11825 echo "$as_me: failed program was:" >&5
11826sed 's/^/| /' conftest.$ac_ext >&5
11827
11828 ac_header_preproc=no
252b5132 11829fi
5464f5a1
NN
11830rm -f conftest.err conftest.$ac_ext
11831echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11832echo "${ECHO_T}$ac_header_preproc" >&6
11833
11834# So? What about this header?
11835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11836 yes:no: )
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11838echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11840echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11841 ac_header_preproc=yes
11842 ;;
11843 no:yes:* )
11844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11847echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11849echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11851echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11853echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11855echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11856 (
11857 cat <<\_ASBOX
11858## ------------------------------------------ ##
11859## Report this to the AC_PACKAGE_NAME lists. ##
11860## ------------------------------------------ ##
11861_ASBOX
11862 ) |
11863 sed "s/^/$as_me: WARNING: /" >&2
11864 ;;
11865esac
11866echo "$as_me:$LINENO: checking for $ac_header" >&5
11867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11868if eval "test \"\${$as_ac_Header+set}\" = set"; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 11870else
5464f5a1
NN
11871 eval "$as_ac_Header=\$ac_header_preproc"
11872fi
11873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11875
11876fi
11877if test `eval echo '${'$as_ac_Header'}'` = yes; then
11878 cat >>confdefs.h <<_ACEOF
11879#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11880_ACEOF
11881
252b5132 11882fi
5464f5a1 11883
252b5132
RH
11884done
11885
5464f5a1 11886
252b5132
RH
11887for ac_func in getpagesize
11888do
5464f5a1
NN
11889as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11890echo "$as_me:$LINENO: checking for $ac_func" >&5
11891echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11892if eval "test \"\${$as_ac_var+set}\" = set"; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894else
11895 cat >conftest.$ac_ext <<_ACEOF
11896/* confdefs.h. */
11897_ACEOF
11898cat confdefs.h >>conftest.$ac_ext
11899cat >>conftest.$ac_ext <<_ACEOF
11900/* end confdefs.h. */
11901/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11903#define $ac_func innocuous_$ac_func
11904
252b5132 11905/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11906 which can conflict with char $ac_func (); below.
11907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11908 <limits.h> exists even on freestanding compilers. */
11909
11910#ifdef __STDC__
11911# include <limits.h>
11912#else
11913# include <assert.h>
11914#endif
6be7c12c 11915
5464f5a1 11916#undef $ac_func
252b5132 11917
5464f5a1
NN
11918/* Override any gcc2 internal prototype to avoid an error. */
11919#ifdef __cplusplus
11920extern "C"
11921{
11922#endif
11923/* We use char because int might match the return type of a gcc2
11924 builtin and then its argument prototype would still apply. */
11925char $ac_func ();
252b5132
RH
11926/* The GNU C library defines this for functions which it implements
11927 to always fail with ENOSYS. Some functions are actually named
11928 something starting with __ and the normal name is an alias. */
11929#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11930choke me
11931#else
5464f5a1
NN
11932char (*f) () = $ac_func;
11933#endif
11934#ifdef __cplusplus
11935}
252b5132
RH
11936#endif
11937
5464f5a1
NN
11938int
11939main ()
11940{
11941return f != $ac_func;
11942 ;
11943 return 0;
11944}
11945_ACEOF
11946rm -f conftest.$ac_objext conftest$ac_exeext
11947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11948 (eval $ac_link) 2>conftest.er1
11949 ac_status=$?
11950 grep -v '^ *+' conftest.er1 >conftest.err
11951 rm -f conftest.er1
11952 cat conftest.err >&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
49c96104
SE
11955 { ac_try='test -z "$ac_c_werror_flag"
11956 || test ! -s conftest.err'
5464f5a1
NN
11957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11959 ac_status=$?
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; } &&
11962 { ac_try='test -s conftest$ac_exeext'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; }; then
11968 eval "$as_ac_var=yes"
11969else
11970 echo "$as_me: failed program was:" >&5
11971sed 's/^/| /' conftest.$ac_ext >&5
11972
11973eval "$as_ac_var=no"
11974fi
11975rm -f conftest.err conftest.$ac_objext \
11976 conftest$ac_exeext conftest.$ac_ext
11977fi
11978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11979echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11980if test `eval echo '${'$as_ac_var'}'` = yes; then
11981 cat >>confdefs.h <<_ACEOF
11982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11983_ACEOF
252b5132 11984
252b5132
RH
11985fi
11986done
11987
5464f5a1
NN
11988echo "$as_me:$LINENO: checking for working mmap" >&5
11989echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11990if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
11992else
11993 if test "$cross_compiling" = yes; then
11994 ac_cv_func_mmap_fixed_mapped=no
11995else
5464f5a1
NN
11996 cat >conftest.$ac_ext <<_ACEOF
11997/* confdefs.h. */
11998_ACEOF
11999cat confdefs.h >>conftest.$ac_ext
12000cat >>conftest.$ac_ext <<_ACEOF
12001/* end confdefs.h. */
12002$ac_includes_default
12003/* malloc might have been renamed as rpl_malloc. */
12004#undef malloc
6be7c12c 12005
252b5132
RH
12006/* Thanks to Mike Haertel and Jim Avera for this test.
12007 Here is a matrix of mmap possibilities:
12008 mmap private not fixed
12009 mmap private fixed at somewhere currently unmapped
12010 mmap private fixed at somewhere already mapped
12011 mmap shared not fixed
12012 mmap shared fixed at somewhere currently unmapped
12013 mmap shared fixed at somewhere already mapped
12014 For private mappings, we should verify that changes cannot be read()
12015 back from the file, nor mmap's back from the file at a different
12016 address. (There have been systems where private was not correctly
12017 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 12018 VM page cache was not coherent with the file system buffer cache
252b5132
RH
12019 like early versions of FreeBSD and possibly contemporary NetBSD.)
12020 For shared mappings, we should conversely verify that changes get
5464f5a1 12021 propagated back to all the places they're supposed to be.
252b5132
RH
12022
12023 Grep wants private fixed already mapped.
12024 The main things grep needs to know about mmap are:
12025 * does it exist and is it safe to write into the mmap'd area
12026 * how to use it (BSD variants) */
5464f5a1 12027
252b5132
RH
12028#include <fcntl.h>
12029#include <sys/mman.h>
12030
5464f5a1
NN
12031#if !STDC_HEADERS && !HAVE_STDLIB_H
12032char *malloc ();
12033#endif
6be7c12c 12034
5464f5a1
NN
12035/* This mess was copied from the GNU getpagesize.h. */
12036#if !HAVE_GETPAGESIZE
252b5132 12037/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 12038# if !HAVE_SYS_PARAM_H
252b5132
RH
12039# define HAVE_SYS_PARAM_H 1
12040# endif
12041
12042# ifdef _SC_PAGESIZE
12043# define getpagesize() sysconf(_SC_PAGESIZE)
12044# else /* no _SC_PAGESIZE */
5464f5a1 12045# if HAVE_SYS_PARAM_H
252b5132
RH
12046# include <sys/param.h>
12047# ifdef EXEC_PAGESIZE
12048# define getpagesize() EXEC_PAGESIZE
12049# else /* no EXEC_PAGESIZE */
12050# ifdef NBPG
12051# define getpagesize() NBPG * CLSIZE
12052# ifndef CLSIZE
12053# define CLSIZE 1
12054# endif /* no CLSIZE */
12055# else /* no NBPG */
12056# ifdef NBPC
12057# define getpagesize() NBPC
12058# else /* no NBPC */
12059# ifdef PAGESIZE
12060# define getpagesize() PAGESIZE
12061# endif /* PAGESIZE */
12062# endif /* no NBPC */
12063# endif /* no NBPG */
12064# endif /* no EXEC_PAGESIZE */
12065# else /* no HAVE_SYS_PARAM_H */
12066# define getpagesize() 8192 /* punt totally */
12067# endif /* no HAVE_SYS_PARAM_H */
12068# endif /* no _SC_PAGESIZE */
12069
5464f5a1
NN
12070#endif /* no HAVE_GETPAGESIZE */
12071
12072int
12073main ()
12074{
12075 char *data, *data2, *data3;
12076 int i, pagesize;
12077 int fd;
12078
12079 pagesize = getpagesize ();
12080
12081 /* First, make a file with some known garbage in it. */
12082 data = (char *) malloc (pagesize);
12083 if (!data)
12084 exit (1);
12085 for (i = 0; i < pagesize; ++i)
12086 *(data + i) = rand ();
12087 umask (0);
12088 fd = creat ("conftest.mmap", 0600);
12089 if (fd < 0)
12090 exit (1);
12091 if (write (fd, data, pagesize) != pagesize)
12092 exit (1);
12093 close (fd);
12094
12095 /* Next, try to mmap the file at a fixed address which already has
12096 something else allocated at it. If we can, also make sure that
12097 we see the same garbage. */
12098 fd = open ("conftest.mmap", O_RDWR);
12099 if (fd < 0)
12100 exit (1);
12101 data2 = (char *) malloc (2 * pagesize);
12102 if (!data2)
12103 exit (1);
12104 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12105 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12106 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12107 exit (1);
12108 for (i = 0; i < pagesize; ++i)
12109 if (*(data + i) != *(data2 + i))
12110 exit (1);
12111
12112 /* Finally, make sure that changes to the mapped area do not
12113 percolate back to the file as seen by read(). (This is a bug on
12114 some variants of i386 svr4.0.) */
12115 for (i = 0; i < pagesize; ++i)
12116 *(data2 + i) = *(data2 + i) + 1;
12117 data3 = (char *) malloc (pagesize);
12118 if (!data3)
12119 exit (1);
12120 if (read (fd, data3, pagesize) != pagesize)
12121 exit (1);
12122 for (i = 0; i < pagesize; ++i)
12123 if (*(data + i) != *(data3 + i))
12124 exit (1);
12125 close (fd);
12126 exit (0);
12127}
12128_ACEOF
12129rm -f conftest$ac_exeext
12130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131 (eval $ac_link) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 ac_cv_func_mmap_fixed_mapped=yes
12141else
12142 echo "$as_me: program exited with status $ac_status" >&5
12143echo "$as_me: failed program was:" >&5
12144sed 's/^/| /' conftest.$ac_ext >&5
12145
12146( exit $ac_status )
12147ac_cv_func_mmap_fixed_mapped=no
12148fi
12149rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12150fi
12151fi
12152echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12153echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12154if test $ac_cv_func_mmap_fixed_mapped = yes; then
12155
12156cat >>confdefs.h <<\_ACEOF
12157#define HAVE_MMAP 1
12158_ACEOF
12159
12160fi
12161rm -f conftest.mmap
12162
12163
12164
12165for ac_func in madvise mprotect
12166do
12167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12168echo "$as_me:$LINENO: checking for $ac_func" >&5
12169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12170if eval "test \"\${$as_ac_var+set}\" = set"; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172else
12173 cat >conftest.$ac_ext <<_ACEOF
12174/* confdefs.h. */
12175_ACEOF
12176cat confdefs.h >>conftest.$ac_ext
12177cat >>conftest.$ac_ext <<_ACEOF
12178/* end confdefs.h. */
12179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12181#define $ac_func innocuous_$ac_func
12182
12183/* System header to define __stub macros and hopefully few prototypes,
12184 which can conflict with char $ac_func (); below.
12185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12186 <limits.h> exists even on freestanding compilers. */
12187
12188#ifdef __STDC__
12189# include <limits.h>
12190#else
12191# include <assert.h>
12192#endif
12193
12194#undef $ac_func
12195
12196/* Override any gcc2 internal prototype to avoid an error. */
12197#ifdef __cplusplus
12198extern "C"
12199{
12200#endif
12201/* We use char because int might match the return type of a gcc2
12202 builtin and then its argument prototype would still apply. */
12203char $ac_func ();
12204/* The GNU C library defines this for functions which it implements
12205 to always fail with ENOSYS. Some functions are actually named
12206 something starting with __ and the normal name is an alias. */
12207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12208choke me
12209#else
12210char (*f) () = $ac_func;
12211#endif
12212#ifdef __cplusplus
12213}
12214#endif
12215
12216int
12217main ()
12218{
12219return f != $ac_func;
12220 ;
12221 return 0;
12222}
12223_ACEOF
12224rm -f conftest.$ac_objext conftest$ac_exeext
12225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226 (eval $ac_link) 2>conftest.er1
12227 ac_status=$?
12228 grep -v '^ *+' conftest.er1 >conftest.err
12229 rm -f conftest.er1
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
49c96104
SE
12233 { ac_try='test -z "$ac_c_werror_flag"
12234 || test ! -s conftest.err'
5464f5a1
NN
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; } &&
12240 { ac_try='test -s conftest$ac_exeext'
12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12243 ac_status=$?
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246 eval "$as_ac_var=yes"
12247else
12248 echo "$as_me: failed program was:" >&5
12249sed 's/^/| /' conftest.$ac_ext >&5
12250
12251eval "$as_ac_var=no"
12252fi
12253rm -f conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12255fi
12256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12257echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12258if test `eval echo '${'$as_ac_var'}'` = yes; then
12259 cat >>confdefs.h <<_ACEOF
12260#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12261_ACEOF
12262
12263fi
12264done
12265
12266case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12267 true+yes )
12268cat >>confdefs.h <<\_ACEOF
12269#define USE_MMAP 1
12270_ACEOF
12271 ;;
12272esac
12273
12274rm -f doc/config.status
12275 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12276
20e95c23 12277
5464f5a1
NN
12278 ac_config_commands="$ac_config_commands default"
12279
108a6f8e
CD
12280
12281
12282
12283
12284
5464f5a1
NN
12285cat >confcache <<\_ACEOF
12286# This file is a shell script that caches the results of configure
12287# tests run on this system so they can be shared between configure
12288# scripts and configure runs, see configure's option --config-cache.
12289# It is not useful on other systems. If it contains results you don't
12290# want to keep, you may remove or edit it.
12291#
12292# config.status only pays attention to the cache file if you give it
12293# the --recheck option to rerun configure.
12294#
12295# `ac_cv_env_foo' variables (set or unset) will be overridden when
12296# loading this file, other *unset* `ac_cv_foo' will be assigned the
12297# following values.
12298
12299_ACEOF
12300
12301# The following way of writing the cache mishandles newlines in values,
12302# but we know of no workaround that is simple, portable, and efficient.
12303# So, don't put newlines in cache variables' values.
12304# Ultrix sh set writes to stderr and can't be redirected directly,
12305# and sets the high bit in the cache file unless we assign to the vars.
12306{
12307 (set) 2>&1 |
12308 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12309 *ac_space=\ *)
12310 # `set' does not quote correctly, so add quotes (double-quote
12311 # substitution turns \\\\ into \\, and sed turns \\ into \).
12312 sed -n \
12313 "s/'/'\\\\''/g;
12314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12315 ;;
12316 *)
12317 # `set' quotes correctly as required by POSIX, so do not add quotes.
12318 sed -n \
12319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12320 ;;
12321 esac;
12322} |
12323 sed '
12324 t clear
12325 : clear
12326 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12327 t end
12328 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12329 : end' >>confcache
12330if diff $cache_file confcache >/dev/null 2>&1; then :; else
12331 if test -w $cache_file; then
12332 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12333 cat confcache >$cache_file
12334 else
12335 echo "not updating unwritable cache $cache_file"
12336 fi
12337fi
12338rm -f confcache
12339
12340test "x$prefix" = xNONE && prefix=$ac_default_prefix
12341# Let make expand exec_prefix.
12342test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12343
12344# VPATH may cause trouble with some makes, so we remove $(srcdir),
12345# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12346# trailing colons and then remove the whole line if VPATH becomes empty
12347# (actually we leave an empty line to preserve line numbers).
12348if test "x$srcdir" = x.; then
12349 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12350s/:*\$(srcdir):*/:/;
12351s/:*\${srcdir}:*/:/;
12352s/:*@srcdir@:*/:/;
12353s/^\([^=]*=[ ]*\):*/\1/;
12354s/:*$//;
12355s/^[^=]*=[ ]*$//;
12356}'
12357fi
12358
12359DEFS=-DHAVE_CONFIG_H
12360
12361ac_libobjs=
12362ac_ltlibobjs=
12363for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12364 # 1. Remove the extension, and $U if already installed.
12365 ac_i=`echo "$ac_i" |
12366 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12367 # 2. Add them.
12368 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12369 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12370done
12371LIBOBJS=$ac_libobjs
12372
12373LTLIBOBJS=$ac_ltlibobjs
12374
12375
f5385ebf
AM
12376if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12377 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12378Usually this means the macro was only invoked conditionally." >&5
12379echo "$as_me: error: conditional \"AMDEP\" was never defined.
12380Usually this means the macro was only invoked conditionally." >&2;}
12381 { (exit 1); exit 1; }; }
12382fi
12383if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12384 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12385Usually this means the macro was only invoked conditionally." >&5
12386echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12387Usually this means the macro was only invoked conditionally." >&2;}
12388 { (exit 1); exit 1; }; }
12389fi
12390if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12391 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12392Usually this means the macro was only invoked conditionally." >&5
12393echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12394Usually this means the macro was only invoked conditionally." >&2;}
12395 { (exit 1); exit 1; }; }
12396fi
d5fbea21
DJ
12397if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12398 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12399Usually this means the macro was only invoked conditionally." >&5
12400echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12401Usually this means the macro was only invoked conditionally." >&2;}
12402 { (exit 1); exit 1; }; }
12403fi
f5385ebf
AM
12404if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12405 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12406Usually this means the macro was only invoked conditionally." >&5
12407echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12408Usually this means the macro was only invoked conditionally." >&2;}
12409 { (exit 1); exit 1; }; }
12410fi
5464f5a1
NN
12411
12412: ${CONFIG_STATUS=./config.status}
12413ac_clean_files_save=$ac_clean_files
12414ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12415{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12416echo "$as_me: creating $CONFIG_STATUS" >&6;}
12417cat >$CONFIG_STATUS <<_ACEOF
12418#! $SHELL
12419# Generated by $as_me.
12420# Run this file to recreate the current configuration.
12421# Compiler output produced by configure, useful for debugging
12422# configure, is in config.log if it exists.
12423
12424debug=false
12425ac_cs_recheck=false
12426ac_cs_silent=false
12427SHELL=\${CONFIG_SHELL-$SHELL}
12428_ACEOF
12429
12430cat >>$CONFIG_STATUS <<\_ACEOF
12431## --------------------- ##
12432## M4sh Initialization. ##
12433## --------------------- ##
12434
12435# Be Bourne compatible
12436if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12437 emulate sh
12438 NULLCMD=:
12439 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12440 # is contrary to our usage. Disable this feature.
12441 alias -g '${1+"$@"}'='"$@"'
12442elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12443 set -o posix
12444fi
12445DUALCASE=1; export DUALCASE # for MKS sh
12446
12447# Support unset when possible.
12448if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12449 as_unset=unset
12450else
12451 as_unset=false
12452fi
12453
12454
12455# Work around bugs in pre-3.0 UWIN ksh.
12456$as_unset ENV MAIL MAILPATH
12457PS1='$ '
12458PS2='> '
12459PS4='+ '
12460
12461# NLS nuisances.
12462for as_var in \
12463 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12464 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12465 LC_TELEPHONE LC_TIME
12466do
12467 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12468 eval $as_var=C; export $as_var
12469 else
12470 $as_unset $as_var
12471 fi
12472done
12473
12474# Required to use basename.
12475if expr a : '\(a\)' >/dev/null 2>&1; then
12476 as_expr=expr
12477else
12478 as_expr=false
12479fi
12480
12481if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12482 as_basename=basename
12483else
12484 as_basename=false
12485fi
252b5132 12486
6be7c12c 12487
5464f5a1
NN
12488# Name of the executable.
12489as_me=`$as_basename "$0" ||
12490$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12491 X"$0" : 'X\(//\)$' \| \
12492 X"$0" : 'X\(/\)$' \| \
12493 . : '\(.\)' 2>/dev/null ||
12494echo X/"$0" |
12495 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12496 /^X\/\(\/\/\)$/{ s//\1/; q; }
12497 /^X\/\(\/\).*/{ s//\1/; q; }
12498 s/.*/./; q'`
12499
12500
12501# PATH needs CR, and LINENO needs CR and PATH.
12502# Avoid depending upon Character Ranges.
12503as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12504as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12505as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12506as_cr_digits='0123456789'
12507as_cr_alnum=$as_cr_Letters$as_cr_digits
12508
12509# The user is always right.
12510if test "${PATH_SEPARATOR+set}" != set; then
12511 echo "#! /bin/sh" >conf$$.sh
12512 echo "exit 0" >>conf$$.sh
12513 chmod +x conf$$.sh
12514 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12515 PATH_SEPARATOR=';'
12516 else
12517 PATH_SEPARATOR=:
12518 fi
12519 rm -f conf$$.sh
12520fi
12521
12522
12523 as_lineno_1=$LINENO
12524 as_lineno_2=$LINENO
12525 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12526 test "x$as_lineno_1" != "x$as_lineno_2" &&
12527 test "x$as_lineno_3" = "x$as_lineno_2" || {
12528 # Find who we are. Look in the path if we contain no path at all
12529 # relative or not.
12530 case $0 in
12531 *[\\/]* ) as_myself=$0 ;;
12532 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533for as_dir in $PATH
12534do
12535 IFS=$as_save_IFS
12536 test -z "$as_dir" && as_dir=.
12537 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12538done
12539
12540 ;;
12541 esac
12542 # We did not find ourselves, most probably we were run as `sh COMMAND'
12543 # in which case we are not to be found in the path.
12544 if test "x$as_myself" = x; then
12545 as_myself=$0
12546 fi
12547 if test ! -f "$as_myself"; then
12548 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12549echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12550 { (exit 1); exit 1; }; }
12551 fi
12552 case $CONFIG_SHELL in
12553 '')
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12556do
12557 IFS=$as_save_IFS
12558 test -z "$as_dir" && as_dir=.
12559 for as_base in sh bash ksh sh5; do
12560 case $as_dir in
12561 /*)
12562 if ("$as_dir/$as_base" -c '
12563 as_lineno_1=$LINENO
12564 as_lineno_2=$LINENO
12565 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12566 test "x$as_lineno_1" != "x$as_lineno_2" &&
12567 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12568 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12569 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12570 CONFIG_SHELL=$as_dir/$as_base
12571 export CONFIG_SHELL
12572 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12573 fi;;
12574 esac
12575 done
12576done
12577;;
12578 esac
12579
12580 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12581 # uniformly replaced by the line number. The first 'sed' inserts a
12582 # line-number line before each line; the second 'sed' does the real
12583 # work. The second script uses 'N' to pair each line-number line
12584 # with the numbered line, and appends trailing '-' during
12585 # substitution so that $LINENO is not a special case at line end.
12586 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12587 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12588 sed '=' <$as_myself |
12589 sed '
12590 N
12591 s,$,-,
12592 : loop
12593 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12594 t loop
12595 s,-$,,
12596 s,^['$as_cr_digits']*\n,,
12597 ' >$as_me.lineno &&
12598 chmod +x $as_me.lineno ||
12599 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12600echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12601 { (exit 1); exit 1; }; }
12602
12603 # Don't try to exec as it changes $[0], causing all sort of problems
12604 # (the dirname of $[0] is not the place where we might find the
12605 # original and so on. Autoconf is especially sensible to this).
12606 . ./$as_me.lineno
12607 # Exit status is that of the last command.
12608 exit
252b5132 12609}
6be7c12c 12610
5464f5a1
NN
12611
12612case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12613 *c*,-n*) ECHO_N= ECHO_C='
12614' ECHO_T=' ' ;;
12615 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12616 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12617esac
12618
12619if expr a : '\(a\)' >/dev/null 2>&1; then
12620 as_expr=expr
252b5132 12621else
5464f5a1 12622 as_expr=false
252b5132 12623fi
5464f5a1
NN
12624
12625rm -f conf$$ conf$$.exe conf$$.file
12626echo >conf$$.file
12627if ln -s conf$$.file conf$$ 2>/dev/null; then
12628 # We could just check for DJGPP; but this test a) works b) is more generic
12629 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12630 if test -f conf$$.exe; then
12631 # Don't use ln at all; we don't have any links
12632 as_ln_s='cp -p'
12633 else
12634 as_ln_s='ln -s'
12635 fi
12636elif ln conf$$.file conf$$ 2>/dev/null; then
12637 as_ln_s=ln
12638else
12639 as_ln_s='cp -p'
252b5132 12640fi
5464f5a1 12641rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 12642
5464f5a1
NN
12643if mkdir -p . 2>/dev/null; then
12644 as_mkdir_p=:
12645else
12646 test -d ./-p && rmdir ./-p
12647 as_mkdir_p=false
252b5132 12648fi
b3baf5d0 12649
5464f5a1 12650as_executable_p="test -f"
252b5132 12651
5464f5a1
NN
12652# Sed expression to map a string onto a valid CPP name.
12653as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 12654
5464f5a1
NN
12655# Sed expression to map a string onto a valid variable name.
12656as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 12657
252b5132 12658
5464f5a1
NN
12659# IFS
12660# We need space, tab and new line, in precisely that order.
12661as_nl='
12662'
12663IFS=" $as_nl"
252b5132 12664
5464f5a1
NN
12665# CDPATH.
12666$as_unset CDPATH
12667
12668exec 6>&1
12669
12670# Open the log real soon, to keep \$[0] and so on meaningful, and to
12671# report actual input values of CONFIG_FILES etc. instead of their
12672# values after options handling. Logging --version etc. is OK.
12673exec 5>>config.log
12674{
12675 echo
12676 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12677## Running $as_me. ##
12678_ASBOX
12679} >&5
12680cat >&5 <<_CSEOF
12681
12682This file was extended by $as_me, which was
12683generated by GNU Autoconf 2.59. Invocation command line was
12684
12685 CONFIG_FILES = $CONFIG_FILES
12686 CONFIG_HEADERS = $CONFIG_HEADERS
12687 CONFIG_LINKS = $CONFIG_LINKS
12688 CONFIG_COMMANDS = $CONFIG_COMMANDS
12689 $ $0 $@
12690
12691_CSEOF
12692echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12693echo >&5
12694_ACEOF
12695
12696# Files that config.status was made for.
12697if test -n "$ac_config_files"; then
12698 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 12699fi
5464f5a1
NN
12700
12701if test -n "$ac_config_headers"; then
12702 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 12703fi
252b5132 12704
5464f5a1
NN
12705if test -n "$ac_config_links"; then
12706 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 12707fi
252b5132 12708
5464f5a1
NN
12709if test -n "$ac_config_commands"; then
12710 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12711fi
252b5132 12712
5464f5a1
NN
12713cat >>$CONFIG_STATUS <<\_ACEOF
12714
12715ac_cs_usage="\
12716\`$as_me' instantiates files from templates according to the
12717current configuration.
12718
12719Usage: $0 [OPTIONS] [FILE]...
12720
12721 -h, --help print this help, then exit
12722 -V, --version print version number, then exit
12723 -q, --quiet do not print progress messages
12724 -d, --debug don't remove temporary files
12725 --recheck update $as_me by reconfiguring in the same conditions
12726 --file=FILE[:TEMPLATE]
12727 instantiate the configuration file FILE
12728 --header=FILE[:TEMPLATE]
12729 instantiate the configuration header FILE
12730
12731Configuration files:
12732$config_files
12733
12734Configuration headers:
12735$config_headers
12736
12737Configuration commands:
12738$config_commands
12739
12740Report bugs to <bug-autoconf@gnu.org>."
12741_ACEOF
12742
12743cat >>$CONFIG_STATUS <<_ACEOF
12744ac_cs_version="\\
12745config.status
12746configured by $0, generated by GNU Autoconf 2.59,
12747 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12748
12749Copyright (C) 2003 Free Software Foundation, Inc.
12750This config.status script is free software; the Free Software Foundation
12751gives unlimited permission to copy, distribute and modify it."
12752srcdir=$srcdir
12753INSTALL="$INSTALL"
12754_ACEOF
12755
12756cat >>$CONFIG_STATUS <<\_ACEOF
12757# If no file are specified by the user, then we need to provide default
12758# value. By we need to know if files were specified by the user.
12759ac_need_defaults=:
12760while test $# != 0
12761do
12762 case $1 in
12763 --*=*)
12764 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12765 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12766 ac_shift=:
6be7c12c 12767 ;;
5464f5a1
NN
12768 -*)
12769 ac_option=$1
12770 ac_optarg=$2
12771 ac_shift=shift
6be7c12c 12772 ;;
5464f5a1
NN
12773 *) # This is not an option, so the user has probably given explicit
12774 # arguments.
12775 ac_option=$1
12776 ac_need_defaults=false;;
12777 esac
252b5132 12778
5464f5a1
NN
12779 case $ac_option in
12780 # Handling of the options.
12781_ACEOF
12782cat >>$CONFIG_STATUS <<\_ACEOF
12783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12784 ac_cs_recheck=: ;;
12785 --version | --vers* | -V )
12786 echo "$ac_cs_version"; exit 0 ;;
12787 --he | --h)
12788 # Conflict between --help and --header
12789 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12790Try \`$0 --help' for more information." >&5
12791echo "$as_me: error: ambiguous option: $1
12792Try \`$0 --help' for more information." >&2;}
12793 { (exit 1); exit 1; }; };;
12794 --help | --hel | -h )
12795 echo "$ac_cs_usage"; exit 0 ;;
12796 --debug | --d* | -d )
12797 debug=: ;;
12798 --file | --fil | --fi | --f )
12799 $ac_shift
12800 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12801 ac_need_defaults=false;;
12802 --header | --heade | --head | --hea )
12803 $ac_shift
12804 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12805 ac_need_defaults=false;;
12806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12807 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12808 ac_cs_silent=: ;;
6be7c12c 12809
5464f5a1
NN
12810 # This is an error.
12811 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12812Try \`$0 --help' for more information." >&5
12813echo "$as_me: error: unrecognized option: $1
12814Try \`$0 --help' for more information." >&2;}
12815 { (exit 1); exit 1; }; } ;;
252b5132 12816
5464f5a1 12817 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 12818
5464f5a1
NN
12819 esac
12820 shift
12821done
6be7c12c 12822
5464f5a1 12823ac_configure_extra_args=
252b5132 12824
5464f5a1
NN
12825if $ac_cs_silent; then
12826 exec 6>/dev/null
12827 ac_configure_extra_args="$ac_configure_extra_args --silent"
12828fi
6be7c12c 12829
5464f5a1
NN
12830_ACEOF
12831cat >>$CONFIG_STATUS <<_ACEOF
12832if \$ac_cs_recheck; then
12833 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12834 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12835fi
12836
12837_ACEOF
12838
12839cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 12840#
5464f5a1 12841# INIT-COMMANDS section.
6be7c12c 12842#
b3baf5d0 12843
f5385ebf 12844AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20e95c23
DJ
12845# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12846 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12847 # from automake.
12848 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12849 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12850 LINGUAS="${LINGUAS-%UNSET%}"
12851
5464f5a1
NN
12852
12853
12854_ACEOF
12855
12856
12857
12858cat >>$CONFIG_STATUS <<\_ACEOF
12859for ac_config_target in $ac_config_targets
252b5132 12860do
5464f5a1
NN
12861 case "$ac_config_target" in
12862 # Handling of arguments.
12863 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12864 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12865 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12866 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 12867 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20e95c23 12868 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5464f5a1
NN
12869 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12870 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12871 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12872echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12873 { (exit 1); exit 1; }; };;
252b5132
RH
12874 esac
12875done
12876
5464f5a1
NN
12877# If the user did not use the arguments to specify the items to instantiate,
12878# then the envvar interface is used. Set only those that are not.
12879# We use the long form for the default assignment because of an extremely
12880# bizarre bug on SunOS 4.1.3.
12881if $ac_need_defaults; then
12882 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12883 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12884 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12885fi
12886
12887# Have a temporary directory for convenience. Make it in the build tree
12888# simply because there is no reason to put it here, and in addition,
12889# creating and moving files from /tmp can sometimes cause problems.
12890# Create a temporary directory, and hook for its removal unless debugging.
12891$debug ||
12892{
12893 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12894 trap '{ (exit 1); exit 1; }' 1 2 13 15
12895}
b3baf5d0 12896
5464f5a1 12897# Create a (secure) tmp directory for tmp files.
b3baf5d0 12898
5464f5a1
NN
12899{
12900 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12901 test -n "$tmp" && test -d "$tmp"
12902} ||
12903{
12904 tmp=./confstat$$-$RANDOM
12905 (umask 077 && mkdir $tmp)
12906} ||
12907{
12908 echo "$me: cannot create a temporary directory in ." >&2
12909 { (exit 1); exit 1; }
12910}
12911
12912_ACEOF
12913
12914cat >>$CONFIG_STATUS <<_ACEOF
12915
12916#
12917# CONFIG_FILES section.
12918#
b3baf5d0 12919
5464f5a1
NN
12920# No need to generate the scripts if there are no CONFIG_FILES.
12921# This happens for instance when ./config.status config.h
12922if test -n "\$CONFIG_FILES"; then
12923 # Protect against being on the right side of a sed subst in config.status.
12924 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12925 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12926s,@SHELL@,$SHELL,;t t
12927s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12928s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12929s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12930s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12931s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12932s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12933s,@exec_prefix@,$exec_prefix,;t t
12934s,@prefix@,$prefix,;t t
12935s,@program_transform_name@,$program_transform_name,;t t
12936s,@bindir@,$bindir,;t t
12937s,@sbindir@,$sbindir,;t t
12938s,@libexecdir@,$libexecdir,;t t
12939s,@datadir@,$datadir,;t t
12940s,@sysconfdir@,$sysconfdir,;t t
12941s,@sharedstatedir@,$sharedstatedir,;t t
12942s,@localstatedir@,$localstatedir,;t t
12943s,@libdir@,$libdir,;t t
12944s,@includedir@,$includedir,;t t
12945s,@oldincludedir@,$oldincludedir,;t t
12946s,@infodir@,$infodir,;t t
12947s,@mandir@,$mandir,;t t
12948s,@build_alias@,$build_alias,;t t
12949s,@host_alias@,$host_alias,;t t
12950s,@target_alias@,$target_alias,;t t
12951s,@DEFS@,$DEFS,;t t
12952s,@ECHO_C@,$ECHO_C,;t t
12953s,@ECHO_N@,$ECHO_N,;t t
12954s,@ECHO_T@,$ECHO_T,;t t
12955s,@LIBS@,$LIBS,;t t
12956s,@build@,$build,;t t
12957s,@build_cpu@,$build_cpu,;t t
12958s,@build_vendor@,$build_vendor,;t t
12959s,@build_os@,$build_os,;t t
12960s,@host@,$host,;t t
12961s,@host_cpu@,$host_cpu,;t t
12962s,@host_vendor@,$host_vendor,;t t
12963s,@host_os@,$host_os,;t t
12964s,@target@,$target,;t t
12965s,@target_cpu@,$target_cpu,;t t
12966s,@target_vendor@,$target_vendor,;t t
12967s,@target_os@,$target_os,;t t
12968s,@CC@,$CC,;t t
12969s,@CFLAGS@,$CFLAGS,;t t
12970s,@LDFLAGS@,$LDFLAGS,;t t
12971s,@CPPFLAGS@,$CPPFLAGS,;t t
12972s,@ac_ct_CC@,$ac_ct_CC,;t t
12973s,@EXEEXT@,$EXEEXT,;t t
12974s,@OBJEXT@,$OBJEXT,;t t
12975s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12976s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12977s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 12978s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
12979s,@PACKAGE@,$PACKAGE,;t t
12980s,@VERSION@,$VERSION,;t t
12981s,@ACLOCAL@,$ACLOCAL,;t t
12982s,@AUTOCONF@,$AUTOCONF,;t t
12983s,@AUTOMAKE@,$AUTOMAKE,;t t
12984s,@AUTOHEADER@,$AUTOHEADER,;t t
12985s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
12986s,@install_sh@,$install_sh,;t t
12987s,@STRIP@,$STRIP,;t t
12988s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12989s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12990s,@mkdir_p@,$mkdir_p,;t t
12991s,@AWK@,$AWK,;t t
5464f5a1 12992s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
12993s,@am__leading_dot@,$am__leading_dot,;t t
12994s,@AMTAR@,$AMTAR,;t t
12995s,@am__tar@,$am__tar,;t t
12996s,@am__untar@,$am__untar,;t t
12997s,@DEPDIR@,$DEPDIR,;t t
12998s,@am__include@,$am__include,;t t
12999s,@am__quote@,$am__quote,;t t
13000s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13001s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13002s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13003s,@CCDEPMODE@,$CCDEPMODE,;t t
13004s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13005s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
13006s,@AR@,$AR,;t t
13007s,@ac_ct_AR@,$ac_ct_AR,;t t
13008s,@RANLIB@,$RANLIB,;t t
13009s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13010s,@LN_S@,$LN_S,;t t
5464f5a1
NN
13011s,@LIBTOOL@,$LIBTOOL,;t t
13012s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 13013s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
13014s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13015s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13016s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
13017s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13018s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
13019s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13020s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
13021s,@host_noncanonical@,$host_noncanonical,;t t
13022s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
13023s,@bfdlibdir@,$bfdlibdir,;t t
13024s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 13025s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
13026s,@LIBINTL@,$LIBINTL,;t t
13027s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13028s,@INCINTL@,$INCINTL,;t t
5464f5a1 13029s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
13030s,@GMSGFMT@,$GMSGFMT,;t t
13031s,@POSUB@,$POSUB,;t t
5464f5a1 13032s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 13033s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 13034s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
13035s,@GENCAT@,$GENCAT,;t t
13036s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 13037s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13038s,@MSGFMT@,$MSGFMT,;t t
13039s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1 13040s,@HDEFINES@,$HDEFINES,;t t
20e95c23
DJ
13041s,@CPP@,$CPP,;t t
13042s,@EGREP@,$EGREP,;t t
5464f5a1
NN
13043s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13044s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13045s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13046s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13047s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13048s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13049s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13050s,@COREFILE@,$COREFILE,;t t
13051s,@COREFLAG@,$COREFLAG,;t t
13052s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13053s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13054s,@TDEFINES@,$TDEFINES,;t t
13055s,@wordsize@,$wordsize,;t t
13056s,@bfd_libs@,$bfd_libs,;t t
13057s,@all_backends@,$all_backends,;t t
13058s,@bfd_backends@,$bfd_backends,;t t
13059s,@bfd_machines@,$bfd_machines,;t t
13060s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13061s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13062s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13063s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
13064s,@datarootdir@,$datarootdir,;t t
13065s,@docdir@,$docdir,;t t
13066s,@htmldir@,$htmldir,;t t
5464f5a1
NN
13067s,@LIBOBJS@,$LIBOBJS,;t t
13068s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 13069CEOF
252b5132 13070
5464f5a1
NN
13071_ACEOF
13072
13073 cat >>$CONFIG_STATUS <<\_ACEOF
13074 # Split the substitutions into bite-sized pieces for seds with
13075 # small command number limits, like on Digital OSF/1 and HP-UX.
13076 ac_max_sed_lines=48
13077 ac_sed_frag=1 # Number of current file.
13078 ac_beg=1 # First line for current file.
13079 ac_end=$ac_max_sed_lines # Line after last line for current file.
13080 ac_more_lines=:
13081 ac_sed_cmds=
13082 while $ac_more_lines; do
13083 if test $ac_beg -gt 1; then
13084 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 13085 else
5464f5a1
NN
13086 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13087 fi
13088 if test ! -s $tmp/subs.frag; then
13089 ac_more_lines=false
13090 else
13091 # The purpose of the label and of the branching condition is to
13092 # speed up the sed processing (if there are no `@' at all, there
13093 # is no need to browse any of the substitutions).
13094 # These are the two extra sed commands mentioned above.
13095 (echo ':t
13096 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13097 if test -z "$ac_sed_cmds"; then
13098 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13099 else
13100 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13101 fi
13102 ac_sed_frag=`expr $ac_sed_frag + 1`
13103 ac_beg=$ac_end
13104 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13105 fi
5464f5a1
NN
13106 done
13107 if test -z "$ac_sed_cmds"; then
13108 ac_sed_cmds=cat
252b5132 13109 fi
5464f5a1 13110fi # test -n "$CONFIG_FILES"
6be7c12c 13111
5464f5a1
NN
13112_ACEOF
13113cat >>$CONFIG_STATUS <<\_ACEOF
13114for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13115 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13116 case $ac_file in
13117 - | *:- | *:-:* ) # input from stdin
13118 cat >$tmp/stdin
13119 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13120 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13121 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13122 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13123 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13124 esac
13125
5464f5a1
NN
13126 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13127 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13128$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13129 X"$ac_file" : 'X\(//\)[^/]' \| \
13130 X"$ac_file" : 'X\(//\)$' \| \
13131 X"$ac_file" : 'X\(/\)' \| \
13132 . : '\(.\)' 2>/dev/null ||
13133echo X"$ac_file" |
13134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13136 /^X\(\/\/\)$/{ s//\1/; q; }
13137 /^X\(\/\).*/{ s//\1/; q; }
13138 s/.*/./; q'`
13139 { if $as_mkdir_p; then
13140 mkdir -p "$ac_dir"
252b5132 13141 else
5464f5a1
NN
13142 as_dir="$ac_dir"
13143 as_dirs=
13144 while test ! -d "$as_dir"; do
13145 as_dirs="$as_dir $as_dirs"
13146 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13147$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13148 X"$as_dir" : 'X\(//\)[^/]' \| \
13149 X"$as_dir" : 'X\(//\)$' \| \
13150 X"$as_dir" : 'X\(/\)' \| \
13151 . : '\(.\)' 2>/dev/null ||
13152echo X"$as_dir" |
13153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13154 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13155 /^X\(\/\/\)$/{ s//\1/; q; }
13156 /^X\(\/\).*/{ s//\1/; q; }
13157 s/.*/./; q'`
13158 done
13159 test ! -n "$as_dirs" || mkdir $as_dirs
13160 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13161echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13162 { (exit 1); exit 1; }; }; }
13163
13164 ac_builddir=.
13165
13166if test "$ac_dir" != .; then
13167 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13168 # A "../" for each directory in $ac_dir_suffix.
13169 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13170else
13171 ac_dir_suffix= ac_top_builddir=
13172fi
252b5132 13173
5464f5a1
NN
13174case $srcdir in
13175 .) # No --srcdir option. We are building in place.
13176 ac_srcdir=.
13177 if test -z "$ac_top_builddir"; then
13178 ac_top_srcdir=.
13179 else
13180 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13181 fi ;;
13182 [\\/]* | ?:[\\/]* ) # Absolute path.
13183 ac_srcdir=$srcdir$ac_dir_suffix;
13184 ac_top_srcdir=$srcdir ;;
252b5132 13185 *) # Relative path.
5464f5a1
NN
13186 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13187 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13188esac
252b5132 13189
5464f5a1
NN
13190# Do not use `cd foo && pwd` to compute absolute paths, because
13191# the directories may not exist.
13192case `pwd` in
13193.) ac_abs_builddir="$ac_dir";;
13194*)
13195 case "$ac_dir" in
13196 .) ac_abs_builddir=`pwd`;;
13197 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13198 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13199 esac;;
13200esac
13201case $ac_abs_builddir in
13202.) ac_abs_top_builddir=${ac_top_builddir}.;;
13203*)
13204 case ${ac_top_builddir}. in
13205 .) ac_abs_top_builddir=$ac_abs_builddir;;
13206 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13207 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13208 esac;;
13209esac
13210case $ac_abs_builddir in
13211.) ac_abs_srcdir=$ac_srcdir;;
13212*)
13213 case $ac_srcdir in
13214 .) ac_abs_srcdir=$ac_abs_builddir;;
13215 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13216 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13217 esac;;
13218esac
13219case $ac_abs_builddir in
13220.) ac_abs_top_srcdir=$ac_top_srcdir;;
13221*)
13222 case $ac_top_srcdir in
13223 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13224 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13225 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13226 esac;;
13227esac
252b5132 13228
5464f5a1
NN
13229
13230 case $INSTALL in
13231 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13232 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 13233 esac
252b5132 13234
49c96104
SE
13235 if test x"$ac_file" != x-; then
13236 { echo "$as_me:$LINENO: creating $ac_file" >&5
13237echo "$as_me: creating $ac_file" >&6;}
13238 rm -f "$ac_file"
13239 fi
5464f5a1
NN
13240 # Let's still pretend it is `configure' which instantiates (i.e., don't
13241 # use $as_me), people would be surprised to read:
13242 # /* config.h. Generated by config.status. */
13243 if test x"$ac_file" = x-; then
13244 configure_input=
13245 else
13246 configure_input="$ac_file. "
13247 fi
13248 configure_input=$configure_input"Generated from `echo $ac_file_in |
13249 sed 's,.*/,,'` by configure."
13250
13251 # First look for the input files in the build tree, otherwise in the
13252 # src tree.
13253 ac_file_inputs=`IFS=:
13254 for f in $ac_file_in; do
13255 case $f in
13256 -) echo $tmp/stdin ;;
13257 [\\/$]*)
13258 # Absolute (can't be DOS-style, as IFS=:)
13259 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13260echo "$as_me: error: cannot find input file: $f" >&2;}
13261 { (exit 1); exit 1; }; }
13262 echo "$f";;
13263 *) # Relative
13264 if test -f "$f"; then
13265 # Build tree
13266 echo "$f"
13267 elif test -f "$srcdir/$f"; then
13268 # Source tree
13269 echo "$srcdir/$f"
13270 else
13271 # /dev/null tree
13272 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13273echo "$as_me: error: cannot find input file: $f" >&2;}
13274 { (exit 1); exit 1; }; }
13275 fi;;
13276 esac
13277 done` || { (exit 1); exit 1; }
5464f5a1
NN
13278_ACEOF
13279cat >>$CONFIG_STATUS <<_ACEOF
13280 sed "$ac_vpsub
13281$extrasub
13282_ACEOF
13283cat >>$CONFIG_STATUS <<\_ACEOF
13284:t
13285/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13286s,@configure_input@,$configure_input,;t t
13287s,@srcdir@,$ac_srcdir,;t t
13288s,@abs_srcdir@,$ac_abs_srcdir,;t t
13289s,@top_srcdir@,$ac_top_srcdir,;t t
13290s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13291s,@builddir@,$ac_builddir,;t t
13292s,@abs_builddir@,$ac_abs_builddir,;t t
13293s,@top_builddir@,$ac_top_builddir,;t t
13294s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13295s,@INSTALL@,$ac_INSTALL,;t t
13296" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13297 rm -f $tmp/stdin
13298 if test x"$ac_file" != x-; then
13299 mv $tmp/out $ac_file
13300 else
13301 cat $tmp/out
13302 rm -f $tmp/out
13303 fi
13304
13305done
13306_ACEOF
13307cat >>$CONFIG_STATUS <<\_ACEOF
13308
13309#
13310# CONFIG_HEADER section.
13311#
252b5132
RH
13312
13313# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13314# NAME is the cpp macro being defined and VALUE is the value it is being given.
13315#
13316# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
13317ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13318ac_dB='[ ].*$,\1#\2'
13319ac_dC=' '
13320ac_dD=',;t'
13321# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13322ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13323ac_uB='$,\1#\2define\3'
252b5132 13324ac_uC=' '
5464f5a1
NN
13325ac_uD=',;t'
13326
13327for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 13328 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13329 case $ac_file in
13330 - | *:- | *:-:* ) # input from stdin
13331 cat >$tmp/stdin
13332 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13333 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13334 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13335 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13336 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13337 esac
13338
5464f5a1
NN
13339 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13340echo "$as_me: creating $ac_file" >&6;}
13341
13342 # First look for the input files in the build tree, otherwise in the
13343 # src tree.
13344 ac_file_inputs=`IFS=:
13345 for f in $ac_file_in; do
13346 case $f in
13347 -) echo $tmp/stdin ;;
13348 [\\/$]*)
13349 # Absolute (can't be DOS-style, as IFS=:)
13350 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13351echo "$as_me: error: cannot find input file: $f" >&2;}
13352 { (exit 1); exit 1; }; }
13353 # Do quote $f, to prevent DOS paths from being IFS'd.
13354 echo "$f";;
13355 *) # Relative
13356 if test -f "$f"; then
13357 # Build tree
13358 echo "$f"
13359 elif test -f "$srcdir/$f"; then
13360 # Source tree
13361 echo "$srcdir/$f"
13362 else
13363 # /dev/null tree
13364 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13365echo "$as_me: error: cannot find input file: $f" >&2;}
13366 { (exit 1); exit 1; }; }
13367 fi;;
13368 esac
13369 done` || { (exit 1); exit 1; }
13370 # Remove the trailing spaces.
13371 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13372
13373_ACEOF
13374
13375# Transform confdefs.h into two sed scripts, `conftest.defines' and
13376# `conftest.undefs', that substitutes the proper values into
13377# config.h.in to produce config.h. The first handles `#define'
13378# templates, and the second `#undef' templates.
13379# And first: Protect against being on the right side of a sed subst in
13380# config.status. Protect against being in an unquoted here document
13381# in config.status.
13382rm -f conftest.defines conftest.undefs
13383# Using a here document instead of a string reduces the quoting nightmare.
13384# Putting comments in sed scripts is not portable.
13385#
13386# `end' is used to avoid that the second main sed command (meant for
13387# 0-ary CPP macros) applies to n-ary macro definitions.
13388# See the Autoconf documentation for `clear'.
13389cat >confdef2sed.sed <<\_ACEOF
13390s/[\\&,]/\\&/g
13391s,[\\$`],\\&,g
13392t clear
13393: clear
13394s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13395t end
13396s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13397: end
13398_ACEOF
13399# If some macros were called several times there might be several times
13400# the same #defines, which is useless. Nevertheless, we may not want to
13401# sort them, since we want the *last* AC-DEFINE to be honored.
13402uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13403sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13404rm -f confdef2sed.sed
252b5132
RH
13405
13406# This sed command replaces #undef with comments. This is necessary, for
13407# example, in the case of _POSIX_SOURCE, which is predefined and required
13408# on some systems where configure will not decide to define it.
5464f5a1
NN
13409cat >>conftest.undefs <<\_ACEOF
13410s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13411_ACEOF
13412
13413# Break up conftest.defines because some shells have a limit on the size
13414# of here documents, and old seds have small limits too (100 cmds).
13415echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13416echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13417echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13418echo ' :' >>$CONFIG_STATUS
13419rm -f conftest.tail
13420while grep . conftest.defines >/dev/null
13421do
13422 # Write a limited-size here document to $tmp/defines.sed.
13423 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13424 # Speed up: don't consider the non `#define' lines.
13425 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13426 # Work around the forget-to-reset-the-flag bug.
13427 echo 't clr' >>$CONFIG_STATUS
13428 echo ': clr' >>$CONFIG_STATUS
13429 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13430 echo 'CEOF
13431 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13432 rm -f $tmp/in
13433 mv $tmp/out $tmp/in
13434' >>$CONFIG_STATUS
13435 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13436 rm -f conftest.defines
13437 mv conftest.tail conftest.defines
13438done
13439rm -f conftest.defines
13440echo ' fi # grep' >>$CONFIG_STATUS
13441echo >>$CONFIG_STATUS
252b5132 13442
5464f5a1
NN
13443# Break up conftest.undefs because some shells have a limit on the size
13444# of here documents, and old seds have small limits too (100 cmds).
13445echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13446rm -f conftest.tail
5464f5a1 13447while grep . conftest.undefs >/dev/null
252b5132 13448do
5464f5a1
NN
13449 # Write a limited-size here document to $tmp/undefs.sed.
13450 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13451 # Speed up: don't consider the non `#undef'
13452 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13453 # Work around the forget-to-reset-the-flag bug.
13454 echo 't clr' >>$CONFIG_STATUS
13455 echo ': clr' >>$CONFIG_STATUS
13456 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13457 echo 'CEOF
5464f5a1
NN
13458 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13459 rm -f $tmp/in
13460 mv $tmp/out $tmp/in
13461' >>$CONFIG_STATUS
13462 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13463 rm -f conftest.undefs
13464 mv conftest.tail conftest.undefs
252b5132 13465done
5464f5a1
NN
13466rm -f conftest.undefs
13467
13468cat >>$CONFIG_STATUS <<\_ACEOF
13469 # Let's still pretend it is `configure' which instantiates (i.e., don't
13470 # use $as_me), people would be surprised to read:
13471 # /* config.h. Generated by config.status. */
13472 if test x"$ac_file" = x-; then
13473 echo "/* Generated by configure. */" >$tmp/config.h
13474 else
13475 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13476 fi
13477 cat $tmp/in >>$tmp/config.h
13478 rm -f $tmp/in
13479 if test x"$ac_file" != x-; then
13480 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13481 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13482echo "$as_me: $ac_file is unchanged" >&6;}
13483 else
13484 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13485$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13486 X"$ac_file" : 'X\(//\)[^/]' \| \
13487 X"$ac_file" : 'X\(//\)$' \| \
13488 X"$ac_file" : 'X\(/\)' \| \
13489 . : '\(.\)' 2>/dev/null ||
13490echo X"$ac_file" |
13491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13493 /^X\(\/\/\)$/{ s//\1/; q; }
13494 /^X\(\/\).*/{ s//\1/; q; }
13495 s/.*/./; q'`
13496 { if $as_mkdir_p; then
13497 mkdir -p "$ac_dir"
252b5132 13498 else
5464f5a1
NN
13499 as_dir="$ac_dir"
13500 as_dirs=
13501 while test ! -d "$as_dir"; do
13502 as_dirs="$as_dir $as_dirs"
13503 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13504$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13505 X"$as_dir" : 'X\(//\)[^/]' \| \
13506 X"$as_dir" : 'X\(//\)$' \| \
13507 X"$as_dir" : 'X\(/\)' \| \
13508 . : '\(.\)' 2>/dev/null ||
13509echo X"$as_dir" |
13510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13511 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13512 /^X\(\/\/\)$/{ s//\1/; q; }
13513 /^X\(\/\).*/{ s//\1/; q; }
13514 s/.*/./; q'`
13515 done
13516 test ! -n "$as_dirs" || mkdir $as_dirs
13517 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13518echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13519 { (exit 1); exit 1; }; }; }
13520
13521 rm -f $ac_file
13522 mv $tmp/config.h $ac_file
252b5132 13523 fi
5464f5a1
NN
13524 else
13525 cat $tmp/config.h
13526 rm -f $tmp/config.h
252b5132 13527 fi
f5385ebf
AM
13528# Compute $ac_file's index in $config_headers.
13529_am_stamp_count=1
13530for _am_header in $config_headers :; do
13531 case $_am_header in
13532 $ac_file | $ac_file:* )
13533 break ;;
13534 * )
13535 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13536 esac
13537done
13538echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13539$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13540 X$ac_file : 'X\(//\)[^/]' \| \
13541 X$ac_file : 'X\(//\)$' \| \
13542 X$ac_file : 'X\(/\)' \| \
13543 . : '\(.\)' 2>/dev/null ||
13544echo X$ac_file |
13545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13547 /^X\(\/\/\)$/{ s//\1/; q; }
13548 /^X\(\/\).*/{ s//\1/; q; }
13549 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
13550done
13551_ACEOF
13552cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13553
5464f5a1
NN
13554#
13555# CONFIG_COMMANDS section.
13556#
13557for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13558 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13559 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13560 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13561$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13562 X"$ac_dest" : 'X\(//\)[^/]' \| \
13563 X"$ac_dest" : 'X\(//\)$' \| \
13564 X"$ac_dest" : 'X\(/\)' \| \
13565 . : '\(.\)' 2>/dev/null ||
13566echo X"$ac_dest" |
13567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13568 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13569 /^X\(\/\/\)$/{ s//\1/; q; }
13570 /^X\(\/\).*/{ s//\1/; q; }
13571 s/.*/./; q'`
13572 { if $as_mkdir_p; then
13573 mkdir -p "$ac_dir"
13574 else
13575 as_dir="$ac_dir"
13576 as_dirs=
13577 while test ! -d "$as_dir"; do
13578 as_dirs="$as_dir $as_dirs"
13579 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13581 X"$as_dir" : 'X\(//\)[^/]' \| \
13582 X"$as_dir" : 'X\(//\)$' \| \
13583 X"$as_dir" : 'X\(/\)' \| \
13584 . : '\(.\)' 2>/dev/null ||
13585echo X"$as_dir" |
13586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13587 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13588 /^X\(\/\/\)$/{ s//\1/; q; }
13589 /^X\(\/\).*/{ s//\1/; q; }
13590 s/.*/./; q'`
13591 done
13592 test ! -n "$as_dirs" || mkdir $as_dirs
13593 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13594echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13595 { (exit 1); exit 1; }; }; }
b3baf5d0 13596
5464f5a1 13597 ac_builddir=.
b3baf5d0 13598
5464f5a1
NN
13599if test "$ac_dir" != .; then
13600 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13601 # A "../" for each directory in $ac_dir_suffix.
13602 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13603else
13604 ac_dir_suffix= ac_top_builddir=
13605fi
13606
13607case $srcdir in
13608 .) # No --srcdir option. We are building in place.
13609 ac_srcdir=.
13610 if test -z "$ac_top_builddir"; then
13611 ac_top_srcdir=.
13612 else
13613 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13614 fi ;;
13615 [\\/]* | ?:[\\/]* ) # Absolute path.
13616 ac_srcdir=$srcdir$ac_dir_suffix;
13617 ac_top_srcdir=$srcdir ;;
13618 *) # Relative path.
13619 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13620 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13621esac
13622
13623# Do not use `cd foo && pwd` to compute absolute paths, because
13624# the directories may not exist.
13625case `pwd` in
13626.) ac_abs_builddir="$ac_dir";;
13627*)
13628 case "$ac_dir" in
13629 .) ac_abs_builddir=`pwd`;;
13630 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13631 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13632 esac;;
13633esac
13634case $ac_abs_builddir in
13635.) ac_abs_top_builddir=${ac_top_builddir}.;;
13636*)
13637 case ${ac_top_builddir}. in
13638 .) ac_abs_top_builddir=$ac_abs_builddir;;
13639 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13640 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13641 esac;;
13642esac
13643case $ac_abs_builddir in
13644.) ac_abs_srcdir=$ac_srcdir;;
13645*)
13646 case $ac_srcdir in
13647 .) ac_abs_srcdir=$ac_abs_builddir;;
13648 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13649 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13650 esac;;
13651esac
13652case $ac_abs_builddir in
13653.) ac_abs_top_srcdir=$ac_top_srcdir;;
13654*)
13655 case $ac_top_srcdir in
13656 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13657 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13658 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13659 esac;;
13660esac
13661
13662
13663 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13664echo "$as_me: executing $ac_dest commands" >&6;}
13665 case $ac_dest in
f5385ebf
AM
13666 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13667 # Strip MF so we end up with the name of the file.
13668 mf=`echo "$mf" | sed -e 's/:.*$//'`
13669 # Check whether this is an Automake generated Makefile or not.
13670 # We used to match only the files named `Makefile.in', but
13671 # some people rename them; so instead we look at the file content.
13672 # Grep'ing the first line is not enough: some people post-process
13673 # each Makefile.in and add a new line on top of each file to say so.
13674 # So let's grep whole file.
13675 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13676 dirpart=`(dirname "$mf") 2>/dev/null ||
13677$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13678 X"$mf" : 'X\(//\)[^/]' \| \
13679 X"$mf" : 'X\(//\)$' \| \
13680 X"$mf" : 'X\(/\)' \| \
13681 . : '\(.\)' 2>/dev/null ||
13682echo X"$mf" |
13683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13685 /^X\(\/\/\)$/{ s//\1/; q; }
13686 /^X\(\/\).*/{ s//\1/; q; }
13687 s/.*/./; q'`
13688 else
13689 continue
13690 fi
13691 # Extract the definition of DEPDIR, am__include, and am__quote
13692 # from the Makefile without running `make'.
13693 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13694 test -z "$DEPDIR" && continue
13695 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13696 test -z "am__include" && continue
13697 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13698 # When using ansi2knr, U may be empty or an underscore; expand it
13699 U=`sed -n 's/^U = //p' < "$mf"`
13700 # Find all dependency output files, they are included files with
13701 # $(DEPDIR) in their names. We invoke sed twice because it is the
13702 # simplest approach to changing $(DEPDIR) to its actual value in the
13703 # expansion.
13704 for file in `sed -n "
13705 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13706 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13707 # Make sure the directory exists.
13708 test -f "$dirpart/$file" && continue
13709 fdir=`(dirname "$file") 2>/dev/null ||
13710$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13711 X"$file" : 'X\(//\)[^/]' \| \
13712 X"$file" : 'X\(//\)$' \| \
13713 X"$file" : 'X\(/\)' \| \
13714 . : '\(.\)' 2>/dev/null ||
13715echo X"$file" |
13716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13718 /^X\(\/\/\)$/{ s//\1/; q; }
13719 /^X\(\/\).*/{ s//\1/; q; }
13720 s/.*/./; q'`
13721 { if $as_mkdir_p; then
13722 mkdir -p $dirpart/$fdir
13723 else
13724 as_dir=$dirpart/$fdir
13725 as_dirs=
13726 while test ! -d "$as_dir"; do
13727 as_dirs="$as_dir $as_dirs"
13728 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13729$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13730 X"$as_dir" : 'X\(//\)[^/]' \| \
13731 X"$as_dir" : 'X\(//\)$' \| \
13732 X"$as_dir" : 'X\(/\)' \| \
13733 . : '\(.\)' 2>/dev/null ||
13734echo X"$as_dir" |
13735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13737 /^X\(\/\/\)$/{ s//\1/; q; }
13738 /^X\(\/\).*/{ s//\1/; q; }
13739 s/.*/./; q'`
13740 done
13741 test ! -n "$as_dirs" || mkdir $as_dirs
13742 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13743echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13744 { (exit 1); exit 1; }; }; }
13745
13746 # echo "creating $dirpart/$file"
13747 echo '# dummy' > "$dirpart/$file"
13748 done
13749done
13750 ;;
20e95c23
DJ
13751 default-1 )
13752 for ac_file in $CONFIG_FILES; do
13753 # Support "outfile[:infile[:infile...]]"
13754 case "$ac_file" in
13755 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13756 esac
13757 # PO directories have a Makefile.in generated from Makefile.in.in.
13758 case "$ac_file" in */Makefile.in)
13759 # Adjust a relative srcdir.
13760 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13761 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13762 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13763 # In autoconf-2.13 it is called $ac_given_srcdir.
13764 # In autoconf-2.50 it is called $srcdir.
13765 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13766 case "$ac_given_srcdir" in
13767 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13768 /*) top_srcdir="$ac_given_srcdir" ;;
13769 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13770 esac
13771 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13772 rm -f "$ac_dir/POTFILES"
13773 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13774 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13775 POMAKEFILEDEPS="POTFILES.in"
13776 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13777 # on $ac_dir but don't depend on user-specified configuration
13778 # parameters.
13779 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13780 # The LINGUAS file contains the set of available languages.
13781 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13782 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13783 fi
13784 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13785 # Hide the ALL_LINGUAS assigment from automake.
13786 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13787 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13788 else
13789 # The set of available languages was given in configure.in.
13790 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13791 fi
13792 case "$ac_given_srcdir" in
13793 .) srcdirpre= ;;
13794 *) srcdirpre='$(srcdir)/' ;;
13795 esac
13796 POFILES=
13797 GMOFILES=
13798 UPDATEPOFILES=
13799 DUMMYPOFILES=
13800 for lang in $ALL_LINGUAS; do
13801 POFILES="$POFILES $srcdirpre$lang.po"
13802 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13803 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13804 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13805 done
13806 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13807 # environment variable.
13808 INST_LINGUAS=
13809 if test -n "$ALL_LINGUAS"; then
13810 for presentlang in $ALL_LINGUAS; do
13811 useit=no
13812 if test "%UNSET%" != "$LINGUAS"; then
13813 desiredlanguages="$LINGUAS"
13814 else
13815 desiredlanguages="$ALL_LINGUAS"
13816 fi
13817 for desiredlang in $desiredlanguages; do
13818 # Use the presentlang catalog if desiredlang is
13819 # a. equal to presentlang, or
13820 # b. a variant of presentlang (because in this case,
13821 # presentlang can be used as a fallback for messages
13822 # which are not translated in the desiredlang catalog).
13823 case "$desiredlang" in
13824 "$presentlang"*) useit=yes;;
13825 esac
13826 done
13827 if test $useit = yes; then
13828 INST_LINGUAS="$INST_LINGUAS $presentlang"
13829 fi
13830 done
13831 fi
13832 CATALOGS=
13833 if test -n "$INST_LINGUAS"; then
13834 for lang in $INST_LINGUAS; do
13835 CATALOGS="$CATALOGS $lang.gmo"
13836 done
13837 fi
13838 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13839 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"
13840 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13841 if test -f "$f"; then
13842 case "$f" in
13843 *.orig | *.bak | *~) ;;
13844 *) cat "$f" >> "$ac_dir/Makefile" ;;
13845 esac
13846 fi
13847 done
13848 fi
13849 ;;
13850 esac
13851 done ;;
13852 default )
13853case "$srcdir" in
13854 .) srcdirpre= ;;
13855 *) srcdirpre='$(srcdir)/' ;;
13856esac
13857POFILES=
13858GMOFILES=
13859for lang in dummy $OBSOLETE_ALL_LINGUAS; do
13860 if test $lang != dummy; then
13861 POFILES="$POFILES $srcdirpre$lang.po"
13862 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13863 fi
13864done
13865sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
13866 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
13867 -e "s,@POFILES@,$POFILES," \
13868 -e "s,@GMOFILES@,$GMOFILES," \
13869 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
13870 esac
13871done
13872_ACEOF
13873
13874cat >>$CONFIG_STATUS <<\_ACEOF
13875
13876{ (exit 0); exit 0; }
13877_ACEOF
252b5132 13878chmod +x $CONFIG_STATUS
5464f5a1
NN
13879ac_clean_files=$ac_clean_files_save
13880
13881
13882# configure is writing to config.log, and then calls config.status.
13883# config.status does its own redirection, appending to config.log.
13884# Unfortunately, on DOS this fails, as config.log is still kept open
13885# by configure, so config.status won't be able to write to it; its
13886# output is simply discarded. So we exec the FD to /dev/null,
13887# effectively closing config.log, so it can be properly (re)opened and
13888# appended to by config.status. When coming back to configure, we
13889# need to make the FD available again.
13890if test "$no_create" != yes; then
13891 ac_cs_success=:
13892 ac_config_status_args=
13893 test "$silent" = yes &&
13894 ac_config_status_args="$ac_config_status_args --quiet"
13895 exec 5>/dev/null
13896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13897 exec 5>>config.log
13898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13899 # would make configure fail if this is the last instruction.
13900 $ac_cs_success || { (exit 1); exit 1; }
13901fi
252b5132 13902
55c80943 13903
This page took 1.271527 seconds and 4 git commands to generate.