./
[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
f5385ebf 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 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
862 --enable-build-warnings Enable build-time compiler warnings if gcc is used
f5385ebf
AM
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
5464f5a1
NN
865 --enable-install-libbfd controls installation of libbfd and related headers
866 --disable-nls do not use Native Language Support
867
868Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-gnu-ld assume the C compiler uses GNU ld default=no
872 --with-pic try to use only PIC/non-PIC objects default=use both
873 --with-mmap try using mmap for BFD input files if available
874 --with-included-gettext use the GNU gettext library included here
875
876Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
888_ACEOF
889fi
890
891if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
897
898if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902else
903 ac_dir_suffix= ac_top_builddir=
904fi
905
906case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
920esac
921
5464f5a1
NN
922# Do not use `cd foo && pwd` to compute absolute paths, because
923# the directories may not exist.
924case `pwd` in
925.) ac_abs_builddir="$ac_dir";;
926*)
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_top_builddir=${ac_top_builddir}.;;
935*)
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_srcdir=$ac_srcdir;;
944*)
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_srcdir=$ac_top_srcdir;;
953*)
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959esac
6be7c12c 960
5464f5a1
NN
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 fi
7f266840 976 cd "$ac_popdir"
5464f5a1 977 done
6be7c12c
AO
978fi
979
5464f5a1
NN
980test -n "$ac_init_help" && exit 0
981if $ac_init_version; then
982 cat <<\_ACEOF
6be7c12c 983
5464f5a1
NN
984Copyright (C) 2003 Free Software Foundation, Inc.
985This configure script is free software; the Free Software Foundation
986gives unlimited permission to copy, distribute and modify it.
987_ACEOF
988 exit 0
989fi
990exec 5>config.log
991cat >&5 <<_ACEOF
992This file contains any messages produced by compilers while
993running configure, to aid debugging if configure makes a mistake.
6be7c12c 994
5464f5a1
NN
995It was created by $as_me, which was
996generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 997
5464f5a1 998 $ $0 $@
6be7c12c 999
5464f5a1
NN
1000_ACEOF
1001{
1002cat <<_ASUNAME
1003## --------- ##
1004## Platform. ##
1005## --------- ##
1006
1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024_ASUNAME
1025
1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027for as_dir in $PATH
1028do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032done
6be7c12c 1033
5464f5a1 1034} >&5
66e25bab 1035
5464f5a1 1036cat >&5 <<_ACEOF
b3baf5d0 1037
6be7c12c 1038
5464f5a1
NN
1039## ----------- ##
1040## Core tests. ##
1041## ----------- ##
252b5132 1042
5464f5a1 1043_ACEOF
c5d1701e 1044
6be7c12c 1045
5464f5a1
NN
1046# Keep a trace of the command line.
1047# Strip out --no-create and --no-recursion so they do not pile up.
1048# Strip out --silent because we don't want to record it for future runs.
1049# Also quote any args containing shell meta-characters.
1050# Make two passes to allow for proper duplicate-argument suppression.
1051ac_configure_args=
1052ac_configure_args0=
1053ac_configure_args1=
1054ac_sep=
1055ac_must_keep_next=false
1056for ac_pass in 1 2
1057do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093done
1094$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097# When interrupted or exit'd, cleanup temporary files, and complete
1098# config.log. We remove comments because anyway the quotes in there
1099# would cause problems or look ugly.
1100# WARNING: Be sure not to use single quotes in there, as some shells,
1101# such as our DU 5.0 friend, will then `close' the trap.
1102trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108## ---------------- ##
1109## Cache variables. ##
1110## ---------------- ##
1111_ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114{
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127}
1128 echo
1129
1130 cat <<\_ASBOX
1131## ----------------- ##
1132## Output variables. ##
1133## ----------------- ##
1134_ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145## ------------- ##
1146## Output files. ##
1147## ------------- ##
1148_ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160## ----------- ##
1161## confdefs.h. ##
1162## ----------- ##
1163_ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178done
1179ac_signal=0
1180
1181# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182rm -rf conftest* confdefs.h
1183# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184echo >confdefs.h
1185
1186# Predefined preprocessor variables.
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_NAME "$PACKAGE_NAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_STRING "$PACKAGE_STRING"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210_ACEOF
1211
1212
1213# Let the site file select an alternate cache file if it wants to.
1214# Prefer explicitly selected file to automatically selected ones.
1215if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221fi
1222for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229done
1230
1231if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246fi
1247
1248# Check that the precious variables saved in the cache have kept the same
1249# value.
1250ac_cache_corrupted=false
1251for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290done
1291if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297fi
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325ac_aux_dir=
1326for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1327 if test -f $ac_dir/install-sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 break
1331 elif test -f $ac_dir/install.sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 break
1335 elif test -f $ac_dir/shtool; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 break
1339 fi
1340done
1341if test -z "$ac_aux_dir"; then
1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1343echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1344 { (exit 1); exit 1; }; }
1345fi
1346ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349
1350# Make sure we can run config.sub.
1351$ac_config_sub sun4 >/dev/null 2>&1 ||
1352 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1353echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1354 { (exit 1); exit 1; }; }
1355
1356echo "$as_me:$LINENO: checking build system type" >&5
1357echo $ECHO_N "checking build system type... $ECHO_C" >&6
1358if test "${ac_cv_build+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360else
1361 ac_cv_build_alias=$build_alias
1362test -z "$ac_cv_build_alias" &&
1363 ac_cv_build_alias=`$ac_config_guess`
1364test -z "$ac_cv_build_alias" &&
1365 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1366echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1367 { (exit 1); exit 1; }; }
1368ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1370echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1371 { (exit 1); exit 1; }; }
1372
1373fi
1374echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1375echo "${ECHO_T}$ac_cv_build" >&6
1376build=$ac_cv_build
1377build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380
1381
1382echo "$as_me:$LINENO: checking host system type" >&5
1383echo $ECHO_N "checking host system type... $ECHO_C" >&6
1384if test "${ac_cv_host+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386else
1387 ac_cv_host_alias=$host_alias
1388test -z "$ac_cv_host_alias" &&
1389 ac_cv_host_alias=$ac_cv_build_alias
1390ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1391 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1392echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1393 { (exit 1); exit 1; }; }
1394
1395fi
1396echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1397echo "${ECHO_T}$ac_cv_host" >&6
1398host=$ac_cv_host
1399host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404echo "$as_me:$LINENO: checking target system type" >&5
1405echo $ECHO_N "checking target system type... $ECHO_C" >&6
1406if test "${ac_cv_target+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 ac_cv_target_alias=$target_alias
1410test "x$ac_cv_target_alias" = "x" &&
1411 ac_cv_target_alias=$ac_cv_host_alias
1412ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1413 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1414echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1415 { (exit 1); exit 1; }; }
1416
1417fi
1418echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1419echo "${ECHO_T}$ac_cv_target" >&6
1420target=$ac_cv_target
1421target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426# The aliases save the names the user supplied, while $host etc.
1427# will get canonicalized.
1428test -n "$target_alias" &&
1429 test "$program_prefix$program_suffix$program_transform_name" = \
1430 NONENONEs,x,x, &&
1431 program_prefix=${target_alias}-
1432ac_ext=c
1433ac_cpp='$CPP $CPPFLAGS'
1434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437if test -n "$ac_tool_prefix"; then
1438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440echo "$as_me:$LINENO: checking for $ac_word" >&5
1441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442if test "${ac_cv_prog_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444else
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1447else
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459done
1460done
1461
1462fi
1463fi
1464CC=$ac_cv_prog_CC
1465if test -n "$CC"; then
1466 echo "$as_me:$LINENO: result: $CC" >&5
1467echo "${ECHO_T}$CC" >&6
1468else
1469 echo "$as_me:$LINENO: result: no" >&5
1470echo "${ECHO_T}no" >&6
1471fi
1472
1473fi
1474if test -z "$ac_cv_prog_CC"; then
1475 ac_ct_CC=$CC
1476 # Extract the first word of "gcc", so it can be a program name with args.
1477set dummy gcc; ac_word=$2
1478echo "$as_me:$LINENO: checking for $ac_word" >&5
1479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1482else
1483 if test -n "$ac_ct_CC"; then
1484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485else
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_ac_ct_CC="gcc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1496 fi
1497done
1498done
1499
1500fi
1501fi
1502ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503if test -n "$ac_ct_CC"; then
1504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505echo "${ECHO_T}$ac_ct_CC" >&6
1506else
1507 echo "$as_me:$LINENO: result: no" >&5
1508echo "${ECHO_T}no" >&6
1509fi
1510
1511 CC=$ac_ct_CC
1512else
1513 CC="$ac_cv_prog_CC"
1514fi
1515
1516if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519set dummy ${ac_tool_prefix}cc; ac_word=$2
1520echo "$as_me:$LINENO: checking for $ac_word" >&5
1521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1527else
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539done
1540done
1541
1542fi
1543fi
1544CC=$ac_cv_prog_CC
1545if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547echo "${ECHO_T}$CC" >&6
1548else
1549 echo "$as_me:$LINENO: result: no" >&5
1550echo "${ECHO_T}no" >&6
1551fi
1552
1553fi
1554if test -z "$ac_cv_prog_CC"; then
1555 ac_ct_CC=$CC
1556 # Extract the first word of "cc", so it can be a program name with args.
1557set dummy cc; ac_word=$2
1558echo "$as_me:$LINENO: checking for $ac_word" >&5
1559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565else
1566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="cc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1576 fi
1577done
1578done
1579
1580fi
1581fi
1582ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585echo "${ECHO_T}$ac_ct_CC" >&6
1586else
1587 echo "$as_me:$LINENO: result: no" >&5
1588echo "${ECHO_T}no" >&6
1589fi
1590
1591 CC=$ac_ct_CC
1592else
1593 CC="$ac_cv_prog_CC"
1594fi
1595
1596fi
1597if test -z "$CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599set dummy cc; ac_word=$2
1600echo "$as_me:$LINENO: checking for $ac_word" >&5
1601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607else
1608 ac_prog_rejected=no
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617 ac_prog_rejected=yes
1618 continue
1619 fi
1620 ac_cv_prog_CC="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624done
1625done
1626
1627if test $ac_prog_rejected = yes; then
1628 # We found a bogon in the path, so make sure we never use it.
1629 set dummy $ac_cv_prog_CC
1630 shift
1631 if test $# != 0; then
1632 # We chose a different compiler from the bogus one.
1633 # However, it has the same basename, so the bogon will be chosen
1634 # first if we set CC to just the basename; use the full file name.
1635 shift
1636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1637 fi
1638fi
1639fi
1640fi
1641CC=$ac_cv_prog_CC
1642if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644echo "${ECHO_T}$CC" >&6
1645else
1646 echo "$as_me:$LINENO: result: no" >&5
1647echo "${ECHO_T}no" >&6
1648fi
1649
1650fi
1651if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 for ac_prog in cl
1654 do
1655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657echo "$as_me:$LINENO: checking for $ac_word" >&5
1658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664else
1665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666for as_dir in $PATH
1667do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676done
1677done
1678
1679fi
1680fi
1681CC=$ac_cv_prog_CC
1682if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684echo "${ECHO_T}$CC" >&6
1685else
1686 echo "$as_me:$LINENO: result: no" >&5
1687echo "${ECHO_T}no" >&6
1688fi
1689
1690 test -n "$CC" && break
1691 done
1692fi
1693if test -z "$CC"; then
1694 ac_ct_CC=$CC
1695 for ac_prog in cl
1696do
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698set dummy $ac_prog; ac_word=$2
1699echo "$as_me:$LINENO: checking for $ac_word" >&5
1700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706else
1707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1717 fi
1718done
1719done
1720
1721fi
1722fi
1723ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724if test -n "$ac_ct_CC"; then
1725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726echo "${ECHO_T}$ac_ct_CC" >&6
1727else
1728 echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730fi
1731
1732 test -n "$ac_ct_CC" && break
1733done
1734
1735 CC=$ac_ct_CC
1736fi
1737
1738fi
1739
1740
1741test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1742See \`config.log' for more details." >&5
1743echo "$as_me: error: no acceptable C compiler found in \$PATH
1744See \`config.log' for more details." >&2;}
1745 { (exit 1); exit 1; }; }
1746
1747# Provide some information about the compiler.
1748echo "$as_me:$LINENO:" \
1749 "checking for C compiler version" >&5
1750ac_compiler=`set X $ac_compile; echo $2`
1751{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 ac_status=$?
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1761{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1766
1767cat >conftest.$ac_ext <<_ACEOF
1768/* confdefs.h. */
1769_ACEOF
1770cat confdefs.h >>conftest.$ac_ext
1771cat >>conftest.$ac_ext <<_ACEOF
1772/* end confdefs.h. */
1773
1774int
1775main ()
1776{
1777
1778 ;
1779 return 0;
1780}
1781_ACEOF
1782ac_clean_files_save=$ac_clean_files
1783ac_clean_files="$ac_clean_files a.out a.exe b.out"
1784# Try to create an executable without -o first, disregard a.out.
1785# It will help us diagnose broken compilers, and finding out an intuition
1786# of exeext.
1787echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1788echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1789ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1790if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1791 (eval $ac_link_default) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; then
1795 # Find the output, starting from the most likely. This scheme is
1796# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797# resort.
1798
1799# Be careful to initialize this variable, since it used to be cached.
1800# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801ac_cv_exeext=
1802# b.out is created by i960 compilers.
1803for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1804do
1805 test -f "$ac_file" || continue
1806 case $ac_file in
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1808 ;;
1809 conftest.$ac_ext )
1810 # This is the source file.
1811 ;;
1812 [ab].out )
1813 # We found the default executable, but exeext='' is most
1814 # certainly right.
1815 break;;
1816 *.* )
1817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818 # FIXME: I believe we export ac_cv_exeext for Libtool,
1819 # but it would be cool to find out if it's true. Does anybody
1820 # maintain Libtool? --akim.
1821 export ac_cv_exeext
1822 break;;
1823 * )
1824 break;;
1825 esac
1826done
1827else
1828 echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1832See \`config.log' for more details." >&5
1833echo "$as_me: error: C compiler cannot create executables
1834See \`config.log' for more details." >&2;}
1835 { (exit 77); exit 77; }; }
1836fi
1837
1838ac_exeext=$ac_cv_exeext
1839echo "$as_me:$LINENO: result: $ac_file" >&5
1840echo "${ECHO_T}$ac_file" >&6
1841
1842# Check the compiler produces executables we can run. If not, either
1843# the compiler is broken, or we cross compile.
1844echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1845echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1846# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1847# If not cross compiling, check that we can run a simple program.
1848if test "$cross_compiling" != yes; then
1849 if { ac_try='./$ac_file'
1850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 cross_compiling=no
1856 else
1857 if test "$cross_compiling" = maybe; then
1858 cross_compiling=yes
1859 else
1860 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1861If you meant to cross compile, use \`--host'.
1862See \`config.log' for more details." >&5
1863echo "$as_me: error: cannot run C compiled programs.
1864If you meant to cross compile, use \`--host'.
1865See \`config.log' for more details." >&2;}
1866 { (exit 1); exit 1; }; }
1867 fi
1868 fi
1869fi
1870echo "$as_me:$LINENO: result: yes" >&5
1871echo "${ECHO_T}yes" >&6
1872
1873rm -f a.out a.exe conftest$ac_cv_exeext b.out
1874ac_clean_files=$ac_clean_files_save
1875# Check the compiler produces executables we can run. If not, either
1876# the compiler is broken, or we cross compile.
1877echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1878echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1879echo "$as_me:$LINENO: result: $cross_compiling" >&5
1880echo "${ECHO_T}$cross_compiling" >&6
1881
1882echo "$as_me:$LINENO: checking for suffix of executables" >&5
1883echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1885 (eval $ac_link) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; then
1889 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1890# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1891# work properly (i.e., refer to `conftest.exe'), while it won't with
1892# `rm'.
1893for ac_file in conftest.exe conftest conftest.*; do
1894 test -f "$ac_file" || continue
1895 case $ac_file in
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1897 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 export ac_cv_exeext
1899 break;;
1900 * ) break;;
1901 esac
1902done
1903else
1904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1905See \`config.log' for more details." >&5
1906echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1907See \`config.log' for more details." >&2;}
1908 { (exit 1); exit 1; }; }
1909fi
1910
1911rm -f conftest$ac_cv_exeext
1912echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1913echo "${ECHO_T}$ac_cv_exeext" >&6
1914
1915rm -f conftest.$ac_ext
1916EXEEXT=$ac_cv_exeext
1917ac_exeext=$EXEEXT
1918echo "$as_me:$LINENO: checking for suffix of object files" >&5
1919echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1920if test "${ac_cv_objext+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922else
1923 cat >conftest.$ac_ext <<_ACEOF
1924/* confdefs.h. */
1925_ACEOF
1926cat confdefs.h >>conftest.$ac_ext
1927cat >>conftest.$ac_ext <<_ACEOF
1928/* end confdefs.h. */
1929
1930int
1931main ()
1932{
1933
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938rm -f conftest.o conftest.obj
1939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945 case $ac_file in
1946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948 break;;
1949 esac
1950done
1951else
1952 echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1956See \`config.log' for more details." >&5
1957echo "$as_me: error: cannot compute suffix of object files: cannot compile
1958See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1960fi
1961
1962rm -f conftest.$ac_cv_objext conftest.$ac_ext
1963fi
1964echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1965echo "${ECHO_T}$ac_cv_objext" >&6
1966OBJEXT=$ac_cv_objext
1967ac_objext=$OBJEXT
1968echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1969echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 cat >conftest.$ac_ext <<_ACEOF
1974/* confdefs.h. */
1975_ACEOF
1976cat confdefs.h >>conftest.$ac_ext
1977cat >>conftest.$ac_ext <<_ACEOF
1978/* end confdefs.h. */
1979
1980int
1981main ()
1982{
1983#ifndef __GNUC__
1984 choke me
1985#endif
1986
1987 ;
1988 return 0;
1989}
1990_ACEOF
1991rm -f conftest.$ac_objext
1992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>conftest.er1
1994 ac_status=$?
1995 grep -v '^ *+' conftest.er1 >conftest.err
1996 rm -f conftest.er1
1997 cat conftest.err >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
7f266840 2000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 ac_compiler_gnu=yes
2013else
2014 echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
2016
2017ac_compiler_gnu=no
2018fi
2019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020ac_cv_c_compiler_gnu=$ac_compiler_gnu
2021
2022fi
2023echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2024echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2025GCC=`test $ac_compiler_gnu = yes && echo yes`
2026ac_test_CFLAGS=${CFLAGS+set}
2027ac_save_CFLAGS=$CFLAGS
2028CFLAGS="-g"
2029echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2030echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2031if test "${ac_cv_prog_cc_g+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
2034 cat >conftest.$ac_ext <<_ACEOF
2035/* confdefs.h. */
2036_ACEOF
2037cat confdefs.h >>conftest.$ac_ext
2038cat >>conftest.$ac_ext <<_ACEOF
2039/* end confdefs.h. */
2040
2041int
2042main ()
2043{
2044
2045 ;
2046 return 0;
2047}
2048_ACEOF
2049rm -f conftest.$ac_objext
2050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051 (eval $ac_compile) 2>conftest.er1
2052 ac_status=$?
2053 grep -v '^ *+' conftest.er1 >conftest.err
2054 rm -f conftest.er1
2055 cat conftest.err >&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
7f266840 2058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071else
2072 echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075ac_cv_prog_cc_g=no
2076fi
2077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078fi
2079echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2088 fi
2089else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2094 fi
2095fi
2096echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101 ac_cv_prog_cc_stdc=no
2102ac_save_CC=$CC
2103cat >conftest.$ac_ext <<_ACEOF
2104/* confdefs.h. */
2105_ACEOF
2106cat confdefs.h >>conftest.$ac_ext
2107cat >>conftest.$ac_ext <<_ACEOF
2108/* end confdefs.h. */
2109#include <stdarg.h>
2110#include <stdio.h>
2111#include <sys/types.h>
2112#include <sys/stat.h>
2113/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114struct buf { int x; };
2115FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116static char *e (p, i)
2117 char **p;
2118 int i;
2119{
2120 return p[i];
2121}
2122static char *f (char * (*g) (char **, int), char **p, ...)
2123{
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2130}
2131
2132/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140
2141int test (int i, double x);
2142struct s1 {int (*f) (int a);};
2143struct s2 {int (*f) (double a);};
2144int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145int argc;
2146char **argv;
2147int
2148main ()
2149{
2150return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 ;
2152 return 0;
2153}
2154_ACEOF
2155# Don't try gcc -ansi; that turns off useful extensions and
2156# breaks some systems' header files.
2157# AIX -qlanglvl=ansi
2158# Ultrix and OSF/1 -std1
2159# HP-UX 10.20 and later -Ae
2160# HP-UX older versions -Aa -D_HPUX_SOURCE
2161# SVR4 -Xc -D__EXTENSIONS__
2162for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163do
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
7f266840 2174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2187break
2188else
2189 echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192fi
2193rm -f conftest.err conftest.$ac_objext
2194done
2195rm -f conftest.$ac_ext conftest.$ac_objext
2196CC=$ac_save_CC
2197
2198fi
2199
2200case "x$ac_cv_prog_cc_stdc" in
2201 x|xno)
2202 echo "$as_me:$LINENO: result: none needed" >&5
2203echo "${ECHO_T}none needed" >&6 ;;
2204 *)
2205 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208esac
2209
2210# Some people use a C++ compiler to compile C. Since we use `exit',
2211# in C++ we need to declare it. In case someone uses the same compiler
2212# for both compiling C and C++ we need to have the C++ compiler decide
2213# the declaration of exit, since it's the most demanding environment.
2214cat >conftest.$ac_ext <<_ACEOF
2215#ifndef __cplusplus
2216 choke me
2217#endif
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2222 ac_status=$?
2223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
7f266840 2228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 for ac_declaration in \
2241 '' \
2242 'extern "C" void std::exit (int) throw (); using std::exit;' \
2243 'extern "C" void std::exit (int); using std::exit;' \
2244 'extern "C" void exit (int) throw ();' \
2245 'extern "C" void exit (int);' \
2246 'void exit (int);'
2247do
2248 cat >conftest.$ac_ext <<_ACEOF
2249/* confdefs.h. */
2250_ACEOF
2251cat confdefs.h >>conftest.$ac_ext
2252cat >>conftest.$ac_ext <<_ACEOF
2253/* end confdefs.h. */
2254$ac_declaration
2255#include <stdlib.h>
2256int
2257main ()
2258{
2259exit (42);
2260 ;
2261 return 0;
2262}
2263_ACEOF
2264rm -f conftest.$ac_objext
2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>conftest.er1
2267 ac_status=$?
2268 grep -v '^ *+' conftest.er1 >conftest.err
2269 rm -f conftest.er1
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
7f266840 2273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; } &&
2279 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2285 :
2286else
2287 echo "$as_me: failed program was:" >&5
2288sed 's/^/| /' conftest.$ac_ext >&5
2289
2290continue
2291fi
2292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293 cat >conftest.$ac_ext <<_ACEOF
2294/* confdefs.h. */
2295_ACEOF
2296cat confdefs.h >>conftest.$ac_ext
2297cat >>conftest.$ac_ext <<_ACEOF
2298/* end confdefs.h. */
2299$ac_declaration
2300int
2301main ()
2302{
2303exit (42);
2304 ;
2305 return 0;
2306}
2307_ACEOF
2308rm -f conftest.$ac_objext
2309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>conftest.er1
2311 ac_status=$?
2312 grep -v '^ *+' conftest.er1 >conftest.err
2313 rm -f conftest.er1
2314 cat conftest.err >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
7f266840 2317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 break
2330else
2331 echo "$as_me: failed program was:" >&5
2332sed 's/^/| /' conftest.$ac_ext >&5
2333
2334fi
2335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2336done
2337rm -f conftest*
2338if test -n "$ac_declaration"; then
2339 echo '#ifdef __cplusplus' >>confdefs.h
2340 echo $ac_declaration >>confdefs.h
2341 echo '#endif' >>confdefs.h
2342fi
2343
2344else
2345 echo "$as_me: failed program was:" >&5
2346sed 's/^/| /' conftest.$ac_ext >&5
2347
2348fi
2349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350ac_ext=c
2351ac_cpp='$CPP $CPPFLAGS'
2352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356
f5385ebf
AM
2357echo "$as_me:$LINENO: checking for library containing strerror" >&5
2358echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2359if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361else
f5385ebf
AM
2362 ac_func_search_save_LIBS=$LIBS
2363ac_cv_search_strerror=no
5464f5a1
NN
2364cat >conftest.$ac_ext <<_ACEOF
2365/* confdefs.h. */
2366_ACEOF
2367cat confdefs.h >>conftest.$ac_ext
2368cat >>conftest.$ac_ext <<_ACEOF
2369/* end confdefs.h. */
2370
2371/* Override any gcc2 internal prototype to avoid an error. */
2372#ifdef __cplusplus
2373extern "C"
2374#endif
2375/* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2377char strerror ();
2378int
2379main ()
2380{
2381strerror ();
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386rm -f conftest.$ac_objext conftest$ac_exeext
2387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2388 (eval $ac_link) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
7f266840 2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest$ac_exeext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
f5385ebf 2407 ac_cv_search_strerror="none required"
5464f5a1
NN
2408else
2409 echo "$as_me: failed program was:" >&5
2410sed 's/^/| /' conftest.$ac_ext >&5
2411
5464f5a1
NN
2412fi
2413rm -f conftest.err conftest.$ac_objext \
2414 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2415if test "$ac_cv_search_strerror" = no; then
2416 for ac_lib in cposix; do
2417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2418 cat >conftest.$ac_ext <<_ACEOF
2419/* confdefs.h. */
2420_ACEOF
2421cat confdefs.h >>conftest.$ac_ext
2422cat >>conftest.$ac_ext <<_ACEOF
2423/* end confdefs.h. */
2424
2425/* Override any gcc2 internal prototype to avoid an error. */
2426#ifdef __cplusplus
2427extern "C"
2428#endif
2429/* We use char because int might match the return type of a gcc2
2430 builtin and then its argument prototype would still apply. */
2431char strerror ();
2432int
2433main ()
2434{
2435strerror ();
2436 ;
2437 return 0;
2438}
2439_ACEOF
2440rm -f conftest.$ac_objext conftest$ac_exeext
2441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2442 (eval $ac_link) 2>conftest.er1
2443 ac_status=$?
2444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
7f266840 2449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f5385ebf
AM
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; } &&
2455 { ac_try='test -s conftest$ac_exeext'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2461 ac_cv_search_strerror="-l$ac_lib"
2462break
2463else
2464 echo "$as_me: failed program was:" >&5
2465sed 's/^/| /' conftest.$ac_ext >&5
2466
5464f5a1 2467fi
f5385ebf
AM
2468rm -f conftest.err conftest.$ac_objext \
2469 conftest$ac_exeext conftest.$ac_ext
2470 done
5464f5a1 2471fi
f5385ebf
AM
2472LIBS=$ac_func_search_save_LIBS
2473fi
2474echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2475echo "${ECHO_T}$ac_cv_search_strerror" >&6
2476if test "$ac_cv_search_strerror" != no; then
2477 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2478
f5385ebf 2479fi
5464f5a1
NN
2480
2481
f5385ebf 2482am__api_version="1.9"
5464f5a1
NN
2483# Find a good install program. We prefer a C program (faster),
2484# so one script is as good as another. But avoid the broken or
2485# incompatible versions:
2486# SysV /etc/install, /usr/sbin/install
2487# SunOS /usr/etc/install
2488# IRIX /sbin/install
2489# AIX /bin/install
2490# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2491# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2492# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2493# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2494# OS/2's system install, which has a completely different semantic
252b5132 2495# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2496echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2497echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2498if test -z "$INSTALL"; then
5464f5a1
NN
2499if test "${ac_cv_path_install+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2501else
5464f5a1
NN
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503for as_dir in $PATH
2504do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 # Account for people who put trailing slashes in PATH elements.
2508case $as_dir/ in
2509 ./ | .// | /cC/* | \
2510 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2511 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2512 /usr/ucb/* ) ;;
2513 *)
2514 # OSF1 and SCO ODT 3.0 have their own names for install.
2515 # Don't use installbsd from OSF since it installs stuff as root
2516 # by default.
2517 for ac_prog in ginstall scoinst install; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2520 if test $ac_prog = install &&
5464f5a1 2521 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2522 # AIX install. It has an incompatible calling convention.
2523 :
5464f5a1
NN
2524 elif test $ac_prog = install &&
2525 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # program-specific install script used by HP pwplus--don't use.
2527 :
252b5132 2528 else
5464f5a1
NN
2529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2530 break 3
252b5132
RH
2531 fi
2532 fi
2533 done
5464f5a1
NN
2534 done
2535 ;;
2536esac
2537done
2538
252b5132
RH
2539
2540fi
2541 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2542 INSTALL=$ac_cv_path_install
252b5132
RH
2543 else
2544 # As a last resort, use the slow shell script. We don't cache a
2545 # path for INSTALL within a source directory, because that will
2546 # break other packages using the cache if that directory is
2547 # removed, or if the path is relative.
5464f5a1 2548 INSTALL=$ac_install_sh
252b5132
RH
2549 fi
2550fi
5464f5a1
NN
2551echo "$as_me:$LINENO: result: $INSTALL" >&5
2552echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2553
2554# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2555# It thinks the first close brace ends the variable substitution.
2556test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2557
5464f5a1 2558test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2559
2560test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2561
5464f5a1
NN
2562echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2563echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2564# Just in case
2565sleep 1
f5385ebf 2566echo timestamp > conftest.file
252b5132
RH
2567# Do `set' in a subshell so we don't clobber the current shell's
2568# arguments. Must try -L first in case configure is actually a
2569# symlink; some systems play weird games with the mod time of symlinks
2570# (eg FreeBSD returns the mod time of the symlink's containing
2571# directory).
2572if (
f5385ebf 2573 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2574 if test "$*" = "X"; then
2575 # -L didn't work.
f5385ebf 2576 set X `ls -t $srcdir/configure conftest.file`
252b5132 2577 fi
f5385ebf
AM
2578 rm -f conftest.file
2579 if test "$*" != "X $srcdir/configure conftest.file" \
2580 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2581
2582 # If neither matched, then we have a broken ls. This can happen
2583 # if, for instance, CONFIG_SHELL is bash and it inherits a
2584 # broken ls alias from the environment. This has actually
2585 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2586 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2587alias in your environment" >&5
2588echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2589alias in your environment" >&2;}
2590 { (exit 1); exit 1; }; }
252b5132
RH
2591 fi
2592
f5385ebf 2593 test "$2" = conftest.file
252b5132
RH
2594 )
2595then
2596 # Ok.
2597 :
2598else
5464f5a1
NN
2599 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2600Check your system clock" >&5
2601echo "$as_me: error: newly created file is older than distributed files!
2602Check your system clock" >&2;}
2603 { (exit 1); exit 1; }; }
252b5132 2604fi
5464f5a1
NN
2605echo "$as_me:$LINENO: result: yes" >&5
2606echo "${ECHO_T}yes" >&6
252b5132 2607test "$program_prefix" != NONE &&
5464f5a1 2608 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2609# Use a double $ so make ignores it.
2610test "$program_suffix" != NONE &&
5464f5a1
NN
2611 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2612# Double any \ or $. echo might interpret backslashes.
2613# By default was `s,x,x', remove it if useless.
2614cat <<\_ACEOF >conftest.sed
2615s/[\\$]/&&/g;s/;s,x,x,$//
2616_ACEOF
2617program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2618rm conftest.sed
2619
f5385ebf
AM
2620# expand $ac_aux_dir to an absolute path
2621am_aux_dir=`cd $ac_aux_dir && pwd`
2622
2623test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2624# Use eval to expand $SHELL
2625if eval "$MISSING --run true"; then
2626 am_missing_run="$MISSING --run "
2627else
2628 am_missing_run=
2629 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2630echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2631fi
2632
2633if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2634 # We used to keeping the `.' as first argument, in order to
2635 # allow $(mkdir_p) to be used without argument. As in
2636 # $(mkdir_p) $(somedir)
2637 # where $(somedir) is conditionally defined. However this is wrong
2638 # for two reasons:
2639 # 1. if the package is installed by a user who cannot write `.'
2640 # make install will fail,
2641 # 2. the above comment should most certainly read
2642 # $(mkdir_p) $(DESTDIR)$(somedir)
2643 # so it does not work when $(somedir) is undefined and
2644 # $(DESTDIR) is not.
2645 # To support the latter case, we have to write
2646 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2647 # so the `.' trick is pointless.
2648 mkdir_p='mkdir -p --'
2649else
2650 # On NextStep and OpenStep, the `mkdir' command does not
2651 # recognize any option. It will interpret all options as
2652 # directories to create, and then abort because `.' already
2653 # exists.
2654 for d in ./-p ./--version;
2655 do
2656 test -d $d && rmdir $d
2657 done
2658 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2659 if test -f "$ac_aux_dir/mkinstalldirs"; then
2660 mkdir_p='$(mkinstalldirs)'
2661 else
2662 mkdir_p='$(install_sh) -d'
2663 fi
2664fi
2665
2666for ac_prog in gawk mawk nawk awk
2667do
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669set dummy $ac_prog; ac_word=$2
2670echo "$as_me:$LINENO: checking for $ac_word" >&5
2671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2672if test "${ac_cv_prog_AWK+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674else
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677else
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689done
2690done
2691
2692fi
2693fi
2694AWK=$ac_cv_prog_AWK
2695if test -n "$AWK"; then
2696 echo "$as_me:$LINENO: result: $AWK" >&5
2697echo "${ECHO_T}$AWK" >&6
2698else
2699 echo "$as_me:$LINENO: result: no" >&5
2700echo "${ECHO_T}no" >&6
2701fi
2702
2703 test -n "$AWK" && break
2704done
2705
5464f5a1
NN
2706echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2707echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2708set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2709if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711else
2712 cat >conftest.make <<\_ACEOF
252b5132 2713all:
5464f5a1
NN
2714 @echo 'ac_maketemp="$(MAKE)"'
2715_ACEOF
252b5132 2716# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2717eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2718if test -n "$ac_maketemp"; then
2719 eval ac_cv_prog_make_${ac_make}_set=yes
2720else
2721 eval ac_cv_prog_make_${ac_make}_set=no
2722fi
5464f5a1 2723rm -f conftest.make
252b5132
RH
2724fi
2725if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2726 echo "$as_me:$LINENO: result: yes" >&5
2727echo "${ECHO_T}yes" >&6
252b5132
RH
2728 SET_MAKE=
2729else
5464f5a1
NN
2730 echo "$as_me:$LINENO: result: no" >&5
2731echo "${ECHO_T}no" >&6
252b5132
RH
2732 SET_MAKE="MAKE=${MAKE-make}"
2733fi
2734
f5385ebf
AM
2735rm -rf .tst 2>/dev/null
2736mkdir .tst 2>/dev/null
2737if test -d .tst; then
2738 am__leading_dot=.
2739else
2740 am__leading_dot=_
2741fi
2742rmdir .tst 2>/dev/null
2743
2744DEPDIR="${am__leading_dot}deps"
2745
2746 ac_config_commands="$ac_config_commands depfiles"
2747
2748
2749am_make=${MAKE-make}
2750cat > confinc << 'END'
2751am__doit:
2752 @echo done
2753.PHONY: am__doit
2754END
2755# If we don't find an include directive, just comment out the code.
2756echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2757echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2758am__include="#"
2759am__quote=
2760_am_result=none
2761# First try GNU make style include.
2762echo "include confinc" > confmf
2763# We grep out `Entering directory' and `Leaving directory'
2764# messages which can occur if `w' ends up in MAKEFLAGS.
2765# In particular we don't look at `^make:' because GNU make might
2766# be invoked under some other name (usually "gmake"), in which
2767# case it prints its new name instead of `make'.
2768if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2769 am__include=include
2770 am__quote=
2771 _am_result=GNU
2772fi
2773# Now try BSD make style include.
2774if test "$am__include" = "#"; then
2775 echo '.include "confinc"' > confmf
2776 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2777 am__include=.include
2778 am__quote="\""
2779 _am_result=BSD
2780 fi
2781fi
2782
2783
2784echo "$as_me:$LINENO: result: $_am_result" >&5
2785echo "${ECHO_T}$_am_result" >&6
2786rm -f confinc confmf
2787
2788# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2789if test "${enable_dependency_tracking+set}" = set; then
2790 enableval="$enable_dependency_tracking"
2791
2792fi;
2793if test "x$enable_dependency_tracking" != xno; then
2794 am_depcomp="$ac_aux_dir/depcomp"
2795 AMDEPBACKSLASH='\'
2796fi
2797
2798
2799if test "x$enable_dependency_tracking" != xno; then
2800 AMDEP_TRUE=
2801 AMDEP_FALSE='#'
2802else
2803 AMDEP_TRUE='#'
2804 AMDEP_FALSE=
2805fi
6be7c12c 2806
252b5132 2807
252b5132 2808
f5385ebf
AM
2809# test to see if srcdir already configured
2810if test "`cd $srcdir && pwd`" != "`pwd`" &&
2811 test -f $srcdir/config.status; then
5464f5a1
NN
2812 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2813echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2814 { (exit 1); exit 1; }; }
252b5132 2815fi
5464f5a1 2816
f5385ebf
AM
2817# test whether we have cygpath
2818if test -z "$CYGPATH_W"; then
2819 if (cygpath --version) >/dev/null 2>/dev/null; then
2820 CYGPATH_W='cygpath -w'
2821 else
2822 CYGPATH_W=echo
2823 fi
2824fi
2825
2826
2827# Define the identity of the package.
2828 PACKAGE=bfd
8697aafb 2829 VERSION=2.15.94
f5385ebf
AM
2830
2831
5464f5a1 2832cat >>confdefs.h <<_ACEOF
252b5132 2833#define PACKAGE "$PACKAGE"
5464f5a1 2834_ACEOF
252b5132 2835
5464f5a1
NN
2836
2837cat >>confdefs.h <<_ACEOF
252b5132 2838#define VERSION "$VERSION"
5464f5a1 2839_ACEOF
252b5132 2840
f5385ebf
AM
2841# Some tools Automake needs.
2842
2843ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2844
2845
2846AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2847
2848
2849AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2850
2851
2852AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2853
2854
2855MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2856
f5385ebf 2857install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2858
f5385ebf
AM
2859# Installed binaries are usually stripped using `strip' when the user
2860# run `make install-strip'. However `strip' might not be the right
2861# tool to use in cross-compilation environments, therefore Automake
2862# will honor the `STRIP' environment variable to overrule this program.
2863if test "$cross_compiling" != no; then
2864 if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2866set dummy ${ac_tool_prefix}strip; ac_word=$2
2867echo "$as_me:$LINENO: checking for $ac_word" >&5
2868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869if test "${ac_cv_prog_STRIP+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871else
2872 if test -n "$STRIP"; then
2873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2874else
f5385ebf
AM
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2885 fi
2886done
2887done
2888
2889fi
2890fi
2891STRIP=$ac_cv_prog_STRIP
2892if test -n "$STRIP"; then
2893 echo "$as_me:$LINENO: result: $STRIP" >&5
2894echo "${ECHO_T}$STRIP" >&6
2895else
2896 echo "$as_me:$LINENO: result: no" >&5
2897echo "${ECHO_T}no" >&6
2898fi
2899
252b5132 2900fi
f5385ebf
AM
2901if test -z "$ac_cv_prog_STRIP"; then
2902 ac_ct_STRIP=$STRIP
2903 # Extract the first word of "strip", so it can be a program name with args.
2904set dummy strip; ac_word=$2
2905echo "$as_me:$LINENO: checking for $ac_word" >&5
2906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2907if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910 if test -n "$ac_ct_STRIP"; then
2911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_ac_ct_STRIP="strip"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924done
2925done
252b5132 2926
f5385ebf
AM
2927 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2928fi
2929fi
2930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2931if test -n "$ac_ct_STRIP"; then
2932 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2933echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2934else
f5385ebf
AM
2935 echo "$as_me:$LINENO: result: no" >&5
2936echo "${ECHO_T}no" >&6
252b5132
RH
2937fi
2938
f5385ebf 2939 STRIP=$ac_ct_STRIP
252b5132 2940else
f5385ebf
AM
2941 STRIP="$ac_cv_prog_STRIP"
2942fi
2943
252b5132 2944fi
f5385ebf
AM
2945INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2946
2947# We need awk for the "check" target. The system "awk" is bad on
2948# some platforms.
2949# Always define AMTAR for backward compatibility.
2950
2951AMTAR=${AMTAR-"${am_missing_run}tar"}
2952
2953am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2954
252b5132 2955
f5385ebf
AM
2956
2957
2958depcc="$CC" am_compiler_list=
2959
2960echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2961echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2962if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2964else
f5385ebf
AM
2965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2966 # We make a subdir and do the tests there. Otherwise we can end up
2967 # making bogus files that we don't know about and never remove. For
2968 # instance it was reported that on HP-UX the gcc test will end up
2969 # making a dummy file named `D' -- because `-MD' means `put the output
2970 # in D'.
2971 mkdir conftest.dir
2972 # Copy depcomp to subdir because otherwise we won't find it if we're
2973 # using a relative directory.
2974 cp "$am_depcomp" conftest.dir
2975 cd conftest.dir
2976 # We will build objects and dependencies in a subdirectory because
2977 # it helps to detect inapplicable dependency modes. For instance
2978 # both Tru64's cc and ICC support -MD to output dependencies as a
2979 # side effect of compilation, but ICC will put the dependencies in
2980 # the current directory while Tru64 will put them in the object
2981 # directory.
2982 mkdir sub
2983
2984 am_cv_CC_dependencies_compiler_type=none
2985 if test "$am_compiler_list" = ""; then
2986 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2987 fi
2988 for depmode in $am_compiler_list; do
2989 # Setup a source with many dependencies, because some compilers
2990 # like to wrap large dependency lists on column 80 (with \), and
2991 # we should not choose a depcomp mode which is confused by this.
2992 #
2993 # We need to recreate these files for each test, as the compiler may
2994 # overwrite some of them when testing with obscure command lines.
2995 # This happens at least with the AIX C compiler.
2996 : > sub/conftest.c
2997 for i in 1 2 3 4 5 6; do
2998 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2999 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3000 # Solaris 8's {/usr,}/bin/sh.
3001 touch sub/conftst$i.h
3002 done
3003 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3004
3005 case $depmode in
3006 nosideeffect)
3007 # after this tag, mechanisms are not by side-effect, so they'll
3008 # only be used when explicitly requested
3009 if test "x$enable_dependency_tracking" = xyes; then
3010 continue
3011 else
3012 break
3013 fi
3014 ;;
3015 none) break ;;
3016 esac
3017 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3018 # mode. It turns out that the SunPro C++ compiler does not properly
3019 # handle `-M -o', and we need to detect this.
3020 if depmode=$depmode \
3021 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3022 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3023 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3024 >/dev/null 2>conftest.err &&
3025 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3026 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3027 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3028 # icc doesn't choke on unknown options, it will just issue warnings
3029 # or remarks (even with -Werror). So we grep stderr for any message
3030 # that says an option was ignored or not supported.
3031 # When given -MP, icc 7.0 and 7.1 complain thusly:
3032 # icc: Command line warning: ignoring option '-M'; no argument required
3033 # The diagnosis changed in icc 8.0:
3034 # icc: Command line remark: option '-MP' not supported
3035 if (grep 'ignoring option' conftest.err ||
3036 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3037 am_cv_CC_dependencies_compiler_type=$depmode
3038 break
3039 fi
3040 fi
3041 done
3042
3043 cd ..
3044 rm -rf conftest.dir
3045else
3046 am_cv_CC_dependencies_compiler_type=none
3047fi
3048
252b5132 3049fi
f5385ebf
AM
3050echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3051echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3052CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3053
f5385ebf
AM
3054
3055
3056if
3057 test "x$enable_dependency_tracking" != xno \
3058 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3059 am__fastdepCC_TRUE=
3060 am__fastdepCC_FALSE='#'
252b5132 3061else
f5385ebf
AM
3062 am__fastdepCC_TRUE='#'
3063 am__fastdepCC_FALSE=
252b5132
RH
3064fi
3065
6be7c12c 3066
e43d48cc 3067
f5385ebf 3068
5464f5a1
NN
3069if test -n "$ac_tool_prefix"; then
3070 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3071set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3072echo "$as_me:$LINENO: checking for $ac_word" >&5
3073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3074if test "${ac_cv_prog_AR+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3076else
3077 if test -n "$AR"; then
3078 ac_cv_prog_AR="$AR" # Let the user override the test.
3079else
5464f5a1
NN
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_AR="${ac_tool_prefix}ar"
3088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091done
3092done
3093
252b5132
RH
3094fi
3095fi
5464f5a1 3096AR=$ac_cv_prog_AR
252b5132 3097if test -n "$AR"; then
5464f5a1
NN
3098 echo "$as_me:$LINENO: result: $AR" >&5
3099echo "${ECHO_T}$AR" >&6
252b5132 3100else
5464f5a1
NN
3101 echo "$as_me:$LINENO: result: no" >&5
3102echo "${ECHO_T}no" >&6
3103fi
3104
252b5132 3105fi
5464f5a1
NN
3106if test -z "$ac_cv_prog_AR"; then
3107 ac_ct_AR=$AR
3108 # Extract the first word of "ar", so it can be a program name with args.
3109set dummy ar; ac_word=$2
3110echo "$as_me:$LINENO: checking for $ac_word" >&5
3111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 if test -n "$ac_ct_AR"; then
3116 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_ac_ct_AR="ar"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129done
3130done
252b5132 3131
5464f5a1
NN
3132fi
3133fi
3134ac_ct_AR=$ac_cv_prog_ac_ct_AR
3135if test -n "$ac_ct_AR"; then
3136 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3137echo "${ECHO_T}$ac_ct_AR" >&6
3138else
3139 echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
3141fi
252b5132 3142
5464f5a1
NN
3143 AR=$ac_ct_AR
3144else
3145 AR="$ac_cv_prog_AR"
3146fi
6be7c12c 3147
5464f5a1
NN
3148if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3150set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3151echo "$as_me:$LINENO: checking for $ac_word" >&5
3152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153if test "${ac_cv_prog_RANLIB+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3155else
3156 if test -n "$RANLIB"; then
3157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3158else
5464f5a1
NN
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3169 fi
3170done
3171done
3172
252b5132
RH
3173fi
3174fi
5464f5a1 3175RANLIB=$ac_cv_prog_RANLIB
252b5132 3176if test -n "$RANLIB"; then
5464f5a1
NN
3177 echo "$as_me:$LINENO: result: $RANLIB" >&5
3178echo "${ECHO_T}$RANLIB" >&6
252b5132 3179else
5464f5a1
NN
3180 echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
252b5132
RH
3182fi
3183
5464f5a1 3184fi
252b5132 3185if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3186 ac_ct_RANLIB=$RANLIB
252b5132
RH
3187 # Extract the first word of "ranlib", so it can be a program name with args.
3188set dummy ranlib; ac_word=$2
5464f5a1
NN
3189echo "$as_me:$LINENO: checking for $ac_word" >&5
3190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3193else
5464f5a1
NN
3194 if test -n "$ac_ct_RANLIB"; then
3195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3196else
5464f5a1
NN
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_ac_ct_RANLIB="ranlib"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3207 fi
3208done
3209done
3210
3211 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3212fi
3213fi
5464f5a1
NN
3214ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3215if test -n "$ac_ct_RANLIB"; then
3216 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3217echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3218else
5464f5a1
NN
3219 echo "$as_me:$LINENO: result: no" >&5
3220echo "${ECHO_T}no" >&6
252b5132
RH
3221fi
3222
5464f5a1 3223 RANLIB=$ac_ct_RANLIB
252b5132 3224else
5464f5a1 3225 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3226fi
3227
252b5132
RH
3228
3229# Check whether --enable-shared or --disable-shared was given.
3230if test "${enable_shared+set}" = set; then
3231 enableval="$enable_shared"
3232 p=${PACKAGE-default}
55c80943 3233case $enableval in
252b5132
RH
3234yes) enable_shared=yes ;;
3235no) enable_shared=no ;;
3236*)
3237 enable_shared=no
3238 # Look at the argument we got. We use all the common list separators.
3239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3240 for pkg in $enableval; do
3241 if test "X$pkg" = "X$p"; then
3242 enable_shared=yes
3243 fi
3244 done
3245 IFS="$ac_save_ifs"
3246 ;;
3247esac
3248else
3249 enable_shared=no
5464f5a1 3250fi;
252b5132
RH
3251
3252# Check whether --enable-static or --disable-static was given.
3253if test "${enable_static+set}" = set; then
3254 enableval="$enable_static"
3255 p=${PACKAGE-default}
55c80943 3256case $enableval in
252b5132
RH
3257yes) enable_static=yes ;;
3258no) enable_static=no ;;
3259*)
3260 enable_static=no
3261 # Look at the argument we got. We use all the common list separators.
3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3263 for pkg in $enableval; do
3264 if test "X$pkg" = "X$p"; then
3265 enable_static=yes
3266 fi
3267 done
3268 IFS="$ac_save_ifs"
3269 ;;
3270esac
3271else
3272 enable_static=yes
5464f5a1 3273fi;
b2ef150d
ILT
3274# Check whether --enable-fast-install or --disable-fast-install was given.
3275if test "${enable_fast_install+set}" = set; then
3276 enableval="$enable_fast_install"
3277 p=${PACKAGE-default}
55c80943 3278case $enableval in
b2ef150d
ILT
3279yes) enable_fast_install=yes ;;
3280no) enable_fast_install=no ;;
3281*)
3282 enable_fast_install=no
3283 # Look at the argument we got. We use all the common list separators.
3284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3285 for pkg in $enableval; do
3286 if test "X$pkg" = "X$p"; then
3287 enable_fast_install=yes
3288 fi
3289 done
3290 IFS="$ac_save_ifs"
3291 ;;
3292esac
3293else
3294 enable_fast_install=yes
5464f5a1 3295fi;
c5d1701e 3296
252b5132
RH
3297# Check whether --with-gnu-ld or --without-gnu-ld was given.
3298if test "${with_gnu_ld+set}" = set; then
3299 withval="$with_gnu_ld"
3300 test "$withval" = no || with_gnu_ld=yes
3301else
3302 with_gnu_ld=no
5464f5a1 3303fi;
252b5132 3304ac_prog=ld
55c80943 3305if test "$GCC" = yes; then
252b5132 3306 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
3307 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3308echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3309 case $host in
3310 *-*-mingw*)
3311 # gcc leaves a trailing carriage return which upsets mingw
3312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3313 *)
3314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3315 esac
55c80943 3316 case $ac_prog in
b2ef150d 3317 # Accept absolute paths.
a74801ba 3318 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
3319 re_direlt='/[^/][^/]*/\.\./'
3320 # Canonicalize the path of ld
3321 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3322 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3323 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3324 done
3325 test -z "$LD" && LD="$ac_prog"
3326 ;;
252b5132
RH
3327 "")
3328 # If it fails, then pretend we aren't using GCC.
3329 ac_prog=ld
3330 ;;
3331 *)
3332 # If it is relative, then search for the first ld in PATH.
3333 with_gnu_ld=unknown
3334 ;;
3335 esac
3336elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
3337 echo "$as_me:$LINENO: checking for GNU ld" >&5
3338echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3339else
5464f5a1
NN
3340 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3341echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3342fi
5464f5a1
NN
3343if test "${lt_cv_path_LD+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3345else
3346 if test -z "$LD"; then
a74801ba 3347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3348 for ac_dir in $PATH; do
3349 test -z "$ac_dir" && ac_dir=.
a74801ba 3350 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 3351 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3352 # Check to see if the program is GNU ld. I'd rather use --version,
3353 # but apparently some GNU ld's only accept -v.
3354 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 3355 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3356 test "$with_gnu_ld" != no && break
3357 else
b2ef150d 3358 test "$with_gnu_ld" != yes && break
252b5132
RH
3359 fi
3360 fi
3361 done
3362 IFS="$ac_save_ifs"
3363else
55c80943 3364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3365fi
3366fi
3367
55c80943 3368LD="$lt_cv_path_LD"
252b5132 3369if test -n "$LD"; then
5464f5a1
NN
3370 echo "$as_me:$LINENO: result: $LD" >&5
3371echo "${ECHO_T}$LD" >&6
252b5132 3372else
5464f5a1
NN
3373 echo "$as_me:$LINENO: result: no" >&5
3374echo "${ECHO_T}no" >&6
252b5132 3375fi
5464f5a1
NN
3376test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3377echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3378 { (exit 1); exit 1; }; }
3379echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3380echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3381if test "${lt_cv_prog_gnu_ld+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3383else
3384 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3385if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3386 lt_cv_prog_gnu_ld=yes
252b5132 3387else
55c80943 3388 lt_cv_prog_gnu_ld=no
252b5132
RH
3389fi
3390fi
5464f5a1
NN
3391echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3392echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3393with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3394
6be7c12c 3395
5464f5a1
NN
3396echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3397echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3398if test "${lt_cv_ld_reload_flag+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3400else
3401 lt_cv_ld_reload_flag='-r'
3402fi
5464f5a1
NN
3403echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3404echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3405reload_flag=$lt_cv_ld_reload_flag
3406test -n "$reload_flag" && reload_flag=" $reload_flag"
3407
5464f5a1
NN
3408echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3409echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3410if test "${lt_cv_path_NM+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3412else
3413 if test -n "$NM"; then
3414 # Let the user override the test.
55c80943 3415 lt_cv_path_NM="$NM"
252b5132 3416else
a74801ba 3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3418 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3419 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3420 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3421 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3422 # Check to see if the nm accepts a BSD-compat flag.
3423 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3424 # nm: unknown option "B" ignored
90f2472a
AO
3425 # Tru64's nm complains that /dev/null is an invalid object file
3426 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3427 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3428 break
ac48eca1 3429 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3430 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3431 break
252b5132 3432 else
55c80943 3433 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3434 continue # so that we can try to find one that supports BSD flags
252b5132 3435 fi
252b5132
RH
3436 fi
3437 done
3438 IFS="$ac_save_ifs"
55c80943 3439 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3440fi
3441fi
3442
55c80943 3443NM="$lt_cv_path_NM"
5464f5a1
NN
3444echo "$as_me:$LINENO: result: $NM" >&5
3445echo "${ECHO_T}$NM" >&6
252b5132 3446
5464f5a1
NN
3447echo "$as_me:$LINENO: checking whether ln -s works" >&5
3448echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3449LN_S=$as_ln_s
3450if test "$LN_S" = "ln -s"; then
3451 echo "$as_me:$LINENO: result: yes" >&5
3452echo "${ECHO_T}yes" >&6
6be7c12c 3453else
5464f5a1
NN
3454 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3455echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3456fi
3457
5464f5a1
NN
3458echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3459echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3460if test "${lt_cv_deplibs_check_method+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3462else
d64552c5 3463 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3464lt_cv_file_magic_test_file=
3465lt_cv_deplibs_check_method='unknown'
3466# Need to set the preceding variable on all platforms that support
3467# interlibrary dependencies.
3468# 'none' -- dependencies not supported.
3469# `unknown' -- same as none, but documents that we really don't know.
3470# 'pass_all' -- all dependencies passed with no checks.
3471# 'test_compile' -- check by making test program.
3472# 'file_magic [regex]' -- check by looking for files in library path
3473# which responds to the $file_magic_cmd with a given egrep regex.
3474# If you have `file' or equivalent on your system and you're not sure
3475# whether `pass_all' will *always* work, you probably want this one.
3476
55c80943
NC
3477case $host_os in
3478aix*)
ac48eca1
AO
3479 lt_cv_deplibs_check_method=pass_all
3480 ;;
3481
3482beos*)
3483 lt_cv_deplibs_check_method=pass_all
3484 ;;
3485
3486bsdi4*)
55c80943
NC
3487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3488 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3489 lt_cv_file_magic_test_file=/shlib/libc.so
3490 ;;
3491
d64552c5 3492cygwin* | mingw* |pw32*)
ac48eca1 3493 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3494 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3495 ;;
3496
55c80943
NC
3497darwin* | rhapsody*)
3498 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3499 lt_cv_file_magic_cmd='/usr/bin/file -L'
3500 case "$host_os" in
3501 rhapsody* | darwin1.012)
3502 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3503 ;;
3504 *) # Darwin 1.3 on
3505 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3506 ;;
3507 esac
55c80943
NC
3508 ;;
3509
5464f5a1 3510freebsd* | kfreebsd*-gnu)
ac48eca1 3511 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3512 case $host_cpu in
ac48eca1 3513 i*86 )
90f2472a
AO
3514 # Not sure whether the presence of OpenBSD here was a mistake.
3515 # Let's accept both of them until this is cleared up.
55c80943
NC
3516 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3517 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3518 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3519 ;;
3520 esac
3521 else
3522 lt_cv_deplibs_check_method=pass_all
3523 fi
3524 ;;
3525
3526gnu*)
3527 lt_cv_deplibs_check_method=pass_all
3528 ;;
3529
55c80943 3530hpux10.20*|hpux11*)
4867be41
DJ
3531 case $host_cpu in
3532 hppa*)
3533 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3534 lt_cv_file_magic_cmd=/usr/bin/file
3535 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3536 ;;
3537 ia64*)
3538 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3539 lt_cv_file_magic_cmd=/usr/bin/file
3540 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3541 ;;
3542 esac
ac48eca1
AO
3543 ;;
3544
3545irix5* | irix6*)
55c80943 3546 case $host_os in
ac48eca1
AO
3547 irix5*)
3548 # this will be overridden with pass_all, but let us keep it just in case
3549 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3550 ;;
3551 *)
55c80943 3552 case $LD in
ac48eca1
AO
3553 *-32|*"-32 ") libmagic=32-bit;;
3554 *-n32|*"-n32 ") libmagic=N32;;
3555 *-64|*"-64 ") libmagic=64-bit;;
3556 *) libmagic=never-match;;
3557 esac
3558 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3559 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3560 ;;
ac48eca1
AO
3561 esac
3562 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3563 lt_cv_deplibs_check_method=pass_all
3564 ;;
3565
3566# This must be Linux ELF.
90f2472a 3567linux-gnu*)
55c80943 3568 case $host_cpu in
c5d1701e 3569 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3570 lt_cv_deplibs_check_method=pass_all ;;
3571 *)
3572 # glibc up to 2.1.1 does not perform some relocations on ARM
55c80943
NC
3573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3574 esac
ac48eca1
AO
3575 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3576 ;;
3577
5464f5a1 3578netbsd* | knetbsd*-gnu)
55c80943 3579 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3580 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3581 else
b3baf5d0 3582 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3583 fi
55c80943
NC
3584 ;;
3585
3586newsos6)
3587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3588 lt_cv_file_magic_cmd=/usr/bin/file
3589 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3590 ;;
3591
3592osf3* | osf4* | osf5*)
3593 # this will be overridden with pass_all, but let us keep it just in case
3594 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3595 lt_cv_file_magic_test_file=/shlib/libc.so
3596 lt_cv_deplibs_check_method=pass_all
3597 ;;
3598
3599sco3.2v5*)
3600 lt_cv_deplibs_check_method=pass_all
3601 ;;
3602
3603solaris*)
3604 lt_cv_deplibs_check_method=pass_all
3605 lt_cv_file_magic_test_file=/lib/libc.so
3606 ;;
3607
6be7c12c
AO
3608sysv5uw[78]* | sysv4*uw2*)
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611
ac48eca1 3612sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3613 case $host_vendor in
ac48eca1
AO
3614 ncr)
3615 lt_cv_deplibs_check_method=pass_all
3616 ;;
3617 motorola)
55c80943
NC
3618 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]'
3619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3620 ;;
3621 esac
3622 ;;
3623esac
3624
3625fi
5464f5a1
NN
3626echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3627echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3628file_magic_cmd=$lt_cv_file_magic_cmd
3629deplibs_check_method=$lt_cv_deplibs_check_method
3630
6be7c12c
AO
3631
3632
6be7c12c
AO
3633
3634# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3635
3636# Only perform the check for file, if the check method requires it
3637case $deplibs_check_method in
3638file_magic*)
3639 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3640 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3641echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3642if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3644else
3645 case $MAGIC_CMD in
3646 /*)
3647 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3648 ;;
3649 ?:/*)
3650 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3651 ;;
3652 *)
d64552c5 3653 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3655 ac_dummy="/usr/bin:$PATH"
3656 for ac_dir in $ac_dummy; do
3657 test -z "$ac_dir" && ac_dir=.
3658 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3659 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3660 if test -n "$file_magic_test_file"; then
55c80943 3661 case $deplibs_check_method in
ac48eca1
AO
3662 "file_magic "*)
3663 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3665 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3666 egrep "$file_magic_regex" > /dev/null; then
3667 :
3668 else
3669 cat <<EOF 1>&2
3670
3671*** Warning: the command libtool uses to detect shared libraries,
3672*** $file_magic_cmd, produces output that libtool cannot recognize.
3673*** The result is that libtool may fail to recognize shared libraries
3674*** as such. This will affect the creation of libtool libraries that
3675*** depend on shared libraries, but programs linked with such libtool
3676*** libraries will work regardless of this problem. Nevertheless, you
3677*** may want to report the problem to your system manager and/or to
3678*** bug-libtool@gnu.org
3679
3680EOF
3681 fi ;;
3682 esac
3683 fi
3684 break
3685 fi
3686 done
3687 IFS="$ac_save_ifs"
d64552c5 3688 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3689 ;;
3690esac
3691fi
3692
d64552c5
AO
3693MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3694if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3695 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3696echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3697else
5464f5a1
NN
3698 echo "$as_me:$LINENO: result: no" >&5
3699echo "${ECHO_T}no" >&6
ac48eca1
AO
3700fi
3701
d64552c5 3702if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3703 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3704 echo "$as_me:$LINENO: checking for file" >&5
3705echo $ECHO_N "checking for file... $ECHO_C" >&6
3706if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3708else
55c80943 3709 case $MAGIC_CMD in
ac48eca1 3710 /*)
d64552c5 3711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3712 ;;
3713 ?:/*)
d64552c5 3714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3715 ;;
3716 *)
d64552c5 3717 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3719 ac_dummy="/usr/bin:$PATH"
3720 for ac_dir in $ac_dummy; do
3721 test -z "$ac_dir" && ac_dir=.
3722 if test -f $ac_dir/file; then
d64552c5 3723 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3724 if test -n "$file_magic_test_file"; then
55c80943 3725 case $deplibs_check_method in
ac48eca1
AO
3726 "file_magic "*)
3727 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3729 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3730 egrep "$file_magic_regex" > /dev/null; then
3731 :
3732 else
3733 cat <<EOF 1>&2
3734
3735*** Warning: the command libtool uses to detect shared libraries,
3736*** $file_magic_cmd, produces output that libtool cannot recognize.
3737*** The result is that libtool may fail to recognize shared libraries
3738*** as such. This will affect the creation of libtool libraries that
3739*** depend on shared libraries, but programs linked with such libtool
3740*** libraries will work regardless of this problem. Nevertheless, you
3741*** may want to report the problem to your system manager and/or to
3742*** bug-libtool@gnu.org
3743
3744EOF
3745 fi ;;
3746 esac
3747 fi
3748 break
3749 fi
3750 done
3751 IFS="$ac_save_ifs"
d64552c5 3752 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3753 ;;
3754esac
3755fi
3756
d64552c5
AO
3757MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3758if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3759 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3760echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3761else
5464f5a1
NN
3762 echo "$as_me:$LINENO: result: no" >&5
3763echo "${ECHO_T}no" >&6
ac48eca1
AO
3764fi
3765
3766 else
d64552c5 3767 MAGIC_CMD=:
ac48eca1
AO
3768 fi
3769fi
3770
3771 fi
3772 ;;
3773esac
3774
5464f5a1
NN
3775if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3777set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3778echo "$as_me:$LINENO: checking for $ac_word" >&5
3779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780if test "${ac_cv_prog_RANLIB+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3782else
3783 if test -n "$RANLIB"; then
3784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3785else
5464f5a1
NN
3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH
3788do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3796 fi
3797done
3798done
3799
ac48eca1
AO
3800fi
3801fi
5464f5a1 3802RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3803if test -n "$RANLIB"; then
5464f5a1
NN
3804 echo "$as_me:$LINENO: result: $RANLIB" >&5
3805echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3806else
5464f5a1
NN
3807 echo "$as_me:$LINENO: result: no" >&5
3808echo "${ECHO_T}no" >&6
ac48eca1
AO
3809fi
3810
5464f5a1 3811fi
ac48eca1 3812if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3813 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3814 # Extract the first word of "ranlib", so it can be a program name with args.
3815set dummy ranlib; ac_word=$2
5464f5a1
NN
3816echo "$as_me:$LINENO: checking for $ac_word" >&5
3817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3818if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3820else
5464f5a1
NN
3821 if test -n "$ac_ct_RANLIB"; then
3822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3823else
5464f5a1
NN
3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825for as_dir in $PATH
3826do
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3831 ac_cv_prog_ac_ct_RANLIB="ranlib"
3832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3834 fi
3835done
3836done
3837
3838 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3839fi
3840fi
5464f5a1
NN
3841ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3842if test -n "$ac_ct_RANLIB"; then
3843 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3844echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3845else
5464f5a1
NN
3846 echo "$as_me:$LINENO: result: no" >&5
3847echo "${ECHO_T}no" >&6
ac48eca1
AO
3848fi
3849
5464f5a1 3850 RANLIB=$ac_ct_RANLIB
ac48eca1 3851else
5464f5a1 3852 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3853fi
3854
5464f5a1
NN
3855if test -n "$ac_tool_prefix"; then
3856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3857set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3858echo "$as_me:$LINENO: checking for $ac_word" >&5
3859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3860if test "${ac_cv_prog_STRIP+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3862else
3863 if test -n "$STRIP"; then
3864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3865else
5464f5a1
NN
3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH
3868do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3873 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 break 2
3876 fi
3877done
3878done
3879
ac48eca1
AO
3880fi
3881fi
5464f5a1 3882STRIP=$ac_cv_prog_STRIP
ac48eca1 3883if test -n "$STRIP"; then
5464f5a1
NN
3884 echo "$as_me:$LINENO: result: $STRIP" >&5
3885echo "${ECHO_T}$STRIP" >&6
ac48eca1 3886else
5464f5a1
NN
3887 echo "$as_me:$LINENO: result: no" >&5
3888echo "${ECHO_T}no" >&6
ac48eca1
AO
3889fi
3890
5464f5a1 3891fi
ac48eca1 3892if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3893 ac_ct_STRIP=$STRIP
ac48eca1
AO
3894 # Extract the first word of "strip", so it can be a program name with args.
3895set dummy strip; ac_word=$2
5464f5a1
NN
3896echo "$as_me:$LINENO: checking for $ac_word" >&5
3897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3900else
5464f5a1
NN
3901 if test -n "$ac_ct_STRIP"; then
3902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3903else
5464f5a1
NN
3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_ac_ct_STRIP="strip"
3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915done
3916done
3917
3918 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3919fi
3920fi
5464f5a1
NN
3921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3922if test -n "$ac_ct_STRIP"; then
3923 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3924echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3925else
5464f5a1
NN
3926 echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
ac48eca1
AO
3928fi
3929
5464f5a1 3930 STRIP=$ac_ct_STRIP
ac48eca1 3931else
5464f5a1 3932 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3933fi
252b5132 3934
6be7c12c 3935
252b5132 3936# Check for any special flags to pass to ltconfig.
b2ef150d 3937libtool_flags="--cache-file=$cache_file"
252b5132
RH
3938test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3939test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 3940test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
3941test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3942test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3943
6be7c12c 3944
a74801ba
ILT
3945# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3946if test "${enable_libtool_lock+set}" = set; then
3947 enableval="$enable_libtool_lock"
a74801ba 3948
5464f5a1 3949fi;
a74801ba
ILT
3950test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3951test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3952
5464f5a1 3953
ac48eca1
AO
3954# Check whether --with-pic or --without-pic was given.
3955if test "${with_pic+set}" = set; then
3956 withval="$with_pic"
3957 pic_mode="$withval"
3958else
5464f5a1
NN
3959 pic_mode=default
3960fi;
ac48eca1
AO
3961test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3962test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3963
252b5132
RH
3964# Some flags need to be propagated to the compiler or linker for good
3965# libtool support.
55c80943 3966case $host in
252b5132
RH
3967*-*-irix6*)
3968 # Find out which ABI we are using.
7f266840 3969 echo '#line 3969 "configure"' > conftest.$ac_ext
5464f5a1
NN
3970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971 (eval $ac_compile) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; then
6a457e5c
NC
3975 if test "$lt_cv_prog_gnu_ld" = yes; then
3976 case `/usr/bin/file conftest.$ac_objext` in
3977 *32-bit*)
3978 LD="${LD-ld} -melf32bsmip"
3979 ;;
3980 *N32*)
3981 LD="${LD-ld} -melf32bmipn32"
3982 ;;
3983 *64-bit*)
3984 LD="${LD-ld} -melf64bmip"
3985 ;;
3986 esac
3987 else
55c80943 3988 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3989 *32-bit*)
3990 LD="${LD-ld} -32"
3991 ;;
3992 *N32*)
3993 LD="${LD-ld} -n32"
3994 ;;
3995 *64-bit*)
3996 LD="${LD-ld} -64"
3997 ;;
3998 esac
6a457e5c 3999 fi
252b5132
RH
4000 fi
4001 rm -rf conftest*
4002 ;;
4003
4867be41
DJ
4004ia64-*-hpux*)
4005 # Find out which ABI we are using.
4006 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; then
4867be41
DJ
4012 case "`/usr/bin/file conftest.o`" in
4013 *ELF-32*)
4014 HPUX_IA64_MODE="32"
4015 ;;
4016 *ELF-64*)
4017 HPUX_IA64_MODE="64"
4018 ;;
4019 esac
4020 fi
4021 rm -rf conftest*
4022 ;;
4023
252b5132
RH
4024*-*-sco3.2v5*)
4025 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4026 SAVE_CFLAGS="$CFLAGS"
252b5132 4027 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4028 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4029echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4030if test "${lt_cv_cc_needs_belf+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4032else
5464f5a1
NN
4033
4034
ac48eca1 4035 ac_ext=c
ac48eca1 4036ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4040
5464f5a1
NN
4041 cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
b2ef150d 4047
5464f5a1
NN
4048int
4049main ()
4050{
b2ef150d 4051
5464f5a1
NN
4052 ;
4053 return 0;
4054}
4055_ACEOF
4056rm -f conftest.$ac_objext conftest$ac_exeext
4057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058 (eval $ac_link) 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
7f266840 4065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest$ac_exeext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
b2ef150d
ILT
4077 lt_cv_cc_needs_belf=yes
4078else
5464f5a1
NN
4079 echo "$as_me: failed program was:" >&5
4080sed 's/^/| /' conftest.$ac_ext >&5
4081
4082lt_cv_cc_needs_belf=no
b2ef150d 4083fi
5464f5a1
NN
4084rm -f conftest.err conftest.$ac_objext \
4085 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4086 ac_ext=c
ac48eca1 4087ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4091
b2ef150d 4092fi
5464f5a1
NN
4093echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4094echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4095 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4096 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4097 CFLAGS="$SAVE_CFLAGS"
4098 fi
252b5132
RH
4099 ;;
4100
6be7c12c 4101
252b5132
RH
4102esac
4103
6be7c12c 4104
b2ef150d 4105# Save cache, so that ltconfig can load it
5464f5a1 4106cat >confcache <<\_ACEOF
b2ef150d
ILT
4107# This file is a shell script that caches the results of configure
4108# tests run on this system so they can be shared between configure
5464f5a1
NN
4109# scripts and configure runs, see configure's option --config-cache.
4110# It is not useful on other systems. If it contains results you don't
4111# want to keep, you may remove or edit it.
b2ef150d 4112#
5464f5a1
NN
4113# config.status only pays attention to the cache file if you give it
4114# the --recheck option to rerun configure.
b2ef150d 4115#
5464f5a1
NN
4116# `ac_cv_env_foo' variables (set or unset) will be overridden when
4117# loading this file, other *unset* `ac_cv_foo' will be assigned the
4118# following values.
4119
4120_ACEOF
4121
b2ef150d
ILT
4122# The following way of writing the cache mishandles newlines in values,
4123# but we know of no workaround that is simple, portable, and efficient.
4124# So, don't put newlines in cache variables' values.
4125# Ultrix sh set writes to stderr and can't be redirected directly,
4126# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4127{
4128 (set) 2>&1 |
4129 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4130 *ac_space=\ *)
4131 # `set' does not quote correctly, so add quotes (double-quote
4132 # substitution turns \\\\ into \\, and sed turns \\ into \).
4133 sed -n \
4134 "s/'/'\\\\''/g;
4135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4136 ;;
4137 *)
4138 # `set' quotes correctly as required by POSIX, so do not add quotes.
4139 sed -n \
4140 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4141 ;;
4142 esac;
4143} |
4144 sed '
4145 t clear
4146 : clear
4147 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4148 t end
4149 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4150 : end' >>confcache
4151if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4152 if test -w $cache_file; then
5464f5a1
NN
4153 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4154 cat confcache >$cache_file
b2ef150d
ILT
4155 else
4156 echo "not updating unwritable cache $cache_file"
4157 fi
4158fi
4159rm -f confcache
4160
252b5132 4161# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4162AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4163MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4164LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4165AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4166objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4167deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4168${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4169$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4170|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4171echo "$as_me: error: libtool configure failed" >&2;}
4172 { (exit 1); exit 1; }; }
252b5132 4173
b2ef150d
ILT
4174# Reload cache, that may have been modified by ltconfig
4175if test -r "$cache_file"; then
5464f5a1
NN
4176 # Some versions of bash will fail to source /dev/null (special
4177 # files actually), so we avoid doing that.
4178 if test -f "$cache_file"; then
4179 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4180echo "$as_me: loading cache $cache_file" >&6;}
4181 case $cache_file in
4182 [\\/]* | ?:[\\/]* ) . $cache_file;;
4183 *) . ./$cache_file;;
4184 esac
4185 fi
b2ef150d 4186else
5464f5a1
NN
4187 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4188echo "$as_me: creating cache $cache_file" >&6;}
4189 >$cache_file
b2ef150d
ILT
4190fi
4191
6be7c12c 4192
b2ef150d 4193# This can be used to rebuild libtool when needed
ac48eca1 4194LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4195
4196# Always use our own libtool.
4197LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4198
252b5132
RH
4199# Redirect the config.log output again, so that the ltconfig log is not
4200# clobbered by the next message.
4201exec 5>>./config.log
4202
6be7c12c 4203
5464f5a1
NN
4204
4205
4206
4207
6be7c12c 4208
252b5132
RH
4209# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4210if test "${enable_64_bit_bfd+set}" = set; then
4211 enableval="$enable_64_bit_bfd"
4212 case "${enableval}" in
4213 yes) want64=true ;;
4214 no) want64=false ;;
5464f5a1
NN
4215 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4216echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4217 { (exit 1); exit 1; }; } ;;
252b5132
RH
4218esac
4219else
4220 want64=false
5464f5a1 4221fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4222if test "${enable_targets+set}" = set; then
4223 enableval="$enable_targets"
4224 case "${enableval}" in
5464f5a1
NN
4225 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4226echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4227 { (exit 1); exit 1; }; }
252b5132
RH
4228 ;;
4229 no) enable_targets= ;;
4230 *) enable_targets=$enableval ;;
4231esac
5464f5a1 4232fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4233if test "${enable_commonbfdlib+set}" = set; then
4234 enableval="$enable_commonbfdlib"
4235 case "${enableval}" in
4236 yes) commonbfdlib=true ;;
4237 no) commonbfdlib=false ;;
5464f5a1
NN
4238 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4239echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4240 { (exit 1); exit 1; }; } ;;
252b5132 4241esac
5464f5a1 4242fi;
252b5132
RH
4243# Check whether --with-mmap or --without-mmap was given.
4244if test "${with_mmap+set}" = set; then
4245 withval="$with_mmap"
4246 case "${withval}" in
4247 yes) want_mmap=true ;;
4248 no) want_mmap=false ;;
5464f5a1
NN
4249 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4250echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4251 { (exit 1); exit 1; }; } ;;
252b5132
RH
4252esac
4253else
4254 want_mmap=false
5464f5a1 4255fi;
0218d1e4 4256build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
4257# Check whether --enable-build-warnings or --disable-build-warnings was given.
4258if test "${enable_build_warnings+set}" = set; then
4259 enableval="$enable_build_warnings"
4260 case "${enableval}" in
4261 yes) ;;
4262 no) build_warnings="-w";;
4263 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4264 build_warnings="${build_warnings} ${t}";;
4265 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4266 build_warnings="${t} ${build_warnings}";;
4267 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4268esac
4269if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4270 echo "Setting warning flags = $build_warnings" 6>&1
4271fi
5464f5a1 4272fi; WARN_CFLAGS=""
66e25bab 4273if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
a2d91340
AC
4274 WARN_CFLAGS="${build_warnings}"
4275fi
4276
4277
5464f5a1 4278 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4279
252b5132
RH
4280
4281if test -z "$target" ; then
5464f5a1
NN
4282 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4283echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4284 { (exit 1); exit 1; }; }
252b5132 4285fi
252b5132 4286
5464f5a1
NN
4287echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4288echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4289 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4290if test "${enable_maintainer_mode+set}" = set; then
4291 enableval="$enable_maintainer_mode"
4292 USE_MAINTAINER_MODE=$enableval
4293else
4294 USE_MAINTAINER_MODE=no
5464f5a1
NN
4295fi;
4296 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4297echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4298
252b5132
RH
4299
4300if test $USE_MAINTAINER_MODE = yes; then
4301 MAINTAINER_MODE_TRUE=
4302 MAINTAINER_MODE_FALSE='#'
4303else
4304 MAINTAINER_MODE_TRUE='#'
4305 MAINTAINER_MODE_FALSE=
4306fi
f5385ebf 4307
252b5132 4308 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4309
5464f5a1 4310
24443139
AS
4311 case ${build_alias} in
4312 "") build_noncanonical=${build} ;;
4313 *) build_noncanonical=${build_alias} ;;
4314esac
4315
4316 case ${host_alias} in
4317 "") host_noncanonical=${build_noncanonical} ;;
4318 *) host_noncanonical=${host_alias} ;;
4319esac
4320
4321 case ${target_alias} in
4322 "") target_noncanonical=${host_noncanonical} ;;
4323 *) target_noncanonical=${target_alias} ;;
4324esac
4325
5464f5a1
NN
4326echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4327echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4328 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4329if test "${enable_install_libbfd+set}" = set; then
4330 enableval="$enable_install_libbfd"
4331 install_libbfd_p=$enableval
4332else
66e25bab 4333 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4334 install_libbfd_p=yes
4335 else
4336 install_libbfd_p=no
4337 fi
5464f5a1
NN
4338fi;
4339 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4340echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4341
a703a6ea
AM
4342
4343if test $install_libbfd_p = yes; then
4344 INSTALL_LIBBFD_TRUE=
4345 INSTALL_LIBBFD_FALSE='#'
4346else
4347 INSTALL_LIBBFD_TRUE='#'
4348 INSTALL_LIBBFD_FALSE=
4349fi
f5385ebf 4350
5464f5a1 4351 # Need _noncanonical variables for this.
24443139
AS
4352
4353
4354
4355
a703a6ea
AM
4356 # libbfd.a is a host library containing target dependent code
4357 bfdlibdir='$(libdir)'
4358 bfdincludedir='$(includedir)'
4359 if test "${host}" != "${target}"; then
5464f5a1
NN
4360 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4361 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4362 fi
a703a6ea
AM
4363
4364
252b5132
RH
4365
4366
5464f5a1
NN
4367
4368
4369host64=false
4370target64=false
4371bfd_default_target_size=32
4372
4373# host stuff:
4374
4375ac_ext=c
4376ac_cpp='$CPP $CPPFLAGS'
4377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380if test -n "$ac_tool_prefix"; then
4381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4382set dummy ${ac_tool_prefix}gcc; ac_word=$2
4383echo "$as_me:$LINENO: checking for $ac_word" >&5
4384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4385if test "${ac_cv_prog_CC+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4387else
5464f5a1
NN
4388 if test -n "$CC"; then
4389 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4390else
5464f5a1
NN
4391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH
4393do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
6be7c12c 4401 fi
5464f5a1
NN
4402done
4403done
4404
252b5132 4405fi
b3baf5d0 4406fi
5464f5a1
NN
4407CC=$ac_cv_prog_CC
4408if test -n "$CC"; then
4409 echo "$as_me:$LINENO: result: $CC" >&5
4410echo "${ECHO_T}$CC" >&6
4411else
4412 echo "$as_me:$LINENO: result: no" >&5
4413echo "${ECHO_T}no" >&6
4414fi
252b5132 4415
5464f5a1
NN
4416fi
4417if test -z "$ac_cv_prog_CC"; then
4418 ac_ct_CC=$CC
4419 # Extract the first word of "gcc", so it can be a program name with args.
4420set dummy gcc; ac_word=$2
4421echo "$as_me:$LINENO: checking for $ac_word" >&5
4422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426 if test -n "$ac_ct_CC"; then
4427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4428else
4429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436 ac_cv_prog_ac_ct_CC="gcc"
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4439 fi
4440done
4441done
252b5132 4442
5464f5a1
NN
4443fi
4444fi
4445ac_ct_CC=$ac_cv_prog_ac_ct_CC
4446if test -n "$ac_ct_CC"; then
4447 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4448echo "${ECHO_T}$ac_ct_CC" >&6
4449else
4450 echo "$as_me:$LINENO: result: no" >&5
4451echo "${ECHO_T}no" >&6
4452fi
252b5132 4453
5464f5a1
NN
4454 CC=$ac_ct_CC
4455else
4456 CC="$ac_cv_prog_CC"
4457fi
252b5132 4458
5464f5a1
NN
4459if test -z "$CC"; then
4460 if test -n "$ac_tool_prefix"; then
4461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4462set dummy ${ac_tool_prefix}cc; ac_word=$2
4463echo "$as_me:$LINENO: checking for $ac_word" >&5
4464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465if test "${ac_cv_prog_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467else
4468 if test -n "$CC"; then
4469 ac_cv_prog_CC="$CC" # Let the user override the test.
4470else
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_prog_CC="${ac_tool_prefix}cc"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482done
4483done
6be7c12c 4484
5464f5a1
NN
4485fi
4486fi
4487CC=$ac_cv_prog_CC
4488if test -n "$CC"; then
4489 echo "$as_me:$LINENO: result: $CC" >&5
4490echo "${ECHO_T}$CC" >&6
4491else
4492 echo "$as_me:$LINENO: result: no" >&5
4493echo "${ECHO_T}no" >&6
4494fi
4495
4496fi
4497if test -z "$ac_cv_prog_CC"; then
4498 ac_ct_CC=$CC
4499 # Extract the first word of "cc", so it can be a program name with args.
4500set dummy cc; ac_word=$2
4501echo "$as_me:$LINENO: checking for $ac_word" >&5
4502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4503if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
4506 if test -n "$ac_ct_CC"; then
4507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4508else
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_prog_ac_ct_CC="cc"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4519 fi
4520done
4521done
4522
4523fi
4524fi
4525ac_ct_CC=$ac_cv_prog_ac_ct_CC
4526if test -n "$ac_ct_CC"; then
4527 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4528echo "${ECHO_T}$ac_ct_CC" >&6
4529else
4530 echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6
4532fi
4533
4534 CC=$ac_ct_CC
4535else
4536 CC="$ac_cv_prog_CC"
4537fi
4538
4539fi
4540if test -z "$CC"; then
4541 # Extract the first word of "cc", so it can be a program name with args.
4542set dummy cc; ac_word=$2
4543echo "$as_me:$LINENO: checking for $ac_word" >&5
4544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545if test "${ac_cv_prog_CC+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4547else
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4550else
5464f5a1
NN
4551 ac_prog_rejected=no
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4560 ac_prog_rejected=yes
4561 continue
4562 fi
4563 ac_cv_prog_CC="cc"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4566 fi
4567done
4568done
4569
4570if test $ac_prog_rejected = yes; then
4571 # We found a bogon in the path, so make sure we never use it.
4572 set dummy $ac_cv_prog_CC
4573 shift
4574 if test $# != 0; then
4575 # We chose a different compiler from the bogus one.
4576 # However, it has the same basename, so the bogon will be chosen
4577 # first if we set CC to just the basename; use the full file name.
4578 shift
4579 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4580 fi
4581fi
4582fi
4583fi
4584CC=$ac_cv_prog_CC
4585if test -n "$CC"; then
4586 echo "$as_me:$LINENO: result: $CC" >&5
4587echo "${ECHO_T}$CC" >&6
4588else
4589 echo "$as_me:$LINENO: result: no" >&5
4590echo "${ECHO_T}no" >&6
4591fi
4592
4593fi
4594if test -z "$CC"; then
4595 if test -n "$ac_tool_prefix"; then
4596 for ac_prog in cl
4597 do
4598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4599set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4600echo "$as_me:$LINENO: checking for $ac_word" >&5
4601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602if test "${ac_cv_prog_CC+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605 if test -n "$CC"; then
4606 ac_cv_prog_CC="$CC" # Let the user override the test.
4607else
4608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
4610do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619done
4620done
4621
4622fi
4623fi
4624CC=$ac_cv_prog_CC
4625if test -n "$CC"; then
4626 echo "$as_me:$LINENO: result: $CC" >&5
4627echo "${ECHO_T}$CC" >&6
4628else
4629 echo "$as_me:$LINENO: result: no" >&5
4630echo "${ECHO_T}no" >&6
4631fi
4632
4633 test -n "$CC" && break
6be7c12c 4634 done
252b5132 4635fi
5464f5a1
NN
4636if test -z "$CC"; then
4637 ac_ct_CC=$CC
4638 for ac_prog in cl
4639do
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641set dummy $ac_prog; ac_word=$2
4642echo "$as_me:$LINENO: checking for $ac_word" >&5
4643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646else
4647 if test -n "$ac_ct_CC"; then
4648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4649else
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_CC="$ac_prog"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4660 fi
4661done
4662done
4663
4664fi
4665fi
4666ac_ct_CC=$ac_cv_prog_ac_ct_CC
4667if test -n "$ac_ct_CC"; then
4668 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4669echo "${ECHO_T}$ac_ct_CC" >&6
4670else
4671 echo "$as_me:$LINENO: result: no" >&5
4672echo "${ECHO_T}no" >&6
4673fi
4674
4675 test -n "$ac_ct_CC" && break
4676done
4677
4678 CC=$ac_ct_CC
4679fi
4680
4681fi
4682
4683
4684test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4685See \`config.log' for more details." >&5
4686echo "$as_me: error: no acceptable C compiler found in \$PATH
4687See \`config.log' for more details." >&2;}
4688 { (exit 1); exit 1; }; }
4689
4690# Provide some information about the compiler.
4691echo "$as_me:$LINENO:" \
4692 "checking for C compiler version" >&5
4693ac_compiler=`set X $ac_compile; echo $2`
4694{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4695 (eval $ac_compiler --version </dev/null >&5) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }
4699{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4700 (eval $ac_compiler -v </dev/null >&5) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }
4704{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4705 (eval $ac_compiler -V </dev/null >&5) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }
4709
4710echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4711echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4712if test "${ac_cv_c_compiler_gnu+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715 cat >conftest.$ac_ext <<_ACEOF
4716/* confdefs.h. */
4717_ACEOF
4718cat confdefs.h >>conftest.$ac_ext
4719cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h. */
4721
4722int
4723main ()
4724{
4725#ifndef __GNUC__
4726 choke me
4727#endif
4728
4729 ;
4730 return 0;
4731}
4732_ACEOF
4733rm -f conftest.$ac_objext
4734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
7f266840 4742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_compiler_gnu=yes
4755else
4756 echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759ac_compiler_gnu=no
4760fi
4761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762ac_cv_c_compiler_gnu=$ac_compiler_gnu
4763
4764fi
4765echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4766echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4767GCC=`test $ac_compiler_gnu = yes && echo yes`
4768ac_test_CFLAGS=${CFLAGS+set}
4769ac_save_CFLAGS=$CFLAGS
4770CFLAGS="-g"
4771echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4772echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4773if test "${ac_cv_prog_cc_g+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
4776 cat >conftest.$ac_ext <<_ACEOF
4777/* confdefs.h. */
4778_ACEOF
4779cat confdefs.h >>conftest.$ac_ext
4780cat >>conftest.$ac_ext <<_ACEOF
4781/* end confdefs.h. */
4782
4783int
4784main ()
4785{
4786
4787 ;
4788 return 0;
4789}
4790_ACEOF
4791rm -f conftest.$ac_objext
4792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
7f266840 4800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; } &&
4806 { ac_try='test -s conftest.$ac_objext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4812 ac_cv_prog_cc_g=yes
4813else
4814 echo "$as_me: failed program was:" >&5
4815sed 's/^/| /' conftest.$ac_ext >&5
4816
4817ac_cv_prog_cc_g=no
4818fi
4819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4820fi
4821echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4822echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4823if test "$ac_test_CFLAGS" = set; then
4824 CFLAGS=$ac_save_CFLAGS
4825elif test $ac_cv_prog_cc_g = yes; then
4826 if test "$GCC" = yes; then
4827 CFLAGS="-g -O2"
4828 else
4829 CFLAGS="-g"
4830 fi
4831else
4832 if test "$GCC" = yes; then
4833 CFLAGS="-O2"
4834 else
4835 CFLAGS=
4836 fi
4837fi
4838echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4839echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4840if test "${ac_cv_prog_cc_stdc+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842else
4843 ac_cv_prog_cc_stdc=no
4844ac_save_CC=$CC
4845cat >conftest.$ac_ext <<_ACEOF
4846/* confdefs.h. */
4847_ACEOF
4848cat confdefs.h >>conftest.$ac_ext
4849cat >>conftest.$ac_ext <<_ACEOF
4850/* end confdefs.h. */
4851#include <stdarg.h>
4852#include <stdio.h>
4853#include <sys/types.h>
4854#include <sys/stat.h>
4855/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4856struct buf { int x; };
4857FILE * (*rcsopen) (struct buf *, struct stat *, int);
4858static char *e (p, i)
4859 char **p;
4860 int i;
4861{
4862 return p[i];
4863}
4864static char *f (char * (*g) (char **, int), char **p, ...)
4865{
4866 char *s;
4867 va_list v;
4868 va_start (v,p);
4869 s = g (p, va_arg (v,int));
4870 va_end (v);
4871 return s;
4872}
4873
4874/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4875 function prototypes and stuff, but not '\xHH' hex character constants.
4876 These don't provoke an error unfortunately, instead are silently treated
4877 as 'x'. The following induces an error, until -std1 is added to get
4878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4879 array size at least. It's necessary to write '\x00'==0 to get something
4880 that's true only with -std1. */
4881int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4882
4883int test (int i, double x);
4884struct s1 {int (*f) (int a);};
4885struct s2 {int (*f) (double a);};
4886int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4887int argc;
4888char **argv;
4889int
4890main ()
4891{
4892return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4893 ;
4894 return 0;
4895}
4896_ACEOF
4897# Don't try gcc -ansi; that turns off useful extensions and
4898# breaks some systems' header files.
4899# AIX -qlanglvl=ansi
4900# Ultrix and OSF/1 -std1
4901# HP-UX 10.20 and later -Ae
4902# HP-UX older versions -Aa -D_HPUX_SOURCE
4903# SVR4 -Xc -D__EXTENSIONS__
4904for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4905do
4906 CC="$ac_save_CC $ac_arg"
4907 rm -f conftest.$ac_objext
4908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>conftest.er1
4910 ac_status=$?
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
7f266840 4916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 ac_cv_prog_cc_stdc=$ac_arg
4929break
4930else
4931 echo "$as_me: failed program was:" >&5
4932sed 's/^/| /' conftest.$ac_ext >&5
4933
4934fi
4935rm -f conftest.err conftest.$ac_objext
4936done
4937rm -f conftest.$ac_ext conftest.$ac_objext
4938CC=$ac_save_CC
4939
4940fi
4941
4942case "x$ac_cv_prog_cc_stdc" in
4943 x|xno)
4944 echo "$as_me:$LINENO: result: none needed" >&5
4945echo "${ECHO_T}none needed" >&6 ;;
4946 *)
4947 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4948echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4949 CC="$CC $ac_cv_prog_cc_stdc" ;;
4950esac
4951
4952# Some people use a C++ compiler to compile C. Since we use `exit',
4953# in C++ we need to declare it. In case someone uses the same compiler
4954# for both compiling C and C++ we need to have the C++ compiler decide
4955# the declaration of exit, since it's the most demanding environment.
4956cat >conftest.$ac_ext <<_ACEOF
4957#ifndef __cplusplus
4958 choke me
4959#endif
4960_ACEOF
4961rm -f conftest.$ac_objext
4962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
7f266840 4970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 for ac_declaration in \
4983 '' \
4984 'extern "C" void std::exit (int) throw (); using std::exit;' \
4985 'extern "C" void std::exit (int); using std::exit;' \
4986 'extern "C" void exit (int) throw ();' \
4987 'extern "C" void exit (int);' \
4988 'void exit (int);'
4989do
4990 cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h. */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h. */
4996$ac_declaration
4997#include <stdlib.h>
4998int
4999main ()
5000{
5001exit (42);
5002 ;
5003 return 0;
5004}
5005_ACEOF
5006rm -f conftest.$ac_objext
5007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
7f266840 5015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; } &&
5021 { ac_try='test -s conftest.$ac_objext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5027 :
5028else
5029 echo "$as_me: failed program was:" >&5
5030sed 's/^/| /' conftest.$ac_ext >&5
5031
5032continue
5033fi
5034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041$ac_declaration
5042int
5043main ()
5044{
5045exit (42);
5046 ;
5047 return 0;
5048}
5049_ACEOF
5050rm -f conftest.$ac_objext
5051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
7f266840 5059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try='test -s conftest.$ac_objext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 break
5072else
5073 echo "$as_me: failed program was:" >&5
5074sed 's/^/| /' conftest.$ac_ext >&5
5075
5076fi
5077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5078done
5079rm -f conftest*
5080if test -n "$ac_declaration"; then
5081 echo '#ifdef __cplusplus' >>confdefs.h
5082 echo $ac_declaration >>confdefs.h
5083 echo '#endif' >>confdefs.h
252b5132 5084fi
5464f5a1 5085
b3baf5d0 5086else
5464f5a1
NN
5087 echo "$as_me: failed program was:" >&5
5088sed 's/^/| /' conftest.$ac_ext >&5
5089
b3baf5d0 5090fi
5464f5a1
NN
5091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5092ac_ext=c
5093ac_cpp='$CPP $CPPFLAGS'
5094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5097
5464f5a1
NN
5098
5099ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
5100if test -n "$ac_tool_prefix"; then
5101 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5102set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5103echo "$as_me:$LINENO: checking for $ac_word" >&5
5104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105if test "${ac_cv_prog_RANLIB+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5107else
5464f5a1
NN
5108 if test -n "$RANLIB"; then
5109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 5110else
5464f5a1
NN
5111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
252b5132 5121 fi
5464f5a1
NN
5122done
5123done
5124
252b5132
RH
5125fi
5126fi
5464f5a1
NN
5127RANLIB=$ac_cv_prog_RANLIB
5128if test -n "$RANLIB"; then
5129 echo "$as_me:$LINENO: result: $RANLIB" >&5
5130echo "${ECHO_T}$RANLIB" >&6
252b5132 5131else
5464f5a1
NN
5132 echo "$as_me:$LINENO: result: no" >&5
5133echo "${ECHO_T}no" >&6
252b5132
RH
5134fi
5135
5464f5a1
NN
5136fi
5137if test -z "$ac_cv_prog_RANLIB"; then
5138 ac_ct_RANLIB=$RANLIB
5139 # Extract the first word of "ranlib", so it can be a program name with args.
5140set dummy ranlib; ac_word=$2
5141echo "$as_me:$LINENO: checking for $ac_word" >&5
5142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5145else
5464f5a1
NN
5146 if test -n "$ac_ct_RANLIB"; then
5147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 5148else
5464f5a1
NN
5149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_ac_ct_RANLIB="ranlib"
5157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5159 fi
5160done
5161done
5162
5163 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
5164fi
5165fi
5464f5a1
NN
5166ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5167if test -n "$ac_ct_RANLIB"; then
5168 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5169echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 5170else
5464f5a1
NN
5171 echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6
b3baf5d0 5173fi
252b5132 5174
5464f5a1 5175 RANLIB=$ac_ct_RANLIB
6be7c12c 5176else
5464f5a1 5177 RANLIB="$ac_cv_prog_RANLIB"
252b5132 5178fi
5464f5a1 5179
6be7c12c 5180ac_ext=c
6be7c12c 5181ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
5182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184ac_compiler_gnu=$ac_cv_c_compiler_gnu
5185echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5186echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5187# On Suns, sometimes $CPP names a directory.
5188if test -n "$CPP" && test -d "$CPP"; then
5189 CPP=
6be7c12c 5190fi
5464f5a1
NN
5191if test -z "$CPP"; then
5192 if test "${ac_cv_prog_CPP+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5194else
5464f5a1
NN
5195 # Double quotes because CPP needs to be expanded
5196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5197 do
5198 ac_preproc_ok=false
5199for ac_c_preproc_warn_flag in '' yes
5200do
5201 # Use a header file that comes with gcc, so configuring glibc
5202 # with a fresh cross-compiler works.
5203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204 # <limits.h> exists even on freestanding compilers.
5205 # On the NeXT, cc -E runs the code through the compiler's parser,
5206 # not just through cpp. "Syntax error" is here to catch this case.
5207 cat >conftest.$ac_ext <<_ACEOF
5208/* confdefs.h. */
5209_ACEOF
5210cat confdefs.h >>conftest.$ac_ext
5211cat >>conftest.$ac_ext <<_ACEOF
5212/* end confdefs.h. */
5213#ifdef __STDC__
5214# include <limits.h>
5215#else
5216# include <assert.h>
252b5132 5217#endif
5464f5a1
NN
5218 Syntax error
5219_ACEOF
5220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } >/dev/null; then
5228 if test -s conftest.err; then
5229 ac_cpp_err=$ac_c_preproc_warn_flag
5230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5231 else
5232 ac_cpp_err=
5233 fi
6be7c12c 5234else
5464f5a1 5235 ac_cpp_err=yes
6be7c12c 5236fi
5464f5a1
NN
5237if test -z "$ac_cpp_err"; then
5238 :
6be7c12c 5239else
5464f5a1
NN
5240 echo "$as_me: failed program was:" >&5
5241sed 's/^/| /' conftest.$ac_ext >&5
5242
5243 # Broken: fails on valid input.
5244continue
5245fi
5246rm -f conftest.err conftest.$ac_ext
5247
5248 # OK, works on sane cases. Now check whether non-existent headers
5249 # can be detected and how.
5250 cat >conftest.$ac_ext <<_ACEOF
5251/* confdefs.h. */
5252_ACEOF
5253cat confdefs.h >>conftest.$ac_ext
5254cat >>conftest.$ac_ext <<_ACEOF
5255/* end confdefs.h. */
5256#include <ac_nonexistent.h>
5257_ACEOF
5258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } >/dev/null; then
5266 if test -s conftest.err; then
5267 ac_cpp_err=$ac_c_preproc_warn_flag
5268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5269 else
5270 ac_cpp_err=
5271 fi
252b5132 5272else
5464f5a1 5273 ac_cpp_err=yes
252b5132 5274fi
5464f5a1
NN
5275if test -z "$ac_cpp_err"; then
5276 # Broken: success on invalid input.
5277continue
5278else
5279 echo "$as_me: failed program was:" >&5
5280sed 's/^/| /' conftest.$ac_ext >&5
6be7c12c 5281
5464f5a1
NN
5282 # Passes both tests.
5283ac_preproc_ok=:
5284break
252b5132 5285fi
5464f5a1 5286rm -f conftest.err conftest.$ac_ext
6be7c12c 5287
5464f5a1
NN
5288done
5289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5290rm -f conftest.err conftest.$ac_ext
5291if $ac_preproc_ok; then
5292 break
252b5132
RH
5293fi
5294
5464f5a1
NN
5295 done
5296 ac_cv_prog_CPP=$CPP
252b5132 5297
252b5132 5298fi
5464f5a1 5299 CPP=$ac_cv_prog_CPP
6be7c12c 5300else
5464f5a1
NN
5301 ac_cv_prog_CPP=$CPP
5302fi
5303echo "$as_me:$LINENO: result: $CPP" >&5
5304echo "${ECHO_T}$CPP" >&6
5305ac_preproc_ok=false
5306for ac_c_preproc_warn_flag in '' yes
5307do
5308 # Use a header file that comes with gcc, so configuring glibc
5309 # with a fresh cross-compiler works.
5310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5311 # <limits.h> exists even on freestanding compilers.
6be7c12c 5312 # On the NeXT, cc -E runs the code through the compiler's parser,
5464f5a1
NN
5313 # not just through cpp. "Syntax error" is here to catch this case.
5314 cat >conftest.$ac_ext <<_ACEOF
5315/* confdefs.h. */
5316_ACEOF
5317cat confdefs.h >>conftest.$ac_ext
5318cat >>conftest.$ac_ext <<_ACEOF
5319/* end confdefs.h. */
5320#ifdef __STDC__
5321# include <limits.h>
5322#else
5323# include <assert.h>
5324#endif
5325 Syntax error
5326_ACEOF
5327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } >/dev/null; then
5335 if test -s conftest.err; then
5336 ac_cpp_err=$ac_c_preproc_warn_flag
5337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5338 else
5339 ac_cpp_err=
5340 fi
252b5132 5341else
5464f5a1
NN
5342 ac_cpp_err=yes
5343fi
5344if test -z "$ac_cpp_err"; then
6be7c12c 5345 :
252b5132 5346else
5464f5a1
NN
5347 echo "$as_me: failed program was:" >&5
5348sed 's/^/| /' conftest.$ac_ext >&5
5349
5350 # Broken: fails on valid input.
5351continue
5352fi
5353rm -f conftest.err conftest.$ac_ext
5354
5355 # OK, works on sane cases. Now check whether non-existent headers
5356 # can be detected and how.
5357 cat >conftest.$ac_ext <<_ACEOF
5358/* confdefs.h. */
5359_ACEOF
5360cat confdefs.h >>conftest.$ac_ext
5361cat >>conftest.$ac_ext <<_ACEOF
5362/* end confdefs.h. */
5363#include <ac_nonexistent.h>
5364_ACEOF
5365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } >/dev/null; then
5373 if test -s conftest.err; then
5374 ac_cpp_err=$ac_c_preproc_warn_flag
5375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5376 else
5377 ac_cpp_err=
5378 fi
b3baf5d0 5379else
5464f5a1 5380 ac_cpp_err=yes
6be7c12c 5381fi
5464f5a1
NN
5382if test -z "$ac_cpp_err"; then
5383 # Broken: success on invalid input.
5384continue
ac48eca1 5385else
5464f5a1
NN
5386 echo "$as_me: failed program was:" >&5
5387sed 's/^/| /' conftest.$ac_ext >&5
5388
5389 # Passes both tests.
5390ac_preproc_ok=:
5391break
b3baf5d0 5392fi
5464f5a1 5393rm -f conftest.err conftest.$ac_ext
6be7c12c 5394
5464f5a1
NN
5395done
5396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5397rm -f conftest.err conftest.$ac_ext
5398if $ac_preproc_ok; then
5399 :
6be7c12c 5400else
5464f5a1
NN
5401 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5402See \`config.log' for more details." >&5
5403echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5404See \`config.log' for more details." >&2;}
5405 { (exit 1); exit 1; }; }
ac48eca1 5406fi
5464f5a1
NN
5407
5408ac_ext=c
5409ac_cpp='$CPP $CPPFLAGS'
5410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413
5414
5415echo "$as_me:$LINENO: checking for egrep" >&5
5416echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5417if test "${ac_cv_prog_egrep+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5419else
5464f5a1
NN
5420 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5421 then ac_cv_prog_egrep='grep -E'
5422 else ac_cv_prog_egrep='egrep'
5423 fi
b3baf5d0 5424fi
5464f5a1
NN
5425echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5426echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5427 EGREP=$ac_cv_prog_egrep
5428
ac48eca1 5429
5464f5a1
NN
5430echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5431echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5432if test "${ac_cv_header_stdc+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5434else
5464f5a1
NN
5435 cat >conftest.$ac_ext <<_ACEOF
5436/* confdefs.h. */
5437_ACEOF
5438cat confdefs.h >>conftest.$ac_ext
5439cat >>conftest.$ac_ext <<_ACEOF
5440/* end confdefs.h. */
252b5132
RH
5441#include <stdlib.h>
5442#include <stdarg.h>
5443#include <string.h>
5444#include <float.h>
5464f5a1
NN
5445
5446int
5447main ()
5448{
5449
5450 ;
5451 return 0;
5452}
5453_ACEOF
5454rm -f conftest.$ac_objext
5455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>conftest.er1
5457 ac_status=$?
5458 grep -v '^ *+' conftest.er1 >conftest.err
5459 rm -f conftest.er1
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
7f266840 5463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
252b5132
RH
5475 ac_cv_header_stdc=yes
5476else
5464f5a1
NN
5477 echo "$as_me: failed program was:" >&5
5478sed 's/^/| /' conftest.$ac_ext >&5
5479
5480ac_cv_header_stdc=no
252b5132 5481fi
5464f5a1 5482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5483
5484if test $ac_cv_header_stdc = yes; then
5485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464f5a1
NN
5486 cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h. */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h. */
252b5132 5492#include <string.h>
5464f5a1
NN
5493
5494_ACEOF
252b5132 5495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5496 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5497 :
5498else
252b5132
RH
5499 ac_cv_header_stdc=no
5500fi
5501rm -f conftest*
5502
5503fi
5504
5505if test $ac_cv_header_stdc = yes; then
5506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464f5a1
NN
5507 cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h. */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h. */
252b5132 5513#include <stdlib.h>
5464f5a1
NN
5514
5515_ACEOF
252b5132 5516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5517 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5518 :
5519else
252b5132
RH
5520 ac_cv_header_stdc=no
5521fi
5522rm -f conftest*
5523
5524fi
5525
5526if test $ac_cv_header_stdc = yes; then
5527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464f5a1 5528 if test "$cross_compiling" = yes; then
252b5132
RH
5529 :
5530else
5464f5a1
NN
5531 cat >conftest.$ac_ext <<_ACEOF
5532/* confdefs.h. */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h. */
252b5132 5537#include <ctype.h>
5464f5a1
NN
5538#if ((' ' & 0x0FF) == 0x020)
5539# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5540# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5541#else
5542# define ISLOWER(c) \
5543 (('a' <= (c) && (c) <= 'i') \
5544 || ('j' <= (c) && (c) <= 'r') \
5545 || ('s' <= (c) && (c) <= 'z'))
5546# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5547#endif
6be7c12c 5548
5464f5a1
NN
5549#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5550int
5551main ()
5552{
5553 int i;
5554 for (i = 0; i < 256; i++)
5555 if (XOR (islower (i), ISLOWER (i))
5556 || toupper (i) != TOUPPER (i))
5557 exit(2);
5558 exit (0);
5559}
5560_ACEOF
5561rm -f conftest$ac_exeext
5562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5563 (eval $ac_link) 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
252b5132
RH
5572 :
5573else
5464f5a1
NN
5574 echo "$as_me: program exited with status $ac_status" >&5
5575echo "$as_me: failed program was:" >&5
5576sed 's/^/| /' conftest.$ac_ext >&5
5577
5578( exit $ac_status )
5579ac_cv_header_stdc=no
252b5132 5580fi
5464f5a1 5581rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5582fi
252b5132
RH
5583fi
5584fi
5464f5a1
NN
5585echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5586echo "${ECHO_T}$ac_cv_header_stdc" >&6
6be7c12c 5587if test $ac_cv_header_stdc = yes; then
5464f5a1
NN
5588
5589cat >>confdefs.h <<\_ACEOF
252b5132 5590#define STDC_HEADERS 1
5464f5a1 5591_ACEOF
252b5132
RH
5592
5593fi
5594
5464f5a1
NN
5595echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5596echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5597if test "${ac_cv_c_const+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5599else
5464f5a1
NN
5600 cat >conftest.$ac_ext <<_ACEOF
5601/* confdefs.h. */
5602_ACEOF
5603cat confdefs.h >>conftest.$ac_ext
5604cat >>conftest.$ac_ext <<_ACEOF
5605/* end confdefs.h. */
6be7c12c 5606
5464f5a1
NN
5607int
5608main ()
5609{
5610/* FIXME: Include the comments suggested by Paul. */
5611#ifndef __cplusplus
5612 /* Ultrix mips cc rejects this. */
5613 typedef int charset[2];
5614 const charset x;
5615 /* SunOS 4.1.1 cc rejects this. */
5616 char const *const *ccp;
5617 char **p;
5618 /* NEC SVR4.0.2 mips cc rejects this. */
5619 struct point {int x, y;};
5620 static struct point const zero = {0,0};
5621 /* AIX XL C 1.02.0.0 rejects this.
5622 It does not let you subtract one const X* pointer from another in
5623 an arm of an if-expression whose if-part is not a constant
5624 expression */
5625 const char *g = "string";
5626 ccp = &g + (g ? g-g : 0);
5627 /* HPUX 7.0 cc rejects these. */
5628 ++ccp;
5629 p = (char**) ccp;
5630 ccp = (char const *const *) p;
5631 { /* SCO 3.2v4 cc rejects this. */
5632 char *t;
5633 char const *s = 0 ? (char *) 0 : (char const *) 0;
5634
5635 *t++ = 0;
5636 }
5637 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5638 int x[] = {25, 17};
5639 const int *foo = &x[0];
5640 ++foo;
5641 }
5642 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5643 typedef const int *iptr;
5644 iptr p = 0;
5645 ++p;
5646 }
5647 { /* AIX XL C 1.02.0.0 rejects this saying
5648 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5649 struct s { int j; const int *ap[3]; };
5650 struct s *b; b->j = 5;
5651 }
5652 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5653 const int foo = 10;
5654 }
5655#endif
6be7c12c 5656
5464f5a1
NN
5657 ;
5658 return 0;
5659}
5660_ACEOF
5661rm -f conftest.$ac_objext
5662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
7f266840 5670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try='test -s conftest.$ac_objext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 (eval $ac_try) 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
252b5132
RH
5682 ac_cv_c_const=yes
5683else
5464f5a1
NN
5684 echo "$as_me: failed program was:" >&5
5685sed 's/^/| /' conftest.$ac_ext >&5
5686
5687ac_cv_c_const=no
252b5132 5688fi
5464f5a1 5689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5690fi
5464f5a1
NN
5691echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5692echo "${ECHO_T}$ac_cv_c_const" >&6
6be7c12c 5693if test $ac_cv_c_const = no; then
5464f5a1
NN
5694
5695cat >>confdefs.h <<\_ACEOF
5696#define const
5697_ACEOF
252b5132
RH
5698
5699fi
5700
5464f5a1
NN
5701echo "$as_me:$LINENO: checking for inline" >&5
5702echo $ECHO_N "checking for inline... $ECHO_C" >&6
5703if test "${ac_cv_c_inline+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5705else
5706 ac_cv_c_inline=no
5707for ac_kw in inline __inline__ __inline; do
5464f5a1
NN
5708 cat >conftest.$ac_ext <<_ACEOF
5709/* confdefs.h. */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
5713/* end confdefs.h. */
5714#ifndef __cplusplus
5715typedef int foo_t;
5716static $ac_kw foo_t static_foo () {return 0; }
5717$ac_kw foo_t foo () {return 0; }
5718#endif
252b5132 5719
5464f5a1
NN
5720_ACEOF
5721rm -f conftest.$ac_objext
5722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
7f266840 5730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try='test -s conftest.$ac_objext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
252b5132
RH
5742 ac_cv_c_inline=$ac_kw; break
5743else
5464f5a1
NN
5744 echo "$as_me: failed program was:" >&5
5745sed 's/^/| /' conftest.$ac_ext >&5
5746
252b5132 5747fi
5464f5a1 5748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5749done
5750
5464f5a1
NN
5751fi
5752echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5753echo "${ECHO_T}$ac_cv_c_inline" >&6
5754
5755
5756case $ac_cv_c_inline in
5757 inline | yes) ;;
5758 *)
5759 case $ac_cv_c_inline in
5760 no) ac_val=;;
5761 *) ac_val=$ac_cv_c_inline;;
5762 esac
5763 cat >>confdefs.h <<_ACEOF
5764#ifndef __cplusplus
5765#define inline $ac_val
5766#endif
5767_ACEOF
5768 ;;
5769esac
5770
5771# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5782 inttypes.h stdint.h unistd.h
5783do
5784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785echo "$as_me:$LINENO: checking for $ac_header" >&5
5786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5787if eval "test \"\${$as_ac_Header+set}\" = set"; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789else
5790 cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h. */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h. */
5796$ac_includes_default
5797
5798#include <$ac_header>
5799_ACEOF
5800rm -f conftest.$ac_objext
5801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5802 (eval $ac_compile) 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
7f266840 5809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 eval "$as_ac_Header=yes"
5822else
5823 echo "$as_me: failed program was:" >&5
5824sed 's/^/| /' conftest.$ac_ext >&5
5825
5826eval "$as_ac_Header=no"
5827fi
5828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5829fi
5830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5832if test `eval echo '${'$as_ac_Header'}'` = yes; then
5833 cat >>confdefs.h <<_ACEOF
5834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5835_ACEOF
5836
252b5132 5837fi
6be7c12c 5838
5464f5a1 5839done
252b5132 5840
5464f5a1
NN
5841
5842echo "$as_me:$LINENO: checking for off_t" >&5
5843echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5844if test "${ac_cv_type_off_t+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 5846else
5464f5a1
NN
5847 cat >conftest.$ac_ext <<_ACEOF
5848/* confdefs.h. */
5849_ACEOF
5850cat confdefs.h >>conftest.$ac_ext
5851cat >>conftest.$ac_ext <<_ACEOF
5852/* end confdefs.h. */
5853$ac_includes_default
5854int
5855main ()
5856{
5857if ((off_t *) 0)
5858 return 0;
5859if (sizeof (off_t))
5860 return 0;
5861 ;
5862 return 0;
5863}
5864_ACEOF
5865rm -f conftest.$ac_objext
5866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
7f266840 5874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
653f71ca 5886 ac_cv_type_off_t=yes
252b5132 5887else
5464f5a1
NN
5888 echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5890
5464f5a1 5891ac_cv_type_off_t=no
6be7c12c 5892fi
5464f5a1
NN
5893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894fi
5895echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5896echo "${ECHO_T}$ac_cv_type_off_t" >&6
5897if test $ac_cv_type_off_t = yes; then
5898 :
5899else
5900
5901cat >>confdefs.h <<_ACEOF
252b5132 5902#define off_t long
5464f5a1 5903_ACEOF
252b5132
RH
5904
5905fi
5906
5464f5a1
NN
5907echo "$as_me:$LINENO: checking for size_t" >&5
5908echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5909if test "${ac_cv_type_size_t+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5911else
5464f5a1
NN
5912 cat >conftest.$ac_ext <<_ACEOF
5913/* confdefs.h. */
5914_ACEOF
5915cat confdefs.h >>conftest.$ac_ext
5916cat >>conftest.$ac_ext <<_ACEOF
5917/* end confdefs.h. */
5918$ac_includes_default
5919int
5920main ()
5921{
5922if ((size_t *) 0)
5923 return 0;
5924if (sizeof (size_t))
5925 return 0;
5926 ;
5927 return 0;
5928}
5929_ACEOF
5930rm -f conftest.$ac_objext
5931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5932 (eval $ac_compile) 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
7f266840 5939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
653f71ca 5951 ac_cv_type_size_t=yes
252b5132 5952else
5464f5a1
NN
5953 echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5955
5464f5a1 5956ac_cv_type_size_t=no
6be7c12c 5957fi
5464f5a1
NN
5958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959fi
5960echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5961echo "${ECHO_T}$ac_cv_type_size_t" >&6
5962if test $ac_cv_type_size_t = yes; then
5963 :
5964else
5965
5966cat >>confdefs.h <<_ACEOF
252b5132 5967#define size_t unsigned
5464f5a1 5968_ACEOF
252b5132
RH
5969
5970fi
5971
5972# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5973# for constant arguments. Useless!
5464f5a1
NN
5974echo "$as_me:$LINENO: checking for working alloca.h" >&5
5975echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5976if test "${ac_cv_working_alloca_h+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978else
5979 cat >conftest.$ac_ext <<_ACEOF
5980/* confdefs.h. */
5981_ACEOF
5982cat confdefs.h >>conftest.$ac_ext
5983cat >>conftest.$ac_ext <<_ACEOF
5984/* end confdefs.h. */
252b5132 5985#include <alloca.h>
5464f5a1
NN
5986int
5987main ()
5988{
5989char *p = (char *) alloca (2 * sizeof (int));
5990 ;
5991 return 0;
5992}
5993_ACEOF
5994rm -f conftest.$ac_objext conftest$ac_exeext
5995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
7f266840 6003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; } &&
6009 { ac_try='test -s conftest$ac_exeext'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6015 ac_cv_working_alloca_h=yes
6016else
6017 echo "$as_me: failed program was:" >&5
6018sed 's/^/| /' conftest.$ac_ext >&5
6019
6020ac_cv_working_alloca_h=no
6021fi
6022rm -f conftest.err conftest.$ac_objext \
6023 conftest$ac_exeext conftest.$ac_ext
6024fi
6025echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6026echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6027if test $ac_cv_working_alloca_h = yes; then
6028
6029cat >>confdefs.h <<\_ACEOF
252b5132 6030#define HAVE_ALLOCA_H 1
5464f5a1 6031_ACEOF
252b5132
RH
6032
6033fi
6034
5464f5a1
NN
6035echo "$as_me:$LINENO: checking for alloca" >&5
6036echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6037if test "${ac_cv_func_alloca_works+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6039else
5464f5a1
NN
6040 cat >conftest.$ac_ext <<_ACEOF
6041/* confdefs.h. */
6042_ACEOF
6043cat confdefs.h >>conftest.$ac_ext
6044cat >>conftest.$ac_ext <<_ACEOF
6045/* end confdefs.h. */
252b5132
RH
6046#ifdef __GNUC__
6047# define alloca __builtin_alloca
6048#else
6049# ifdef _MSC_VER
6050# include <malloc.h>
6051# define alloca _alloca
6052# else
6053# if HAVE_ALLOCA_H
6054# include <alloca.h>
6055# else
6056# ifdef _AIX
6057 #pragma alloca
6058# else
6059# ifndef alloca /* predefined by HP cc +Olibcalls */
6060char *alloca ();
6061# endif
6062# endif
6063# endif
6064# endif
6065#endif
6066
5464f5a1
NN
6067int
6068main ()
6069{
6070char *p = (char *) alloca (1);
6071 ;
6072 return 0;
6073}
6074_ACEOF
6075rm -f conftest.$ac_objext conftest$ac_exeext
6076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
7f266840 6084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest$ac_exeext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
252b5132
RH
6096 ac_cv_func_alloca_works=yes
6097else
5464f5a1
NN
6098 echo "$as_me: failed program was:" >&5
6099sed 's/^/| /' conftest.$ac_ext >&5
6100
6101ac_cv_func_alloca_works=no
252b5132 6102fi
5464f5a1
NN
6103rm -f conftest.err conftest.$ac_objext \
6104 conftest$ac_exeext conftest.$ac_ext
252b5132 6105fi
5464f5a1
NN
6106echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6107echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6108
252b5132 6109if test $ac_cv_func_alloca_works = yes; then
252b5132 6110
5464f5a1
NN
6111cat >>confdefs.h <<\_ACEOF
6112#define HAVE_ALLOCA 1
6113_ACEOF
b3baf5d0 6114
5464f5a1 6115else
6be7c12c 6116 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5464f5a1
NN
6117# that cause trouble. Some versions do not even contain alloca or
6118# contain a buggy version. If you still want to use their alloca,
6119# use ar to extract alloca.o from them instead of compiling alloca.c.
6120
6121ALLOCA=alloca.$ac_objext
6122
6123cat >>confdefs.h <<\_ACEOF
252b5132 6124#define C_ALLOCA 1
5464f5a1 6125_ACEOF
252b5132 6126
6be7c12c 6127
5464f5a1
NN
6128echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6129echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6130if test "${ac_cv_os_cray+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6132else
5464f5a1
NN
6133 cat >conftest.$ac_ext <<_ACEOF
6134/* confdefs.h. */
6135_ACEOF
6136cat confdefs.h >>conftest.$ac_ext
6137cat >>conftest.$ac_ext <<_ACEOF
6138/* end confdefs.h. */
252b5132
RH
6139#if defined(CRAY) && ! defined(CRAY2)
6140webecray
6141#else
6142wenotbecray
6143#endif
6144
5464f5a1 6145_ACEOF
252b5132 6146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 6147 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6148 ac_cv_os_cray=yes
6149else
252b5132
RH
6150 ac_cv_os_cray=no
6151fi
6152rm -f conftest*
6153
6154fi
5464f5a1
NN
6155echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6156echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6157if test $ac_cv_os_cray = yes; then
5464f5a1
NN
6158 for ac_func in _getb67 GETB67 getb67; do
6159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6160echo "$as_me:$LINENO: checking for $ac_func" >&5
6161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6162if eval "test \"\${$as_ac_var+set}\" = set"; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
6165 cat >conftest.$ac_ext <<_ACEOF
6166/* confdefs.h. */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h. */
6171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6173#define $ac_func innocuous_$ac_func
6174
252b5132 6175/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6176 which can conflict with char $ac_func (); below.
6177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6178 <limits.h> exists even on freestanding compilers. */
6179
6180#ifdef __STDC__
6181# include <limits.h>
6182#else
6183# include <assert.h>
6184#endif
6be7c12c 6185
5464f5a1 6186#undef $ac_func
252b5132 6187
5464f5a1
NN
6188/* Override any gcc2 internal prototype to avoid an error. */
6189#ifdef __cplusplus
6190extern "C"
6191{
6192#endif
6193/* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6195char $ac_func ();
252b5132
RH
6196/* The GNU C library defines this for functions which it implements
6197 to always fail with ENOSYS. Some functions are actually named
6198 something starting with __ and the normal name is an alias. */
6199#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6200choke me
6201#else
5464f5a1
NN
6202char (*f) () = $ac_func;
6203#endif
6204#ifdef __cplusplus
6205}
252b5132
RH
6206#endif
6207
5464f5a1
NN
6208int
6209main ()
6210{
6211return f != $ac_func;
6212 ;
6213 return 0;
6214}
6215_ACEOF
6216rm -f conftest.$ac_objext conftest$ac_exeext
6217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218 (eval $ac_link) 2>conftest.er1
6219 ac_status=$?
6220 grep -v '^ *+' conftest.er1 >conftest.err
6221 rm -f conftest.er1
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
7f266840 6225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest$ac_exeext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 eval "$as_ac_var=yes"
6238else
6239 echo "$as_me: failed program was:" >&5
6240sed 's/^/| /' conftest.$ac_ext >&5
6241
6242eval "$as_ac_var=no"
6243fi
6244rm -f conftest.err conftest.$ac_objext \
6245 conftest$ac_exeext conftest.$ac_ext
6246fi
6247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6248echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6249if test `eval echo '${'$as_ac_var'}'` = yes; then
6250
6251cat >>confdefs.h <<_ACEOF
252b5132 6252#define CRAY_STACKSEG_END $ac_func
5464f5a1 6253_ACEOF
252b5132 6254
5464f5a1 6255 break
252b5132
RH
6256fi
6257
5464f5a1 6258 done
252b5132
RH
6259fi
6260
5464f5a1
NN
6261echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6262echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6263if test "${ac_cv_c_stack_direction+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6265else
6266 if test "$cross_compiling" = yes; then
6267 ac_cv_c_stack_direction=0
6268else
5464f5a1
NN
6269 cat >conftest.$ac_ext <<_ACEOF
6270/* confdefs.h. */
6271_ACEOF
6272cat confdefs.h >>conftest.$ac_ext
6273cat >>conftest.$ac_ext <<_ACEOF
6274/* end confdefs.h. */
6275int
252b5132
RH
6276find_stack_direction ()
6277{
6278 static char *addr = 0;
6279 auto char dummy;
6280 if (addr == 0)
6281 {
6282 addr = &dummy;
6283 return find_stack_direction ();
6284 }
6285 else
6286 return (&dummy > addr) ? 1 : -1;
6287}
5464f5a1
NN
6288
6289int
252b5132
RH
6290main ()
6291{
5464f5a1 6292 exit (find_stack_direction () < 0);
252b5132 6293}
5464f5a1
NN
6294_ACEOF
6295rm -f conftest$ac_exeext
6296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6297 (eval $ac_link) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
252b5132
RH
6306 ac_cv_c_stack_direction=1
6307else
5464f5a1
NN
6308 echo "$as_me: program exited with status $ac_status" >&5
6309echo "$as_me: failed program was:" >&5
6310sed 's/^/| /' conftest.$ac_ext >&5
6311
6312( exit $ac_status )
6313ac_cv_c_stack_direction=-1
252b5132 6314fi
5464f5a1 6315rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6316fi
252b5132 6317fi
5464f5a1
NN
6318echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6319echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6320
5464f5a1 6321cat >>confdefs.h <<_ACEOF
252b5132 6322#define STACK_DIRECTION $ac_cv_c_stack_direction
5464f5a1
NN
6323_ACEOF
6324
252b5132
RH
6325
6326fi
6327
5464f5a1
NN
6328
6329
6330for ac_header in stdlib.h unistd.h
252b5132 6331do
5464f5a1
NN
6332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6333if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo "$as_me:$LINENO: checking for $ac_header" >&5
6335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6336if eval "test \"\${$as_ac_Header+set}\" = set"; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338fi
6339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6341else
6342 # Is the header compilable?
6343echo "$as_me:$LINENO: checking $ac_header usability" >&5
6344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6345cat >conftest.$ac_ext <<_ACEOF
6346/* confdefs.h. */
6347_ACEOF
6348cat confdefs.h >>conftest.$ac_ext
6349cat >>conftest.$ac_ext <<_ACEOF
6350/* end confdefs.h. */
6351$ac_includes_default
6352#include <$ac_header>
6353_ACEOF
6354rm -f conftest.$ac_objext
6355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
7f266840 6363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try='test -s conftest.$ac_objext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_header_compiler=yes
6376else
6377 echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380ac_header_compiler=no
6381fi
6382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6383echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6384echo "${ECHO_T}$ac_header_compiler" >&6
6385
6386# Is the header present?
6387echo "$as_me:$LINENO: checking $ac_header presence" >&5
6388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6389cat >conftest.$ac_ext <<_ACEOF
6390/* confdefs.h. */
6391_ACEOF
6392cat confdefs.h >>conftest.$ac_ext
6393cat >>conftest.$ac_ext <<_ACEOF
6394/* end confdefs.h. */
6395#include <$ac_header>
6396_ACEOF
6397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6399 ac_status=$?
6400 grep -v '^ *+' conftest.er1 >conftest.err
6401 rm -f conftest.er1
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } >/dev/null; then
6405 if test -s conftest.err; then
6406 ac_cpp_err=$ac_c_preproc_warn_flag
6407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6408 else
6409 ac_cpp_err=
6410 fi
252b5132 6411else
5464f5a1 6412 ac_cpp_err=yes
252b5132 6413fi
5464f5a1
NN
6414if test -z "$ac_cpp_err"; then
6415 ac_header_preproc=yes
6416else
6417 echo "$as_me: failed program was:" >&5
6418sed 's/^/| /' conftest.$ac_ext >&5
6419
6420 ac_header_preproc=no
252b5132 6421fi
5464f5a1
NN
6422rm -f conftest.err conftest.$ac_ext
6423echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6424echo "${ECHO_T}$ac_header_preproc" >&6
6425
6426# So? What about this header?
6427case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6428 yes:no: )
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6430echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6432echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6433 ac_header_preproc=yes
6434 ;;
6435 no:yes:* )
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6437echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6439echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6441echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6443echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6445echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6447echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6448 (
6449 cat <<\_ASBOX
6450## ------------------------------------------ ##
6451## Report this to the AC_PACKAGE_NAME lists. ##
6452## ------------------------------------------ ##
6453_ASBOX
6454 ) |
6455 sed "s/^/$as_me: WARNING: /" >&2
6456 ;;
6457esac
6458echo "$as_me:$LINENO: checking for $ac_header" >&5
6459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6460if eval "test \"\${$as_ac_Header+set}\" = set"; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6462else
5464f5a1
NN
6463 eval "$as_ac_Header=\$ac_header_preproc"
6464fi
6465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6467
252b5132 6468fi
5464f5a1
NN
6469if test `eval echo '${'$as_ac_Header'}'` = yes; then
6470 cat >>confdefs.h <<_ACEOF
6471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6472_ACEOF
6473
6474fi
6475
252b5132
RH
6476done
6477
5464f5a1 6478
252b5132
RH
6479for ac_func in getpagesize
6480do
5464f5a1
NN
6481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6482echo "$as_me:$LINENO: checking for $ac_func" >&5
6483echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6484if eval "test \"\${$as_ac_var+set}\" = set"; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486else
6487 cat >conftest.$ac_ext <<_ACEOF
6488/* confdefs.h. */
6489_ACEOF
6490cat confdefs.h >>conftest.$ac_ext
6491cat >>conftest.$ac_ext <<_ACEOF
6492/* end confdefs.h. */
6493/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6495#define $ac_func innocuous_$ac_func
6496
252b5132 6497/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6498 which can conflict with char $ac_func (); below.
6499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6500 <limits.h> exists even on freestanding compilers. */
6501
6502#ifdef __STDC__
6503# include <limits.h>
6504#else
6505# include <assert.h>
6506#endif
6be7c12c 6507
5464f5a1 6508#undef $ac_func
252b5132 6509
5464f5a1
NN
6510/* Override any gcc2 internal prototype to avoid an error. */
6511#ifdef __cplusplus
6512extern "C"
6513{
6514#endif
6515/* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6517char $ac_func ();
252b5132
RH
6518/* The GNU C library defines this for functions which it implements
6519 to always fail with ENOSYS. Some functions are actually named
6520 something starting with __ and the normal name is an alias. */
6521#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6522choke me
6523#else
5464f5a1
NN
6524char (*f) () = $ac_func;
6525#endif
6526#ifdef __cplusplus
6527}
252b5132
RH
6528#endif
6529
5464f5a1
NN
6530int
6531main ()
6532{
6533return f != $ac_func;
6534 ;
6535 return 0;
6536}
6537_ACEOF
6538rm -f conftest.$ac_objext conftest$ac_exeext
6539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6540 (eval $ac_link) 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
7f266840 6547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 (eval $ac_try) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; } &&
6553 { ac_try='test -s conftest$ac_exeext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 (eval $ac_try) 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6559 eval "$as_ac_var=yes"
6560else
6561 echo "$as_me: failed program was:" >&5
6562sed 's/^/| /' conftest.$ac_ext >&5
6563
6564eval "$as_ac_var=no"
6565fi
6566rm -f conftest.err conftest.$ac_objext \
6567 conftest$ac_exeext conftest.$ac_ext
6568fi
6569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6570echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6571if test `eval echo '${'$as_ac_var'}'` = yes; then
6572 cat >>confdefs.h <<_ACEOF
6573#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6574_ACEOF
252b5132 6575
252b5132
RH
6576fi
6577done
6578
5464f5a1
NN
6579echo "$as_me:$LINENO: checking for working mmap" >&5
6580echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6581if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6583else
6584 if test "$cross_compiling" = yes; then
6585 ac_cv_func_mmap_fixed_mapped=no
6586else
5464f5a1
NN
6587 cat >conftest.$ac_ext <<_ACEOF
6588/* confdefs.h. */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
6592/* end confdefs.h. */
6593$ac_includes_default
6594/* malloc might have been renamed as rpl_malloc. */
6595#undef malloc
6be7c12c 6596
252b5132
RH
6597/* Thanks to Mike Haertel and Jim Avera for this test.
6598 Here is a matrix of mmap possibilities:
6599 mmap private not fixed
6600 mmap private fixed at somewhere currently unmapped
6601 mmap private fixed at somewhere already mapped
6602 mmap shared not fixed
6603 mmap shared fixed at somewhere currently unmapped
6604 mmap shared fixed at somewhere already mapped
6605 For private mappings, we should verify that changes cannot be read()
6606 back from the file, nor mmap's back from the file at a different
6607 address. (There have been systems where private was not correctly
6608 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 6609 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6610 like early versions of FreeBSD and possibly contemporary NetBSD.)
6611 For shared mappings, we should conversely verify that changes get
5464f5a1 6612 propagated back to all the places they're supposed to be.
252b5132
RH
6613
6614 Grep wants private fixed already mapped.
6615 The main things grep needs to know about mmap are:
6616 * does it exist and is it safe to write into the mmap'd area
6617 * how to use it (BSD variants) */
5464f5a1 6618
252b5132
RH
6619#include <fcntl.h>
6620#include <sys/mman.h>
6621
5464f5a1
NN
6622#if !STDC_HEADERS && !HAVE_STDLIB_H
6623char *malloc ();
6624#endif
6be7c12c 6625
5464f5a1
NN
6626/* This mess was copied from the GNU getpagesize.h. */
6627#if !HAVE_GETPAGESIZE
252b5132 6628/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 6629# if !HAVE_SYS_PARAM_H
252b5132
RH
6630# define HAVE_SYS_PARAM_H 1
6631# endif
6632
6633# ifdef _SC_PAGESIZE
6634# define getpagesize() sysconf(_SC_PAGESIZE)
6635# else /* no _SC_PAGESIZE */
5464f5a1 6636# if HAVE_SYS_PARAM_H
252b5132
RH
6637# include <sys/param.h>
6638# ifdef EXEC_PAGESIZE
6639# define getpagesize() EXEC_PAGESIZE
6640# else /* no EXEC_PAGESIZE */
6641# ifdef NBPG
6642# define getpagesize() NBPG * CLSIZE
6643# ifndef CLSIZE
6644# define CLSIZE 1
6645# endif /* no CLSIZE */
6646# else /* no NBPG */
6647# ifdef NBPC
6648# define getpagesize() NBPC
6649# else /* no NBPC */
6650# ifdef PAGESIZE
6651# define getpagesize() PAGESIZE
6652# endif /* PAGESIZE */
6653# endif /* no NBPC */
6654# endif /* no NBPG */
6655# endif /* no EXEC_PAGESIZE */
6656# else /* no HAVE_SYS_PARAM_H */
6657# define getpagesize() 8192 /* punt totally */
6658# endif /* no HAVE_SYS_PARAM_H */
6659# endif /* no _SC_PAGESIZE */
6660
6661#endif /* no HAVE_GETPAGESIZE */
6662
252b5132 6663int
5464f5a1 6664main ()
252b5132 6665{
5464f5a1
NN
6666 char *data, *data2, *data3;
6667 int i, pagesize;
6668 int fd;
6669
6670 pagesize = getpagesize ();
6671
6672 /* First, make a file with some known garbage in it. */
6673 data = (char *) malloc (pagesize);
6674 if (!data)
6675 exit (1);
6676 for (i = 0; i < pagesize; ++i)
6677 *(data + i) = rand ();
6678 umask (0);
6679 fd = creat ("conftest.mmap", 0600);
6680 if (fd < 0)
6681 exit (1);
6682 if (write (fd, data, pagesize) != pagesize)
6683 exit (1);
6684 close (fd);
6685
6686 /* Next, try to mmap the file at a fixed address which already has
6687 something else allocated at it. If we can, also make sure that
6688 we see the same garbage. */
6689 fd = open ("conftest.mmap", O_RDWR);
6690 if (fd < 0)
6691 exit (1);
6692 data2 = (char *) malloc (2 * pagesize);
6693 if (!data2)
6694 exit (1);
6695 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6696 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6697 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6698 exit (1);
6699 for (i = 0; i < pagesize; ++i)
6700 if (*(data + i) != *(data2 + i))
6701 exit (1);
6702
6703 /* Finally, make sure that changes to the mapped area do not
6704 percolate back to the file as seen by read(). (This is a bug on
6705 some variants of i386 svr4.0.) */
6706 for (i = 0; i < pagesize; ++i)
6707 *(data2 + i) = *(data2 + i) + 1;
6708 data3 = (char *) malloc (pagesize);
6709 if (!data3)
6710 exit (1);
6711 if (read (fd, data3, pagesize) != pagesize)
6712 exit (1);
6713 for (i = 0; i < pagesize; ++i)
6714 if (*(data + i) != *(data3 + i))
6715 exit (1);
6716 close (fd);
6717 exit (0);
252b5132 6718}
5464f5a1
NN
6719_ACEOF
6720rm -f conftest$ac_exeext
6721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6722 (eval $ac_link) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
252b5132
RH
6731 ac_cv_func_mmap_fixed_mapped=yes
6732else
5464f5a1
NN
6733 echo "$as_me: program exited with status $ac_status" >&5
6734echo "$as_me: failed program was:" >&5
6735sed 's/^/| /' conftest.$ac_ext >&5
6736
6737( exit $ac_status )
6738ac_cv_func_mmap_fixed_mapped=no
252b5132 6739fi
5464f5a1 6740rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6741fi
252b5132 6742fi
5464f5a1
NN
6743echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6744echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6be7c12c 6745if test $ac_cv_func_mmap_fixed_mapped = yes; then
5464f5a1
NN
6746
6747cat >>confdefs.h <<\_ACEOF
252b5132 6748#define HAVE_MMAP 1
5464f5a1 6749_ACEOF
252b5132
RH
6750
6751fi
5464f5a1
NN
6752rm -f conftest.mmap
6753
6754
252b5132 6755
5464f5a1
NN
6756
6757
6758
6759
6760
6761
6762
6763
6764for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6765unistd.h values.h sys/param.h
6766do
5464f5a1
NN
6767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6768if eval "test \"\${$as_ac_Header+set}\" = set"; then
6769 echo "$as_me:$LINENO: checking for $ac_header" >&5
6770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6771if eval "test \"\${$as_ac_Header+set}\" = set"; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773fi
6774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6776else
6777 # Is the header compilable?
6778echo "$as_me:$LINENO: checking $ac_header usability" >&5
6779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6780cat >conftest.$ac_ext <<_ACEOF
6781/* confdefs.h. */
6782_ACEOF
6783cat confdefs.h >>conftest.$ac_ext
6784cat >>conftest.$ac_ext <<_ACEOF
6785/* end confdefs.h. */
6786$ac_includes_default
6787#include <$ac_header>
6788_ACEOF
6789rm -f conftest.$ac_objext
6790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
7f266840 6798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_header_compiler=yes
6811else
6812 echo "$as_me: failed program was:" >&5
6813sed 's/^/| /' conftest.$ac_ext >&5
6814
6815ac_header_compiler=no
6816fi
6817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6819echo "${ECHO_T}$ac_header_compiler" >&6
6820
6821# Is the header present?
6822echo "$as_me:$LINENO: checking $ac_header presence" >&5
6823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6824cat >conftest.$ac_ext <<_ACEOF
6825/* confdefs.h. */
6826_ACEOF
6827cat confdefs.h >>conftest.$ac_ext
6828cat >>conftest.$ac_ext <<_ACEOF
6829/* end confdefs.h. */
6830#include <$ac_header>
6831_ACEOF
6832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } >/dev/null; then
6840 if test -s conftest.err; then
6841 ac_cpp_err=$ac_c_preproc_warn_flag
6842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6843 else
6844 ac_cpp_err=
6845 fi
252b5132 6846else
5464f5a1 6847 ac_cpp_err=yes
252b5132 6848fi
5464f5a1
NN
6849if test -z "$ac_cpp_err"; then
6850 ac_header_preproc=yes
6851else
6852 echo "$as_me: failed program was:" >&5
6853sed 's/^/| /' conftest.$ac_ext >&5
6854
6855 ac_header_preproc=no
252b5132 6856fi
5464f5a1
NN
6857rm -f conftest.err conftest.$ac_ext
6858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6859echo "${ECHO_T}$ac_header_preproc" >&6
6860
6861# So? What about this header?
6862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6863 yes:no: )
6864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6867echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6868 ac_header_preproc=yes
6869 ;;
6870 no:yes:* )
6871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6874echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6876echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6878echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6882echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6883 (
6884 cat <<\_ASBOX
6885## ------------------------------------------ ##
6886## Report this to the AC_PACKAGE_NAME lists. ##
6887## ------------------------------------------ ##
6888_ASBOX
6889 ) |
6890 sed "s/^/$as_me: WARNING: /" >&2
6891 ;;
6892esac
6893echo "$as_me:$LINENO: checking for $ac_header" >&5
6894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6895if eval "test \"\${$as_ac_Header+set}\" = set"; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6897else
5464f5a1
NN
6898 eval "$as_ac_Header=\$ac_header_preproc"
6899fi
6900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6902
6903fi
6904if test `eval echo '${'$as_ac_Header'}'` = yes; then
6905 cat >>confdefs.h <<_ACEOF
6906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6907_ACEOF
6908
252b5132 6909fi
5464f5a1 6910
252b5132
RH
6911done
6912
5464f5a1
NN
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6924__argz_count __argz_stringify __argz_next
6925do
5464f5a1
NN
6926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6927echo "$as_me:$LINENO: checking for $ac_func" >&5
6928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6929if eval "test \"\${$as_ac_var+set}\" = set"; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932 cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6940#define $ac_func innocuous_$ac_func
6941
252b5132 6942/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6943 which can conflict with char $ac_func (); below.
6944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6945 <limits.h> exists even on freestanding compilers. */
6946
6947#ifdef __STDC__
6948# include <limits.h>
6949#else
6950# include <assert.h>
6951#endif
6952
6953#undef $ac_func
6954
252b5132 6955/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
6956#ifdef __cplusplus
6957extern "C"
6958{
6959#endif
252b5132 6960/* We use char because int might match the return type of a gcc2
5464f5a1
NN
6961 builtin and then its argument prototype would still apply. */
6962char $ac_func ();
252b5132
RH
6963/* The GNU C library defines this for functions which it implements
6964 to always fail with ENOSYS. Some functions are actually named
6965 something starting with __ and the normal name is an alias. */
6966#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6967choke me
6968#else
5464f5a1
NN
6969char (*f) () = $ac_func;
6970#endif
6971#ifdef __cplusplus
6972}
252b5132
RH
6973#endif
6974
5464f5a1
NN
6975int
6976main ()
6977{
6978return f != $ac_func;
6979 ;
6980 return 0;
6981}
6982_ACEOF
6983rm -f conftest.$ac_objext conftest$ac_exeext
6984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6985 (eval $ac_link) 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
7f266840 6992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try='test -s conftest$ac_exeext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 eval "$as_ac_var=yes"
7005else
7006 echo "$as_me: failed program was:" >&5
7007sed 's/^/| /' conftest.$ac_ext >&5
7008
7009eval "$as_ac_var=no"
7010fi
7011rm -f conftest.err conftest.$ac_objext \
7012 conftest$ac_exeext conftest.$ac_ext
7013fi
7014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7015echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7016if test `eval echo '${'$as_ac_var'}'` = yes; then
7017 cat >>confdefs.h <<_ACEOF
7018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7019_ACEOF
252b5132 7020
252b5132
RH
7021fi
7022done
7023
b3baf5d0 7024
6be7c12c 7025 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5464f5a1
NN
7026
7027for ac_func in stpcpy
252b5132 7028do
5464f5a1
NN
7029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7030echo "$as_me:$LINENO: checking for $ac_func" >&5
7031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7032if eval "test \"\${$as_ac_var+set}\" = set"; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034else
7035 cat >conftest.$ac_ext <<_ACEOF
7036/* confdefs.h. */
7037_ACEOF
7038cat confdefs.h >>conftest.$ac_ext
7039cat >>conftest.$ac_ext <<_ACEOF
7040/* end confdefs.h. */
7041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7043#define $ac_func innocuous_$ac_func
7044
252b5132 7045/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7046 which can conflict with char $ac_func (); below.
7047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7048 <limits.h> exists even on freestanding compilers. */
7049
7050#ifdef __STDC__
7051# include <limits.h>
7052#else
7053# include <assert.h>
7054#endif
6be7c12c 7055
5464f5a1 7056#undef $ac_func
252b5132 7057
5464f5a1
NN
7058/* Override any gcc2 internal prototype to avoid an error. */
7059#ifdef __cplusplus
7060extern "C"
7061{
7062#endif
7063/* We use char because int might match the return type of a gcc2
7064 builtin and then its argument prototype would still apply. */
7065char $ac_func ();
252b5132
RH
7066/* The GNU C library defines this for functions which it implements
7067 to always fail with ENOSYS. Some functions are actually named
7068 something starting with __ and the normal name is an alias. */
7069#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7070choke me
7071#else
5464f5a1
NN
7072char (*f) () = $ac_func;
7073#endif
7074#ifdef __cplusplus
7075}
252b5132
RH
7076#endif
7077
5464f5a1
NN
7078int
7079main ()
7080{
7081return f != $ac_func;
7082 ;
7083 return 0;
7084}
7085_ACEOF
7086rm -f conftest.$ac_objext conftest$ac_exeext
7087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7088 (eval $ac_link) 2>conftest.er1
7089 ac_status=$?
7090 grep -v '^ *+' conftest.er1 >conftest.err
7091 rm -f conftest.er1
7092 cat conftest.err >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } &&
7f266840 7095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 (eval $ac_try) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 eval "$as_ac_var=yes"
7108else
7109 echo "$as_me: failed program was:" >&5
7110sed 's/^/| /' conftest.$ac_ext >&5
7111
7112eval "$as_ac_var=no"
7113fi
7114rm -f conftest.err conftest.$ac_objext \
7115 conftest$ac_exeext conftest.$ac_ext
7116fi
7117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7118echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7119if test `eval echo '${'$as_ac_var'}'` = yes; then
7120 cat >>confdefs.h <<_ACEOF
7121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7122_ACEOF
252b5132 7123
252b5132
RH
7124fi
7125done
7126
7127 fi
7128 if test "${ac_cv_func_stpcpy}" = "yes"; then
5464f5a1
NN
7129
7130cat >>confdefs.h <<\_ACEOF
252b5132 7131#define HAVE_STPCPY 1
5464f5a1 7132_ACEOF
252b5132
RH
7133
7134 fi
7135
7136 if test $ac_cv_header_locale_h = yes; then
5464f5a1
NN
7137 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7138echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7139if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142 cat >conftest.$ac_ext <<_ACEOF
7143/* confdefs.h. */
7144_ACEOF
7145cat confdefs.h >>conftest.$ac_ext
7146cat >>conftest.$ac_ext <<_ACEOF
7147/* end confdefs.h. */
252b5132 7148#include <locale.h>
5464f5a1
NN
7149int
7150main ()
7151{
252b5132 7152return LC_MESSAGES
5464f5a1
NN
7153 ;
7154 return 0;
7155}
7156_ACEOF
7157rm -f conftest.$ac_objext conftest$ac_exeext
7158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7f266840 7166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest$ac_exeext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
252b5132
RH
7178 am_cv_val_LC_MESSAGES=yes
7179else
5464f5a1
NN
7180 echo "$as_me: failed program was:" >&5
7181sed 's/^/| /' conftest.$ac_ext >&5
7182
7183am_cv_val_LC_MESSAGES=no
252b5132 7184fi
5464f5a1
NN
7185rm -f conftest.err conftest.$ac_objext \
7186 conftest$ac_exeext conftest.$ac_ext
252b5132 7187fi
5464f5a1
NN
7188echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7189echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6be7c12c 7190 if test $am_cv_val_LC_MESSAGES = yes; then
5464f5a1
NN
7191
7192cat >>confdefs.h <<\_ACEOF
252b5132 7193#define HAVE_LC_MESSAGES 1
5464f5a1 7194_ACEOF
252b5132
RH
7195
7196 fi
7197 fi
5464f5a1
NN
7198 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7199echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7200 # Check whether --enable-nls or --disable-nls was given.
7201if test "${enable_nls+set}" = set; then
7202 enableval="$enable_nls"
7203 USE_NLS=$enableval
7204else
7205 USE_NLS=yes
5464f5a1
NN
7206fi;
7207 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7208echo "${ECHO_T}$USE_NLS" >&6
6be7c12c 7209
252b5132
RH
7210
7211 USE_INCLUDED_LIBINTL=no
7212
7213 if test "$USE_NLS" = "yes"; then
5464f5a1
NN
7214
7215cat >>confdefs.h <<\_ACEOF
252b5132 7216#define ENABLE_NLS 1
5464f5a1 7217_ACEOF
252b5132 7218
5464f5a1
NN
7219 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7220echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7221
7222# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7223if test "${with_included_gettext+set}" = set; then
7224 withval="$with_included_gettext"
7225 nls_cv_force_use_gnu_gettext=$withval
7226else
7227 nls_cv_force_use_gnu_gettext=no
5464f5a1
NN
7228fi;
7229 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7230echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7231
7232 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7233 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7234 nls_cv_header_intl=
7235 nls_cv_header_libgt=
7236 CATOBJEXT=NONE
7237
5464f5a1
NN
7238 if test "${ac_cv_header_libintl_h+set}" = set; then
7239 echo "$as_me:$LINENO: checking for libintl.h" >&5
7240echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7241if test "${ac_cv_header_libintl_h+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243fi
7244echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7245echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7246else
7247 # Is the header compilable?
7248echo "$as_me:$LINENO: checking libintl.h usability" >&5
7249echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7250cat >conftest.$ac_ext <<_ACEOF
7251/* confdefs.h. */
7252_ACEOF
7253cat confdefs.h >>conftest.$ac_ext
7254cat >>conftest.$ac_ext <<_ACEOF
7255/* end confdefs.h. */
7256$ac_includes_default
252b5132 7257#include <libintl.h>
5464f5a1
NN
7258_ACEOF
7259rm -f conftest.$ac_objext
7260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7f266840 7268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 (eval $ac_try) 2>&5
7271 ac_status=$?
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; } &&
7274 { ac_try='test -s conftest.$ac_objext'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 (eval $ac_try) 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 ac_header_compiler=yes
7281else
7282 echo "$as_me: failed program was:" >&5
7283sed 's/^/| /' conftest.$ac_ext >&5
7284
7285ac_header_compiler=no
7286fi
7287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7289echo "${ECHO_T}$ac_header_compiler" >&6
7290
7291# Is the header present?
7292echo "$as_me:$LINENO: checking libintl.h presence" >&5
7293echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7294cat >conftest.$ac_ext <<_ACEOF
7295/* confdefs.h. */
7296_ACEOF
7297cat confdefs.h >>conftest.$ac_ext
7298cat >>conftest.$ac_ext <<_ACEOF
7299/* end confdefs.h. */
7300#include <libintl.h>
7301_ACEOF
7302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } >/dev/null; then
7310 if test -s conftest.err; then
7311 ac_cpp_err=$ac_c_preproc_warn_flag
7312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7313 else
7314 ac_cpp_err=
7315 fi
252b5132 7316else
5464f5a1 7317 ac_cpp_err=yes
252b5132 7318fi
5464f5a1
NN
7319if test -z "$ac_cpp_err"; then
7320 ac_header_preproc=yes
7321else
7322 echo "$as_me: failed program was:" >&5
7323sed 's/^/| /' conftest.$ac_ext >&5
7324
7325 ac_header_preproc=no
252b5132 7326fi
5464f5a1
NN
7327rm -f conftest.err conftest.$ac_ext
7328echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7329echo "${ECHO_T}$ac_header_preproc" >&6
7330
7331# So? What about this header?
7332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7333 yes:no: )
7334 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7335echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7336 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7337echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7338 ac_header_preproc=yes
7339 ;;
7340 no:yes:* )
7341 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7342echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7343 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7344echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7345 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7346echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7348echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7350echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7352echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7353 (
7354 cat <<\_ASBOX
7355## ------------------------------------------ ##
7356## Report this to the AC_PACKAGE_NAME lists. ##
7357## ------------------------------------------ ##
7358_ASBOX
7359 ) |
7360 sed "s/^/$as_me: WARNING: /" >&2
7361 ;;
7362esac
7363echo "$as_me:$LINENO: checking for libintl.h" >&5
7364echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7365if test "${ac_cv_header_libintl_h+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7367else
5464f5a1
NN
7368 ac_cv_header_libintl_h=$ac_header_preproc
7369fi
7370echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7371echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7372
7373fi
7374if test $ac_cv_header_libintl_h = yes; then
7375 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7376echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7377if test "${gt_cv_func_gettext_libc+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379else
7380 cat >conftest.$ac_ext <<_ACEOF
7381/* confdefs.h. */
7382_ACEOF
7383cat confdefs.h >>conftest.$ac_ext
7384cat >>conftest.$ac_ext <<_ACEOF
7385/* end confdefs.h. */
252b5132 7386#include <libintl.h>
5464f5a1
NN
7387int
7388main ()
7389{
252b5132 7390return (int) gettext ("")
5464f5a1
NN
7391 ;
7392 return 0;
7393}
7394_ACEOF
7395rm -f conftest.$ac_objext conftest$ac_exeext
7396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7397 (eval $ac_link) 2>conftest.er1
7398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7f266840 7404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try='test -s conftest$ac_exeext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
252b5132
RH
7416 gt_cv_func_gettext_libc=yes
7417else
5464f5a1
NN
7418 echo "$as_me: failed program was:" >&5
7419sed 's/^/| /' conftest.$ac_ext >&5
7420
7421gt_cv_func_gettext_libc=no
252b5132 7422fi
5464f5a1
NN
7423rm -f conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
252b5132 7425fi
5464f5a1
NN
7426echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7427echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7428
7429 if test "$gt_cv_func_gettext_libc" != "yes"; then
5464f5a1
NN
7430 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7431echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7432if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7434else
5464f5a1 7435 ac_check_lib_save_LIBS=$LIBS
252b5132 7436LIBS="-lintl $LIBS"
5464f5a1
NN
7437cat >conftest.$ac_ext <<_ACEOF
7438/* confdefs.h. */
7439_ACEOF
7440cat confdefs.h >>conftest.$ac_ext
7441cat >>conftest.$ac_ext <<_ACEOF
7442/* end confdefs.h. */
7443
252b5132 7444/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7445#ifdef __cplusplus
7446extern "C"
7447#endif
252b5132 7448/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7449 builtin and then its argument prototype would still apply. */
7450char bindtextdomain ();
7451int
7452main ()
7453{
7454bindtextdomain ();
7455 ;
7456 return 0;
7457}
7458_ACEOF
7459rm -f conftest.$ac_objext conftest$ac_exeext
7460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7f266840 7468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; } &&
7474 { ac_try='test -s conftest$ac_exeext'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 (eval $ac_try) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7480 ac_cv_lib_intl_bindtextdomain=yes
7481else
7482 echo "$as_me: failed program was:" >&5
7483sed 's/^/| /' conftest.$ac_ext >&5
7484
7485ac_cv_lib_intl_bindtextdomain=no
7486fi
7487rm -f conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489LIBS=$ac_check_lib_save_LIBS
7490fi
7491echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7492echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7493if test $ac_cv_lib_intl_bindtextdomain = yes; then
7494 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7495echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7496if test "${gt_cv_func_gettext_libintl+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498else
7499 cat >conftest.$ac_ext <<_ACEOF
7500/* confdefs.h. */
7501_ACEOF
7502cat confdefs.h >>conftest.$ac_ext
7503cat >>conftest.$ac_ext <<_ACEOF
7504/* end confdefs.h. */
252b5132 7505
5464f5a1
NN
7506int
7507main ()
7508{
252b5132 7509return (int) gettext ("")
5464f5a1
NN
7510 ;
7511 return 0;
7512}
7513_ACEOF
7514rm -f conftest.$ac_objext conftest$ac_exeext
7515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>conftest.er1
7517 ac_status=$?
7518 grep -v '^ *+' conftest.er1 >conftest.err
7519 rm -f conftest.er1
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7f266840 7523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
252b5132
RH
7535 gt_cv_func_gettext_libintl=yes
7536else
5464f5a1
NN
7537 echo "$as_me: failed program was:" >&5
7538sed 's/^/| /' conftest.$ac_ext >&5
7539
7540gt_cv_func_gettext_libintl=no
252b5132 7541fi
5464f5a1
NN
7542rm -f conftest.err conftest.$ac_objext \
7543 conftest$ac_exeext conftest.$ac_ext
252b5132 7544fi
5464f5a1
NN
7545echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7546echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7547fi
7548
7549 fi
7550
7551 if test "$gt_cv_func_gettext_libc" = "yes" \
7552 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5464f5a1
NN
7553
7554cat >>confdefs.h <<\_ACEOF
252b5132 7555#define HAVE_GETTEXT 1
5464f5a1 7556_ACEOF
252b5132
RH
7557
7558 # Extract the first word of "msgfmt", so it can be a program name with args.
7559set dummy msgfmt; ac_word=$2
5464f5a1
NN
7560echo "$as_me:$LINENO: checking for $ac_word" >&5
7561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7562if test "${ac_cv_path_MSGFMT+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7564else
7565 case "$MSGFMT" in
7566 /*)
7567 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7568 ;;
7569 *)
7570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7571 for ac_dir in $PATH; do
7572 test -z "$ac_dir" && ac_dir=.
7573 if test -f $ac_dir/$ac_word; then
7574 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7575 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7576 break
7577 fi
7578 fi
7579 done
7580 IFS="$ac_save_ifs"
7581 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7582 ;;
7583esac
7584fi
7585MSGFMT="$ac_cv_path_MSGFMT"
7586if test -n "$MSGFMT"; then
5464f5a1
NN
7587 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7588echo "${ECHO_T}$MSGFMT" >&6
252b5132 7589else
5464f5a1
NN
7590 echo "$as_me:$LINENO: result: no" >&5
7591echo "${ECHO_T}no" >&6
252b5132
RH
7592fi
7593 if test "$MSGFMT" != "no"; then
5464f5a1
NN
7594
7595for ac_func in dcgettext
252b5132 7596do
5464f5a1
NN
7597as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7598echo "$as_me:$LINENO: checking for $ac_func" >&5
7599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7600if eval "test \"\${$as_ac_var+set}\" = set"; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602else
7603 cat >conftest.$ac_ext <<_ACEOF
7604/* confdefs.h. */
7605_ACEOF
7606cat confdefs.h >>conftest.$ac_ext
7607cat >>conftest.$ac_ext <<_ACEOF
7608/* end confdefs.h. */
7609/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7611#define $ac_func innocuous_$ac_func
7612
252b5132 7613/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7614 which can conflict with char $ac_func (); below.
7615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7616 <limits.h> exists even on freestanding compilers. */
7617
7618#ifdef __STDC__
7619# include <limits.h>
7620#else
7621# include <assert.h>
7622#endif
6be7c12c 7623
5464f5a1 7624#undef $ac_func
252b5132 7625
5464f5a1
NN
7626/* Override any gcc2 internal prototype to avoid an error. */
7627#ifdef __cplusplus
7628extern "C"
7629{
7630#endif
7631/* We use char because int might match the return type of a gcc2
7632 builtin and then its argument prototype would still apply. */
7633char $ac_func ();
252b5132
RH
7634/* The GNU C library defines this for functions which it implements
7635 to always fail with ENOSYS. Some functions are actually named
7636 something starting with __ and the normal name is an alias. */
7637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7638choke me
7639#else
5464f5a1
NN
7640char (*f) () = $ac_func;
7641#endif
7642#ifdef __cplusplus
7643}
252b5132
RH
7644#endif
7645
5464f5a1
NN
7646int
7647main ()
7648{
7649return f != $ac_func;
7650 ;
7651 return 0;
7652}
7653_ACEOF
7654rm -f conftest.$ac_objext conftest$ac_exeext
7655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7f266840 7663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; } &&
7669 { ac_try='test -s conftest$ac_exeext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 eval "$as_ac_var=yes"
7676else
7677 echo "$as_me: failed program was:" >&5
7678sed 's/^/| /' conftest.$ac_ext >&5
7679
7680eval "$as_ac_var=no"
7681fi
7682rm -f conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
7684fi
7685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7686echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7687if test `eval echo '${'$as_ac_var'}'` = yes; then
7688 cat >>confdefs.h <<_ACEOF
7689#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7690_ACEOF
252b5132 7691
252b5132
RH
7692fi
7693done
7694
7695 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7696set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7697echo "$as_me:$LINENO: checking for $ac_word" >&5
7698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7699if test "${ac_cv_path_GMSGFMT+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7701else
5464f5a1
NN
7702 case $GMSGFMT in
7703 [\\/]* | ?:[\\/]*)
252b5132
RH
7704 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7705 ;;
252b5132 7706 *)
5464f5a1
NN
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718done
7719done
7720
252b5132
RH
7721 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7722 ;;
7723esac
7724fi
5464f5a1
NN
7725GMSGFMT=$ac_cv_path_GMSGFMT
7726
252b5132 7727if test -n "$GMSGFMT"; then
5464f5a1
NN
7728 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7729echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7730else
5464f5a1
NN
7731 echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6
252b5132
RH
7733fi
7734
7735 # Extract the first word of "xgettext", so it can be a program name with args.
7736set dummy xgettext; ac_word=$2
5464f5a1
NN
7737echo "$as_me:$LINENO: checking for $ac_word" >&5
7738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7739if test "${ac_cv_path_XGETTEXT+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7741else
7742 case "$XGETTEXT" in
7743 /*)
7744 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7745 ;;
7746 *)
7747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7748 for ac_dir in $PATH; do
7749 test -z "$ac_dir" && ac_dir=.
7750 if test -f $ac_dir/$ac_word; then
7751 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7752 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7753 break
7754 fi
7755 fi
7756 done
7757 IFS="$ac_save_ifs"
7758 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7759 ;;
7760esac
7761fi
7762XGETTEXT="$ac_cv_path_XGETTEXT"
7763if test -n "$XGETTEXT"; then
5464f5a1
NN
7764 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7765echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7766else
5464f5a1
NN
7767 echo "$as_me:$LINENO: result: no" >&5
7768echo "${ECHO_T}no" >&6
252b5132
RH
7769fi
7770
5464f5a1
NN
7771 cat >conftest.$ac_ext <<_ACEOF
7772/* confdefs.h. */
7773_ACEOF
7774cat confdefs.h >>conftest.$ac_ext
7775cat >>conftest.$ac_ext <<_ACEOF
7776/* end confdefs.h. */
252b5132 7777
5464f5a1
NN
7778int
7779main ()
7780{
252b5132
RH
7781extern int _nl_msg_cat_cntr;
7782 return _nl_msg_cat_cntr
5464f5a1
NN
7783 ;
7784 return 0;
7785}
7786_ACEOF
7787rm -f conftest.$ac_objext conftest$ac_exeext
7788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7789 (eval $ac_link) 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7f266840 7796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; } &&
7802 { ac_try='test -s conftest$ac_exeext'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 (eval $ac_try) 2>&5
7805 ac_status=$?
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
252b5132
RH
7808 CATOBJEXT=.gmo
7809 DATADIRNAME=share
7810else
5464f5a1
NN
7811 echo "$as_me: failed program was:" >&5
7812sed 's/^/| /' conftest.$ac_ext >&5
7813
7814CATOBJEXT=.mo
252b5132
RH
7815 DATADIRNAME=lib
7816fi
5464f5a1
NN
7817rm -f conftest.err conftest.$ac_objext \
7818 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7819 INSTOBJEXT=.mo
7820 fi
7821 fi
5464f5a1 7822
b3baf5d0 7823fi
252b5132 7824
6be7c12c 7825
5464f5a1
NN
7826
7827
252b5132
RH
7828 if test "$CATOBJEXT" = "NONE"; then
7829 nls_cv_use_gnu_gettext=yes
7830 fi
7831 fi
7832
7833 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7834 INTLOBJS="\$(GETTOBJS)"
7835 # Extract the first word of "msgfmt", so it can be a program name with args.
7836set dummy msgfmt; ac_word=$2
5464f5a1
NN
7837echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839if test "${ac_cv_path_MSGFMT+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7841else
7842 case "$MSGFMT" in
7843 /*)
7844 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7845 ;;
7846 *)
7847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7848 for ac_dir in $PATH; do
7849 test -z "$ac_dir" && ac_dir=.
7850 if test -f $ac_dir/$ac_word; then
7851 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7852 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7853 break
7854 fi
7855 fi
7856 done
7857 IFS="$ac_save_ifs"
7858 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7859 ;;
7860esac
7861fi
7862MSGFMT="$ac_cv_path_MSGFMT"
7863if test -n "$MSGFMT"; then
5464f5a1
NN
7864 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7865echo "${ECHO_T}$MSGFMT" >&6
252b5132 7866else
5464f5a1
NN
7867 echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6
252b5132
RH
7869fi
7870
7871 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7872set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7873echo "$as_me:$LINENO: checking for $ac_word" >&5
7874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7875if test "${ac_cv_path_GMSGFMT+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7877else
5464f5a1
NN
7878 case $GMSGFMT in
7879 [\\/]* | ?:[\\/]*)
252b5132
RH
7880 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7881 ;;
252b5132 7882 *)
5464f5a1
NN
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7893 fi
7894done
7895done
7896
252b5132
RH
7897 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7898 ;;
7899esac
7900fi
5464f5a1
NN
7901GMSGFMT=$ac_cv_path_GMSGFMT
7902
252b5132 7903if test -n "$GMSGFMT"; then
5464f5a1
NN
7904 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7905echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7906else
5464f5a1
NN
7907 echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6
252b5132
RH
7909fi
7910
7911 # Extract the first word of "xgettext", so it can be a program name with args.
7912set dummy xgettext; ac_word=$2
5464f5a1
NN
7913echo "$as_me:$LINENO: checking for $ac_word" >&5
7914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7915if test "${ac_cv_path_XGETTEXT+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7917else
7918 case "$XGETTEXT" in
7919 /*)
7920 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7921 ;;
7922 *)
7923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7924 for ac_dir in $PATH; do
7925 test -z "$ac_dir" && ac_dir=.
7926 if test -f $ac_dir/$ac_word; then
7927 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7928 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7929 break
7930 fi
7931 fi
7932 done
7933 IFS="$ac_save_ifs"
7934 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7935 ;;
7936esac
7937fi
7938XGETTEXT="$ac_cv_path_XGETTEXT"
7939if test -n "$XGETTEXT"; then
5464f5a1
NN
7940 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7941echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7942else
5464f5a1
NN
7943 echo "$as_me:$LINENO: result: no" >&5
7944echo "${ECHO_T}no" >&6
252b5132
RH
7945fi
7946
5464f5a1 7947
252b5132
RH
7948 USE_INCLUDED_LIBINTL=yes
7949 CATOBJEXT=.gmo
7950 INSTOBJEXT=.mo
7951 DATADIRNAME=share
7952 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7953 INTLLIBS=$INTLDEPS
7954 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7955 nls_cv_header_intl=libintl.h
7956 nls_cv_header_libgt=libgettext.h
7957 fi
7958
7959 if test "$XGETTEXT" != ":"; then
7960 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7961 : ;
7962 else
5464f5a1
NN
7963 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7964echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
7965 XGETTEXT=":"
7966 fi
7967 fi
7968
7969 # We need to process the po/ directory.
7970 POSUB=po
7971 else
7972 DATADIRNAME=share
7973 nls_cv_header_intl=libintl.h
7974 nls_cv_header_libgt=libgettext.h
7975 fi
7976
7977 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7978 # because some of the sources are only built for this goal.
7979 if test "$PACKAGE" = gettext; then
7980 USE_NLS=yes
7981 USE_INCLUDED_LIBINTL=yes
7982 fi
7983
7984 for lang in $ALL_LINGUAS; do
7985 GMOFILES="$GMOFILES $lang.gmo"
7986 POFILES="$POFILES $lang.po"
7987 done
7988
5464f5a1
NN
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
6be7c12c 8001
252b5132
RH
8002 if test "x$CATOBJEXT" != "x"; then
8003 if test "x$ALL_LINGUAS" = "x"; then
8004 LINGUAS=
8005 else
5464f5a1
NN
8006 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8007echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8008 NEW_LINGUAS=
8009 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8010 case "$ALL_LINGUAS" in
8011 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8012 esac
8013 done
8014 LINGUAS=$NEW_LINGUAS
5464f5a1
NN
8015 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8016echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8017 fi
8018
8019 if test -n "$LINGUAS"; then
8020 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8021 fi
8022 fi
8023
8024 if test $ac_cv_header_locale_h = yes; then
8025 INCLUDE_LOCALE_H="#include <locale.h>"
8026 else
8027 INCLUDE_LOCALE_H="\
8028/* The system does not provide the header <locale.h>. Take care yourself. */"
8029 fi
5464f5a1 8030
252b5132
RH
8031
8032 if test -f $srcdir/po2tbl.sed.in; then
8033 if test "$CATOBJEXT" = ".cat"; then
5464f5a1
NN
8034 if test "${ac_cv_header_linux_version_h+set}" = set; then
8035 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8036echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8037if test "${ac_cv_header_linux_version_h+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8039fi
8040echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8041echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8042else
8043 # Is the header compilable?
8044echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8045echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8046cat >conftest.$ac_ext <<_ACEOF
8047/* confdefs.h. */
8048_ACEOF
8049cat confdefs.h >>conftest.$ac_ext
8050cat >>conftest.$ac_ext <<_ACEOF
8051/* end confdefs.h. */
8052$ac_includes_default
252b5132 8053#include <linux/version.h>
5464f5a1
NN
8054_ACEOF
8055rm -f conftest.$ac_objext
8056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8057 (eval $ac_compile) 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
7f266840 8064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_header_compiler=yes
8077else
8078 echo "$as_me: failed program was:" >&5
8079sed 's/^/| /' conftest.$ac_ext >&5
8080
8081ac_header_compiler=no
8082fi
8083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8084echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8085echo "${ECHO_T}$ac_header_compiler" >&6
8086
8087# Is the header present?
8088echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8089echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8090cat >conftest.$ac_ext <<_ACEOF
8091/* confdefs.h. */
8092_ACEOF
8093cat confdefs.h >>conftest.$ac_ext
8094cat >>conftest.$ac_ext <<_ACEOF
8095/* end confdefs.h. */
8096#include <linux/version.h>
8097_ACEOF
8098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } >/dev/null; then
8106 if test -s conftest.err; then
8107 ac_cpp_err=$ac_c_preproc_warn_flag
8108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8109 else
8110 ac_cpp_err=
8111 fi
252b5132 8112else
5464f5a1 8113 ac_cpp_err=yes
252b5132 8114fi
5464f5a1
NN
8115if test -z "$ac_cpp_err"; then
8116 ac_header_preproc=yes
8117else
8118 echo "$as_me: failed program was:" >&5
8119sed 's/^/| /' conftest.$ac_ext >&5
8120
8121 ac_header_preproc=no
8122fi
8123rm -f conftest.err conftest.$ac_ext
8124echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8125echo "${ECHO_T}$ac_header_preproc" >&6
8126
8127# So? What about this header?
8128case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8129 yes:no: )
8130 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8131echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8133echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8134 ac_header_preproc=yes
8135 ;;
8136 no:yes:* )
8137 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8138echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8139 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8140echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8141 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8142echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8143 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8144echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8145 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8146echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8147 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8148echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8149 (
8150 cat <<\_ASBOX
8151## ------------------------------------------ ##
8152## Report this to the AC_PACKAGE_NAME lists. ##
8153## ------------------------------------------ ##
8154_ASBOX
8155 ) |
8156 sed "s/^/$as_me: WARNING: /" >&2
8157 ;;
8158esac
8159echo "$as_me:$LINENO: checking for linux/version.h" >&5
8160echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8161if test "${ac_cv_header_linux_version_h+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163else
8164 ac_cv_header_linux_version_h=$ac_header_preproc
8165fi
8166echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8167echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8168
252b5132 8169fi
5464f5a1 8170if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8171 msgformat=linux
8172else
5464f5a1 8173 msgformat=xopen
252b5132
RH
8174fi
8175
6be7c12c 8176
5464f5a1 8177
252b5132
RH
8178 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8179 fi
8180 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8181 $srcdir/po2tbl.sed.in > po2tbl.sed
8182 fi
8183
8184 if test "$PACKAGE" = "gettext"; then
8185 GT_NO="#NO#"
8186 GT_YES=
8187 else
8188 GT_NO=
8189 GT_YES="#YES#"
8190 fi
5464f5a1
NN
8191
8192
252b5132
RH
8193
8194 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5464f5a1 8195
252b5132
RH
8196
8197 l=
5464f5a1 8198
252b5132 8199
3c3bdf30 8200 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8201 test -d po || mkdir po
8202 if test "x$srcdir" != "x."; then
8203 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8204 posrcprefix="$srcdir/"
8205 else
8206 posrcprefix="../$srcdir/"
8207 fi
8208 else
8209 posrcprefix="../"
8210 fi
8211 rm -f po/POTFILES
8212 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8213 < $srcdir/po/POTFILES.in > po/POTFILES
8214 fi
5464f5a1 8215
252b5132
RH
8216
8217# Permit host specific settings.
8218. ${srcdir}/configure.host
8219
6be7c12c 8220
252b5132
RH
8221# Find a good install program. We prefer a C program (faster),
8222# so one script is as good as another. But avoid the broken or
8223# incompatible versions:
8224# SysV /etc/install, /usr/sbin/install
8225# SunOS /usr/etc/install
8226# IRIX /sbin/install
8227# AIX /bin/install
5464f5a1 8228# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8229# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8230# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8231# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 8232# OS/2's system install, which has a completely different semantic
252b5132 8233# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
8234echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8235echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8236if test -z "$INSTALL"; then
5464f5a1
NN
8237if test "${ac_cv_path_install+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8239else
5464f5a1
NN
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241for as_dir in $PATH
8242do
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 # Account for people who put trailing slashes in PATH elements.
8246case $as_dir/ in
8247 ./ | .// | /cC/* | \
8248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8249 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8250 /usr/ucb/* ) ;;
8251 *)
8252 # OSF1 and SCO ODT 3.0 have their own names for install.
8253 # Don't use installbsd from OSF since it installs stuff as root
8254 # by default.
8255 for ac_prog in ginstall scoinst install; do
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8258 if test $ac_prog = install &&
5464f5a1 8259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8260 # AIX install. It has an incompatible calling convention.
8261 :
5464f5a1
NN
8262 elif test $ac_prog = install &&
8263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8264 # program-specific install script used by HP pwplus--don't use.
8265 :
252b5132 8266 else
5464f5a1
NN
8267 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8268 break 3
252b5132
RH
8269 fi
8270 fi
8271 done
5464f5a1
NN
8272 done
8273 ;;
8274esac
8275done
8276
252b5132
RH
8277
8278fi
8279 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 8280 INSTALL=$ac_cv_path_install
252b5132
RH
8281 else
8282 # As a last resort, use the slow shell script. We don't cache a
8283 # path for INSTALL within a source directory, because that will
8284 # break other packages using the cache if that directory is
8285 # removed, or if the path is relative.
5464f5a1 8286 INSTALL=$ac_install_sh
252b5132
RH
8287 fi
8288fi
5464f5a1
NN
8289echo "$as_me:$LINENO: result: $INSTALL" >&5
8290echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8291
8292# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8293# It thinks the first close brace ends the variable substitution.
8294test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8295
5464f5a1 8296test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8297
8298test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8299
6be7c12c 8300
252b5132 8301BFD_HOST_64BIT_LONG=0
ec317fb1 8302BFD_HOST_LONG_LONG=0
252b5132
RH
8303BFD_HOST_64_BIT_DEFINED=0
8304BFD_HOST_64_BIT=
8305BFD_HOST_U_64_BIT=
252b5132 8306
5464f5a1
NN
8307echo "$as_me:$LINENO: checking for long long" >&5
8308echo $ECHO_N "checking for long long... $ECHO_C" >&6
8309if test "${bfd_cv_has_long_long+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 8311else
5464f5a1
NN
8312 cat >conftest.$ac_ext <<_ACEOF
8313/* confdefs.h. */
8314_ACEOF
8315cat confdefs.h >>conftest.$ac_ext
8316cat >>conftest.$ac_ext <<_ACEOF
8317/* end confdefs.h. */
ec317fb1 8318
5464f5a1
NN
8319int
8320main ()
8321{
ec317fb1 8322unsigned long long ll = 18446744073709551615ULL;
5464f5a1
NN
8323 ;
8324 return 0;
8325}
8326_ACEOF
8327rm -f conftest.$ac_objext
8328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8329 (eval $ac_compile) 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
7f266840 8336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; } &&
8342 { ac_try='test -s conftest.$ac_objext'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
ec317fb1
ILT
8348 bfd_cv_has_long_long=yes
8349else
5464f5a1
NN
8350 echo "$as_me: failed program was:" >&5
8351sed 's/^/| /' conftest.$ac_ext >&5
8352
8353bfd_cv_has_long_long=no
ec317fb1 8354fi
5464f5a1 8355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ec317fb1
ILT
8356fi
8357
5464f5a1
NN
8358echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8359echo "${ECHO_T}$bfd_cv_has_long_long" >&6
ec317fb1
ILT
8360if test $bfd_cv_has_long_long = yes; then
8361 BFD_HOST_LONG_LONG=1
5464f5a1
NN
8362 echo "$as_me:$LINENO: checking size of long long" >&5
8363echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8364if test "${ac_cv_sizeof_long_long+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8366else
8367 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8368 cat >conftest.$ac_ext <<_ACEOF
8369/* confdefs.h. */
8370_ACEOF
8371cat confdefs.h >>conftest.$ac_ext
8372cat >>conftest.$ac_ext <<_ACEOF
8373/* end confdefs.h. */
6726e1ea
L
8374#include "confdefs.h"
8375#include <sys/types.h>
8376
8377
5464f5a1
NN
8378int
8379main ()
8380{
6726e1ea 8381switch (0) case 0: case (sizeof (long long) == $ac_size):;
5464f5a1
NN
8382 ;
8383 return 0;
8384}
8385_ACEOF
8386rm -f conftest.$ac_objext
8387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8388 (eval $ac_compile) 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
7f266840 8395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest.$ac_objext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
6726e1ea
L
8407 ac_cv_sizeof_long_long=$ac_size
8408else
5464f5a1
NN
8409 echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
6726e1ea 8412fi
5464f5a1 8413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8414 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8415done
8416
8417fi
8418
8419if test x$ac_cv_sizeof_long_long = x ; then
5464f5a1
NN
8420 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8421echo "$as_me: error: cannot determine a size for long long" >&2;}
8422 { (exit 1); exit 1; }; }
6726e1ea 8423fi
5464f5a1
NN
8424echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8425echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8426
8427cat >>confdefs.h <<_ACEOF
6726e1ea 8428#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 8429_ACEOF
6726e1ea
L
8430
8431
8432fi
8433
5464f5a1
NN
8434echo "$as_me:$LINENO: checking size of long" >&5
8435echo $ECHO_N "checking size of long... $ECHO_C" >&6
8436if test "${ac_cv_sizeof_long+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8438else
8439 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8440 cat >conftest.$ac_ext <<_ACEOF
8441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
6726e1ea
L
8446#include "confdefs.h"
8447#include <sys/types.h>
8448
8449
5464f5a1
NN
8450int
8451main ()
8452{
6726e1ea 8453switch (0) case 0: case (sizeof (long) == $ac_size):;
5464f5a1
NN
8454 ;
8455 return 0;
8456}
8457_ACEOF
8458rm -f conftest.$ac_objext
8459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460 (eval $ac_compile) 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
7f266840 8467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
6726e1ea
L
8479 ac_cv_sizeof_long=$ac_size
8480else
5464f5a1
NN
8481 echo "$as_me: failed program was:" >&5
8482sed 's/^/| /' conftest.$ac_ext >&5
8483
6726e1ea 8484fi
5464f5a1 8485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8486 if test x$ac_cv_sizeof_long != x ; then break; fi
8487done
8488
8489fi
8490
8491if test x$ac_cv_sizeof_long = x ; then
5464f5a1
NN
8492 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8493echo "$as_me: error: cannot determine a size for long" >&2;}
8494 { (exit 1); exit 1; }; }
6726e1ea 8495fi
5464f5a1
NN
8496echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8497echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8498
8499cat >>confdefs.h <<_ACEOF
6726e1ea 8500#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 8501_ACEOF
6726e1ea
L
8502
8503
8504if test "x${ac_cv_sizeof_long}" = "x8"; then
8505 host64=true
ccba357f
AM
8506 BFD_HOST_64BIT_LONG=1
8507 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8508 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
6726e1ea 8509elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
ccba357f
AM
8510 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8511 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
6726e1ea
L
8512fi
8513
ccba357f 8514if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
6726e1ea 8515 BFD_HOST_64_BIT_DEFINED=1
ccba357f
AM
8516 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8517 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
ec317fb1
ILT
8518fi
8519
8520
8521
6be7c12c
AO
8522
8523
8524
8525
252b5132
RH
8526# Put a plausible default for CC_FOR_BUILD in Makefile.
8527if test -z "$CC_FOR_BUILD"; then
8528 if test "x$cross_compiling" = "xno"; then
8529 CC_FOR_BUILD='$(CC)'
8530 else
8531 CC_FOR_BUILD=gcc
8532 fi
8533fi
8534
8535# Also set EXEEXT_FOR_BUILD.
8536if test "x$cross_compiling" = "xno"; then
8537 EXEEXT_FOR_BUILD='$(EXEEXT)'
8538else
5464f5a1
NN
8539 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8540echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8541if test "${bfd_cv_build_exeext+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8543else
aab08431
ILT
8544 rm -f conftest*
8545 echo 'int main () { return 0; }' > conftest.c
8546 bfd_cv_build_exeext=
8547 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8548 for file in conftest.*; do
8549 case $file in
8550 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8551 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8552 esac
8553 done
8554 rm -f conftest*
8555 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 8556fi
5464f5a1
NN
8557echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8558echo "${ECHO_T}$bfd_cv_build_exeext" >&6
252b5132
RH
8559 EXEEXT_FOR_BUILD=""
8560 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8561fi
8562
6be7c12c 8563
5464f5a1
NN
8564
8565
8566
8567
8568
8569
8570for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
252b5132 8571do
5464f5a1
NN
8572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8573if eval "test \"\${$as_ac_Header+set}\" = set"; then
8574 echo "$as_me:$LINENO: checking for $ac_header" >&5
8575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8576if eval "test \"\${$as_ac_Header+set}\" = set"; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578fi
8579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8581else
8582 # Is the header compilable?
8583echo "$as_me:$LINENO: checking $ac_header usability" >&5
8584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8585cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h. */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h. */
8591$ac_includes_default
8592#include <$ac_header>
8593_ACEOF
8594rm -f conftest.$ac_objext
8595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8596 (eval $ac_compile) 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
7f266840 8603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; } &&
8609 { ac_try='test -s conftest.$ac_objext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 ac_header_compiler=yes
8616else
8617 echo "$as_me: failed program was:" >&5
8618sed 's/^/| /' conftest.$ac_ext >&5
8619
8620ac_header_compiler=no
8621fi
8622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8624echo "${ECHO_T}$ac_header_compiler" >&6
8625
8626# Is the header present?
8627echo "$as_me:$LINENO: checking $ac_header presence" >&5
8628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8629cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
8635#include <$ac_header>
8636_ACEOF
8637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } >/dev/null; then
8645 if test -s conftest.err; then
8646 ac_cpp_err=$ac_c_preproc_warn_flag
8647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8648 else
8649 ac_cpp_err=
8650 fi
252b5132 8651else
5464f5a1 8652 ac_cpp_err=yes
252b5132 8653fi
5464f5a1
NN
8654if test -z "$ac_cpp_err"; then
8655 ac_header_preproc=yes
8656else
8657 echo "$as_me: failed program was:" >&5
8658sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 ac_header_preproc=no
252b5132 8661fi
5464f5a1
NN
8662rm -f conftest.err conftest.$ac_ext
8663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8664echo "${ECHO_T}$ac_header_preproc" >&6
8665
8666# So? What about this header?
8667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8668 yes:no: )
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8670echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8672echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8673 ac_header_preproc=yes
8674 ;;
8675 no:yes:* )
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8677echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8679echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8681echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8683echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8685echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8687echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8688 (
8689 cat <<\_ASBOX
8690## ------------------------------------------ ##
8691## Report this to the AC_PACKAGE_NAME lists. ##
8692## ------------------------------------------ ##
8693_ASBOX
8694 ) |
8695 sed "s/^/$as_me: WARNING: /" >&2
8696 ;;
8697esac
8698echo "$as_me:$LINENO: checking for $ac_header" >&5
8699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8700if eval "test \"\${$as_ac_Header+set}\" = set"; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8702else
5464f5a1
NN
8703 eval "$as_ac_Header=\$ac_header_preproc"
8704fi
8705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8707
252b5132 8708fi
5464f5a1
NN
8709if test `eval echo '${'$as_ac_Header'}'` = yes; then
8710 cat >>confdefs.h <<_ACEOF
8711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8712_ACEOF
8713
8714fi
8715
252b5132
RH
8716done
8717
5464f5a1
NN
8718
8719
8720
8721for ac_header in fcntl.h sys/file.h sys/time.h
252b5132 8722do
5464f5a1
NN
8723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8724if eval "test \"\${$as_ac_Header+set}\" = set"; then
8725 echo "$as_me:$LINENO: checking for $ac_header" >&5
8726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8727if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729fi
8730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8732else
8733 # Is the header compilable?
8734echo "$as_me:$LINENO: checking $ac_header usability" >&5
8735echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8736cat >conftest.$ac_ext <<_ACEOF
8737/* confdefs.h. */
8738_ACEOF
8739cat confdefs.h >>conftest.$ac_ext
8740cat >>conftest.$ac_ext <<_ACEOF
8741/* end confdefs.h. */
8742$ac_includes_default
8743#include <$ac_header>
8744_ACEOF
8745rm -f conftest.$ac_objext
8746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747 (eval $ac_compile) 2>conftest.er1
8748 ac_status=$?
8749 grep -v '^ *+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
7f266840 8754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest.$ac_objext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_header_compiler=yes
8767else
8768 echo "$as_me: failed program was:" >&5
8769sed 's/^/| /' conftest.$ac_ext >&5
8770
8771ac_header_compiler=no
8772fi
8773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8774echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8775echo "${ECHO_T}$ac_header_compiler" >&6
8776
8777# Is the header present?
8778echo "$as_me:$LINENO: checking $ac_header presence" >&5
8779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8780cat >conftest.$ac_ext <<_ACEOF
8781/* confdefs.h. */
8782_ACEOF
8783cat confdefs.h >>conftest.$ac_ext
8784cat >>conftest.$ac_ext <<_ACEOF
8785/* end confdefs.h. */
8786#include <$ac_header>
8787_ACEOF
8788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } >/dev/null; then
8796 if test -s conftest.err; then
8797 ac_cpp_err=$ac_c_preproc_warn_flag
8798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8799 else
8800 ac_cpp_err=
8801 fi
252b5132 8802else
5464f5a1 8803 ac_cpp_err=yes
252b5132 8804fi
5464f5a1
NN
8805if test -z "$ac_cpp_err"; then
8806 ac_header_preproc=yes
8807else
8808 echo "$as_me: failed program was:" >&5
8809sed 's/^/| /' conftest.$ac_ext >&5
8810
8811 ac_header_preproc=no
252b5132 8812fi
5464f5a1
NN
8813rm -f conftest.err conftest.$ac_ext
8814echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8815echo "${ECHO_T}$ac_header_preproc" >&6
8816
8817# So? What about this header?
8818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8819 yes:no: )
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8824 ac_header_preproc=yes
8825 ;;
8826 no:yes:* )
8827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8830echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8834echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8839 (
8840 cat <<\_ASBOX
8841## ------------------------------------------ ##
8842## Report this to the AC_PACKAGE_NAME lists. ##
8843## ------------------------------------------ ##
8844_ASBOX
8845 ) |
8846 sed "s/^/$as_me: WARNING: /" >&2
8847 ;;
8848esac
8849echo "$as_me:$LINENO: checking for $ac_header" >&5
8850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8851if eval "test \"\${$as_ac_Header+set}\" = set"; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8853else
5464f5a1
NN
8854 eval "$as_ac_Header=\$ac_header_preproc"
8855fi
8856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8858
8859fi
8860if test `eval echo '${'$as_ac_Header'}'` = yes; then
8861 cat >>confdefs.h <<_ACEOF
8862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8863_ACEOF
8864
252b5132 8865fi
5464f5a1 8866
252b5132
RH
8867done
8868
5464f5a1
NN
8869echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8870echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8871if test "${ac_cv_header_time+set}" = set; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8873else
8874 cat >conftest.$ac_ext <<_ACEOF
8875/* confdefs.h. */
8876_ACEOF
8877cat confdefs.h >>conftest.$ac_ext
8878cat >>conftest.$ac_ext <<_ACEOF
8879/* end confdefs.h. */
252b5132
RH
8880#include <sys/types.h>
8881#include <sys/time.h>
8882#include <time.h>
5464f5a1
NN
8883
8884int
8885main ()
8886{
8887if ((struct tm *) 0)
8888return 0;
8889 ;
8890 return 0;
8891}
8892_ACEOF
8893rm -f conftest.$ac_objext
8894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895 (eval $ac_compile) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
7f266840 8902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; } &&
8908 { ac_try='test -s conftest.$ac_objext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
252b5132
RH
8914 ac_cv_header_time=yes
8915else
5464f5a1
NN
8916 echo "$as_me: failed program was:" >&5
8917sed 's/^/| /' conftest.$ac_ext >&5
8918
8919ac_cv_header_time=no
252b5132 8920fi
5464f5a1 8921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8922fi
5464f5a1
NN
8923echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8924echo "${ECHO_T}$ac_cv_header_time" >&6
6be7c12c 8925if test $ac_cv_header_time = yes; then
5464f5a1
NN
8926
8927cat >>confdefs.h <<\_ACEOF
252b5132 8928#define TIME_WITH_SYS_TIME 1
5464f5a1 8929_ACEOF
252b5132
RH
8930
8931fi
8932
5464f5a1
NN
8933
8934
8935
8936
8937
252b5132 8938ac_header_dirent=no
5464f5a1
NN
8939for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8940 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8941echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8942echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8943if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945else
8946 cat >conftest.$ac_ext <<_ACEOF
8947/* confdefs.h. */
8948_ACEOF
8949cat confdefs.h >>conftest.$ac_ext
8950cat >>conftest.$ac_ext <<_ACEOF
8951/* end confdefs.h. */
252b5132
RH
8952#include <sys/types.h>
8953#include <$ac_hdr>
5464f5a1
NN
8954
8955int
8956main ()
8957{
8958if ((DIR *) 0)
8959return 0;
8960 ;
8961 return 0;
8962}
8963_ACEOF
8964rm -f conftest.$ac_objext
8965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966 (eval $ac_compile) 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
7f266840 8973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 (eval $ac_try) 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest.$ac_objext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 eval "$as_ac_Header=yes"
8986else
8987 echo "$as_me: failed program was:" >&5
8988sed 's/^/| /' conftest.$ac_ext >&5
8989
8990eval "$as_ac_Header=no"
8991fi
8992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8993fi
8994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8995echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8996if test `eval echo '${'$as_ac_Header'}'` = yes; then
8997 cat >>confdefs.h <<_ACEOF
8998#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8999_ACEOF
9000
9001ac_header_dirent=$ac_hdr; break
252b5132 9002fi
5464f5a1 9003
252b5132
RH
9004done
9005# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9006if test $ac_header_dirent = dirent.h; then
5464f5a1
NN
9007 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9008echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9009if test "${ac_cv_search_opendir+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011else
9012 ac_func_search_save_LIBS=$LIBS
9013ac_cv_search_opendir=no
9014cat >conftest.$ac_ext <<_ACEOF
9015/* confdefs.h. */
9016_ACEOF
9017cat confdefs.h >>conftest.$ac_ext
9018cat >>conftest.$ac_ext <<_ACEOF
9019/* end confdefs.h. */
9020
252b5132 9021/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
9022#ifdef __cplusplus
9023extern "C"
9024#endif
252b5132 9025/* We use char because int might match the return type of a gcc2
5464f5a1
NN
9026 builtin and then its argument prototype would still apply. */
9027char opendir ();
9028int
9029main ()
9030{
9031opendir ();
9032 ;
9033 return 0;
9034}
9035_ACEOF
9036rm -f conftest.$ac_objext conftest$ac_exeext
9037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9038 (eval $ac_link) 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
7f266840 9045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try='test -s conftest$ac_exeext'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; }; then
9057 ac_cv_search_opendir="none required"
9058else
9059 echo "$as_me: failed program was:" >&5
9060sed 's/^/| /' conftest.$ac_ext >&5
9061
9062fi
9063rm -f conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065if test "$ac_cv_search_opendir" = no; then
9066 for ac_lib in dir; do
9067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9068 cat >conftest.$ac_ext <<_ACEOF
9069/* confdefs.h. */
9070_ACEOF
9071cat confdefs.h >>conftest.$ac_ext
9072cat >>conftest.$ac_ext <<_ACEOF
9073/* end confdefs.h. */
6be7c12c 9074
5464f5a1
NN
9075/* Override any gcc2 internal prototype to avoid an error. */
9076#ifdef __cplusplus
9077extern "C"
9078#endif
9079/* We use char because int might match the return type of a gcc2
9080 builtin and then its argument prototype would still apply. */
9081char opendir ();
9082int
9083main ()
9084{
9085opendir ();
9086 ;
9087 return 0;
9088}
9089_ACEOF
9090rm -f conftest.$ac_objext conftest$ac_exeext
9091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9092 (eval $ac_link) 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
7f266840 9099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; } &&
9105 { ac_try='test -s conftest$ac_exeext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_cv_search_opendir="-l$ac_lib"
9112break
9113else
9114 echo "$as_me: failed program was:" >&5
9115sed 's/^/| /' conftest.$ac_ext >&5
9116
9117fi
9118rm -f conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 done
6be7c12c 9121fi
5464f5a1 9122LIBS=$ac_func_search_save_LIBS
6be7c12c 9123fi
5464f5a1
NN
9124echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9125echo "${ECHO_T}$ac_cv_search_opendir" >&6
9126if test "$ac_cv_search_opendir" != no; then
9127 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9128
252b5132
RH
9129fi
9130
9131else
5464f5a1
NN
9132 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9133echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9134if test "${ac_cv_search_opendir+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 9136else
5464f5a1
NN
9137 ac_func_search_save_LIBS=$LIBS
9138ac_cv_search_opendir=no
9139cat >conftest.$ac_ext <<_ACEOF
9140/* confdefs.h. */
9141_ACEOF
9142cat confdefs.h >>conftest.$ac_ext
9143cat >>conftest.$ac_ext <<_ACEOF
9144/* end confdefs.h. */
9145
6be7c12c 9146/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
9147#ifdef __cplusplus
9148extern "C"
9149#endif
6be7c12c 9150/* We use char because int might match the return type of a gcc2
5464f5a1
NN
9151 builtin and then its argument prototype would still apply. */
9152char opendir ();
9153int
9154main ()
9155{
9156opendir ();
9157 ;
9158 return 0;
9159}
9160_ACEOF
9161rm -f conftest.$ac_objext conftest$ac_exeext
9162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9163 (eval $ac_link) 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
7f266840 9170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; } &&
9176 { ac_try='test -s conftest$ac_exeext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 ac_cv_search_opendir="none required"
9183else
9184 echo "$as_me: failed program was:" >&5
9185sed 's/^/| /' conftest.$ac_ext >&5
9186
9187fi
9188rm -f conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext conftest.$ac_ext
9190if test "$ac_cv_search_opendir" = no; then
9191 for ac_lib in x; do
9192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9193 cat >conftest.$ac_ext <<_ACEOF
9194/* confdefs.h. */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h. */
6be7c12c 9199
5464f5a1
NN
9200/* Override any gcc2 internal prototype to avoid an error. */
9201#ifdef __cplusplus
9202extern "C"
9203#endif
9204/* We use char because int might match the return type of a gcc2
9205 builtin and then its argument prototype would still apply. */
9206char opendir ();
9207int
9208main ()
9209{
9210opendir ();
9211 ;
9212 return 0;
9213}
9214_ACEOF
9215rm -f conftest.$ac_objext conftest$ac_exeext
9216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9217 (eval $ac_link) 2>conftest.er1
9218 ac_status=$?
9219 grep -v '^ *+' conftest.er1 >conftest.err
9220 rm -f conftest.er1
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } &&
7f266840 9224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest$ac_exeext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_cv_search_opendir="-l$ac_lib"
9237break
9238else
9239 echo "$as_me: failed program was:" >&5
9240sed 's/^/| /' conftest.$ac_ext >&5
9241
9242fi
9243rm -f conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 done
6be7c12c 9246fi
5464f5a1 9247LIBS=$ac_func_search_save_LIBS
6be7c12c 9248fi
5464f5a1
NN
9249echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9250echo "${ECHO_T}$ac_cv_search_opendir" >&6
9251if test "$ac_cv_search_opendir" != no; then
9252 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9253
252b5132
RH
9254fi
9255
9256fi
9257
5464f5a1
NN
9258
9259
9260
9261
9262
9263
9264
633fd09f 9265for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 9266do
5464f5a1
NN
9267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9268echo "$as_me:$LINENO: checking for $ac_func" >&5
9269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9270if eval "test \"\${$as_ac_var+set}\" = set"; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272else
9273 cat >conftest.$ac_ext <<_ACEOF
9274/* confdefs.h. */
9275_ACEOF
9276cat confdefs.h >>conftest.$ac_ext
9277cat >>conftest.$ac_ext <<_ACEOF
9278/* end confdefs.h. */
9279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9281#define $ac_func innocuous_$ac_func
9282
252b5132 9283/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
9284 which can conflict with char $ac_func (); below.
9285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286 <limits.h> exists even on freestanding compilers. */
9287
9288#ifdef __STDC__
9289# include <limits.h>
9290#else
9291# include <assert.h>
9292#endif
6be7c12c 9293
5464f5a1 9294#undef $ac_func
252b5132 9295
5464f5a1
NN
9296/* Override any gcc2 internal prototype to avoid an error. */
9297#ifdef __cplusplus
9298extern "C"
9299{
9300#endif
9301/* We use char because int might match the return type of a gcc2
9302 builtin and then its argument prototype would still apply. */
9303char $ac_func ();
252b5132
RH
9304/* The GNU C library defines this for functions which it implements
9305 to always fail with ENOSYS. Some functions are actually named
9306 something starting with __ and the normal name is an alias. */
9307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9308choke me
9309#else
5464f5a1
NN
9310char (*f) () = $ac_func;
9311#endif
9312#ifdef __cplusplus
9313}
252b5132
RH
9314#endif
9315
5464f5a1
NN
9316int
9317main ()
9318{
9319return f != $ac_func;
9320 ;
9321 return 0;
9322}
9323_ACEOF
9324rm -f conftest.$ac_objext conftest$ac_exeext
9325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326 (eval $ac_link) 2>conftest.er1
9327 ac_status=$?
9328 grep -v '^ *+' conftest.er1 >conftest.err
9329 rm -f conftest.er1
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
7f266840 9333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; } &&
9339 { ac_try='test -s conftest$ac_exeext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 eval "$as_ac_var=yes"
9346else
9347 echo "$as_me: failed program was:" >&5
9348sed 's/^/| /' conftest.$ac_ext >&5
9349
9350eval "$as_ac_var=no"
9351fi
9352rm -f conftest.err conftest.$ac_objext \
9353 conftest$ac_exeext conftest.$ac_ext
9354fi
9355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9357if test `eval echo '${'$as_ac_var'}'` = yes; then
9358 cat >>confdefs.h <<_ACEOF
9359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9360_ACEOF
252b5132 9361
252b5132
RH
9362fi
9363done
9364
5464f5a1 9365
49c97a80
ILT
9366for ac_func in strtoull
9367do
5464f5a1
NN
9368as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9369echo "$as_me:$LINENO: checking for $ac_func" >&5
9370echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9371if eval "test \"\${$as_ac_var+set}\" = set"; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9373else
9374 cat >conftest.$ac_ext <<_ACEOF
9375/* confdefs.h. */
9376_ACEOF
9377cat confdefs.h >>conftest.$ac_ext
9378cat >>conftest.$ac_ext <<_ACEOF
9379/* end confdefs.h. */
9380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9382#define $ac_func innocuous_$ac_func
9383
49c97a80 9384/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
9385 which can conflict with char $ac_func (); below.
9386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9387 <limits.h> exists even on freestanding compilers. */
9388
9389#ifdef __STDC__
9390# include <limits.h>
9391#else
9392# include <assert.h>
9393#endif
49c97a80 9394
5464f5a1 9395#undef $ac_func
49c97a80 9396
5464f5a1
NN
9397/* Override any gcc2 internal prototype to avoid an error. */
9398#ifdef __cplusplus
9399extern "C"
9400{
9401#endif
9402/* We use char because int might match the return type of a gcc2
9403 builtin and then its argument prototype would still apply. */
9404char $ac_func ();
49c97a80
ILT
9405/* The GNU C library defines this for functions which it implements
9406 to always fail with ENOSYS. Some functions are actually named
9407 something starting with __ and the normal name is an alias. */
9408#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9409choke me
9410#else
5464f5a1
NN
9411char (*f) () = $ac_func;
9412#endif
9413#ifdef __cplusplus
9414}
49c97a80
ILT
9415#endif
9416
5464f5a1
NN
9417int
9418main ()
9419{
9420return f != $ac_func;
9421 ;
9422 return 0;
9423}
9424_ACEOF
9425rm -f conftest.$ac_objext conftest$ac_exeext
9426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } &&
7f266840 9434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 (eval $ac_try) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; } &&
9440 { ac_try='test -s conftest$ac_exeext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 eval "$as_ac_var=yes"
9447else
9448 echo "$as_me: failed program was:" >&5
9449sed 's/^/| /' conftest.$ac_ext >&5
9450
9451eval "$as_ac_var=no"
9452fi
9453rm -f conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9455fi
9456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9457echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9458if test `eval echo '${'$as_ac_var'}'` = yes; then
9459 cat >>confdefs.h <<_ACEOF
9460#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9461_ACEOF
49c97a80 9462
49c97a80
ILT
9463fi
9464done
9465
6be7c12c
AO
9466
9467
252b5132 9468case "${host}" in
855b0be7 9469*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
9470
9471cat >>confdefs.h <<\_ACEOF
252b5132 9472#define USE_BINARY_FOPEN 1
5464f5a1 9473_ACEOF
252b5132
RH
9474 ;;
9475esac
9476
5464f5a1
NN
9477echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9478echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9479if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9481else
5464f5a1
NN
9482 cat >conftest.$ac_ext <<_ACEOF
9483/* confdefs.h. */
9484_ACEOF
9485cat confdefs.h >>conftest.$ac_ext
9486cat >>conftest.$ac_ext <<_ACEOF
9487/* end confdefs.h. */
252b5132
RH
9488
9489#include <stdio.h>
9490#ifdef HAVE_STRING_H
9491#include <string.h>
9492#else
9493#ifdef HAVE_STRINGS_H
9494#include <strings.h>
9495#endif
9496#endif
9497#ifdef HAVE_STDLIB_H
9498#include <stdlib.h>
9499#endif
9500#ifdef HAVE_UNISTD_H
9501#include <unistd.h>
9502#endif
5464f5a1
NN
9503int
9504main ()
9505{
252b5132 9506char *(*pfn) = (char *(*)) strstr
5464f5a1
NN
9507 ;
9508 return 0;
9509}
9510_ACEOF
9511rm -f conftest.$ac_objext
9512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9513 (eval $ac_compile) 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
7f266840 9520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 (eval $ac_try) 2>&5
9523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; } &&
9526 { ac_try='test -s conftest.$ac_objext'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 (eval $ac_try) 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
252b5132
RH
9532 bfd_cv_decl_needed_strstr=no
9533else
5464f5a1
NN
9534 echo "$as_me: failed program was:" >&5
9535sed 's/^/| /' conftest.$ac_ext >&5
9536
9537bfd_cv_decl_needed_strstr=yes
252b5132 9538fi
5464f5a1 9539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9540fi
9541
5464f5a1
NN
9542echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9543echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
252b5132 9544if test $bfd_cv_decl_needed_strstr = yes; then
5464f5a1
NN
9545
9546cat >>confdefs.h <<\_ACEOF
252b5132 9547#define NEED_DECLARATION_STRSTR 1
5464f5a1 9548_ACEOF
252b5132
RH
9549
9550fi
9551
5464f5a1
NN
9552echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
9553echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
9554if test "${bfd_cv_decl_needed_malloc+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9556else
5464f5a1
NN
9557 cat >conftest.$ac_ext <<_ACEOF
9558/* confdefs.h. */
9559_ACEOF
9560cat confdefs.h >>conftest.$ac_ext
9561cat >>conftest.$ac_ext <<_ACEOF
9562/* end confdefs.h. */
252b5132
RH
9563
9564#include <stdio.h>
9565#ifdef HAVE_STRING_H
9566#include <string.h>
9567#else
9568#ifdef HAVE_STRINGS_H
9569#include <strings.h>
9570#endif
9571#endif
9572#ifdef HAVE_STDLIB_H
9573#include <stdlib.h>
9574#endif
9575#ifdef HAVE_UNISTD_H
9576#include <unistd.h>
9577#endif
5464f5a1
NN
9578int
9579main ()
9580{
9581char *(*pfn) = (char *(*)) malloc
9582 ;
9583 return 0;
9584}
9585_ACEOF
9586rm -f conftest.$ac_objext
9587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588 (eval $ac_compile) 2>conftest.er1
9589 ac_status=$?
9590 grep -v '^ *+' conftest.er1 >conftest.err
9591 rm -f conftest.er1
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
7f266840 9595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try='test -s conftest.$ac_objext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 (eval $ac_try) 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
252b5132
RH
9607 bfd_cv_decl_needed_malloc=no
9608else
5464f5a1
NN
9609 echo "$as_me: failed program was:" >&5
9610sed 's/^/| /' conftest.$ac_ext >&5
9611
9612bfd_cv_decl_needed_malloc=yes
252b5132 9613fi
5464f5a1 9614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9615fi
9616
5464f5a1
NN
9617echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
9618echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
252b5132 9619if test $bfd_cv_decl_needed_malloc = yes; then
5464f5a1
NN
9620
9621cat >>confdefs.h <<\_ACEOF
252b5132 9622#define NEED_DECLARATION_MALLOC 1
5464f5a1 9623_ACEOF
252b5132
RH
9624
9625fi
9626
5464f5a1
NN
9627echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
9628echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
9629if test "${bfd_cv_decl_needed_realloc+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9631else
5464f5a1
NN
9632 cat >conftest.$ac_ext <<_ACEOF
9633/* confdefs.h. */
9634_ACEOF
9635cat confdefs.h >>conftest.$ac_ext
9636cat >>conftest.$ac_ext <<_ACEOF
9637/* end confdefs.h. */
252b5132
RH
9638
9639#include <stdio.h>
9640#ifdef HAVE_STRING_H
9641#include <string.h>
9642#else
9643#ifdef HAVE_STRINGS_H
9644#include <strings.h>
9645#endif
9646#endif
9647#ifdef HAVE_STDLIB_H
9648#include <stdlib.h>
9649#endif
9650#ifdef HAVE_UNISTD_H
9651#include <unistd.h>
9652#endif
5464f5a1
NN
9653int
9654main ()
9655{
252b5132 9656char *(*pfn) = (char *(*)) realloc
5464f5a1
NN
9657 ;
9658 return 0;
9659}
9660_ACEOF
9661rm -f conftest.$ac_objext
9662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9663 (eval $ac_compile) 2>conftest.er1
9664 ac_status=$?
9665 grep -v '^ *+' conftest.er1 >conftest.err
9666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
7f266840 9670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest.$ac_objext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
252b5132
RH
9682 bfd_cv_decl_needed_realloc=no
9683else
5464f5a1
NN
9684 echo "$as_me: failed program was:" >&5
9685sed 's/^/| /' conftest.$ac_ext >&5
9686
9687bfd_cv_decl_needed_realloc=yes
252b5132 9688fi
5464f5a1 9689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9690fi
9691
5464f5a1
NN
9692echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
9693echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
252b5132 9694if test $bfd_cv_decl_needed_realloc = yes; then
5464f5a1
NN
9695
9696cat >>confdefs.h <<\_ACEOF
252b5132 9697#define NEED_DECLARATION_REALLOC 1
5464f5a1 9698_ACEOF
252b5132
RH
9699
9700fi
9701
5464f5a1
NN
9702echo "$as_me:$LINENO: checking whether free must be declared" >&5
9703echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9704if test "${bfd_cv_decl_needed_free+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9706else
5464f5a1
NN
9707 cat >conftest.$ac_ext <<_ACEOF
9708/* confdefs.h. */
9709_ACEOF
9710cat confdefs.h >>conftest.$ac_ext
9711cat >>conftest.$ac_ext <<_ACEOF
9712/* end confdefs.h. */
252b5132
RH
9713
9714#include <stdio.h>
9715#ifdef HAVE_STRING_H
9716#include <string.h>
9717#else
9718#ifdef HAVE_STRINGS_H
9719#include <strings.h>
9720#endif
9721#endif
9722#ifdef HAVE_STDLIB_H
9723#include <stdlib.h>
9724#endif
9725#ifdef HAVE_UNISTD_H
9726#include <unistd.h>
9727#endif
5464f5a1
NN
9728int
9729main ()
9730{
252b5132 9731char *(*pfn) = (char *(*)) free
5464f5a1
NN
9732 ;
9733 return 0;
9734}
9735_ACEOF
9736rm -f conftest.$ac_objext
9737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738 (eval $ac_compile) 2>conftest.er1
9739 ac_status=$?
9740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
7f266840 9745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest.$ac_objext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
252b5132
RH
9757 bfd_cv_decl_needed_free=no
9758else
5464f5a1
NN
9759 echo "$as_me: failed program was:" >&5
9760sed 's/^/| /' conftest.$ac_ext >&5
9761
9762bfd_cv_decl_needed_free=yes
252b5132 9763fi
5464f5a1 9764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9765fi
9766
5464f5a1
NN
9767echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9768echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
252b5132 9769if test $bfd_cv_decl_needed_free = yes; then
5464f5a1
NN
9770
9771cat >>confdefs.h <<\_ACEOF
252b5132 9772#define NEED_DECLARATION_FREE 1
5464f5a1 9773_ACEOF
252b5132
RH
9774
9775fi
9776
5464f5a1
NN
9777echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9778echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9779if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9781else
5464f5a1
NN
9782 cat >conftest.$ac_ext <<_ACEOF
9783/* confdefs.h. */
9784_ACEOF
9785cat confdefs.h >>conftest.$ac_ext
9786cat >>conftest.$ac_ext <<_ACEOF
9787/* end confdefs.h. */
252b5132
RH
9788
9789#include <stdio.h>
9790#ifdef HAVE_STRING_H
9791#include <string.h>
9792#else
9793#ifdef HAVE_STRINGS_H
9794#include <strings.h>
9795#endif
9796#endif
9797#ifdef HAVE_STDLIB_H
9798#include <stdlib.h>
9799#endif
9800#ifdef HAVE_UNISTD_H
9801#include <unistd.h>
9802#endif
5464f5a1
NN
9803int
9804main ()
9805{
252b5132 9806char *(*pfn) = (char *(*)) getenv
5464f5a1
NN
9807 ;
9808 return 0;
9809}
9810_ACEOF
9811rm -f conftest.$ac_objext
9812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9813 (eval $ac_compile) 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
7f266840 9820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
252b5132
RH
9832 bfd_cv_decl_needed_getenv=no
9833else
5464f5a1
NN
9834 echo "$as_me: failed program was:" >&5
9835sed 's/^/| /' conftest.$ac_ext >&5
9836
9837bfd_cv_decl_needed_getenv=yes
252b5132 9838fi
5464f5a1 9839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9840fi
9841
5464f5a1
NN
9842echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9843echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
252b5132 9844if test $bfd_cv_decl_needed_getenv = yes; then
5464f5a1
NN
9845
9846cat >>confdefs.h <<\_ACEOF
252b5132 9847#define NEED_DECLARATION_GETENV 1
5464f5a1 9848_ACEOF
252b5132
RH
9849
9850fi
9851
6be7c12c 9852
252b5132
RH
9853# If we are configured native, pick a core file support file.
9854COREFILE=
9855COREFLAG=
9856TRAD_HEADER=
9857if test "${target}" = "${host}"; then
9858 case "${host}" in
13dfd2d0 9859 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
9860 COREFILE=''
9861 ;;
252b5132
RH
9862 alpha*-*-linux-gnu*)
9863 COREFILE=trad-core.lo
9864 TRAD_HEADER='"hosts/alphalinux.h"'
9865 ;;
690cc98b
NC
9866 alpha*-*-netbsd* | alpha*-*-openbsd*)
9867 COREFILE=netbsd-core.lo
9868 ;;
252b5132 9869 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
9870 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9871 COREFILE='' ;;
61d0bc33 9872 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
9873 arm-*-riscix) COREFILE=trad-core.lo ;;
9874 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9875 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9876 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9877 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9878 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
9879 hppa*-*-netbsd* | hppa*-*-openbsd*)
9880 COREFILE=netbsd-core.lo
9881 ;;
9882
dc810e39 9883 i370-*-*)
5b93d8bb
AM
9884 COREFILE=trad-core.lo
9885 TRAD_HEADER='"hosts/i370linux.h"'
9886 ;;
9887
80c7c40a 9888 i[3-7]86-sequent-bsd*)
5b93d8bb 9889 COREFILE=trad-core.lo
252b5132
RH
9890 TRAD_HEADER='"hosts/symmetry.h"'
9891 ;;
80c7c40a
NC
9892 i[3-7]86-sequent-sysv4*) ;;
9893 i[3-7]86-sequent-sysv*)
252b5132
RH
9894 COREFILE=trad-core.lo
9895 TRAD_HEADER='"hosts/symmetry.h"'
9896 ;;
80c7c40a 9897 i[3-7]86-*-bsdi)
7e3b3466
NC
9898 COREFILE=
9899 ;;
d2bef492 9900 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
9901 COREFILE=trad-core.lo
9902 TRAD_HEADER='"hosts/i386bsd.h"'
9903 ;;
13dfd2d0 9904 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
9905 COREFILE=''
9906 TRAD_HEADER='"hosts/i386bsd.h"'
9907 ;;
4615568e 9908 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
9909 COREFILE=netbsd-core.lo
9910 ;;
80c7c40a 9911 i[3-7]86-esix-sysv3*)
252b5132
RH
9912 COREFILE=trad-core.lo
9913 TRAD_HEADER='"hosts/esix.h"'
9914 ;;
80c7c40a 9915 i[3-7]86-*-sco3.2v5*)
252b5132
RH
9916 COREFILE=sco5-core.lo
9917 ;;
80c7c40a 9918 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
9919 COREFILE=trad-core.lo
9920 TRAD_HEADER='"hosts/i386sco.h"'
9921 ;;
80c7c40a 9922 i[3-7]86-*-mach3*)
252b5132
RH
9923 COREFILE=trad-core.lo
9924 TRAD_HEADER='"hosts/i386mach3.h"'
9925 ;;
80c7c40a 9926 i[3-7]86-*-linux-gnu*)
252b5132
RH
9927 COREFILE=trad-core.lo
9928 TRAD_HEADER='"hosts/i386linux.h"'
9929 ;;
80c7c40a
NC
9930 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9931 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
9932 i860-*-mach3* | i860-*-osf1*)
9933 COREFILE=trad-core.lo
9934 TRAD_HEADER='"hosts/i860mach3.h"'
9935 ;;
252b5132
RH
9936 mips-*-netbsd* | mips*-*-openbsd*)
9937 COREFILE=netbsd-core.lo
9938 ;;
9939 mips-dec-*)
9940 COREFILE=trad-core.lo
9941 TRAD_HEADER='"hosts/decstation.h"'
9942 ;;
9943 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9944 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9945 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
9946 mips-*-sysv4*) ;;
9947 mips-*-sysv* | mips-*-riscos*)
9948 COREFILE=trad-core.lo
9949 TRAD_HEADER='"hosts/riscos.h"'
9950 ;;
9951 mips-sony-bsd*)
9952 COREFILE=trad-core.lo
9953 TRAD_HEADER='"hosts/news-mips.h"'
9954 ;;
9955 m68*-bull*-sysv*)
9956 COREFILE=trad-core.lo
9957 TRAD_HEADER='"hosts/dpx2.h"'
9958 ;;
9959 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9960 m68*-hp-bsd*)
9961 COREFILE=trad-core.lo
9962 TRAD_HEADER='"hosts/hp300bsd.h"'
9963 ;;
9964 m68*-*-linux-gnu*)
9965 COREFILE=trad-core.lo
9966 TRAD_HEADER='"hosts/m68klinux.h"'
9967 ;;
9968 m68*-motorola-sysv*)
9969 COREFILE=trad-core.lo
9970 TRAD_HEADER='"hosts/delta68.h"'
9971 ;;
9972 m68*-sony-*)
9973 COREFILE=trad-core.lo
9974 TRAD_HEADER='"hosts/news.h"'
9975 ;;
9976 m68*-*-netbsd* | m68*-*-openbsd*)
9977 COREFILE=netbsd-core.lo
9978 ;;
9979 m68*-apple-aux*)
9980 COREFILE=trad-core.lo
9981 TRAD_HEADER='"hosts/m68kaux.h"'
9982 ;;
eb1e0e80
NC
9983 m88*-*-sysv4*)
9984 ;;
9985 m88*-motorola-sysv*)
9986 COREFILE=ptrace-core.lo
9987 ;;
252b5132
RH
9988 m88*-*-mach3*)
9989 COREFILE=trad-core.lo
9990 TRAD_HEADER='"hosts/m88kmach3.h"'
9991 ;;
c6f8758f
NC
9992 m88*-*-openbsd*)
9993 COREFILE=netbsd-core.lo
9994 ;;
252b5132
RH
9995 ns32k-pc532-mach)
9996 COREFILE=trad-core.lo
9997 TRAD_HEADER='"hosts/pc532mach.h"'
9998 ;;
9999 ns32k-*-netbsd* | ns32k-*-openbsd*)
10000 COREFILE=netbsd-core.lo
10001 ;;
eb1e0e80
NC
10002 rs6000-*-lynx*)
10003 COREFILE=lynx-core.lo
10004 ;;
10005 rs6000-*-aix5.* | powerpc-*-aix5.*)
10006 COREFILE=rs6000-core.lo
10007 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
10008 ;;
83954261 10009 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
10010 COREFILE=rs6000-core.lo
10011 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
10012 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
10013 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
10014 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
10015echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
10016 cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h. */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h. */
83954261 10022#include <core.h>
5464f5a1
NN
10023int
10024main ()
10025{
83954261 10026struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
10027 ;
10028 return 0;
10029}
10030_ACEOF
10031rm -f conftest.$ac_objext
10032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10033 (eval $ac_compile) 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
7f266840 10040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest.$ac_objext'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052
10053cat >>confdefs.h <<\_ACEOF
83954261 10054#define HAVE_ST_C_IMPL 1
5464f5a1 10055_ACEOF
83954261 10056
5464f5a1
NN
10057 echo "$as_me:$LINENO: result: yes" >&5
10058echo "${ECHO_T}yes" >&6
83954261 10059else
5464f5a1
NN
10060 echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
10063echo "$as_me:$LINENO: result: no" >&5
10064echo "${ECHO_T}no" >&6
83954261 10065fi
5464f5a1 10066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 10067 ;;
252b5132
RH
10068 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
10069 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
10070 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
10071 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
10072 powerpc-*-beos*) ;;
13dfd2d0
NC
10073 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
10074 COREFILE='' ;;
252b5132 10075 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 10076 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 10077 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 10078 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 10079 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
10080 COREFILE=netbsd-core.lo
10081 ;;
10082 tahoe-*-*)
10083 COREFILE=trad-core.lo
10084 TRAD_HEADER='"hosts/tahoe.h"'
10085 ;;
de6e5e1a
NC
10086 vax-*-netbsd* | vax-*-openbsd*)
10087 COREFILE=netbsd-core.lo
10088 ;;
252b5132
RH
10089 vax-*-ultrix2*)
10090 COREFILE=trad-core.lo
10091 TRAD_HEADER='"hosts/vaxult2.h"'
10092 ;;
10093 vax-*-ultrix*)
10094 COREFILE=trad-core.lo
10095 TRAD_HEADER='"hosts/vaxult2.h"'
10096 ;;
f8fc3443
NC
10097 vax-*-linux-gnu*)
10098 COREFILE=trad-core.lo
10099 TRAD_HEADER='"hosts/vaxlinux.h"'
10100 ;;
252b5132
RH
10101 vax-*-*)
10102 COREFILE=trad-core.lo
10103 TRAD_HEADER='"hosts/vaxbsd.h"'
10104 ;;
85cfd8d3
MK
10105 x86_64-*-netbsd* | x86_64-*-openbsd*)
10106 COREFILE=netbsd-core.lo
10107 ;;
252b5132
RH
10108 esac
10109
10110 case "$COREFILE" in
10111 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
10112 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
10113 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
10114 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
10115 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
10116 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
10117 osf-core.lo) COREFLAG=-DOSF_CORE ;;
10118 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
10119 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
10120 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
10121 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
10122 esac
10123
10124 # ELF corefile support has several flavors, but all of
10125 # them use something called <sys/procfs.h>
5464f5a1
NN
10126
10127for ac_header in sys/procfs.h
252b5132 10128do
5464f5a1
NN
10129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10130if eval "test \"\${$as_ac_Header+set}\" = set"; then
10131 echo "$as_me:$LINENO: checking for $ac_header" >&5
10132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10133if eval "test \"\${$as_ac_Header+set}\" = set"; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135fi
10136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10138else
10139 # Is the header compilable?
10140echo "$as_me:$LINENO: checking $ac_header usability" >&5
10141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10142cat >conftest.$ac_ext <<_ACEOF
10143/* confdefs.h. */
10144_ACEOF
10145cat confdefs.h >>conftest.$ac_ext
10146cat >>conftest.$ac_ext <<_ACEOF
10147/* end confdefs.h. */
10148$ac_includes_default
10149#include <$ac_header>
10150_ACEOF
10151rm -f conftest.$ac_objext
10152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10153 (eval $ac_compile) 2>conftest.er1
10154 ac_status=$?
10155 grep -v '^ *+' conftest.er1 >conftest.err
10156 rm -f conftest.er1
10157 cat conftest.err >&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
7f266840 10160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest.$ac_objext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_header_compiler=yes
10173else
10174 echo "$as_me: failed program was:" >&5
10175sed 's/^/| /' conftest.$ac_ext >&5
10176
10177ac_header_compiler=no
10178fi
10179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10180echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10181echo "${ECHO_T}$ac_header_compiler" >&6
10182
10183# Is the header present?
10184echo "$as_me:$LINENO: checking $ac_header presence" >&5
10185echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10186cat >conftest.$ac_ext <<_ACEOF
10187/* confdefs.h. */
10188_ACEOF
10189cat confdefs.h >>conftest.$ac_ext
10190cat >>conftest.$ac_ext <<_ACEOF
10191/* end confdefs.h. */
10192#include <$ac_header>
10193_ACEOF
10194if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } >/dev/null; then
10202 if test -s conftest.err; then
10203 ac_cpp_err=$ac_c_preproc_warn_flag
10204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10205 else
10206 ac_cpp_err=
10207 fi
252b5132 10208else
5464f5a1 10209 ac_cpp_err=yes
252b5132 10210fi
5464f5a1
NN
10211if test -z "$ac_cpp_err"; then
10212 ac_header_preproc=yes
10213else
10214 echo "$as_me: failed program was:" >&5
10215sed 's/^/| /' conftest.$ac_ext >&5
10216
10217 ac_header_preproc=no
252b5132 10218fi
5464f5a1
NN
10219rm -f conftest.err conftest.$ac_ext
10220echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10221echo "${ECHO_T}$ac_header_preproc" >&6
10222
10223# So? What about this header?
10224case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10225 yes:no: )
10226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10227echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10229echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10230 ac_header_preproc=yes
10231 ;;
10232 no:yes:* )
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10234echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10236echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10238echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10240echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10242echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10244echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10245 (
10246 cat <<\_ASBOX
10247## ------------------------------------------ ##
10248## Report this to the AC_PACKAGE_NAME lists. ##
10249## ------------------------------------------ ##
10250_ASBOX
10251 ) |
10252 sed "s/^/$as_me: WARNING: /" >&2
10253 ;;
10254esac
10255echo "$as_me:$LINENO: checking for $ac_header" >&5
10256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10257if eval "test \"\${$as_ac_Header+set}\" = set"; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 10259else
5464f5a1
NN
10260 eval "$as_ac_Header=\$ac_header_preproc"
10261fi
10262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10264
252b5132 10265fi
5464f5a1
NN
10266if test `eval echo '${'$as_ac_Header'}'` = yes; then
10267 cat >>confdefs.h <<_ACEOF
10268#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10269_ACEOF
10270
10271fi
10272
252b5132
RH
10273done
10274
10275 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
10276 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
10277echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
10278 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280else
10281 cat >conftest.$ac_ext <<_ACEOF
10282/* confdefs.h. */
10283_ACEOF
10284cat confdefs.h >>conftest.$ac_ext
10285cat >>conftest.$ac_ext <<_ACEOF
10286/* end confdefs.h. */
7ee38065
MS
10287
10288#define _SYSCALL32
252b5132 10289#include <sys/procfs.h>
5464f5a1
NN
10290int
10291main ()
10292{
252b5132 10293prstatus_t avar
5464f5a1
NN
10294 ;
10295 return 0;
10296}
10297_ACEOF
10298rm -f conftest.$ac_objext
10299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
7f266840 10307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10310 ac_status=$?
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; } &&
10313 { ac_try='test -s conftest.$ac_objext'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
252b5132
RH
10319 bfd_cv_have_sys_procfs_type_prstatus_t=yes
10320else
5464f5a1
NN
10321 echo "$as_me: failed program was:" >&5
10322sed 's/^/| /' conftest.$ac_ext >&5
10323
10324bfd_cv_have_sys_procfs_type_prstatus_t=no
10325
252b5132 10326fi
5464f5a1 10327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10328fi
10329
10330 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
10331
10332cat >>confdefs.h <<\_ACEOF
252b5132 10333#define HAVE_PRSTATUS_T 1
5464f5a1 10334_ACEOF
252b5132
RH
10335
10336 fi
5464f5a1
NN
10337 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10338echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 10339
5464f5a1
NN
10340 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10341echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10342 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10344else
5464f5a1
NN
10345 cat >conftest.$ac_ext <<_ACEOF
10346/* confdefs.h. */
10347_ACEOF
10348cat confdefs.h >>conftest.$ac_ext
10349cat >>conftest.$ac_ext <<_ACEOF
10350/* end confdefs.h. */
7ee38065
MS
10351
10352#define _SYSCALL32
10353#include <sys/procfs.h>
5464f5a1
NN
10354int
10355main ()
10356{
7ee38065 10357prstatus32_t avar
5464f5a1
NN
10358 ;
10359 return 0;
10360}
10361_ACEOF
10362rm -f conftest.$ac_objext
10363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10364 (eval $ac_compile) 2>conftest.er1
10365 ac_status=$?
10366 grep -v '^ *+' conftest.er1 >conftest.err
10367 rm -f conftest.er1
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } &&
7f266840 10371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; } &&
10377 { ac_try='test -s conftest.$ac_objext'
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
7ee38065
MS
10383 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10384else
5464f5a1
NN
10385 echo "$as_me: failed program was:" >&5
10386sed 's/^/| /' conftest.$ac_ext >&5
10387
10388bfd_cv_have_sys_procfs_type_prstatus32_t=no
10389
7ee38065 10390fi
5464f5a1 10391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10392fi
10393
10394 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
10395
10396cat >>confdefs.h <<\_ACEOF
7ee38065 10397#define HAVE_PRSTATUS32_T 1
5464f5a1 10398_ACEOF
7ee38065
MS
10399
10400 fi
5464f5a1
NN
10401 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10402echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 10403
5464f5a1
NN
10404 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10405echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10406 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10408else
5464f5a1
NN
10409 cat >conftest.$ac_ext <<_ACEOF
10410/* confdefs.h. */
10411_ACEOF
10412cat confdefs.h >>conftest.$ac_ext
10413cat >>conftest.$ac_ext <<_ACEOF
10414/* end confdefs.h. */
7ee38065
MS
10415
10416#define _SYSCALL32
252b5132 10417#include <sys/procfs.h>
5464f5a1
NN
10418int
10419main ()
10420{
252b5132 10421prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
10422 ;
10423 return 0;
10424}
10425_ACEOF
10426rm -f conftest.$ac_objext
10427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428 (eval $ac_compile) 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
7f266840 10435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } &&
10441 { ac_try='test -s conftest.$ac_objext'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
252b5132
RH
10447 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10448else
5464f5a1
NN
10449 echo "$as_me: failed program was:" >&5
10450sed 's/^/| /' conftest.$ac_ext >&5
10451
10452bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10453
252b5132 10454fi
5464f5a1 10455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10456fi
10457
10458 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
10459
10460cat >>confdefs.h <<\_ACEOF
252b5132 10461#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 10462_ACEOF
252b5132
RH
10463
10464 fi
5464f5a1
NN
10465 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10466echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 10467
5464f5a1
NN
10468 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10469echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10470 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10472else
5464f5a1
NN
10473 cat >conftest.$ac_ext <<_ACEOF
10474/* confdefs.h. */
10475_ACEOF
10476cat confdefs.h >>conftest.$ac_ext
10477cat >>conftest.$ac_ext <<_ACEOF
10478/* end confdefs.h. */
7ee38065
MS
10479
10480#define _SYSCALL32
10481#include <sys/procfs.h>
5464f5a1
NN
10482int
10483main ()
10484{
7ee38065 10485prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
10486 ;
10487 return 0;
10488}
10489_ACEOF
10490rm -f conftest.$ac_objext
10491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10492 (eval $ac_compile) 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
7f266840 10499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest.$ac_objext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
7ee38065
MS
10511 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
10512else
5464f5a1
NN
10513 echo "$as_me: failed program was:" >&5
10514sed 's/^/| /' conftest.$ac_ext >&5
10515
10516bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
10517
7ee38065 10518fi
5464f5a1 10519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10520fi
10521
10522 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
10523
10524cat >>confdefs.h <<\_ACEOF
7ee38065 10525#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 10526_ACEOF
7ee38065
MS
10527
10528 fi
5464f5a1
NN
10529 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
10530echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 10531
5464f5a1
NN
10532 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
10533echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
10534 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10536else
5464f5a1
NN
10537 cat >conftest.$ac_ext <<_ACEOF
10538/* confdefs.h. */
10539_ACEOF
10540cat confdefs.h >>conftest.$ac_ext
10541cat >>conftest.$ac_ext <<_ACEOF
10542/* end confdefs.h. */
7ee38065
MS
10543
10544#define _SYSCALL32
252b5132 10545#include <sys/procfs.h>
5464f5a1
NN
10546int
10547main ()
10548{
252b5132 10549pstatus_t avar
5464f5a1
NN
10550 ;
10551 return 0;
10552}
10553_ACEOF
10554rm -f conftest.$ac_objext
10555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10556 (eval $ac_compile) 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } &&
7f266840 10563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } &&
10569 { ac_try='test -s conftest.$ac_objext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
252b5132
RH
10575 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10576else
5464f5a1
NN
10577 echo "$as_me: failed program was:" >&5
10578sed 's/^/| /' conftest.$ac_ext >&5
10579
10580bfd_cv_have_sys_procfs_type_pstatus_t=no
10581
252b5132 10582fi
5464f5a1 10583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10584fi
10585
10586 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
10587
10588cat >>confdefs.h <<\_ACEOF
252b5132 10589#define HAVE_PSTATUS_T 1
5464f5a1 10590_ACEOF
252b5132
RH
10591
10592 fi
5464f5a1
NN
10593 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10594echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 10595
5464f5a1
NN
10596 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
10597echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
10598 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10600else
5464f5a1
NN
10601 cat >conftest.$ac_ext <<_ACEOF
10602/* confdefs.h. */
10603_ACEOF
10604cat confdefs.h >>conftest.$ac_ext
10605cat >>conftest.$ac_ext <<_ACEOF
10606/* end confdefs.h. */
f572a39d
AM
10607
10608#define _SYSCALL32
10609#include <sys/procfs.h>
5464f5a1
NN
10610int
10611main ()
10612{
f572a39d 10613pxstatus_t avar
5464f5a1
NN
10614 ;
10615 return 0;
10616}
10617_ACEOF
10618rm -f conftest.$ac_objext
10619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10620 (eval $ac_compile) 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
7f266840 10627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest.$ac_objext'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
f572a39d
AM
10639 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10640else
5464f5a1
NN
10641 echo "$as_me: failed program was:" >&5
10642sed 's/^/| /' conftest.$ac_ext >&5
10643
10644bfd_cv_have_sys_procfs_type_pxstatus_t=no
10645
f572a39d 10646fi
5464f5a1 10647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10648fi
10649
10650 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
10651
10652cat >>confdefs.h <<\_ACEOF
f572a39d 10653#define HAVE_PXSTATUS_T 1
5464f5a1 10654_ACEOF
f572a39d
AM
10655
10656 fi
5464f5a1
NN
10657 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10658echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 10659
5464f5a1
NN
10660 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10661echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10662 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10664else
5464f5a1
NN
10665 cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h. */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h. */
7ee38065
MS
10671
10672#define _SYSCALL32
10673#include <sys/procfs.h>
5464f5a1
NN
10674int
10675main ()
10676{
7ee38065 10677pstatus32_t avar
5464f5a1
NN
10678 ;
10679 return 0;
10680}
10681_ACEOF
10682rm -f conftest.$ac_objext
10683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10684 (eval $ac_compile) 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
7f266840 10691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
7ee38065
MS
10703 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10704else
5464f5a1
NN
10705 echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
10708bfd_cv_have_sys_procfs_type_pstatus32_t=no
10709
7ee38065 10710fi
5464f5a1 10711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10712fi
10713
10714 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
10715
10716cat >>confdefs.h <<\_ACEOF
7ee38065 10717#define HAVE_PSTATUS32_T 1
5464f5a1 10718_ACEOF
7ee38065
MS
10719
10720 fi
5464f5a1
NN
10721 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10722echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 10723
5464f5a1
NN
10724 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10725echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10726 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10728else
5464f5a1
NN
10729 cat >conftest.$ac_ext <<_ACEOF
10730/* confdefs.h. */
10731_ACEOF
10732cat confdefs.h >>conftest.$ac_ext
10733cat >>conftest.$ac_ext <<_ACEOF
10734/* end confdefs.h. */
7ee38065
MS
10735
10736#define _SYSCALL32
252b5132 10737#include <sys/procfs.h>
5464f5a1
NN
10738int
10739main ()
10740{
252b5132 10741prpsinfo_t avar
5464f5a1
NN
10742 ;
10743 return 0;
10744}
10745_ACEOF
10746rm -f conftest.$ac_objext
10747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748 (eval $ac_compile) 2>conftest.er1
10749 ac_status=$?
10750 grep -v '^ *+' conftest.er1 >conftest.err
10751 rm -f conftest.er1
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
7f266840 10755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; } &&
10761 { ac_try='test -s conftest.$ac_objext'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
252b5132
RH
10767 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10768else
5464f5a1
NN
10769 echo "$as_me: failed program was:" >&5
10770sed 's/^/| /' conftest.$ac_ext >&5
10771
10772bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10773
252b5132 10774fi
5464f5a1 10775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10776fi
10777
10778 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
10779
10780cat >>confdefs.h <<\_ACEOF
252b5132 10781#define HAVE_PRPSINFO_T 1
5464f5a1 10782_ACEOF
252b5132
RH
10783
10784 fi
5464f5a1
NN
10785 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10786echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 10787
5464f5a1
NN
10788 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10789echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10790 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10792else
5464f5a1
NN
10793 cat >conftest.$ac_ext <<_ACEOF
10794/* confdefs.h. */
10795_ACEOF
10796cat confdefs.h >>conftest.$ac_ext
10797cat >>conftest.$ac_ext <<_ACEOF
10798/* end confdefs.h. */
7ee38065
MS
10799
10800#define _SYSCALL32
10801#include <sys/procfs.h>
5464f5a1
NN
10802int
10803main ()
10804{
7ee38065 10805prpsinfo32_t avar
5464f5a1
NN
10806 ;
10807 return 0;
10808}
10809_ACEOF
10810rm -f conftest.$ac_objext
10811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
7f266840 10819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
7ee38065
MS
10831 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10832else
5464f5a1
NN
10833 echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
10835
10836bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10837
7ee38065 10838fi
5464f5a1 10839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10840fi
10841
10842 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
10843
10844cat >>confdefs.h <<\_ACEOF
7ee38065 10845#define HAVE_PRPSINFO32_T 1
5464f5a1 10846_ACEOF
7ee38065
MS
10847
10848 fi
5464f5a1
NN
10849 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10850echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 10851
5464f5a1
NN
10852 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10853echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10854 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10856else
5464f5a1
NN
10857 cat >conftest.$ac_ext <<_ACEOF
10858/* confdefs.h. */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
10862/* end confdefs.h. */
7ee38065
MS
10863
10864#define _SYSCALL32
252b5132 10865#include <sys/procfs.h>
5464f5a1
NN
10866int
10867main ()
10868{
252b5132 10869psinfo_t avar
5464f5a1
NN
10870 ;
10871 return 0;
10872}
10873_ACEOF
10874rm -f conftest.$ac_objext
10875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 (eval $ac_compile) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
7f266840 10883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
252b5132
RH
10895 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10896else
5464f5a1
NN
10897 echo "$as_me: failed program was:" >&5
10898sed 's/^/| /' conftest.$ac_ext >&5
10899
10900bfd_cv_have_sys_procfs_type_psinfo_t=no
10901
252b5132 10902fi
5464f5a1 10903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10904fi
10905
10906 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
10907
10908cat >>confdefs.h <<\_ACEOF
252b5132 10909#define HAVE_PSINFO_T 1
5464f5a1 10910_ACEOF
252b5132
RH
10911
10912 fi
5464f5a1
NN
10913 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10914echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 10915
5464f5a1
NN
10916 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10917echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10918 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10920else
5464f5a1
NN
10921 cat >conftest.$ac_ext <<_ACEOF
10922/* confdefs.h. */
10923_ACEOF
10924cat confdefs.h >>conftest.$ac_ext
10925cat >>conftest.$ac_ext <<_ACEOF
10926/* end confdefs.h. */
7ee38065
MS
10927
10928#define _SYSCALL32
10929#include <sys/procfs.h>
5464f5a1
NN
10930int
10931main ()
10932{
7ee38065 10933psinfo32_t avar
5464f5a1
NN
10934 ;
10935 return 0;
10936}
10937_ACEOF
10938rm -f conftest.$ac_objext
10939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10940 (eval $ac_compile) 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
7f266840 10947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
7ee38065
MS
10959 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10960else
5464f5a1
NN
10961 echo "$as_me: failed program was:" >&5
10962sed 's/^/| /' conftest.$ac_ext >&5
10963
10964bfd_cv_have_sys_procfs_type_psinfo32_t=no
10965
7ee38065 10966fi
5464f5a1 10967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10968fi
10969
10970 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
10971
10972cat >>confdefs.h <<\_ACEOF
7ee38065 10973#define HAVE_PSINFO32_T 1
5464f5a1 10974_ACEOF
7ee38065
MS
10975
10976 fi
5464f5a1
NN
10977 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10978echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 10979
5464f5a1
NN
10980 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10981echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10982 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10984else
5464f5a1
NN
10985 cat >conftest.$ac_ext <<_ACEOF
10986/* confdefs.h. */
10987_ACEOF
10988cat confdefs.h >>conftest.$ac_ext
10989cat >>conftest.$ac_ext <<_ACEOF
10990/* end confdefs.h. */
7ee38065
MS
10991
10992#define _SYSCALL32
252b5132 10993#include <sys/procfs.h>
5464f5a1
NN
10994int
10995main ()
10996{
252b5132 10997lwpstatus_t avar
5464f5a1
NN
10998 ;
10999 return 0;
11000}
11001_ACEOF
11002rm -f conftest.$ac_objext
11003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004 (eval $ac_compile) 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
7f266840 11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
252b5132
RH
11023 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
11024else
5464f5a1
NN
11025 echo "$as_me: failed program was:" >&5
11026sed 's/^/| /' conftest.$ac_ext >&5
11027
11028bfd_cv_have_sys_procfs_type_lwpstatus_t=no
11029
252b5132 11030fi
5464f5a1 11031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11032fi
11033
11034 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
11035
11036cat >>confdefs.h <<\_ACEOF
252b5132 11037#define HAVE_LWPSTATUS_T 1
5464f5a1 11038_ACEOF
252b5132
RH
11039
11040 fi
5464f5a1
NN
11041 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
11042echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 11043
5464f5a1
NN
11044 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
11045echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
11046 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 11048else
5464f5a1
NN
11049 cat >conftest.$ac_ext <<_ACEOF
11050/* confdefs.h. */
11051_ACEOF
11052cat confdefs.h >>conftest.$ac_ext
11053cat >>conftest.$ac_ext <<_ACEOF
11054/* end confdefs.h. */
f572a39d
AM
11055
11056#define _SYSCALL32
11057#include <sys/procfs.h>
5464f5a1
NN
11058int
11059main ()
11060{
f572a39d 11061lwpxstatus_t avar
5464f5a1
NN
11062 ;
11063 return 0;
11064}
11065_ACEOF
11066rm -f conftest.$ac_objext
11067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11068 (eval $ac_compile) 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
7f266840 11075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; } &&
11081 { ac_try='test -s conftest.$ac_objext'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
f572a39d
AM
11087 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
11088else
5464f5a1
NN
11089 echo "$as_me: failed program was:" >&5
11090sed 's/^/| /' conftest.$ac_ext >&5
11091
11092bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
11093
f572a39d 11094fi
5464f5a1 11095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
11096fi
11097
11098 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
11099
11100cat >>confdefs.h <<\_ACEOF
f572a39d 11101#define HAVE_LWPXSTATUS_T 1
5464f5a1 11102_ACEOF
f572a39d
AM
11103
11104 fi
5464f5a1
NN
11105 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
11106echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 11107
5464f5a1
NN
11108 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
11109echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
11110 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11112else
5464f5a1
NN
11113 cat >conftest.$ac_ext <<_ACEOF
11114/* confdefs.h. */
11115_ACEOF
11116cat confdefs.h >>conftest.$ac_ext
11117cat >>conftest.$ac_ext <<_ACEOF
11118/* end confdefs.h. */
7ee38065
MS
11119
11120#define _SYSCALL32
252b5132 11121#include <sys/procfs.h>
5464f5a1
NN
11122int
11123main ()
11124{
252b5132 11125lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
11126 ;
11127 return 0;
11128}
11129_ACEOF
11130rm -f conftest.$ac_objext
11131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11132 (eval $ac_compile) 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
7f266840 11139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
252b5132
RH
11151 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
11152else
5464f5a1
NN
11153 echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
11156bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
11157
252b5132 11158fi
5464f5a1 11159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11160fi
11161
11162 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
11163
11164cat >>confdefs.h <<\_ACEOF
252b5132 11165#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 11166_ACEOF
252b5132
RH
11167
11168 fi
5464f5a1
NN
11169 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
11170echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 11171
5464f5a1
NN
11172 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
11173echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
11174 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11176else
5464f5a1
NN
11177 cat >conftest.$ac_ext <<_ACEOF
11178/* confdefs.h. */
11179_ACEOF
11180cat confdefs.h >>conftest.$ac_ext
11181cat >>conftest.$ac_ext <<_ACEOF
11182/* end confdefs.h. */
7ee38065
MS
11183
11184#define _SYSCALL32
252b5132 11185#include <sys/procfs.h>
5464f5a1
NN
11186int
11187main ()
11188{
252b5132 11189lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
11190 ;
11191 return 0;
11192}
11193_ACEOF
11194rm -f conftest.$ac_objext
11195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11196 (eval $ac_compile) 2>conftest.er1
11197 ac_status=$?
11198 grep -v '^ *+' conftest.er1 >conftest.err
11199 rm -f conftest.er1
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } &&
7f266840 11203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; } &&
11209 { ac_try='test -s conftest.$ac_objext'
11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; }; then
252b5132
RH
11215 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
11216else
5464f5a1
NN
11217 echo "$as_me: failed program was:" >&5
11218sed 's/^/| /' conftest.$ac_ext >&5
11219
11220bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
11221
252b5132 11222fi
5464f5a1 11223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11224fi
11225
11226 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
11227
11228cat >>confdefs.h <<\_ACEOF
252b5132 11229#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 11230_ACEOF
252b5132
RH
11231
11232 fi
5464f5a1
NN
11233 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
11234echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 11235
5464f5a1
NN
11236 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
11237echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
11238 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 11240else
5464f5a1
NN
11241 cat >conftest.$ac_ext <<_ACEOF
11242/* confdefs.h. */
11243_ACEOF
11244cat confdefs.h >>conftest.$ac_ext
11245cat >>conftest.$ac_ext <<_ACEOF
11246/* end confdefs.h. */
7ee38065
MS
11247
11248#define _SYSCALL32
e3c976c4 11249#include <sys/procfs.h>
5464f5a1
NN
11250int
11251main ()
11252{
e3c976c4 11253win32_pstatus_t avar
5464f5a1
NN
11254 ;
11255 return 0;
11256}
11257_ACEOF
11258rm -f conftest.$ac_objext
11259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11260 (eval $ac_compile) 2>conftest.er1
11261 ac_status=$?
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
7f266840 11267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
e3c976c4
ILT
11279 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
11280else
5464f5a1
NN
11281 echo "$as_me: failed program was:" >&5
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
11284bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
11285
e3c976c4 11286fi
5464f5a1 11287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11288fi
11289
e3c976c4 11290 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
11291
11292cat >>confdefs.h <<\_ACEOF
e3c976c4 11293#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 11294_ACEOF
16e9c715
NC
11295
11296 fi
5464f5a1
NN
11297 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
11298echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
11299
11300 fi
11301fi
16e9c715 11302
b3baf5d0 11303
6be7c12c 11304if test -n "$TRAD_HEADER"; then
5464f5a1
NN
11305
11306cat >>confdefs.h <<_ACEOF
252b5132 11307#define TRAD_HEADER $TRAD_HEADER
5464f5a1 11308_ACEOF
252b5132 11309
3f9b03b5 11310fi
252b5132
RH
11311
11312# Horrible hacks to build DLLs on Windows.
11313WIN32LDFLAGS=
11314WIN32LIBADD=
11315case "${host}" in
11316*-*-cygwin*)
11317 if test "$enable_shared" = "yes"; then
11318 WIN32LDFLAGS="-no-undefined"
11319 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11320 fi
11321 ;;
78be1d6e 11322*-*-linux*)
39691762
L
11323 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11324 # libiberty.a.
ca51bfff
L
11325 case "${host}" in
11326 mips*-*-linux*)
11327 # Linux/MIPS uses PIC by default.
11328 if test "$enable_shared" = "yes"; then
11329 WIN32LIBADD="-L../libiberty -liberty"
11330 fi
11331 ;;
11332 *)
66e25bab 11333 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 11334 if test -n "$x"; then
ca51bfff
L
11335 WIN32LIBADD="-L../libiberty/pic -liberty"
11336 fi
11337 ;;
11338 esac
39691762 11339 ;;
252b5132
RH
11340esac
11341
6be7c12c
AO
11342
11343
252b5132
RH
11344# target stuff:
11345
11346# Canonicalize the secondary target names.
11347if test -n "$enable_targets" ; then
11348 for targ in `echo $enable_targets | sed 's/,/ /g'`
11349 do
6d83c84b 11350 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
11351 if test -n "$result" ; then
11352 canon_targets="$canon_targets $result"
11353 else
11354 # Allow targets that config.sub doesn't recognize, like "all".
11355 canon_targets="$canon_targets $targ"
11356 fi
11357 done
11358fi
11359
11360all_targets=false
11361defvec=
11362selvecs=
08f74004 11363assocvecs=
252b5132
RH
11364selarchs=
11365TDEFINES=
11366for targ in $target $canon_targets
11367do
11368 if test "x$targ" = "xall"; then
11369 all_targets=true
08f74004 11370 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
11371 else
11372 . $srcdir/config.bfd
11373 if test "x$targ" = "x$target"; then
11374 defvec=$targ_defvec
11375 fi
11376 selvecs="$selvecs $targ_defvec $targ_selvecs"
11377 selarchs="$selarchs $targ_archs"
11378 TDEFINES="$TDEFINES $targ_cflags"
11379 fi
11380done
11381
6be7c12c 11382
252b5132
RH
11383# This processing still needs to be done if we're to decide properly whether
11384# 64-bit support needs to be compiled in. Currently, it will be included if
11385# the default or any other explicitly requested target requires it; it
11386# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 11387# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
11388# used.
11389
11390# uniq the default and selected vectors in all the configured targets.
11391f=""
11392for i in $selvecs ; do
11393 case " $f " in
11394 *" $i "*) ;;
11395 *) f="$f $i" ;;
11396 esac
11397done
11398selvecs="$f"
11399
6be7c12c 11400
08f74004
AM
11401# uniq the associated vectors in all the configured targets.
11402f=""
11403for i in $assocvecs ; do
11404 case " $f " in
11405 *" $i "*) ;;
11406 *) f="$f $i" ;;
11407 esac
11408done
11409assocvecs="$f"
11410
11411
252b5132
RH
11412# uniq the architectures in all the configured targets.
11413f=""
11414for i in $selarchs ; do
11415 case " $f " in
11416 *" $i "*) ;;
11417 *) f="$f $i" ;;
11418 esac
11419done
11420selarchs="$f"
11421
11422# Target backend .o files.
11423tb=
11424
65765700 11425elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
11426
11427for vec in $selvecs
11428do
69263e90 11429 target_size=32
252b5132
RH
11430 case "$vec" in
11431 # This list is alphabetized to make it easy to compare
dc810e39
AM
11432 # with the two vector lists in targets.c. For the same reason,
11433 # use one entry per line, even though this leads to long lines.
252b5132
RH
11434 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
11435 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 11436 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
11437 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
11438 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11439 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 11440 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
11441 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11442 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11443 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11444 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11445 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11446 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11447 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
11448 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11449 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11450 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11451 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
11452 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
11453 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 11454 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 11455 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 11456 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 11457 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
dc810e39 11458 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 11459 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
7f266840 11460 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
e5a52504 11461 bfd_elf32_bigarm_symbian_vec)
7f266840 11462 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 11463 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 11464 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 11465 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 11466 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
11467 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11468 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 11469 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 11470 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 11471 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 11472 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 11473 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 11474 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 11475 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 11476 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 11477 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
b6821651
AM
11478 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11479 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
9d751335 11480 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 11481 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 11482 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 11483 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 11484 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 11485 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 11486 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 11487 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 11488 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 11489 bfd_elf32_littlearm_symbian_vec)
7f266840
DJ
11490 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11491 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 11492 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
252b5132 11493 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
11494 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11495 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11496 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
11497 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11498 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
11499 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
11500 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
11501 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11502 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11503 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
11504 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
2469cfa2 11505 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
8a397dad
TS
11506 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11507 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11508 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11509 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 11510 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 11511 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
11512 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11513 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
b6821651
AM
11514 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11515 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
a85d7ed0 11516 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
eb1e0e80
NC
11517 # FIXME: We include cofflink.lo not because it's needed for
11518 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
11519 # which needs it but does not list it. Should be fixed in right place.
9cba27b2
JT
11520 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11521 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
2bc3c89a
AM
11522 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11523 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11524 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11525 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
b6821651
AM
11526 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11527 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11528 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
85fbca6a 11529 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
b6821651
AM
11530 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11531 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11532 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
252b5132 11533 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
c6e90b02
TS
11534 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11535 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 11536 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 11537 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 11538 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 11539 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
e0001a05
NC
11540 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11541 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 11542 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
11543 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11544 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 11545 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
11546 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11547 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 11548 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 11549 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
11550 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11551 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 11552 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 11553 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
11554 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11555 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
11556 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
11557 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11558 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
11559 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11560 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11561 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11562 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
dc810e39 11563 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02
TS
11564 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11565 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39 11566 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 11567 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
11568 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11569 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11570 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11571 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 11572 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 11573 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 11574 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 11575 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
11576 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11577 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
11578 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11579 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11580 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11581 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11582 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11583 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11584 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11585 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11586 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11587 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
11588 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11589 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
11590 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11591 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11592 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11593 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 11594 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
11595 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11596 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
11597 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11598 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
11599 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11600 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11601 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11602 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
11603 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11604 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
11605 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11606 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11607 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11608 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
11609 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
11610 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
11611 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11612 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 11613 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 11614 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
93509525
KD
11615 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11616 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11617 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
11618 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11619 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11620 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11621 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
11622 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11623 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 11624 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 11625 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 11626 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 11627 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 11628 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 11629 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 11630 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 11631 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
11632 pef_vec) tb="$tb pef.lo" ;;
11633 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 11634 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 11635 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11636 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 11637 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 11638 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 11639 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11640 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11641 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 11642 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11643 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
11644 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11645 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 11646 som_vec) tb="$tb som.lo" ;;
dc810e39 11647 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
11648 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11649 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11650 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11651 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11652 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 11653 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 11654 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
11655 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11656 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
11657 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11658 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11659 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11660 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11661 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11662 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 11663 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11664 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11665 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11666 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11667 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11668 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 11669 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 11670 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 11671 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 11672 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 11673 versados_vec) tb="$tb versados.lo" ;;
dc810e39 11674 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
11675 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11676 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11677 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11678 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
11679
341ca622
AM
11680 # These appear out of order in targets.c
11681 srec_vec) tb="$tb srec.lo" ;;
11682 symbolsrec_vec) tb="$tb srec.lo" ;;
11683 tekhex_vec) tb="$tb tekhex.lo" ;;
11684 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11685 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11686
252b5132 11687 "") ;;
5464f5a1
NN
11688 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11689echo "$as_me: error: *** unknown target vector $vec" >&2;}
11690 { (exit 1); exit 1; }; } ;;
252b5132 11691 esac
69263e90
AM
11692
11693 if test ${target_size} = 64; then
11694 target64=true
11695 fi
11696 if test x"${vec}" = x"${defvec}"; then
11697 bfd_default_target_size=${target_size}
11698 fi
252b5132
RH
11699done
11700
11701# Target architecture .o files.
11702# A couple of CPUs use shorter file names to avoid problems on DOS
11703# filesystems.
11704ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11705
11706# Weed out duplicate .o files.
11707f=""
11708for i in $tb ; do
11709 case " $f " in
11710 *" $i "*) ;;
11711 *) f="$f $i" ;;
11712 esac
11713done
11714tb="$f"
11715
11716f=""
11717for i in $ta ; do
11718 case " $f " in
11719 *" $i "*) ;;
11720 *) f="$f $i" ;;
11721 esac
11722done
11723ta="$f"
11724
11725bfd_backends="$tb"
11726bfd_machines="$ta"
11727
11728if test x${all_targets} = xtrue ; then
11729 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11730 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11731 selvecs=
11732 havevecs=
11733 selarchs=
08f74004
AM
11734 test -n "$assocvecs" &&
11735 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
11736else # all_targets is true
11737 # Only set these if they will be nonempty, for the clever echo.
11738 havevecs=
08f74004 11739 assocvecs=
252b5132
RH
11740 test -n "$selvecs" &&
11741 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11742 test -n "$selvecs" &&
11743 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11744 test -n "$selarchs" &&
11745 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11746fi # all_targets is true
11747
11748case ${host64}-${target64}-${want64} in
11749 *true*)
11750 wordsize=64
2858ef35 11751 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 11752 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 11753 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
11754 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11755echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11757echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 11758 fi
966abd70
HPN
11759 if test -n "$GCC" ; then
11760 bad_64bit_gcc=no;
5464f5a1
NN
11761 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11762echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 11763 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
11764 cat >conftest.$ac_ext <<_ACEOF
11765/* confdefs.h. */
11766_ACEOF
11767cat confdefs.h >>conftest.$ac_ext
11768cat >>conftest.$ac_ext <<_ACEOF
11769/* end confdefs.h. */
966abd70 11770:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 11771_ACEOF
966abd70 11772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 11773 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 11774 bad_64bit_gcc=yes;
5464f5a1
NN
11775 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11776echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 11777else
5464f5a1
NN
11778 echo "$as_me:$LINENO: result: no" >&5
11779echo "${ECHO_T}no" >&6
966abd70
HPN
11780fi
11781rm -f conftest*
11782
11783 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
11784 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11785echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11786 { (exit 1); exit 1; }; }
966abd70
HPN
11787 fi
11788 fi
252b5132
RH
11789 ;;
11790 false-false-false)
11791 wordsize=32
2858ef35 11792 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
11793 all_backends='$(BFD32_BACKENDS)'
11794 ;;
11795esac
11796
6be7c12c
AO
11797
11798
11799
11800
11801
69263e90 11802
2858ef35 11803
1012372a
AC
11804# Determine the host dependant file_ptr a.k.a. off_t type. In order
11805# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11806# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11807# Hopefully a reasonable assumption since fseeko et.al. should be
11808# upward compatible.
5464f5a1
NN
11809
11810
11811
11812
1012372a
AC
11813for ac_func in ftello ftello64 fseeko fseeko64
11814do
5464f5a1
NN
11815as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11816echo "$as_me:$LINENO: checking for $ac_func" >&5
11817echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11818if eval "test \"\${$as_ac_var+set}\" = set"; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820else
11821 cat >conftest.$ac_ext <<_ACEOF
11822/* confdefs.h. */
11823_ACEOF
11824cat confdefs.h >>conftest.$ac_ext
11825cat >>conftest.$ac_ext <<_ACEOF
11826/* end confdefs.h. */
11827/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11829#define $ac_func innocuous_$ac_func
11830
1012372a 11831/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11832 which can conflict with char $ac_func (); below.
11833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11834 <limits.h> exists even on freestanding compilers. */
11835
11836#ifdef __STDC__
11837# include <limits.h>
11838#else
11839# include <assert.h>
11840#endif
1012372a 11841
5464f5a1 11842#undef $ac_func
1012372a 11843
5464f5a1
NN
11844/* Override any gcc2 internal prototype to avoid an error. */
11845#ifdef __cplusplus
11846extern "C"
11847{
11848#endif
11849/* We use char because int might match the return type of a gcc2
11850 builtin and then its argument prototype would still apply. */
11851char $ac_func ();
1012372a
AC
11852/* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11856choke me
11857#else
5464f5a1
NN
11858char (*f) () = $ac_func;
11859#endif
11860#ifdef __cplusplus
11861}
1012372a
AC
11862#endif
11863
5464f5a1
NN
11864int
11865main ()
11866{
11867return f != $ac_func;
11868 ;
11869 return 0;
11870}
11871_ACEOF
11872rm -f conftest.$ac_objext conftest$ac_exeext
11873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
7f266840 11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; } &&
11887 { ac_try='test -s conftest$ac_exeext'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; }; then
11893 eval "$as_ac_var=yes"
11894else
11895 echo "$as_me: failed program was:" >&5
11896sed 's/^/| /' conftest.$ac_ext >&5
11897
11898eval "$as_ac_var=no"
11899fi
11900rm -f conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11902fi
11903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11904echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11905if test `eval echo '${'$as_ac_var'}'` = yes; then
11906 cat >>confdefs.h <<_ACEOF
11907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11908_ACEOF
1012372a 11909
1012372a
AC
11910fi
11911done
11912
1012372a 11913if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
5464f5a1
NN
11914 echo "$as_me:$LINENO: checking size of off_t" >&5
11915echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11916if test "${ac_cv_sizeof_off_t+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
1012372a
AC
11918else
11919 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
11920 cat >conftest.$ac_ext <<_ACEOF
11921/* confdefs.h. */
11922_ACEOF
11923cat confdefs.h >>conftest.$ac_ext
11924cat >>conftest.$ac_ext <<_ACEOF
11925/* end confdefs.h. */
1012372a
AC
11926#include "confdefs.h"
11927#include <sys/types.h>
11928
11929
5464f5a1
NN
11930int
11931main ()
11932{
1012372a 11933switch (0) case 0: case (sizeof (off_t) == $ac_size):;
5464f5a1
NN
11934 ;
11935 return 0;
11936}
11937_ACEOF
11938rm -f conftest.$ac_objext
11939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940 (eval $ac_compile) 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
7f266840 11947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
1012372a
AC
11959 ac_cv_sizeof_off_t=$ac_size
11960else
5464f5a1
NN
11961 echo "$as_me: failed program was:" >&5
11962sed 's/^/| /' conftest.$ac_ext >&5
11963
1012372a 11964fi
5464f5a1 11965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a
AC
11966 if test x$ac_cv_sizeof_off_t != x ; then break; fi
11967done
11968
11969fi
11970
11971if test x$ac_cv_sizeof_off_t = x ; then
5464f5a1
NN
11972 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
11973echo "$as_me: error: cannot determine a size for off_t" >&2;}
11974 { (exit 1); exit 1; }; }
1012372a 11975fi
5464f5a1
NN
11976echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11977echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11978
11979cat >>confdefs.h <<_ACEOF
1012372a 11980#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 11981_ACEOF
1012372a
AC
11982
11983
1012372a 11984fi
5464f5a1
NN
11985echo "$as_me:$LINENO: checking file_ptr type" >&5
11986echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
11987bfd_file_ptr="long"
11988bfd_ufile_ptr="unsigned long"
11989if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11990 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
11991 bfd_file_ptr=BFD_HOST_64_BIT
11992 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11993fi
5464f5a1
NN
11994echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11995echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
11996
11997
11998
11999
252b5132
RH
12000tdefaults=""
12001test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
12002test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 12003test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
12004test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
12005test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
12006
6be7c12c 12007
5464f5a1
NN
12008
12009
12010for ac_header in stdlib.h unistd.h
252b5132 12011do
5464f5a1
NN
12012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12013if eval "test \"\${$as_ac_Header+set}\" = set"; then
12014 echo "$as_me:$LINENO: checking for $ac_header" >&5
12015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12016if eval "test \"\${$as_ac_Header+set}\" = set"; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018fi
12019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12021else
12022 # Is the header compilable?
12023echo "$as_me:$LINENO: checking $ac_header usability" >&5
12024echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12025cat >conftest.$ac_ext <<_ACEOF
12026/* confdefs.h. */
12027_ACEOF
12028cat confdefs.h >>conftest.$ac_ext
12029cat >>conftest.$ac_ext <<_ACEOF
12030/* end confdefs.h. */
12031$ac_includes_default
12032#include <$ac_header>
12033_ACEOF
12034rm -f conftest.$ac_objext
12035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
7f266840 12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest.$ac_objext'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
12055 ac_header_compiler=yes
12056else
12057 echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
12060ac_header_compiler=no
12061fi
12062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12063echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12064echo "${ECHO_T}$ac_header_compiler" >&6
12065
12066# Is the header present?
12067echo "$as_me:$LINENO: checking $ac_header presence" >&5
12068echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12069cat >conftest.$ac_ext <<_ACEOF
12070/* confdefs.h. */
12071_ACEOF
12072cat confdefs.h >>conftest.$ac_ext
12073cat >>conftest.$ac_ext <<_ACEOF
12074/* end confdefs.h. */
12075#include <$ac_header>
12076_ACEOF
12077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } >/dev/null; then
12085 if test -s conftest.err; then
12086 ac_cpp_err=$ac_c_preproc_warn_flag
12087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12088 else
12089 ac_cpp_err=
12090 fi
252b5132 12091else
5464f5a1 12092 ac_cpp_err=yes
252b5132 12093fi
5464f5a1
NN
12094if test -z "$ac_cpp_err"; then
12095 ac_header_preproc=yes
12096else
12097 echo "$as_me: failed program was:" >&5
12098sed 's/^/| /' conftest.$ac_ext >&5
12099
12100 ac_header_preproc=no
252b5132 12101fi
5464f5a1
NN
12102rm -f conftest.err conftest.$ac_ext
12103echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12104echo "${ECHO_T}$ac_header_preproc" >&6
12105
12106# So? What about this header?
12107case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12108 yes:no: )
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12110echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12112echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12113 ac_header_preproc=yes
12114 ;;
12115 no:yes:* )
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12117echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12119echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12121echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12123echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12125echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12127echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12128 (
12129 cat <<\_ASBOX
12130## ------------------------------------------ ##
12131## Report this to the AC_PACKAGE_NAME lists. ##
12132## ------------------------------------------ ##
12133_ASBOX
12134 ) |
12135 sed "s/^/$as_me: WARNING: /" >&2
12136 ;;
12137esac
12138echo "$as_me:$LINENO: checking for $ac_header" >&5
12139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12140if eval "test \"\${$as_ac_Header+set}\" = set"; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 12142else
5464f5a1
NN
12143 eval "$as_ac_Header=\$ac_header_preproc"
12144fi
12145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12147
12148fi
12149if test `eval echo '${'$as_ac_Header'}'` = yes; then
12150 cat >>confdefs.h <<_ACEOF
12151#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12152_ACEOF
12153
252b5132 12154fi
5464f5a1 12155
252b5132
RH
12156done
12157
5464f5a1 12158
252b5132
RH
12159for ac_func in getpagesize
12160do
5464f5a1
NN
12161as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12162echo "$as_me:$LINENO: checking for $ac_func" >&5
12163echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12164if eval "test \"\${$as_ac_var+set}\" = set"; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166else
12167 cat >conftest.$ac_ext <<_ACEOF
12168/* confdefs.h. */
12169_ACEOF
12170cat confdefs.h >>conftest.$ac_ext
12171cat >>conftest.$ac_ext <<_ACEOF
12172/* end confdefs.h. */
12173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12175#define $ac_func innocuous_$ac_func
12176
252b5132 12177/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
12178 which can conflict with char $ac_func (); below.
12179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12180 <limits.h> exists even on freestanding compilers. */
12181
12182#ifdef __STDC__
12183# include <limits.h>
12184#else
12185# include <assert.h>
12186#endif
6be7c12c 12187
5464f5a1 12188#undef $ac_func
252b5132 12189
5464f5a1
NN
12190/* Override any gcc2 internal prototype to avoid an error. */
12191#ifdef __cplusplus
12192extern "C"
12193{
12194#endif
12195/* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12197char $ac_func ();
252b5132
RH
12198/* The GNU C library defines this for functions which it implements
12199 to always fail with ENOSYS. Some functions are actually named
12200 something starting with __ and the normal name is an alias. */
12201#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12202choke me
12203#else
5464f5a1
NN
12204char (*f) () = $ac_func;
12205#endif
12206#ifdef __cplusplus
12207}
252b5132
RH
12208#endif
12209
5464f5a1
NN
12210int
12211main ()
12212{
12213return f != $ac_func;
12214 ;
12215 return 0;
12216}
12217_ACEOF
12218rm -f conftest.$ac_objext conftest$ac_exeext
12219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12220 (eval $ac_link) 2>conftest.er1
12221 ac_status=$?
12222 grep -v '^ *+' conftest.er1 >conftest.err
12223 rm -f conftest.er1
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } &&
7f266840 12227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest$ac_exeext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 eval "$as_ac_var=yes"
12240else
12241 echo "$as_me: failed program was:" >&5
12242sed 's/^/| /' conftest.$ac_ext >&5
12243
12244eval "$as_ac_var=no"
12245fi
12246rm -f conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248fi
12249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12250echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12251if test `eval echo '${'$as_ac_var'}'` = yes; then
12252 cat >>confdefs.h <<_ACEOF
12253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12254_ACEOF
252b5132 12255
252b5132
RH
12256fi
12257done
12258
5464f5a1
NN
12259echo "$as_me:$LINENO: checking for working mmap" >&5
12260echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12261if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12263else
12264 if test "$cross_compiling" = yes; then
12265 ac_cv_func_mmap_fixed_mapped=no
12266else
5464f5a1
NN
12267 cat >conftest.$ac_ext <<_ACEOF
12268/* confdefs.h. */
12269_ACEOF
12270cat confdefs.h >>conftest.$ac_ext
12271cat >>conftest.$ac_ext <<_ACEOF
12272/* end confdefs.h. */
12273$ac_includes_default
12274/* malloc might have been renamed as rpl_malloc. */
12275#undef malloc
6be7c12c 12276
252b5132
RH
12277/* Thanks to Mike Haertel and Jim Avera for this test.
12278 Here is a matrix of mmap possibilities:
12279 mmap private not fixed
12280 mmap private fixed at somewhere currently unmapped
12281 mmap private fixed at somewhere already mapped
12282 mmap shared not fixed
12283 mmap shared fixed at somewhere currently unmapped
12284 mmap shared fixed at somewhere already mapped
12285 For private mappings, we should verify that changes cannot be read()
12286 back from the file, nor mmap's back from the file at a different
12287 address. (There have been systems where private was not correctly
12288 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 12289 VM page cache was not coherent with the file system buffer cache
252b5132
RH
12290 like early versions of FreeBSD and possibly contemporary NetBSD.)
12291 For shared mappings, we should conversely verify that changes get
5464f5a1 12292 propagated back to all the places they're supposed to be.
252b5132
RH
12293
12294 Grep wants private fixed already mapped.
12295 The main things grep needs to know about mmap are:
12296 * does it exist and is it safe to write into the mmap'd area
12297 * how to use it (BSD variants) */
5464f5a1 12298
252b5132
RH
12299#include <fcntl.h>
12300#include <sys/mman.h>
12301
5464f5a1
NN
12302#if !STDC_HEADERS && !HAVE_STDLIB_H
12303char *malloc ();
12304#endif
6be7c12c 12305
5464f5a1
NN
12306/* This mess was copied from the GNU getpagesize.h. */
12307#if !HAVE_GETPAGESIZE
252b5132 12308/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 12309# if !HAVE_SYS_PARAM_H
252b5132
RH
12310# define HAVE_SYS_PARAM_H 1
12311# endif
12312
12313# ifdef _SC_PAGESIZE
12314# define getpagesize() sysconf(_SC_PAGESIZE)
12315# else /* no _SC_PAGESIZE */
5464f5a1 12316# if HAVE_SYS_PARAM_H
252b5132
RH
12317# include <sys/param.h>
12318# ifdef EXEC_PAGESIZE
12319# define getpagesize() EXEC_PAGESIZE
12320# else /* no EXEC_PAGESIZE */
12321# ifdef NBPG
12322# define getpagesize() NBPG * CLSIZE
12323# ifndef CLSIZE
12324# define CLSIZE 1
12325# endif /* no CLSIZE */
12326# else /* no NBPG */
12327# ifdef NBPC
12328# define getpagesize() NBPC
12329# else /* no NBPC */
12330# ifdef PAGESIZE
12331# define getpagesize() PAGESIZE
12332# endif /* PAGESIZE */
12333# endif /* no NBPC */
12334# endif /* no NBPG */
12335# endif /* no EXEC_PAGESIZE */
12336# else /* no HAVE_SYS_PARAM_H */
12337# define getpagesize() 8192 /* punt totally */
12338# endif /* no HAVE_SYS_PARAM_H */
12339# endif /* no _SC_PAGESIZE */
12340
5464f5a1
NN
12341#endif /* no HAVE_GETPAGESIZE */
12342
12343int
12344main ()
12345{
12346 char *data, *data2, *data3;
12347 int i, pagesize;
12348 int fd;
12349
12350 pagesize = getpagesize ();
12351
12352 /* First, make a file with some known garbage in it. */
12353 data = (char *) malloc (pagesize);
12354 if (!data)
12355 exit (1);
12356 for (i = 0; i < pagesize; ++i)
12357 *(data + i) = rand ();
12358 umask (0);
12359 fd = creat ("conftest.mmap", 0600);
12360 if (fd < 0)
12361 exit (1);
12362 if (write (fd, data, pagesize) != pagesize)
12363 exit (1);
12364 close (fd);
12365
12366 /* Next, try to mmap the file at a fixed address which already has
12367 something else allocated at it. If we can, also make sure that
12368 we see the same garbage. */
12369 fd = open ("conftest.mmap", O_RDWR);
12370 if (fd < 0)
12371 exit (1);
12372 data2 = (char *) malloc (2 * pagesize);
12373 if (!data2)
12374 exit (1);
12375 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12376 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12377 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12378 exit (1);
12379 for (i = 0; i < pagesize; ++i)
12380 if (*(data + i) != *(data2 + i))
12381 exit (1);
12382
12383 /* Finally, make sure that changes to the mapped area do not
12384 percolate back to the file as seen by read(). (This is a bug on
12385 some variants of i386 svr4.0.) */
12386 for (i = 0; i < pagesize; ++i)
12387 *(data2 + i) = *(data2 + i) + 1;
12388 data3 = (char *) malloc (pagesize);
12389 if (!data3)
12390 exit (1);
12391 if (read (fd, data3, pagesize) != pagesize)
12392 exit (1);
12393 for (i = 0; i < pagesize; ++i)
12394 if (*(data + i) != *(data3 + i))
12395 exit (1);
12396 close (fd);
12397 exit (0);
12398}
12399_ACEOF
12400rm -f conftest$ac_exeext
12401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12402 (eval $ac_link) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 ac_cv_func_mmap_fixed_mapped=yes
12412else
12413 echo "$as_me: program exited with status $ac_status" >&5
12414echo "$as_me: failed program was:" >&5
12415sed 's/^/| /' conftest.$ac_ext >&5
12416
12417( exit $ac_status )
12418ac_cv_func_mmap_fixed_mapped=no
12419fi
12420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12421fi
12422fi
12423echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12424echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12425if test $ac_cv_func_mmap_fixed_mapped = yes; then
12426
12427cat >>confdefs.h <<\_ACEOF
12428#define HAVE_MMAP 1
12429_ACEOF
12430
12431fi
12432rm -f conftest.mmap
12433
12434
12435
12436for ac_func in madvise mprotect
12437do
12438as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12439echo "$as_me:$LINENO: checking for $ac_func" >&5
12440echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12441if eval "test \"\${$as_ac_var+set}\" = set"; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443else
12444 cat >conftest.$ac_ext <<_ACEOF
12445/* confdefs.h. */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
12449/* end confdefs.h. */
12450/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12452#define $ac_func innocuous_$ac_func
12453
12454/* System header to define __stub macros and hopefully few prototypes,
12455 which can conflict with char $ac_func (); below.
12456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12457 <limits.h> exists even on freestanding compilers. */
12458
12459#ifdef __STDC__
12460# include <limits.h>
12461#else
12462# include <assert.h>
12463#endif
12464
12465#undef $ac_func
12466
12467/* Override any gcc2 internal prototype to avoid an error. */
12468#ifdef __cplusplus
12469extern "C"
12470{
12471#endif
12472/* We use char because int might match the return type of a gcc2
12473 builtin and then its argument prototype would still apply. */
12474char $ac_func ();
12475/* The GNU C library defines this for functions which it implements
12476 to always fail with ENOSYS. Some functions are actually named
12477 something starting with __ and the normal name is an alias. */
12478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12479choke me
12480#else
12481char (*f) () = $ac_func;
12482#endif
12483#ifdef __cplusplus
12484}
12485#endif
12486
12487int
12488main ()
12489{
12490return f != $ac_func;
12491 ;
12492 return 0;
12493}
12494_ACEOF
12495rm -f conftest.$ac_objext conftest$ac_exeext
12496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497 (eval $ac_link) 2>conftest.er1
12498 ac_status=$?
12499 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } &&
7f266840 12504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
12510 { ac_try='test -s conftest$ac_exeext'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 eval "$as_ac_var=yes"
12517else
12518 echo "$as_me: failed program was:" >&5
12519sed 's/^/| /' conftest.$ac_ext >&5
12520
12521eval "$as_ac_var=no"
12522fi
12523rm -f conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
12525fi
12526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12527echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12528if test `eval echo '${'$as_ac_var'}'` = yes; then
12529 cat >>confdefs.h <<_ACEOF
12530#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12531_ACEOF
12532
12533fi
12534done
12535
12536case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12537 true+yes )
12538cat >>confdefs.h <<\_ACEOF
12539#define USE_MMAP 1
12540_ACEOF
12541 ;;
12542esac
12543
12544rm -f doc/config.status
12545 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12546
12547 ac_config_commands="$ac_config_commands default"
12548
12549cat >confcache <<\_ACEOF
12550# This file is a shell script that caches the results of configure
12551# tests run on this system so they can be shared between configure
12552# scripts and configure runs, see configure's option --config-cache.
12553# It is not useful on other systems. If it contains results you don't
12554# want to keep, you may remove or edit it.
12555#
12556# config.status only pays attention to the cache file if you give it
12557# the --recheck option to rerun configure.
12558#
12559# `ac_cv_env_foo' variables (set or unset) will be overridden when
12560# loading this file, other *unset* `ac_cv_foo' will be assigned the
12561# following values.
12562
12563_ACEOF
12564
12565# The following way of writing the cache mishandles newlines in values,
12566# but we know of no workaround that is simple, portable, and efficient.
12567# So, don't put newlines in cache variables' values.
12568# Ultrix sh set writes to stderr and can't be redirected directly,
12569# and sets the high bit in the cache file unless we assign to the vars.
12570{
12571 (set) 2>&1 |
12572 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12573 *ac_space=\ *)
12574 # `set' does not quote correctly, so add quotes (double-quote
12575 # substitution turns \\\\ into \\, and sed turns \\ into \).
12576 sed -n \
12577 "s/'/'\\\\''/g;
12578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12579 ;;
12580 *)
12581 # `set' quotes correctly as required by POSIX, so do not add quotes.
12582 sed -n \
12583 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12584 ;;
12585 esac;
12586} |
12587 sed '
12588 t clear
12589 : clear
12590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12591 t end
12592 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12593 : end' >>confcache
12594if diff $cache_file confcache >/dev/null 2>&1; then :; else
12595 if test -w $cache_file; then
12596 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12597 cat confcache >$cache_file
12598 else
12599 echo "not updating unwritable cache $cache_file"
12600 fi
12601fi
12602rm -f confcache
12603
12604test "x$prefix" = xNONE && prefix=$ac_default_prefix
12605# Let make expand exec_prefix.
12606test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12607
12608# VPATH may cause trouble with some makes, so we remove $(srcdir),
12609# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12610# trailing colons and then remove the whole line if VPATH becomes empty
12611# (actually we leave an empty line to preserve line numbers).
12612if test "x$srcdir" = x.; then
12613 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12614s/:*\$(srcdir):*/:/;
12615s/:*\${srcdir}:*/:/;
12616s/:*@srcdir@:*/:/;
12617s/^\([^=]*=[ ]*\):*/\1/;
12618s/:*$//;
12619s/^[^=]*=[ ]*$//;
12620}'
12621fi
12622
12623DEFS=-DHAVE_CONFIG_H
12624
12625ac_libobjs=
12626ac_ltlibobjs=
12627for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12628 # 1. Remove the extension, and $U if already installed.
12629 ac_i=`echo "$ac_i" |
12630 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12631 # 2. Add them.
12632 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12633 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12634done
12635LIBOBJS=$ac_libobjs
12636
12637LTLIBOBJS=$ac_ltlibobjs
12638
12639
f5385ebf
AM
12640if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12641 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12642Usually this means the macro was only invoked conditionally." >&5
12643echo "$as_me: error: conditional \"AMDEP\" was never defined.
12644Usually this means the macro was only invoked conditionally." >&2;}
12645 { (exit 1); exit 1; }; }
12646fi
12647if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12648 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12649Usually this means the macro was only invoked conditionally." >&5
12650echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12651Usually this means the macro was only invoked conditionally." >&2;}
12652 { (exit 1); exit 1; }; }
12653fi
12654if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12655 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12656Usually this means the macro was only invoked conditionally." >&5
12657echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12658Usually this means the macro was only invoked conditionally." >&2;}
12659 { (exit 1); exit 1; }; }
12660fi
12661if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12662 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12663Usually this means the macro was only invoked conditionally." >&5
12664echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12665Usually this means the macro was only invoked conditionally." >&2;}
12666 { (exit 1); exit 1; }; }
12667fi
5464f5a1
NN
12668
12669: ${CONFIG_STATUS=./config.status}
12670ac_clean_files_save=$ac_clean_files
12671ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12672{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12673echo "$as_me: creating $CONFIG_STATUS" >&6;}
12674cat >$CONFIG_STATUS <<_ACEOF
12675#! $SHELL
12676# Generated by $as_me.
12677# Run this file to recreate the current configuration.
12678# Compiler output produced by configure, useful for debugging
12679# configure, is in config.log if it exists.
12680
12681debug=false
12682ac_cs_recheck=false
12683ac_cs_silent=false
12684SHELL=\${CONFIG_SHELL-$SHELL}
12685_ACEOF
12686
12687cat >>$CONFIG_STATUS <<\_ACEOF
12688## --------------------- ##
12689## M4sh Initialization. ##
12690## --------------------- ##
12691
12692# Be Bourne compatible
12693if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12694 emulate sh
12695 NULLCMD=:
12696 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12697 # is contrary to our usage. Disable this feature.
12698 alias -g '${1+"$@"}'='"$@"'
12699elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12700 set -o posix
12701fi
12702DUALCASE=1; export DUALCASE # for MKS sh
12703
12704# Support unset when possible.
12705if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12706 as_unset=unset
12707else
12708 as_unset=false
12709fi
12710
12711
12712# Work around bugs in pre-3.0 UWIN ksh.
12713$as_unset ENV MAIL MAILPATH
12714PS1='$ '
12715PS2='> '
12716PS4='+ '
12717
12718# NLS nuisances.
12719for as_var in \
12720 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12721 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12722 LC_TELEPHONE LC_TIME
12723do
12724 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12725 eval $as_var=C; export $as_var
12726 else
12727 $as_unset $as_var
12728 fi
12729done
12730
12731# Required to use basename.
12732if expr a : '\(a\)' >/dev/null 2>&1; then
12733 as_expr=expr
12734else
12735 as_expr=false
12736fi
12737
12738if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12739 as_basename=basename
12740else
12741 as_basename=false
12742fi
252b5132 12743
6be7c12c 12744
5464f5a1
NN
12745# Name of the executable.
12746as_me=`$as_basename "$0" ||
12747$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12748 X"$0" : 'X\(//\)$' \| \
12749 X"$0" : 'X\(/\)$' \| \
12750 . : '\(.\)' 2>/dev/null ||
12751echo X/"$0" |
12752 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12753 /^X\/\(\/\/\)$/{ s//\1/; q; }
12754 /^X\/\(\/\).*/{ s//\1/; q; }
12755 s/.*/./; q'`
12756
12757
12758# PATH needs CR, and LINENO needs CR and PATH.
12759# Avoid depending upon Character Ranges.
12760as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12761as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12762as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12763as_cr_digits='0123456789'
12764as_cr_alnum=$as_cr_Letters$as_cr_digits
12765
12766# The user is always right.
12767if test "${PATH_SEPARATOR+set}" != set; then
12768 echo "#! /bin/sh" >conf$$.sh
12769 echo "exit 0" >>conf$$.sh
12770 chmod +x conf$$.sh
12771 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12772 PATH_SEPARATOR=';'
12773 else
12774 PATH_SEPARATOR=:
12775 fi
12776 rm -f conf$$.sh
12777fi
12778
12779
12780 as_lineno_1=$LINENO
12781 as_lineno_2=$LINENO
12782 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12783 test "x$as_lineno_1" != "x$as_lineno_2" &&
12784 test "x$as_lineno_3" = "x$as_lineno_2" || {
12785 # Find who we are. Look in the path if we contain no path at all
12786 # relative or not.
12787 case $0 in
12788 *[\\/]* ) as_myself=$0 ;;
12789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12790for as_dir in $PATH
12791do
12792 IFS=$as_save_IFS
12793 test -z "$as_dir" && as_dir=.
12794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12795done
12796
12797 ;;
12798 esac
12799 # We did not find ourselves, most probably we were run as `sh COMMAND'
12800 # in which case we are not to be found in the path.
12801 if test "x$as_myself" = x; then
12802 as_myself=$0
12803 fi
12804 if test ! -f "$as_myself"; then
12805 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12806echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12807 { (exit 1); exit 1; }; }
12808 fi
12809 case $CONFIG_SHELL in
12810 '')
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12813do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for as_base in sh bash ksh sh5; do
12817 case $as_dir in
12818 /*)
12819 if ("$as_dir/$as_base" -c '
12820 as_lineno_1=$LINENO
12821 as_lineno_2=$LINENO
12822 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12823 test "x$as_lineno_1" != "x$as_lineno_2" &&
12824 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12825 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12826 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12827 CONFIG_SHELL=$as_dir/$as_base
12828 export CONFIG_SHELL
12829 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12830 fi;;
12831 esac
12832 done
12833done
12834;;
12835 esac
12836
12837 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12838 # uniformly replaced by the line number. The first 'sed' inserts a
12839 # line-number line before each line; the second 'sed' does the real
12840 # work. The second script uses 'N' to pair each line-number line
12841 # with the numbered line, and appends trailing '-' during
12842 # substitution so that $LINENO is not a special case at line end.
12843 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12844 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12845 sed '=' <$as_myself |
12846 sed '
12847 N
12848 s,$,-,
12849 : loop
12850 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12851 t loop
12852 s,-$,,
12853 s,^['$as_cr_digits']*\n,,
12854 ' >$as_me.lineno &&
12855 chmod +x $as_me.lineno ||
12856 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12857echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12858 { (exit 1); exit 1; }; }
12859
12860 # Don't try to exec as it changes $[0], causing all sort of problems
12861 # (the dirname of $[0] is not the place where we might find the
12862 # original and so on. Autoconf is especially sensible to this).
12863 . ./$as_me.lineno
12864 # Exit status is that of the last command.
12865 exit
252b5132 12866}
6be7c12c 12867
5464f5a1
NN
12868
12869case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12870 *c*,-n*) ECHO_N= ECHO_C='
12871' ECHO_T=' ' ;;
12872 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12873 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12874esac
12875
12876if expr a : '\(a\)' >/dev/null 2>&1; then
12877 as_expr=expr
252b5132 12878else
5464f5a1 12879 as_expr=false
252b5132 12880fi
5464f5a1
NN
12881
12882rm -f conf$$ conf$$.exe conf$$.file
12883echo >conf$$.file
12884if ln -s conf$$.file conf$$ 2>/dev/null; then
12885 # We could just check for DJGPP; but this test a) works b) is more generic
12886 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12887 if test -f conf$$.exe; then
12888 # Don't use ln at all; we don't have any links
12889 as_ln_s='cp -p'
12890 else
12891 as_ln_s='ln -s'
12892 fi
12893elif ln conf$$.file conf$$ 2>/dev/null; then
12894 as_ln_s=ln
12895else
12896 as_ln_s='cp -p'
252b5132 12897fi
5464f5a1 12898rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 12899
5464f5a1
NN
12900if mkdir -p . 2>/dev/null; then
12901 as_mkdir_p=:
12902else
12903 test -d ./-p && rmdir ./-p
12904 as_mkdir_p=false
252b5132 12905fi
b3baf5d0 12906
5464f5a1 12907as_executable_p="test -f"
252b5132 12908
5464f5a1
NN
12909# Sed expression to map a string onto a valid CPP name.
12910as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 12911
5464f5a1
NN
12912# Sed expression to map a string onto a valid variable name.
12913as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 12914
252b5132 12915
5464f5a1
NN
12916# IFS
12917# We need space, tab and new line, in precisely that order.
12918as_nl='
12919'
12920IFS=" $as_nl"
252b5132 12921
5464f5a1
NN
12922# CDPATH.
12923$as_unset CDPATH
12924
12925exec 6>&1
12926
12927# Open the log real soon, to keep \$[0] and so on meaningful, and to
12928# report actual input values of CONFIG_FILES etc. instead of their
12929# values after options handling. Logging --version etc. is OK.
12930exec 5>>config.log
12931{
12932 echo
12933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12934## Running $as_me. ##
12935_ASBOX
12936} >&5
12937cat >&5 <<_CSEOF
12938
12939This file was extended by $as_me, which was
12940generated by GNU Autoconf 2.59. Invocation command line was
12941
12942 CONFIG_FILES = $CONFIG_FILES
12943 CONFIG_HEADERS = $CONFIG_HEADERS
12944 CONFIG_LINKS = $CONFIG_LINKS
12945 CONFIG_COMMANDS = $CONFIG_COMMANDS
12946 $ $0 $@
12947
12948_CSEOF
12949echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12950echo >&5
12951_ACEOF
12952
12953# Files that config.status was made for.
12954if test -n "$ac_config_files"; then
12955 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 12956fi
5464f5a1
NN
12957
12958if test -n "$ac_config_headers"; then
12959 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 12960fi
252b5132 12961
5464f5a1
NN
12962if test -n "$ac_config_links"; then
12963 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 12964fi
252b5132 12965
5464f5a1
NN
12966if test -n "$ac_config_commands"; then
12967 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12968fi
252b5132 12969
5464f5a1
NN
12970cat >>$CONFIG_STATUS <<\_ACEOF
12971
12972ac_cs_usage="\
12973\`$as_me' instantiates files from templates according to the
12974current configuration.
12975
12976Usage: $0 [OPTIONS] [FILE]...
12977
12978 -h, --help print this help, then exit
12979 -V, --version print version number, then exit
12980 -q, --quiet do not print progress messages
12981 -d, --debug don't remove temporary files
12982 --recheck update $as_me by reconfiguring in the same conditions
12983 --file=FILE[:TEMPLATE]
12984 instantiate the configuration file FILE
12985 --header=FILE[:TEMPLATE]
12986 instantiate the configuration header FILE
12987
12988Configuration files:
12989$config_files
12990
12991Configuration headers:
12992$config_headers
12993
12994Configuration commands:
12995$config_commands
12996
12997Report bugs to <bug-autoconf@gnu.org>."
12998_ACEOF
12999
13000cat >>$CONFIG_STATUS <<_ACEOF
13001ac_cs_version="\\
13002config.status
13003configured by $0, generated by GNU Autoconf 2.59,
13004 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13005
13006Copyright (C) 2003 Free Software Foundation, Inc.
13007This config.status script is free software; the Free Software Foundation
13008gives unlimited permission to copy, distribute and modify it."
13009srcdir=$srcdir
13010INSTALL="$INSTALL"
13011_ACEOF
13012
13013cat >>$CONFIG_STATUS <<\_ACEOF
13014# If no file are specified by the user, then we need to provide default
13015# value. By we need to know if files were specified by the user.
13016ac_need_defaults=:
13017while test $# != 0
13018do
13019 case $1 in
13020 --*=*)
13021 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13022 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13023 ac_shift=:
6be7c12c 13024 ;;
5464f5a1
NN
13025 -*)
13026 ac_option=$1
13027 ac_optarg=$2
13028 ac_shift=shift
6be7c12c 13029 ;;
5464f5a1
NN
13030 *) # This is not an option, so the user has probably given explicit
13031 # arguments.
13032 ac_option=$1
13033 ac_need_defaults=false;;
13034 esac
252b5132 13035
5464f5a1
NN
13036 case $ac_option in
13037 # Handling of the options.
13038_ACEOF
13039cat >>$CONFIG_STATUS <<\_ACEOF
13040 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13041 ac_cs_recheck=: ;;
13042 --version | --vers* | -V )
13043 echo "$ac_cs_version"; exit 0 ;;
13044 --he | --h)
13045 # Conflict between --help and --header
13046 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13047Try \`$0 --help' for more information." >&5
13048echo "$as_me: error: ambiguous option: $1
13049Try \`$0 --help' for more information." >&2;}
13050 { (exit 1); exit 1; }; };;
13051 --help | --hel | -h )
13052 echo "$ac_cs_usage"; exit 0 ;;
13053 --debug | --d* | -d )
13054 debug=: ;;
13055 --file | --fil | --fi | --f )
13056 $ac_shift
13057 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13058 ac_need_defaults=false;;
13059 --header | --heade | --head | --hea )
13060 $ac_shift
13061 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13062 ac_need_defaults=false;;
13063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13064 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13065 ac_cs_silent=: ;;
6be7c12c 13066
5464f5a1
NN
13067 # This is an error.
13068 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13069Try \`$0 --help' for more information." >&5
13070echo "$as_me: error: unrecognized option: $1
13071Try \`$0 --help' for more information." >&2;}
13072 { (exit 1); exit 1; }; } ;;
252b5132 13073
5464f5a1 13074 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 13075
5464f5a1
NN
13076 esac
13077 shift
13078done
6be7c12c 13079
5464f5a1 13080ac_configure_extra_args=
252b5132 13081
5464f5a1
NN
13082if $ac_cs_silent; then
13083 exec 6>/dev/null
13084 ac_configure_extra_args="$ac_configure_extra_args --silent"
13085fi
6be7c12c 13086
5464f5a1
NN
13087_ACEOF
13088cat >>$CONFIG_STATUS <<_ACEOF
13089if \$ac_cs_recheck; then
13090 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13091 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13092fi
13093
13094_ACEOF
13095
13096cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 13097#
5464f5a1 13098# INIT-COMMANDS section.
6be7c12c 13099#
b3baf5d0 13100
f5385ebf 13101AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5464f5a1
NN
13102
13103
13104_ACEOF
13105
13106
13107
13108cat >>$CONFIG_STATUS <<\_ACEOF
13109for ac_config_target in $ac_config_targets
252b5132 13110do
5464f5a1
NN
13111 case "$ac_config_target" in
13112 # Handling of arguments.
13113 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13114 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13115 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
13116 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 13117 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5464f5a1
NN
13118 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13119 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13120 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13121echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13122 { (exit 1); exit 1; }; };;
252b5132
RH
13123 esac
13124done
13125
5464f5a1
NN
13126# If the user did not use the arguments to specify the items to instantiate,
13127# then the envvar interface is used. Set only those that are not.
13128# We use the long form for the default assignment because of an extremely
13129# bizarre bug on SunOS 4.1.3.
13130if $ac_need_defaults; then
13131 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13132 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13133 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13134fi
13135
13136# Have a temporary directory for convenience. Make it in the build tree
13137# simply because there is no reason to put it here, and in addition,
13138# creating and moving files from /tmp can sometimes cause problems.
13139# Create a temporary directory, and hook for its removal unless debugging.
13140$debug ||
13141{
13142 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13143 trap '{ (exit 1); exit 1; }' 1 2 13 15
13144}
b3baf5d0 13145
5464f5a1 13146# Create a (secure) tmp directory for tmp files.
b3baf5d0 13147
5464f5a1
NN
13148{
13149 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13150 test -n "$tmp" && test -d "$tmp"
13151} ||
13152{
13153 tmp=./confstat$$-$RANDOM
13154 (umask 077 && mkdir $tmp)
13155} ||
13156{
13157 echo "$me: cannot create a temporary directory in ." >&2
13158 { (exit 1); exit 1; }
13159}
13160
13161_ACEOF
13162
13163cat >>$CONFIG_STATUS <<_ACEOF
13164
13165#
13166# CONFIG_FILES section.
13167#
b3baf5d0 13168
5464f5a1
NN
13169# No need to generate the scripts if there are no CONFIG_FILES.
13170# This happens for instance when ./config.status config.h
13171if test -n "\$CONFIG_FILES"; then
13172 # Protect against being on the right side of a sed subst in config.status.
13173 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13174 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13175s,@SHELL@,$SHELL,;t t
13176s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13177s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13178s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13179s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13180s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13181s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13182s,@exec_prefix@,$exec_prefix,;t t
13183s,@prefix@,$prefix,;t t
13184s,@program_transform_name@,$program_transform_name,;t t
13185s,@bindir@,$bindir,;t t
13186s,@sbindir@,$sbindir,;t t
13187s,@libexecdir@,$libexecdir,;t t
13188s,@datadir@,$datadir,;t t
13189s,@sysconfdir@,$sysconfdir,;t t
13190s,@sharedstatedir@,$sharedstatedir,;t t
13191s,@localstatedir@,$localstatedir,;t t
13192s,@libdir@,$libdir,;t t
13193s,@includedir@,$includedir,;t t
13194s,@oldincludedir@,$oldincludedir,;t t
13195s,@infodir@,$infodir,;t t
13196s,@mandir@,$mandir,;t t
13197s,@build_alias@,$build_alias,;t t
13198s,@host_alias@,$host_alias,;t t
13199s,@target_alias@,$target_alias,;t t
13200s,@DEFS@,$DEFS,;t t
13201s,@ECHO_C@,$ECHO_C,;t t
13202s,@ECHO_N@,$ECHO_N,;t t
13203s,@ECHO_T@,$ECHO_T,;t t
13204s,@LIBS@,$LIBS,;t t
13205s,@build@,$build,;t t
13206s,@build_cpu@,$build_cpu,;t t
13207s,@build_vendor@,$build_vendor,;t t
13208s,@build_os@,$build_os,;t t
13209s,@host@,$host,;t t
13210s,@host_cpu@,$host_cpu,;t t
13211s,@host_vendor@,$host_vendor,;t t
13212s,@host_os@,$host_os,;t t
13213s,@target@,$target,;t t
13214s,@target_cpu@,$target_cpu,;t t
13215s,@target_vendor@,$target_vendor,;t t
13216s,@target_os@,$target_os,;t t
13217s,@CC@,$CC,;t t
13218s,@CFLAGS@,$CFLAGS,;t t
13219s,@LDFLAGS@,$LDFLAGS,;t t
13220s,@CPPFLAGS@,$CPPFLAGS,;t t
13221s,@ac_ct_CC@,$ac_ct_CC,;t t
13222s,@EXEEXT@,$EXEEXT,;t t
13223s,@OBJEXT@,$OBJEXT,;t t
13224s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13225s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13226s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 13227s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
13228s,@PACKAGE@,$PACKAGE,;t t
13229s,@VERSION@,$VERSION,;t t
13230s,@ACLOCAL@,$ACLOCAL,;t t
13231s,@AUTOCONF@,$AUTOCONF,;t t
13232s,@AUTOMAKE@,$AUTOMAKE,;t t
13233s,@AUTOHEADER@,$AUTOHEADER,;t t
13234s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
13235s,@install_sh@,$install_sh,;t t
13236s,@STRIP@,$STRIP,;t t
13237s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13238s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13239s,@mkdir_p@,$mkdir_p,;t t
13240s,@AWK@,$AWK,;t t
5464f5a1 13241s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
13242s,@am__leading_dot@,$am__leading_dot,;t t
13243s,@AMTAR@,$AMTAR,;t t
13244s,@am__tar@,$am__tar,;t t
13245s,@am__untar@,$am__untar,;t t
13246s,@DEPDIR@,$DEPDIR,;t t
13247s,@am__include@,$am__include,;t t
13248s,@am__quote@,$am__quote,;t t
13249s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13250s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13251s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13252s,@CCDEPMODE@,$CCDEPMODE,;t t
13253s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13254s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
13255s,@AR@,$AR,;t t
13256s,@ac_ct_AR@,$ac_ct_AR,;t t
13257s,@RANLIB@,$RANLIB,;t t
13258s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13259s,@LN_S@,$LN_S,;t t
5464f5a1
NN
13260s,@LIBTOOL@,$LIBTOOL,;t t
13261s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13262s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13263s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13264s,@MAINT@,$MAINT,;t t
13265s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13266s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
13267s,@host_noncanonical@,$host_noncanonical,;t t
13268s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
13269s,@bfdlibdir@,$bfdlibdir,;t t
13270s,@bfdincludedir@,$bfdincludedir,;t t
13271s,@CPP@,$CPP,;t t
13272s,@EGREP@,$EGREP,;t t
13273s,@ALLOCA@,$ALLOCA,;t t
13274s,@USE_NLS@,$USE_NLS,;t t
13275s,@MSGFMT@,$MSGFMT,;t t
13276s,@GMSGFMT@,$GMSGFMT,;t t
13277s,@XGETTEXT@,$XGETTEXT,;t t
13278s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13279s,@CATALOGS@,$CATALOGS,;t t
13280s,@CATOBJEXT@,$CATOBJEXT,;t t
13281s,@DATADIRNAME@,$DATADIRNAME,;t t
13282s,@GMOFILES@,$GMOFILES,;t t
13283s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13284s,@INTLDEPS@,$INTLDEPS,;t t
13285s,@INTLLIBS@,$INTLLIBS,;t t
13286s,@INTLOBJS@,$INTLOBJS,;t t
13287s,@POFILES@,$POFILES,;t t
13288s,@POSUB@,$POSUB,;t t
13289s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
13290s,@GT_NO@,$GT_NO,;t t
13291s,@GT_YES@,$GT_YES,;t t
13292s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13293s,@l@,$l,;t t
13294s,@HDEFINES@,$HDEFINES,;t t
13295s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13296s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13297s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13298s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13299s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13300s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13301s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13302s,@COREFILE@,$COREFILE,;t t
13303s,@COREFLAG@,$COREFLAG,;t t
13304s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13305s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13306s,@TDEFINES@,$TDEFINES,;t t
13307s,@wordsize@,$wordsize,;t t
13308s,@bfd_libs@,$bfd_libs,;t t
13309s,@all_backends@,$all_backends,;t t
13310s,@bfd_backends@,$bfd_backends,;t t
13311s,@bfd_machines@,$bfd_machines,;t t
13312s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13313s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13314s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13315s,@tdefaults@,$tdefaults,;t t
13316s,@LIBOBJS@,$LIBOBJS,;t t
13317s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 13318CEOF
252b5132 13319
5464f5a1
NN
13320_ACEOF
13321
13322 cat >>$CONFIG_STATUS <<\_ACEOF
13323 # Split the substitutions into bite-sized pieces for seds with
13324 # small command number limits, like on Digital OSF/1 and HP-UX.
13325 ac_max_sed_lines=48
13326 ac_sed_frag=1 # Number of current file.
13327 ac_beg=1 # First line for current file.
13328 ac_end=$ac_max_sed_lines # Line after last line for current file.
13329 ac_more_lines=:
13330 ac_sed_cmds=
13331 while $ac_more_lines; do
13332 if test $ac_beg -gt 1; then
13333 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 13334 else
5464f5a1
NN
13335 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13336 fi
13337 if test ! -s $tmp/subs.frag; then
13338 ac_more_lines=false
13339 else
13340 # The purpose of the label and of the branching condition is to
13341 # speed up the sed processing (if there are no `@' at all, there
13342 # is no need to browse any of the substitutions).
13343 # These are the two extra sed commands mentioned above.
13344 (echo ':t
13345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13346 if test -z "$ac_sed_cmds"; then
13347 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13348 else
13349 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13350 fi
13351 ac_sed_frag=`expr $ac_sed_frag + 1`
13352 ac_beg=$ac_end
13353 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13354 fi
5464f5a1
NN
13355 done
13356 if test -z "$ac_sed_cmds"; then
13357 ac_sed_cmds=cat
252b5132 13358 fi
5464f5a1 13359fi # test -n "$CONFIG_FILES"
6be7c12c 13360
5464f5a1
NN
13361_ACEOF
13362cat >>$CONFIG_STATUS <<\_ACEOF
13363for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13364 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13365 case $ac_file in
13366 - | *:- | *:-:* ) # input from stdin
13367 cat >$tmp/stdin
13368 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13369 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13370 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13371 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13372 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13373 esac
13374
5464f5a1
NN
13375 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13376 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13377$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13378 X"$ac_file" : 'X\(//\)[^/]' \| \
13379 X"$ac_file" : 'X\(//\)$' \| \
13380 X"$ac_file" : 'X\(/\)' \| \
13381 . : '\(.\)' 2>/dev/null ||
13382echo X"$ac_file" |
13383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13385 /^X\(\/\/\)$/{ s//\1/; q; }
13386 /^X\(\/\).*/{ s//\1/; q; }
13387 s/.*/./; q'`
13388 { if $as_mkdir_p; then
13389 mkdir -p "$ac_dir"
252b5132 13390 else
5464f5a1
NN
13391 as_dir="$ac_dir"
13392 as_dirs=
13393 while test ! -d "$as_dir"; do
13394 as_dirs="$as_dir $as_dirs"
13395 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13396$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13397 X"$as_dir" : 'X\(//\)[^/]' \| \
13398 X"$as_dir" : 'X\(//\)$' \| \
13399 X"$as_dir" : 'X\(/\)' \| \
13400 . : '\(.\)' 2>/dev/null ||
13401echo X"$as_dir" |
13402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13404 /^X\(\/\/\)$/{ s//\1/; q; }
13405 /^X\(\/\).*/{ s//\1/; q; }
13406 s/.*/./; q'`
13407 done
13408 test ! -n "$as_dirs" || mkdir $as_dirs
13409 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13410echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13411 { (exit 1); exit 1; }; }; }
13412
13413 ac_builddir=.
13414
13415if test "$ac_dir" != .; then
13416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13417 # A "../" for each directory in $ac_dir_suffix.
13418 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13419else
13420 ac_dir_suffix= ac_top_builddir=
13421fi
252b5132 13422
5464f5a1
NN
13423case $srcdir in
13424 .) # No --srcdir option. We are building in place.
13425 ac_srcdir=.
13426 if test -z "$ac_top_builddir"; then
13427 ac_top_srcdir=.
13428 else
13429 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13430 fi ;;
13431 [\\/]* | ?:[\\/]* ) # Absolute path.
13432 ac_srcdir=$srcdir$ac_dir_suffix;
13433 ac_top_srcdir=$srcdir ;;
252b5132 13434 *) # Relative path.
5464f5a1
NN
13435 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13436 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13437esac
252b5132 13438
5464f5a1
NN
13439# Do not use `cd foo && pwd` to compute absolute paths, because
13440# the directories may not exist.
13441case `pwd` in
13442.) ac_abs_builddir="$ac_dir";;
13443*)
13444 case "$ac_dir" in
13445 .) ac_abs_builddir=`pwd`;;
13446 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13447 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13448 esac;;
13449esac
13450case $ac_abs_builddir in
13451.) ac_abs_top_builddir=${ac_top_builddir}.;;
13452*)
13453 case ${ac_top_builddir}. in
13454 .) ac_abs_top_builddir=$ac_abs_builddir;;
13455 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13456 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13457 esac;;
13458esac
13459case $ac_abs_builddir in
13460.) ac_abs_srcdir=$ac_srcdir;;
13461*)
13462 case $ac_srcdir in
13463 .) ac_abs_srcdir=$ac_abs_builddir;;
13464 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13465 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13466 esac;;
13467esac
13468case $ac_abs_builddir in
13469.) ac_abs_top_srcdir=$ac_top_srcdir;;
13470*)
13471 case $ac_top_srcdir in
13472 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13473 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13474 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13475 esac;;
13476esac
252b5132 13477
5464f5a1
NN
13478
13479 case $INSTALL in
13480 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13481 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 13482 esac
252b5132 13483
5464f5a1
NN
13484 # Let's still pretend it is `configure' which instantiates (i.e., don't
13485 # use $as_me), people would be surprised to read:
13486 # /* config.h. Generated by config.status. */
13487 if test x"$ac_file" = x-; then
13488 configure_input=
13489 else
13490 configure_input="$ac_file. "
13491 fi
13492 configure_input=$configure_input"Generated from `echo $ac_file_in |
13493 sed 's,.*/,,'` by configure."
13494
13495 # First look for the input files in the build tree, otherwise in the
13496 # src tree.
13497 ac_file_inputs=`IFS=:
13498 for f in $ac_file_in; do
13499 case $f in
13500 -) echo $tmp/stdin ;;
13501 [\\/$]*)
13502 # Absolute (can't be DOS-style, as IFS=:)
13503 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13504echo "$as_me: error: cannot find input file: $f" >&2;}
13505 { (exit 1); exit 1; }; }
13506 echo "$f";;
13507 *) # Relative
13508 if test -f "$f"; then
13509 # Build tree
13510 echo "$f"
13511 elif test -f "$srcdir/$f"; then
13512 # Source tree
13513 echo "$srcdir/$f"
13514 else
13515 # /dev/null tree
13516 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13517echo "$as_me: error: cannot find input file: $f" >&2;}
13518 { (exit 1); exit 1; }; }
13519 fi;;
13520 esac
13521 done` || { (exit 1); exit 1; }
7f266840
DJ
13522
13523 if test x"$ac_file" != x-; then
13524 { echo "$as_me:$LINENO: creating $ac_file" >&5
13525echo "$as_me: creating $ac_file" >&6;}
13526 rm -f "$ac_file"
13527 fi
5464f5a1
NN
13528_ACEOF
13529cat >>$CONFIG_STATUS <<_ACEOF
13530 sed "$ac_vpsub
13531$extrasub
13532_ACEOF
13533cat >>$CONFIG_STATUS <<\_ACEOF
13534:t
13535/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13536s,@configure_input@,$configure_input,;t t
13537s,@srcdir@,$ac_srcdir,;t t
13538s,@abs_srcdir@,$ac_abs_srcdir,;t t
13539s,@top_srcdir@,$ac_top_srcdir,;t t
13540s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13541s,@builddir@,$ac_builddir,;t t
13542s,@abs_builddir@,$ac_abs_builddir,;t t
13543s,@top_builddir@,$ac_top_builddir,;t t
13544s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13545s,@INSTALL@,$ac_INSTALL,;t t
13546" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13547 rm -f $tmp/stdin
13548 if test x"$ac_file" != x-; then
13549 mv $tmp/out $ac_file
13550 else
13551 cat $tmp/out
13552 rm -f $tmp/out
13553 fi
13554
13555done
13556_ACEOF
13557cat >>$CONFIG_STATUS <<\_ACEOF
13558
13559#
13560# CONFIG_HEADER section.
13561#
252b5132
RH
13562
13563# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13564# NAME is the cpp macro being defined and VALUE is the value it is being given.
13565#
13566# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
13567ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13568ac_dB='[ ].*$,\1#\2'
13569ac_dC=' '
13570ac_dD=',;t'
13571# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13572ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13573ac_uB='$,\1#\2define\3'
252b5132 13574ac_uC=' '
5464f5a1
NN
13575ac_uD=',;t'
13576
13577for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 13578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13579 case $ac_file in
13580 - | *:- | *:-:* ) # input from stdin
13581 cat >$tmp/stdin
13582 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13584 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13585 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13586 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13587 esac
13588
5464f5a1
NN
13589 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13590echo "$as_me: creating $ac_file" >&6;}
13591
13592 # First look for the input files in the build tree, otherwise in the
13593 # src tree.
13594 ac_file_inputs=`IFS=:
13595 for f in $ac_file_in; do
13596 case $f in
13597 -) echo $tmp/stdin ;;
13598 [\\/$]*)
13599 # Absolute (can't be DOS-style, as IFS=:)
13600 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13601echo "$as_me: error: cannot find input file: $f" >&2;}
13602 { (exit 1); exit 1; }; }
13603 # Do quote $f, to prevent DOS paths from being IFS'd.
13604 echo "$f";;
13605 *) # Relative
13606 if test -f "$f"; then
13607 # Build tree
13608 echo "$f"
13609 elif test -f "$srcdir/$f"; then
13610 # Source tree
13611 echo "$srcdir/$f"
13612 else
13613 # /dev/null tree
13614 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13615echo "$as_me: error: cannot find input file: $f" >&2;}
13616 { (exit 1); exit 1; }; }
13617 fi;;
13618 esac
13619 done` || { (exit 1); exit 1; }
13620 # Remove the trailing spaces.
13621 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13622
13623_ACEOF
13624
13625# Transform confdefs.h into two sed scripts, `conftest.defines' and
13626# `conftest.undefs', that substitutes the proper values into
13627# config.h.in to produce config.h. The first handles `#define'
13628# templates, and the second `#undef' templates.
13629# And first: Protect against being on the right side of a sed subst in
13630# config.status. Protect against being in an unquoted here document
13631# in config.status.
13632rm -f conftest.defines conftest.undefs
13633# Using a here document instead of a string reduces the quoting nightmare.
13634# Putting comments in sed scripts is not portable.
13635#
13636# `end' is used to avoid that the second main sed command (meant for
13637# 0-ary CPP macros) applies to n-ary macro definitions.
13638# See the Autoconf documentation for `clear'.
13639cat >confdef2sed.sed <<\_ACEOF
13640s/[\\&,]/\\&/g
13641s,[\\$`],\\&,g
13642t clear
13643: clear
13644s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13645t end
13646s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13647: end
13648_ACEOF
13649# If some macros were called several times there might be several times
13650# the same #defines, which is useless. Nevertheless, we may not want to
13651# sort them, since we want the *last* AC-DEFINE to be honored.
13652uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13653sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13654rm -f confdef2sed.sed
252b5132
RH
13655
13656# This sed command replaces #undef with comments. This is necessary, for
13657# example, in the case of _POSIX_SOURCE, which is predefined and required
13658# on some systems where configure will not decide to define it.
5464f5a1
NN
13659cat >>conftest.undefs <<\_ACEOF
13660s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13661_ACEOF
13662
13663# Break up conftest.defines because some shells have a limit on the size
13664# of here documents, and old seds have small limits too (100 cmds).
13665echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13666echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13667echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13668echo ' :' >>$CONFIG_STATUS
13669rm -f conftest.tail
13670while grep . conftest.defines >/dev/null
13671do
13672 # Write a limited-size here document to $tmp/defines.sed.
13673 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13674 # Speed up: don't consider the non `#define' lines.
13675 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13676 # Work around the forget-to-reset-the-flag bug.
13677 echo 't clr' >>$CONFIG_STATUS
13678 echo ': clr' >>$CONFIG_STATUS
13679 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13680 echo 'CEOF
13681 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13682 rm -f $tmp/in
13683 mv $tmp/out $tmp/in
13684' >>$CONFIG_STATUS
13685 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13686 rm -f conftest.defines
13687 mv conftest.tail conftest.defines
13688done
13689rm -f conftest.defines
13690echo ' fi # grep' >>$CONFIG_STATUS
13691echo >>$CONFIG_STATUS
252b5132 13692
5464f5a1
NN
13693# Break up conftest.undefs because some shells have a limit on the size
13694# of here documents, and old seds have small limits too (100 cmds).
13695echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13696rm -f conftest.tail
5464f5a1 13697while grep . conftest.undefs >/dev/null
252b5132 13698do
5464f5a1
NN
13699 # Write a limited-size here document to $tmp/undefs.sed.
13700 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13701 # Speed up: don't consider the non `#undef'
13702 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13703 # Work around the forget-to-reset-the-flag bug.
13704 echo 't clr' >>$CONFIG_STATUS
13705 echo ': clr' >>$CONFIG_STATUS
13706 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13707 echo 'CEOF
5464f5a1
NN
13708 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13709 rm -f $tmp/in
13710 mv $tmp/out $tmp/in
13711' >>$CONFIG_STATUS
13712 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13713 rm -f conftest.undefs
13714 mv conftest.tail conftest.undefs
252b5132 13715done
5464f5a1
NN
13716rm -f conftest.undefs
13717
13718cat >>$CONFIG_STATUS <<\_ACEOF
13719 # Let's still pretend it is `configure' which instantiates (i.e., don't
13720 # use $as_me), people would be surprised to read:
13721 # /* config.h. Generated by config.status. */
13722 if test x"$ac_file" = x-; then
13723 echo "/* Generated by configure. */" >$tmp/config.h
13724 else
13725 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13726 fi
13727 cat $tmp/in >>$tmp/config.h
13728 rm -f $tmp/in
13729 if test x"$ac_file" != x-; then
13730 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13732echo "$as_me: $ac_file is unchanged" >&6;}
13733 else
13734 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13735$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13736 X"$ac_file" : 'X\(//\)[^/]' \| \
13737 X"$ac_file" : 'X\(//\)$' \| \
13738 X"$ac_file" : 'X\(/\)' \| \
13739 . : '\(.\)' 2>/dev/null ||
13740echo X"$ac_file" |
13741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13743 /^X\(\/\/\)$/{ s//\1/; q; }
13744 /^X\(\/\).*/{ s//\1/; q; }
13745 s/.*/./; q'`
13746 { if $as_mkdir_p; then
13747 mkdir -p "$ac_dir"
252b5132 13748 else
5464f5a1
NN
13749 as_dir="$ac_dir"
13750 as_dirs=
13751 while test ! -d "$as_dir"; do
13752 as_dirs="$as_dir $as_dirs"
13753 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13754$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13755 X"$as_dir" : 'X\(//\)[^/]' \| \
13756 X"$as_dir" : 'X\(//\)$' \| \
13757 X"$as_dir" : 'X\(/\)' \| \
13758 . : '\(.\)' 2>/dev/null ||
13759echo X"$as_dir" |
13760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13762 /^X\(\/\/\)$/{ s//\1/; q; }
13763 /^X\(\/\).*/{ s//\1/; q; }
13764 s/.*/./; q'`
13765 done
13766 test ! -n "$as_dirs" || mkdir $as_dirs
13767 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13768echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13769 { (exit 1); exit 1; }; }; }
13770
13771 rm -f $ac_file
13772 mv $tmp/config.h $ac_file
252b5132 13773 fi
5464f5a1
NN
13774 else
13775 cat $tmp/config.h
13776 rm -f $tmp/config.h
252b5132 13777 fi
f5385ebf
AM
13778# Compute $ac_file's index in $config_headers.
13779_am_stamp_count=1
13780for _am_header in $config_headers :; do
13781 case $_am_header in
13782 $ac_file | $ac_file:* )
13783 break ;;
13784 * )
13785 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13786 esac
13787done
13788echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13789$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13790 X$ac_file : 'X\(//\)[^/]' \| \
13791 X$ac_file : 'X\(//\)$' \| \
13792 X$ac_file : 'X\(/\)' \| \
13793 . : '\(.\)' 2>/dev/null ||
13794echo X$ac_file |
13795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13797 /^X\(\/\/\)$/{ s//\1/; q; }
13798 /^X\(\/\).*/{ s//\1/; q; }
13799 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
13800done
13801_ACEOF
13802cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13803
5464f5a1
NN
13804#
13805# CONFIG_COMMANDS section.
13806#
13807for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13808 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13809 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13810 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13811$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13812 X"$ac_dest" : 'X\(//\)[^/]' \| \
13813 X"$ac_dest" : 'X\(//\)$' \| \
13814 X"$ac_dest" : 'X\(/\)' \| \
13815 . : '\(.\)' 2>/dev/null ||
13816echo X"$ac_dest" |
13817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13819 /^X\(\/\/\)$/{ s//\1/; q; }
13820 /^X\(\/\).*/{ s//\1/; q; }
13821 s/.*/./; q'`
13822 { if $as_mkdir_p; then
13823 mkdir -p "$ac_dir"
13824 else
13825 as_dir="$ac_dir"
13826 as_dirs=
13827 while test ! -d "$as_dir"; do
13828 as_dirs="$as_dir $as_dirs"
13829 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13830$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13831 X"$as_dir" : 'X\(//\)[^/]' \| \
13832 X"$as_dir" : 'X\(//\)$' \| \
13833 X"$as_dir" : 'X\(/\)' \| \
13834 . : '\(.\)' 2>/dev/null ||
13835echo X"$as_dir" |
13836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13838 /^X\(\/\/\)$/{ s//\1/; q; }
13839 /^X\(\/\).*/{ s//\1/; q; }
13840 s/.*/./; q'`
13841 done
13842 test ! -n "$as_dirs" || mkdir $as_dirs
13843 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13844echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13845 { (exit 1); exit 1; }; }; }
b3baf5d0 13846
5464f5a1 13847 ac_builddir=.
b3baf5d0 13848
5464f5a1
NN
13849if test "$ac_dir" != .; then
13850 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13851 # A "../" for each directory in $ac_dir_suffix.
13852 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13853else
13854 ac_dir_suffix= ac_top_builddir=
13855fi
13856
13857case $srcdir in
13858 .) # No --srcdir option. We are building in place.
13859 ac_srcdir=.
13860 if test -z "$ac_top_builddir"; then
13861 ac_top_srcdir=.
13862 else
13863 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13864 fi ;;
13865 [\\/]* | ?:[\\/]* ) # Absolute path.
13866 ac_srcdir=$srcdir$ac_dir_suffix;
13867 ac_top_srcdir=$srcdir ;;
13868 *) # Relative path.
13869 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13870 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13871esac
13872
13873# Do not use `cd foo && pwd` to compute absolute paths, because
13874# the directories may not exist.
13875case `pwd` in
13876.) ac_abs_builddir="$ac_dir";;
13877*)
13878 case "$ac_dir" in
13879 .) ac_abs_builddir=`pwd`;;
13880 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13881 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13882 esac;;
13883esac
13884case $ac_abs_builddir in
13885.) ac_abs_top_builddir=${ac_top_builddir}.;;
13886*)
13887 case ${ac_top_builddir}. in
13888 .) ac_abs_top_builddir=$ac_abs_builddir;;
13889 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13890 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13891 esac;;
13892esac
13893case $ac_abs_builddir in
13894.) ac_abs_srcdir=$ac_srcdir;;
13895*)
13896 case $ac_srcdir in
13897 .) ac_abs_srcdir=$ac_abs_builddir;;
13898 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13899 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13900 esac;;
13901esac
13902case $ac_abs_builddir in
13903.) ac_abs_top_srcdir=$ac_top_srcdir;;
13904*)
13905 case $ac_top_srcdir in
13906 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13907 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13908 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13909 esac;;
13910esac
13911
13912
13913 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13914echo "$as_me: executing $ac_dest commands" >&6;}
13915 case $ac_dest in
f5385ebf
AM
13916 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13917 # Strip MF so we end up with the name of the file.
13918 mf=`echo "$mf" | sed -e 's/:.*$//'`
13919 # Check whether this is an Automake generated Makefile or not.
13920 # We used to match only the files named `Makefile.in', but
13921 # some people rename them; so instead we look at the file content.
13922 # Grep'ing the first line is not enough: some people post-process
13923 # each Makefile.in and add a new line on top of each file to say so.
13924 # So let's grep whole file.
13925 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13926 dirpart=`(dirname "$mf") 2>/dev/null ||
13927$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13928 X"$mf" : 'X\(//\)[^/]' \| \
13929 X"$mf" : 'X\(//\)$' \| \
13930 X"$mf" : 'X\(/\)' \| \
13931 . : '\(.\)' 2>/dev/null ||
13932echo X"$mf" |
13933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13935 /^X\(\/\/\)$/{ s//\1/; q; }
13936 /^X\(\/\).*/{ s//\1/; q; }
13937 s/.*/./; q'`
13938 else
13939 continue
13940 fi
13941 # Extract the definition of DEPDIR, am__include, and am__quote
13942 # from the Makefile without running `make'.
13943 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13944 test -z "$DEPDIR" && continue
13945 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13946 test -z "am__include" && continue
13947 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13948 # When using ansi2knr, U may be empty or an underscore; expand it
13949 U=`sed -n 's/^U = //p' < "$mf"`
13950 # Find all dependency output files, they are included files with
13951 # $(DEPDIR) in their names. We invoke sed twice because it is the
13952 # simplest approach to changing $(DEPDIR) to its actual value in the
13953 # expansion.
13954 for file in `sed -n "
13955 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13956 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13957 # Make sure the directory exists.
13958 test -f "$dirpart/$file" && continue
13959 fdir=`(dirname "$file") 2>/dev/null ||
13960$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13961 X"$file" : 'X\(//\)[^/]' \| \
13962 X"$file" : 'X\(//\)$' \| \
13963 X"$file" : 'X\(/\)' \| \
13964 . : '\(.\)' 2>/dev/null ||
13965echo X"$file" |
13966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13968 /^X\(\/\/\)$/{ s//\1/; q; }
13969 /^X\(\/\).*/{ s//\1/; q; }
13970 s/.*/./; q'`
13971 { if $as_mkdir_p; then
13972 mkdir -p $dirpart/$fdir
13973 else
13974 as_dir=$dirpart/$fdir
13975 as_dirs=
13976 while test ! -d "$as_dir"; do
13977 as_dirs="$as_dir $as_dirs"
13978 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13979$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13980 X"$as_dir" : 'X\(//\)[^/]' \| \
13981 X"$as_dir" : 'X\(//\)$' \| \
13982 X"$as_dir" : 'X\(/\)' \| \
13983 . : '\(.\)' 2>/dev/null ||
13984echo X"$as_dir" |
13985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13987 /^X\(\/\/\)$/{ s//\1/; q; }
13988 /^X\(\/\).*/{ s//\1/; q; }
13989 s/.*/./; q'`
13990 done
13991 test ! -n "$as_dirs" || mkdir $as_dirs
13992 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13993echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13994 { (exit 1); exit 1; }; }; }
13995
13996 # echo "creating $dirpart/$file"
13997 echo '# dummy' > "$dirpart/$file"
13998 done
13999done
14000 ;;
5464f5a1
NN
14001 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
14002 esac
14003done
14004_ACEOF
14005
14006cat >>$CONFIG_STATUS <<\_ACEOF
14007
14008{ (exit 0); exit 0; }
14009_ACEOF
252b5132 14010chmod +x $CONFIG_STATUS
5464f5a1
NN
14011ac_clean_files=$ac_clean_files_save
14012
14013
14014# configure is writing to config.log, and then calls config.status.
14015# config.status does its own redirection, appending to config.log.
14016# Unfortunately, on DOS this fails, as config.log is still kept open
14017# by configure, so config.status won't be able to write to it; its
14018# output is simply discarded. So we exec the FD to /dev/null,
14019# effectively closing config.log, so it can be properly (re)opened and
14020# appended to by config.status. When coming back to configure, we
14021# need to make the FD available again.
14022if test "$no_create" != yes; then
14023 ac_cs_success=:
14024 ac_config_status_args=
14025 test "$silent" = yes &&
14026 ac_config_status_args="$ac_config_status_args --quiet"
14027 exec 5>/dev/null
14028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14029 exec 5>>config.log
14030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14031 # would make configure fail if this is the last instruction.
14032 $ac_cs_success || { (exit 1); exit 1; }
14033fi
252b5132 14034
55c80943 14035
This page took 1.122468 seconds and 4 git commands to generate.