2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
[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
9e9b66a9 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES 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 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
569acd2c 862 --enable-werror treat compile warnings as errors
9e9b66a9 863 --enable-build-warnings Enable build-time compiler warnings
f5385ebf
AM
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
5464f5a1
NN
866 --enable-install-libbfd controls installation of libbfd and related headers
867 --disable-nls do not use Native Language Support
868
869Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
872 --with-gnu-ld assume the C compiler uses GNU ld default=no
873 --with-pic try to use only PIC/non-PIC objects default=use both
874 --with-mmap try using mmap for BFD input files if available
875 --with-included-gettext use the GNU gettext library included here
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
2e0fbf77 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); } &&
2e0fbf77
JW
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); } &&
2e0fbf77
JW
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); } &&
2e0fbf77
JW
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); } &&
2e0fbf77
JW
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); } &&
2e0fbf77
JW
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); } &&
2e0fbf77
JW
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); } &&
2e0fbf77
JW
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); } &&
2e0fbf77
JW
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
664fe1be 2838 VERSION=2.16.90
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
NC
3506darwin* | rhapsody*)
3507 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3508 lt_cv_file_magic_cmd='/usr/bin/file -L'
3509 case "$host_os" in
3510 rhapsody* | darwin1.012)
3511 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3512 ;;
3513 *) # Darwin 1.3 on
3514 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3515 ;;
3516 esac
55c80943
NC
3517 ;;
3518
5464f5a1 3519freebsd* | kfreebsd*-gnu)
ac48eca1 3520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3521 case $host_cpu in
ac48eca1 3522 i*86 )
90f2472a
AO
3523 # Not sure whether the presence of OpenBSD here was a mistake.
3524 # Let's accept both of them until this is cleared up.
55c80943
NC
3525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3526 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3528 ;;
3529 esac
3530 else
3531 lt_cv_deplibs_check_method=pass_all
3532 fi
3533 ;;
3534
3535gnu*)
3536 lt_cv_deplibs_check_method=pass_all
3537 ;;
3538
55c80943 3539hpux10.20*|hpux11*)
4867be41
DJ
3540 case $host_cpu in
3541 hppa*)
3542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3543 lt_cv_file_magic_cmd=/usr/bin/file
3544 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3545 ;;
3546 ia64*)
3547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3548 lt_cv_file_magic_cmd=/usr/bin/file
3549 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3550 ;;
3551 esac
ac48eca1
AO
3552 ;;
3553
3554irix5* | irix6*)
55c80943 3555 case $host_os in
ac48eca1
AO
3556 irix5*)
3557 # this will be overridden with pass_all, but let us keep it just in case
3558 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3559 ;;
3560 *)
55c80943 3561 case $LD in
ac48eca1
AO
3562 *-32|*"-32 ") libmagic=32-bit;;
3563 *-n32|*"-n32 ") libmagic=N32;;
3564 *-64|*"-64 ") libmagic=64-bit;;
3565 *) libmagic=never-match;;
3566 esac
3567 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3568 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3569 ;;
ac48eca1
AO
3570 esac
3571 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3572 lt_cv_deplibs_check_method=pass_all
3573 ;;
3574
3575# This must be Linux ELF.
90f2472a 3576linux-gnu*)
55c80943 3577 case $host_cpu in
c5d1701e 3578 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3579 lt_cv_deplibs_check_method=pass_all ;;
3580 *)
3581 # glibc up to 2.1.1 does not perform some relocations on ARM
55c80943
NC
3582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3583 esac
ac48eca1
AO
3584 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3585 ;;
3586
5464f5a1 3587netbsd* | knetbsd*-gnu)
55c80943 3588 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3589 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3590 else
b3baf5d0 3591 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3592 fi
55c80943
NC
3593 ;;
3594
3595newsos6)
3596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3597 lt_cv_file_magic_cmd=/usr/bin/file
3598 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3599 ;;
3600
3601osf3* | osf4* | osf5*)
3602 # this will be overridden with pass_all, but let us keep it just in case
3603 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3604 lt_cv_file_magic_test_file=/shlib/libc.so
3605 lt_cv_deplibs_check_method=pass_all
3606 ;;
3607
3608sco3.2v5*)
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611
3612solaris*)
3613 lt_cv_deplibs_check_method=pass_all
3614 lt_cv_file_magic_test_file=/lib/libc.so
3615 ;;
3616
6be7c12c
AO
3617sysv5uw[78]* | sysv4*uw2*)
3618 lt_cv_deplibs_check_method=pass_all
3619 ;;
3620
ac48eca1 3621sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3622 case $host_vendor in
ac48eca1
AO
3623 ncr)
3624 lt_cv_deplibs_check_method=pass_all
3625 ;;
3626 motorola)
55c80943
NC
3627 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]'
3628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3629 ;;
3630 esac
3631 ;;
3632esac
3633
3634fi
5464f5a1
NN
3635echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3636echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3637file_magic_cmd=$lt_cv_file_magic_cmd
3638deplibs_check_method=$lt_cv_deplibs_check_method
3639
6be7c12c
AO
3640
3641
6be7c12c
AO
3642
3643# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3644
3645# Only perform the check for file, if the check method requires it
3646case $deplibs_check_method in
3647file_magic*)
3648 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3649 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3650echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3651if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3653else
3654 case $MAGIC_CMD in
3655 /*)
3656 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3657 ;;
3658 ?:/*)
3659 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3660 ;;
3661 *)
d64552c5 3662 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3664 ac_dummy="/usr/bin:$PATH"
3665 for ac_dir in $ac_dummy; do
3666 test -z "$ac_dir" && ac_dir=.
3667 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3668 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3669 if test -n "$file_magic_test_file"; then
55c80943 3670 case $deplibs_check_method in
ac48eca1
AO
3671 "file_magic "*)
3672 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3675 egrep "$file_magic_regex" > /dev/null; then
3676 :
3677 else
3678 cat <<EOF 1>&2
3679
3680*** Warning: the command libtool uses to detect shared libraries,
3681*** $file_magic_cmd, produces output that libtool cannot recognize.
3682*** The result is that libtool may fail to recognize shared libraries
3683*** as such. This will affect the creation of libtool libraries that
3684*** depend on shared libraries, but programs linked with such libtool
3685*** libraries will work regardless of this problem. Nevertheless, you
3686*** may want to report the problem to your system manager and/or to
3687*** bug-libtool@gnu.org
3688
3689EOF
3690 fi ;;
3691 esac
3692 fi
3693 break
3694 fi
3695 done
3696 IFS="$ac_save_ifs"
d64552c5 3697 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3698 ;;
3699esac
3700fi
3701
d64552c5
AO
3702MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3703if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3704 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3705echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3706else
5464f5a1
NN
3707 echo "$as_me:$LINENO: result: no" >&5
3708echo "${ECHO_T}no" >&6
ac48eca1
AO
3709fi
3710
d64552c5 3711if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3712 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3713 echo "$as_me:$LINENO: checking for file" >&5
3714echo $ECHO_N "checking for file... $ECHO_C" >&6
3715if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3717else
55c80943 3718 case $MAGIC_CMD in
ac48eca1 3719 /*)
d64552c5 3720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3721 ;;
3722 ?:/*)
d64552c5 3723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3724 ;;
3725 *)
d64552c5 3726 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3728 ac_dummy="/usr/bin:$PATH"
3729 for ac_dir in $ac_dummy; do
3730 test -z "$ac_dir" && ac_dir=.
3731 if test -f $ac_dir/file; then
d64552c5 3732 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3733 if test -n "$file_magic_test_file"; then
55c80943 3734 case $deplibs_check_method in
ac48eca1
AO
3735 "file_magic "*)
3736 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3737 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3738 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3739 egrep "$file_magic_regex" > /dev/null; then
3740 :
3741 else
3742 cat <<EOF 1>&2
3743
3744*** Warning: the command libtool uses to detect shared libraries,
3745*** $file_magic_cmd, produces output that libtool cannot recognize.
3746*** The result is that libtool may fail to recognize shared libraries
3747*** as such. This will affect the creation of libtool libraries that
3748*** depend on shared libraries, but programs linked with such libtool
3749*** libraries will work regardless of this problem. Nevertheless, you
3750*** may want to report the problem to your system manager and/or to
3751*** bug-libtool@gnu.org
3752
3753EOF
3754 fi ;;
3755 esac
3756 fi
3757 break
3758 fi
3759 done
3760 IFS="$ac_save_ifs"
d64552c5 3761 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3762 ;;
3763esac
3764fi
3765
d64552c5
AO
3766MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3767if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3768 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3769echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3770else
5464f5a1
NN
3771 echo "$as_me:$LINENO: result: no" >&5
3772echo "${ECHO_T}no" >&6
ac48eca1
AO
3773fi
3774
3775 else
d64552c5 3776 MAGIC_CMD=:
ac48eca1
AO
3777 fi
3778fi
3779
3780 fi
3781 ;;
3782esac
3783
5464f5a1
NN
3784if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3786set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3787echo "$as_me:$LINENO: checking for $ac_word" >&5
3788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789if test "${ac_cv_prog_RANLIB+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3791else
3792 if test -n "$RANLIB"; then
3793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3794else
5464f5a1
NN
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806done
3807done
3808
ac48eca1
AO
3809fi
3810fi
5464f5a1 3811RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3812if test -n "$RANLIB"; then
5464f5a1
NN
3813 echo "$as_me:$LINENO: result: $RANLIB" >&5
3814echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3815else
5464f5a1
NN
3816 echo "$as_me:$LINENO: result: no" >&5
3817echo "${ECHO_T}no" >&6
ac48eca1
AO
3818fi
3819
5464f5a1 3820fi
ac48eca1 3821if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3822 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3823 # Extract the first word of "ranlib", so it can be a program name with args.
3824set dummy ranlib; ac_word=$2
5464f5a1
NN
3825echo "$as_me:$LINENO: checking for $ac_word" >&5
3826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3829else
5464f5a1
NN
3830 if test -n "$ac_ct_RANLIB"; then
3831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3832else
5464f5a1
NN
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_ac_ct_RANLIB="ranlib"
3841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844done
3845done
3846
3847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3848fi
3849fi
5464f5a1
NN
3850ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3851if test -n "$ac_ct_RANLIB"; then
3852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3853echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3854else
5464f5a1
NN
3855 echo "$as_me:$LINENO: result: no" >&5
3856echo "${ECHO_T}no" >&6
ac48eca1
AO
3857fi
3858
5464f5a1 3859 RANLIB=$ac_ct_RANLIB
ac48eca1 3860else
5464f5a1 3861 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3862fi
3863
5464f5a1
NN
3864if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3866set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3867echo "$as_me:$LINENO: checking for $ac_word" >&5
3868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869if test "${ac_cv_prog_STRIP+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3871else
3872 if test -n "$STRIP"; then
3873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3874else
5464f5a1
NN
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886done
3887done
3888
ac48eca1
AO
3889fi
3890fi
5464f5a1 3891STRIP=$ac_cv_prog_STRIP
ac48eca1 3892if test -n "$STRIP"; then
5464f5a1
NN
3893 echo "$as_me:$LINENO: result: $STRIP" >&5
3894echo "${ECHO_T}$STRIP" >&6
ac48eca1 3895else
5464f5a1
NN
3896 echo "$as_me:$LINENO: result: no" >&5
3897echo "${ECHO_T}no" >&6
ac48eca1
AO
3898fi
3899
5464f5a1 3900fi
ac48eca1 3901if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3902 ac_ct_STRIP=$STRIP
ac48eca1
AO
3903 # Extract the first word of "strip", so it can be a program name with args.
3904set dummy strip; ac_word=$2
5464f5a1
NN
3905echo "$as_me:$LINENO: checking for $ac_word" >&5
3906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3909else
5464f5a1
NN
3910 if test -n "$ac_ct_STRIP"; then
3911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3912else
5464f5a1
NN
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_ac_ct_STRIP="strip"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3923 fi
3924done
3925done
3926
3927 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3928fi
3929fi
5464f5a1
NN
3930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3931if test -n "$ac_ct_STRIP"; then
3932 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3933echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3934else
5464f5a1
NN
3935 echo "$as_me:$LINENO: result: no" >&5
3936echo "${ECHO_T}no" >&6
ac48eca1
AO
3937fi
3938
5464f5a1 3939 STRIP=$ac_ct_STRIP
ac48eca1 3940else
5464f5a1 3941 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3942fi
252b5132 3943
6be7c12c 3944
252b5132 3945# Check for any special flags to pass to ltconfig.
b2ef150d 3946libtool_flags="--cache-file=$cache_file"
252b5132
RH
3947test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3948test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 3949test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
3950test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3951test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3952
6be7c12c 3953
a74801ba
ILT
3954# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3955if test "${enable_libtool_lock+set}" = set; then
3956 enableval="$enable_libtool_lock"
a74801ba 3957
5464f5a1 3958fi;
a74801ba
ILT
3959test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3960test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3961
5464f5a1 3962
ac48eca1
AO
3963# Check whether --with-pic or --without-pic was given.
3964if test "${with_pic+set}" = set; then
3965 withval="$with_pic"
3966 pic_mode="$withval"
3967else
5464f5a1
NN
3968 pic_mode=default
3969fi;
ac48eca1
AO
3970test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3971test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3972
252b5132
RH
3973# Some flags need to be propagated to the compiler or linker for good
3974# libtool support.
55c80943 3975case $host in
252b5132
RH
3976*-*-irix6*)
3977 # Find out which ABI we are using.
2e0fbf77 3978 echo '#line 3978 "configure"' > conftest.$ac_ext
5464f5a1
NN
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; then
6a457e5c
NC
3984 if test "$lt_cv_prog_gnu_ld" = yes; then
3985 case `/usr/bin/file conftest.$ac_objext` in
3986 *32-bit*)
3987 LD="${LD-ld} -melf32bsmip"
3988 ;;
3989 *N32*)
3990 LD="${LD-ld} -melf32bmipn32"
3991 ;;
3992 *64-bit*)
3993 LD="${LD-ld} -melf64bmip"
3994 ;;
3995 esac
3996 else
55c80943 3997 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3998 *32-bit*)
3999 LD="${LD-ld} -32"
4000 ;;
4001 *N32*)
4002 LD="${LD-ld} -n32"
4003 ;;
4004 *64-bit*)
4005 LD="${LD-ld} -64"
4006 ;;
4007 esac
6a457e5c 4008 fi
252b5132
RH
4009 fi
4010 rm -rf conftest*
4011 ;;
4012
4867be41
DJ
4013ia64-*-hpux*)
4014 # Find out which ABI we are using.
4015 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; then
4867be41
DJ
4021 case "`/usr/bin/file conftest.o`" in
4022 *ELF-32*)
4023 HPUX_IA64_MODE="32"
4024 ;;
4025 *ELF-64*)
4026 HPUX_IA64_MODE="64"
4027 ;;
4028 esac
4029 fi
4030 rm -rf conftest*
4031 ;;
4032
252b5132
RH
4033*-*-sco3.2v5*)
4034 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4035 SAVE_CFLAGS="$CFLAGS"
252b5132 4036 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4037 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4038echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4039if test "${lt_cv_cc_needs_belf+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4041else
5464f5a1
NN
4042
4043
ac48eca1 4044 ac_ext=c
ac48eca1 4045ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4049
5464f5a1
NN
4050 cat >conftest.$ac_ext <<_ACEOF
4051/* confdefs.h. */
4052_ACEOF
4053cat confdefs.h >>conftest.$ac_ext
4054cat >>conftest.$ac_ext <<_ACEOF
4055/* end confdefs.h. */
b2ef150d 4056
5464f5a1
NN
4057int
4058main ()
4059{
b2ef150d 4060
5464f5a1
NN
4061 ;
4062 return 0;
4063}
4064_ACEOF
4065rm -f conftest.$ac_objext conftest$ac_exeext
4066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067 (eval $ac_link) 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
2e0fbf77
JW
4074 { ac_try='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
5464f5a1
NN
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest$ac_exeext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
b2ef150d
ILT
4087 lt_cv_cc_needs_belf=yes
4088else
5464f5a1
NN
4089 echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
4092lt_cv_cc_needs_belf=no
b2ef150d 4093fi
5464f5a1
NN
4094rm -f conftest.err conftest.$ac_objext \
4095 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4096 ac_ext=c
ac48eca1 4097ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4101
b2ef150d 4102fi
5464f5a1
NN
4103echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4104echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4105 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4106 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4107 CFLAGS="$SAVE_CFLAGS"
4108 fi
252b5132
RH
4109 ;;
4110
6be7c12c 4111
252b5132
RH
4112esac
4113
6be7c12c 4114
b2ef150d 4115# Save cache, so that ltconfig can load it
5464f5a1 4116cat >confcache <<\_ACEOF
b2ef150d
ILT
4117# This file is a shell script that caches the results of configure
4118# tests run on this system so they can be shared between configure
5464f5a1
NN
4119# scripts and configure runs, see configure's option --config-cache.
4120# It is not useful on other systems. If it contains results you don't
4121# want to keep, you may remove or edit it.
b2ef150d 4122#
5464f5a1
NN
4123# config.status only pays attention to the cache file if you give it
4124# the --recheck option to rerun configure.
b2ef150d 4125#
5464f5a1
NN
4126# `ac_cv_env_foo' variables (set or unset) will be overridden when
4127# loading this file, other *unset* `ac_cv_foo' will be assigned the
4128# following values.
4129
4130_ACEOF
4131
b2ef150d
ILT
4132# The following way of writing the cache mishandles newlines in values,
4133# but we know of no workaround that is simple, portable, and efficient.
4134# So, don't put newlines in cache variables' values.
4135# Ultrix sh set writes to stderr and can't be redirected directly,
4136# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4137{
4138 (set) 2>&1 |
4139 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4140 *ac_space=\ *)
4141 # `set' does not quote correctly, so add quotes (double-quote
4142 # substitution turns \\\\ into \\, and sed turns \\ into \).
4143 sed -n \
4144 "s/'/'\\\\''/g;
4145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4146 ;;
4147 *)
4148 # `set' quotes correctly as required by POSIX, so do not add quotes.
4149 sed -n \
4150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4151 ;;
4152 esac;
4153} |
4154 sed '
4155 t clear
4156 : clear
4157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4158 t end
4159 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4160 : end' >>confcache
4161if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4162 if test -w $cache_file; then
5464f5a1
NN
4163 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4164 cat confcache >$cache_file
b2ef150d
ILT
4165 else
4166 echo "not updating unwritable cache $cache_file"
4167 fi
4168fi
4169rm -f confcache
4170
252b5132 4171# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4172AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4173MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4174LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4175AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4176objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4177deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4178${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4179$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4180|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4181echo "$as_me: error: libtool configure failed" >&2;}
4182 { (exit 1); exit 1; }; }
252b5132 4183
b2ef150d
ILT
4184# Reload cache, that may have been modified by ltconfig
4185if test -r "$cache_file"; then
5464f5a1
NN
4186 # Some versions of bash will fail to source /dev/null (special
4187 # files actually), so we avoid doing that.
4188 if test -f "$cache_file"; then
4189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4190echo "$as_me: loading cache $cache_file" >&6;}
4191 case $cache_file in
4192 [\\/]* | ?:[\\/]* ) . $cache_file;;
4193 *) . ./$cache_file;;
4194 esac
4195 fi
b2ef150d 4196else
5464f5a1
NN
4197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4198echo "$as_me: creating cache $cache_file" >&6;}
4199 >$cache_file
b2ef150d
ILT
4200fi
4201
6be7c12c 4202
b2ef150d 4203# This can be used to rebuild libtool when needed
ac48eca1 4204LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4205
4206# Always use our own libtool.
4207LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4208
252b5132
RH
4209# Redirect the config.log output again, so that the ltconfig log is not
4210# clobbered by the next message.
4211exec 5>>./config.log
4212
6be7c12c 4213
5464f5a1
NN
4214
4215
4216
4217
6be7c12c 4218
252b5132
RH
4219# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4220if test "${enable_64_bit_bfd+set}" = set; then
4221 enableval="$enable_64_bit_bfd"
4222 case "${enableval}" in
4223 yes) want64=true ;;
4224 no) want64=false ;;
5464f5a1
NN
4225 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4226echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4227 { (exit 1); exit 1; }; } ;;
252b5132
RH
4228esac
4229else
4230 want64=false
5464f5a1 4231fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4232if test "${enable_targets+set}" = set; then
4233 enableval="$enable_targets"
4234 case "${enableval}" in
5464f5a1
NN
4235 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4236echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4237 { (exit 1); exit 1; }; }
252b5132
RH
4238 ;;
4239 no) enable_targets= ;;
4240 *) enable_targets=$enableval ;;
4241esac
5464f5a1 4242fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4243if test "${enable_commonbfdlib+set}" = set; then
4244 enableval="$enable_commonbfdlib"
4245 case "${enableval}" in
4246 yes) commonbfdlib=true ;;
4247 no) commonbfdlib=false ;;
5464f5a1
NN
4248 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4249echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4250 { (exit 1); exit 1; }; } ;;
252b5132 4251esac
5464f5a1 4252fi;
252b5132
RH
4253# Check whether --with-mmap or --without-mmap was given.
4254if test "${with_mmap+set}" = set; then
4255 withval="$with_mmap"
4256 case "${withval}" in
4257 yes) want_mmap=true ;;
4258 no) want_mmap=false ;;
5464f5a1
NN
4259 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4260echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4261 { (exit 1); exit 1; }; } ;;
252b5132
RH
4262esac
4263else
4264 want_mmap=false
5464f5a1 4265fi;
9e9b66a9
AM
4266
4267WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4268
569acd2c
NC
4269# Check whether --enable-werror or --disable-werror was given.
4270if test "${enable_werror+set}" = set; then
4271 enableval="$enable_werror"
1ad12f97
NC
4272 case "${enableval}" in
4273 yes | y) ERROR_ON_WARNING="yes" ;;
4274 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4275 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4276echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4277 { (exit 1); exit 1; }; } ;;
4278 esac
4279fi;
4280
9e9b66a9
AM
4281# Enable -Werror by default when using gcc
4282if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4283 ERROR_ON_WARNING=yes
4284fi
4285
4286NO_WERROR=
4287if test "${ERROR_ON_WARNING}" = yes ; then
4288 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4289 NO_WERROR="-Wno-error"
1ad12f97
NC
4290fi
4291
a2d91340
AC
4292# Check whether --enable-build-warnings or --disable-build-warnings was given.
4293if test "${enable_build_warnings+set}" = set; then
4294 enableval="$enable_build_warnings"
4295 case "${enableval}" in
4296 yes) ;;
9e9b66a9 4297 no) WARN_CFLAGS="-w";;
a2d91340 4298 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9 4299 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
a2d91340 4300 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9
AM
4301 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4302 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4303esac
9e9b66a9
AM
4304fi;
4305
4306if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4307 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4308fi
4309
4310
9e9b66a9
AM
4311
4312
4313
5464f5a1 4314 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4315
252b5132
RH
4316
4317if test -z "$target" ; then
5464f5a1
NN
4318 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4319echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4320 { (exit 1); exit 1; }; }
252b5132 4321fi
252b5132 4322
5464f5a1
NN
4323echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4324echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4325 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4326if test "${enable_maintainer_mode+set}" = set; then
4327 enableval="$enable_maintainer_mode"
4328 USE_MAINTAINER_MODE=$enableval
4329else
4330 USE_MAINTAINER_MODE=no
5464f5a1
NN
4331fi;
4332 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4333echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4334
252b5132
RH
4335
4336if test $USE_MAINTAINER_MODE = yes; then
4337 MAINTAINER_MODE_TRUE=
4338 MAINTAINER_MODE_FALSE='#'
4339else
4340 MAINTAINER_MODE_TRUE='#'
4341 MAINTAINER_MODE_FALSE=
4342fi
f5385ebf 4343
252b5132 4344 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4345
5464f5a1 4346
24443139
AS
4347 case ${build_alias} in
4348 "") build_noncanonical=${build} ;;
4349 *) build_noncanonical=${build_alias} ;;
4350esac
4351
4352 case ${host_alias} in
4353 "") host_noncanonical=${build_noncanonical} ;;
4354 *) host_noncanonical=${host_alias} ;;
4355esac
4356
4357 case ${target_alias} in
4358 "") target_noncanonical=${host_noncanonical} ;;
4359 *) target_noncanonical=${target_alias} ;;
4360esac
4361
5464f5a1
NN
4362echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4363echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4364 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4365if test "${enable_install_libbfd+set}" = set; then
4366 enableval="$enable_install_libbfd"
4367 install_libbfd_p=$enableval
4368else
66e25bab 4369 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4370 install_libbfd_p=yes
4371 else
4372 install_libbfd_p=no
4373 fi
5464f5a1
NN
4374fi;
4375 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4376echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4377
a703a6ea
AM
4378
4379if test $install_libbfd_p = yes; then
4380 INSTALL_LIBBFD_TRUE=
4381 INSTALL_LIBBFD_FALSE='#'
4382else
4383 INSTALL_LIBBFD_TRUE='#'
4384 INSTALL_LIBBFD_FALSE=
4385fi
f5385ebf 4386
5464f5a1 4387 # Need _noncanonical variables for this.
24443139
AS
4388
4389
4390
4391
a703a6ea
AM
4392 # libbfd.a is a host library containing target dependent code
4393 bfdlibdir='$(libdir)'
4394 bfdincludedir='$(includedir)'
4395 if test "${host}" != "${target}"; then
5464f5a1
NN
4396 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4397 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4398 fi
a703a6ea
AM
4399
4400
252b5132
RH
4401
4402
5464f5a1
NN
4403
4404
4405host64=false
4406target64=false
4407bfd_default_target_size=32
4408
4409# host stuff:
4410
4411ac_ext=c
4412ac_cpp='$CPP $CPPFLAGS'
4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4418set dummy ${ac_tool_prefix}gcc; ac_word=$2
4419echo "$as_me:$LINENO: checking for $ac_word" >&5
4420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421if test "${ac_cv_prog_CC+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4423else
5464f5a1
NN
4424 if test -n "$CC"; then
4425 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4426else
5464f5a1
NN
4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
6be7c12c 4437 fi
5464f5a1
NN
4438done
4439done
4440
252b5132 4441fi
b3baf5d0 4442fi
5464f5a1
NN
4443CC=$ac_cv_prog_CC
4444if test -n "$CC"; then
4445 echo "$as_me:$LINENO: result: $CC" >&5
4446echo "${ECHO_T}$CC" >&6
4447else
4448 echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6
4450fi
252b5132 4451
5464f5a1
NN
4452fi
4453if test -z "$ac_cv_prog_CC"; then
4454 ac_ct_CC=$CC
4455 # Extract the first word of "gcc", so it can be a program name with args.
4456set dummy gcc; ac_word=$2
4457echo "$as_me:$LINENO: checking for $ac_word" >&5
4458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462 if test -n "$ac_ct_CC"; then
4463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4464else
4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_ac_ct_CC="gcc"
4473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476done
4477done
252b5132 4478
5464f5a1
NN
4479fi
4480fi
4481ac_ct_CC=$ac_cv_prog_ac_ct_CC
4482if test -n "$ac_ct_CC"; then
4483 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4484echo "${ECHO_T}$ac_ct_CC" >&6
4485else
4486 echo "$as_me:$LINENO: result: no" >&5
4487echo "${ECHO_T}no" >&6
4488fi
252b5132 4489
5464f5a1
NN
4490 CC=$ac_ct_CC
4491else
4492 CC="$ac_cv_prog_CC"
4493fi
252b5132 4494
5464f5a1
NN
4495if test -z "$CC"; then
4496 if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4498set dummy ${ac_tool_prefix}cc; ac_word=$2
4499echo "$as_me:$LINENO: checking for $ac_word" >&5
4500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501if test "${ac_cv_prog_CC+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
4504 if test -n "$CC"; then
4505 ac_cv_prog_CC="$CC" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_CC="${ac_tool_prefix}cc"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 break 2
4517 fi
4518done
4519done
6be7c12c 4520
5464f5a1
NN
4521fi
4522fi
4523CC=$ac_cv_prog_CC
4524if test -n "$CC"; then
4525 echo "$as_me:$LINENO: result: $CC" >&5
4526echo "${ECHO_T}$CC" >&6
4527else
4528 echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6
4530fi
4531
4532fi
4533if test -z "$ac_cv_prog_CC"; then
4534 ac_ct_CC=$CC
4535 # Extract the first word of "cc", so it can be a program name with args.
4536set dummy cc; ac_word=$2
4537echo "$as_me:$LINENO: checking for $ac_word" >&5
4538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4539if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541else
4542 if test -n "$ac_ct_CC"; then
4543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4544else
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_ac_ct_CC="cc"
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556done
4557done
4558
4559fi
4560fi
4561ac_ct_CC=$ac_cv_prog_ac_ct_CC
4562if test -n "$ac_ct_CC"; then
4563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4564echo "${ECHO_T}$ac_ct_CC" >&6
4565else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568fi
4569
4570 CC=$ac_ct_CC
4571else
4572 CC="$ac_cv_prog_CC"
4573fi
4574
4575fi
4576if test -z "$CC"; then
4577 # Extract the first word of "cc", so it can be a program name with args.
4578set dummy cc; ac_word=$2
4579echo "$as_me:$LINENO: checking for $ac_word" >&5
4580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581if test "${ac_cv_prog_CC+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4583else
4584 if test -n "$CC"; then
4585 ac_cv_prog_CC="$CC" # Let the user override the test.
4586else
5464f5a1
NN
4587 ac_prog_rejected=no
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4596 ac_prog_rejected=yes
4597 continue
4598 fi
4599 ac_cv_prog_CC="cc"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603done
4604done
4605
4606if test $ac_prog_rejected = yes; then
4607 # We found a bogon in the path, so make sure we never use it.
4608 set dummy $ac_cv_prog_CC
4609 shift
4610 if test $# != 0; then
4611 # We chose a different compiler from the bogus one.
4612 # However, it has the same basename, so the bogon will be chosen
4613 # first if we set CC to just the basename; use the full file name.
4614 shift
4615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4616 fi
4617fi
4618fi
4619fi
4620CC=$ac_cv_prog_CC
4621if test -n "$CC"; then
4622 echo "$as_me:$LINENO: result: $CC" >&5
4623echo "${ECHO_T}$CC" >&6
4624else
4625 echo "$as_me:$LINENO: result: no" >&5
4626echo "${ECHO_T}no" >&6
4627fi
4628
4629fi
4630if test -z "$CC"; then
4631 if test -n "$ac_tool_prefix"; then
4632 for ac_prog in cl
4633 do
4634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4635set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4636echo "$as_me:$LINENO: checking for $ac_word" >&5
4637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4638if test "${ac_cv_prog_CC+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640else
4641 if test -n "$CC"; then
4642 ac_cv_prog_CC="$CC" # Let the user override the test.
4643else
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655done
4656done
4657
4658fi
4659fi
4660CC=$ac_cv_prog_CC
4661if test -n "$CC"; then
4662 echo "$as_me:$LINENO: result: $CC" >&5
4663echo "${ECHO_T}$CC" >&6
4664else
4665 echo "$as_me:$LINENO: result: no" >&5
4666echo "${ECHO_T}no" >&6
4667fi
4668
4669 test -n "$CC" && break
6be7c12c 4670 done
252b5132 4671fi
5464f5a1
NN
4672if test -z "$CC"; then
4673 ac_ct_CC=$CC
4674 for ac_prog in cl
4675do
4676 # Extract the first word of "$ac_prog", so it can be a program name with args.
4677set dummy $ac_prog; ac_word=$2
4678echo "$as_me:$LINENO: checking for $ac_word" >&5
4679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4680if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682else
4683 if test -n "$ac_ct_CC"; then
4684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_ac_ct_CC="$ac_prog"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697done
4698done
4699
4700fi
4701fi
4702ac_ct_CC=$ac_cv_prog_ac_ct_CC
4703if test -n "$ac_ct_CC"; then
4704 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4705echo "${ECHO_T}$ac_ct_CC" >&6
4706else
4707 echo "$as_me:$LINENO: result: no" >&5
4708echo "${ECHO_T}no" >&6
4709fi
4710
4711 test -n "$ac_ct_CC" && break
4712done
4713
4714 CC=$ac_ct_CC
4715fi
4716
4717fi
4718
4719
4720test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4721See \`config.log' for more details." >&5
4722echo "$as_me: error: no acceptable C compiler found in \$PATH
4723See \`config.log' for more details." >&2;}
4724 { (exit 1); exit 1; }; }
4725
4726# Provide some information about the compiler.
4727echo "$as_me:$LINENO:" \
4728 "checking for C compiler version" >&5
4729ac_compiler=`set X $ac_compile; echo $2`
4730{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4731 (eval $ac_compiler --version </dev/null >&5) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }
4735{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4736 (eval $ac_compiler -v </dev/null >&5) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }
4740{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4741 (eval $ac_compiler -V </dev/null >&5) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }
4745
4746echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4747echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4748if test "${ac_cv_c_compiler_gnu+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751 cat >conftest.$ac_ext <<_ACEOF
4752/* confdefs.h. */
4753_ACEOF
4754cat confdefs.h >>conftest.$ac_ext
4755cat >>conftest.$ac_ext <<_ACEOF
4756/* end confdefs.h. */
4757
4758int
4759main ()
4760{
4761#ifndef __GNUC__
4762 choke me
4763#endif
4764
4765 ;
4766 return 0;
4767}
4768_ACEOF
4769rm -f conftest.$ac_objext
4770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
2e0fbf77
JW
4778 { ac_try='test -z "$ac_c_werror_flag"
4779 || test ! -s conftest.err'
5464f5a1
NN
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; } &&
4785 { ac_try='test -s conftest.$ac_objext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 ac_compiler_gnu=yes
4792else
4793 echo "$as_me: failed program was:" >&5
4794sed 's/^/| /' conftest.$ac_ext >&5
4795
4796ac_compiler_gnu=no
4797fi
4798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4799ac_cv_c_compiler_gnu=$ac_compiler_gnu
4800
4801fi
4802echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4803echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4804GCC=`test $ac_compiler_gnu = yes && echo yes`
4805ac_test_CFLAGS=${CFLAGS+set}
4806ac_save_CFLAGS=$CFLAGS
4807CFLAGS="-g"
4808echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4809echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4810if test "${ac_cv_prog_cc_g+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812else
4813 cat >conftest.$ac_ext <<_ACEOF
4814/* confdefs.h. */
4815_ACEOF
4816cat confdefs.h >>conftest.$ac_ext
4817cat >>conftest.$ac_ext <<_ACEOF
4818/* end confdefs.h. */
4819
4820int
4821main ()
4822{
4823
4824 ;
4825 return 0;
4826}
4827_ACEOF
4828rm -f conftest.$ac_objext
4829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
2e0fbf77
JW
4837 { ac_try='test -z "$ac_c_werror_flag"
4838 || test ! -s conftest.err'
5464f5a1
NN
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_cv_prog_cc_g=yes
4851else
4852 echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
4855ac_cv_prog_cc_g=no
4856fi
4857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4858fi
4859echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4860echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4861if test "$ac_test_CFLAGS" = set; then
4862 CFLAGS=$ac_save_CFLAGS
4863elif test $ac_cv_prog_cc_g = yes; then
4864 if test "$GCC" = yes; then
4865 CFLAGS="-g -O2"
4866 else
4867 CFLAGS="-g"
4868 fi
4869else
4870 if test "$GCC" = yes; then
4871 CFLAGS="-O2"
4872 else
4873 CFLAGS=
4874 fi
4875fi
4876echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4877echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4878if test "${ac_cv_prog_cc_stdc+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880else
4881 ac_cv_prog_cc_stdc=no
4882ac_save_CC=$CC
4883cat >conftest.$ac_ext <<_ACEOF
4884/* confdefs.h. */
4885_ACEOF
4886cat confdefs.h >>conftest.$ac_ext
4887cat >>conftest.$ac_ext <<_ACEOF
4888/* end confdefs.h. */
4889#include <stdarg.h>
4890#include <stdio.h>
4891#include <sys/types.h>
4892#include <sys/stat.h>
4893/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4894struct buf { int x; };
4895FILE * (*rcsopen) (struct buf *, struct stat *, int);
4896static char *e (p, i)
4897 char **p;
4898 int i;
4899{
4900 return p[i];
4901}
4902static char *f (char * (*g) (char **, int), char **p, ...)
4903{
4904 char *s;
4905 va_list v;
4906 va_start (v,p);
4907 s = g (p, va_arg (v,int));
4908 va_end (v);
4909 return s;
4910}
4911
4912/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4913 function prototypes and stuff, but not '\xHH' hex character constants.
4914 These don't provoke an error unfortunately, instead are silently treated
4915 as 'x'. The following induces an error, until -std1 is added to get
4916 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4917 array size at least. It's necessary to write '\x00'==0 to get something
4918 that's true only with -std1. */
4919int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4920
4921int test (int i, double x);
4922struct s1 {int (*f) (int a);};
4923struct s2 {int (*f) (double a);};
4924int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4925int argc;
4926char **argv;
4927int
4928main ()
4929{
4930return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4931 ;
4932 return 0;
4933}
4934_ACEOF
4935# Don't try gcc -ansi; that turns off useful extensions and
4936# breaks some systems' header files.
4937# AIX -qlanglvl=ansi
4938# Ultrix and OSF/1 -std1
4939# HP-UX 10.20 and later -Ae
4940# HP-UX older versions -Aa -D_HPUX_SOURCE
4941# SVR4 -Xc -D__EXTENSIONS__
4942for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4943do
4944 CC="$ac_save_CC $ac_arg"
4945 rm -f conftest.$ac_objext
4946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
2e0fbf77
JW
4954 { ac_try='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
5464f5a1
NN
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 ac_cv_prog_cc_stdc=$ac_arg
4968break
4969else
4970 echo "$as_me: failed program was:" >&5
4971sed 's/^/| /' conftest.$ac_ext >&5
4972
4973fi
4974rm -f conftest.err conftest.$ac_objext
4975done
4976rm -f conftest.$ac_ext conftest.$ac_objext
4977CC=$ac_save_CC
4978
4979fi
4980
4981case "x$ac_cv_prog_cc_stdc" in
4982 x|xno)
4983 echo "$as_me:$LINENO: result: none needed" >&5
4984echo "${ECHO_T}none needed" >&6 ;;
4985 *)
4986 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4987echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4988 CC="$CC $ac_cv_prog_cc_stdc" ;;
4989esac
4990
4991# Some people use a C++ compiler to compile C. Since we use `exit',
4992# in C++ we need to declare it. In case someone uses the same compiler
4993# for both compiling C and C++ we need to have the C++ compiler decide
4994# the declaration of exit, since it's the most demanding environment.
4995cat >conftest.$ac_ext <<_ACEOF
4996#ifndef __cplusplus
4997 choke me
4998#endif
4999_ACEOF
5000rm -f conftest.$ac_objext
5001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
2e0fbf77
JW
5009 { ac_try='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5464f5a1
NN
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 for ac_declaration in \
5023 '' \
5024 'extern "C" void std::exit (int) throw (); using std::exit;' \
5025 'extern "C" void std::exit (int); using std::exit;' \
5026 'extern "C" void exit (int) throw ();' \
5027 'extern "C" void exit (int);' \
5028 'void exit (int);'
5029do
5030 cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h. */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h. */
5036$ac_declaration
5037#include <stdlib.h>
5038int
5039main ()
5040{
5041exit (42);
5042 ;
5043 return 0;
5044}
5045_ACEOF
5046rm -f conftest.$ac_objext
5047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048 (eval $ac_compile) 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
2e0fbf77
JW
5055 { ac_try='test -z "$ac_c_werror_flag"
5056 || test ! -s conftest.err'
5464f5a1
NN
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try='test -s conftest.$ac_objext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 :
5069else
5070 echo "$as_me: failed program was:" >&5
5071sed 's/^/| /' conftest.$ac_ext >&5
5072
5073continue
5074fi
5075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5076 cat >conftest.$ac_ext <<_ACEOF
5077/* confdefs.h. */
5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h. */
5082$ac_declaration
5083int
5084main ()
5085{
5086exit (42);
5087 ;
5088 return 0;
5089}
5090_ACEOF
5091rm -f conftest.$ac_objext
5092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5093 (eval $ac_compile) 2>conftest.er1
5094 ac_status=$?
5095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
2e0fbf77
JW
5100 { ac_try='test -z "$ac_c_werror_flag"
5101 || test ! -s conftest.err'
5464f5a1
NN
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 (eval $ac_try) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; } &&
5107 { ac_try='test -s conftest.$ac_objext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 break
5114else
5115 echo "$as_me: failed program was:" >&5
5116sed 's/^/| /' conftest.$ac_ext >&5
5117
5118fi
5119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5120done
5121rm -f conftest*
5122if test -n "$ac_declaration"; then
5123 echo '#ifdef __cplusplus' >>confdefs.h
5124 echo $ac_declaration >>confdefs.h
5125 echo '#endif' >>confdefs.h
252b5132 5126fi
5464f5a1 5127
b3baf5d0 5128else
5464f5a1
NN
5129 echo "$as_me: failed program was:" >&5
5130sed 's/^/| /' conftest.$ac_ext >&5
5131
b3baf5d0 5132fi
5464f5a1
NN
5133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5134ac_ext=c
5135ac_cpp='$CPP $CPPFLAGS'
5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5139
5464f5a1 5140
4a2a2686
HPN
5141cat >>confdefs.h <<\_ACEOF
5142#define _GNU_SOURCE 1
5143_ACEOF
5144
5145
5146
429cc0ae 5147ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw"
5464f5a1
NN
5148if test -n "$ac_tool_prefix"; then
5149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5150set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5151echo "$as_me:$LINENO: checking for $ac_word" >&5
5152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5153if test "${ac_cv_prog_RANLIB+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5155else
5464f5a1
NN
5156 if test -n "$RANLIB"; then
5157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 5158else
5464f5a1
NN
5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
252b5132 5169 fi
5464f5a1
NN
5170done
5171done
5172
252b5132
RH
5173fi
5174fi
5464f5a1
NN
5175RANLIB=$ac_cv_prog_RANLIB
5176if test -n "$RANLIB"; then
5177 echo "$as_me:$LINENO: result: $RANLIB" >&5
5178echo "${ECHO_T}$RANLIB" >&6
252b5132 5179else
5464f5a1
NN
5180 echo "$as_me:$LINENO: result: no" >&5
5181echo "${ECHO_T}no" >&6
252b5132
RH
5182fi
5183
5464f5a1
NN
5184fi
5185if test -z "$ac_cv_prog_RANLIB"; then
5186 ac_ct_RANLIB=$RANLIB
5187 # Extract the first word of "ranlib", so it can be a program name with args.
5188set dummy ranlib; ac_word=$2
5189echo "$as_me:$LINENO: checking for $ac_word" >&5
5190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5191if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5193else
5464f5a1
NN
5194 if test -n "$ac_ct_RANLIB"; then
5195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 5196else
5464f5a1
NN
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_RANLIB="ranlib"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208done
5209done
5210
5211 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
5212fi
5213fi
5464f5a1
NN
5214ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5215if test -n "$ac_ct_RANLIB"; then
5216 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5217echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 5218else
5464f5a1
NN
5219 echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
b3baf5d0 5221fi
252b5132 5222
5464f5a1 5223 RANLIB=$ac_ct_RANLIB
6be7c12c 5224else
5464f5a1 5225 RANLIB="$ac_cv_prog_RANLIB"
252b5132 5226fi
5464f5a1 5227
6be7c12c 5228ac_ext=c
6be7c12c 5229ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
5230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5232ac_compiler_gnu=$ac_cv_c_compiler_gnu
5233echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5234echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5235# On Suns, sometimes $CPP names a directory.
5236if test -n "$CPP" && test -d "$CPP"; then
5237 CPP=
6be7c12c 5238fi
5464f5a1
NN
5239if test -z "$CPP"; then
5240 if test "${ac_cv_prog_CPP+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5242else
5464f5a1
NN
5243 # Double quotes because CPP needs to be expanded
5244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5245 do
5246 ac_preproc_ok=false
5247for ac_c_preproc_warn_flag in '' yes
5248do
5249 # Use a header file that comes with gcc, so configuring glibc
5250 # with a fresh cross-compiler works.
5251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5252 # <limits.h> exists even on freestanding compilers.
5253 # On the NeXT, cc -E runs the code through the compiler's parser,
5254 # not just through cpp. "Syntax error" is here to catch this case.
5255 cat >conftest.$ac_ext <<_ACEOF
5256/* confdefs.h. */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h. */
5261#ifdef __STDC__
5262# include <limits.h>
5263#else
5264# include <assert.h>
252b5132 5265#endif
5464f5a1
NN
5266 Syntax error
5267_ACEOF
5268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5270 ac_status=$?
5271 grep -v '^ *+' conftest.er1 >conftest.err
5272 rm -f conftest.er1
5273 cat conftest.err >&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } >/dev/null; then
5276 if test -s conftest.err; then
5277 ac_cpp_err=$ac_c_preproc_warn_flag
5278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5279 else
5280 ac_cpp_err=
5281 fi
6be7c12c 5282else
5464f5a1 5283 ac_cpp_err=yes
6be7c12c 5284fi
5464f5a1
NN
5285if test -z "$ac_cpp_err"; then
5286 :
6be7c12c 5287else
5464f5a1
NN
5288 echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291 # Broken: fails on valid input.
5292continue
5293fi
5294rm -f conftest.err conftest.$ac_ext
5295
5296 # OK, works on sane cases. Now check whether non-existent headers
5297 # can be detected and how.
5298 cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h. */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h. */
5304#include <ac_nonexistent.h>
5305_ACEOF
5306if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5308 ac_status=$?
5309 grep -v '^ *+' conftest.er1 >conftest.err
5310 rm -f conftest.er1
5311 cat conftest.err >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } >/dev/null; then
5314 if test -s conftest.err; then
5315 ac_cpp_err=$ac_c_preproc_warn_flag
5316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5317 else
5318 ac_cpp_err=
5319 fi
252b5132 5320else
5464f5a1 5321 ac_cpp_err=yes
252b5132 5322fi
5464f5a1
NN
5323if test -z "$ac_cpp_err"; then
5324 # Broken: success on invalid input.
5325continue
5326else
5327 echo "$as_me: failed program was:" >&5
5328sed 's/^/| /' conftest.$ac_ext >&5
6be7c12c 5329
5464f5a1
NN
5330 # Passes both tests.
5331ac_preproc_ok=:
5332break
252b5132 5333fi
5464f5a1 5334rm -f conftest.err conftest.$ac_ext
6be7c12c 5335
5464f5a1
NN
5336done
5337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5338rm -f conftest.err conftest.$ac_ext
5339if $ac_preproc_ok; then
5340 break
252b5132
RH
5341fi
5342
5464f5a1
NN
5343 done
5344 ac_cv_prog_CPP=$CPP
252b5132 5345
252b5132 5346fi
5464f5a1 5347 CPP=$ac_cv_prog_CPP
6be7c12c 5348else
5464f5a1
NN
5349 ac_cv_prog_CPP=$CPP
5350fi
5351echo "$as_me:$LINENO: result: $CPP" >&5
5352echo "${ECHO_T}$CPP" >&6
5353ac_preproc_ok=false
5354for ac_c_preproc_warn_flag in '' yes
5355do
5356 # Use a header file that comes with gcc, so configuring glibc
5357 # with a fresh cross-compiler works.
5358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5359 # <limits.h> exists even on freestanding compilers.
6be7c12c 5360 # On the NeXT, cc -E runs the code through the compiler's parser,
5464f5a1
NN
5361 # not just through cpp. "Syntax error" is here to catch this case.
5362 cat >conftest.$ac_ext <<_ACEOF
5363/* confdefs.h. */
5364_ACEOF
5365cat confdefs.h >>conftest.$ac_ext
5366cat >>conftest.$ac_ext <<_ACEOF
5367/* end confdefs.h. */
5368#ifdef __STDC__
5369# include <limits.h>
5370#else
5371# include <assert.h>
5372#endif
5373 Syntax error
5374_ACEOF
5375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } >/dev/null; then
5383 if test -s conftest.err; then
5384 ac_cpp_err=$ac_c_preproc_warn_flag
5385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5386 else
5387 ac_cpp_err=
5388 fi
252b5132 5389else
5464f5a1
NN
5390 ac_cpp_err=yes
5391fi
5392if test -z "$ac_cpp_err"; then
6be7c12c 5393 :
252b5132 5394else
5464f5a1
NN
5395 echo "$as_me: failed program was:" >&5
5396sed 's/^/| /' conftest.$ac_ext >&5
5397
5398 # Broken: fails on valid input.
5399continue
5400fi
5401rm -f conftest.err conftest.$ac_ext
5402
5403 # OK, works on sane cases. Now check whether non-existent headers
5404 # can be detected and how.
5405 cat >conftest.$ac_ext <<_ACEOF
5406/* confdefs.h. */
5407_ACEOF
5408cat confdefs.h >>conftest.$ac_ext
5409cat >>conftest.$ac_ext <<_ACEOF
5410/* end confdefs.h. */
5411#include <ac_nonexistent.h>
5412_ACEOF
5413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5414 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } >/dev/null; then
5421 if test -s conftest.err; then
5422 ac_cpp_err=$ac_c_preproc_warn_flag
5423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5424 else
5425 ac_cpp_err=
5426 fi
b3baf5d0 5427else
5464f5a1 5428 ac_cpp_err=yes
6be7c12c 5429fi
5464f5a1
NN
5430if test -z "$ac_cpp_err"; then
5431 # Broken: success on invalid input.
5432continue
ac48eca1 5433else
5464f5a1
NN
5434 echo "$as_me: failed program was:" >&5
5435sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 # Passes both tests.
5438ac_preproc_ok=:
5439break
b3baf5d0 5440fi
5464f5a1 5441rm -f conftest.err conftest.$ac_ext
6be7c12c 5442
5464f5a1
NN
5443done
5444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5445rm -f conftest.err conftest.$ac_ext
5446if $ac_preproc_ok; then
5447 :
6be7c12c 5448else
5464f5a1
NN
5449 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5450See \`config.log' for more details." >&5
5451echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5452See \`config.log' for more details." >&2;}
5453 { (exit 1); exit 1; }; }
ac48eca1 5454fi
5464f5a1
NN
5455
5456ac_ext=c
5457ac_cpp='$CPP $CPPFLAGS'
5458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460ac_compiler_gnu=$ac_cv_c_compiler_gnu
5461
5462
5463echo "$as_me:$LINENO: checking for egrep" >&5
5464echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5465if test "${ac_cv_prog_egrep+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5467else
5464f5a1
NN
5468 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5469 then ac_cv_prog_egrep='grep -E'
5470 else ac_cv_prog_egrep='egrep'
5471 fi
b3baf5d0 5472fi
5464f5a1
NN
5473echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5474echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5475 EGREP=$ac_cv_prog_egrep
5476
ac48eca1 5477
5464f5a1
NN
5478echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5479echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5480if test "${ac_cv_header_stdc+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5482else
5464f5a1
NN
5483 cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h. */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h. */
252b5132
RH
5489#include <stdlib.h>
5490#include <stdarg.h>
5491#include <string.h>
5492#include <float.h>
5464f5a1
NN
5493
5494int
5495main ()
5496{
5497
5498 ;
5499 return 0;
5500}
5501_ACEOF
5502rm -f conftest.$ac_objext
5503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504 (eval $ac_compile) 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); } &&
2e0fbf77
JW
5511 { ac_try='test -z "$ac_c_werror_flag"
5512 || test ! -s conftest.err'
5464f5a1
NN
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 (eval $ac_try) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } &&
5518 { ac_try='test -s conftest.$ac_objext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520 (eval $ac_try) 2>&5
5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
252b5132
RH
5524 ac_cv_header_stdc=yes
5525else
5464f5a1
NN
5526 echo "$as_me: failed program was:" >&5
5527sed 's/^/| /' conftest.$ac_ext >&5
5528
5529ac_cv_header_stdc=no
252b5132 5530fi
5464f5a1 5531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5532
5533if test $ac_cv_header_stdc = yes; then
5534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464f5a1
NN
5535 cat >conftest.$ac_ext <<_ACEOF
5536/* confdefs.h. */
5537_ACEOF
5538cat confdefs.h >>conftest.$ac_ext
5539cat >>conftest.$ac_ext <<_ACEOF
5540/* end confdefs.h. */
252b5132 5541#include <string.h>
5464f5a1
NN
5542
5543_ACEOF
252b5132 5544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5545 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5546 :
5547else
252b5132
RH
5548 ac_cv_header_stdc=no
5549fi
5550rm -f conftest*
5551
5552fi
5553
5554if test $ac_cv_header_stdc = yes; then
5555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464f5a1
NN
5556 cat >conftest.$ac_ext <<_ACEOF
5557/* confdefs.h. */
5558_ACEOF
5559cat confdefs.h >>conftest.$ac_ext
5560cat >>conftest.$ac_ext <<_ACEOF
5561/* end confdefs.h. */
252b5132 5562#include <stdlib.h>
5464f5a1
NN
5563
5564_ACEOF
252b5132 5565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5566 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5567 :
5568else
252b5132
RH
5569 ac_cv_header_stdc=no
5570fi
5571rm -f conftest*
5572
5573fi
5574
5575if test $ac_cv_header_stdc = yes; then
5576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464f5a1 5577 if test "$cross_compiling" = yes; then
252b5132
RH
5578 :
5579else
5464f5a1
NN
5580 cat >conftest.$ac_ext <<_ACEOF
5581/* confdefs.h. */
5582_ACEOF
5583cat confdefs.h >>conftest.$ac_ext
5584cat >>conftest.$ac_ext <<_ACEOF
5585/* end confdefs.h. */
252b5132 5586#include <ctype.h>
5464f5a1
NN
5587#if ((' ' & 0x0FF) == 0x020)
5588# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5589# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5590#else
5591# define ISLOWER(c) \
5592 (('a' <= (c) && (c) <= 'i') \
5593 || ('j' <= (c) && (c) <= 'r') \
5594 || ('s' <= (c) && (c) <= 'z'))
5595# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5596#endif
6be7c12c 5597
5464f5a1
NN
5598#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5599int
5600main ()
5601{
5602 int i;
5603 for (i = 0; i < 256; i++)
5604 if (XOR (islower (i), ISLOWER (i))
5605 || toupper (i) != TOUPPER (i))
5606 exit(2);
5607 exit (0);
5608}
5609_ACEOF
5610rm -f conftest$ac_exeext
5611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5612 (eval $ac_link) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
252b5132
RH
5621 :
5622else
5464f5a1
NN
5623 echo "$as_me: program exited with status $ac_status" >&5
5624echo "$as_me: failed program was:" >&5
5625sed 's/^/| /' conftest.$ac_ext >&5
5626
5627( exit $ac_status )
5628ac_cv_header_stdc=no
252b5132 5629fi
5464f5a1 5630rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5631fi
252b5132
RH
5632fi
5633fi
5464f5a1
NN
5634echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5635echo "${ECHO_T}$ac_cv_header_stdc" >&6
6be7c12c 5636if test $ac_cv_header_stdc = yes; then
5464f5a1
NN
5637
5638cat >>confdefs.h <<\_ACEOF
252b5132 5639#define STDC_HEADERS 1
5464f5a1 5640_ACEOF
252b5132
RH
5641
5642fi
5643
5464f5a1
NN
5644echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5645echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5646if test "${ac_cv_c_const+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5648else
5464f5a1
NN
5649 cat >conftest.$ac_ext <<_ACEOF
5650/* confdefs.h. */
5651_ACEOF
5652cat confdefs.h >>conftest.$ac_ext
5653cat >>conftest.$ac_ext <<_ACEOF
5654/* end confdefs.h. */
6be7c12c 5655
5464f5a1
NN
5656int
5657main ()
5658{
5659/* FIXME: Include the comments suggested by Paul. */
5660#ifndef __cplusplus
5661 /* Ultrix mips cc rejects this. */
5662 typedef int charset[2];
5663 const charset x;
5664 /* SunOS 4.1.1 cc rejects this. */
5665 char const *const *ccp;
5666 char **p;
5667 /* NEC SVR4.0.2 mips cc rejects this. */
5668 struct point {int x, y;};
5669 static struct point const zero = {0,0};
5670 /* AIX XL C 1.02.0.0 rejects this.
5671 It does not let you subtract one const X* pointer from another in
5672 an arm of an if-expression whose if-part is not a constant
5673 expression */
5674 const char *g = "string";
5675 ccp = &g + (g ? g-g : 0);
5676 /* HPUX 7.0 cc rejects these. */
5677 ++ccp;
5678 p = (char**) ccp;
5679 ccp = (char const *const *) p;
5680 { /* SCO 3.2v4 cc rejects this. */
5681 char *t;
5682 char const *s = 0 ? (char *) 0 : (char const *) 0;
5683
5684 *t++ = 0;
5685 }
5686 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5687 int x[] = {25, 17};
5688 const int *foo = &x[0];
5689 ++foo;
5690 }
5691 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5692 typedef const int *iptr;
5693 iptr p = 0;
5694 ++p;
5695 }
5696 { /* AIX XL C 1.02.0.0 rejects this saying
5697 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5698 struct s { int j; const int *ap[3]; };
5699 struct s *b; b->j = 5;
5700 }
5701 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5702 const int foo = 10;
5703 }
5704#endif
6be7c12c 5705
5464f5a1
NN
5706 ;
5707 return 0;
5708}
5709_ACEOF
5710rm -f conftest.$ac_objext
5711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>conftest.er1
5713 ac_status=$?
5714 grep -v '^ *+' conftest.er1 >conftest.err
5715 rm -f conftest.er1
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
2e0fbf77
JW
5719 { ac_try='test -z "$ac_c_werror_flag"
5720 || test ! -s conftest.err'
5464f5a1
NN
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
252b5132
RH
5732 ac_cv_c_const=yes
5733else
5464f5a1
NN
5734 echo "$as_me: failed program was:" >&5
5735sed 's/^/| /' conftest.$ac_ext >&5
5736
5737ac_cv_c_const=no
252b5132 5738fi
5464f5a1 5739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5740fi
5464f5a1
NN
5741echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5742echo "${ECHO_T}$ac_cv_c_const" >&6
6be7c12c 5743if test $ac_cv_c_const = no; then
5464f5a1
NN
5744
5745cat >>confdefs.h <<\_ACEOF
5746#define const
5747_ACEOF
252b5132
RH
5748
5749fi
5750
5464f5a1
NN
5751echo "$as_me:$LINENO: checking for inline" >&5
5752echo $ECHO_N "checking for inline... $ECHO_C" >&6
5753if test "${ac_cv_c_inline+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5755else
5756 ac_cv_c_inline=no
5757for ac_kw in inline __inline__ __inline; do
5464f5a1
NN
5758 cat >conftest.$ac_ext <<_ACEOF
5759/* confdefs.h. */
5760_ACEOF
5761cat confdefs.h >>conftest.$ac_ext
5762cat >>conftest.$ac_ext <<_ACEOF
5763/* end confdefs.h. */
5764#ifndef __cplusplus
5765typedef int foo_t;
5766static $ac_kw foo_t static_foo () {return 0; }
5767$ac_kw foo_t foo () {return 0; }
5768#endif
252b5132 5769
5464f5a1
NN
5770_ACEOF
5771rm -f conftest.$ac_objext
5772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
2e0fbf77
JW
5780 { ac_try='test -z "$ac_c_werror_flag"
5781 || test ! -s conftest.err'
5464f5a1
NN
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
252b5132
RH
5793 ac_cv_c_inline=$ac_kw; break
5794else
5464f5a1
NN
5795 echo "$as_me: failed program was:" >&5
5796sed 's/^/| /' conftest.$ac_ext >&5
5797
252b5132 5798fi
5464f5a1 5799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5800done
5801
5464f5a1
NN
5802fi
5803echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5804echo "${ECHO_T}$ac_cv_c_inline" >&6
5805
5806
5807case $ac_cv_c_inline in
5808 inline | yes) ;;
5809 *)
5810 case $ac_cv_c_inline in
5811 no) ac_val=;;
5812 *) ac_val=$ac_cv_c_inline;;
5813 esac
5814 cat >>confdefs.h <<_ACEOF
5815#ifndef __cplusplus
5816#define inline $ac_val
5817#endif
5818_ACEOF
5819 ;;
5820esac
5821
5822# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5833 inttypes.h stdint.h unistd.h
5834do
5835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5836echo "$as_me:$LINENO: checking for $ac_header" >&5
5837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5838if eval "test \"\${$as_ac_Header+set}\" = set"; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841 cat >conftest.$ac_ext <<_ACEOF
5842/* confdefs.h. */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h. */
5847$ac_includes_default
5848
5849#include <$ac_header>
5850_ACEOF
5851rm -f conftest.$ac_objext
5852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5853 (eval $ac_compile) 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); } &&
2e0fbf77
JW
5860 { ac_try='test -z "$ac_c_werror_flag"
5861 || test ! -s conftest.err'
5464f5a1
NN
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 (eval $ac_try) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest.$ac_objext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 eval "$as_ac_Header=yes"
5874else
5875 echo "$as_me: failed program was:" >&5
5876sed 's/^/| /' conftest.$ac_ext >&5
5877
5878eval "$as_ac_Header=no"
5879fi
5880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5881fi
5882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5884if test `eval echo '${'$as_ac_Header'}'` = yes; then
5885 cat >>confdefs.h <<_ACEOF
5886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5887_ACEOF
5888
252b5132 5889fi
6be7c12c 5890
5464f5a1 5891done
252b5132 5892
5464f5a1
NN
5893
5894echo "$as_me:$LINENO: checking for off_t" >&5
5895echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5896if test "${ac_cv_type_off_t+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 5898else
5464f5a1
NN
5899 cat >conftest.$ac_ext <<_ACEOF
5900/* confdefs.h. */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h. */
5905$ac_includes_default
5906int
5907main ()
5908{
5909if ((off_t *) 0)
5910 return 0;
5911if (sizeof (off_t))
5912 return 0;
5913 ;
5914 return 0;
5915}
5916_ACEOF
5917rm -f conftest.$ac_objext
5918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5919 (eval $ac_compile) 2>conftest.er1
5920 ac_status=$?
5921 grep -v '^ *+' conftest.er1 >conftest.err
5922 rm -f conftest.er1
5923 cat conftest.err >&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
2e0fbf77
JW
5926 { ac_try='test -z "$ac_c_werror_flag"
5927 || test ! -s conftest.err'
5464f5a1
NN
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try='test -s conftest.$ac_objext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
653f71ca 5939 ac_cv_type_off_t=yes
252b5132 5940else
5464f5a1
NN
5941 echo "$as_me: failed program was:" >&5
5942sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5943
5464f5a1 5944ac_cv_type_off_t=no
6be7c12c 5945fi
5464f5a1
NN
5946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5947fi
5948echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5949echo "${ECHO_T}$ac_cv_type_off_t" >&6
5950if test $ac_cv_type_off_t = yes; then
5951 :
5952else
5953
5954cat >>confdefs.h <<_ACEOF
252b5132 5955#define off_t long
5464f5a1 5956_ACEOF
252b5132
RH
5957
5958fi
5959
5464f5a1
NN
5960echo "$as_me:$LINENO: checking for size_t" >&5
5961echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5962if test "${ac_cv_type_size_t+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5964else
5464f5a1
NN
5965 cat >conftest.$ac_ext <<_ACEOF
5966/* confdefs.h. */
5967_ACEOF
5968cat confdefs.h >>conftest.$ac_ext
5969cat >>conftest.$ac_ext <<_ACEOF
5970/* end confdefs.h. */
5971$ac_includes_default
5972int
5973main ()
5974{
5975if ((size_t *) 0)
5976 return 0;
5977if (sizeof (size_t))
5978 return 0;
5979 ;
5980 return 0;
5981}
5982_ACEOF
5983rm -f conftest.$ac_objext
5984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
2e0fbf77
JW
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5464f5a1
NN
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
653f71ca 6005 ac_cv_type_size_t=yes
252b5132 6006else
5464f5a1
NN
6007 echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 6009
5464f5a1 6010ac_cv_type_size_t=no
6be7c12c 6011fi
5464f5a1
NN
6012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013fi
6014echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6015echo "${ECHO_T}$ac_cv_type_size_t" >&6
6016if test $ac_cv_type_size_t = yes; then
6017 :
6018else
6019
6020cat >>confdefs.h <<_ACEOF
252b5132 6021#define size_t unsigned
5464f5a1 6022_ACEOF
252b5132
RH
6023
6024fi
6025
6026# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6027# for constant arguments. Useless!
5464f5a1
NN
6028echo "$as_me:$LINENO: checking for working alloca.h" >&5
6029echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6030if test "${ac_cv_working_alloca_h+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033 cat >conftest.$ac_ext <<_ACEOF
6034/* confdefs.h. */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h. */
252b5132 6039#include <alloca.h>
5464f5a1
NN
6040int
6041main ()
6042{
6043char *p = (char *) alloca (2 * sizeof (int));
6044 ;
6045 return 0;
6046}
6047_ACEOF
6048rm -f conftest.$ac_objext conftest$ac_exeext
6049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050 (eval $ac_link) 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
2e0fbf77
JW
6057 { ac_try='test -z "$ac_c_werror_flag"
6058 || test ! -s conftest.err'
5464f5a1
NN
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 (eval $ac_try) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; } &&
6064 { ac_try='test -s conftest$ac_exeext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_cv_working_alloca_h=yes
6071else
6072 echo "$as_me: failed program was:" >&5
6073sed 's/^/| /' conftest.$ac_ext >&5
6074
6075ac_cv_working_alloca_h=no
6076fi
6077rm -f conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6079fi
6080echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6081echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6082if test $ac_cv_working_alloca_h = yes; then
6083
6084cat >>confdefs.h <<\_ACEOF
252b5132 6085#define HAVE_ALLOCA_H 1
5464f5a1 6086_ACEOF
252b5132
RH
6087
6088fi
6089
5464f5a1
NN
6090echo "$as_me:$LINENO: checking for alloca" >&5
6091echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6092if test "${ac_cv_func_alloca_works+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6094else
5464f5a1
NN
6095 cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h. */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h. */
252b5132
RH
6101#ifdef __GNUC__
6102# define alloca __builtin_alloca
6103#else
6104# ifdef _MSC_VER
6105# include <malloc.h>
6106# define alloca _alloca
6107# else
6108# if HAVE_ALLOCA_H
6109# include <alloca.h>
6110# else
6111# ifdef _AIX
6112 #pragma alloca
6113# else
6114# ifndef alloca /* predefined by HP cc +Olibcalls */
6115char *alloca ();
6116# endif
6117# endif
6118# endif
6119# endif
6120#endif
6121
5464f5a1
NN
6122int
6123main ()
6124{
6125char *p = (char *) alloca (1);
6126 ;
6127 return 0;
6128}
6129_ACEOF
6130rm -f conftest.$ac_objext conftest$ac_exeext
6131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6132 (eval $ac_link) 2>conftest.er1
6133 ac_status=$?
6134 grep -v '^ *+' conftest.er1 >conftest.err
6135 rm -f conftest.er1
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
2e0fbf77
JW
6139 { ac_try='test -z "$ac_c_werror_flag"
6140 || test ! -s conftest.err'
5464f5a1
NN
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 (eval $ac_try) 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; } &&
6146 { ac_try='test -s conftest$ac_exeext'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148 (eval $ac_try) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
252b5132
RH
6152 ac_cv_func_alloca_works=yes
6153else
5464f5a1
NN
6154 echo "$as_me: failed program was:" >&5
6155sed 's/^/| /' conftest.$ac_ext >&5
6156
6157ac_cv_func_alloca_works=no
252b5132 6158fi
5464f5a1
NN
6159rm -f conftest.err conftest.$ac_objext \
6160 conftest$ac_exeext conftest.$ac_ext
252b5132 6161fi
5464f5a1
NN
6162echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6163echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6164
252b5132 6165if test $ac_cv_func_alloca_works = yes; then
252b5132 6166
5464f5a1
NN
6167cat >>confdefs.h <<\_ACEOF
6168#define HAVE_ALLOCA 1
6169_ACEOF
b3baf5d0 6170
5464f5a1 6171else
6be7c12c 6172 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5464f5a1
NN
6173# that cause trouble. Some versions do not even contain alloca or
6174# contain a buggy version. If you still want to use their alloca,
6175# use ar to extract alloca.o from them instead of compiling alloca.c.
6176
6177ALLOCA=alloca.$ac_objext
6178
6179cat >>confdefs.h <<\_ACEOF
252b5132 6180#define C_ALLOCA 1
5464f5a1 6181_ACEOF
252b5132 6182
6be7c12c 6183
5464f5a1
NN
6184echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6185echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6186if test "${ac_cv_os_cray+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6188else
5464f5a1
NN
6189 cat >conftest.$ac_ext <<_ACEOF
6190/* confdefs.h. */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h. */
252b5132
RH
6195#if defined(CRAY) && ! defined(CRAY2)
6196webecray
6197#else
6198wenotbecray
6199#endif
6200
5464f5a1 6201_ACEOF
252b5132 6202if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 6203 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6204 ac_cv_os_cray=yes
6205else
252b5132
RH
6206 ac_cv_os_cray=no
6207fi
6208rm -f conftest*
6209
6210fi
5464f5a1
NN
6211echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6212echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6213if test $ac_cv_os_cray = yes; then
5464f5a1
NN
6214 for ac_func in _getb67 GETB67 getb67; do
6215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6216echo "$as_me:$LINENO: checking for $ac_func" >&5
6217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6218if eval "test \"\${$as_ac_var+set}\" = set"; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221 cat >conftest.$ac_ext <<_ACEOF
6222/* confdefs.h. */
6223_ACEOF
6224cat confdefs.h >>conftest.$ac_ext
6225cat >>conftest.$ac_ext <<_ACEOF
6226/* end confdefs.h. */
6227/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6229#define $ac_func innocuous_$ac_func
6230
252b5132 6231/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6232 which can conflict with char $ac_func (); below.
6233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6234 <limits.h> exists even on freestanding compilers. */
6235
6236#ifdef __STDC__
6237# include <limits.h>
6238#else
6239# include <assert.h>
6240#endif
6be7c12c 6241
5464f5a1 6242#undef $ac_func
252b5132 6243
5464f5a1
NN
6244/* Override any gcc2 internal prototype to avoid an error. */
6245#ifdef __cplusplus
6246extern "C"
6247{
6248#endif
6249/* We use char because int might match the return type of a gcc2
6250 builtin and then its argument prototype would still apply. */
6251char $ac_func ();
252b5132
RH
6252/* The GNU C library defines this for functions which it implements
6253 to always fail with ENOSYS. Some functions are actually named
6254 something starting with __ and the normal name is an alias. */
6255#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6256choke me
6257#else
5464f5a1
NN
6258char (*f) () = $ac_func;
6259#endif
6260#ifdef __cplusplus
6261}
252b5132
RH
6262#endif
6263
5464f5a1
NN
6264int
6265main ()
6266{
6267return f != $ac_func;
6268 ;
6269 return 0;
6270}
6271_ACEOF
6272rm -f conftest.$ac_objext conftest$ac_exeext
6273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274 (eval $ac_link) 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
2e0fbf77
JW
6281 { ac_try='test -z "$ac_c_werror_flag"
6282 || test ! -s conftest.err'
5464f5a1
NN
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest$ac_exeext'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; }; then
6294 eval "$as_ac_var=yes"
6295else
6296 echo "$as_me: failed program was:" >&5
6297sed 's/^/| /' conftest.$ac_ext >&5
6298
6299eval "$as_ac_var=no"
6300fi
6301rm -f conftest.err conftest.$ac_objext \
6302 conftest$ac_exeext conftest.$ac_ext
6303fi
6304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6306if test `eval echo '${'$as_ac_var'}'` = yes; then
6307
6308cat >>confdefs.h <<_ACEOF
252b5132 6309#define CRAY_STACKSEG_END $ac_func
5464f5a1 6310_ACEOF
252b5132 6311
5464f5a1 6312 break
252b5132
RH
6313fi
6314
5464f5a1 6315 done
252b5132
RH
6316fi
6317
5464f5a1
NN
6318echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6319echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6320if test "${ac_cv_c_stack_direction+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6322else
6323 if test "$cross_compiling" = yes; then
6324 ac_cv_c_stack_direction=0
6325else
5464f5a1
NN
6326 cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h. */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h. */
6332int
252b5132
RH
6333find_stack_direction ()
6334{
6335 static char *addr = 0;
6336 auto char dummy;
6337 if (addr == 0)
6338 {
6339 addr = &dummy;
6340 return find_stack_direction ();
6341 }
6342 else
6343 return (&dummy > addr) ? 1 : -1;
6344}
5464f5a1
NN
6345
6346int
252b5132
RH
6347main ()
6348{
5464f5a1 6349 exit (find_stack_direction () < 0);
252b5132 6350}
5464f5a1
NN
6351_ACEOF
6352rm -f conftest$ac_exeext
6353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6354 (eval $ac_link) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
252b5132
RH
6363 ac_cv_c_stack_direction=1
6364else
5464f5a1
NN
6365 echo "$as_me: program exited with status $ac_status" >&5
6366echo "$as_me: failed program was:" >&5
6367sed 's/^/| /' conftest.$ac_ext >&5
6368
6369( exit $ac_status )
6370ac_cv_c_stack_direction=-1
252b5132 6371fi
5464f5a1 6372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6373fi
252b5132 6374fi
5464f5a1
NN
6375echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6376echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6377
5464f5a1 6378cat >>confdefs.h <<_ACEOF
252b5132 6379#define STACK_DIRECTION $ac_cv_c_stack_direction
5464f5a1
NN
6380_ACEOF
6381
252b5132
RH
6382
6383fi
6384
5464f5a1
NN
6385
6386
6387for ac_header in stdlib.h unistd.h
252b5132 6388do
5464f5a1
NN
6389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6390if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391 echo "$as_me:$LINENO: checking for $ac_header" >&5
6392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6393if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6395fi
6396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6398else
6399 # Is the header compilable?
6400echo "$as_me:$LINENO: checking $ac_header usability" >&5
6401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6402cat >conftest.$ac_ext <<_ACEOF
6403/* confdefs.h. */
6404_ACEOF
6405cat confdefs.h >>conftest.$ac_ext
6406cat >>conftest.$ac_ext <<_ACEOF
6407/* end confdefs.h. */
6408$ac_includes_default
6409#include <$ac_header>
6410_ACEOF
6411rm -f conftest.$ac_objext
6412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6413 (eval $ac_compile) 2>conftest.er1
6414 ac_status=$?
6415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
2e0fbf77
JW
6420 { ac_try='test -z "$ac_c_werror_flag"
6421 || test ! -s conftest.err'
5464f5a1
NN
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; } &&
6427 { ac_try='test -s conftest.$ac_objext'
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; }; then
6433 ac_header_compiler=yes
6434else
6435 echo "$as_me: failed program was:" >&5
6436sed 's/^/| /' conftest.$ac_ext >&5
6437
6438ac_header_compiler=no
6439fi
6440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6441echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6442echo "${ECHO_T}$ac_header_compiler" >&6
6443
6444# Is the header present?
6445echo "$as_me:$LINENO: checking $ac_header presence" >&5
6446echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6447cat >conftest.$ac_ext <<_ACEOF
6448/* confdefs.h. */
6449_ACEOF
6450cat confdefs.h >>conftest.$ac_ext
6451cat >>conftest.$ac_ext <<_ACEOF
6452/* end confdefs.h. */
6453#include <$ac_header>
6454_ACEOF
6455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6457 ac_status=$?
6458 grep -v '^ *+' conftest.er1 >conftest.err
6459 rm -f conftest.er1
6460 cat conftest.err >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } >/dev/null; then
6463 if test -s conftest.err; then
6464 ac_cpp_err=$ac_c_preproc_warn_flag
6465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6466 else
6467 ac_cpp_err=
6468 fi
252b5132 6469else
5464f5a1 6470 ac_cpp_err=yes
252b5132 6471fi
5464f5a1
NN
6472if test -z "$ac_cpp_err"; then
6473 ac_header_preproc=yes
6474else
6475 echo "$as_me: failed program was:" >&5
6476sed 's/^/| /' conftest.$ac_ext >&5
6477
6478 ac_header_preproc=no
252b5132 6479fi
5464f5a1
NN
6480rm -f conftest.err conftest.$ac_ext
6481echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6482echo "${ECHO_T}$ac_header_preproc" >&6
6483
6484# So? What about this header?
6485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6486 yes:no: )
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6488echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6490echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6491 ac_header_preproc=yes
6492 ;;
6493 no:yes:* )
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6495echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6497echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6499echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6501echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6503echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6505echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6506 (
6507 cat <<\_ASBOX
6508## ------------------------------------------ ##
6509## Report this to the AC_PACKAGE_NAME lists. ##
6510## ------------------------------------------ ##
6511_ASBOX
6512 ) |
6513 sed "s/^/$as_me: WARNING: /" >&2
6514 ;;
6515esac
6516echo "$as_me:$LINENO: checking for $ac_header" >&5
6517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6518if eval "test \"\${$as_ac_Header+set}\" = set"; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6520else
5464f5a1
NN
6521 eval "$as_ac_Header=\$ac_header_preproc"
6522fi
6523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6525
252b5132 6526fi
5464f5a1
NN
6527if test `eval echo '${'$as_ac_Header'}'` = yes; then
6528 cat >>confdefs.h <<_ACEOF
6529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6530_ACEOF
6531
6532fi
6533
252b5132
RH
6534done
6535
5464f5a1 6536
252b5132
RH
6537for ac_func in getpagesize
6538do
5464f5a1
NN
6539as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6540echo "$as_me:$LINENO: checking for $ac_func" >&5
6541echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6542if eval "test \"\${$as_ac_var+set}\" = set"; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h. */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h. */
6551/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6553#define $ac_func innocuous_$ac_func
6554
252b5132 6555/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6556 which can conflict with char $ac_func (); below.
6557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6558 <limits.h> exists even on freestanding compilers. */
6559
6560#ifdef __STDC__
6561# include <limits.h>
6562#else
6563# include <assert.h>
6564#endif
6be7c12c 6565
5464f5a1 6566#undef $ac_func
252b5132 6567
5464f5a1
NN
6568/* Override any gcc2 internal prototype to avoid an error. */
6569#ifdef __cplusplus
6570extern "C"
6571{
6572#endif
6573/* We use char because int might match the return type of a gcc2
6574 builtin and then its argument prototype would still apply. */
6575char $ac_func ();
252b5132
RH
6576/* The GNU C library defines this for functions which it implements
6577 to always fail with ENOSYS. Some functions are actually named
6578 something starting with __ and the normal name is an alias. */
6579#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6580choke me
6581#else
5464f5a1
NN
6582char (*f) () = $ac_func;
6583#endif
6584#ifdef __cplusplus
6585}
252b5132
RH
6586#endif
6587
5464f5a1
NN
6588int
6589main ()
6590{
6591return f != $ac_func;
6592 ;
6593 return 0;
6594}
6595_ACEOF
6596rm -f conftest.$ac_objext conftest$ac_exeext
6597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
2e0fbf77
JW
6605 { ac_try='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 eval "$as_ac_var=yes"
6619else
6620 echo "$as_me: failed program was:" >&5
6621sed 's/^/| /' conftest.$ac_ext >&5
6622
6623eval "$as_ac_var=no"
6624fi
6625rm -f conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627fi
6628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6629echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6630if test `eval echo '${'$as_ac_var'}'` = yes; then
6631 cat >>confdefs.h <<_ACEOF
6632#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6633_ACEOF
252b5132 6634
252b5132
RH
6635fi
6636done
6637
5464f5a1
NN
6638echo "$as_me:$LINENO: checking for working mmap" >&5
6639echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6640if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6642else
6643 if test "$cross_compiling" = yes; then
6644 ac_cv_func_mmap_fixed_mapped=no
6645else
5464f5a1
NN
6646 cat >conftest.$ac_ext <<_ACEOF
6647/* confdefs.h. */
6648_ACEOF
6649cat confdefs.h >>conftest.$ac_ext
6650cat >>conftest.$ac_ext <<_ACEOF
6651/* end confdefs.h. */
6652$ac_includes_default
6653/* malloc might have been renamed as rpl_malloc. */
6654#undef malloc
6be7c12c 6655
252b5132
RH
6656/* Thanks to Mike Haertel and Jim Avera for this test.
6657 Here is a matrix of mmap possibilities:
6658 mmap private not fixed
6659 mmap private fixed at somewhere currently unmapped
6660 mmap private fixed at somewhere already mapped
6661 mmap shared not fixed
6662 mmap shared fixed at somewhere currently unmapped
6663 mmap shared fixed at somewhere already mapped
6664 For private mappings, we should verify that changes cannot be read()
6665 back from the file, nor mmap's back from the file at a different
6666 address. (There have been systems where private was not correctly
6667 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 6668 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6669 like early versions of FreeBSD and possibly contemporary NetBSD.)
6670 For shared mappings, we should conversely verify that changes get
5464f5a1 6671 propagated back to all the places they're supposed to be.
252b5132
RH
6672
6673 Grep wants private fixed already mapped.
6674 The main things grep needs to know about mmap are:
6675 * does it exist and is it safe to write into the mmap'd area
6676 * how to use it (BSD variants) */
5464f5a1 6677
252b5132
RH
6678#include <fcntl.h>
6679#include <sys/mman.h>
6680
5464f5a1
NN
6681#if !STDC_HEADERS && !HAVE_STDLIB_H
6682char *malloc ();
6683#endif
6be7c12c 6684
5464f5a1
NN
6685/* This mess was copied from the GNU getpagesize.h. */
6686#if !HAVE_GETPAGESIZE
252b5132 6687/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 6688# if !HAVE_SYS_PARAM_H
252b5132
RH
6689# define HAVE_SYS_PARAM_H 1
6690# endif
6691
6692# ifdef _SC_PAGESIZE
6693# define getpagesize() sysconf(_SC_PAGESIZE)
6694# else /* no _SC_PAGESIZE */
5464f5a1 6695# if HAVE_SYS_PARAM_H
252b5132
RH
6696# include <sys/param.h>
6697# ifdef EXEC_PAGESIZE
6698# define getpagesize() EXEC_PAGESIZE
6699# else /* no EXEC_PAGESIZE */
6700# ifdef NBPG
6701# define getpagesize() NBPG * CLSIZE
6702# ifndef CLSIZE
6703# define CLSIZE 1
6704# endif /* no CLSIZE */
6705# else /* no NBPG */
6706# ifdef NBPC
6707# define getpagesize() NBPC
6708# else /* no NBPC */
6709# ifdef PAGESIZE
6710# define getpagesize() PAGESIZE
6711# endif /* PAGESIZE */
6712# endif /* no NBPC */
6713# endif /* no NBPG */
6714# endif /* no EXEC_PAGESIZE */
6715# else /* no HAVE_SYS_PARAM_H */
6716# define getpagesize() 8192 /* punt totally */
6717# endif /* no HAVE_SYS_PARAM_H */
6718# endif /* no _SC_PAGESIZE */
6719
6720#endif /* no HAVE_GETPAGESIZE */
6721
252b5132 6722int
5464f5a1 6723main ()
252b5132 6724{
5464f5a1
NN
6725 char *data, *data2, *data3;
6726 int i, pagesize;
6727 int fd;
6728
6729 pagesize = getpagesize ();
6730
6731 /* First, make a file with some known garbage in it. */
6732 data = (char *) malloc (pagesize);
6733 if (!data)
6734 exit (1);
6735 for (i = 0; i < pagesize; ++i)
6736 *(data + i) = rand ();
6737 umask (0);
6738 fd = creat ("conftest.mmap", 0600);
6739 if (fd < 0)
6740 exit (1);
6741 if (write (fd, data, pagesize) != pagesize)
6742 exit (1);
6743 close (fd);
6744
6745 /* Next, try to mmap the file at a fixed address which already has
6746 something else allocated at it. If we can, also make sure that
6747 we see the same garbage. */
6748 fd = open ("conftest.mmap", O_RDWR);
6749 if (fd < 0)
6750 exit (1);
6751 data2 = (char *) malloc (2 * pagesize);
6752 if (!data2)
6753 exit (1);
6754 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6755 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6756 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6757 exit (1);
6758 for (i = 0; i < pagesize; ++i)
6759 if (*(data + i) != *(data2 + i))
6760 exit (1);
6761
6762 /* Finally, make sure that changes to the mapped area do not
6763 percolate back to the file as seen by read(). (This is a bug on
6764 some variants of i386 svr4.0.) */
6765 for (i = 0; i < pagesize; ++i)
6766 *(data2 + i) = *(data2 + i) + 1;
6767 data3 = (char *) malloc (pagesize);
6768 if (!data3)
6769 exit (1);
6770 if (read (fd, data3, pagesize) != pagesize)
6771 exit (1);
6772 for (i = 0; i < pagesize; ++i)
6773 if (*(data + i) != *(data3 + i))
6774 exit (1);
6775 close (fd);
6776 exit (0);
252b5132 6777}
5464f5a1
NN
6778_ACEOF
6779rm -f conftest$ac_exeext
6780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6781 (eval $ac_link) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 (eval $ac_try) 2>&5
6787 ac_status=$?
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
252b5132
RH
6790 ac_cv_func_mmap_fixed_mapped=yes
6791else
5464f5a1
NN
6792 echo "$as_me: program exited with status $ac_status" >&5
6793echo "$as_me: failed program was:" >&5
6794sed 's/^/| /' conftest.$ac_ext >&5
6795
6796( exit $ac_status )
6797ac_cv_func_mmap_fixed_mapped=no
252b5132 6798fi
5464f5a1 6799rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6800fi
252b5132 6801fi
5464f5a1
NN
6802echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6803echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6be7c12c 6804if test $ac_cv_func_mmap_fixed_mapped = yes; then
5464f5a1
NN
6805
6806cat >>confdefs.h <<\_ACEOF
252b5132 6807#define HAVE_MMAP 1
5464f5a1 6808_ACEOF
252b5132
RH
6809
6810fi
5464f5a1
NN
6811rm -f conftest.mmap
6812
6813
252b5132 6814
5464f5a1
NN
6815
6816
6817
6818
6819
6820
6821
6822
6823for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6824unistd.h values.h sys/param.h
6825do
5464f5a1
NN
6826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6827if eval "test \"\${$as_ac_Header+set}\" = set"; then
6828 echo "$as_me:$LINENO: checking for $ac_header" >&5
6829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6830if eval "test \"\${$as_ac_Header+set}\" = set"; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832fi
6833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6835else
6836 # Is the header compilable?
6837echo "$as_me:$LINENO: checking $ac_header usability" >&5
6838echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6839cat >conftest.$ac_ext <<_ACEOF
6840/* confdefs.h. */
6841_ACEOF
6842cat confdefs.h >>conftest.$ac_ext
6843cat >>conftest.$ac_ext <<_ACEOF
6844/* end confdefs.h. */
6845$ac_includes_default
6846#include <$ac_header>
6847_ACEOF
6848rm -f conftest.$ac_objext
6849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } &&
2e0fbf77
JW
6857 { ac_try='test -z "$ac_c_werror_flag"
6858 || test ! -s conftest.err'
5464f5a1
NN
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; } &&
6864 { ac_try='test -s conftest.$ac_objext'
6865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6866 (eval $ac_try) 2>&5
6867 ac_status=$?
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); }; }; then
6870 ac_header_compiler=yes
6871else
6872 echo "$as_me: failed program was:" >&5
6873sed 's/^/| /' conftest.$ac_ext >&5
6874
6875ac_header_compiler=no
6876fi
6877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6878echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6879echo "${ECHO_T}$ac_header_compiler" >&6
6880
6881# Is the header present?
6882echo "$as_me:$LINENO: checking $ac_header presence" >&5
6883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6884cat >conftest.$ac_ext <<_ACEOF
6885/* confdefs.h. */
6886_ACEOF
6887cat confdefs.h >>conftest.$ac_ext
6888cat >>conftest.$ac_ext <<_ACEOF
6889/* end confdefs.h. */
6890#include <$ac_header>
6891_ACEOF
6892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6894 ac_status=$?
6895 grep -v '^ *+' conftest.er1 >conftest.err
6896 rm -f conftest.er1
6897 cat conftest.err >&5
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } >/dev/null; then
6900 if test -s conftest.err; then
6901 ac_cpp_err=$ac_c_preproc_warn_flag
6902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6903 else
6904 ac_cpp_err=
6905 fi
252b5132 6906else
5464f5a1 6907 ac_cpp_err=yes
252b5132 6908fi
5464f5a1
NN
6909if test -z "$ac_cpp_err"; then
6910 ac_header_preproc=yes
6911else
6912 echo "$as_me: failed program was:" >&5
6913sed 's/^/| /' conftest.$ac_ext >&5
6914
6915 ac_header_preproc=no
252b5132 6916fi
5464f5a1
NN
6917rm -f conftest.err conftest.$ac_ext
6918echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6919echo "${ECHO_T}$ac_header_preproc" >&6
6920
6921# So? What about this header?
6922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6923 yes:no: )
6924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6928 ac_header_preproc=yes
6929 ;;
6930 no:yes:* )
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6934echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6938echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6943 (
6944 cat <<\_ASBOX
6945## ------------------------------------------ ##
6946## Report this to the AC_PACKAGE_NAME lists. ##
6947## ------------------------------------------ ##
6948_ASBOX
6949 ) |
6950 sed "s/^/$as_me: WARNING: /" >&2
6951 ;;
6952esac
6953echo "$as_me:$LINENO: checking for $ac_header" >&5
6954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6955if eval "test \"\${$as_ac_Header+set}\" = set"; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6957else
5464f5a1
NN
6958 eval "$as_ac_Header=\$ac_header_preproc"
6959fi
6960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6962
6963fi
6964if test `eval echo '${'$as_ac_Header'}'` = yes; then
6965 cat >>confdefs.h <<_ACEOF
6966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6967_ACEOF
6968
252b5132 6969fi
5464f5a1 6970
252b5132
RH
6971done
6972
5464f5a1
NN
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6984__argz_count __argz_stringify __argz_next
6985do
5464f5a1
NN
6986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6987echo "$as_me:$LINENO: checking for $ac_func" >&5
6988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6989if eval "test \"\${$as_ac_var+set}\" = set"; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6991else
6992 cat >conftest.$ac_ext <<_ACEOF
6993/* confdefs.h. */
6994_ACEOF
6995cat confdefs.h >>conftest.$ac_ext
6996cat >>conftest.$ac_ext <<_ACEOF
6997/* end confdefs.h. */
6998/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7000#define $ac_func innocuous_$ac_func
7001
252b5132 7002/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7003 which can conflict with char $ac_func (); below.
7004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7005 <limits.h> exists even on freestanding compilers. */
7006
7007#ifdef __STDC__
7008# include <limits.h>
7009#else
7010# include <assert.h>
7011#endif
7012
7013#undef $ac_func
7014
252b5132 7015/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7016#ifdef __cplusplus
7017extern "C"
7018{
7019#endif
252b5132 7020/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7021 builtin and then its argument prototype would still apply. */
7022char $ac_func ();
252b5132
RH
7023/* The GNU C library defines this for functions which it implements
7024 to always fail with ENOSYS. Some functions are actually named
7025 something starting with __ and the normal name is an alias. */
7026#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7027choke me
7028#else
5464f5a1
NN
7029char (*f) () = $ac_func;
7030#endif
7031#ifdef __cplusplus
7032}
252b5132
RH
7033#endif
7034
5464f5a1
NN
7035int
7036main ()
7037{
7038return f != $ac_func;
7039 ;
7040 return 0;
7041}
7042_ACEOF
7043rm -f conftest.$ac_objext conftest$ac_exeext
7044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045 (eval $ac_link) 2>conftest.er1
7046 ac_status=$?
7047 grep -v '^ *+' conftest.er1 >conftest.err
7048 rm -f conftest.er1
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
2e0fbf77
JW
7052 { ac_try='test -z "$ac_c_werror_flag"
7053 || test ! -s conftest.err'
5464f5a1
NN
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 (eval $ac_try) 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; } &&
7059 { ac_try='test -s conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 eval "$as_ac_var=yes"
7066else
7067 echo "$as_me: failed program was:" >&5
7068sed 's/^/| /' conftest.$ac_ext >&5
7069
7070eval "$as_ac_var=no"
7071fi
7072rm -f conftest.err conftest.$ac_objext \
7073 conftest$ac_exeext conftest.$ac_ext
7074fi
7075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7077if test `eval echo '${'$as_ac_var'}'` = yes; then
7078 cat >>confdefs.h <<_ACEOF
7079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7080_ACEOF
252b5132 7081
252b5132
RH
7082fi
7083done
7084
b3baf5d0 7085
6be7c12c 7086 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5464f5a1
NN
7087
7088for ac_func in stpcpy
252b5132 7089do
5464f5a1
NN
7090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7091echo "$as_me:$LINENO: checking for $ac_func" >&5
7092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7093if eval "test \"\${$as_ac_var+set}\" = set"; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096 cat >conftest.$ac_ext <<_ACEOF
7097/* confdefs.h. */
7098_ACEOF
7099cat confdefs.h >>conftest.$ac_ext
7100cat >>conftest.$ac_ext <<_ACEOF
7101/* end confdefs.h. */
7102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7104#define $ac_func innocuous_$ac_func
7105
252b5132 7106/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7107 which can conflict with char $ac_func (); below.
7108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7109 <limits.h> exists even on freestanding compilers. */
7110
7111#ifdef __STDC__
7112# include <limits.h>
7113#else
7114# include <assert.h>
7115#endif
6be7c12c 7116
5464f5a1 7117#undef $ac_func
252b5132 7118
5464f5a1
NN
7119/* Override any gcc2 internal prototype to avoid an error. */
7120#ifdef __cplusplus
7121extern "C"
7122{
7123#endif
7124/* We use char because int might match the return type of a gcc2
7125 builtin and then its argument prototype would still apply. */
7126char $ac_func ();
252b5132
RH
7127/* The GNU C library defines this for functions which it implements
7128 to always fail with ENOSYS. Some functions are actually named
7129 something starting with __ and the normal name is an alias. */
7130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7131choke me
7132#else
5464f5a1
NN
7133char (*f) () = $ac_func;
7134#endif
7135#ifdef __cplusplus
7136}
252b5132
RH
7137#endif
7138
5464f5a1
NN
7139int
7140main ()
7141{
7142return f != $ac_func;
7143 ;
7144 return 0;
7145}
7146_ACEOF
7147rm -f conftest.$ac_objext conftest$ac_exeext
7148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7149 (eval $ac_link) 2>conftest.er1
7150 ac_status=$?
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } &&
2e0fbf77
JW
7156 { ac_try='test -z "$ac_c_werror_flag"
7157 || test ! -s conftest.err'
5464f5a1
NN
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; } &&
7163 { ac_try='test -s conftest$ac_exeext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7165 (eval $ac_try) 2>&5
7166 ac_status=$?
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 eval "$as_ac_var=yes"
7170else
7171 echo "$as_me: failed program was:" >&5
7172sed 's/^/| /' conftest.$ac_ext >&5
7173
7174eval "$as_ac_var=no"
7175fi
7176rm -f conftest.err conftest.$ac_objext \
7177 conftest$ac_exeext conftest.$ac_ext
7178fi
7179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7181if test `eval echo '${'$as_ac_var'}'` = yes; then
7182 cat >>confdefs.h <<_ACEOF
7183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7184_ACEOF
252b5132 7185
252b5132
RH
7186fi
7187done
7188
7189 fi
7190 if test "${ac_cv_func_stpcpy}" = "yes"; then
5464f5a1
NN
7191
7192cat >>confdefs.h <<\_ACEOF
252b5132 7193#define HAVE_STPCPY 1
5464f5a1 7194_ACEOF
252b5132
RH
7195
7196 fi
7197
7198 if test $ac_cv_header_locale_h = yes; then
5464f5a1
NN
7199 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7200echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7201if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7202 echo $ECHO_N "(cached) $ECHO_C" >&6
7203else
7204 cat >conftest.$ac_ext <<_ACEOF
7205/* confdefs.h. */
7206_ACEOF
7207cat confdefs.h >>conftest.$ac_ext
7208cat >>conftest.$ac_ext <<_ACEOF
7209/* end confdefs.h. */
252b5132 7210#include <locale.h>
5464f5a1
NN
7211int
7212main ()
7213{
252b5132 7214return LC_MESSAGES
5464f5a1
NN
7215 ;
7216 return 0;
7217}
7218_ACEOF
7219rm -f conftest.$ac_objext conftest$ac_exeext
7220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7221 (eval $ac_link) 2>conftest.er1
7222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } &&
2e0fbf77
JW
7228 { ac_try='test -z "$ac_c_werror_flag"
7229 || test ! -s conftest.err'
5464f5a1
NN
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 (eval $ac_try) 2>&5
7232 ac_status=$?
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; } &&
7235 { ac_try='test -s conftest$ac_exeext'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237 (eval $ac_try) 2>&5
7238 ac_status=$?
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; }; then
252b5132
RH
7241 am_cv_val_LC_MESSAGES=yes
7242else
5464f5a1
NN
7243 echo "$as_me: failed program was:" >&5
7244sed 's/^/| /' conftest.$ac_ext >&5
7245
7246am_cv_val_LC_MESSAGES=no
252b5132 7247fi
5464f5a1
NN
7248rm -f conftest.err conftest.$ac_objext \
7249 conftest$ac_exeext conftest.$ac_ext
252b5132 7250fi
5464f5a1
NN
7251echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7252echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6be7c12c 7253 if test $am_cv_val_LC_MESSAGES = yes; then
5464f5a1
NN
7254
7255cat >>confdefs.h <<\_ACEOF
252b5132 7256#define HAVE_LC_MESSAGES 1
5464f5a1 7257_ACEOF
252b5132
RH
7258
7259 fi
7260 fi
5464f5a1
NN
7261 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7262echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7263 # Check whether --enable-nls or --disable-nls was given.
7264if test "${enable_nls+set}" = set; then
7265 enableval="$enable_nls"
7266 USE_NLS=$enableval
7267else
7268 USE_NLS=yes
5464f5a1
NN
7269fi;
7270 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7271echo "${ECHO_T}$USE_NLS" >&6
6be7c12c 7272
252b5132
RH
7273
7274 USE_INCLUDED_LIBINTL=no
7275
7276 if test "$USE_NLS" = "yes"; then
5464f5a1
NN
7277 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7278echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7279
7280# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7281if test "${with_included_gettext+set}" = set; then
7282 withval="$with_included_gettext"
7283 nls_cv_force_use_gnu_gettext=$withval
7284else
7285 nls_cv_force_use_gnu_gettext=no
5464f5a1
NN
7286fi;
7287 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7288echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7289
7290 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7291 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7292 nls_cv_header_intl=
7293 nls_cv_header_libgt=
a53bf506 7294 CATOBJEXT=
252b5132 7295
5464f5a1
NN
7296 if test "${ac_cv_header_libintl_h+set}" = set; then
7297 echo "$as_me:$LINENO: checking for libintl.h" >&5
7298echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7299if test "${ac_cv_header_libintl_h+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301fi
7302echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7303echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7304else
7305 # Is the header compilable?
7306echo "$as_me:$LINENO: checking libintl.h usability" >&5
7307echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7308cat >conftest.$ac_ext <<_ACEOF
7309/* confdefs.h. */
7310_ACEOF
7311cat confdefs.h >>conftest.$ac_ext
7312cat >>conftest.$ac_ext <<_ACEOF
7313/* end confdefs.h. */
7314$ac_includes_default
252b5132 7315#include <libintl.h>
5464f5a1
NN
7316_ACEOF
7317rm -f conftest.$ac_objext
7318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7319 (eval $ac_compile) 2>conftest.er1
7320 ac_status=$?
7321 grep -v '^ *+' conftest.er1 >conftest.err
7322 rm -f conftest.er1
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } &&
2e0fbf77
JW
7326 { ac_try='test -z "$ac_c_werror_flag"
7327 || test ! -s conftest.err'
5464f5a1
NN
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 (eval $ac_try) 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; } &&
7333 { ac_try='test -s conftest.$ac_objext'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 (eval $ac_try) 2>&5
7336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; }; then
7339 ac_header_compiler=yes
7340else
7341 echo "$as_me: failed program was:" >&5
7342sed 's/^/| /' conftest.$ac_ext >&5
7343
7344ac_header_compiler=no
7345fi
7346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348echo "${ECHO_T}$ac_header_compiler" >&6
7349
7350# Is the header present?
7351echo "$as_me:$LINENO: checking libintl.h presence" >&5
7352echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7353cat >conftest.$ac_ext <<_ACEOF
7354/* confdefs.h. */
7355_ACEOF
7356cat confdefs.h >>conftest.$ac_ext
7357cat >>conftest.$ac_ext <<_ACEOF
7358/* end confdefs.h. */
7359#include <libintl.h>
7360_ACEOF
7361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7363 ac_status=$?
7364 grep -v '^ *+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } >/dev/null; then
7369 if test -s conftest.err; then
7370 ac_cpp_err=$ac_c_preproc_warn_flag
7371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7372 else
7373 ac_cpp_err=
7374 fi
252b5132 7375else
5464f5a1 7376 ac_cpp_err=yes
252b5132 7377fi
5464f5a1
NN
7378if test -z "$ac_cpp_err"; then
7379 ac_header_preproc=yes
7380else
7381 echo "$as_me: failed program was:" >&5
7382sed 's/^/| /' conftest.$ac_ext >&5
7383
7384 ac_header_preproc=no
252b5132 7385fi
5464f5a1
NN
7386rm -f conftest.err conftest.$ac_ext
7387echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7388echo "${ECHO_T}$ac_header_preproc" >&6
7389
7390# So? What about this header?
7391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7392 yes:no: )
7393 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7394echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7396echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7397 ac_header_preproc=yes
7398 ;;
7399 no:yes:* )
7400 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7401echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7402 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7403echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7405echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7406 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7407echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7408 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7409echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7410 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7411echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7412 (
7413 cat <<\_ASBOX
7414## ------------------------------------------ ##
7415## Report this to the AC_PACKAGE_NAME lists. ##
7416## ------------------------------------------ ##
7417_ASBOX
7418 ) |
7419 sed "s/^/$as_me: WARNING: /" >&2
7420 ;;
7421esac
7422echo "$as_me:$LINENO: checking for libintl.h" >&5
7423echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7424if test "${ac_cv_header_libintl_h+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7426else
5464f5a1
NN
7427 ac_cv_header_libintl_h=$ac_header_preproc
7428fi
7429echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7430echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7431
7432fi
7433if test $ac_cv_header_libintl_h = yes; then
7434 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7435echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7436if test "${gt_cv_func_gettext_libc+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439 cat >conftest.$ac_ext <<_ACEOF
7440/* confdefs.h. */
7441_ACEOF
7442cat confdefs.h >>conftest.$ac_ext
7443cat >>conftest.$ac_ext <<_ACEOF
7444/* end confdefs.h. */
252b5132 7445#include <libintl.h>
5464f5a1
NN
7446int
7447main ()
7448{
252b5132 7449return (int) gettext ("")
5464f5a1
NN
7450 ;
7451 return 0;
7452}
7453_ACEOF
7454rm -f conftest.$ac_objext conftest$ac_exeext
7455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7456 (eval $ac_link) 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
2e0fbf77
JW
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
5464f5a1
NN
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest$ac_exeext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
252b5132
RH
7476 gt_cv_func_gettext_libc=yes
7477else
5464f5a1
NN
7478 echo "$as_me: failed program was:" >&5
7479sed 's/^/| /' conftest.$ac_ext >&5
7480
7481gt_cv_func_gettext_libc=no
252b5132 7482fi
5464f5a1
NN
7483rm -f conftest.err conftest.$ac_objext \
7484 conftest$ac_exeext conftest.$ac_ext
252b5132 7485fi
5464f5a1
NN
7486echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7487echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7488
7489 if test "$gt_cv_func_gettext_libc" != "yes"; then
5464f5a1
NN
7490 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7491echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7492if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7494else
5464f5a1 7495 ac_check_lib_save_LIBS=$LIBS
252b5132 7496LIBS="-lintl $LIBS"
5464f5a1
NN
7497cat >conftest.$ac_ext <<_ACEOF
7498/* confdefs.h. */
7499_ACEOF
7500cat confdefs.h >>conftest.$ac_ext
7501cat >>conftest.$ac_ext <<_ACEOF
7502/* end confdefs.h. */
7503
252b5132 7504/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7505#ifdef __cplusplus
7506extern "C"
7507#endif
252b5132 7508/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7509 builtin and then its argument prototype would still apply. */
7510char bindtextdomain ();
7511int
7512main ()
7513{
7514bindtextdomain ();
7515 ;
7516 return 0;
7517}
7518_ACEOF
7519rm -f conftest.$ac_objext conftest$ac_exeext
7520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7521 (eval $ac_link) 2>conftest.er1
7522 ac_status=$?
7523 grep -v '^ *+' conftest.er1 >conftest.err
7524 rm -f conftest.er1
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
2e0fbf77
JW
7528 { ac_try='test -z "$ac_c_werror_flag"
7529 || test ! -s conftest.err'
5464f5a1
NN
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; } &&
7535 { ac_try='test -s conftest$ac_exeext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 ac_cv_lib_intl_bindtextdomain=yes
7542else
7543 echo "$as_me: failed program was:" >&5
7544sed 's/^/| /' conftest.$ac_ext >&5
7545
7546ac_cv_lib_intl_bindtextdomain=no
7547fi
7548rm -f conftest.err conftest.$ac_objext \
7549 conftest$ac_exeext conftest.$ac_ext
7550LIBS=$ac_check_lib_save_LIBS
7551fi
7552echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7553echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7554if test $ac_cv_lib_intl_bindtextdomain = yes; then
7555 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7556echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7557if test "${gt_cv_func_gettext_libintl+set}" = set; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560 cat >conftest.$ac_ext <<_ACEOF
7561/* confdefs.h. */
7562_ACEOF
7563cat confdefs.h >>conftest.$ac_ext
7564cat >>conftest.$ac_ext <<_ACEOF
7565/* end confdefs.h. */
252b5132 7566
5464f5a1
NN
7567int
7568main ()
7569{
252b5132 7570return (int) gettext ("")
5464f5a1
NN
7571 ;
7572 return 0;
7573}
7574_ACEOF
7575rm -f conftest.$ac_objext conftest$ac_exeext
7576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577 (eval $ac_link) 2>conftest.er1
7578 ac_status=$?
7579 grep -v '^ *+' conftest.er1 >conftest.err
7580 rm -f conftest.er1
7581 cat conftest.err >&5
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } &&
2e0fbf77
JW
7584 { ac_try='test -z "$ac_c_werror_flag"
7585 || test ! -s conftest.err'
5464f5a1
NN
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 (eval $ac_try) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest$ac_exeext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
252b5132
RH
7597 gt_cv_func_gettext_libintl=yes
7598else
5464f5a1
NN
7599 echo "$as_me: failed program was:" >&5
7600sed 's/^/| /' conftest.$ac_ext >&5
7601
7602gt_cv_func_gettext_libintl=no
252b5132 7603fi
5464f5a1
NN
7604rm -f conftest.err conftest.$ac_objext \
7605 conftest$ac_exeext conftest.$ac_ext
252b5132 7606fi
5464f5a1
NN
7607echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7608echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7609fi
7610
7611 fi
7612
7613 if test "$gt_cv_func_gettext_libc" = "yes" \
7614 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5464f5a1
NN
7615
7616cat >>confdefs.h <<\_ACEOF
252b5132 7617#define HAVE_GETTEXT 1
5464f5a1 7618_ACEOF
252b5132
RH
7619
7620 # Extract the first word of "msgfmt", so it can be a program name with args.
7621set dummy msgfmt; ac_word=$2
5464f5a1
NN
7622echo "$as_me:$LINENO: checking for $ac_word" >&5
7623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7624if test "${ac_cv_path_MSGFMT+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7626else
7627 case "$MSGFMT" in
7628 /*)
7629 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7630 ;;
7631 *)
7632 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7633 for ac_dir in $PATH; do
7634 test -z "$ac_dir" && ac_dir=.
7635 if test -f $ac_dir/$ac_word; then
7636 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7637 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7638 break
7639 fi
7640 fi
7641 done
7642 IFS="$ac_save_ifs"
7643 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7644 ;;
7645esac
7646fi
7647MSGFMT="$ac_cv_path_MSGFMT"
7648if test -n "$MSGFMT"; then
5464f5a1
NN
7649 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7650echo "${ECHO_T}$MSGFMT" >&6
252b5132 7651else
5464f5a1
NN
7652 echo "$as_me:$LINENO: result: no" >&5
7653echo "${ECHO_T}no" >&6
252b5132
RH
7654fi
7655 if test "$MSGFMT" != "no"; then
5464f5a1
NN
7656
7657for ac_func in dcgettext
252b5132 7658do
5464f5a1
NN
7659as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7660echo "$as_me:$LINENO: checking for $ac_func" >&5
7661echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7662if eval "test \"\${$as_ac_var+set}\" = set"; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664else
7665 cat >conftest.$ac_ext <<_ACEOF
7666/* confdefs.h. */
7667_ACEOF
7668cat confdefs.h >>conftest.$ac_ext
7669cat >>conftest.$ac_ext <<_ACEOF
7670/* end confdefs.h. */
7671/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7673#define $ac_func innocuous_$ac_func
7674
252b5132 7675/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7676 which can conflict with char $ac_func (); below.
7677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7678 <limits.h> exists even on freestanding compilers. */
7679
7680#ifdef __STDC__
7681# include <limits.h>
7682#else
7683# include <assert.h>
7684#endif
6be7c12c 7685
5464f5a1 7686#undef $ac_func
252b5132 7687
5464f5a1
NN
7688/* Override any gcc2 internal prototype to avoid an error. */
7689#ifdef __cplusplus
7690extern "C"
7691{
7692#endif
7693/* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7695char $ac_func ();
252b5132
RH
7696/* The GNU C library defines this for functions which it implements
7697 to always fail with ENOSYS. Some functions are actually named
7698 something starting with __ and the normal name is an alias. */
7699#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7700choke me
7701#else
5464f5a1
NN
7702char (*f) () = $ac_func;
7703#endif
7704#ifdef __cplusplus
7705}
252b5132
RH
7706#endif
7707
5464f5a1
NN
7708int
7709main ()
7710{
7711return f != $ac_func;
7712 ;
7713 return 0;
7714}
7715_ACEOF
7716rm -f conftest.$ac_objext conftest$ac_exeext
7717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7718 (eval $ac_link) 2>conftest.er1
7719 ac_status=$?
7720 grep -v '^ *+' conftest.er1 >conftest.err
7721 rm -f conftest.er1
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } &&
2e0fbf77
JW
7725 { ac_try='test -z "$ac_c_werror_flag"
7726 || test ! -s conftest.err'
5464f5a1
NN
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; } &&
7732 { ac_try='test -s conftest$ac_exeext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 eval "$as_ac_var=yes"
7739else
7740 echo "$as_me: failed program was:" >&5
7741sed 's/^/| /' conftest.$ac_ext >&5
7742
7743eval "$as_ac_var=no"
7744fi
7745rm -f conftest.err conftest.$ac_objext \
7746 conftest$ac_exeext conftest.$ac_ext
7747fi
7748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7749echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7750if test `eval echo '${'$as_ac_var'}'` = yes; then
7751 cat >>confdefs.h <<_ACEOF
7752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7753_ACEOF
252b5132 7754
252b5132
RH
7755fi
7756done
7757
7758 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7759set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7760echo "$as_me:$LINENO: checking for $ac_word" >&5
7761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7762if test "${ac_cv_path_GMSGFMT+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7764else
5464f5a1
NN
7765 case $GMSGFMT in
7766 [\\/]* | ?:[\\/]*)
252b5132
RH
7767 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7768 ;;
252b5132 7769 *)
5464f5a1
NN
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 break 2
7780 fi
7781done
7782done
7783
252b5132
RH
7784 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7785 ;;
7786esac
7787fi
5464f5a1
NN
7788GMSGFMT=$ac_cv_path_GMSGFMT
7789
252b5132 7790if test -n "$GMSGFMT"; then
5464f5a1
NN
7791 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7792echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7793else
5464f5a1
NN
7794 echo "$as_me:$LINENO: result: no" >&5
7795echo "${ECHO_T}no" >&6
252b5132
RH
7796fi
7797
7798 # Extract the first word of "xgettext", so it can be a program name with args.
7799set dummy xgettext; ac_word=$2
5464f5a1
NN
7800echo "$as_me:$LINENO: checking for $ac_word" >&5
7801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7802if test "${ac_cv_path_XGETTEXT+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7804else
7805 case "$XGETTEXT" in
7806 /*)
7807 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7808 ;;
7809 *)
7810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7811 for ac_dir in $PATH; do
7812 test -z "$ac_dir" && ac_dir=.
7813 if test -f $ac_dir/$ac_word; then
7814 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7815 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7816 break
7817 fi
7818 fi
7819 done
7820 IFS="$ac_save_ifs"
7821 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7822 ;;
7823esac
7824fi
7825XGETTEXT="$ac_cv_path_XGETTEXT"
7826if test -n "$XGETTEXT"; then
5464f5a1
NN
7827 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7828echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7829else
5464f5a1
NN
7830 echo "$as_me:$LINENO: result: no" >&5
7831echo "${ECHO_T}no" >&6
252b5132
RH
7832fi
7833
5464f5a1
NN
7834 cat >conftest.$ac_ext <<_ACEOF
7835/* confdefs.h. */
7836_ACEOF
7837cat confdefs.h >>conftest.$ac_ext
7838cat >>conftest.$ac_ext <<_ACEOF
7839/* end confdefs.h. */
252b5132 7840
5464f5a1
NN
7841int
7842main ()
7843{
252b5132
RH
7844extern int _nl_msg_cat_cntr;
7845 return _nl_msg_cat_cntr
5464f5a1
NN
7846 ;
7847 return 0;
7848}
7849_ACEOF
7850rm -f conftest.$ac_objext conftest$ac_exeext
7851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
2e0fbf77
JW
7859 { ac_try='test -z "$ac_c_werror_flag"
7860 || test ! -s conftest.err'
5464f5a1
NN
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; } &&
7866 { ac_try='test -s conftest$ac_exeext'
7867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868 (eval $ac_try) 2>&5
7869 ac_status=$?
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; }; then
252b5132
RH
7872 CATOBJEXT=.gmo
7873 DATADIRNAME=share
7874else
5464f5a1
NN
7875 echo "$as_me: failed program was:" >&5
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878CATOBJEXT=.mo
252b5132
RH
7879 DATADIRNAME=lib
7880fi
5464f5a1
NN
7881rm -f conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7883 INSTOBJEXT=.mo
7884 fi
7885 fi
5464f5a1 7886
b3baf5d0 7887fi
252b5132 7888
6be7c12c 7889
5464f5a1
NN
7890
7891
a53bf506 7892 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
7893 # Neither gettext nor catgets in included in the C library.
7894 # Fall back on GNU gettext library (assuming it is present).
7895 nls_cv_use_gnu_gettext=yes
252b5132
RH
7896 fi
7897 fi
7898
7899 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7900 INTLOBJS="\$(GETTOBJS)"
7901 # Extract the first word of "msgfmt", so it can be a program name with args.
7902set dummy msgfmt; ac_word=$2
5464f5a1
NN
7903echo "$as_me:$LINENO: checking for $ac_word" >&5
7904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7905if test "${ac_cv_path_MSGFMT+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7907else
7908 case "$MSGFMT" in
7909 /*)
7910 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7911 ;;
7912 *)
7913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7914 for ac_dir in $PATH; do
7915 test -z "$ac_dir" && ac_dir=.
7916 if test -f $ac_dir/$ac_word; then
7917 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7918 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7919 break
7920 fi
7921 fi
7922 done
7923 IFS="$ac_save_ifs"
7924 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7925 ;;
7926esac
7927fi
7928MSGFMT="$ac_cv_path_MSGFMT"
7929if test -n "$MSGFMT"; then
5464f5a1
NN
7930 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7931echo "${ECHO_T}$MSGFMT" >&6
252b5132 7932else
5464f5a1
NN
7933 echo "$as_me:$LINENO: result: no" >&5
7934echo "${ECHO_T}no" >&6
252b5132
RH
7935fi
7936
7937 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7938set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7939echo "$as_me:$LINENO: checking for $ac_word" >&5
7940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7941if test "${ac_cv_path_GMSGFMT+set}" = set; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7943else
5464f5a1
NN
7944 case $GMSGFMT in
7945 [\\/]* | ?:[\\/]*)
252b5132
RH
7946 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7947 ;;
252b5132 7948 *)
5464f5a1
NN
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950for as_dir in $PATH
7951do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7958 break 2
7959 fi
7960done
7961done
7962
252b5132
RH
7963 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7964 ;;
7965esac
7966fi
5464f5a1
NN
7967GMSGFMT=$ac_cv_path_GMSGFMT
7968
252b5132 7969if test -n "$GMSGFMT"; then
5464f5a1
NN
7970 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7971echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7972else
5464f5a1
NN
7973 echo "$as_me:$LINENO: result: no" >&5
7974echo "${ECHO_T}no" >&6
252b5132
RH
7975fi
7976
7977 # Extract the first word of "xgettext", so it can be a program name with args.
7978set dummy xgettext; ac_word=$2
5464f5a1
NN
7979echo "$as_me:$LINENO: checking for $ac_word" >&5
7980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7981if test "${ac_cv_path_XGETTEXT+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7983else
7984 case "$XGETTEXT" in
7985 /*)
7986 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7987 ;;
7988 *)
7989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7990 for ac_dir in $PATH; do
7991 test -z "$ac_dir" && ac_dir=.
7992 if test -f $ac_dir/$ac_word; then
7993 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7994 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7995 break
7996 fi
7997 fi
7998 done
7999 IFS="$ac_save_ifs"
8000 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8001 ;;
8002esac
8003fi
8004XGETTEXT="$ac_cv_path_XGETTEXT"
8005if test -n "$XGETTEXT"; then
5464f5a1
NN
8006 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8007echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8008else
5464f5a1
NN
8009 echo "$as_me:$LINENO: result: no" >&5
8010echo "${ECHO_T}no" >&6
252b5132
RH
8011fi
8012
5464f5a1 8013
252b5132
RH
8014 USE_INCLUDED_LIBINTL=yes
8015 CATOBJEXT=.gmo
8016 INSTOBJEXT=.mo
8017 DATADIRNAME=share
8018 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8019 INTLLIBS=$INTLDEPS
8020 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8021 nls_cv_header_intl=libintl.h
8022 nls_cv_header_libgt=libgettext.h
8023 fi
8024
8025 if test "$XGETTEXT" != ":"; then
8026 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8027 : ;
8028 else
5464f5a1
NN
8029 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8030echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
8031 XGETTEXT=":"
8032 fi
8033 fi
8034
8035 # We need to process the po/ directory.
8036 POSUB=po
8037 else
8038 DATADIRNAME=share
8039 nls_cv_header_intl=libintl.h
8040 nls_cv_header_libgt=libgettext.h
8041 fi
8042
8043 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8044 # because some of the sources are only built for this goal.
8045 if test "$PACKAGE" = gettext; then
8046 USE_NLS=yes
8047 USE_INCLUDED_LIBINTL=yes
8048 fi
8049
8050 for lang in $ALL_LINGUAS; do
8051 GMOFILES="$GMOFILES $lang.gmo"
8052 POFILES="$POFILES $lang.po"
8053 done
8054
5464f5a1
NN
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
c46f8c51
AC
8066 if test "x$CATOBJEXT" != "x"; then
8067
8068cat >>confdefs.h <<\_ACEOF
8069#define ENABLE_NLS 1
8070_ACEOF
8071
8072 fi
5464f5a1 8073
6be7c12c 8074
252b5132
RH
8075 if test "x$CATOBJEXT" != "x"; then
8076 if test "x$ALL_LINGUAS" = "x"; then
8077 LINGUAS=
8078 else
5464f5a1
NN
8079 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8080echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8081 NEW_LINGUAS=
8082 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8083 case "$ALL_LINGUAS" in
8084 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8085 esac
8086 done
8087 LINGUAS=$NEW_LINGUAS
5464f5a1
NN
8088 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8089echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8090 fi
8091
8092 if test -n "$LINGUAS"; then
8093 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8094 fi
8095 fi
8096
8097 if test $ac_cv_header_locale_h = yes; then
8098 INCLUDE_LOCALE_H="#include <locale.h>"
8099 else
8100 INCLUDE_LOCALE_H="\
8101/* The system does not provide the header <locale.h>. Take care yourself. */"
8102 fi
5464f5a1 8103
252b5132
RH
8104
8105 if test -f $srcdir/po2tbl.sed.in; then
8106 if test "$CATOBJEXT" = ".cat"; then
5464f5a1
NN
8107 if test "${ac_cv_header_linux_version_h+set}" = set; then
8108 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8109echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8110if test "${ac_cv_header_linux_version_h+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
8112fi
8113echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8114echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8115else
8116 # Is the header compilable?
8117echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8118echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8119cat >conftest.$ac_ext <<_ACEOF
8120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
8125$ac_includes_default
252b5132 8126#include <linux/version.h>
5464f5a1
NN
8127_ACEOF
8128rm -f conftest.$ac_objext
8129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130 (eval $ac_compile) 2>conftest.er1
8131 ac_status=$?
8132 grep -v '^ *+' conftest.er1 >conftest.err
8133 rm -f conftest.er1
8134 cat conftest.err >&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } &&
2e0fbf77
JW
8137 { ac_try='test -z "$ac_c_werror_flag"
8138 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
8144 { ac_try='test -s conftest.$ac_objext'
8145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146 (eval $ac_try) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_header_compiler=yes
8151else
8152 echo "$as_me: failed program was:" >&5
8153sed 's/^/| /' conftest.$ac_ext >&5
8154
8155ac_header_compiler=no
8156fi
8157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8158echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8159echo "${ECHO_T}$ac_header_compiler" >&6
8160
8161# Is the header present?
8162echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8163echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8164cat >conftest.$ac_ext <<_ACEOF
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
8170#include <linux/version.h>
8171_ACEOF
8172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8174 ac_status=$?
8175 grep -v '^ *+' conftest.er1 >conftest.err
8176 rm -f conftest.er1
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } >/dev/null; then
8180 if test -s conftest.err; then
8181 ac_cpp_err=$ac_c_preproc_warn_flag
8182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8183 else
8184 ac_cpp_err=
8185 fi
252b5132 8186else
5464f5a1 8187 ac_cpp_err=yes
252b5132 8188fi
5464f5a1
NN
8189if test -z "$ac_cpp_err"; then
8190 ac_header_preproc=yes
8191else
8192 echo "$as_me: failed program was:" >&5
8193sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 ac_header_preproc=no
8196fi
8197rm -f conftest.err conftest.$ac_ext
8198echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8199echo "${ECHO_T}$ac_header_preproc" >&6
8200
8201# So? What about this header?
8202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8203 yes:no: )
8204 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8205echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8206 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8207echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8208 ac_header_preproc=yes
8209 ;;
8210 no:yes:* )
8211 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8212echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8214echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8216echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8217 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8218echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8219 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8220echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8221 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8222echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8223 (
8224 cat <<\_ASBOX
8225## ------------------------------------------ ##
8226## Report this to the AC_PACKAGE_NAME lists. ##
8227## ------------------------------------------ ##
8228_ASBOX
8229 ) |
8230 sed "s/^/$as_me: WARNING: /" >&2
8231 ;;
8232esac
8233echo "$as_me:$LINENO: checking for linux/version.h" >&5
8234echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8235if test "${ac_cv_header_linux_version_h+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237else
8238 ac_cv_header_linux_version_h=$ac_header_preproc
8239fi
8240echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8241echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8242
252b5132 8243fi
5464f5a1 8244if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8245 msgformat=linux
8246else
5464f5a1 8247 msgformat=xopen
252b5132
RH
8248fi
8249
6be7c12c 8250
5464f5a1 8251
252b5132
RH
8252 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8253 fi
8254 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8255 $srcdir/po2tbl.sed.in > po2tbl.sed
8256 fi
8257
8258 if test "$PACKAGE" = "gettext"; then
8259 GT_NO="#NO#"
8260 GT_YES=
8261 else
8262 GT_NO=
8263 GT_YES="#YES#"
8264 fi
5464f5a1
NN
8265
8266
252b5132
RH
8267
8268 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5464f5a1 8269
252b5132
RH
8270
8271 l=
5464f5a1 8272
252b5132 8273
3c3bdf30 8274 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8275 test -d po || mkdir po
8276 if test "x$srcdir" != "x."; then
8277 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8278 posrcprefix="$srcdir/"
8279 else
8280 posrcprefix="../$srcdir/"
8281 fi
8282 else
8283 posrcprefix="../"
8284 fi
8285 rm -f po/POTFILES
8286 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8287 < $srcdir/po/POTFILES.in > po/POTFILES
8288 fi
5464f5a1 8289
252b5132
RH
8290
8291# Permit host specific settings.
8292. ${srcdir}/configure.host
8293
6be7c12c 8294
252b5132
RH
8295# Find a good install program. We prefer a C program (faster),
8296# so one script is as good as another. But avoid the broken or
8297# incompatible versions:
8298# SysV /etc/install, /usr/sbin/install
8299# SunOS /usr/etc/install
8300# IRIX /sbin/install
8301# AIX /bin/install
5464f5a1 8302# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8303# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8304# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8305# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 8306# OS/2's system install, which has a completely different semantic
252b5132 8307# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
8308echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8309echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8310if test -z "$INSTALL"; then
5464f5a1
NN
8311if test "${ac_cv_path_install+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8313else
5464f5a1
NN
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315for as_dir in $PATH
8316do
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
8319 # Account for people who put trailing slashes in PATH elements.
8320case $as_dir/ in
8321 ./ | .// | /cC/* | \
8322 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8323 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8324 /usr/ucb/* ) ;;
8325 *)
8326 # OSF1 and SCO ODT 3.0 have their own names for install.
8327 # Don't use installbsd from OSF since it installs stuff as root
8328 # by default.
8329 for ac_prog in ginstall scoinst install; do
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8332 if test $ac_prog = install &&
5464f5a1 8333 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8334 # AIX install. It has an incompatible calling convention.
8335 :
5464f5a1
NN
8336 elif test $ac_prog = install &&
8337 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8338 # program-specific install script used by HP pwplus--don't use.
8339 :
252b5132 8340 else
5464f5a1
NN
8341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8342 break 3
252b5132
RH
8343 fi
8344 fi
8345 done
5464f5a1
NN
8346 done
8347 ;;
8348esac
8349done
8350
252b5132
RH
8351
8352fi
8353 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 8354 INSTALL=$ac_cv_path_install
252b5132
RH
8355 else
8356 # As a last resort, use the slow shell script. We don't cache a
8357 # path for INSTALL within a source directory, because that will
8358 # break other packages using the cache if that directory is
8359 # removed, or if the path is relative.
5464f5a1 8360 INSTALL=$ac_install_sh
252b5132
RH
8361 fi
8362fi
5464f5a1
NN
8363echo "$as_me:$LINENO: result: $INSTALL" >&5
8364echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8365
8366# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8367# It thinks the first close brace ends the variable substitution.
8368test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8369
5464f5a1 8370test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8371
8372test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8373
6be7c12c 8374
252b5132 8375BFD_HOST_64BIT_LONG=0
ec317fb1 8376BFD_HOST_LONG_LONG=0
252b5132
RH
8377BFD_HOST_64_BIT_DEFINED=0
8378BFD_HOST_64_BIT=
8379BFD_HOST_U_64_BIT=
252b5132 8380
5464f5a1
NN
8381echo "$as_me:$LINENO: checking for long long" >&5
8382echo $ECHO_N "checking for long long... $ECHO_C" >&6
8383if test "${bfd_cv_has_long_long+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 8385else
5464f5a1
NN
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. */
ec317fb1 8392
5464f5a1
NN
8393int
8394main ()
8395{
ec317fb1 8396unsigned long long ll = 18446744073709551615ULL;
5464f5a1
NN
8397 ;
8398 return 0;
8399}
8400_ACEOF
8401rm -f conftest.$ac_objext
8402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8403 (eval $ac_compile) 2>conftest.er1
8404 ac_status=$?
8405 grep -v '^ *+' conftest.er1 >conftest.err
8406 rm -f conftest.er1
8407 cat conftest.err >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
2e0fbf77
JW
8410 { ac_try='test -z "$ac_c_werror_flag"
8411 || test ! -s conftest.err'
5464f5a1
NN
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest.$ac_objext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
ec317fb1
ILT
8423 bfd_cv_has_long_long=yes
8424else
5464f5a1
NN
8425 echo "$as_me: failed program was:" >&5
8426sed 's/^/| /' conftest.$ac_ext >&5
8427
8428bfd_cv_has_long_long=no
ec317fb1 8429fi
5464f5a1 8430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ec317fb1
ILT
8431fi
8432
5464f5a1
NN
8433echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8434echo "${ECHO_T}$bfd_cv_has_long_long" >&6
ec317fb1
ILT
8435if test $bfd_cv_has_long_long = yes; then
8436 BFD_HOST_LONG_LONG=1
2ba49b59
KC
8437 echo "$as_me:$LINENO: checking for long long" >&5
8438echo $ECHO_N "checking for long long... $ECHO_C" >&6
8439if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 8440 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 8441else
5464f5a1
NN
8442 cat >conftest.$ac_ext <<_ACEOF
8443/* confdefs.h. */
8444_ACEOF
8445cat confdefs.h >>conftest.$ac_ext
8446cat >>conftest.$ac_ext <<_ACEOF
8447/* end confdefs.h. */
2ba49b59 8448$ac_includes_default
5464f5a1
NN
8449int
8450main ()
8451{
2ba49b59
KC
8452if ((long long *) 0)
8453 return 0;
8454if (sizeof (long long))
8455 return 0;
5464f5a1
NN
8456 ;
8457 return 0;
8458}
8459_ACEOF
8460rm -f conftest.$ac_objext
8461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8462 (eval $ac_compile) 2>conftest.er1
8463 ac_status=$?
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
2e0fbf77
JW
8469 { ac_try='test -z "$ac_c_werror_flag"
8470 || test ! -s conftest.err'
5464f5a1
NN
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; } &&
8476 { ac_try='test -s conftest.$ac_objext'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 (eval $ac_try) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; }; then
2ba49b59 8482 ac_cv_type_long_long=yes
6726e1ea 8483else
5464f5a1
NN
8484 echo "$as_me: failed program was:" >&5
8485sed 's/^/| /' conftest.$ac_ext >&5
8486
2ba49b59 8487ac_cv_type_long_long=no
6726e1ea 8488fi
5464f5a1 8489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 8490fi
2ba49b59
KC
8491echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8492echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 8493
2ba49b59
KC
8494echo "$as_me:$LINENO: checking size of long long" >&5
8495echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8496if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 8497 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 8498else
2ba49b59
KC
8499 if test "$ac_cv_type_long_long" = yes; then
8500 # The cast to unsigned long works around a bug in the HP C Compiler
8501 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8502 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8503 # This bug is HP SR number 8606223364.
8504 if test "$cross_compiling" = yes; then
8505 # Depending upon the size, compute the lo and hi bounds.
8506cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8507/* confdefs.h. */
8508_ACEOF
8509cat confdefs.h >>conftest.$ac_ext
8510cat >>conftest.$ac_ext <<_ACEOF
8511/* end confdefs.h. */
2ba49b59
KC
8512$ac_includes_default
8513int
8514main ()
8515{
8516static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8517test_array [0] = 0
6726e1ea 8518
2ba49b59
KC
8519 ;
8520 return 0;
8521}
8522_ACEOF
8523rm -f conftest.$ac_objext
8524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8525 (eval $ac_compile) 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -z "$ac_c_werror_flag"
8533 || test ! -s conftest.err'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 (eval $ac_try) 2>&5
8536 ac_status=$?
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try='test -s conftest.$ac_objext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 (eval $ac_try) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 ac_lo=0 ac_mid=0
8546 while :; do
8547 cat >conftest.$ac_ext <<_ACEOF
8548/* confdefs.h. */
8549_ACEOF
8550cat confdefs.h >>conftest.$ac_ext
8551cat >>conftest.$ac_ext <<_ACEOF
8552/* end confdefs.h. */
8553$ac_includes_default
5464f5a1
NN
8554int
8555main ()
8556{
2ba49b59
KC
8557static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8558test_array [0] = 0
8559
5464f5a1
NN
8560 ;
8561 return 0;
8562}
8563_ACEOF
8564rm -f conftest.$ac_objext
8565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8566 (eval $ac_compile) 2>conftest.er1
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
2e0fbf77
JW
8573 { ac_try='test -z "$ac_c_werror_flag"
8574 || test ! -s conftest.err'
5464f5a1
NN
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 (eval $ac_try) 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; } &&
8580 { ac_try='test -s conftest.$ac_objext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 (eval $ac_try) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
2ba49b59 8586 ac_hi=$ac_mid; break
6726e1ea 8587else
5464f5a1
NN
8588 echo "$as_me: failed program was:" >&5
8589sed 's/^/| /' conftest.$ac_ext >&5
8590
2ba49b59
KC
8591ac_lo=`expr $ac_mid + 1`
8592 if test $ac_lo -le $ac_mid; then
8593 ac_lo= ac_hi=
8594 break
8595 fi
8596 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 8597fi
5464f5a1 8598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 8599 done
252b5132 8600else
2ba49b59
KC
8601 echo "$as_me: failed program was:" >&5
8602sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 8603
5464f5a1
NN
8604cat >conftest.$ac_ext <<_ACEOF
8605/* confdefs.h. */
8606_ACEOF
8607cat confdefs.h >>conftest.$ac_ext
8608cat >>conftest.$ac_ext <<_ACEOF
8609/* end confdefs.h. */
8610$ac_includes_default
2ba49b59
KC
8611int
8612main ()
8613{
8614static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8615test_array [0] = 0
8616
8617 ;
8618 return 0;
8619}
5464f5a1
NN
8620_ACEOF
8621rm -f conftest.$ac_objext
8622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623 (eval $ac_compile) 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
2e0fbf77
JW
8630 { ac_try='test -z "$ac_c_werror_flag"
8631 || test ! -s conftest.err'
5464f5a1
NN
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 (eval $ac_try) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 (eval $ac_try) 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; }; then
2ba49b59
KC
8643 ac_hi=-1 ac_mid=-1
8644 while :; do
8645 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8646/* confdefs.h. */
8647_ACEOF
8648cat confdefs.h >>conftest.$ac_ext
8649cat >>conftest.$ac_ext <<_ACEOF
8650/* end confdefs.h. */
2ba49b59
KC
8651$ac_includes_default
8652int
8653main ()
8654{
8655static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8656test_array [0] = 0
8657
8658 ;
8659 return 0;
8660}
5464f5a1 8661_ACEOF
2ba49b59
KC
8662rm -f conftest.$ac_objext
8663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8664 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
8665 ac_status=$?
8666 grep -v '^ *+' conftest.er1 >conftest.err
8667 rm -f conftest.er1
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
8670 (exit $ac_status); } &&
8671 { ac_try='test -z "$ac_c_werror_flag"
8672 || test ! -s conftest.err'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; } &&
8678 { ac_try='test -s conftest.$ac_objext'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680 (eval $ac_try) 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 ac_lo=$ac_mid; break
252b5132 8685else
2ba49b59
KC
8686 echo "$as_me: failed program was:" >&5
8687sed 's/^/| /' conftest.$ac_ext >&5
8688
8689ac_hi=`expr '(' $ac_mid ')' - 1`
8690 if test $ac_mid -le $ac_hi; then
8691 ac_lo= ac_hi=
8692 break
8693 fi
8694 ac_mid=`expr 2 '*' $ac_mid`
252b5132 8695fi
2ba49b59
KC
8696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8697 done
5464f5a1
NN
8698else
8699 echo "$as_me: failed program was:" >&5
8700sed 's/^/| /' conftest.$ac_ext >&5
8701
2ba49b59 8702ac_lo= ac_hi=
252b5132 8703fi
2ba49b59
KC
8704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8705fi
8706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8707# Binary search between lo and hi bounds.
8708while test "x$ac_lo" != "x$ac_hi"; do
8709 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8710 cat >conftest.$ac_ext <<_ACEOF
8711/* confdefs.h. */
8712_ACEOF
8713cat confdefs.h >>conftest.$ac_ext
8714cat >>conftest.$ac_ext <<_ACEOF
8715/* end confdefs.h. */
8716$ac_includes_default
8717int
8718main ()
8719{
8720static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8721test_array [0] = 0
5464f5a1 8722
2ba49b59
KC
8723 ;
8724 return 0;
8725}
5464f5a1
NN
8726_ACEOF
8727rm -f conftest.$ac_objext
8728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8729 (eval $ac_compile) 2>conftest.er1
8730 ac_status=$?
8731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
2e0fbf77
JW
8736 { ac_try='test -z "$ac_c_werror_flag"
8737 || test ! -s conftest.err'
5464f5a1
NN
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739 (eval $ac_try) 2>&5
8740 ac_status=$?
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest.$ac_objext'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745 (eval $ac_try) 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
2ba49b59 8749 ac_hi=$ac_mid
5464f5a1
NN
8750else
8751 echo "$as_me: failed program was:" >&5
8752sed 's/^/| /' conftest.$ac_ext >&5
8753
2ba49b59 8754ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
8755fi
8756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
8757done
8758case $ac_lo in
8759?*) ac_cv_sizeof_long_long=$ac_lo;;
8760'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8761See \`config.log' for more details." >&5
8762echo "$as_me: error: cannot compute sizeof (long long), 77
8763See \`config.log' for more details." >&2;}
8764 { (exit 1); exit 1; }; } ;;
8765esac
8766else
8767 if test "$cross_compiling" = yes; then
8768 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8769See \`config.log' for more details." >&5
8770echo "$as_me: error: cannot run test program while cross compiling
8771See \`config.log' for more details." >&2;}
8772 { (exit 1); exit 1; }; }
8773else
8774 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8775/* confdefs.h. */
8776_ACEOF
8777cat confdefs.h >>conftest.$ac_ext
8778cat >>conftest.$ac_ext <<_ACEOF
8779/* end confdefs.h. */
2ba49b59
KC
8780$ac_includes_default
8781long longval () { return (long) (sizeof (long long)); }
8782unsigned long ulongval () { return (long) (sizeof (long long)); }
8783#include <stdio.h>
8784#include <stdlib.h>
8785int
8786main ()
8787{
8788
8789 FILE *f = fopen ("conftest.val", "w");
8790 if (! f)
8791 exit (1);
8792 if (((long) (sizeof (long long))) < 0)
8793 {
8794 long i = longval ();
8795 if (i != ((long) (sizeof (long long))))
8796 exit (1);
8797 fprintf (f, "%ld\n", i);
8798 }
8799 else
8800 {
8801 unsigned long i = ulongval ();
8802 if (i != ((long) (sizeof (long long))))
8803 exit (1);
8804 fprintf (f, "%lu\n", i);
8805 }
8806 exit (ferror (f) || fclose (f) != 0);
8807
8808 ;
8809 return 0;
8810}
5464f5a1 8811_ACEOF
2ba49b59
KC
8812rm -f conftest$ac_exeext
8813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>&5
5464f5a1 8815 ac_status=$?
5464f5a1 8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
8817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 (eval $ac_try) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 8824else
2ba49b59
KC
8825 echo "$as_me: program exited with status $ac_status" >&5
8826echo "$as_me: failed program was:" >&5
5464f5a1
NN
8827sed 's/^/| /' conftest.$ac_ext >&5
8828
2ba49b59
KC
8829( exit $ac_status )
8830{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8831See \`config.log' for more details." >&5
8832echo "$as_me: error: cannot compute sizeof (long long), 77
8833See \`config.log' for more details." >&2;}
8834 { (exit 1); exit 1; }; }
252b5132 8835fi
2ba49b59
KC
8836rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8837fi
8838fi
8839rm -f conftest.val
6be7c12c 8840else
2ba49b59 8841 ac_cv_sizeof_long_long=0
5464f5a1 8842fi
5464f5a1 8843fi
2ba49b59
KC
8844echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8845echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8846cat >>confdefs.h <<_ACEOF
8847#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
8848_ACEOF
8849
5464f5a1 8850
2ba49b59 8851fi
252b5132 8852
2ba49b59
KC
8853echo "$as_me:$LINENO: checking for long" >&5
8854echo $ECHO_N "checking for long... $ECHO_C" >&6
8855if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857else
8858 cat >conftest.$ac_ext <<_ACEOF
8859/* confdefs.h. */
8860_ACEOF
8861cat confdefs.h >>conftest.$ac_ext
8862cat >>conftest.$ac_ext <<_ACEOF
8863/* end confdefs.h. */
2ba49b59 8864$ac_includes_default
5464f5a1
NN
8865int
8866main ()
8867{
2ba49b59
KC
8868if ((long *) 0)
8869 return 0;
8870if (sizeof (long))
8871 return 0;
5464f5a1
NN
8872 ;
8873 return 0;
8874}
8875_ACEOF
8876rm -f conftest.$ac_objext
8877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>conftest.er1
8879 ac_status=$?
8880 grep -v '^ *+' conftest.er1 >conftest.err
8881 rm -f conftest.er1
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
2e0fbf77
JW
8885 { ac_try='test -z "$ac_c_werror_flag"
8886 || test ! -s conftest.err'
5464f5a1
NN
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888 (eval $ac_try) 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
2ba49b59 8898 ac_cv_type_long=yes
252b5132 8899else
5464f5a1
NN
8900 echo "$as_me: failed program was:" >&5
8901sed 's/^/| /' conftest.$ac_ext >&5
8902
2ba49b59 8903ac_cv_type_long=no
252b5132 8904fi
5464f5a1 8905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8906fi
2ba49b59
KC
8907echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8908echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 8909
2ba49b59
KC
8910echo "$as_me:$LINENO: checking size of long" >&5
8911echo $ECHO_N "checking size of long... $ECHO_C" >&6
8912if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
2ba49b59
KC
8915 if test "$ac_cv_type_long" = yes; then
8916 # The cast to unsigned long works around a bug in the HP C Compiler
8917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8919 # This bug is HP SR number 8606223364.
8920 if test "$cross_compiling" = yes; then
8921 # Depending upon the size, compute the lo and hi bounds.
8922cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8923/* confdefs.h. */
8924_ACEOF
8925cat confdefs.h >>conftest.$ac_ext
8926cat >>conftest.$ac_ext <<_ACEOF
8927/* end confdefs.h. */
2ba49b59 8928$ac_includes_default
5464f5a1
NN
8929int
8930main ()
8931{
2ba49b59
KC
8932static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8933test_array [0] = 0
8934
5464f5a1
NN
8935 ;
8936 return 0;
8937}
8938_ACEOF
8939rm -f conftest.$ac_objext
8940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941 (eval $ac_compile) 2>conftest.er1
8942 ac_status=$?
8943 grep -v '^ *+' conftest.er1 >conftest.err
8944 rm -f conftest.er1
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } &&
2e0fbf77
JW
8948 { ac_try='test -z "$ac_c_werror_flag"
8949 || test ! -s conftest.err'
5464f5a1
NN
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 (eval $ac_try) 2>&5
8952 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; } &&
8955 { ac_try='test -s conftest.$ac_objext'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 (eval $ac_try) 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
2ba49b59
KC
8961 ac_lo=0 ac_mid=0
8962 while :; do
8963 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8964/* confdefs.h. */
8965_ACEOF
8966cat confdefs.h >>conftest.$ac_ext
8967cat >>conftest.$ac_ext <<_ACEOF
8968/* end confdefs.h. */
2ba49b59 8969$ac_includes_default
5464f5a1
NN
8970int
8971main ()
8972{
2ba49b59
KC
8973static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8974test_array [0] = 0
8975
5464f5a1
NN
8976 ;
8977 return 0;
8978}
8979_ACEOF
2ba49b59
KC
8980rm -f conftest.$ac_objext
8981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
2e0fbf77
JW
8989 { ac_try='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
5464f5a1
NN
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 (eval $ac_try) 2>&5
8993 ac_status=$?
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
2ba49b59 8996 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 (eval $ac_try) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
2ba49b59 9002 ac_hi=$ac_mid; break
5464f5a1
NN
9003else
9004 echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
2ba49b59
KC
9007ac_lo=`expr $ac_mid + 1`
9008 if test $ac_lo -le $ac_mid; then
9009 ac_lo= ac_hi=
9010 break
9011 fi
9012 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 9013fi
2ba49b59
KC
9014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9015 done
9016else
9017 echo "$as_me: failed program was:" >&5
9018sed 's/^/| /' conftest.$ac_ext >&5
9019
9020cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
9021/* confdefs.h. */
9022_ACEOF
9023cat confdefs.h >>conftest.$ac_ext
9024cat >>conftest.$ac_ext <<_ACEOF
9025/* end confdefs.h. */
2ba49b59 9026$ac_includes_default
5464f5a1
NN
9027int
9028main ()
9029{
2ba49b59
KC
9030static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9031test_array [0] = 0
9032
5464f5a1
NN
9033 ;
9034 return 0;
9035}
9036_ACEOF
2ba49b59
KC
9037rm -f conftest.$ac_objext
9038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9039 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
2e0fbf77
JW
9046 { ac_try='test -z "$ac_c_werror_flag"
9047 || test ! -s conftest.err'
5464f5a1
NN
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 (eval $ac_try) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
2ba49b59 9053 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 (eval $ac_try) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
2ba49b59
KC
9059 ac_hi=-1 ac_mid=-1
9060 while :; do
9061 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
9062/* confdefs.h. */
9063_ACEOF
9064cat confdefs.h >>conftest.$ac_ext
9065cat >>conftest.$ac_ext <<_ACEOF
9066/* end confdefs.h. */
2ba49b59 9067$ac_includes_default
5464f5a1
NN
9068int
9069main ()
9070{
2ba49b59
KC
9071static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9072test_array [0] = 0
9073
5464f5a1
NN
9074 ;
9075 return 0;
9076}
9077_ACEOF
2ba49b59
KC
9078rm -f conftest.$ac_objext
9079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
9081 ac_status=$?
9082 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -f conftest.er1
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } &&
2e0fbf77
JW
9087 { ac_try='test -z "$ac_c_werror_flag"
9088 || test ! -s conftest.err'
5464f5a1
NN
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; } &&
2ba49b59 9094 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 (eval $ac_try) 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; }; then
2ba49b59 9100 ac_lo=$ac_mid; break
5464f5a1
NN
9101else
9102 echo "$as_me: failed program was:" >&5
9103sed 's/^/| /' conftest.$ac_ext >&5
9104
2ba49b59
KC
9105ac_hi=`expr '(' $ac_mid ')' - 1`
9106 if test $ac_mid -le $ac_hi; then
9107 ac_lo= ac_hi=
9108 break
9109 fi
9110 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 9111fi
2ba49b59
KC
9112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9113 done
9114else
9115 echo "$as_me: failed program was:" >&5
9116sed 's/^/| /' conftest.$ac_ext >&5
9117
9118ac_lo= ac_hi=
9119fi
9120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9121fi
9122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9123# Binary search between lo and hi bounds.
9124while test "x$ac_lo" != "x$ac_hi"; do
9125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9126 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
9127/* confdefs.h. */
9128_ACEOF
9129cat confdefs.h >>conftest.$ac_ext
9130cat >>conftest.$ac_ext <<_ACEOF
9131/* end confdefs.h. */
2ba49b59 9132$ac_includes_default
5464f5a1
NN
9133int
9134main ()
9135{
2ba49b59
KC
9136static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9137test_array [0] = 0
9138
5464f5a1
NN
9139 ;
9140 return 0;
9141}
9142_ACEOF
2ba49b59
KC
9143rm -f conftest.$ac_objext
9144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9145 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
9146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
2e0fbf77
JW
9152 { ac_try='test -z "$ac_c_werror_flag"
9153 || test ! -s conftest.err'
5464f5a1
NN
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 (eval $ac_try) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; } &&
2ba49b59 9159 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
2ba49b59 9165 ac_hi=$ac_mid
5464f5a1
NN
9166else
9167 echo "$as_me: failed program was:" >&5
9168sed 's/^/| /' conftest.$ac_ext >&5
9169
2ba49b59 9170ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 9171fi
2ba49b59
KC
9172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9173done
9174case $ac_lo in
9175?*) ac_cv_sizeof_long=$ac_lo;;
9176'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9177See \`config.log' for more details." >&5
9178echo "$as_me: error: cannot compute sizeof (long), 77
9179See \`config.log' for more details." >&2;}
9180 { (exit 1); exit 1; }; } ;;
9181esac
9182else
9183 if test "$cross_compiling" = yes; then
9184 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9185See \`config.log' for more details." >&5
9186echo "$as_me: error: cannot run test program while cross compiling
9187See \`config.log' for more details." >&2;}
9188 { (exit 1); exit 1; }; }
2e0fbf77
JW
9189else
9190 cat >conftest.$ac_ext <<_ACEOF
9191/* confdefs.h. */
9192_ACEOF
9193cat confdefs.h >>conftest.$ac_ext
9194cat >>conftest.$ac_ext <<_ACEOF
9195/* end confdefs.h. */
2ba49b59
KC
9196$ac_includes_default
9197long longval () { return (long) (sizeof (long)); }
9198unsigned long ulongval () { return (long) (sizeof (long)); }
9199#include <stdio.h>
9200#include <stdlib.h>
2e0fbf77
JW
9201int
9202main ()
9203{
9204
2ba49b59
KC
9205 FILE *f = fopen ("conftest.val", "w");
9206 if (! f)
9207 exit (1);
9208 if (((long) (sizeof (long))) < 0)
9209 {
9210 long i = longval ();
9211 if (i != ((long) (sizeof (long))))
9212 exit (1);
9213 fprintf (f, "%ld\n", i);
9214 }
9215 else
9216 {
9217 unsigned long i = ulongval ();
9218 if (i != ((long) (sizeof (long))))
9219 exit (1);
9220 fprintf (f, "%lu\n", i);
9221 }
9222 exit (ferror (f) || fclose (f) != 0);
9223
2e0fbf77
JW
9224 ;
9225 return 0;
9226}
9227_ACEOF
2ba49b59
KC
9228rm -f conftest$ac_exeext
9229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230 (eval $ac_link) 2>&5
2e0fbf77
JW
9231 ac_status=$?
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 9233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 (eval $ac_try) 2>&5
9236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
2ba49b59 9239 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 9240else
2ba49b59
KC
9241 echo "$as_me: program exited with status $ac_status" >&5
9242echo "$as_me: failed program was:" >&5
2e0fbf77
JW
9243sed 's/^/| /' conftest.$ac_ext >&5
9244
2ba49b59
KC
9245( exit $ac_status )
9246{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9247See \`config.log' for more details." >&5
9248echo "$as_me: error: cannot compute sizeof (long), 77
9249See \`config.log' for more details." >&2;}
9250 { (exit 1); exit 1; }; }
2e0fbf77 9251fi
2ba49b59 9252rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 9253fi
2ba49b59
KC
9254fi
9255rm -f conftest.val
9256else
9257 ac_cv_sizeof_long=0
9258fi
9259fi
9260echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9261echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9262cat >>confdefs.h <<_ACEOF
9263#define SIZEOF_LONG $ac_cv_sizeof_long
9264_ACEOF
9265
9266
9267if test "x${ac_cv_sizeof_long}" = "x8"; then
9268 host64=true
9269 BFD_HOST_64BIT_LONG=1
9270 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9271 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9272elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9273 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9274 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9275fi
9276
9277if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9278 BFD_HOST_64_BIT_DEFINED=1
9279 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9280 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9281fi
9282
9283
9284
9285
9286
9287
9288
9289# Put a plausible default for CC_FOR_BUILD in Makefile.
9290if test -z "$CC_FOR_BUILD"; then
9291 if test "x$cross_compiling" = "xno"; then
9292 CC_FOR_BUILD='$(CC)'
9293 else
9294 CC_FOR_BUILD=gcc
9295 fi
9296fi
9297
9298# Also set EXEEXT_FOR_BUILD.
9299if test "x$cross_compiling" = "xno"; then
9300 EXEEXT_FOR_BUILD='$(EXEEXT)'
9301else
9302 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9303echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9304if test "${bfd_cv_build_exeext+set}" = set; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306else
9307 rm -f conftest*
9308 echo 'int main () { return 0; }' > conftest.c
9309 bfd_cv_build_exeext=
9310 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9311 for file in conftest.*; do
9312 case $file in
9313 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9314 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9315 esac
9316 done
9317 rm -f conftest*
9318 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9319fi
9320echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9321echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9322 EXEEXT_FOR_BUILD=""
9323 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9324fi
9325
9326
9327
9328
9329
9330
9331
9332
9333for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9334do
9335as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9336if eval "test \"\${$as_ac_Header+set}\" = set"; then
9337 echo "$as_me:$LINENO: checking for $ac_header" >&5
9338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9339if eval "test \"\${$as_ac_Header+set}\" = set"; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341fi
9342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9344else
9345 # Is the header compilable?
9346echo "$as_me:$LINENO: checking $ac_header usability" >&5
9347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9348cat >conftest.$ac_ext <<_ACEOF
9349/* confdefs.h. */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
9353/* end confdefs.h. */
9354$ac_includes_default
9355#include <$ac_header>
9356_ACEOF
9357rm -f conftest.$ac_objext
9358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9359 (eval $ac_compile) 2>conftest.er1
9360 ac_status=$?
9361 grep -v '^ *+' conftest.er1 >conftest.err
9362 rm -f conftest.er1
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } &&
9366 { ac_try='test -z "$ac_c_werror_flag"
9367 || test ! -s conftest.err'
9368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 (eval $ac_try) 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; } &&
9373 { ac_try='test -s conftest.$ac_objext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 (eval $ac_try) 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 ac_header_compiler=yes
9380else
9381 echo "$as_me: failed program was:" >&5
9382sed 's/^/| /' conftest.$ac_ext >&5
9383
9384ac_header_compiler=no
9385fi
9386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9387echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9388echo "${ECHO_T}$ac_header_compiler" >&6
9389
9390# Is the header present?
9391echo "$as_me:$LINENO: checking $ac_header presence" >&5
9392echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9393cat >conftest.$ac_ext <<_ACEOF
9394/* confdefs.h. */
9395_ACEOF
9396cat confdefs.h >>conftest.$ac_ext
9397cat >>conftest.$ac_ext <<_ACEOF
9398/* end confdefs.h. */
9399#include <$ac_header>
9400_ACEOF
9401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9403 ac_status=$?
9404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } >/dev/null; then
9409 if test -s conftest.err; then
9410 ac_cpp_err=$ac_c_preproc_warn_flag
9411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9412 else
9413 ac_cpp_err=
9414 fi
9415else
9416 ac_cpp_err=yes
9417fi
9418if test -z "$ac_cpp_err"; then
9419 ac_header_preproc=yes
9420else
9421 echo "$as_me: failed program was:" >&5
9422sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 ac_header_preproc=no
9425fi
9426rm -f conftest.err conftest.$ac_ext
9427echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9428echo "${ECHO_T}$ac_header_preproc" >&6
9429
9430# So? What about this header?
9431case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9432 yes:no: )
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9434echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9436echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9437 ac_header_preproc=yes
9438 ;;
9439 no:yes:* )
9440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9441echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9443echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9445echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9447echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9451echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9452 (
9453 cat <<\_ASBOX
9454## ------------------------------------------ ##
9455## Report this to the AC_PACKAGE_NAME lists. ##
9456## ------------------------------------------ ##
9457_ASBOX
9458 ) |
9459 sed "s/^/$as_me: WARNING: /" >&2
9460 ;;
9461esac
9462echo "$as_me:$LINENO: checking for $ac_header" >&5
9463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9464if eval "test \"\${$as_ac_Header+set}\" = set"; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9466else
9467 eval "$as_ac_Header=\$ac_header_preproc"
9468fi
9469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9471
9472fi
9473if test `eval echo '${'$as_ac_Header'}'` = yes; then
9474 cat >>confdefs.h <<_ACEOF
9475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9476_ACEOF
9477
9478fi
9479
9480done
9481
9482
9483
9484
9485for ac_header in fcntl.h sys/file.h sys/time.h
9486do
9487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9488if eval "test \"\${$as_ac_Header+set}\" = set"; then
9489 echo "$as_me:$LINENO: checking for $ac_header" >&5
9490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9491if eval "test \"\${$as_ac_Header+set}\" = set"; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493fi
9494echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9495echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9496else
9497 # Is the header compilable?
9498echo "$as_me:$LINENO: checking $ac_header usability" >&5
9499echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9500cat >conftest.$ac_ext <<_ACEOF
9501/* confdefs.h. */
9502_ACEOF
9503cat confdefs.h >>conftest.$ac_ext
9504cat >>conftest.$ac_ext <<_ACEOF
9505/* end confdefs.h. */
9506$ac_includes_default
9507#include <$ac_header>
9508_ACEOF
9509rm -f conftest.$ac_objext
9510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9511 (eval $ac_compile) 2>conftest.er1
9512 ac_status=$?
9513 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } &&
9518 { ac_try='test -z "$ac_c_werror_flag"
9519 || test ! -s conftest.err'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 (eval $ac_try) 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } &&
9525 { ac_try='test -s conftest.$ac_objext'
9526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9527 (eval $ac_try) 2>&5
9528 ac_status=$?
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 ac_header_compiler=yes
9532else
9533 echo "$as_me: failed program was:" >&5
9534sed 's/^/| /' conftest.$ac_ext >&5
9535
9536ac_header_compiler=no
9537fi
9538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9540echo "${ECHO_T}$ac_header_compiler" >&6
9541
9542# Is the header present?
9543echo "$as_me:$LINENO: checking $ac_header presence" >&5
9544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9545cat >conftest.$ac_ext <<_ACEOF
9546/* confdefs.h. */
9547_ACEOF
9548cat confdefs.h >>conftest.$ac_ext
9549cat >>conftest.$ac_ext <<_ACEOF
9550/* end confdefs.h. */
9551#include <$ac_header>
9552_ACEOF
9553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9555 ac_status=$?
9556 grep -v '^ *+' conftest.er1 >conftest.err
9557 rm -f conftest.er1
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } >/dev/null; then
9561 if test -s conftest.err; then
9562 ac_cpp_err=$ac_c_preproc_warn_flag
9563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9564 else
9565 ac_cpp_err=
9566 fi
9567else
9568 ac_cpp_err=yes
9569fi
9570if test -z "$ac_cpp_err"; then
9571 ac_header_preproc=yes
9572else
9573 echo "$as_me: failed program was:" >&5
9574sed 's/^/| /' conftest.$ac_ext >&5
9575
9576 ac_header_preproc=no
9577fi
9578rm -f conftest.err conftest.$ac_ext
9579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9580echo "${ECHO_T}$ac_header_preproc" >&6
9581
9582# So? What about this header?
9583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9584 yes:no: )
9585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9589 ac_header_preproc=yes
9590 ;;
9591 no:yes:* )
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9604 (
9605 cat <<\_ASBOX
9606## ------------------------------------------ ##
9607## Report this to the AC_PACKAGE_NAME lists. ##
9608## ------------------------------------------ ##
9609_ASBOX
9610 ) |
9611 sed "s/^/$as_me: WARNING: /" >&2
9612 ;;
9613esac
9614echo "$as_me:$LINENO: checking for $ac_header" >&5
9615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9616if eval "test \"\${$as_ac_Header+set}\" = set"; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618else
9619 eval "$as_ac_Header=\$ac_header_preproc"
9620fi
9621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9623
9624fi
9625if test `eval echo '${'$as_ac_Header'}'` = yes; then
9626 cat >>confdefs.h <<_ACEOF
9627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9628_ACEOF
9629
9630fi
9631
9632done
9633
9634echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9635echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9636if test "${ac_cv_header_time+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638else
9639 cat >conftest.$ac_ext <<_ACEOF
9640/* confdefs.h. */
9641_ACEOF
9642cat confdefs.h >>conftest.$ac_ext
9643cat >>conftest.$ac_ext <<_ACEOF
9644/* end confdefs.h. */
9645#include <sys/types.h>
9646#include <sys/time.h>
9647#include <time.h>
9648
9649int
9650main ()
9651{
9652if ((struct tm *) 0)
9653return 0;
9654 ;
9655 return 0;
9656}
9657_ACEOF
9658rm -f conftest.$ac_objext
9659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9660 (eval $ac_compile) 2>conftest.er1
9661 ac_status=$?
9662 grep -v '^ *+' conftest.er1 >conftest.err
9663 rm -f conftest.er1
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try='test -z "$ac_c_werror_flag"
9668 || test ! -s conftest.err'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; } &&
9674 { ac_try='test -s conftest.$ac_objext'
9675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676 (eval $ac_try) 2>&5
9677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 ac_cv_header_time=yes
9681else
9682 echo "$as_me: failed program was:" >&5
9683sed 's/^/| /' conftest.$ac_ext >&5
9684
9685ac_cv_header_time=no
9686fi
9687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9688fi
9689echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9690echo "${ECHO_T}$ac_cv_header_time" >&6
9691if test $ac_cv_header_time = yes; then
9692
9693cat >>confdefs.h <<\_ACEOF
9694#define TIME_WITH_SYS_TIME 1
9695_ACEOF
9696
9697fi
9698
9699
9700
9701
9702
9703
9704ac_header_dirent=no
9705for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9706 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9707echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9708echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9709if eval "test \"\${$as_ac_Header+set}\" = set"; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9711else
9712 cat >conftest.$ac_ext <<_ACEOF
9713/* confdefs.h. */
9714_ACEOF
9715cat confdefs.h >>conftest.$ac_ext
9716cat >>conftest.$ac_ext <<_ACEOF
9717/* end confdefs.h. */
9718#include <sys/types.h>
9719#include <$ac_hdr>
9720
9721int
9722main ()
9723{
9724if ((DIR *) 0)
9725return 0;
9726 ;
9727 return 0;
9728}
9729_ACEOF
9730rm -f conftest.$ac_objext
9731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9732 (eval $ac_compile) 2>conftest.er1
9733 ac_status=$?
9734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -z "$ac_c_werror_flag"
9740 || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest.$ac_objext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 (eval $ac_try) 2>&5
9749 ac_status=$?
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 eval "$as_ac_Header=yes"
9753else
9754 echo "$as_me: failed program was:" >&5
9755sed 's/^/| /' conftest.$ac_ext >&5
9756
9757eval "$as_ac_Header=no"
9758fi
9759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9760fi
9761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9763if test `eval echo '${'$as_ac_Header'}'` = yes; then
9764 cat >>confdefs.h <<_ACEOF
9765#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9766_ACEOF
9767
9768ac_header_dirent=$ac_hdr; break
9769fi
9770
9771done
9772# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9773if test $ac_header_dirent = dirent.h; then
9774 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9775echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9776if test "${ac_cv_search_opendir+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778else
9779 ac_func_search_save_LIBS=$LIBS
9780ac_cv_search_opendir=no
9781cat >conftest.$ac_ext <<_ACEOF
9782/* confdefs.h. */
9783_ACEOF
9784cat confdefs.h >>conftest.$ac_ext
9785cat >>conftest.$ac_ext <<_ACEOF
9786/* end confdefs.h. */
9787
9788/* Override any gcc2 internal prototype to avoid an error. */
9789#ifdef __cplusplus
9790extern "C"
9791#endif
9792/* We use char because int might match the return type of a gcc2
9793 builtin and then its argument prototype would still apply. */
9794char opendir ();
9795int
9796main ()
9797{
9798opendir ();
9799 ;
9800 return 0;
9801}
9802_ACEOF
9803rm -f conftest.$ac_objext conftest$ac_exeext
9804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805 (eval $ac_link) 2>conftest.er1
9806 ac_status=$?
9807 grep -v '^ *+' conftest.er1 >conftest.err
9808 rm -f conftest.er1
9809 cat conftest.err >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } &&
9812 { ac_try='test -z "$ac_c_werror_flag"
9813 || test ! -s conftest.err'
9814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 (eval $ac_try) 2>&5
9816 ac_status=$?
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); }; } &&
9819 { ac_try='test -s conftest$ac_exeext'
9820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 (eval $ac_try) 2>&5
9822 ac_status=$?
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; }; then
9825 ac_cv_search_opendir="none required"
9826else
9827 echo "$as_me: failed program was:" >&5
9828sed 's/^/| /' conftest.$ac_ext >&5
9829
9830fi
9831rm -f conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833if test "$ac_cv_search_opendir" = no; then
9834 for ac_lib in dir; do
9835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9836 cat >conftest.$ac_ext <<_ACEOF
9837/* confdefs.h. */
9838_ACEOF
9839cat confdefs.h >>conftest.$ac_ext
9840cat >>conftest.$ac_ext <<_ACEOF
9841/* end confdefs.h. */
9842
9843/* Override any gcc2 internal prototype to avoid an error. */
9844#ifdef __cplusplus
9845extern "C"
9846#endif
9847/* We use char because int might match the return type of a gcc2
9848 builtin and then its argument prototype would still apply. */
9849char opendir ();
9850int
9851main ()
9852{
9853opendir ();
9854 ;
9855 return 0;
9856}
9857_ACEOF
9858rm -f conftest.$ac_objext conftest$ac_exeext
9859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9860 (eval $ac_link) 2>conftest.er1
9861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag"
9868 || test ! -s conftest.err'
9869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 (eval $ac_try) 2>&5
9871 ac_status=$?
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); }; } &&
9874 { ac_try='test -s conftest$ac_exeext'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 (eval $ac_try) 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; }; then
9880 ac_cv_search_opendir="-l$ac_lib"
9881break
9882else
9883 echo "$as_me: failed program was:" >&5
9884sed 's/^/| /' conftest.$ac_ext >&5
9885
9886fi
9887rm -f conftest.err conftest.$ac_objext \
9888 conftest$ac_exeext conftest.$ac_ext
9889 done
9890fi
9891LIBS=$ac_func_search_save_LIBS
9892fi
9893echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9894echo "${ECHO_T}$ac_cv_search_opendir" >&6
9895if test "$ac_cv_search_opendir" != no; then
9896 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9897
9898fi
9899
9900else
9901 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9902echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9903if test "${ac_cv_search_opendir+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905else
9906 ac_func_search_save_LIBS=$LIBS
9907ac_cv_search_opendir=no
9908cat >conftest.$ac_ext <<_ACEOF
9909/* confdefs.h. */
9910_ACEOF
9911cat confdefs.h >>conftest.$ac_ext
9912cat >>conftest.$ac_ext <<_ACEOF
9913/* end confdefs.h. */
9914
9915/* Override any gcc2 internal prototype to avoid an error. */
9916#ifdef __cplusplus
9917extern "C"
9918#endif
9919/* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9921char opendir ();
9922int
9923main ()
9924{
9925opendir ();
9926 ;
9927 return 0;
9928}
9929_ACEOF
9930rm -f conftest.$ac_objext conftest$ac_exeext
9931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932 (eval $ac_link) 2>conftest.er1
9933 ac_status=$?
9934 grep -v '^ *+' conftest.er1 >conftest.err
9935 rm -f conftest.er1
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -z "$ac_c_werror_flag"
9940 || test ! -s conftest.err'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 (eval $ac_try) 2>&5
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; } &&
9946 { ac_try='test -s conftest$ac_exeext'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 (eval $ac_try) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 ac_cv_search_opendir="none required"
9953else
9954 echo "$as_me: failed program was:" >&5
9955sed 's/^/| /' conftest.$ac_ext >&5
9956
9957fi
9958rm -f conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960if test "$ac_cv_search_opendir" = no; then
9961 for ac_lib in x; do
9962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9963 cat >conftest.$ac_ext <<_ACEOF
9964/* confdefs.h. */
9965_ACEOF
9966cat confdefs.h >>conftest.$ac_ext
9967cat >>conftest.$ac_ext <<_ACEOF
9968/* end confdefs.h. */
9969
9970/* Override any gcc2 internal prototype to avoid an error. */
9971#ifdef __cplusplus
9972extern "C"
9973#endif
9974/* We use char because int might match the return type of a gcc2
9975 builtin and then its argument prototype would still apply. */
9976char opendir ();
9977int
9978main ()
9979{
9980opendir ();
9981 ;
9982 return 0;
9983}
9984_ACEOF
9985rm -f conftest.$ac_objext conftest$ac_exeext
9986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9987 (eval $ac_link) 2>conftest.er1
9988 ac_status=$?
9989 grep -v '^ *+' conftest.er1 >conftest.err
9990 rm -f conftest.er1
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } &&
9994 { ac_try='test -z "$ac_c_werror_flag"
9995 || test ! -s conftest.err'
9996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997 (eval $ac_try) 2>&5
9998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; } &&
10001 { ac_try='test -s conftest$ac_exeext'
10002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10003 (eval $ac_try) 2>&5
10004 ac_status=$?
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); }; }; then
10007 ac_cv_search_opendir="-l$ac_lib"
10008break
10009else
10010 echo "$as_me: failed program was:" >&5
10011sed 's/^/| /' conftest.$ac_ext >&5
10012
10013fi
10014rm -f conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 done
10017fi
10018LIBS=$ac_func_search_save_LIBS
10019fi
10020echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10021echo "${ECHO_T}$ac_cv_search_opendir" >&6
10022if test "$ac_cv_search_opendir" != no; then
10023 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10024
10025fi
10026
10027fi
10028
10029echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
10030echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
10031if test "${gcc_cv_header_string+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033else
10034 cat >conftest.$ac_ext <<_ACEOF
10035/* confdefs.h. */
10036_ACEOF
10037cat confdefs.h >>conftest.$ac_ext
10038cat >>conftest.$ac_ext <<_ACEOF
10039/* end confdefs.h. */
10040#include <string.h>
10041#include <strings.h>
10042int
10043main ()
10044{
10045
10046 ;
10047 return 0;
10048}
10049_ACEOF
10050rm -f conftest.$ac_objext
10051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10052 (eval $ac_compile) 2>conftest.er1
10053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -z "$ac_c_werror_flag"
10060 || test ! -s conftest.err'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest.$ac_objext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 gcc_cv_header_string=yes
10073else
10074 echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077gcc_cv_header_string=no
10078fi
10079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10080fi
10081echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10082echo "${ECHO_T}$gcc_cv_header_string" >&6
10083if test $gcc_cv_header_string = yes; then
10084
10085cat >>confdefs.h <<\_ACEOF
10086#define STRING_WITH_STRINGS 1
10087_ACEOF
10088
2e0fbf77
JW
10089fi
10090
5464f5a1
NN
10091
10092
10093
10094
10095
10096
10097
633fd09f 10098for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 10099do
5464f5a1
NN
10100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10101echo "$as_me:$LINENO: checking for $ac_func" >&5
10102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10103if eval "test \"\${$as_ac_var+set}\" = set"; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10105else
10106 cat >conftest.$ac_ext <<_ACEOF
10107/* confdefs.h. */
10108_ACEOF
10109cat confdefs.h >>conftest.$ac_ext
10110cat >>conftest.$ac_ext <<_ACEOF
10111/* end confdefs.h. */
10112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10114#define $ac_func innocuous_$ac_func
10115
252b5132 10116/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
10117 which can conflict with char $ac_func (); below.
10118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10119 <limits.h> exists even on freestanding compilers. */
10120
10121#ifdef __STDC__
10122# include <limits.h>
10123#else
10124# include <assert.h>
10125#endif
6be7c12c 10126
5464f5a1 10127#undef $ac_func
252b5132 10128
5464f5a1
NN
10129/* Override any gcc2 internal prototype to avoid an error. */
10130#ifdef __cplusplus
10131extern "C"
10132{
10133#endif
10134/* We use char because int might match the return type of a gcc2
10135 builtin and then its argument prototype would still apply. */
10136char $ac_func ();
252b5132
RH
10137/* The GNU C library defines this for functions which it implements
10138 to always fail with ENOSYS. Some functions are actually named
10139 something starting with __ and the normal name is an alias. */
10140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10141choke me
10142#else
5464f5a1
NN
10143char (*f) () = $ac_func;
10144#endif
10145#ifdef __cplusplus
10146}
252b5132
RH
10147#endif
10148
5464f5a1
NN
10149int
10150main ()
10151{
10152return f != $ac_func;
10153 ;
10154 return 0;
10155}
10156_ACEOF
10157rm -f conftest.$ac_objext conftest$ac_exeext
10158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10159 (eval $ac_link) 2>conftest.er1
10160 ac_status=$?
10161 grep -v '^ *+' conftest.er1 >conftest.err
10162 rm -f conftest.er1
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
2e0fbf77
JW
10166 { ac_try='test -z "$ac_c_werror_flag"
10167 || test ! -s conftest.err'
5464f5a1
NN
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; } &&
10173 { ac_try='test -s conftest$ac_exeext'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 eval "$as_ac_var=yes"
10180else
10181 echo "$as_me: failed program was:" >&5
10182sed 's/^/| /' conftest.$ac_ext >&5
10183
10184eval "$as_ac_var=no"
10185fi
10186rm -f conftest.err conftest.$ac_objext \
10187 conftest$ac_exeext conftest.$ac_ext
10188fi
10189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10190echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10191if test `eval echo '${'$as_ac_var'}'` = yes; then
10192 cat >>confdefs.h <<_ACEOF
10193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10194_ACEOF
252b5132 10195
252b5132
RH
10196fi
10197done
10198
5464f5a1 10199
49c97a80
ILT
10200for ac_func in strtoull
10201do
5464f5a1
NN
10202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10203echo "$as_me:$LINENO: checking for $ac_func" >&5
10204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10205if eval "test \"\${$as_ac_var+set}\" = set"; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10207else
10208 cat >conftest.$ac_ext <<_ACEOF
10209/* confdefs.h. */
10210_ACEOF
10211cat confdefs.h >>conftest.$ac_ext
10212cat >>conftest.$ac_ext <<_ACEOF
10213/* end confdefs.h. */
10214/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10216#define $ac_func innocuous_$ac_func
10217
49c97a80 10218/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
10219 which can conflict with char $ac_func (); below.
10220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10221 <limits.h> exists even on freestanding compilers. */
10222
10223#ifdef __STDC__
10224# include <limits.h>
10225#else
10226# include <assert.h>
10227#endif
49c97a80 10228
5464f5a1 10229#undef $ac_func
49c97a80 10230
5464f5a1
NN
10231/* Override any gcc2 internal prototype to avoid an error. */
10232#ifdef __cplusplus
10233extern "C"
10234{
10235#endif
10236/* We use char because int might match the return type of a gcc2
10237 builtin and then its argument prototype would still apply. */
10238char $ac_func ();
49c97a80
ILT
10239/* The GNU C library defines this for functions which it implements
10240 to always fail with ENOSYS. Some functions are actually named
10241 something starting with __ and the normal name is an alias. */
10242#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10243choke me
10244#else
5464f5a1
NN
10245char (*f) () = $ac_func;
10246#endif
10247#ifdef __cplusplus
10248}
49c97a80
ILT
10249#endif
10250
5464f5a1
NN
10251int
10252main ()
10253{
10254return f != $ac_func;
10255 ;
10256 return 0;
10257}
10258_ACEOF
10259rm -f conftest.$ac_objext conftest$ac_exeext
10260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261 (eval $ac_link) 2>conftest.er1
10262 ac_status=$?
10263 grep -v '^ *+' conftest.er1 >conftest.err
10264 rm -f conftest.er1
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } &&
2e0fbf77
JW
10268 { ac_try='test -z "$ac_c_werror_flag"
10269 || test ! -s conftest.err'
5464f5a1
NN
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10272 ac_status=$?
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; } &&
10275 { ac_try='test -s conftest$ac_exeext'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 eval "$as_ac_var=yes"
10282else
10283 echo "$as_me: failed program was:" >&5
10284sed 's/^/| /' conftest.$ac_ext >&5
10285
10286eval "$as_ac_var=no"
10287fi
10288rm -f conftest.err conftest.$ac_objext \
10289 conftest$ac_exeext conftest.$ac_ext
10290fi
10291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10292echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10293if test `eval echo '${'$as_ac_var'}'` = yes; then
10294 cat >>confdefs.h <<_ACEOF
10295#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10296_ACEOF
49c97a80 10297
49c97a80
ILT
10298fi
10299done
10300
6be7c12c 10301
2e9ebff5
JG
10302echo "$as_me:$LINENO: checking whether basename is declared" >&5
10303echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10304if test "${ac_cv_have_decl_basename+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307 cat >conftest.$ac_ext <<_ACEOF
10308/* confdefs.h. */
10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h. */
ec7b76fe 10313$ac_includes_default
2e9ebff5
JG
10314int
10315main ()
10316{
10317#ifndef basename
10318 char *p = (char *) basename;
10319#endif
10320
10321 ;
10322 return 0;
10323}
10324_ACEOF
10325rm -f conftest.$ac_objext
10326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10327 (eval $ac_compile) 2>conftest.er1
10328 ac_status=$?
10329 grep -v '^ *+' conftest.er1 >conftest.err
10330 rm -f conftest.er1
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
2e0fbf77
JW
10334 { ac_try='test -z "$ac_c_werror_flag"
10335 || test ! -s conftest.err'
2e9ebff5
JG
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; } &&
10341 { ac_try='test -s conftest.$ac_objext'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; }; then
10347 ac_cv_have_decl_basename=yes
10348else
10349 echo "$as_me: failed program was:" >&5
10350sed 's/^/| /' conftest.$ac_ext >&5
10351
10352ac_cv_have_decl_basename=no
10353fi
10354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10355fi
10356echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10357echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10358if test $ac_cv_have_decl_basename = yes; then
10359
10360cat >>confdefs.h <<_ACEOF
10361#define HAVE_DECL_BASENAME 1
10362_ACEOF
10363
10364
10365else
10366 cat >>confdefs.h <<_ACEOF
10367#define HAVE_DECL_BASENAME 0
10368_ACEOF
10369
10370
10371fi
10372
10373
ec7b76fe
JG
10374echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10375echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10376if test "${ac_cv_have_decl_ftello+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10378else
10379 cat >conftest.$ac_ext <<_ACEOF
10380/* confdefs.h. */
10381_ACEOF
10382cat confdefs.h >>conftest.$ac_ext
10383cat >>conftest.$ac_ext <<_ACEOF
10384/* end confdefs.h. */
10385$ac_includes_default
10386int
10387main ()
10388{
10389#ifndef ftello
10390 char *p = (char *) ftello;
10391#endif
10392
10393 ;
10394 return 0;
10395}
10396_ACEOF
10397rm -f conftest.$ac_objext
10398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10399 (eval $ac_compile) 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
2e0fbf77
JW
10406 { ac_try='test -z "$ac_c_werror_flag"
10407 || test ! -s conftest.err'
ec7b76fe
JG
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; } &&
10413 { ac_try='test -s conftest.$ac_objext'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 ac_cv_have_decl_ftello=yes
10420else
10421 echo "$as_me: failed program was:" >&5
10422sed 's/^/| /' conftest.$ac_ext >&5
10423
10424ac_cv_have_decl_ftello=no
10425fi
10426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10427fi
10428echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10429echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10430if test $ac_cv_have_decl_ftello = yes; then
10431
10432cat >>confdefs.h <<_ACEOF
10433#define HAVE_DECL_FTELLO 1
10434_ACEOF
10435
10436
10437else
10438 cat >>confdefs.h <<_ACEOF
10439#define HAVE_DECL_FTELLO 0
10440_ACEOF
10441
10442
10443fi
10444
10445
10446echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10447echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10448if test "${ac_cv_have_decl_ftello64+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10450else
10451 cat >conftest.$ac_ext <<_ACEOF
10452/* confdefs.h. */
10453_ACEOF
10454cat confdefs.h >>conftest.$ac_ext
10455cat >>conftest.$ac_ext <<_ACEOF
10456/* end confdefs.h. */
10457$ac_includes_default
10458int
10459main ()
10460{
10461#ifndef ftello64
10462 char *p = (char *) ftello64;
10463#endif
10464
10465 ;
10466 return 0;
10467}
10468_ACEOF
10469rm -f conftest.$ac_objext
10470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10471 (eval $ac_compile) 2>conftest.er1
10472 ac_status=$?
10473 grep -v '^ *+' conftest.er1 >conftest.err
10474 rm -f conftest.er1
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
2e0fbf77
JW
10478 { ac_try='test -z "$ac_c_werror_flag"
10479 || test ! -s conftest.err'
ec7b76fe
JG
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; } &&
10485 { ac_try='test -s conftest.$ac_objext'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
10491 ac_cv_have_decl_ftello64=yes
10492else
10493 echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
10496ac_cv_have_decl_ftello64=no
10497fi
10498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10499fi
10500echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10501echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10502if test $ac_cv_have_decl_ftello64 = yes; then
10503
10504cat >>confdefs.h <<_ACEOF
10505#define HAVE_DECL_FTELLO64 1
10506_ACEOF
10507
10508
10509else
10510 cat >>confdefs.h <<_ACEOF
10511#define HAVE_DECL_FTELLO64 0
10512_ACEOF
10513
10514
10515fi
10516
10517
10518echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10519echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10520if test "${ac_cv_have_decl_fseeko+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10522else
10523 cat >conftest.$ac_ext <<_ACEOF
10524/* confdefs.h. */
10525_ACEOF
10526cat confdefs.h >>conftest.$ac_ext
10527cat >>conftest.$ac_ext <<_ACEOF
10528/* end confdefs.h. */
10529$ac_includes_default
10530int
10531main ()
10532{
10533#ifndef fseeko
10534 char *p = (char *) fseeko;
10535#endif
10536
10537 ;
10538 return 0;
10539}
10540_ACEOF
10541rm -f conftest.$ac_objext
10542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543 (eval $ac_compile) 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
2e0fbf77
JW
10550 { ac_try='test -z "$ac_c_werror_flag"
10551 || test ! -s conftest.err'
ec7b76fe
JG
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10554 ac_status=$?
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest.$ac_objext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_cv_have_decl_fseeko=yes
10564else
10565 echo "$as_me: failed program was:" >&5
10566sed 's/^/| /' conftest.$ac_ext >&5
10567
10568ac_cv_have_decl_fseeko=no
10569fi
10570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10571fi
10572echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10573echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10574if test $ac_cv_have_decl_fseeko = yes; then
10575
10576cat >>confdefs.h <<_ACEOF
10577#define HAVE_DECL_FSEEKO 1
10578_ACEOF
10579
10580
10581else
10582 cat >>confdefs.h <<_ACEOF
10583#define HAVE_DECL_FSEEKO 0
10584_ACEOF
10585
10586
10587fi
10588
10589
10590echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10591echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10592if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594else
10595 cat >conftest.$ac_ext <<_ACEOF
10596/* confdefs.h. */
10597_ACEOF
10598cat confdefs.h >>conftest.$ac_ext
10599cat >>conftest.$ac_ext <<_ACEOF
10600/* end confdefs.h. */
10601$ac_includes_default
10602int
10603main ()
10604{
10605#ifndef fseeko64
10606 char *p = (char *) fseeko64;
10607#endif
10608
10609 ;
10610 return 0;
10611}
10612_ACEOF
10613rm -f conftest.$ac_objext
10614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10615 (eval $ac_compile) 2>conftest.er1
10616 ac_status=$?
10617 grep -v '^ *+' conftest.er1 >conftest.err
10618 rm -f conftest.er1
10619 cat conftest.err >&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } &&
2e0fbf77
JW
10622 { ac_try='test -z "$ac_c_werror_flag"
10623 || test ! -s conftest.err'
ec7b76fe
JG
10624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10626 ac_status=$?
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; } &&
10629 { ac_try='test -s conftest.$ac_objext'
10630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_have_decl_fseeko64=yes
10636else
10637 echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
10640ac_cv_have_decl_fseeko64=no
10641fi
10642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10643fi
10644echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10645echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10646if test $ac_cv_have_decl_fseeko64 = yes; then
10647
10648cat >>confdefs.h <<_ACEOF
10649#define HAVE_DECL_FSEEKO64 1
10650_ACEOF
10651
10652
10653else
10654 cat >>confdefs.h <<_ACEOF
10655#define HAVE_DECL_FSEEKO64 0
10656_ACEOF
10657
10658
10659fi
10660
10661
2e9ebff5 10662
6be7c12c 10663
252b5132 10664case "${host}" in
855b0be7 10665*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
10666
10667cat >>confdefs.h <<\_ACEOF
252b5132 10668#define USE_BINARY_FOPEN 1
5464f5a1 10669_ACEOF
252b5132
RH
10670 ;;
10671esac
10672
d34a2b1d
JG
10673echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10674echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10675if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 10676 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10677else
5464f5a1
NN
10678 cat >conftest.$ac_ext <<_ACEOF
10679/* confdefs.h. */
10680_ACEOF
10681cat confdefs.h >>conftest.$ac_ext
10682cat >>conftest.$ac_ext <<_ACEOF
10683/* end confdefs.h. */
d34a2b1d 10684$ac_includes_default
5464f5a1
NN
10685int
10686main ()
10687{
d34a2b1d
JG
10688#ifndef ffs
10689 char *p = (char *) ffs;
10690#endif
10691
5464f5a1
NN
10692 ;
10693 return 0;
10694}
10695_ACEOF
10696rm -f conftest.$ac_objext
10697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10698 (eval $ac_compile) 2>conftest.er1
10699 ac_status=$?
10700 grep -v '^ *+' conftest.er1 >conftest.err
10701 rm -f conftest.er1
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
2e0fbf77
JW
10705 { ac_try='test -z "$ac_c_werror_flag"
10706 || test ! -s conftest.err'
5464f5a1
NN
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; } &&
10712 { ac_try='test -s conftest.$ac_objext'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10715 ac_status=$?
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; }; then
d34a2b1d 10718 ac_cv_have_decl_ffs=yes
252b5132 10719else
5464f5a1
NN
10720 echo "$as_me: failed program was:" >&5
10721sed 's/^/| /' conftest.$ac_ext >&5
10722
d34a2b1d 10723ac_cv_have_decl_ffs=no
252b5132 10724fi
5464f5a1 10725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10726fi
d34a2b1d
JG
10727echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10728echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10729if test $ac_cv_have_decl_ffs = yes; then
252b5132 10730
d34a2b1d
JG
10731cat >>confdefs.h <<_ACEOF
10732#define HAVE_DECL_FFS 1
10733_ACEOF
5464f5a1 10734
d34a2b1d
JG
10735
10736else
10737 cat >>confdefs.h <<_ACEOF
10738#define HAVE_DECL_FFS 0
5464f5a1 10739_ACEOF
252b5132 10740
d34a2b1d 10741
252b5132
RH
10742fi
10743
d34a2b1d
JG
10744
10745echo "$as_me:$LINENO: checking whether free is declared" >&5
10746echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10747if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 10748 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10749else
5464f5a1
NN
10750 cat >conftest.$ac_ext <<_ACEOF
10751/* confdefs.h. */
10752_ACEOF
10753cat confdefs.h >>conftest.$ac_ext
10754cat >>conftest.$ac_ext <<_ACEOF
10755/* end confdefs.h. */
d34a2b1d 10756$ac_includes_default
5464f5a1
NN
10757int
10758main ()
10759{
d34a2b1d
JG
10760#ifndef free
10761 char *p = (char *) free;
10762#endif
10763
5464f5a1
NN
10764 ;
10765 return 0;
10766}
10767_ACEOF
10768rm -f conftest.$ac_objext
10769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10770 (eval $ac_compile) 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
2e0fbf77
JW
10777 { ac_try='test -z "$ac_c_werror_flag"
10778 || test ! -s conftest.err'
5464f5a1
NN
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try='test -s conftest.$ac_objext'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
d34a2b1d 10790 ac_cv_have_decl_free=yes
252b5132 10791else
5464f5a1
NN
10792 echo "$as_me: failed program was:" >&5
10793sed 's/^/| /' conftest.$ac_ext >&5
10794
d34a2b1d 10795ac_cv_have_decl_free=no
252b5132 10796fi
5464f5a1 10797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10798fi
d34a2b1d
JG
10799echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10800echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10801if test $ac_cv_have_decl_free = yes; then
10802
10803cat >>confdefs.h <<_ACEOF
10804#define HAVE_DECL_FREE 1
10805_ACEOF
252b5132 10806
5464f5a1 10807
d34a2b1d
JG
10808else
10809 cat >>confdefs.h <<_ACEOF
10810#define HAVE_DECL_FREE 0
5464f5a1 10811_ACEOF
252b5132 10812
d34a2b1d 10813
252b5132
RH
10814fi
10815
d34a2b1d
JG
10816
10817echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10818echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10819if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 10820 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10821else
5464f5a1
NN
10822 cat >conftest.$ac_ext <<_ACEOF
10823/* confdefs.h. */
10824_ACEOF
10825cat confdefs.h >>conftest.$ac_ext
10826cat >>conftest.$ac_ext <<_ACEOF
10827/* end confdefs.h. */
d34a2b1d 10828$ac_includes_default
5464f5a1
NN
10829int
10830main ()
10831{
d34a2b1d
JG
10832#ifndef getenv
10833 char *p = (char *) getenv;
10834#endif
10835
5464f5a1
NN
10836 ;
10837 return 0;
10838}
10839_ACEOF
10840rm -f conftest.$ac_objext
10841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10842 (eval $ac_compile) 2>conftest.er1
10843 ac_status=$?
10844 grep -v '^ *+' conftest.er1 >conftest.err
10845 rm -f conftest.er1
10846 cat conftest.err >&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); } &&
2e0fbf77
JW
10849 { ac_try='test -z "$ac_c_werror_flag"
10850 || test ! -s conftest.err'
5464f5a1
NN
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; } &&
10856 { ac_try='test -s conftest.$ac_objext'
10857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10859 ac_status=$?
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
d34a2b1d 10862 ac_cv_have_decl_getenv=yes
252b5132 10863else
5464f5a1
NN
10864 echo "$as_me: failed program was:" >&5
10865sed 's/^/| /' conftest.$ac_ext >&5
10866
d34a2b1d 10867ac_cv_have_decl_getenv=no
252b5132 10868fi
5464f5a1 10869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10870fi
d34a2b1d
JG
10871echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10872echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10873if test $ac_cv_have_decl_getenv = yes; then
252b5132 10874
d34a2b1d
JG
10875cat >>confdefs.h <<_ACEOF
10876#define HAVE_DECL_GETENV 1
10877_ACEOF
5464f5a1 10878
d34a2b1d
JG
10879
10880else
10881 cat >>confdefs.h <<_ACEOF
10882#define HAVE_DECL_GETENV 0
5464f5a1 10883_ACEOF
252b5132 10884
d34a2b1d 10885
252b5132
RH
10886fi
10887
d34a2b1d
JG
10888
10889echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10890echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
10891if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 10892 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10893else
5464f5a1
NN
10894 cat >conftest.$ac_ext <<_ACEOF
10895/* confdefs.h. */
10896_ACEOF
10897cat confdefs.h >>conftest.$ac_ext
10898cat >>conftest.$ac_ext <<_ACEOF
10899/* end confdefs.h. */
d34a2b1d 10900$ac_includes_default
5464f5a1
NN
10901int
10902main ()
10903{
d34a2b1d
JG
10904#ifndef malloc
10905 char *p = (char *) malloc;
10906#endif
10907
5464f5a1
NN
10908 ;
10909 return 0;
10910}
10911_ACEOF
10912rm -f conftest.$ac_objext
10913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10914 (eval $ac_compile) 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
2e0fbf77
JW
10921 { ac_try='test -z "$ac_c_werror_flag"
10922 || test ! -s conftest.err'
5464f5a1
NN
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest.$ac_objext'
10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930 (eval $ac_try) 2>&5
10931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
d34a2b1d 10934 ac_cv_have_decl_malloc=yes
252b5132 10935else
5464f5a1
NN
10936 echo "$as_me: failed program was:" >&5
10937sed 's/^/| /' conftest.$ac_ext >&5
10938
d34a2b1d 10939ac_cv_have_decl_malloc=no
252b5132 10940fi
5464f5a1 10941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10942fi
d34a2b1d
JG
10943echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10944echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
10945if test $ac_cv_have_decl_malloc = yes; then
252b5132 10946
d34a2b1d
JG
10947cat >>confdefs.h <<_ACEOF
10948#define HAVE_DECL_MALLOC 1
10949_ACEOF
5464f5a1 10950
d34a2b1d
JG
10951
10952else
10953 cat >>confdefs.h <<_ACEOF
10954#define HAVE_DECL_MALLOC 0
5464f5a1 10955_ACEOF
252b5132 10956
d34a2b1d 10957
252b5132
RH
10958fi
10959
d34a2b1d
JG
10960
10961echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10962echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
10963if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 10964 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10965else
5464f5a1
NN
10966 cat >conftest.$ac_ext <<_ACEOF
10967/* confdefs.h. */
10968_ACEOF
10969cat confdefs.h >>conftest.$ac_ext
10970cat >>conftest.$ac_ext <<_ACEOF
10971/* end confdefs.h. */
d34a2b1d 10972$ac_includes_default
5464f5a1
NN
10973int
10974main ()
10975{
d34a2b1d
JG
10976#ifndef realloc
10977 char *p = (char *) realloc;
10978#endif
10979
5464f5a1
NN
10980 ;
10981 return 0;
10982}
10983_ACEOF
10984rm -f conftest.$ac_objext
10985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986 (eval $ac_compile) 2>conftest.er1
10987 ac_status=$?
10988 grep -v '^ *+' conftest.er1 >conftest.err
10989 rm -f conftest.er1
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
2e0fbf77
JW
10993 { ac_try='test -z "$ac_c_werror_flag"
10994 || test ! -s conftest.err'
5464f5a1
NN
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10997 ac_status=$?
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; } &&
11000 { ac_try='test -s conftest.$ac_objext'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11003 ac_status=$?
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; }; then
d34a2b1d 11006 ac_cv_have_decl_realloc=yes
252b5132 11007else
5464f5a1
NN
11008 echo "$as_me: failed program was:" >&5
11009sed 's/^/| /' conftest.$ac_ext >&5
11010
d34a2b1d 11011ac_cv_have_decl_realloc=no
252b5132 11012fi
5464f5a1 11013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11014fi
d34a2b1d
JG
11015echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11016echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
11017if test $ac_cv_have_decl_realloc = yes; then
11018
11019cat >>confdefs.h <<_ACEOF
11020#define HAVE_DECL_REALLOC 1
11021_ACEOF
252b5132 11022
5464f5a1 11023
d34a2b1d
JG
11024else
11025 cat >>confdefs.h <<_ACEOF
11026#define HAVE_DECL_REALLOC 0
efa9bda4
AL
11027_ACEOF
11028
d34a2b1d 11029
efa9bda4
AL
11030fi
11031
d34a2b1d 11032
be5cacdb
L
11033echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11034echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11035if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037else
11038 cat >conftest.$ac_ext <<_ACEOF
11039/* confdefs.h. */
11040_ACEOF
11041cat confdefs.h >>conftest.$ac_ext
11042cat >>conftest.$ac_ext <<_ACEOF
11043/* end confdefs.h. */
11044$ac_includes_default
11045int
11046main ()
11047{
11048#ifndef stpcpy
11049 char *p = (char *) stpcpy;
11050#endif
11051
11052 ;
11053 return 0;
11054}
11055_ACEOF
11056rm -f conftest.$ac_objext
11057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11058 (eval $ac_compile) 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag"
11066 || test ! -s conftest.err'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; } &&
11072 { ac_try='test -s conftest.$ac_objext'
11073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074 (eval $ac_try) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11078 ac_cv_have_decl_stpcpy=yes
11079else
11080 echo "$as_me: failed program was:" >&5
11081sed 's/^/| /' conftest.$ac_ext >&5
11082
11083ac_cv_have_decl_stpcpy=no
11084fi
11085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11086fi
11087echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11088echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11089if test $ac_cv_have_decl_stpcpy = yes; then
11090
11091cat >>confdefs.h <<_ACEOF
11092#define HAVE_DECL_STPCPY 1
11093_ACEOF
11094
11095
11096else
11097 cat >>confdefs.h <<_ACEOF
11098#define HAVE_DECL_STPCPY 0
11099_ACEOF
11100
11101
11102fi
11103
11104
d34a2b1d
JG
11105echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11106echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11107if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11109else
11110 cat >conftest.$ac_ext <<_ACEOF
11111/* confdefs.h. */
11112_ACEOF
11113cat confdefs.h >>conftest.$ac_ext
11114cat >>conftest.$ac_ext <<_ACEOF
11115/* end confdefs.h. */
d34a2b1d 11116$ac_includes_default
efa9bda4
AL
11117int
11118main ()
11119{
d34a2b1d
JG
11120#ifndef strstr
11121 char *p = (char *) strstr;
11122#endif
11123
efa9bda4
AL
11124 ;
11125 return 0;
11126}
11127_ACEOF
11128rm -f conftest.$ac_objext
11129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11130 (eval $ac_compile) 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
2e0fbf77
JW
11137 { ac_try='test -z "$ac_c_werror_flag"
11138 || test ! -s conftest.err'
efa9bda4
AL
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest.$ac_objext'
11145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146 (eval $ac_try) 2>&5
11147 ac_status=$?
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
d34a2b1d 11150 ac_cv_have_decl_strstr=yes
efa9bda4
AL
11151else
11152 echo "$as_me: failed program was:" >&5
11153sed 's/^/| /' conftest.$ac_ext >&5
11154
d34a2b1d 11155ac_cv_have_decl_strstr=no
efa9bda4
AL
11156fi
11157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11158fi
d34a2b1d
JG
11159echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11160echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11161if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 11162
d34a2b1d
JG
11163cat >>confdefs.h <<_ACEOF
11164#define HAVE_DECL_STRSTR 1
11165_ACEOF
efa9bda4 11166
d34a2b1d
JG
11167
11168else
11169 cat >>confdefs.h <<_ACEOF
11170#define HAVE_DECL_STRSTR 0
5464f5a1 11171_ACEOF
252b5132 11172
d34a2b1d 11173
252b5132
RH
11174fi
11175
6be7c12c 11176
d34a2b1d 11177
252b5132
RH
11178# If we are configured native, pick a core file support file.
11179COREFILE=
11180COREFLAG=
11181TRAD_HEADER=
11182if test "${target}" = "${host}"; then
11183 case "${host}" in
13dfd2d0 11184 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
11185 COREFILE=''
11186 ;;
ed84e695 11187 alpha*-*-linux-*)
252b5132
RH
11188 COREFILE=trad-core.lo
11189 TRAD_HEADER='"hosts/alphalinux.h"'
11190 ;;
690cc98b
NC
11191 alpha*-*-netbsd* | alpha*-*-openbsd*)
11192 COREFILE=netbsd-core.lo
11193 ;;
252b5132 11194 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
11195 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11196 COREFILE='' ;;
61d0bc33 11197 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
11198 arm-*-riscix) COREFILE=trad-core.lo ;;
11199 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
11200 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
11201 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
11202 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
11203 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
11204 hppa*-*-netbsd* | hppa*-*-openbsd*)
11205 COREFILE=netbsd-core.lo
11206 ;;
11207
dc810e39 11208 i370-*-*)
5b93d8bb
AM
11209 COREFILE=trad-core.lo
11210 TRAD_HEADER='"hosts/i370linux.h"'
11211 ;;
11212
80c7c40a 11213 i[3-7]86-sequent-bsd*)
5b93d8bb 11214 COREFILE=trad-core.lo
252b5132
RH
11215 TRAD_HEADER='"hosts/symmetry.h"'
11216 ;;
80c7c40a
NC
11217 i[3-7]86-sequent-sysv4*) ;;
11218 i[3-7]86-sequent-sysv*)
252b5132
RH
11219 COREFILE=trad-core.lo
11220 TRAD_HEADER='"hosts/symmetry.h"'
11221 ;;
80c7c40a 11222 i[3-7]86-*-bsdi)
7e3b3466
NC
11223 COREFILE=
11224 ;;
d2bef492 11225 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
11226 COREFILE=trad-core.lo
11227 TRAD_HEADER='"hosts/i386bsd.h"'
11228 ;;
13dfd2d0 11229 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
11230 COREFILE=''
11231 TRAD_HEADER='"hosts/i386bsd.h"'
11232 ;;
4615568e 11233 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
11234 COREFILE=netbsd-core.lo
11235 ;;
80c7c40a 11236 i[3-7]86-esix-sysv3*)
252b5132
RH
11237 COREFILE=trad-core.lo
11238 TRAD_HEADER='"hosts/esix.h"'
11239 ;;
80c7c40a 11240 i[3-7]86-*-sco3.2v5*)
252b5132
RH
11241 COREFILE=sco5-core.lo
11242 ;;
80c7c40a 11243 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
11244 COREFILE=trad-core.lo
11245 TRAD_HEADER='"hosts/i386sco.h"'
11246 ;;
80c7c40a 11247 i[3-7]86-*-mach3*)
252b5132
RH
11248 COREFILE=trad-core.lo
11249 TRAD_HEADER='"hosts/i386mach3.h"'
11250 ;;
ed84e695 11251 i[3-7]86-*-linux-*)
252b5132
RH
11252 COREFILE=trad-core.lo
11253 TRAD_HEADER='"hosts/i386linux.h"'
11254 ;;
80c7c40a
NC
11255 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
11256 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
11257 i860-*-mach3* | i860-*-osf1*)
11258 COREFILE=trad-core.lo
11259 TRAD_HEADER='"hosts/i860mach3.h"'
11260 ;;
252b5132
RH
11261 mips-*-netbsd* | mips*-*-openbsd*)
11262 COREFILE=netbsd-core.lo
11263 ;;
11264 mips-dec-*)
11265 COREFILE=trad-core.lo
11266 TRAD_HEADER='"hosts/decstation.h"'
11267 ;;
11268 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
11269 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
11270 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
11271 mips-*-sysv4*) ;;
11272 mips-*-sysv* | mips-*-riscos*)
11273 COREFILE=trad-core.lo
11274 TRAD_HEADER='"hosts/riscos.h"'
11275 ;;
11276 mips-sony-bsd*)
11277 COREFILE=trad-core.lo
11278 TRAD_HEADER='"hosts/news-mips.h"'
11279 ;;
11280 m68*-bull*-sysv*)
11281 COREFILE=trad-core.lo
11282 TRAD_HEADER='"hosts/dpx2.h"'
11283 ;;
11284 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
11285 m68*-hp-bsd*)
11286 COREFILE=trad-core.lo
11287 TRAD_HEADER='"hosts/hp300bsd.h"'
11288 ;;
ed84e695 11289 m68*-*-linux-*)
252b5132
RH
11290 COREFILE=trad-core.lo
11291 TRAD_HEADER='"hosts/m68klinux.h"'
11292 ;;
11293 m68*-motorola-sysv*)
11294 COREFILE=trad-core.lo
11295 TRAD_HEADER='"hosts/delta68.h"'
11296 ;;
11297 m68*-sony-*)
11298 COREFILE=trad-core.lo
11299 TRAD_HEADER='"hosts/news.h"'
11300 ;;
11301 m68*-*-netbsd* | m68*-*-openbsd*)
11302 COREFILE=netbsd-core.lo
11303 ;;
11304 m68*-apple-aux*)
11305 COREFILE=trad-core.lo
11306 TRAD_HEADER='"hosts/m68kaux.h"'
11307 ;;
eb1e0e80
NC
11308 m88*-*-sysv4*)
11309 ;;
11310 m88*-motorola-sysv*)
11311 COREFILE=ptrace-core.lo
11312 ;;
252b5132
RH
11313 m88*-*-mach3*)
11314 COREFILE=trad-core.lo
11315 TRAD_HEADER='"hosts/m88kmach3.h"'
11316 ;;
c6f8758f
NC
11317 m88*-*-openbsd*)
11318 COREFILE=netbsd-core.lo
11319 ;;
252b5132
RH
11320 ns32k-pc532-mach)
11321 COREFILE=trad-core.lo
11322 TRAD_HEADER='"hosts/pc532mach.h"'
11323 ;;
11324 ns32k-*-netbsd* | ns32k-*-openbsd*)
11325 COREFILE=netbsd-core.lo
11326 ;;
eb1e0e80
NC
11327 rs6000-*-lynx*)
11328 COREFILE=lynx-core.lo
11329 ;;
11330 rs6000-*-aix5.* | powerpc-*-aix5.*)
11331 COREFILE=rs6000-core.lo
11332 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11333 ;;
83954261 11334 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
11335 COREFILE=rs6000-core.lo
11336 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
11337 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11338 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
11339 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11340echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11341 cat >conftest.$ac_ext <<_ACEOF
11342/* confdefs.h. */
11343_ACEOF
11344cat confdefs.h >>conftest.$ac_ext
11345cat >>conftest.$ac_ext <<_ACEOF
11346/* end confdefs.h. */
83954261 11347#include <core.h>
5464f5a1
NN
11348int
11349main ()
11350{
83954261 11351struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
11352 ;
11353 return 0;
11354}
11355_ACEOF
11356rm -f conftest.$ac_objext
11357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11358 (eval $ac_compile) 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
2e0fbf77
JW
11365 { ac_try='test -z "$ac_c_werror_flag"
11366 || test ! -s conftest.err'
5464f5a1
NN
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; } &&
11372 { ac_try='test -s conftest.$ac_objext'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378
11379cat >>confdefs.h <<\_ACEOF
83954261 11380#define HAVE_ST_C_IMPL 1
5464f5a1 11381_ACEOF
83954261 11382
5464f5a1
NN
11383 echo "$as_me:$LINENO: result: yes" >&5
11384echo "${ECHO_T}yes" >&6
83954261 11385else
5464f5a1
NN
11386 echo "$as_me: failed program was:" >&5
11387sed 's/^/| /' conftest.$ac_ext >&5
11388
11389echo "$as_me:$LINENO: result: no" >&5
11390echo "${ECHO_T}no" >&6
83954261 11391fi
5464f5a1 11392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 11393 ;;
252b5132
RH
11394 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
11395 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
11396 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
11397 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
11398 powerpc-*-beos*) ;;
13dfd2d0
NC
11399 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11400 COREFILE='' ;;
252b5132 11401 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 11402 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 11403 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 11404 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 11405 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
11406 COREFILE=netbsd-core.lo
11407 ;;
11408 tahoe-*-*)
11409 COREFILE=trad-core.lo
11410 TRAD_HEADER='"hosts/tahoe.h"'
11411 ;;
de6e5e1a
NC
11412 vax-*-netbsd* | vax-*-openbsd*)
11413 COREFILE=netbsd-core.lo
11414 ;;
252b5132
RH
11415 vax-*-ultrix2*)
11416 COREFILE=trad-core.lo
11417 TRAD_HEADER='"hosts/vaxult2.h"'
11418 ;;
11419 vax-*-ultrix*)
11420 COREFILE=trad-core.lo
11421 TRAD_HEADER='"hosts/vaxult2.h"'
11422 ;;
ed84e695 11423 vax-*-linux-*)
f8fc3443
NC
11424 COREFILE=trad-core.lo
11425 TRAD_HEADER='"hosts/vaxlinux.h"'
11426 ;;
252b5132
RH
11427 vax-*-*)
11428 COREFILE=trad-core.lo
11429 TRAD_HEADER='"hosts/vaxbsd.h"'
11430 ;;
85cfd8d3
MK
11431 x86_64-*-netbsd* | x86_64-*-openbsd*)
11432 COREFILE=netbsd-core.lo
11433 ;;
252b5132
RH
11434 esac
11435
11436 case "$COREFILE" in
11437 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
11438 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
11439 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
11440 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
11441 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
11442 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
11443 osf-core.lo) COREFLAG=-DOSF_CORE ;;
11444 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
11445 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
11446 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11447 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11448 esac
11449
11450 # ELF corefile support has several flavors, but all of
11451 # them use something called <sys/procfs.h>
5464f5a1
NN
11452
11453for ac_header in sys/procfs.h
252b5132 11454do
5464f5a1
NN
11455as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11456if eval "test \"\${$as_ac_Header+set}\" = set"; then
11457 echo "$as_me:$LINENO: checking for $ac_header" >&5
11458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11459if eval "test \"\${$as_ac_Header+set}\" = set"; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461fi
11462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11464else
11465 # Is the header compilable?
11466echo "$as_me:$LINENO: checking $ac_header usability" >&5
11467echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11468cat >conftest.$ac_ext <<_ACEOF
11469/* confdefs.h. */
11470_ACEOF
11471cat confdefs.h >>conftest.$ac_ext
11472cat >>conftest.$ac_ext <<_ACEOF
11473/* end confdefs.h. */
11474$ac_includes_default
11475#include <$ac_header>
11476_ACEOF
11477rm -f conftest.$ac_objext
11478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
2e0fbf77
JW
11486 { ac_try='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
5464f5a1
NN
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest.$ac_objext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 ac_header_compiler=yes
11500else
11501 echo "$as_me: failed program was:" >&5
11502sed 's/^/| /' conftest.$ac_ext >&5
11503
11504ac_header_compiler=no
11505fi
11506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11507echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11508echo "${ECHO_T}$ac_header_compiler" >&6
11509
11510# Is the header present?
11511echo "$as_me:$LINENO: checking $ac_header presence" >&5
11512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11513cat >conftest.$ac_ext <<_ACEOF
11514/* confdefs.h. */
11515_ACEOF
11516cat confdefs.h >>conftest.$ac_ext
11517cat >>conftest.$ac_ext <<_ACEOF
11518/* end confdefs.h. */
11519#include <$ac_header>
11520_ACEOF
11521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } >/dev/null; then
11529 if test -s conftest.err; then
11530 ac_cpp_err=$ac_c_preproc_warn_flag
11531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11532 else
11533 ac_cpp_err=
11534 fi
252b5132 11535else
5464f5a1 11536 ac_cpp_err=yes
252b5132 11537fi
5464f5a1
NN
11538if test -z "$ac_cpp_err"; then
11539 ac_header_preproc=yes
11540else
11541 echo "$as_me: failed program was:" >&5
11542sed 's/^/| /' conftest.$ac_ext >&5
11543
11544 ac_header_preproc=no
252b5132 11545fi
5464f5a1
NN
11546rm -f conftest.err conftest.$ac_ext
11547echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11548echo "${ECHO_T}$ac_header_preproc" >&6
11549
11550# So? What about this header?
11551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11552 yes:no: )
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11554echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11556echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11557 ac_header_preproc=yes
11558 ;;
11559 no:yes:* )
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11561echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11563echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11565echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11567echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11569echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11571echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11572 (
11573 cat <<\_ASBOX
11574## ------------------------------------------ ##
11575## Report this to the AC_PACKAGE_NAME lists. ##
11576## ------------------------------------------ ##
11577_ASBOX
11578 ) |
11579 sed "s/^/$as_me: WARNING: /" >&2
11580 ;;
11581esac
11582echo "$as_me:$LINENO: checking for $ac_header" >&5
11583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11584if eval "test \"\${$as_ac_Header+set}\" = set"; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 11586else
5464f5a1
NN
11587 eval "$as_ac_Header=\$ac_header_preproc"
11588fi
11589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11591
252b5132 11592fi
5464f5a1
NN
11593if test `eval echo '${'$as_ac_Header'}'` = yes; then
11594 cat >>confdefs.h <<_ACEOF
11595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11596_ACEOF
11597
11598fi
11599
252b5132
RH
11600done
11601
11602 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
11603 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11604echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11605 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11607else
11608 cat >conftest.$ac_ext <<_ACEOF
11609/* confdefs.h. */
11610_ACEOF
11611cat confdefs.h >>conftest.$ac_ext
11612cat >>conftest.$ac_ext <<_ACEOF
11613/* end confdefs.h. */
7ee38065
MS
11614
11615#define _SYSCALL32
252b5132 11616#include <sys/procfs.h>
5464f5a1
NN
11617int
11618main ()
11619{
252b5132 11620prstatus_t avar
5464f5a1
NN
11621 ;
11622 return 0;
11623}
11624_ACEOF
11625rm -f conftest.$ac_objext
11626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11627 (eval $ac_compile) 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
2e0fbf77
JW
11634 { ac_try='test -z "$ac_c_werror_flag"
11635 || test ! -s conftest.err'
5464f5a1
NN
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; } &&
11641 { ac_try='test -s conftest.$ac_objext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
252b5132
RH
11647 bfd_cv_have_sys_procfs_type_prstatus_t=yes
11648else
5464f5a1
NN
11649 echo "$as_me: failed program was:" >&5
11650sed 's/^/| /' conftest.$ac_ext >&5
11651
11652bfd_cv_have_sys_procfs_type_prstatus_t=no
11653
252b5132 11654fi
5464f5a1 11655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11656fi
11657
11658 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
11659
11660cat >>confdefs.h <<\_ACEOF
252b5132 11661#define HAVE_PRSTATUS_T 1
5464f5a1 11662_ACEOF
252b5132
RH
11663
11664 fi
5464f5a1
NN
11665 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11666echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 11667
5464f5a1
NN
11668 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11669echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11670 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 11672else
5464f5a1
NN
11673 cat >conftest.$ac_ext <<_ACEOF
11674/* confdefs.h. */
11675_ACEOF
11676cat confdefs.h >>conftest.$ac_ext
11677cat >>conftest.$ac_ext <<_ACEOF
11678/* end confdefs.h. */
7ee38065
MS
11679
11680#define _SYSCALL32
11681#include <sys/procfs.h>
5464f5a1
NN
11682int
11683main ()
11684{
7ee38065 11685prstatus32_t avar
5464f5a1
NN
11686 ;
11687 return 0;
11688}
11689_ACEOF
11690rm -f conftest.$ac_objext
11691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11692 (eval $ac_compile) 2>conftest.er1
11693 ac_status=$?
11694 grep -v '^ *+' conftest.er1 >conftest.err
11695 rm -f conftest.er1
11696 cat conftest.err >&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } &&
2e0fbf77
JW
11699 { ac_try='test -z "$ac_c_werror_flag"
11700 || test ! -s conftest.err'
5464f5a1
NN
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; } &&
11706 { ac_try='test -s conftest.$ac_objext'
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; }; then
7ee38065
MS
11712 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
11713else
5464f5a1
NN
11714 echo "$as_me: failed program was:" >&5
11715sed 's/^/| /' conftest.$ac_ext >&5
11716
11717bfd_cv_have_sys_procfs_type_prstatus32_t=no
11718
7ee38065 11719fi
5464f5a1 11720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11721fi
11722
11723 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
11724
11725cat >>confdefs.h <<\_ACEOF
7ee38065 11726#define HAVE_PRSTATUS32_T 1
5464f5a1 11727_ACEOF
7ee38065
MS
11728
11729 fi
5464f5a1
NN
11730 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
11731echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 11732
5464f5a1
NN
11733 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
11734echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11735 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11737else
5464f5a1
NN
11738 cat >conftest.$ac_ext <<_ACEOF
11739/* confdefs.h. */
11740_ACEOF
11741cat confdefs.h >>conftest.$ac_ext
11742cat >>conftest.$ac_ext <<_ACEOF
11743/* end confdefs.h. */
7ee38065
MS
11744
11745#define _SYSCALL32
252b5132 11746#include <sys/procfs.h>
5464f5a1
NN
11747int
11748main ()
11749{
252b5132 11750prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
11751 ;
11752 return 0;
11753}
11754_ACEOF
11755rm -f conftest.$ac_objext
11756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11757 (eval $ac_compile) 2>conftest.er1
11758 ac_status=$?
11759 grep -v '^ *+' conftest.er1 >conftest.err
11760 rm -f conftest.er1
11761 cat conftest.err >&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } &&
2e0fbf77
JW
11764 { ac_try='test -z "$ac_c_werror_flag"
11765 || test ! -s conftest.err'
5464f5a1
NN
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; } &&
11771 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
252b5132
RH
11777 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
11778else
5464f5a1
NN
11779 echo "$as_me: failed program was:" >&5
11780sed 's/^/| /' conftest.$ac_ext >&5
11781
11782bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
11783
252b5132 11784fi
5464f5a1 11785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11786fi
11787
11788 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
11789
11790cat >>confdefs.h <<\_ACEOF
252b5132 11791#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 11792_ACEOF
252b5132
RH
11793
11794 fi
5464f5a1
NN
11795 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
11796echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 11797
5464f5a1
NN
11798 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
11799echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11800 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 11802else
5464f5a1
NN
11803 cat >conftest.$ac_ext <<_ACEOF
11804/* confdefs.h. */
11805_ACEOF
11806cat confdefs.h >>conftest.$ac_ext
11807cat >>conftest.$ac_ext <<_ACEOF
11808/* end confdefs.h. */
7ee38065
MS
11809
11810#define _SYSCALL32
11811#include <sys/procfs.h>
5464f5a1
NN
11812int
11813main ()
11814{
7ee38065 11815prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
11816 ;
11817 return 0;
11818}
11819_ACEOF
11820rm -f conftest.$ac_objext
11821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11822 (eval $ac_compile) 2>conftest.er1
11823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
2e0fbf77
JW
11829 { ac_try='test -z "$ac_c_werror_flag"
11830 || test ! -s conftest.err'
5464f5a1
NN
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; } &&
11836 { ac_try='test -s conftest.$ac_objext'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }; then
7ee38065
MS
11842 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
11843else
5464f5a1
NN
11844 echo "$as_me: failed program was:" >&5
11845sed 's/^/| /' conftest.$ac_ext >&5
11846
11847bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
11848
7ee38065 11849fi
5464f5a1 11850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11851fi
11852
11853 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
11854
11855cat >>confdefs.h <<\_ACEOF
7ee38065 11856#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 11857_ACEOF
7ee38065
MS
11858
11859 fi
5464f5a1
NN
11860 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
11861echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 11862
5464f5a1
NN
11863 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
11864echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
11865 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11867else
5464f5a1
NN
11868 cat >conftest.$ac_ext <<_ACEOF
11869/* confdefs.h. */
11870_ACEOF
11871cat confdefs.h >>conftest.$ac_ext
11872cat >>conftest.$ac_ext <<_ACEOF
11873/* end confdefs.h. */
7ee38065
MS
11874
11875#define _SYSCALL32
252b5132 11876#include <sys/procfs.h>
5464f5a1
NN
11877int
11878main ()
11879{
252b5132 11880pstatus_t avar
5464f5a1
NN
11881 ;
11882 return 0;
11883}
11884_ACEOF
11885rm -f conftest.$ac_objext
11886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11887 (eval $ac_compile) 2>conftest.er1
11888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
2e0fbf77
JW
11894 { ac_try='test -z "$ac_c_werror_flag"
11895 || test ! -s conftest.err'
5464f5a1
NN
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11898 ac_status=$?
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; } &&
11901 { ac_try='test -s conftest.$ac_objext'
11902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903 (eval $ac_try) 2>&5
11904 ac_status=$?
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); }; }; then
252b5132
RH
11907 bfd_cv_have_sys_procfs_type_pstatus_t=yes
11908else
5464f5a1
NN
11909 echo "$as_me: failed program was:" >&5
11910sed 's/^/| /' conftest.$ac_ext >&5
11911
11912bfd_cv_have_sys_procfs_type_pstatus_t=no
11913
252b5132 11914fi
5464f5a1 11915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11916fi
11917
11918 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
11919
11920cat >>confdefs.h <<\_ACEOF
252b5132 11921#define HAVE_PSTATUS_T 1
5464f5a1 11922_ACEOF
252b5132
RH
11923
11924 fi
5464f5a1
NN
11925 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11926echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 11927
5464f5a1
NN
11928 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
11929echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
11930 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 11932else
5464f5a1
NN
11933 cat >conftest.$ac_ext <<_ACEOF
11934/* confdefs.h. */
11935_ACEOF
11936cat confdefs.h >>conftest.$ac_ext
11937cat >>conftest.$ac_ext <<_ACEOF
11938/* end confdefs.h. */
f572a39d
AM
11939
11940#define _SYSCALL32
11941#include <sys/procfs.h>
5464f5a1
NN
11942int
11943main ()
11944{
f572a39d 11945pxstatus_t avar
5464f5a1
NN
11946 ;
11947 return 0;
11948}
11949_ACEOF
11950rm -f conftest.$ac_objext
11951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11952 (eval $ac_compile) 2>conftest.er1
11953 ac_status=$?
11954 grep -v '^ *+' conftest.er1 >conftest.err
11955 rm -f conftest.er1
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } &&
2e0fbf77
JW
11959 { ac_try='test -z "$ac_c_werror_flag"
11960 || test ! -s conftest.err'
5464f5a1
NN
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest.$ac_objext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
f572a39d
AM
11972 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
11973else
5464f5a1
NN
11974 echo "$as_me: failed program was:" >&5
11975sed 's/^/| /' conftest.$ac_ext >&5
11976
11977bfd_cv_have_sys_procfs_type_pxstatus_t=no
11978
f572a39d 11979fi
5464f5a1 11980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
11981fi
11982
11983 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
11984
11985cat >>confdefs.h <<\_ACEOF
f572a39d 11986#define HAVE_PXSTATUS_T 1
5464f5a1 11987_ACEOF
f572a39d
AM
11988
11989 fi
5464f5a1
NN
11990 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
11991echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 11992
5464f5a1
NN
11993 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
11994echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
11995 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 11997else
5464f5a1
NN
11998 cat >conftest.$ac_ext <<_ACEOF
11999/* confdefs.h. */
12000_ACEOF
12001cat confdefs.h >>conftest.$ac_ext
12002cat >>conftest.$ac_ext <<_ACEOF
12003/* end confdefs.h. */
7ee38065
MS
12004
12005#define _SYSCALL32
12006#include <sys/procfs.h>
5464f5a1
NN
12007int
12008main ()
12009{
7ee38065 12010pstatus32_t avar
5464f5a1
NN
12011 ;
12012 return 0;
12013}
12014_ACEOF
12015rm -f conftest.$ac_objext
12016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12017 (eval $ac_compile) 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
2e0fbf77
JW
12024 { ac_try='test -z "$ac_c_werror_flag"
12025 || test ! -s conftest.err'
5464f5a1
NN
12026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027 (eval $ac_try) 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; } &&
12031 { ac_try='test -s conftest.$ac_objext'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; }; then
7ee38065
MS
12037 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12038else
5464f5a1
NN
12039 echo "$as_me: failed program was:" >&5
12040sed 's/^/| /' conftest.$ac_ext >&5
12041
12042bfd_cv_have_sys_procfs_type_pstatus32_t=no
12043
7ee38065 12044fi
5464f5a1 12045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12046fi
12047
12048 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
12049
12050cat >>confdefs.h <<\_ACEOF
7ee38065 12051#define HAVE_PSTATUS32_T 1
5464f5a1 12052_ACEOF
7ee38065
MS
12053
12054 fi
5464f5a1
NN
12055 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12056echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 12057
5464f5a1
NN
12058 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12059echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12060 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12061 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12062else
5464f5a1
NN
12063 cat >conftest.$ac_ext <<_ACEOF
12064/* confdefs.h. */
12065_ACEOF
12066cat confdefs.h >>conftest.$ac_ext
12067cat >>conftest.$ac_ext <<_ACEOF
12068/* end confdefs.h. */
7ee38065
MS
12069
12070#define _SYSCALL32
252b5132 12071#include <sys/procfs.h>
5464f5a1
NN
12072int
12073main ()
12074{
252b5132 12075prpsinfo_t avar
5464f5a1
NN
12076 ;
12077 return 0;
12078}
12079_ACEOF
12080rm -f conftest.$ac_objext
12081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12082 (eval $ac_compile) 2>conftest.er1
12083 ac_status=$?
12084 grep -v '^ *+' conftest.er1 >conftest.err
12085 rm -f conftest.er1
12086 cat conftest.err >&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
2e0fbf77
JW
12089 { ac_try='test -z "$ac_c_werror_flag"
12090 || test ! -s conftest.err'
5464f5a1
NN
12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; } &&
12096 { ac_try='test -s conftest.$ac_objext'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12099 ac_status=$?
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
252b5132
RH
12102 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12103else
5464f5a1
NN
12104 echo "$as_me: failed program was:" >&5
12105sed 's/^/| /' conftest.$ac_ext >&5
12106
12107bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12108
252b5132 12109fi
5464f5a1 12110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12111fi
12112
12113 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
12114
12115cat >>confdefs.h <<\_ACEOF
252b5132 12116#define HAVE_PRPSINFO_T 1
5464f5a1 12117_ACEOF
252b5132
RH
12118
12119 fi
5464f5a1
NN
12120 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12121echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 12122
5464f5a1
NN
12123 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12124echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12125 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 12127else
5464f5a1
NN
12128 cat >conftest.$ac_ext <<_ACEOF
12129/* confdefs.h. */
12130_ACEOF
12131cat confdefs.h >>conftest.$ac_ext
12132cat >>conftest.$ac_ext <<_ACEOF
12133/* end confdefs.h. */
7ee38065
MS
12134
12135#define _SYSCALL32
12136#include <sys/procfs.h>
5464f5a1
NN
12137int
12138main ()
12139{
7ee38065 12140prpsinfo32_t avar
5464f5a1
NN
12141 ;
12142 return 0;
12143}
12144_ACEOF
12145rm -f conftest.$ac_objext
12146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12147 (eval $ac_compile) 2>conftest.er1
12148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } &&
2e0fbf77
JW
12154 { ac_try='test -z "$ac_c_werror_flag"
12155 || test ! -s conftest.err'
5464f5a1
NN
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12158 ac_status=$?
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; } &&
12161 { ac_try='test -s conftest.$ac_objext'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
7ee38065
MS
12167 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12168else
5464f5a1
NN
12169 echo "$as_me: failed program was:" >&5
12170sed 's/^/| /' conftest.$ac_ext >&5
12171
12172bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12173
7ee38065 12174fi
5464f5a1 12175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12176fi
12177
12178 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
12179
12180cat >>confdefs.h <<\_ACEOF
7ee38065 12181#define HAVE_PRPSINFO32_T 1
5464f5a1 12182_ACEOF
7ee38065
MS
12183
12184 fi
5464f5a1
NN
12185 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12186echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 12187
5464f5a1
NN
12188 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12189echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12190 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12192else
5464f5a1
NN
12193 cat >conftest.$ac_ext <<_ACEOF
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
7ee38065
MS
12199
12200#define _SYSCALL32
252b5132 12201#include <sys/procfs.h>
5464f5a1
NN
12202int
12203main ()
12204{
252b5132 12205psinfo_t avar
5464f5a1
NN
12206 ;
12207 return 0;
12208}
12209_ACEOF
12210rm -f conftest.$ac_objext
12211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12212 (eval $ac_compile) 2>conftest.er1
12213 ac_status=$?
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
2e0fbf77
JW
12219 { ac_try='test -z "$ac_c_werror_flag"
12220 || test ! -s conftest.err'
5464f5a1
NN
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; } &&
12226 { ac_try='test -s conftest.$ac_objext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
252b5132
RH
12232 bfd_cv_have_sys_procfs_type_psinfo_t=yes
12233else
5464f5a1
NN
12234 echo "$as_me: failed program was:" >&5
12235sed 's/^/| /' conftest.$ac_ext >&5
12236
12237bfd_cv_have_sys_procfs_type_psinfo_t=no
12238
252b5132 12239fi
5464f5a1 12240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12241fi
12242
12243 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
12244
12245cat >>confdefs.h <<\_ACEOF
252b5132 12246#define HAVE_PSINFO_T 1
5464f5a1 12247_ACEOF
252b5132
RH
12248
12249 fi
5464f5a1
NN
12250 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12251echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 12252
5464f5a1
NN
12253 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12254echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12255 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 12257else
5464f5a1
NN
12258 cat >conftest.$ac_ext <<_ACEOF
12259/* confdefs.h. */
12260_ACEOF
12261cat confdefs.h >>conftest.$ac_ext
12262cat >>conftest.$ac_ext <<_ACEOF
12263/* end confdefs.h. */
7ee38065
MS
12264
12265#define _SYSCALL32
12266#include <sys/procfs.h>
5464f5a1
NN
12267int
12268main ()
12269{
7ee38065 12270psinfo32_t avar
5464f5a1
NN
12271 ;
12272 return 0;
12273}
12274_ACEOF
12275rm -f conftest.$ac_objext
12276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
2e0fbf77
JW
12284 { ac_try='test -z "$ac_c_werror_flag"
12285 || test ! -s conftest.err'
5464f5a1
NN
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
7ee38065
MS
12297 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12298else
5464f5a1
NN
12299 echo "$as_me: failed program was:" >&5
12300sed 's/^/| /' conftest.$ac_ext >&5
12301
12302bfd_cv_have_sys_procfs_type_psinfo32_t=no
12303
7ee38065 12304fi
5464f5a1 12305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12306fi
12307
12308 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
12309
12310cat >>confdefs.h <<\_ACEOF
7ee38065 12311#define HAVE_PSINFO32_T 1
5464f5a1 12312_ACEOF
7ee38065
MS
12313
12314 fi
5464f5a1
NN
12315 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12316echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 12317
5464f5a1
NN
12318 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12319echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12320 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12322else
5464f5a1
NN
12323 cat >conftest.$ac_ext <<_ACEOF
12324/* confdefs.h. */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
12328/* end confdefs.h. */
7ee38065
MS
12329
12330#define _SYSCALL32
252b5132 12331#include <sys/procfs.h>
5464f5a1
NN
12332int
12333main ()
12334{
252b5132 12335lwpstatus_t avar
5464f5a1
NN
12336 ;
12337 return 0;
12338}
12339_ACEOF
12340rm -f conftest.$ac_objext
12341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342 (eval $ac_compile) 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } &&
2e0fbf77
JW
12349 { ac_try='test -z "$ac_c_werror_flag"
12350 || test ! -s conftest.err'
5464f5a1
NN
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest.$ac_objext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
252b5132
RH
12362 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12363else
5464f5a1
NN
12364 echo "$as_me: failed program was:" >&5
12365sed 's/^/| /' conftest.$ac_ext >&5
12366
12367bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12368
252b5132 12369fi
5464f5a1 12370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12371fi
12372
12373 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
12374
12375cat >>confdefs.h <<\_ACEOF
252b5132 12376#define HAVE_LWPSTATUS_T 1
5464f5a1 12377_ACEOF
252b5132
RH
12378
12379 fi
5464f5a1
NN
12380 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12381echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 12382
5464f5a1
NN
12383 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12384echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12385 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 12387else
5464f5a1
NN
12388 cat >conftest.$ac_ext <<_ACEOF
12389/* confdefs.h. */
12390_ACEOF
12391cat confdefs.h >>conftest.$ac_ext
12392cat >>conftest.$ac_ext <<_ACEOF
12393/* end confdefs.h. */
f572a39d
AM
12394
12395#define _SYSCALL32
12396#include <sys/procfs.h>
5464f5a1
NN
12397int
12398main ()
12399{
f572a39d 12400lwpxstatus_t avar
5464f5a1
NN
12401 ;
12402 return 0;
12403}
12404_ACEOF
12405rm -f conftest.$ac_objext
12406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12407 (eval $ac_compile) 2>conftest.er1
12408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
2e0fbf77
JW
12414 { ac_try='test -z "$ac_c_werror_flag"
12415 || test ! -s conftest.err'
5464f5a1
NN
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; } &&
12421 { ac_try='test -s conftest.$ac_objext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
f572a39d
AM
12427 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12428else
5464f5a1
NN
12429 echo "$as_me: failed program was:" >&5
12430sed 's/^/| /' conftest.$ac_ext >&5
12431
12432bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12433
f572a39d 12434fi
5464f5a1 12435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
12436fi
12437
12438 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
12439
12440cat >>confdefs.h <<\_ACEOF
f572a39d 12441#define HAVE_LWPXSTATUS_T 1
5464f5a1 12442_ACEOF
f572a39d
AM
12443
12444 fi
5464f5a1
NN
12445 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12446echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 12447
5464f5a1
NN
12448 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12449echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12450 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12452else
5464f5a1
NN
12453 cat >conftest.$ac_ext <<_ACEOF
12454/* confdefs.h. */
12455_ACEOF
12456cat confdefs.h >>conftest.$ac_ext
12457cat >>conftest.$ac_ext <<_ACEOF
12458/* end confdefs.h. */
7ee38065
MS
12459
12460#define _SYSCALL32
252b5132 12461#include <sys/procfs.h>
5464f5a1
NN
12462int
12463main ()
12464{
252b5132 12465lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
12466 ;
12467 return 0;
12468}
12469_ACEOF
12470rm -f conftest.$ac_objext
12471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472 (eval $ac_compile) 2>conftest.er1
12473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } &&
2e0fbf77
JW
12479 { ac_try='test -z "$ac_c_werror_flag"
12480 || test ! -s conftest.err'
5464f5a1
NN
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; } &&
12486 { ac_try='test -s conftest.$ac_objext'
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; }; then
252b5132
RH
12492 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12493else
5464f5a1
NN
12494 echo "$as_me: failed program was:" >&5
12495sed 's/^/| /' conftest.$ac_ext >&5
12496
12497bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12498
252b5132 12499fi
5464f5a1 12500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12501fi
12502
12503 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
12504
12505cat >>confdefs.h <<\_ACEOF
252b5132 12506#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 12507_ACEOF
252b5132
RH
12508
12509 fi
5464f5a1
NN
12510 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12511echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 12512
5464f5a1
NN
12513 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12514echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12515 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12517else
5464f5a1
NN
12518 cat >conftest.$ac_ext <<_ACEOF
12519/* confdefs.h. */
12520_ACEOF
12521cat confdefs.h >>conftest.$ac_ext
12522cat >>conftest.$ac_ext <<_ACEOF
12523/* end confdefs.h. */
7ee38065
MS
12524
12525#define _SYSCALL32
252b5132 12526#include <sys/procfs.h>
5464f5a1
NN
12527int
12528main ()
12529{
252b5132 12530lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
12531 ;
12532 return 0;
12533}
12534_ACEOF
12535rm -f conftest.$ac_objext
12536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
2e0fbf77
JW
12544 { ac_try='test -z "$ac_c_werror_flag"
12545 || test ! -s conftest.err'
5464f5a1
NN
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest.$ac_objext'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12554 ac_status=$?
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; }; then
252b5132
RH
12557 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12558else
5464f5a1
NN
12559 echo "$as_me: failed program was:" >&5
12560sed 's/^/| /' conftest.$ac_ext >&5
12561
12562bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12563
252b5132 12564fi
5464f5a1 12565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12566fi
12567
12568 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
12569
12570cat >>confdefs.h <<\_ACEOF
252b5132 12571#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 12572_ACEOF
252b5132
RH
12573
12574 fi
5464f5a1
NN
12575 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12576echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 12577
5464f5a1
NN
12578 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12579echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12580 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 12582else
5464f5a1
NN
12583 cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
7ee38065
MS
12589
12590#define _SYSCALL32
e3c976c4 12591#include <sys/procfs.h>
5464f5a1
NN
12592int
12593main ()
12594{
e3c976c4 12595win32_pstatus_t avar
5464f5a1
NN
12596 ;
12597 return 0;
12598}
12599_ACEOF
12600rm -f conftest.$ac_objext
12601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>conftest.er1
12603 ac_status=$?
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
2e0fbf77
JW
12609 { ac_try='test -z "$ac_c_werror_flag"
12610 || test ! -s conftest.err'
5464f5a1
NN
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest.$ac_objext'
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
e3c976c4
ILT
12622 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12623else
5464f5a1
NN
12624 echo "$as_me: failed program was:" >&5
12625sed 's/^/| /' conftest.$ac_ext >&5
12626
12627bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12628
e3c976c4 12629fi
5464f5a1 12630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12631fi
12632
e3c976c4 12633 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
12634
12635cat >>confdefs.h <<\_ACEOF
e3c976c4 12636#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 12637_ACEOF
16e9c715
NC
12638
12639 fi
5464f5a1
NN
12640 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12641echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
12642
12643 fi
12644fi
16e9c715 12645
b3baf5d0 12646
6be7c12c 12647if test -n "$TRAD_HEADER"; then
5464f5a1
NN
12648
12649cat >>confdefs.h <<_ACEOF
252b5132 12650#define TRAD_HEADER $TRAD_HEADER
5464f5a1 12651_ACEOF
252b5132 12652
3f9b03b5 12653fi
252b5132
RH
12654
12655# Horrible hacks to build DLLs on Windows.
12656WIN32LDFLAGS=
12657WIN32LIBADD=
12658case "${host}" in
12659*-*-cygwin*)
12660 if test "$enable_shared" = "yes"; then
12661 WIN32LDFLAGS="-no-undefined"
12662 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12663 fi
12664 ;;
78be1d6e 12665*-*-linux*)
39691762
L
12666 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12667 # libiberty.a.
ca51bfff
L
12668 case "${host}" in
12669 mips*-*-linux*)
12670 # Linux/MIPS uses PIC by default.
12671 if test "$enable_shared" = "yes"; then
12672 WIN32LIBADD="-L../libiberty -liberty"
12673 fi
12674 ;;
12675 *)
66e25bab 12676 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 12677 if test -n "$x"; then
ca51bfff
L
12678 WIN32LIBADD="-L../libiberty/pic -liberty"
12679 fi
12680 ;;
12681 esac
39691762 12682 ;;
252b5132
RH
12683esac
12684
6be7c12c
AO
12685
12686
252b5132
RH
12687# target stuff:
12688
12689# Canonicalize the secondary target names.
12690if test -n "$enable_targets" ; then
12691 for targ in `echo $enable_targets | sed 's/,/ /g'`
12692 do
6d83c84b 12693 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
12694 if test -n "$result" ; then
12695 canon_targets="$canon_targets $result"
12696 else
12697 # Allow targets that config.sub doesn't recognize, like "all".
12698 canon_targets="$canon_targets $targ"
12699 fi
12700 done
12701fi
12702
12703all_targets=false
12704defvec=
12705selvecs=
08f74004 12706assocvecs=
252b5132
RH
12707selarchs=
12708TDEFINES=
12709for targ in $target $canon_targets
12710do
12711 if test "x$targ" = "xall"; then
12712 all_targets=true
08f74004 12713 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
12714 else
12715 . $srcdir/config.bfd
12716 if test "x$targ" = "x$target"; then
12717 defvec=$targ_defvec
12718 fi
12719 selvecs="$selvecs $targ_defvec $targ_selvecs"
12720 selarchs="$selarchs $targ_archs"
12721 TDEFINES="$TDEFINES $targ_cflags"
12722 fi
12723done
12724
6be7c12c 12725
252b5132
RH
12726# This processing still needs to be done if we're to decide properly whether
12727# 64-bit support needs to be compiled in. Currently, it will be included if
12728# the default or any other explicitly requested target requires it; it
12729# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 12730# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
12731# used.
12732
12733# uniq the default and selected vectors in all the configured targets.
12734f=""
12735for i in $selvecs ; do
12736 case " $f " in
12737 *" $i "*) ;;
12738 *) f="$f $i" ;;
12739 esac
12740done
12741selvecs="$f"
12742
6be7c12c 12743
08f74004
AM
12744# uniq the associated vectors in all the configured targets.
12745f=""
12746for i in $assocvecs ; do
12747 case " $f " in
12748 *" $i "*) ;;
12749 *) f="$f $i" ;;
12750 esac
12751done
12752assocvecs="$f"
12753
12754
252b5132
RH
12755# uniq the architectures in all the configured targets.
12756f=""
12757for i in $selarchs ; do
12758 case " $f " in
12759 *" $i "*) ;;
12760 *) f="$f $i" ;;
12761 esac
12762done
12763selarchs="$f"
12764
12765# Target backend .o files.
12766tb=
12767
65765700 12768elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
12769
12770for vec in $selvecs
12771do
69263e90 12772 target_size=32
252b5132
RH
12773 case "$vec" in
12774 # This list is alphabetized to make it easy to compare
dc810e39
AM
12775 # with the two vector lists in targets.c. For the same reason,
12776 # use one entry per line, even though this leads to long lines.
252b5132
RH
12777 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
12778 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 12779 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
12780 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
12781 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
12782 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 12783 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
12784 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12785 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12786 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12787 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12788 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12789 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12790 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
12791 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12792 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12793 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12794 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
12795 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
12796 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 12797 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 12798 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 12799 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 12800 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
dc810e39 12801 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 12802 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
7f266840 12803 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
e5a52504 12804 bfd_elf32_bigarm_symbian_vec)
7f266840 12805 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
4e7fd91e
PB
12806 bfd_elf32_bigarm_vxworks_vec)
12807 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 12808 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 12809 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 12810 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 12811 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
12812 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
12813 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 12814 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 12815 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 12816 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 12817 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 12818 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 12819 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 12820 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 12821 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 12822 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
12823 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12824 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12825 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 12826 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 12827 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 12828 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 12829 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 12830 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 12831 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 12832 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 12833 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 12834 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 12835 bfd_elf32_littlearm_symbian_vec)
7f266840 12836 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
4e7fd91e
PB
12837 bfd_elf32_littlearm_vxworks_vec)
12838 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
7f266840 12839 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 12840 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
252b5132 12841 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
12842 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12843 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12844 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
12845 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12846 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
12847 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
12848 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
12849 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12850 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12851 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
12852 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
2469cfa2 12853 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
8a397dad
TS
12854 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12855 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12856 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12857 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 12858 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 12859 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
12860 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
12861 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
b6821651
AM
12862 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
12863 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
a85d7ed0 12864 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
eb1e0e80
NC
12865 # FIXME: We include cofflink.lo not because it's needed for
12866 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
12867 # which needs it but does not list it. Should be fixed in right place.
9cba27b2
JT
12868 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12869 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
2bc3c89a
AM
12870 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12871 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12872 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
12873 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
b6821651
AM
12874 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
12875 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12876 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
85fbca6a 12877 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
b6821651
AM
12878 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12879 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12880 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
22b75d0a 12881 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
c6e90b02
TS
12882 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12883 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 12884 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 12885 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 12886 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 12887 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
e0001a05
NC
12888 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
12889 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 12890 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
12891 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
12892 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 12893 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
12894 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
12895 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 12896 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 12897 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
12898 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12899 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 12900 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 12901 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
12902 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12903 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
12904 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
12905 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12906 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
12907 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12908 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12909 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12910 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
22b75d0a 12911 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02
TS
12912 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12913 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39 12914 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 12915 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
12916 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12917 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
12918 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12919 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 12920 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 12921 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 12922 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 12923 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
12924 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12925 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
12926 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
12927 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
12928 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
12929 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
12930 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
12931 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
12932 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
12933 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
12934 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
12935 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
12936 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
12937 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
12938 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
12939 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
12940 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
12941 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 12942 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
12943 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
12944 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
12945 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
12946 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
12947 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
12948 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
12949 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
12950 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
12951 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
12952 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
12953 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
12954 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
12955 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
12956 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
12957 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
12958 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
12959 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
12960 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 12961 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 12962 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 12963 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
12964 mach_o_be_vec) tb="$tb mach-o.lo" ;;
12965 mach_o_le_vec) tb="$tb mach-o.lo" ;;
12966 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
12967 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
12968 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
12969 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
12970 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
12971 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
12972 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 12973 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 12974 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 12975 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 12976 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 12977 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 12978 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 12979 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 12980 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
12981 pef_vec) tb="$tb pef.lo" ;;
12982 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 12983 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 12984 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 12985 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 12986 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 12987 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 12988 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 12989 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 12990 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 12991 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 12992 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
12993 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
12994 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 12995 som_vec) tb="$tb som.lo" ;;
dc810e39 12996 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
12997 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
12998 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
12999 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13000 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13001 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 13002 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 13003 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
13004 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13005 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
13006 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13007 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13008 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13009 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13010 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13011 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 13012 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 13013 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 13014 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 13015 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 13016 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 13017 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 13018 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 13019 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 13020 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 13021 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 13022 versados_vec) tb="$tb versados.lo" ;;
dc810e39 13023 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
13024 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13025 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13026 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
13027 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
13028
341ca622
AM
13029 # These appear out of order in targets.c
13030 srec_vec) tb="$tb srec.lo" ;;
13031 symbolsrec_vec) tb="$tb srec.lo" ;;
13032 tekhex_vec) tb="$tb tekhex.lo" ;;
13033 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13034 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13035
252b5132 13036 "") ;;
5464f5a1
NN
13037 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13038echo "$as_me: error: *** unknown target vector $vec" >&2;}
13039 { (exit 1); exit 1; }; } ;;
252b5132 13040 esac
69263e90
AM
13041
13042 if test ${target_size} = 64; then
13043 target64=true
13044 fi
13045 if test x"${vec}" = x"${defvec}"; then
13046 bfd_default_target_size=${target_size}
13047 fi
252b5132
RH
13048done
13049
13050# Target architecture .o files.
13051# A couple of CPUs use shorter file names to avoid problems on DOS
13052# filesystems.
13053ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13054
13055# Weed out duplicate .o files.
13056f=""
13057for i in $tb ; do
13058 case " $f " in
13059 *" $i "*) ;;
13060 *) f="$f $i" ;;
13061 esac
13062done
13063tb="$f"
13064
13065f=""
13066for i in $ta ; do
13067 case " $f " in
13068 *" $i "*) ;;
13069 *) f="$f $i" ;;
13070 esac
13071done
13072ta="$f"
13073
13074bfd_backends="$tb"
13075bfd_machines="$ta"
13076
13077if test x${all_targets} = xtrue ; then
13078 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13079 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13080 selvecs=
13081 havevecs=
13082 selarchs=
08f74004
AM
13083 test -n "$assocvecs" &&
13084 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
13085else # all_targets is true
13086 # Only set these if they will be nonempty, for the clever echo.
13087 havevecs=
08f74004 13088 assocvecs=
252b5132
RH
13089 test -n "$selvecs" &&
13090 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13091 test -n "$selvecs" &&
13092 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13093 test -n "$selarchs" &&
13094 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13095fi # all_targets is true
13096
13097case ${host64}-${target64}-${want64} in
13098 *true*)
13099 wordsize=64
2858ef35 13100 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 13101 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 13102 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
13103 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13104echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13105 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13106echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 13107 fi
966abd70
HPN
13108 if test -n "$GCC" ; then
13109 bad_64bit_gcc=no;
5464f5a1
NN
13110 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13111echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 13112 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
13113 cat >conftest.$ac_ext <<_ACEOF
13114/* confdefs.h. */
13115_ACEOF
13116cat confdefs.h >>conftest.$ac_ext
13117cat >>conftest.$ac_ext <<_ACEOF
13118/* end confdefs.h. */
966abd70 13119:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 13120_ACEOF
966abd70 13121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 13122 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 13123 bad_64bit_gcc=yes;
5464f5a1
NN
13124 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13125echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 13126else
5464f5a1
NN
13127 echo "$as_me:$LINENO: result: no" >&5
13128echo "${ECHO_T}no" >&6
966abd70
HPN
13129fi
13130rm -f conftest*
13131
13132 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
13133 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13134echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13135 { (exit 1); exit 1; }; }
966abd70
HPN
13136 fi
13137 fi
252b5132
RH
13138 ;;
13139 false-false-false)
13140 wordsize=32
2858ef35 13141 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
13142 all_backends='$(BFD32_BACKENDS)'
13143 ;;
13144esac
13145
6be7c12c
AO
13146
13147
13148
13149
13150
69263e90 13151
2858ef35 13152
1012372a
AC
13153# Determine the host dependant file_ptr a.k.a. off_t type. In order
13154# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13155# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
13156# Hopefully a reasonable assumption since fseeko et.al. should be
13157# upward compatible.
5464f5a1
NN
13158
13159
13160
13161
1012372a
AC
13162for ac_func in ftello ftello64 fseeko fseeko64
13163do
5464f5a1
NN
13164as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13165echo "$as_me:$LINENO: checking for $ac_func" >&5
13166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13167if eval "test \"\${$as_ac_var+set}\" = set"; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13169else
2ba49b59
KC
13170 cat >conftest.$ac_ext <<_ACEOF
13171/* confdefs.h. */
13172_ACEOF
13173cat confdefs.h >>conftest.$ac_ext
13174cat >>conftest.$ac_ext <<_ACEOF
13175/* end confdefs.h. */
13176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13178#define $ac_func innocuous_$ac_func
13179
13180/* System header to define __stub macros and hopefully few prototypes,
13181 which can conflict with char $ac_func (); below.
13182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13183 <limits.h> exists even on freestanding compilers. */
13184
13185#ifdef __STDC__
13186# include <limits.h>
13187#else
13188# include <assert.h>
13189#endif
13190
13191#undef $ac_func
13192
13193/* Override any gcc2 internal prototype to avoid an error. */
13194#ifdef __cplusplus
13195extern "C"
13196{
13197#endif
13198/* We use char because int might match the return type of a gcc2
13199 builtin and then its argument prototype would still apply. */
13200char $ac_func ();
13201/* The GNU C library defines this for functions which it implements
13202 to always fail with ENOSYS. Some functions are actually named
13203 something starting with __ and the normal name is an alias. */
13204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13205choke me
13206#else
13207char (*f) () = $ac_func;
13208#endif
13209#ifdef __cplusplus
13210}
13211#endif
13212
13213int
13214main ()
13215{
13216return f != $ac_func;
13217 ;
13218 return 0;
13219}
13220_ACEOF
13221rm -f conftest.$ac_objext conftest$ac_exeext
13222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13223 (eval $ac_link) 2>conftest.er1
13224 ac_status=$?
13225 grep -v '^ *+' conftest.er1 >conftest.err
13226 rm -f conftest.er1
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
13230 { ac_try='test -z "$ac_c_werror_flag"
13231 || test ! -s conftest.err'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; } &&
13237 { ac_try='test -s conftest$ac_exeext'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243 eval "$as_ac_var=yes"
13244else
13245 echo "$as_me: failed program was:" >&5
13246sed 's/^/| /' conftest.$ac_ext >&5
13247
13248eval "$as_ac_var=no"
13249fi
13250rm -f conftest.err conftest.$ac_objext \
13251 conftest$ac_exeext conftest.$ac_ext
13252fi
13253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13255if test `eval echo '${'$as_ac_var'}'` = yes; then
13256 cat >>confdefs.h <<_ACEOF
13257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13258_ACEOF
13259
13260fi
13261done
13262
13263if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13264 echo "$as_me:$LINENO: checking for off_t" >&5
13265echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13266if test "${ac_cv_type_off_t+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13268else
13269 cat >conftest.$ac_ext <<_ACEOF
13270/* confdefs.h. */
13271_ACEOF
13272cat confdefs.h >>conftest.$ac_ext
13273cat >>conftest.$ac_ext <<_ACEOF
13274/* end confdefs.h. */
13275$ac_includes_default
13276int
13277main ()
13278{
13279if ((off_t *) 0)
13280 return 0;
13281if (sizeof (off_t))
13282 return 0;
13283 ;
13284 return 0;
13285}
13286_ACEOF
13287rm -f conftest.$ac_objext
13288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13289 (eval $ac_compile) 2>conftest.er1
13290 ac_status=$?
13291 grep -v '^ *+' conftest.er1 >conftest.err
13292 rm -f conftest.er1
13293 cat conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } &&
13296 { ac_try='test -z "$ac_c_werror_flag"
13297 || test ! -s conftest.err'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; } &&
13303 { ac_try='test -s conftest.$ac_objext'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13306 ac_status=$?
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13309 ac_cv_type_off_t=yes
13310else
13311 echo "$as_me: failed program was:" >&5
13312sed 's/^/| /' conftest.$ac_ext >&5
13313
13314ac_cv_type_off_t=no
13315fi
13316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13317fi
13318echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13319echo "${ECHO_T}$ac_cv_type_off_t" >&6
13320
13321echo "$as_me:$LINENO: checking size of off_t" >&5
13322echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13323if test "${ac_cv_sizeof_off_t+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13325else
13326 if test "$ac_cv_type_off_t" = yes; then
13327 # The cast to unsigned long works around a bug in the HP C Compiler
13328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13329 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13330 # This bug is HP SR number 8606223364.
13331 if test "$cross_compiling" = yes; then
13332 # Depending upon the size, compute the lo and hi bounds.
13333cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13334/* confdefs.h. */
13335_ACEOF
13336cat confdefs.h >>conftest.$ac_ext
13337cat >>conftest.$ac_ext <<_ACEOF
13338/* end confdefs.h. */
2ba49b59
KC
13339$ac_includes_default
13340int
13341main ()
13342{
13343static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13344test_array [0] = 0
5464f5a1 13345
2ba49b59
KC
13346 ;
13347 return 0;
13348}
13349_ACEOF
13350rm -f conftest.$ac_objext
13351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13352 (eval $ac_compile) 2>conftest.er1
13353 ac_status=$?
13354 grep -v '^ *+' conftest.er1 >conftest.err
13355 rm -f conftest.er1
13356 cat conftest.err >&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } &&
13359 { ac_try='test -z "$ac_c_werror_flag"
13360 || test ! -s conftest.err'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; } &&
13366 { ac_try='test -s conftest.$ac_objext'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 ac_lo=0 ac_mid=0
13373 while :; do
13374 cat >conftest.$ac_ext <<_ACEOF
13375/* confdefs.h. */
13376_ACEOF
13377cat confdefs.h >>conftest.$ac_ext
13378cat >>conftest.$ac_ext <<_ACEOF
13379/* end confdefs.h. */
13380$ac_includes_default
13381int
13382main ()
13383{
13384static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13385test_array [0] = 0
5464f5a1 13386
2ba49b59
KC
13387 ;
13388 return 0;
13389}
13390_ACEOF
13391rm -f conftest.$ac_objext
13392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13393 (eval $ac_compile) 2>conftest.er1
13394 ac_status=$?
13395 grep -v '^ *+' conftest.er1 >conftest.err
13396 rm -f conftest.er1
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } &&
13400 { ac_try='test -z "$ac_c_werror_flag"
13401 || test ! -s conftest.err'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; } &&
13407 { ac_try='test -s conftest.$ac_objext'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13413 ac_hi=$ac_mid; break
13414else
13415 echo "$as_me: failed program was:" >&5
13416sed 's/^/| /' conftest.$ac_ext >&5
1012372a 13417
2ba49b59
KC
13418ac_lo=`expr $ac_mid + 1`
13419 if test $ac_lo -le $ac_mid; then
13420 ac_lo= ac_hi=
13421 break
13422 fi
13423 ac_mid=`expr 2 '*' $ac_mid + 1`
13424fi
13425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13426 done
13427else
13428 echo "$as_me: failed program was:" >&5
13429sed 's/^/| /' conftest.$ac_ext >&5
1012372a 13430
2ba49b59
KC
13431cat >conftest.$ac_ext <<_ACEOF
13432/* confdefs.h. */
13433_ACEOF
13434cat confdefs.h >>conftest.$ac_ext
13435cat >>conftest.$ac_ext <<_ACEOF
13436/* end confdefs.h. */
13437$ac_includes_default
13438int
13439main ()
5464f5a1 13440{
2ba49b59
KC
13441static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13442test_array [0] = 0
1012372a 13443
2ba49b59
KC
13444 ;
13445 return 0;
13446}
13447_ACEOF
13448rm -f conftest.$ac_objext
13449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13450 (eval $ac_compile) 2>conftest.er1
13451 ac_status=$?
13452 grep -v '^ *+' conftest.er1 >conftest.err
13453 rm -f conftest.er1
13454 cat conftest.err >&5
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } &&
13457 { ac_try='test -z "$ac_c_werror_flag"
13458 || test ! -s conftest.err'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13461 ac_status=$?
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; } &&
13464 { ac_try='test -s conftest.$ac_objext'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; }; then
13470 ac_hi=-1 ac_mid=-1
13471 while :; do
13472 cat >conftest.$ac_ext <<_ACEOF
13473/* confdefs.h. */
13474_ACEOF
13475cat confdefs.h >>conftest.$ac_ext
13476cat >>conftest.$ac_ext <<_ACEOF
13477/* end confdefs.h. */
13478$ac_includes_default
5464f5a1
NN
13479int
13480main ()
13481{
2ba49b59
KC
13482static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13483test_array [0] = 0
13484
5464f5a1
NN
13485 ;
13486 return 0;
13487}
13488_ACEOF
2ba49b59
KC
13489rm -f conftest.$ac_objext
13490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13491 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13492 ac_status=$?
13493 grep -v '^ *+' conftest.er1 >conftest.err
13494 rm -f conftest.er1
13495 cat conftest.err >&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } &&
2e0fbf77
JW
13498 { ac_try='test -z "$ac_c_werror_flag"
13499 || test ! -s conftest.err'
5464f5a1
NN
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13502 ac_status=$?
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; } &&
2ba49b59 13505 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
2ba49b59 13511 ac_lo=$ac_mid; break
5464f5a1
NN
13512else
13513 echo "$as_me: failed program was:" >&5
13514sed 's/^/| /' conftest.$ac_ext >&5
13515
2ba49b59
KC
13516ac_hi=`expr '(' $ac_mid ')' - 1`
13517 if test $ac_mid -le $ac_hi; then
13518 ac_lo= ac_hi=
13519 break
13520 fi
13521 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 13522fi
2ba49b59
KC
13523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13524 done
13525else
13526 echo "$as_me: failed program was:" >&5
13527sed 's/^/| /' conftest.$ac_ext >&5
1012372a 13528
2ba49b59 13529ac_lo= ac_hi=
1012372a 13530fi
2ba49b59
KC
13531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13532fi
13533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13534# Binary search between lo and hi bounds.
13535while test "x$ac_lo" != "x$ac_hi"; do
13536 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
13537 cat >conftest.$ac_ext <<_ACEOF
13538/* confdefs.h. */
13539_ACEOF
13540cat confdefs.h >>conftest.$ac_ext
13541cat >>conftest.$ac_ext <<_ACEOF
13542/* end confdefs.h. */
2ba49b59 13543$ac_includes_default
5464f5a1
NN
13544int
13545main ()
13546{
2ba49b59
KC
13547static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13548test_array [0] = 0
13549
5464f5a1
NN
13550 ;
13551 return 0;
13552}
13553_ACEOF
13554rm -f conftest.$ac_objext
13555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556 (eval $ac_compile) 2>conftest.er1
13557 ac_status=$?
13558 grep -v '^ *+' conftest.er1 >conftest.err
13559 rm -f conftest.er1
13560 cat conftest.err >&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } &&
2e0fbf77
JW
13563 { ac_try='test -z "$ac_c_werror_flag"
13564 || test ! -s conftest.err'
5464f5a1
NN
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try='test -s conftest.$ac_objext'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13573 ac_status=$?
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }; then
2ba49b59 13576 ac_hi=$ac_mid
1012372a 13577else
5464f5a1
NN
13578 echo "$as_me: failed program was:" >&5
13579sed 's/^/| /' conftest.$ac_ext >&5
13580
2ba49b59 13581ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 13582fi
5464f5a1 13583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 13584done
2ba49b59
KC
13585case $ac_lo in
13586?*) ac_cv_sizeof_off_t=$ac_lo;;
13587'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13588See \`config.log' for more details." >&5
13589echo "$as_me: error: cannot compute sizeof (off_t), 77
13590See \`config.log' for more details." >&2;}
13591 { (exit 1); exit 1; }; } ;;
13592esac
13593else
13594 if test "$cross_compiling" = yes; then
13595 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13596See \`config.log' for more details." >&5
13597echo "$as_me: error: cannot run test program while cross compiling
13598See \`config.log' for more details." >&2;}
13599 { (exit 1); exit 1; }; }
13600else
13601 cat >conftest.$ac_ext <<_ACEOF
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
13606/* end confdefs.h. */
13607$ac_includes_default
13608long longval () { return (long) (sizeof (off_t)); }
13609unsigned long ulongval () { return (long) (sizeof (off_t)); }
13610#include <stdio.h>
13611#include <stdlib.h>
13612int
13613main ()
13614{
1012372a 13615
2ba49b59
KC
13616 FILE *f = fopen ("conftest.val", "w");
13617 if (! f)
13618 exit (1);
13619 if (((long) (sizeof (off_t))) < 0)
13620 {
13621 long i = longval ();
13622 if (i != ((long) (sizeof (off_t))))
13623 exit (1);
13624 fprintf (f, "%ld\n", i);
13625 }
13626 else
13627 {
13628 unsigned long i = ulongval ();
13629 if (i != ((long) (sizeof (off_t))))
13630 exit (1);
13631 fprintf (f, "%lu\n", i);
13632 }
13633 exit (ferror (f) || fclose (f) != 0);
13634
13635 ;
13636 return 0;
13637}
13638_ACEOF
13639rm -f conftest$ac_exeext
13640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13641 (eval $ac_link) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ac_cv_sizeof_off_t=`cat conftest.val`
13651else
13652 echo "$as_me: program exited with status $ac_status" >&5
13653echo "$as_me: failed program was:" >&5
13654sed 's/^/| /' conftest.$ac_ext >&5
1012372a 13655
2ba49b59
KC
13656( exit $ac_status )
13657{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13658See \`config.log' for more details." >&5
13659echo "$as_me: error: cannot compute sizeof (off_t), 77
13660See \`config.log' for more details." >&2;}
5464f5a1 13661 { (exit 1); exit 1; }; }
1012372a 13662fi
2ba49b59
KC
13663rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13664fi
13665fi
13666rm -f conftest.val
13667else
13668 ac_cv_sizeof_off_t=0
13669fi
13670fi
5464f5a1
NN
13671echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13672echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 13673cat >>confdefs.h <<_ACEOF
1012372a 13674#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 13675_ACEOF
1012372a
AC
13676
13677
1012372a 13678fi
5464f5a1
NN
13679echo "$as_me:$LINENO: checking file_ptr type" >&5
13680echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
13681bfd_file_ptr="long"
13682bfd_ufile_ptr="unsigned long"
13683if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
13684 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
13685 bfd_file_ptr=BFD_HOST_64_BIT
13686 bfd_ufile_ptr=BFD_HOST_U_64_BIT
13687fi
5464f5a1
NN
13688echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
13689echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
13690
13691
13692
13693
252b5132
RH
13694tdefaults=""
13695test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13696test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 13697test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
13698test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
13699test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
13700
6be7c12c 13701
5464f5a1
NN
13702
13703
13704for ac_header in stdlib.h unistd.h
252b5132 13705do
5464f5a1
NN
13706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13707if eval "test \"\${$as_ac_Header+set}\" = set"; then
13708 echo "$as_me:$LINENO: checking for $ac_header" >&5
13709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13710if eval "test \"\${$as_ac_Header+set}\" = set"; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712fi
13713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13715else
13716 # Is the header compilable?
13717echo "$as_me:$LINENO: checking $ac_header usability" >&5
13718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13719cat >conftest.$ac_ext <<_ACEOF
13720/* confdefs.h. */
13721_ACEOF
13722cat confdefs.h >>conftest.$ac_ext
13723cat >>conftest.$ac_ext <<_ACEOF
13724/* end confdefs.h. */
13725$ac_includes_default
13726#include <$ac_header>
13727_ACEOF
13728rm -f conftest.$ac_objext
13729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13730 (eval $ac_compile) 2>conftest.er1
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
2e0fbf77
JW
13737 { ac_try='test -z "$ac_c_werror_flag"
13738 || test ! -s conftest.err'
5464f5a1
NN
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; } &&
13744 { ac_try='test -s conftest.$ac_objext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13747 ac_status=$?
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_header_compiler=yes
13751else
13752 echo "$as_me: failed program was:" >&5
13753sed 's/^/| /' conftest.$ac_ext >&5
13754
13755ac_header_compiler=no
13756fi
13757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13758echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13759echo "${ECHO_T}$ac_header_compiler" >&6
13760
13761# Is the header present?
13762echo "$as_me:$LINENO: checking $ac_header presence" >&5
13763echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13764cat >conftest.$ac_ext <<_ACEOF
13765/* confdefs.h. */
13766_ACEOF
13767cat confdefs.h >>conftest.$ac_ext
13768cat >>conftest.$ac_ext <<_ACEOF
13769/* end confdefs.h. */
13770#include <$ac_header>
13771_ACEOF
13772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13774 ac_status=$?
13775 grep -v '^ *+' conftest.er1 >conftest.err
13776 rm -f conftest.er1
13777 cat conftest.err >&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } >/dev/null; then
13780 if test -s conftest.err; then
13781 ac_cpp_err=$ac_c_preproc_warn_flag
13782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13783 else
13784 ac_cpp_err=
13785 fi
252b5132 13786else
5464f5a1 13787 ac_cpp_err=yes
252b5132 13788fi
5464f5a1
NN
13789if test -z "$ac_cpp_err"; then
13790 ac_header_preproc=yes
13791else
13792 echo "$as_me: failed program was:" >&5
13793sed 's/^/| /' conftest.$ac_ext >&5
13794
13795 ac_header_preproc=no
252b5132 13796fi
5464f5a1
NN
13797rm -f conftest.err conftest.$ac_ext
13798echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13799echo "${ECHO_T}$ac_header_preproc" >&6
13800
13801# So? What about this header?
13802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13803 yes:no: )
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13805echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13807echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13808 ac_header_preproc=yes
13809 ;;
13810 no:yes:* )
13811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13812echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13814echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13816echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13818echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13820echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13822echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13823 (
13824 cat <<\_ASBOX
13825## ------------------------------------------ ##
13826## Report this to the AC_PACKAGE_NAME lists. ##
13827## ------------------------------------------ ##
13828_ASBOX
13829 ) |
13830 sed "s/^/$as_me: WARNING: /" >&2
13831 ;;
13832esac
13833echo "$as_me:$LINENO: checking for $ac_header" >&5
13834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13835if eval "test \"\${$as_ac_Header+set}\" = set"; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 13837else
5464f5a1
NN
13838 eval "$as_ac_Header=\$ac_header_preproc"
13839fi
13840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13842
13843fi
13844if test `eval echo '${'$as_ac_Header'}'` = yes; then
13845 cat >>confdefs.h <<_ACEOF
13846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13847_ACEOF
13848
252b5132 13849fi
5464f5a1 13850
252b5132
RH
13851done
13852
5464f5a1 13853
252b5132
RH
13854for ac_func in getpagesize
13855do
5464f5a1
NN
13856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13857echo "$as_me:$LINENO: checking for $ac_func" >&5
13858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13859if eval "test \"\${$as_ac_var+set}\" = set"; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13861else
13862 cat >conftest.$ac_ext <<_ACEOF
13863/* confdefs.h. */
13864_ACEOF
13865cat confdefs.h >>conftest.$ac_ext
13866cat >>conftest.$ac_ext <<_ACEOF
13867/* end confdefs.h. */
13868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13870#define $ac_func innocuous_$ac_func
13871
252b5132 13872/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
13873 which can conflict with char $ac_func (); below.
13874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13875 <limits.h> exists even on freestanding compilers. */
13876
13877#ifdef __STDC__
13878# include <limits.h>
13879#else
13880# include <assert.h>
13881#endif
6be7c12c 13882
5464f5a1 13883#undef $ac_func
252b5132 13884
5464f5a1
NN
13885/* Override any gcc2 internal prototype to avoid an error. */
13886#ifdef __cplusplus
13887extern "C"
13888{
13889#endif
13890/* We use char because int might match the return type of a gcc2
13891 builtin and then its argument prototype would still apply. */
13892char $ac_func ();
252b5132
RH
13893/* The GNU C library defines this for functions which it implements
13894 to always fail with ENOSYS. Some functions are actually named
13895 something starting with __ and the normal name is an alias. */
13896#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13897choke me
13898#else
5464f5a1
NN
13899char (*f) () = $ac_func;
13900#endif
13901#ifdef __cplusplus
13902}
252b5132
RH
13903#endif
13904
5464f5a1
NN
13905int
13906main ()
13907{
13908return f != $ac_func;
13909 ;
13910 return 0;
13911}
13912_ACEOF
13913rm -f conftest.$ac_objext conftest$ac_exeext
13914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13915 (eval $ac_link) 2>conftest.er1
13916 ac_status=$?
13917 grep -v '^ *+' conftest.er1 >conftest.err
13918 rm -f conftest.er1
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } &&
2e0fbf77
JW
13922 { ac_try='test -z "$ac_c_werror_flag"
13923 || test ! -s conftest.err'
5464f5a1
NN
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; } &&
13929 { ac_try='test -s conftest$ac_exeext'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 eval "$as_ac_var=yes"
13936else
13937 echo "$as_me: failed program was:" >&5
13938sed 's/^/| /' conftest.$ac_ext >&5
13939
13940eval "$as_ac_var=no"
13941fi
13942rm -f conftest.err conftest.$ac_objext \
13943 conftest$ac_exeext conftest.$ac_ext
13944fi
13945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13946echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13947if test `eval echo '${'$as_ac_var'}'` = yes; then
13948 cat >>confdefs.h <<_ACEOF
13949#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13950_ACEOF
252b5132 13951
252b5132
RH
13952fi
13953done
13954
5464f5a1
NN
13955echo "$as_me:$LINENO: checking for working mmap" >&5
13956echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13957if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
13959else
13960 if test "$cross_compiling" = yes; then
13961 ac_cv_func_mmap_fixed_mapped=no
13962else
5464f5a1
NN
13963 cat >conftest.$ac_ext <<_ACEOF
13964/* confdefs.h. */
13965_ACEOF
13966cat confdefs.h >>conftest.$ac_ext
13967cat >>conftest.$ac_ext <<_ACEOF
13968/* end confdefs.h. */
13969$ac_includes_default
13970/* malloc might have been renamed as rpl_malloc. */
13971#undef malloc
6be7c12c 13972
252b5132
RH
13973/* Thanks to Mike Haertel and Jim Avera for this test.
13974 Here is a matrix of mmap possibilities:
13975 mmap private not fixed
13976 mmap private fixed at somewhere currently unmapped
13977 mmap private fixed at somewhere already mapped
13978 mmap shared not fixed
13979 mmap shared fixed at somewhere currently unmapped
13980 mmap shared fixed at somewhere already mapped
13981 For private mappings, we should verify that changes cannot be read()
13982 back from the file, nor mmap's back from the file at a different
13983 address. (There have been systems where private was not correctly
13984 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 13985 VM page cache was not coherent with the file system buffer cache
252b5132
RH
13986 like early versions of FreeBSD and possibly contemporary NetBSD.)
13987 For shared mappings, we should conversely verify that changes get
5464f5a1 13988 propagated back to all the places they're supposed to be.
252b5132
RH
13989
13990 Grep wants private fixed already mapped.
13991 The main things grep needs to know about mmap are:
13992 * does it exist and is it safe to write into the mmap'd area
13993 * how to use it (BSD variants) */
5464f5a1 13994
252b5132
RH
13995#include <fcntl.h>
13996#include <sys/mman.h>
13997
5464f5a1
NN
13998#if !STDC_HEADERS && !HAVE_STDLIB_H
13999char *malloc ();
14000#endif
6be7c12c 14001
5464f5a1
NN
14002/* This mess was copied from the GNU getpagesize.h. */
14003#if !HAVE_GETPAGESIZE
252b5132 14004/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 14005# if !HAVE_SYS_PARAM_H
252b5132
RH
14006# define HAVE_SYS_PARAM_H 1
14007# endif
14008
14009# ifdef _SC_PAGESIZE
14010# define getpagesize() sysconf(_SC_PAGESIZE)
14011# else /* no _SC_PAGESIZE */
5464f5a1 14012# if HAVE_SYS_PARAM_H
252b5132
RH
14013# include <sys/param.h>
14014# ifdef EXEC_PAGESIZE
14015# define getpagesize() EXEC_PAGESIZE
14016# else /* no EXEC_PAGESIZE */
14017# ifdef NBPG
14018# define getpagesize() NBPG * CLSIZE
14019# ifndef CLSIZE
14020# define CLSIZE 1
14021# endif /* no CLSIZE */
14022# else /* no NBPG */
14023# ifdef NBPC
14024# define getpagesize() NBPC
14025# else /* no NBPC */
14026# ifdef PAGESIZE
14027# define getpagesize() PAGESIZE
14028# endif /* PAGESIZE */
14029# endif /* no NBPC */
14030# endif /* no NBPG */
14031# endif /* no EXEC_PAGESIZE */
14032# else /* no HAVE_SYS_PARAM_H */
14033# define getpagesize() 8192 /* punt totally */
14034# endif /* no HAVE_SYS_PARAM_H */
14035# endif /* no _SC_PAGESIZE */
14036
5464f5a1
NN
14037#endif /* no HAVE_GETPAGESIZE */
14038
14039int
14040main ()
14041{
14042 char *data, *data2, *data3;
14043 int i, pagesize;
14044 int fd;
14045
14046 pagesize = getpagesize ();
14047
14048 /* First, make a file with some known garbage in it. */
14049 data = (char *) malloc (pagesize);
14050 if (!data)
14051 exit (1);
14052 for (i = 0; i < pagesize; ++i)
14053 *(data + i) = rand ();
14054 umask (0);
14055 fd = creat ("conftest.mmap", 0600);
14056 if (fd < 0)
14057 exit (1);
14058 if (write (fd, data, pagesize) != pagesize)
14059 exit (1);
14060 close (fd);
14061
14062 /* Next, try to mmap the file at a fixed address which already has
14063 something else allocated at it. If we can, also make sure that
14064 we see the same garbage. */
14065 fd = open ("conftest.mmap", O_RDWR);
14066 if (fd < 0)
14067 exit (1);
14068 data2 = (char *) malloc (2 * pagesize);
14069 if (!data2)
14070 exit (1);
14071 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14072 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14073 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14074 exit (1);
14075 for (i = 0; i < pagesize; ++i)
14076 if (*(data + i) != *(data2 + i))
14077 exit (1);
14078
14079 /* Finally, make sure that changes to the mapped area do not
14080 percolate back to the file as seen by read(). (This is a bug on
14081 some variants of i386 svr4.0.) */
14082 for (i = 0; i < pagesize; ++i)
14083 *(data2 + i) = *(data2 + i) + 1;
14084 data3 = (char *) malloc (pagesize);
14085 if (!data3)
14086 exit (1);
14087 if (read (fd, data3, pagesize) != pagesize)
14088 exit (1);
14089 for (i = 0; i < pagesize; ++i)
14090 if (*(data + i) != *(data3 + i))
14091 exit (1);
14092 close (fd);
14093 exit (0);
14094}
14095_ACEOF
14096rm -f conftest$ac_exeext
14097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14098 (eval $ac_link) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; }; then
14107 ac_cv_func_mmap_fixed_mapped=yes
14108else
14109 echo "$as_me: program exited with status $ac_status" >&5
14110echo "$as_me: failed program was:" >&5
14111sed 's/^/| /' conftest.$ac_ext >&5
14112
14113( exit $ac_status )
14114ac_cv_func_mmap_fixed_mapped=no
14115fi
14116rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14117fi
14118fi
14119echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14120echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14121if test $ac_cv_func_mmap_fixed_mapped = yes; then
14122
14123cat >>confdefs.h <<\_ACEOF
14124#define HAVE_MMAP 1
14125_ACEOF
14126
14127fi
14128rm -f conftest.mmap
14129
14130
14131
14132for ac_func in madvise mprotect
14133do
14134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14135echo "$as_me:$LINENO: checking for $ac_func" >&5
14136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14137if eval "test \"\${$as_ac_var+set}\" = set"; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139else
14140 cat >conftest.$ac_ext <<_ACEOF
14141/* confdefs.h. */
14142_ACEOF
14143cat confdefs.h >>conftest.$ac_ext
14144cat >>conftest.$ac_ext <<_ACEOF
14145/* end confdefs.h. */
14146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14148#define $ac_func innocuous_$ac_func
14149
14150/* System header to define __stub macros and hopefully few prototypes,
14151 which can conflict with char $ac_func (); below.
14152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14153 <limits.h> exists even on freestanding compilers. */
14154
14155#ifdef __STDC__
14156# include <limits.h>
14157#else
14158# include <assert.h>
14159#endif
14160
14161#undef $ac_func
14162
14163/* Override any gcc2 internal prototype to avoid an error. */
14164#ifdef __cplusplus
14165extern "C"
14166{
14167#endif
14168/* We use char because int might match the return type of a gcc2
14169 builtin and then its argument prototype would still apply. */
14170char $ac_func ();
14171/* The GNU C library defines this for functions which it implements
14172 to always fail with ENOSYS. Some functions are actually named
14173 something starting with __ and the normal name is an alias. */
14174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14175choke me
14176#else
14177char (*f) () = $ac_func;
14178#endif
14179#ifdef __cplusplus
14180}
14181#endif
14182
14183int
14184main ()
14185{
14186return f != $ac_func;
14187 ;
14188 return 0;
14189}
14190_ACEOF
14191rm -f conftest.$ac_objext conftest$ac_exeext
14192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14193 (eval $ac_link) 2>conftest.er1
14194 ac_status=$?
14195 grep -v '^ *+' conftest.er1 >conftest.err
14196 rm -f conftest.er1
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
2e0fbf77
JW
14200 { ac_try='test -z "$ac_c_werror_flag"
14201 || test ! -s conftest.err'
5464f5a1
NN
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } &&
14207 { ac_try='test -s conftest$ac_exeext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 eval "$as_ac_var=yes"
14214else
14215 echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218eval "$as_ac_var=no"
14219fi
14220rm -f conftest.err conftest.$ac_objext \
14221 conftest$ac_exeext conftest.$ac_ext
14222fi
14223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14225if test `eval echo '${'$as_ac_var'}'` = yes; then
14226 cat >>confdefs.h <<_ACEOF
14227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14228_ACEOF
14229
14230fi
14231done
14232
14233case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14234 true+yes )
14235cat >>confdefs.h <<\_ACEOF
14236#define USE_MMAP 1
14237_ACEOF
14238 ;;
14239esac
14240
14241rm -f doc/config.status
14242 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14243
14244 ac_config_commands="$ac_config_commands default"
14245
14246cat >confcache <<\_ACEOF
14247# This file is a shell script that caches the results of configure
14248# tests run on this system so they can be shared between configure
14249# scripts and configure runs, see configure's option --config-cache.
14250# It is not useful on other systems. If it contains results you don't
14251# want to keep, you may remove or edit it.
14252#
14253# config.status only pays attention to the cache file if you give it
14254# the --recheck option to rerun configure.
14255#
14256# `ac_cv_env_foo' variables (set or unset) will be overridden when
14257# loading this file, other *unset* `ac_cv_foo' will be assigned the
14258# following values.
14259
14260_ACEOF
14261
14262# The following way of writing the cache mishandles newlines in values,
14263# but we know of no workaround that is simple, portable, and efficient.
14264# So, don't put newlines in cache variables' values.
14265# Ultrix sh set writes to stderr and can't be redirected directly,
14266# and sets the high bit in the cache file unless we assign to the vars.
14267{
14268 (set) 2>&1 |
14269 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14270 *ac_space=\ *)
14271 # `set' does not quote correctly, so add quotes (double-quote
14272 # substitution turns \\\\ into \\, and sed turns \\ into \).
14273 sed -n \
14274 "s/'/'\\\\''/g;
14275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14276 ;;
14277 *)
14278 # `set' quotes correctly as required by POSIX, so do not add quotes.
14279 sed -n \
14280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14281 ;;
14282 esac;
14283} |
14284 sed '
14285 t clear
14286 : clear
14287 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14288 t end
14289 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14290 : end' >>confcache
14291if diff $cache_file confcache >/dev/null 2>&1; then :; else
14292 if test -w $cache_file; then
14293 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14294 cat confcache >$cache_file
14295 else
14296 echo "not updating unwritable cache $cache_file"
14297 fi
14298fi
14299rm -f confcache
14300
14301test "x$prefix" = xNONE && prefix=$ac_default_prefix
14302# Let make expand exec_prefix.
14303test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14304
14305# VPATH may cause trouble with some makes, so we remove $(srcdir),
14306# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14307# trailing colons and then remove the whole line if VPATH becomes empty
14308# (actually we leave an empty line to preserve line numbers).
14309if test "x$srcdir" = x.; then
14310 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14311s/:*\$(srcdir):*/:/;
14312s/:*\${srcdir}:*/:/;
14313s/:*@srcdir@:*/:/;
14314s/^\([^=]*=[ ]*\):*/\1/;
14315s/:*$//;
14316s/^[^=]*=[ ]*$//;
14317}'
14318fi
14319
14320DEFS=-DHAVE_CONFIG_H
14321
14322ac_libobjs=
14323ac_ltlibobjs=
14324for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14325 # 1. Remove the extension, and $U if already installed.
14326 ac_i=`echo "$ac_i" |
14327 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14328 # 2. Add them.
14329 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14330 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14331done
14332LIBOBJS=$ac_libobjs
14333
14334LTLIBOBJS=$ac_ltlibobjs
14335
14336
f5385ebf
AM
14337if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14338 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14339Usually this means the macro was only invoked conditionally." >&5
14340echo "$as_me: error: conditional \"AMDEP\" was never defined.
14341Usually this means the macro was only invoked conditionally." >&2;}
14342 { (exit 1); exit 1; }; }
14343fi
14344if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14345 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14346Usually this means the macro was only invoked conditionally." >&5
14347echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14348Usually this means the macro was only invoked conditionally." >&2;}
14349 { (exit 1); exit 1; }; }
14350fi
14351if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14352 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14353Usually this means the macro was only invoked conditionally." >&5
14354echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14355Usually this means the macro was only invoked conditionally." >&2;}
14356 { (exit 1); exit 1; }; }
14357fi
14358if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14359 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14360Usually this means the macro was only invoked conditionally." >&5
14361echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14362Usually this means the macro was only invoked conditionally." >&2;}
14363 { (exit 1); exit 1; }; }
14364fi
5464f5a1
NN
14365
14366: ${CONFIG_STATUS=./config.status}
14367ac_clean_files_save=$ac_clean_files
14368ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14369{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14370echo "$as_me: creating $CONFIG_STATUS" >&6;}
14371cat >$CONFIG_STATUS <<_ACEOF
14372#! $SHELL
14373# Generated by $as_me.
14374# Run this file to recreate the current configuration.
14375# Compiler output produced by configure, useful for debugging
14376# configure, is in config.log if it exists.
14377
14378debug=false
14379ac_cs_recheck=false
14380ac_cs_silent=false
14381SHELL=\${CONFIG_SHELL-$SHELL}
14382_ACEOF
14383
14384cat >>$CONFIG_STATUS <<\_ACEOF
14385## --------------------- ##
14386## M4sh Initialization. ##
14387## --------------------- ##
14388
14389# Be Bourne compatible
14390if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14391 emulate sh
14392 NULLCMD=:
14393 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14394 # is contrary to our usage. Disable this feature.
14395 alias -g '${1+"$@"}'='"$@"'
14396elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14397 set -o posix
14398fi
14399DUALCASE=1; export DUALCASE # for MKS sh
14400
14401# Support unset when possible.
14402if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14403 as_unset=unset
14404else
14405 as_unset=false
14406fi
14407
14408
14409# Work around bugs in pre-3.0 UWIN ksh.
14410$as_unset ENV MAIL MAILPATH
14411PS1='$ '
14412PS2='> '
14413PS4='+ '
14414
14415# NLS nuisances.
14416for as_var in \
14417 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14418 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14419 LC_TELEPHONE LC_TIME
14420do
14421 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14422 eval $as_var=C; export $as_var
14423 else
14424 $as_unset $as_var
14425 fi
14426done
14427
14428# Required to use basename.
14429if expr a : '\(a\)' >/dev/null 2>&1; then
14430 as_expr=expr
14431else
14432 as_expr=false
14433fi
14434
14435if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14436 as_basename=basename
14437else
14438 as_basename=false
14439fi
252b5132 14440
6be7c12c 14441
5464f5a1
NN
14442# Name of the executable.
14443as_me=`$as_basename "$0" ||
14444$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14445 X"$0" : 'X\(//\)$' \| \
14446 X"$0" : 'X\(/\)$' \| \
14447 . : '\(.\)' 2>/dev/null ||
14448echo X/"$0" |
14449 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14450 /^X\/\(\/\/\)$/{ s//\1/; q; }
14451 /^X\/\(\/\).*/{ s//\1/; q; }
14452 s/.*/./; q'`
14453
14454
14455# PATH needs CR, and LINENO needs CR and PATH.
14456# Avoid depending upon Character Ranges.
14457as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14459as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14460as_cr_digits='0123456789'
14461as_cr_alnum=$as_cr_Letters$as_cr_digits
14462
14463# The user is always right.
14464if test "${PATH_SEPARATOR+set}" != set; then
14465 echo "#! /bin/sh" >conf$$.sh
14466 echo "exit 0" >>conf$$.sh
14467 chmod +x conf$$.sh
14468 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14469 PATH_SEPARATOR=';'
14470 else
14471 PATH_SEPARATOR=:
14472 fi
14473 rm -f conf$$.sh
14474fi
14475
14476
14477 as_lineno_1=$LINENO
14478 as_lineno_2=$LINENO
14479 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14480 test "x$as_lineno_1" != "x$as_lineno_2" &&
14481 test "x$as_lineno_3" = "x$as_lineno_2" || {
14482 # Find who we are. Look in the path if we contain no path at all
14483 # relative or not.
14484 case $0 in
14485 *[\\/]* ) as_myself=$0 ;;
14486 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487for as_dir in $PATH
14488do
14489 IFS=$as_save_IFS
14490 test -z "$as_dir" && as_dir=.
14491 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14492done
14493
14494 ;;
14495 esac
14496 # We did not find ourselves, most probably we were run as `sh COMMAND'
14497 # in which case we are not to be found in the path.
14498 if test "x$as_myself" = x; then
14499 as_myself=$0
14500 fi
14501 if test ! -f "$as_myself"; then
14502 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14503echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14504 { (exit 1); exit 1; }; }
14505 fi
14506 case $CONFIG_SHELL in
14507 '')
14508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14509for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14510do
14511 IFS=$as_save_IFS
14512 test -z "$as_dir" && as_dir=.
14513 for as_base in sh bash ksh sh5; do
14514 case $as_dir in
14515 /*)
14516 if ("$as_dir/$as_base" -c '
14517 as_lineno_1=$LINENO
14518 as_lineno_2=$LINENO
14519 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14520 test "x$as_lineno_1" != "x$as_lineno_2" &&
14521 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14522 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14523 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14524 CONFIG_SHELL=$as_dir/$as_base
14525 export CONFIG_SHELL
14526 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14527 fi;;
14528 esac
14529 done
14530done
14531;;
14532 esac
14533
14534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14535 # uniformly replaced by the line number. The first 'sed' inserts a
14536 # line-number line before each line; the second 'sed' does the real
14537 # work. The second script uses 'N' to pair each line-number line
14538 # with the numbered line, and appends trailing '-' during
14539 # substitution so that $LINENO is not a special case at line end.
14540 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14541 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14542 sed '=' <$as_myself |
14543 sed '
14544 N
14545 s,$,-,
14546 : loop
14547 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14548 t loop
14549 s,-$,,
14550 s,^['$as_cr_digits']*\n,,
14551 ' >$as_me.lineno &&
14552 chmod +x $as_me.lineno ||
14553 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14554echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14555 { (exit 1); exit 1; }; }
14556
14557 # Don't try to exec as it changes $[0], causing all sort of problems
14558 # (the dirname of $[0] is not the place where we might find the
14559 # original and so on. Autoconf is especially sensible to this).
14560 . ./$as_me.lineno
14561 # Exit status is that of the last command.
14562 exit
252b5132 14563}
6be7c12c 14564
5464f5a1
NN
14565
14566case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14567 *c*,-n*) ECHO_N= ECHO_C='
14568' ECHO_T=' ' ;;
14569 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14570 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14571esac
14572
14573if expr a : '\(a\)' >/dev/null 2>&1; then
14574 as_expr=expr
252b5132 14575else
5464f5a1 14576 as_expr=false
252b5132 14577fi
5464f5a1
NN
14578
14579rm -f conf$$ conf$$.exe conf$$.file
14580echo >conf$$.file
14581if ln -s conf$$.file conf$$ 2>/dev/null; then
14582 # We could just check for DJGPP; but this test a) works b) is more generic
14583 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14584 if test -f conf$$.exe; then
14585 # Don't use ln at all; we don't have any links
14586 as_ln_s='cp -p'
14587 else
14588 as_ln_s='ln -s'
14589 fi
14590elif ln conf$$.file conf$$ 2>/dev/null; then
14591 as_ln_s=ln
14592else
14593 as_ln_s='cp -p'
252b5132 14594fi
5464f5a1 14595rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 14596
5464f5a1
NN
14597if mkdir -p . 2>/dev/null; then
14598 as_mkdir_p=:
14599else
14600 test -d ./-p && rmdir ./-p
14601 as_mkdir_p=false
252b5132 14602fi
b3baf5d0 14603
5464f5a1 14604as_executable_p="test -f"
252b5132 14605
5464f5a1
NN
14606# Sed expression to map a string onto a valid CPP name.
14607as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14608
5464f5a1
NN
14609# Sed expression to map a string onto a valid variable name.
14610as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 14611
252b5132 14612
5464f5a1
NN
14613# IFS
14614# We need space, tab and new line, in precisely that order.
14615as_nl='
14616'
14617IFS=" $as_nl"
252b5132 14618
5464f5a1
NN
14619# CDPATH.
14620$as_unset CDPATH
14621
14622exec 6>&1
14623
14624# Open the log real soon, to keep \$[0] and so on meaningful, and to
14625# report actual input values of CONFIG_FILES etc. instead of their
14626# values after options handling. Logging --version etc. is OK.
14627exec 5>>config.log
14628{
14629 echo
14630 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14631## Running $as_me. ##
14632_ASBOX
14633} >&5
14634cat >&5 <<_CSEOF
14635
14636This file was extended by $as_me, which was
14637generated by GNU Autoconf 2.59. Invocation command line was
14638
14639 CONFIG_FILES = $CONFIG_FILES
14640 CONFIG_HEADERS = $CONFIG_HEADERS
14641 CONFIG_LINKS = $CONFIG_LINKS
14642 CONFIG_COMMANDS = $CONFIG_COMMANDS
14643 $ $0 $@
14644
14645_CSEOF
14646echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14647echo >&5
14648_ACEOF
14649
14650# Files that config.status was made for.
14651if test -n "$ac_config_files"; then
14652 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 14653fi
5464f5a1
NN
14654
14655if test -n "$ac_config_headers"; then
14656 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 14657fi
252b5132 14658
5464f5a1
NN
14659if test -n "$ac_config_links"; then
14660 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 14661fi
252b5132 14662
5464f5a1
NN
14663if test -n "$ac_config_commands"; then
14664 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14665fi
252b5132 14666
5464f5a1
NN
14667cat >>$CONFIG_STATUS <<\_ACEOF
14668
14669ac_cs_usage="\
14670\`$as_me' instantiates files from templates according to the
14671current configuration.
14672
14673Usage: $0 [OPTIONS] [FILE]...
14674
14675 -h, --help print this help, then exit
14676 -V, --version print version number, then exit
14677 -q, --quiet do not print progress messages
14678 -d, --debug don't remove temporary files
14679 --recheck update $as_me by reconfiguring in the same conditions
14680 --file=FILE[:TEMPLATE]
14681 instantiate the configuration file FILE
14682 --header=FILE[:TEMPLATE]
14683 instantiate the configuration header FILE
14684
14685Configuration files:
14686$config_files
14687
14688Configuration headers:
14689$config_headers
14690
14691Configuration commands:
14692$config_commands
14693
14694Report bugs to <bug-autoconf@gnu.org>."
14695_ACEOF
14696
14697cat >>$CONFIG_STATUS <<_ACEOF
14698ac_cs_version="\\
14699config.status
14700configured by $0, generated by GNU Autoconf 2.59,
14701 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14702
14703Copyright (C) 2003 Free Software Foundation, Inc.
14704This config.status script is free software; the Free Software Foundation
14705gives unlimited permission to copy, distribute and modify it."
14706srcdir=$srcdir
14707INSTALL="$INSTALL"
14708_ACEOF
14709
14710cat >>$CONFIG_STATUS <<\_ACEOF
14711# If no file are specified by the user, then we need to provide default
14712# value. By we need to know if files were specified by the user.
14713ac_need_defaults=:
14714while test $# != 0
14715do
14716 case $1 in
14717 --*=*)
14718 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14719 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14720 ac_shift=:
6be7c12c 14721 ;;
5464f5a1
NN
14722 -*)
14723 ac_option=$1
14724 ac_optarg=$2
14725 ac_shift=shift
6be7c12c 14726 ;;
5464f5a1
NN
14727 *) # This is not an option, so the user has probably given explicit
14728 # arguments.
14729 ac_option=$1
14730 ac_need_defaults=false;;
14731 esac
252b5132 14732
5464f5a1
NN
14733 case $ac_option in
14734 # Handling of the options.
14735_ACEOF
14736cat >>$CONFIG_STATUS <<\_ACEOF
14737 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14738 ac_cs_recheck=: ;;
14739 --version | --vers* | -V )
14740 echo "$ac_cs_version"; exit 0 ;;
14741 --he | --h)
14742 # Conflict between --help and --header
14743 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14744Try \`$0 --help' for more information." >&5
14745echo "$as_me: error: ambiguous option: $1
14746Try \`$0 --help' for more information." >&2;}
14747 { (exit 1); exit 1; }; };;
14748 --help | --hel | -h )
14749 echo "$ac_cs_usage"; exit 0 ;;
14750 --debug | --d* | -d )
14751 debug=: ;;
14752 --file | --fil | --fi | --f )
14753 $ac_shift
14754 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14755 ac_need_defaults=false;;
14756 --header | --heade | --head | --hea )
14757 $ac_shift
14758 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14759 ac_need_defaults=false;;
14760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14761 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14762 ac_cs_silent=: ;;
6be7c12c 14763
5464f5a1
NN
14764 # This is an error.
14765 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14766Try \`$0 --help' for more information." >&5
14767echo "$as_me: error: unrecognized option: $1
14768Try \`$0 --help' for more information." >&2;}
14769 { (exit 1); exit 1; }; } ;;
252b5132 14770
5464f5a1 14771 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 14772
5464f5a1
NN
14773 esac
14774 shift
14775done
6be7c12c 14776
5464f5a1 14777ac_configure_extra_args=
252b5132 14778
5464f5a1
NN
14779if $ac_cs_silent; then
14780 exec 6>/dev/null
14781 ac_configure_extra_args="$ac_configure_extra_args --silent"
14782fi
6be7c12c 14783
5464f5a1
NN
14784_ACEOF
14785cat >>$CONFIG_STATUS <<_ACEOF
14786if \$ac_cs_recheck; then
14787 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14788 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14789fi
14790
14791_ACEOF
14792
14793cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 14794#
5464f5a1 14795# INIT-COMMANDS section.
6be7c12c 14796#
b3baf5d0 14797
f5385ebf 14798AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5464f5a1
NN
14799
14800
14801_ACEOF
14802
14803
14804
14805cat >>$CONFIG_STATUS <<\_ACEOF
14806for ac_config_target in $ac_config_targets
252b5132 14807do
5464f5a1
NN
14808 case "$ac_config_target" in
14809 # Handling of arguments.
14810 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14811 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14812 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
14813 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 14814 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5464f5a1
NN
14815 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14816 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14817 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14818echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14819 { (exit 1); exit 1; }; };;
252b5132
RH
14820 esac
14821done
14822
5464f5a1
NN
14823# If the user did not use the arguments to specify the items to instantiate,
14824# then the envvar interface is used. Set only those that are not.
14825# We use the long form for the default assignment because of an extremely
14826# bizarre bug on SunOS 4.1.3.
14827if $ac_need_defaults; then
14828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14829 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14830 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14831fi
14832
14833# Have a temporary directory for convenience. Make it in the build tree
14834# simply because there is no reason to put it here, and in addition,
14835# creating and moving files from /tmp can sometimes cause problems.
14836# Create a temporary directory, and hook for its removal unless debugging.
14837$debug ||
14838{
14839 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14840 trap '{ (exit 1); exit 1; }' 1 2 13 15
14841}
b3baf5d0 14842
5464f5a1 14843# Create a (secure) tmp directory for tmp files.
b3baf5d0 14844
5464f5a1
NN
14845{
14846 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14847 test -n "$tmp" && test -d "$tmp"
14848} ||
14849{
14850 tmp=./confstat$$-$RANDOM
14851 (umask 077 && mkdir $tmp)
14852} ||
14853{
14854 echo "$me: cannot create a temporary directory in ." >&2
14855 { (exit 1); exit 1; }
14856}
14857
14858_ACEOF
14859
14860cat >>$CONFIG_STATUS <<_ACEOF
14861
14862#
14863# CONFIG_FILES section.
14864#
b3baf5d0 14865
5464f5a1
NN
14866# No need to generate the scripts if there are no CONFIG_FILES.
14867# This happens for instance when ./config.status config.h
14868if test -n "\$CONFIG_FILES"; then
14869 # Protect against being on the right side of a sed subst in config.status.
14870 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14871 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14872s,@SHELL@,$SHELL,;t t
14873s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14874s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14875s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14876s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14877s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14878s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14879s,@exec_prefix@,$exec_prefix,;t t
14880s,@prefix@,$prefix,;t t
14881s,@program_transform_name@,$program_transform_name,;t t
14882s,@bindir@,$bindir,;t t
14883s,@sbindir@,$sbindir,;t t
14884s,@libexecdir@,$libexecdir,;t t
14885s,@datadir@,$datadir,;t t
14886s,@sysconfdir@,$sysconfdir,;t t
14887s,@sharedstatedir@,$sharedstatedir,;t t
14888s,@localstatedir@,$localstatedir,;t t
14889s,@libdir@,$libdir,;t t
14890s,@includedir@,$includedir,;t t
14891s,@oldincludedir@,$oldincludedir,;t t
14892s,@infodir@,$infodir,;t t
14893s,@mandir@,$mandir,;t t
14894s,@build_alias@,$build_alias,;t t
14895s,@host_alias@,$host_alias,;t t
14896s,@target_alias@,$target_alias,;t t
14897s,@DEFS@,$DEFS,;t t
14898s,@ECHO_C@,$ECHO_C,;t t
14899s,@ECHO_N@,$ECHO_N,;t t
14900s,@ECHO_T@,$ECHO_T,;t t
14901s,@LIBS@,$LIBS,;t t
14902s,@build@,$build,;t t
14903s,@build_cpu@,$build_cpu,;t t
14904s,@build_vendor@,$build_vendor,;t t
14905s,@build_os@,$build_os,;t t
14906s,@host@,$host,;t t
14907s,@host_cpu@,$host_cpu,;t t
14908s,@host_vendor@,$host_vendor,;t t
14909s,@host_os@,$host_os,;t t
14910s,@target@,$target,;t t
14911s,@target_cpu@,$target_cpu,;t t
14912s,@target_vendor@,$target_vendor,;t t
14913s,@target_os@,$target_os,;t t
14914s,@CC@,$CC,;t t
14915s,@CFLAGS@,$CFLAGS,;t t
14916s,@LDFLAGS@,$LDFLAGS,;t t
14917s,@CPPFLAGS@,$CPPFLAGS,;t t
14918s,@ac_ct_CC@,$ac_ct_CC,;t t
14919s,@EXEEXT@,$EXEEXT,;t t
14920s,@OBJEXT@,$OBJEXT,;t t
14921s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14922s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14923s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 14924s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
14925s,@PACKAGE@,$PACKAGE,;t t
14926s,@VERSION@,$VERSION,;t t
14927s,@ACLOCAL@,$ACLOCAL,;t t
14928s,@AUTOCONF@,$AUTOCONF,;t t
14929s,@AUTOMAKE@,$AUTOMAKE,;t t
14930s,@AUTOHEADER@,$AUTOHEADER,;t t
14931s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
14932s,@install_sh@,$install_sh,;t t
14933s,@STRIP@,$STRIP,;t t
14934s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14935s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14936s,@mkdir_p@,$mkdir_p,;t t
14937s,@AWK@,$AWK,;t t
5464f5a1 14938s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
14939s,@am__leading_dot@,$am__leading_dot,;t t
14940s,@AMTAR@,$AMTAR,;t t
14941s,@am__tar@,$am__tar,;t t
14942s,@am__untar@,$am__untar,;t t
14943s,@DEPDIR@,$DEPDIR,;t t
14944s,@am__include@,$am__include,;t t
14945s,@am__quote@,$am__quote,;t t
14946s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14947s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14948s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14949s,@CCDEPMODE@,$CCDEPMODE,;t t
14950s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14951s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
14952s,@AR@,$AR,;t t
14953s,@ac_ct_AR@,$ac_ct_AR,;t t
14954s,@RANLIB@,$RANLIB,;t t
14955s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14956s,@LN_S@,$LN_S,;t t
5464f5a1
NN
14957s,@LIBTOOL@,$LIBTOOL,;t t
14958s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 14959s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
14960s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14961s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14962s,@MAINT@,$MAINT,;t t
14963s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
14964s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
14965s,@host_noncanonical@,$host_noncanonical,;t t
14966s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
14967s,@bfdlibdir@,$bfdlibdir,;t t
14968s,@bfdincludedir@,$bfdincludedir,;t t
14969s,@CPP@,$CPP,;t t
14970s,@EGREP@,$EGREP,;t t
14971s,@ALLOCA@,$ALLOCA,;t t
14972s,@USE_NLS@,$USE_NLS,;t t
14973s,@MSGFMT@,$MSGFMT,;t t
14974s,@GMSGFMT@,$GMSGFMT,;t t
14975s,@XGETTEXT@,$XGETTEXT,;t t
14976s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14977s,@CATALOGS@,$CATALOGS,;t t
14978s,@CATOBJEXT@,$CATOBJEXT,;t t
14979s,@DATADIRNAME@,$DATADIRNAME,;t t
14980s,@GMOFILES@,$GMOFILES,;t t
14981s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14982s,@INTLDEPS@,$INTLDEPS,;t t
14983s,@INTLLIBS@,$INTLLIBS,;t t
14984s,@INTLOBJS@,$INTLOBJS,;t t
14985s,@POFILES@,$POFILES,;t t
14986s,@POSUB@,$POSUB,;t t
14987s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
14988s,@GT_NO@,$GT_NO,;t t
14989s,@GT_YES@,$GT_YES,;t t
14990s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14991s,@l@,$l,;t t
14992s,@HDEFINES@,$HDEFINES,;t t
14993s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
14994s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
14995s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
14996s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
14997s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
14998s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
14999s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15000s,@COREFILE@,$COREFILE,;t t
15001s,@COREFLAG@,$COREFLAG,;t t
15002s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15003s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15004s,@TDEFINES@,$TDEFINES,;t t
15005s,@wordsize@,$wordsize,;t t
15006s,@bfd_libs@,$bfd_libs,;t t
15007s,@all_backends@,$all_backends,;t t
15008s,@bfd_backends@,$bfd_backends,;t t
15009s,@bfd_machines@,$bfd_machines,;t t
15010s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15011s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15012s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15013s,@tdefaults@,$tdefaults,;t t
15014s,@LIBOBJS@,$LIBOBJS,;t t
15015s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 15016CEOF
252b5132 15017
5464f5a1
NN
15018_ACEOF
15019
15020 cat >>$CONFIG_STATUS <<\_ACEOF
15021 # Split the substitutions into bite-sized pieces for seds with
15022 # small command number limits, like on Digital OSF/1 and HP-UX.
15023 ac_max_sed_lines=48
15024 ac_sed_frag=1 # Number of current file.
15025 ac_beg=1 # First line for current file.
15026 ac_end=$ac_max_sed_lines # Line after last line for current file.
15027 ac_more_lines=:
15028 ac_sed_cmds=
15029 while $ac_more_lines; do
15030 if test $ac_beg -gt 1; then
15031 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 15032 else
5464f5a1
NN
15033 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15034 fi
15035 if test ! -s $tmp/subs.frag; then
15036 ac_more_lines=false
15037 else
15038 # The purpose of the label and of the branching condition is to
15039 # speed up the sed processing (if there are no `@' at all, there
15040 # is no need to browse any of the substitutions).
15041 # These are the two extra sed commands mentioned above.
15042 (echo ':t
15043 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15044 if test -z "$ac_sed_cmds"; then
15045 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15046 else
15047 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15048 fi
15049 ac_sed_frag=`expr $ac_sed_frag + 1`
15050 ac_beg=$ac_end
15051 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 15052 fi
5464f5a1
NN
15053 done
15054 if test -z "$ac_sed_cmds"; then
15055 ac_sed_cmds=cat
252b5132 15056 fi
5464f5a1 15057fi # test -n "$CONFIG_FILES"
6be7c12c 15058
5464f5a1
NN
15059_ACEOF
15060cat >>$CONFIG_STATUS <<\_ACEOF
15061for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 15062 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
15063 case $ac_file in
15064 - | *:- | *:-:* ) # input from stdin
15065 cat >$tmp/stdin
15066 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15067 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15068 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15069 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15070 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15071 esac
15072
5464f5a1
NN
15073 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15074 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15075$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15076 X"$ac_file" : 'X\(//\)[^/]' \| \
15077 X"$ac_file" : 'X\(//\)$' \| \
15078 X"$ac_file" : 'X\(/\)' \| \
15079 . : '\(.\)' 2>/dev/null ||
15080echo X"$ac_file" |
15081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15083 /^X\(\/\/\)$/{ s//\1/; q; }
15084 /^X\(\/\).*/{ s//\1/; q; }
15085 s/.*/./; q'`
15086 { if $as_mkdir_p; then
15087 mkdir -p "$ac_dir"
252b5132 15088 else
5464f5a1
NN
15089 as_dir="$ac_dir"
15090 as_dirs=
15091 while test ! -d "$as_dir"; do
15092 as_dirs="$as_dir $as_dirs"
15093 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15094$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15095 X"$as_dir" : 'X\(//\)[^/]' \| \
15096 X"$as_dir" : 'X\(//\)$' \| \
15097 X"$as_dir" : 'X\(/\)' \| \
15098 . : '\(.\)' 2>/dev/null ||
15099echo X"$as_dir" |
15100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15101 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15102 /^X\(\/\/\)$/{ s//\1/; q; }
15103 /^X\(\/\).*/{ s//\1/; q; }
15104 s/.*/./; q'`
15105 done
15106 test ! -n "$as_dirs" || mkdir $as_dirs
15107 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15108echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15109 { (exit 1); exit 1; }; }; }
15110
15111 ac_builddir=.
15112
15113if test "$ac_dir" != .; then
15114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15115 # A "../" for each directory in $ac_dir_suffix.
15116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15117else
15118 ac_dir_suffix= ac_top_builddir=
15119fi
252b5132 15120
5464f5a1
NN
15121case $srcdir in
15122 .) # No --srcdir option. We are building in place.
15123 ac_srcdir=.
15124 if test -z "$ac_top_builddir"; then
15125 ac_top_srcdir=.
15126 else
15127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15128 fi ;;
15129 [\\/]* | ?:[\\/]* ) # Absolute path.
15130 ac_srcdir=$srcdir$ac_dir_suffix;
15131 ac_top_srcdir=$srcdir ;;
252b5132 15132 *) # Relative path.
5464f5a1
NN
15133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15135esac
252b5132 15136
5464f5a1
NN
15137# Do not use `cd foo && pwd` to compute absolute paths, because
15138# the directories may not exist.
15139case `pwd` in
15140.) ac_abs_builddir="$ac_dir";;
15141*)
15142 case "$ac_dir" in
15143 .) ac_abs_builddir=`pwd`;;
15144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15146 esac;;
15147esac
15148case $ac_abs_builddir in
15149.) ac_abs_top_builddir=${ac_top_builddir}.;;
15150*)
15151 case ${ac_top_builddir}. in
15152 .) ac_abs_top_builddir=$ac_abs_builddir;;
15153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15155 esac;;
15156esac
15157case $ac_abs_builddir in
15158.) ac_abs_srcdir=$ac_srcdir;;
15159*)
15160 case $ac_srcdir in
15161 .) ac_abs_srcdir=$ac_abs_builddir;;
15162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15164 esac;;
15165esac
15166case $ac_abs_builddir in
15167.) ac_abs_top_srcdir=$ac_top_srcdir;;
15168*)
15169 case $ac_top_srcdir in
15170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15173 esac;;
15174esac
252b5132 15175
5464f5a1
NN
15176
15177 case $INSTALL in
15178 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15179 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 15180 esac
252b5132 15181
2e0fbf77
JW
15182 if test x"$ac_file" != x-; then
15183 { echo "$as_me:$LINENO: creating $ac_file" >&5
15184echo "$as_me: creating $ac_file" >&6;}
15185 rm -f "$ac_file"
15186 fi
5464f5a1
NN
15187 # Let's still pretend it is `configure' which instantiates (i.e., don't
15188 # use $as_me), people would be surprised to read:
15189 # /* config.h. Generated by config.status. */
15190 if test x"$ac_file" = x-; then
15191 configure_input=
15192 else
15193 configure_input="$ac_file. "
15194 fi
15195 configure_input=$configure_input"Generated from `echo $ac_file_in |
15196 sed 's,.*/,,'` by configure."
15197
15198 # First look for the input files in the build tree, otherwise in the
15199 # src tree.
15200 ac_file_inputs=`IFS=:
15201 for f in $ac_file_in; do
15202 case $f in
15203 -) echo $tmp/stdin ;;
15204 [\\/$]*)
15205 # Absolute (can't be DOS-style, as IFS=:)
15206 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15207echo "$as_me: error: cannot find input file: $f" >&2;}
15208 { (exit 1); exit 1; }; }
15209 echo "$f";;
15210 *) # Relative
15211 if test -f "$f"; then
15212 # Build tree
15213 echo "$f"
15214 elif test -f "$srcdir/$f"; then
15215 # Source tree
15216 echo "$srcdir/$f"
15217 else
15218 # /dev/null tree
15219 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15220echo "$as_me: error: cannot find input file: $f" >&2;}
15221 { (exit 1); exit 1; }; }
15222 fi;;
15223 esac
15224 done` || { (exit 1); exit 1; }
5464f5a1
NN
15225_ACEOF
15226cat >>$CONFIG_STATUS <<_ACEOF
15227 sed "$ac_vpsub
15228$extrasub
15229_ACEOF
15230cat >>$CONFIG_STATUS <<\_ACEOF
15231:t
15232/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15233s,@configure_input@,$configure_input,;t t
15234s,@srcdir@,$ac_srcdir,;t t
15235s,@abs_srcdir@,$ac_abs_srcdir,;t t
15236s,@top_srcdir@,$ac_top_srcdir,;t t
15237s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15238s,@builddir@,$ac_builddir,;t t
15239s,@abs_builddir@,$ac_abs_builddir,;t t
15240s,@top_builddir@,$ac_top_builddir,;t t
15241s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15242s,@INSTALL@,$ac_INSTALL,;t t
15243" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15244 rm -f $tmp/stdin
15245 if test x"$ac_file" != x-; then
15246 mv $tmp/out $ac_file
15247 else
15248 cat $tmp/out
15249 rm -f $tmp/out
15250 fi
15251
15252done
15253_ACEOF
15254cat >>$CONFIG_STATUS <<\_ACEOF
15255
15256#
15257# CONFIG_HEADER section.
15258#
252b5132
RH
15259
15260# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15261# NAME is the cpp macro being defined and VALUE is the value it is being given.
15262#
15263# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
15264ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15265ac_dB='[ ].*$,\1#\2'
15266ac_dC=' '
15267ac_dD=',;t'
15268# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15269ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15270ac_uB='$,\1#\2define\3'
252b5132 15271ac_uC=' '
5464f5a1
NN
15272ac_uD=',;t'
15273
15274for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15275 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
15276 case $ac_file in
15277 - | *:- | *:-:* ) # input from stdin
15278 cat >$tmp/stdin
15279 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15280 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15281 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15283 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15284 esac
15285
5464f5a1
NN
15286 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15287echo "$as_me: creating $ac_file" >&6;}
15288
15289 # First look for the input files in the build tree, otherwise in the
15290 # src tree.
15291 ac_file_inputs=`IFS=:
15292 for f in $ac_file_in; do
15293 case $f in
15294 -) echo $tmp/stdin ;;
15295 [\\/$]*)
15296 # Absolute (can't be DOS-style, as IFS=:)
15297 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15298echo "$as_me: error: cannot find input file: $f" >&2;}
15299 { (exit 1); exit 1; }; }
15300 # Do quote $f, to prevent DOS paths from being IFS'd.
15301 echo "$f";;
15302 *) # Relative
15303 if test -f "$f"; then
15304 # Build tree
15305 echo "$f"
15306 elif test -f "$srcdir/$f"; then
15307 # Source tree
15308 echo "$srcdir/$f"
15309 else
15310 # /dev/null tree
15311 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15312echo "$as_me: error: cannot find input file: $f" >&2;}
15313 { (exit 1); exit 1; }; }
15314 fi;;
15315 esac
15316 done` || { (exit 1); exit 1; }
15317 # Remove the trailing spaces.
15318 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15319
15320_ACEOF
15321
15322# Transform confdefs.h into two sed scripts, `conftest.defines' and
15323# `conftest.undefs', that substitutes the proper values into
15324# config.h.in to produce config.h. The first handles `#define'
15325# templates, and the second `#undef' templates.
15326# And first: Protect against being on the right side of a sed subst in
15327# config.status. Protect against being in an unquoted here document
15328# in config.status.
15329rm -f conftest.defines conftest.undefs
15330# Using a here document instead of a string reduces the quoting nightmare.
15331# Putting comments in sed scripts is not portable.
15332#
15333# `end' is used to avoid that the second main sed command (meant for
15334# 0-ary CPP macros) applies to n-ary macro definitions.
15335# See the Autoconf documentation for `clear'.
15336cat >confdef2sed.sed <<\_ACEOF
15337s/[\\&,]/\\&/g
15338s,[\\$`],\\&,g
15339t clear
15340: clear
15341s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15342t end
15343s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15344: end
15345_ACEOF
15346# If some macros were called several times there might be several times
15347# the same #defines, which is useless. Nevertheless, we may not want to
15348# sort them, since we want the *last* AC-DEFINE to be honored.
15349uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15350sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15351rm -f confdef2sed.sed
252b5132
RH
15352
15353# This sed command replaces #undef with comments. This is necessary, for
15354# example, in the case of _POSIX_SOURCE, which is predefined and required
15355# on some systems where configure will not decide to define it.
5464f5a1
NN
15356cat >>conftest.undefs <<\_ACEOF
15357s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15358_ACEOF
15359
15360# Break up conftest.defines because some shells have a limit on the size
15361# of here documents, and old seds have small limits too (100 cmds).
15362echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15363echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15364echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15365echo ' :' >>$CONFIG_STATUS
15366rm -f conftest.tail
15367while grep . conftest.defines >/dev/null
15368do
15369 # Write a limited-size here document to $tmp/defines.sed.
15370 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15371 # Speed up: don't consider the non `#define' lines.
15372 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15373 # Work around the forget-to-reset-the-flag bug.
15374 echo 't clr' >>$CONFIG_STATUS
15375 echo ': clr' >>$CONFIG_STATUS
15376 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15377 echo 'CEOF
15378 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15379 rm -f $tmp/in
15380 mv $tmp/out $tmp/in
15381' >>$CONFIG_STATUS
15382 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15383 rm -f conftest.defines
15384 mv conftest.tail conftest.defines
15385done
15386rm -f conftest.defines
15387echo ' fi # grep' >>$CONFIG_STATUS
15388echo >>$CONFIG_STATUS
252b5132 15389
5464f5a1
NN
15390# Break up conftest.undefs because some shells have a limit on the size
15391# of here documents, and old seds have small limits too (100 cmds).
15392echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 15393rm -f conftest.tail
5464f5a1 15394while grep . conftest.undefs >/dev/null
252b5132 15395do
5464f5a1
NN
15396 # Write a limited-size here document to $tmp/undefs.sed.
15397 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15398 # Speed up: don't consider the non `#undef'
15399 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15400 # Work around the forget-to-reset-the-flag bug.
15401 echo 't clr' >>$CONFIG_STATUS
15402 echo ': clr' >>$CONFIG_STATUS
15403 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 15404 echo 'CEOF
5464f5a1
NN
15405 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15406 rm -f $tmp/in
15407 mv $tmp/out $tmp/in
15408' >>$CONFIG_STATUS
15409 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15410 rm -f conftest.undefs
15411 mv conftest.tail conftest.undefs
252b5132 15412done
5464f5a1
NN
15413rm -f conftest.undefs
15414
15415cat >>$CONFIG_STATUS <<\_ACEOF
15416 # Let's still pretend it is `configure' which instantiates (i.e., don't
15417 # use $as_me), people would be surprised to read:
15418 # /* config.h. Generated by config.status. */
15419 if test x"$ac_file" = x-; then
15420 echo "/* Generated by configure. */" >$tmp/config.h
15421 else
15422 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15423 fi
15424 cat $tmp/in >>$tmp/config.h
15425 rm -f $tmp/in
15426 if test x"$ac_file" != x-; then
15427 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15428 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15429echo "$as_me: $ac_file is unchanged" >&6;}
15430 else
15431 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15432$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15433 X"$ac_file" : 'X\(//\)[^/]' \| \
15434 X"$ac_file" : 'X\(//\)$' \| \
15435 X"$ac_file" : 'X\(/\)' \| \
15436 . : '\(.\)' 2>/dev/null ||
15437echo X"$ac_file" |
15438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15440 /^X\(\/\/\)$/{ s//\1/; q; }
15441 /^X\(\/\).*/{ s//\1/; q; }
15442 s/.*/./; q'`
15443 { if $as_mkdir_p; then
15444 mkdir -p "$ac_dir"
252b5132 15445 else
5464f5a1
NN
15446 as_dir="$ac_dir"
15447 as_dirs=
15448 while test ! -d "$as_dir"; do
15449 as_dirs="$as_dir $as_dirs"
15450 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15451$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15452 X"$as_dir" : 'X\(//\)[^/]' \| \
15453 X"$as_dir" : 'X\(//\)$' \| \
15454 X"$as_dir" : 'X\(/\)' \| \
15455 . : '\(.\)' 2>/dev/null ||
15456echo X"$as_dir" |
15457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15459 /^X\(\/\/\)$/{ s//\1/; q; }
15460 /^X\(\/\).*/{ s//\1/; q; }
15461 s/.*/./; q'`
15462 done
15463 test ! -n "$as_dirs" || mkdir $as_dirs
15464 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15465echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15466 { (exit 1); exit 1; }; }; }
15467
15468 rm -f $ac_file
15469 mv $tmp/config.h $ac_file
252b5132 15470 fi
5464f5a1
NN
15471 else
15472 cat $tmp/config.h
15473 rm -f $tmp/config.h
252b5132 15474 fi
f5385ebf
AM
15475# Compute $ac_file's index in $config_headers.
15476_am_stamp_count=1
15477for _am_header in $config_headers :; do
15478 case $_am_header in
15479 $ac_file | $ac_file:* )
15480 break ;;
15481 * )
15482 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15483 esac
15484done
15485echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15486$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15487 X$ac_file : 'X\(//\)[^/]' \| \
15488 X$ac_file : 'X\(//\)$' \| \
15489 X$ac_file : 'X\(/\)' \| \
15490 . : '\(.\)' 2>/dev/null ||
15491echo X$ac_file |
15492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15493 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15494 /^X\(\/\/\)$/{ s//\1/; q; }
15495 /^X\(\/\).*/{ s//\1/; q; }
15496 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
15497done
15498_ACEOF
15499cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 15500
5464f5a1
NN
15501#
15502# CONFIG_COMMANDS section.
15503#
15504for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15505 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15506 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15507 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15508$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15509 X"$ac_dest" : 'X\(//\)[^/]' \| \
15510 X"$ac_dest" : 'X\(//\)$' \| \
15511 X"$ac_dest" : 'X\(/\)' \| \
15512 . : '\(.\)' 2>/dev/null ||
15513echo X"$ac_dest" |
15514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15516 /^X\(\/\/\)$/{ s//\1/; q; }
15517 /^X\(\/\).*/{ s//\1/; q; }
15518 s/.*/./; q'`
15519 { if $as_mkdir_p; then
15520 mkdir -p "$ac_dir"
15521 else
15522 as_dir="$ac_dir"
15523 as_dirs=
15524 while test ! -d "$as_dir"; do
15525 as_dirs="$as_dir $as_dirs"
15526 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15527$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15528 X"$as_dir" : 'X\(//\)[^/]' \| \
15529 X"$as_dir" : 'X\(//\)$' \| \
15530 X"$as_dir" : 'X\(/\)' \| \
15531 . : '\(.\)' 2>/dev/null ||
15532echo X"$as_dir" |
15533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15535 /^X\(\/\/\)$/{ s//\1/; q; }
15536 /^X\(\/\).*/{ s//\1/; q; }
15537 s/.*/./; q'`
15538 done
15539 test ! -n "$as_dirs" || mkdir $as_dirs
15540 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15541echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15542 { (exit 1); exit 1; }; }; }
b3baf5d0 15543
5464f5a1 15544 ac_builddir=.
b3baf5d0 15545
5464f5a1
NN
15546if test "$ac_dir" != .; then
15547 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15548 # A "../" for each directory in $ac_dir_suffix.
15549 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15550else
15551 ac_dir_suffix= ac_top_builddir=
15552fi
15553
15554case $srcdir in
15555 .) # No --srcdir option. We are building in place.
15556 ac_srcdir=.
15557 if test -z "$ac_top_builddir"; then
15558 ac_top_srcdir=.
15559 else
15560 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15561 fi ;;
15562 [\\/]* | ?:[\\/]* ) # Absolute path.
15563 ac_srcdir=$srcdir$ac_dir_suffix;
15564 ac_top_srcdir=$srcdir ;;
15565 *) # Relative path.
15566 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15567 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15568esac
15569
15570# Do not use `cd foo && pwd` to compute absolute paths, because
15571# the directories may not exist.
15572case `pwd` in
15573.) ac_abs_builddir="$ac_dir";;
15574*)
15575 case "$ac_dir" in
15576 .) ac_abs_builddir=`pwd`;;
15577 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15578 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15579 esac;;
15580esac
15581case $ac_abs_builddir in
15582.) ac_abs_top_builddir=${ac_top_builddir}.;;
15583*)
15584 case ${ac_top_builddir}. in
15585 .) ac_abs_top_builddir=$ac_abs_builddir;;
15586 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15587 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15588 esac;;
15589esac
15590case $ac_abs_builddir in
15591.) ac_abs_srcdir=$ac_srcdir;;
15592*)
15593 case $ac_srcdir in
15594 .) ac_abs_srcdir=$ac_abs_builddir;;
15595 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15596 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15597 esac;;
15598esac
15599case $ac_abs_builddir in
15600.) ac_abs_top_srcdir=$ac_top_srcdir;;
15601*)
15602 case $ac_top_srcdir in
15603 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15604 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15605 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15606 esac;;
15607esac
15608
15609
15610 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15611echo "$as_me: executing $ac_dest commands" >&6;}
15612 case $ac_dest in
f5385ebf
AM
15613 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15614 # Strip MF so we end up with the name of the file.
15615 mf=`echo "$mf" | sed -e 's/:.*$//'`
15616 # Check whether this is an Automake generated Makefile or not.
15617 # We used to match only the files named `Makefile.in', but
15618 # some people rename them; so instead we look at the file content.
15619 # Grep'ing the first line is not enough: some people post-process
15620 # each Makefile.in and add a new line on top of each file to say so.
15621 # So let's grep whole file.
15622 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15623 dirpart=`(dirname "$mf") 2>/dev/null ||
15624$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15625 X"$mf" : 'X\(//\)[^/]' \| \
15626 X"$mf" : 'X\(//\)$' \| \
15627 X"$mf" : 'X\(/\)' \| \
15628 . : '\(.\)' 2>/dev/null ||
15629echo X"$mf" |
15630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15632 /^X\(\/\/\)$/{ s//\1/; q; }
15633 /^X\(\/\).*/{ s//\1/; q; }
15634 s/.*/./; q'`
15635 else
15636 continue
15637 fi
15638 # Extract the definition of DEPDIR, am__include, and am__quote
15639 # from the Makefile without running `make'.
15640 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15641 test -z "$DEPDIR" && continue
15642 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15643 test -z "am__include" && continue
15644 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15645 # When using ansi2knr, U may be empty or an underscore; expand it
15646 U=`sed -n 's/^U = //p' < "$mf"`
15647 # Find all dependency output files, they are included files with
15648 # $(DEPDIR) in their names. We invoke sed twice because it is the
15649 # simplest approach to changing $(DEPDIR) to its actual value in the
15650 # expansion.
15651 for file in `sed -n "
15652 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15653 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15654 # Make sure the directory exists.
15655 test -f "$dirpart/$file" && continue
15656 fdir=`(dirname "$file") 2>/dev/null ||
15657$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15658 X"$file" : 'X\(//\)[^/]' \| \
15659 X"$file" : 'X\(//\)$' \| \
15660 X"$file" : 'X\(/\)' \| \
15661 . : '\(.\)' 2>/dev/null ||
15662echo X"$file" |
15663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15665 /^X\(\/\/\)$/{ s//\1/; q; }
15666 /^X\(\/\).*/{ s//\1/; q; }
15667 s/.*/./; q'`
15668 { if $as_mkdir_p; then
15669 mkdir -p $dirpart/$fdir
15670 else
15671 as_dir=$dirpart/$fdir
15672 as_dirs=
15673 while test ! -d "$as_dir"; do
15674 as_dirs="$as_dir $as_dirs"
15675 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15676$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15677 X"$as_dir" : 'X\(//\)[^/]' \| \
15678 X"$as_dir" : 'X\(//\)$' \| \
15679 X"$as_dir" : 'X\(/\)' \| \
15680 . : '\(.\)' 2>/dev/null ||
15681echo X"$as_dir" |
15682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15684 /^X\(\/\/\)$/{ s//\1/; q; }
15685 /^X\(\/\).*/{ s//\1/; q; }
15686 s/.*/./; q'`
15687 done
15688 test ! -n "$as_dirs" || mkdir $as_dirs
15689 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15690echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15691 { (exit 1); exit 1; }; }; }
15692
15693 # echo "creating $dirpart/$file"
15694 echo '# dummy' > "$dirpart/$file"
15695 done
15696done
15697 ;;
5464f5a1
NN
15698 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
15699 esac
15700done
15701_ACEOF
15702
15703cat >>$CONFIG_STATUS <<\_ACEOF
15704
15705{ (exit 0); exit 0; }
15706_ACEOF
252b5132 15707chmod +x $CONFIG_STATUS
5464f5a1
NN
15708ac_clean_files=$ac_clean_files_save
15709
15710
15711# configure is writing to config.log, and then calls config.status.
15712# config.status does its own redirection, appending to config.log.
15713# Unfortunately, on DOS this fails, as config.log is still kept open
15714# by configure, so config.status won't be able to write to it; its
15715# output is simply discarded. So we exec the FD to /dev/null,
15716# effectively closing config.log, so it can be properly (re)opened and
15717# appended to by config.status. When coming back to configure, we
15718# need to make the FD available again.
15719if test "$no_create" != yes; then
15720 ac_cs_success=:
15721 ac_config_status_args=
15722 test "$silent" = yes &&
15723 ac_config_status_args="$ac_config_status_args --quiet"
15724 exec 5>/dev/null
15725 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15726 exec 5>>config.log
15727 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15728 # would make configure fail if this is the last instruction.
15729 $ac_cs_success || { (exit 1); exit 1; }
15730fi
252b5132 15731
55c80943 15732
This page took 2.312878 seconds and 4 git commands to generate.