]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/configure
2005-05-05 Paul Brook <paul@codesourcery.com>
[thirdparty/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
5464f5a1 3# Generated by GNU Autoconf 2.59.
252b5132 4#
5464f5a1 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
5464f5a1
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 248
5464f5a1
NN
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
5464f5a1
NN
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="libbfd.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
9e9b66a9 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS'
5464f5a1 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
5464f5a1
NN
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
5464f5a1 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
5464f5a1
NN
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
5464f5a1 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
5464f5a1 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
5464f5a1 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 377 build_alias=$ac_optarg ;;
252b5132
RH
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
5464f5a1 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
5464f5a1 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
5464f5a1
NN
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
5464f5a1 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
5464f5a1
NN
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
5464f5a1 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
5464f5a1 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
5464f5a1
NN
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
5464f5a1 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 440 host_alias=$ac_optarg ;;
252b5132
RH
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 457 libdir=$ac_optarg ;;
252b5132
RH
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
5464f5a1 464 libexecdir=$ac_optarg ;;
252b5132
RH
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5464f5a1 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 478 mandir=$ac_optarg ;;
252b5132
RH
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 485 | --no-cr | --no-c | -n)
252b5132
RH
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 504 prefix=$ac_optarg ;;
252b5132
RH
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 511 program_prefix=$ac_optarg ;;
252b5132
RH
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 518 program_suffix=$ac_optarg ;;
252b5132
RH
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 535 program_transform_name=$ac_optarg ;;
252b5132
RH
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
5464f5a1 545 sbindir=$ac_optarg ;;
252b5132
RH
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
5464f5a1 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
5464f5a1 561 site=$ac_optarg ;;
6be7c12c 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 566 srcdir=$ac_optarg ;;
252b5132
RH
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
5464f5a1
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
5464f5a1 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
5464f5a1
NN
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
5464f5a1 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
5464f5a1 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
5464f5a1
NN
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
252b5132
RH
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 617 x_includes=$ac_optarg ;;
252b5132
RH
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 624 x_libraries=$ac_optarg ;;
252b5132 625
5464f5a1
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
5464f5a1
NN
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
252b5132 641 *)
5464f5a1
NN
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
5464f5a1
NN
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
252b5132 656fi
252b5132 657
5464f5a1
NN
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
6be7c12c 668
5464f5a1
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
5464f5a1
NN
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
252b5132
RH
678 esac
679done
680
5464f5a1
NN
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
252b5132 698
5464f5a1
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
5464f5a1
NN
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
252b5132
RH
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
5464f5a1
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
5464f5a1
NN
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
b3baf5d0 773
5464f5a1
NN
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
252b5132 782
5464f5a1 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
5464f5a1
NN
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 787
5464f5a1 788Defaults for the options are specified in brackets.
6be7c12c 789
5464f5a1
NN
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
6be7c12c 809
5464f5a1
NN
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
6be7c12c 814
5464f5a1 815For better control, use the options below.
6be7c12c 816
5464f5a1
NN
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
6be7c12c 831
5464f5a1 832 cat <<\_ACEOF
6be7c12c 833
5464f5a1
NN
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 838
5464f5a1
NN
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
252b5132 844fi
252b5132 845
5464f5a1 846if test -n "$ac_init_help"; then
6be7c12c 847
5464f5a1 848 cat <<\_ACEOF
252b5132 849
5464f5a1
NN
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
5464f5a1
NN
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
569acd2c 862 --enable-werror treat compile warnings as errors
9e9b66a9 863 --enable-build-warnings Enable build-time compiler warnings
f5385ebf
AM
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
5464f5a1
NN
866 --enable-install-libbfd controls installation of libbfd and related headers
867 --disable-nls do not use Native Language Support
868
869Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
872 --with-gnu-ld assume the C compiler uses GNU ld default=no
873 --with-pic try to use only PIC/non-PIC objects default=use both
874 --with-mmap try using mmap for BFD input files if available
875 --with-included-gettext use the GNU gettext library included here
876
877Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CPP C preprocessor
885
886Use these variables to override the choices made by `configure' or to help
887it to find libraries and programs with nonstandard names/locations.
888
889_ACEOF
890fi
891
892if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
894 ac_popdir=`pwd`
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
897 ac_builddir=.
898
899if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903else
904 ac_dir_suffix= ac_top_builddir=
905fi
906
907case $srcdir in
908 .) # No --srcdir option. We are building in place.
909 ac_srcdir=.
910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
921esac
922
5464f5a1
NN
923# Do not use `cd foo && pwd` to compute absolute paths, because
924# the directories may not exist.
925case `pwd` in
926.) ac_abs_builddir="$ac_dir";;
927*)
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933esac
934case $ac_abs_builddir in
935.) ac_abs_top_builddir=${ac_top_builddir}.;;
936*)
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_srcdir=$ac_srcdir;;
945*)
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_srcdir=$ac_top_srcdir;;
954*)
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960esac
6be7c12c 961
5464f5a1
NN
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
974 else
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 fi
8fb84ecc 977 cd $ac_popdir
5464f5a1 978 done
6be7c12c
AO
979fi
980
5464f5a1
NN
981test -n "$ac_init_help" && exit 0
982if $ac_init_version; then
983 cat <<\_ACEOF
6be7c12c 984
5464f5a1
NN
985Copyright (C) 2003 Free Software Foundation, Inc.
986This configure script is free software; the Free Software Foundation
987gives unlimited permission to copy, distribute and modify it.
988_ACEOF
989 exit 0
990fi
991exec 5>config.log
992cat >&5 <<_ACEOF
993This file contains any messages produced by compilers while
994running configure, to aid debugging if configure makes a mistake.
6be7c12c 995
5464f5a1
NN
996It was created by $as_me, which was
997generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 998
5464f5a1 999 $ $0 $@
6be7c12c 1000
5464f5a1
NN
1001_ACEOF
1002{
1003cat <<_ASUNAME
1004## --------- ##
1005## Platform. ##
1006## --------- ##
1007
1008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016
1017/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024
1025_ASUNAME
1026
1027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028for as_dir in $PATH
1029do
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033done
6be7c12c 1034
5464f5a1 1035} >&5
66e25bab 1036
5464f5a1 1037cat >&5 <<_ACEOF
b3baf5d0 1038
6be7c12c 1039
5464f5a1
NN
1040## ----------- ##
1041## Core tests. ##
1042## ----------- ##
252b5132 1043
5464f5a1 1044_ACEOF
c5d1701e 1045
6be7c12c 1046
5464f5a1
NN
1047# Keep a trace of the command line.
1048# Strip out --no-create and --no-recursion so they do not pile up.
1049# Strip out --silent because we don't want to record it for future runs.
1050# Also quote any args containing shell meta-characters.
1051# Make two passes to allow for proper duplicate-argument suppression.
1052ac_configure_args=
1053ac_configure_args0=
1054ac_configure_args1=
1055ac_sep=
1056ac_must_keep_next=false
1057for ac_pass in 1 2
1058do
1059 for ac_arg
1060 do
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 2)
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1084 ;;
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1087 fi
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1091 ;;
1092 esac
1093 done
1094done
1095$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098# When interrupted or exit'd, cleanup temporary files, and complete
1099# config.log. We remove comments because anyway the quotes in there
1100# would cause problems or look ugly.
1101# WARNING: Be sure not to use single quotes in there, as some shells,
1102# such as our DU 5.0 friend, will then `close' the trap.
1103trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1105 {
1106 echo
1107
1108 cat <<\_ASBOX
1109## ---------------- ##
1110## Cache variables. ##
1111## ---------------- ##
1112_ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1115{
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 ;;
1123 *)
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 ;;
1127 esac;
1128}
1129 echo
1130
1131 cat <<\_ASBOX
1132## ----------------- ##
1133## Output variables. ##
1134## ----------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146## ------------- ##
1147## Output files. ##
1148## ------------- ##
1149_ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157 fi
1158
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161## ----------- ##
1162## confdefs.h. ##
1163## ----------- ##
1164_ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1168 fi
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1176 ' 0
1177for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179done
1180ac_signal=0
1181
1182# confdefs.h avoids OS command line length limits that DEFS can exceed.
1183rm -rf conftest* confdefs.h
1184# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185echo >confdefs.h
1186
1187# Predefined preprocessor variables.
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_NAME "$PACKAGE_NAME"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_VERSION "$PACKAGE_VERSION"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_STRING "$PACKAGE_STRING"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211_ACEOF
1212
1213
1214# Let the site file select an alternate cache file if it wants to.
1215# Prefer explicitly selected file to automatically selected ones.
1216if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 fi
1222fi
1223for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1229 fi
1230done
1231
1232if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1242 fi
1243else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1247fi
1248
1249# Check that the precious variables saved in the cache have kept the same
1250# value.
1251ac_cache_corrupted=false
1252for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1268 *)
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1290 fi
1291done
1292if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1298fi
1299
1300ac_ext=c
1301ac_cpp='$CPP $CPPFLAGS'
1302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326ac_aux_dir=
1327for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1328 if test -f $ac_dir/install-sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install-sh -c"
1331 break
1332 elif test -f $ac_dir/install.sh; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/install.sh -c"
1335 break
1336 elif test -f $ac_dir/shtool; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/shtool install -c"
1339 break
1340 fi
1341done
1342if test -z "$ac_aux_dir"; then
1343 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1344echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1345 { (exit 1); exit 1; }; }
1346fi
1347ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1348ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1349ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350
1351# Make sure we can run config.sub.
1352$ac_config_sub sun4 >/dev/null 2>&1 ||
1353 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355 { (exit 1); exit 1; }; }
1356
1357echo "$as_me:$LINENO: checking build system type" >&5
1358echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359if test "${ac_cv_build+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361else
1362 ac_cv_build_alias=$build_alias
1363test -z "$ac_cv_build_alias" &&
1364 ac_cv_build_alias=`$ac_config_guess`
1365test -z "$ac_cv_build_alias" &&
1366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368 { (exit 1); exit 1; }; }
1369ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372 { (exit 1); exit 1; }; }
1373
1374fi
1375echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376echo "${ECHO_T}$ac_cv_build" >&6
1377build=$ac_cv_build
1378build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
1382
1383echo "$as_me:$LINENO: checking host system type" >&5
1384echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385if test "${ac_cv_host+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1387else
1388 ac_cv_host_alias=$host_alias
1389test -z "$ac_cv_host_alias" &&
1390 ac_cv_host_alias=$ac_cv_build_alias
1391ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1395
1396fi
1397echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398echo "${ECHO_T}$ac_cv_host" >&6
1399host=$ac_cv_host
1400host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405echo "$as_me:$LINENO: checking target system type" >&5
1406echo $ECHO_N "checking target system type... $ECHO_C" >&6
1407if test "${ac_cv_target+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410 ac_cv_target_alias=$target_alias
1411test "x$ac_cv_target_alias" = "x" &&
1412 ac_cv_target_alias=$ac_cv_host_alias
1413ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1415echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1417
1418fi
1419echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1420echo "${ECHO_T}$ac_cv_target" >&6
1421target=$ac_cv_target
1422target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427# The aliases save the names the user supplied, while $host etc.
1428# will get canonicalized.
1429test -n "$target_alias" &&
1430 test "$program_prefix$program_suffix$program_transform_name" = \
1431 NONENONEs,x,x, &&
1432 program_prefix=${target_alias}-
1433ac_ext=c
1434ac_cpp='$CPP $CPPFLAGS'
1435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437ac_compiler_gnu=$ac_cv_c_compiler_gnu
1438if test -n "$ac_tool_prefix"; then
1439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1440set dummy ${ac_tool_prefix}gcc; ac_word=$2
1441echo "$as_me:$LINENO: checking for $ac_word" >&5
1442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443if test "${ac_cv_prog_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445else
1446 if test -n "$CC"; then
1447 ac_cv_prog_CC="$CC" # Let the user override the test.
1448else
1449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450for as_dir in $PATH
1451do
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1459 fi
1460done
1461done
1462
1463fi
1464fi
1465CC=$ac_cv_prog_CC
1466if test -n "$CC"; then
1467 echo "$as_me:$LINENO: result: $CC" >&5
1468echo "${ECHO_T}$CC" >&6
1469else
1470 echo "$as_me:$LINENO: result: no" >&5
1471echo "${ECHO_T}no" >&6
1472fi
1473
1474fi
1475if test -z "$ac_cv_prog_CC"; then
1476 ac_ct_CC=$CC
1477 # Extract the first word of "gcc", so it can be a program name with args.
1478set dummy gcc; ac_word=$2
1479echo "$as_me:$LINENO: checking for $ac_word" >&5
1480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483else
1484 if test -n "$ac_ct_CC"; then
1485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1486else
1487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488for as_dir in $PATH
1489do
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_ac_ct_CC="gcc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1497 fi
1498done
1499done
1500
1501fi
1502fi
1503ac_ct_CC=$ac_cv_prog_ac_ct_CC
1504if test -n "$ac_ct_CC"; then
1505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1506echo "${ECHO_T}$ac_ct_CC" >&6
1507else
1508 echo "$as_me:$LINENO: result: no" >&5
1509echo "${ECHO_T}no" >&6
1510fi
1511
1512 CC=$ac_ct_CC
1513else
1514 CC="$ac_cv_prog_CC"
1515fi
1516
1517if test -z "$CC"; then
1518 if test -n "$ac_tool_prefix"; then
1519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1520set dummy ${ac_tool_prefix}cc; ac_word=$2
1521echo "$as_me:$LINENO: checking for $ac_word" >&5
1522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523if test "${ac_cv_prog_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526 if test -n "$CC"; then
1527 ac_cv_prog_CC="$CC" # Let the user override the test.
1528else
1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530for as_dir in $PATH
1531do
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_CC="${ac_tool_prefix}cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1539 fi
1540done
1541done
1542
1543fi
1544fi
1545CC=$ac_cv_prog_CC
1546if test -n "$CC"; then
1547 echo "$as_me:$LINENO: result: $CC" >&5
1548echo "${ECHO_T}$CC" >&6
1549else
1550 echo "$as_me:$LINENO: result: no" >&5
1551echo "${ECHO_T}no" >&6
1552fi
1553
1554fi
1555if test -z "$ac_cv_prog_CC"; then
1556 ac_ct_CC=$CC
1557 # Extract the first word of "cc", so it can be a program name with args.
1558set dummy cc; ac_word=$2
1559echo "$as_me:$LINENO: checking for $ac_word" >&5
1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 if test -n "$ac_ct_CC"; then
1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566else
1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568for as_dir in $PATH
1569do
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_ac_ct_CC="cc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1577 fi
1578done
1579done
1580
1581fi
1582fi
1583ac_ct_CC=$ac_cv_prog_ac_ct_CC
1584if test -n "$ac_ct_CC"; then
1585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1586echo "${ECHO_T}$ac_ct_CC" >&6
1587else
1588 echo "$as_me:$LINENO: result: no" >&5
1589echo "${ECHO_T}no" >&6
1590fi
1591
1592 CC=$ac_ct_CC
1593else
1594 CC="$ac_cv_prog_CC"
1595fi
1596
1597fi
1598if test -z "$CC"; then
1599 # Extract the first word of "cc", so it can be a program name with args.
1600set dummy cc; ac_word=$2
1601echo "$as_me:$LINENO: checking for $ac_word" >&5
1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608else
1609 ac_prog_rejected=no
1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1618 ac_prog_rejected=yes
1619 continue
1620 fi
1621 ac_cv_prog_CC="cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625done
1626done
1627
1628if test $ac_prog_rejected = yes; then
1629 # We found a bogon in the path, so make sure we never use it.
1630 set dummy $ac_cv_prog_CC
1631 shift
1632 if test $# != 0; then
1633 # We chose a different compiler from the bogus one.
1634 # However, it has the same basename, so the bogon will be chosen
1635 # first if we set CC to just the basename; use the full file name.
1636 shift
1637 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1638 fi
1639fi
1640fi
1641fi
1642CC=$ac_cv_prog_CC
1643if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645echo "${ECHO_T}$CC" >&6
1646else
1647 echo "$as_me:$LINENO: result: no" >&5
1648echo "${ECHO_T}no" >&6
1649fi
1650
1651fi
1652if test -z "$CC"; then
1653 if test -n "$ac_tool_prefix"; then
1654 for ac_prog in cl
1655 do
1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658echo "$as_me:$LINENO: checking for $ac_word" >&5
1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1665else
1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667for as_dir in $PATH
1668do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 break 2
1676 fi
1677done
1678done
1679
1680fi
1681fi
1682CC=$ac_cv_prog_CC
1683if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685echo "${ECHO_T}$CC" >&6
1686else
1687 echo "$as_me:$LINENO: result: no" >&5
1688echo "${ECHO_T}no" >&6
1689fi
1690
1691 test -n "$CC" && break
1692 done
1693fi
1694if test -z "$CC"; then
1695 ac_ct_CC=$CC
1696 for ac_prog in cl
1697do
1698 # Extract the first word of "$ac_prog", so it can be a program name with args.
1699set dummy $ac_prog; ac_word=$2
1700echo "$as_me:$LINENO: checking for $ac_word" >&5
1701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1707else
1708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709for as_dir in $PATH
1710do
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="$ac_prog"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 break 2
1718 fi
1719done
1720done
1721
1722fi
1723fi
1724ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727echo "${ECHO_T}$ac_ct_CC" >&6
1728else
1729 echo "$as_me:$LINENO: result: no" >&5
1730echo "${ECHO_T}no" >&6
1731fi
1732
1733 test -n "$ac_ct_CC" && break
1734done
1735
1736 CC=$ac_ct_CC
1737fi
1738
1739fi
1740
1741
1742test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1743See \`config.log' for more details." >&5
1744echo "$as_me: error: no acceptable C compiler found in \$PATH
1745See \`config.log' for more details." >&2;}
1746 { (exit 1); exit 1; }; }
1747
1748# Provide some information about the compiler.
1749echo "$as_me:$LINENO:" \
1750 "checking for C compiler version" >&5
1751ac_compiler=`set X $ac_compile; echo $2`
1752{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 ac_status=$?
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }
1767
1768cat >conftest.$ac_ext <<_ACEOF
1769/* confdefs.h. */
1770_ACEOF
1771cat confdefs.h >>conftest.$ac_ext
1772cat >>conftest.$ac_ext <<_ACEOF
1773/* end confdefs.h. */
1774
1775int
1776main ()
1777{
1778
1779 ;
1780 return 0;
1781}
1782_ACEOF
1783ac_clean_files_save=$ac_clean_files
1784ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785# Try to create an executable without -o first, disregard a.out.
1786# It will help us diagnose broken compilers, and finding out an intuition
1787# of exeext.
1788echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1789echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1790ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798# resort.
1799
1800# Be careful to initialize this variable, since it used to be cached.
1801# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802ac_cv_exeext=
1803# b.out is created by i960 compilers.
1804for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1805do
1806 test -f "$ac_file" || continue
1807 case $ac_file in
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 ;;
1810 conftest.$ac_ext )
1811 # This is the source file.
1812 ;;
1813 [ab].out )
1814 # We found the default executable, but exeext='' is most
1815 # certainly right.
1816 break;;
1817 *.* )
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1822 export ac_cv_exeext
1823 break;;
1824 * )
1825 break;;
1826 esac
1827done
1828else
1829 echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1833See \`config.log' for more details." >&5
1834echo "$as_me: error: C compiler cannot create executables
1835See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1837fi
1838
1839ac_exeext=$ac_cv_exeext
1840echo "$as_me:$LINENO: result: $ac_file" >&5
1841echo "${ECHO_T}$ac_file" >&6
1842
1843# Check the compiler produces executables we can run. If not, either
1844# the compiler is broken, or we cross compile.
1845echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1846echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1847# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848# If not cross compiling, check that we can run a simple program.
1849if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 (eval $ac_try) 2>&5
1853 ac_status=$?
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1856 cross_compiling=no
1857 else
1858 if test "$cross_compiling" = maybe; then
1859 cross_compiling=yes
1860 else
1861 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1862If you meant to cross compile, use \`--host'.
1863See \`config.log' for more details." >&5
1864echo "$as_me: error: cannot run C compiled programs.
1865If you meant to cross compile, use \`--host'.
1866See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1868 fi
1869 fi
1870fi
1871echo "$as_me:$LINENO: result: yes" >&5
1872echo "${ECHO_T}yes" >&6
1873
1874rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875ac_clean_files=$ac_clean_files_save
1876# Check the compiler produces executables we can run. If not, either
1877# the compiler is broken, or we cross compile.
1878echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881echo "${ECHO_T}$cross_compiling" >&6
1882
1883echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892# work properly (i.e., refer to `conftest.exe'), while it won't with
1893# `rm'.
1894for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
1896 case $ac_file in
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 export ac_cv_exeext
1900 break;;
1901 * ) break;;
1902 esac
1903done
1904else
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906See \`config.log' for more details." >&5
1907echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1910fi
1911
1912rm -f conftest$ac_cv_exeext
1913echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914echo "${ECHO_T}$ac_cv_exeext" >&6
1915
1916rm -f conftest.$ac_ext
1917EXEEXT=$ac_cv_exeext
1918ac_exeext=$EXEEXT
1919echo "$as_me:$LINENO: checking for suffix of object files" >&5
1920echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1921if test "${ac_cv_objext+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 cat >conftest.$ac_ext <<_ACEOF
1925/* confdefs.h. */
1926_ACEOF
1927cat confdefs.h >>conftest.$ac_ext
1928cat >>conftest.$ac_ext <<_ACEOF
1929/* end confdefs.h. */
1930
1931int
1932main ()
1933{
1934
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939rm -f conftest.o conftest.obj
1940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1946 case $ac_file in
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949 break;;
1950 esac
1951done
1952else
1953 echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
1956{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1957See \`config.log' for more details." >&5
1958echo "$as_me: error: cannot compute suffix of object files: cannot compile
1959See \`config.log' for more details." >&2;}
1960 { (exit 1); exit 1; }; }
1961fi
1962
1963rm -f conftest.$ac_cv_objext conftest.$ac_ext
1964fi
1965echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1966echo "${ECHO_T}$ac_cv_objext" >&6
1967OBJEXT=$ac_cv_objext
1968ac_objext=$OBJEXT
1969echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1970echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1971if test "${ac_cv_c_compiler_gnu+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973else
1974 cat >conftest.$ac_ext <<_ACEOF
1975/* confdefs.h. */
1976_ACEOF
1977cat confdefs.h >>conftest.$ac_ext
1978cat >>conftest.$ac_ext <<_ACEOF
1979/* end confdefs.h. */
1980
1981int
1982main ()
1983{
1984#ifndef __GNUC__
1985 choke me
1986#endif
1987
1988 ;
1989 return 0;
1990}
1991_ACEOF
1992rm -f conftest.$ac_objext
1993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>conftest.er1
1995 ac_status=$?
1996 grep -v '^ *+' conftest.er1 >conftest.err
1997 rm -f conftest.er1
1998 cat conftest.err >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); } &&
8fb84ecc
AC
2001 { ac_try='test -z "$ac_c_werror_flag"
2002 || test ! -s conftest.err'
5464f5a1
NN
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 ac_compiler_gnu=yes
2015else
2016 echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
2018
2019ac_compiler_gnu=no
2020fi
2021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022ac_cv_c_compiler_gnu=$ac_compiler_gnu
2023
2024fi
2025echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2026echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2027GCC=`test $ac_compiler_gnu = yes && echo yes`
2028ac_test_CFLAGS=${CFLAGS+set}
2029ac_save_CFLAGS=$CFLAGS
2030CFLAGS="-g"
2031echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2032echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2033if test "${ac_cv_prog_cc_g+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035else
2036 cat >conftest.$ac_ext <<_ACEOF
2037/* confdefs.h. */
2038_ACEOF
2039cat confdefs.h >>conftest.$ac_ext
2040cat >>conftest.$ac_ext <<_ACEOF
2041/* end confdefs.h. */
2042
2043int
2044main ()
2045{
2046
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051rm -f conftest.$ac_objext
2052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>conftest.er1
2054 ac_status=$?
2055 grep -v '^ *+' conftest.er1 >conftest.err
2056 rm -f conftest.er1
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
8fb84ecc
AC
2060 { ac_try='test -z "$ac_c_werror_flag"
2061 || test ! -s conftest.err'
5464f5a1
NN
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 (eval $ac_try) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2073 ac_cv_prog_cc_g=yes
2074else
2075 echo "$as_me: failed program was:" >&5
2076sed 's/^/| /' conftest.$ac_ext >&5
2077
2078ac_cv_prog_cc_g=no
2079fi
2080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2081fi
2082echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2083echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2084if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS=$ac_save_CFLAGS
2086elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2088 CFLAGS="-g -O2"
2089 else
2090 CFLAGS="-g"
2091 fi
2092else
2093 if test "$GCC" = yes; then
2094 CFLAGS="-O2"
2095 else
2096 CFLAGS=
2097 fi
2098fi
2099echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2100echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2101if test "${ac_cv_prog_cc_stdc+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104 ac_cv_prog_cc_stdc=no
2105ac_save_CC=$CC
2106cat >conftest.$ac_ext <<_ACEOF
2107/* confdefs.h. */
2108_ACEOF
2109cat confdefs.h >>conftest.$ac_ext
2110cat >>conftest.$ac_ext <<_ACEOF
2111/* end confdefs.h. */
2112#include <stdarg.h>
2113#include <stdio.h>
2114#include <sys/types.h>
2115#include <sys/stat.h>
2116/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2117struct buf { int x; };
2118FILE * (*rcsopen) (struct buf *, struct stat *, int);
2119static char *e (p, i)
2120 char **p;
2121 int i;
2122{
2123 return p[i];
2124}
2125static char *f (char * (*g) (char **, int), char **p, ...)
2126{
2127 char *s;
2128 va_list v;
2129 va_start (v,p);
2130 s = g (p, va_arg (v,int));
2131 va_end (v);
2132 return s;
2133}
2134
2135/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2136 function prototypes and stuff, but not '\xHH' hex character constants.
2137 These don't provoke an error unfortunately, instead are silently treated
2138 as 'x'. The following induces an error, until -std1 is added to get
2139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2140 array size at least. It's necessary to write '\x00'==0 to get something
2141 that's true only with -std1. */
2142int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2143
2144int test (int i, double x);
2145struct s1 {int (*f) (int a);};
2146struct s2 {int (*f) (double a);};
2147int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2148int argc;
2149char **argv;
2150int
2151main ()
2152{
2153return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 ;
2155 return 0;
2156}
2157_ACEOF
2158# Don't try gcc -ansi; that turns off useful extensions and
2159# breaks some systems' header files.
2160# AIX -qlanglvl=ansi
2161# Ultrix and OSF/1 -std1
2162# HP-UX 10.20 and later -Ae
2163# HP-UX older versions -Aa -D_HPUX_SOURCE
2164# SVR4 -Xc -D__EXTENSIONS__
2165for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166do
2167 CC="$ac_save_CC $ac_arg"
2168 rm -f conftest.$ac_objext
2169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
8fb84ecc
AC
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
5464f5a1
NN
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2191break
2192else
2193 echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196fi
2197rm -f conftest.err conftest.$ac_objext
2198done
2199rm -f conftest.$ac_ext conftest.$ac_objext
2200CC=$ac_save_CC
2201
2202fi
2203
2204case "x$ac_cv_prog_cc_stdc" in
2205 x|xno)
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207echo "${ECHO_T}none needed" >&6 ;;
2208 *)
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2212esac
2213
2214# Some people use a C++ compiler to compile C. Since we use `exit',
2215# in C++ we need to declare it. In case someone uses the same compiler
2216# for both compiling C and C++ we need to have the C++ compiler decide
2217# the declaration of exit, since it's the most demanding environment.
2218cat >conftest.$ac_ext <<_ACEOF
2219#ifndef __cplusplus
2220 choke me
2221#endif
2222_ACEOF
2223rm -f conftest.$ac_objext
2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
8fb84ecc
AC
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
5464f5a1
NN
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 for ac_declaration in \
2246 '' \
2247 'extern "C" void std::exit (int) throw (); using std::exit;' \
2248 'extern "C" void std::exit (int); using std::exit;' \
2249 'extern "C" void exit (int) throw ();' \
2250 'extern "C" void exit (int);' \
2251 'void exit (int);'
2252do
2253 cat >conftest.$ac_ext <<_ACEOF
2254/* confdefs.h. */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h. */
2259$ac_declaration
2260#include <stdlib.h>
2261int
2262main ()
2263{
2264exit (42);
2265 ;
2266 return 0;
2267}
2268_ACEOF
2269rm -f conftest.$ac_objext
2270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2272 ac_status=$?
2273 grep -v '^ *+' conftest.er1 >conftest.err
2274 rm -f conftest.er1
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
8fb84ecc
AC
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
5464f5a1
NN
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 :
2292else
2293 echo "$as_me: failed program was:" >&5
2294sed 's/^/| /' conftest.$ac_ext >&5
2295
2296continue
2297fi
2298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 cat >conftest.$ac_ext <<_ACEOF
2300/* confdefs.h. */
2301_ACEOF
2302cat confdefs.h >>conftest.$ac_ext
2303cat >>conftest.$ac_ext <<_ACEOF
2304/* end confdefs.h. */
2305$ac_declaration
2306int
2307main ()
2308{
2309exit (42);
2310 ;
2311 return 0;
2312}
2313_ACEOF
2314rm -f conftest.$ac_objext
2315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>conftest.er1
2317 ac_status=$?
2318 grep -v '^ *+' conftest.er1 >conftest.err
2319 rm -f conftest.er1
2320 cat conftest.err >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
8fb84ecc
AC
2323 { ac_try='test -z "$ac_c_werror_flag"
2324 || test ! -s conftest.err'
5464f5a1
NN
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; } &&
2330 { ac_try='test -s conftest.$ac_objext'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2336 break
2337else
2338 echo "$as_me: failed program was:" >&5
2339sed 's/^/| /' conftest.$ac_ext >&5
2340
2341fi
2342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343done
2344rm -f conftest*
2345if test -n "$ac_declaration"; then
2346 echo '#ifdef __cplusplus' >>confdefs.h
2347 echo $ac_declaration >>confdefs.h
2348 echo '#endif' >>confdefs.h
2349fi
2350
2351else
2352 echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355fi
2356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357ac_ext=c
2358ac_cpp='$CPP $CPPFLAGS'
2359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
f5385ebf
AM
2364echo "$as_me:$LINENO: checking for library containing strerror" >&5
2365echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2366if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
f5385ebf
AM
2369 ac_func_search_save_LIBS=$LIBS
2370ac_cv_search_strerror=no
5464f5a1
NN
2371cat >conftest.$ac_ext <<_ACEOF
2372/* confdefs.h. */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h. */
2377
2378/* Override any gcc2 internal prototype to avoid an error. */
2379#ifdef __cplusplus
2380extern "C"
2381#endif
2382/* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2384char strerror ();
2385int
2386main ()
2387{
2388strerror ();
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext conftest$ac_exeext
2394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395 (eval $ac_link) 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
8fb84ecc
AC
2402 { ac_try='test -z "$ac_c_werror_flag"
2403 || test ! -s conftest.err'
5464f5a1
NN
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest$ac_exeext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
f5385ebf 2415 ac_cv_search_strerror="none required"
5464f5a1
NN
2416else
2417 echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
5464f5a1
NN
2420fi
2421rm -f conftest.err conftest.$ac_objext \
2422 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2423if test "$ac_cv_search_strerror" = no; then
2424 for ac_lib in cposix; do
2425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h. */
2432
2433/* Override any gcc2 internal prototype to avoid an error. */
2434#ifdef __cplusplus
2435extern "C"
2436#endif
2437/* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439char strerror ();
2440int
2441main ()
2442{
2443strerror ();
2444 ;
2445 return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext conftest$ac_exeext
2449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450 (eval $ac_link) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
8fb84ecc
AC
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
f5385ebf
AM
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest$ac_exeext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_search_strerror="-l$ac_lib"
2471break
2472else
2473 echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
5464f5a1 2476fi
f5385ebf
AM
2477rm -f conftest.err conftest.$ac_objext \
2478 conftest$ac_exeext conftest.$ac_ext
2479 done
5464f5a1 2480fi
f5385ebf
AM
2481LIBS=$ac_func_search_save_LIBS
2482fi
2483echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2484echo "${ECHO_T}$ac_cv_search_strerror" >&6
2485if test "$ac_cv_search_strerror" != no; then
2486 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2487
f5385ebf 2488fi
5464f5a1
NN
2489
2490
f5385ebf 2491am__api_version="1.9"
5464f5a1
NN
2492# Find a good install program. We prefer a C program (faster),
2493# so one script is as good as another. But avoid the broken or
2494# incompatible versions:
2495# SysV /etc/install, /usr/sbin/install
2496# SunOS /usr/etc/install
2497# IRIX /sbin/install
2498# AIX /bin/install
2499# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2500# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2503# OS/2's system install, which has a completely different semantic
252b5132 2504# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2505echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2506echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2507if test -z "$INSTALL"; then
5464f5a1
NN
2508if test "${ac_cv_path_install+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2510else
5464f5a1
NN
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 # Account for people who put trailing slashes in PATH elements.
2517case $as_dir/ in
2518 ./ | .// | /cC/* | \
2519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2521 /usr/ucb/* ) ;;
2522 *)
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2525 # by default.
2526 for ac_prog in ginstall scoinst install; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2529 if test $ac_prog = install &&
5464f5a1 2530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2531 # AIX install. It has an incompatible calling convention.
2532 :
5464f5a1
NN
2533 elif test $ac_prog = install &&
2534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # program-specific install script used by HP pwplus--don't use.
2536 :
252b5132 2537 else
5464f5a1
NN
2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 break 3
252b5132
RH
2540 fi
2541 fi
2542 done
5464f5a1
NN
2543 done
2544 ;;
2545esac
2546done
2547
252b5132
RH
2548
2549fi
2550 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2551 INSTALL=$ac_cv_path_install
252b5132
RH
2552 else
2553 # As a last resort, use the slow shell script. We don't cache a
2554 # path for INSTALL within a source directory, because that will
2555 # break other packages using the cache if that directory is
2556 # removed, or if the path is relative.
5464f5a1 2557 INSTALL=$ac_install_sh
252b5132
RH
2558 fi
2559fi
5464f5a1
NN
2560echo "$as_me:$LINENO: result: $INSTALL" >&5
2561echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2562
2563# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564# It thinks the first close brace ends the variable substitution.
2565test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566
5464f5a1 2567test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2568
2569test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570
5464f5a1
NN
2571echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2572echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2573# Just in case
2574sleep 1
f5385ebf 2575echo timestamp > conftest.file
252b5132
RH
2576# Do `set' in a subshell so we don't clobber the current shell's
2577# arguments. Must try -L first in case configure is actually a
2578# symlink; some systems play weird games with the mod time of symlinks
2579# (eg FreeBSD returns the mod time of the symlink's containing
2580# directory).
2581if (
f5385ebf 2582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2583 if test "$*" = "X"; then
2584 # -L didn't work.
f5385ebf 2585 set X `ls -t $srcdir/configure conftest.file`
252b5132 2586 fi
f5385ebf
AM
2587 rm -f conftest.file
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2590
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2596alias in your environment" >&5
2597echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2598alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
252b5132
RH
2600 fi
2601
f5385ebf 2602 test "$2" = conftest.file
252b5132
RH
2603 )
2604then
2605 # Ok.
2606 :
2607else
5464f5a1
NN
2608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609Check your system clock" >&5
2610echo "$as_me: error: newly created file is older than distributed files!
2611Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
252b5132 2613fi
5464f5a1
NN
2614echo "$as_me:$LINENO: result: yes" >&5
2615echo "${ECHO_T}yes" >&6
252b5132 2616test "$program_prefix" != NONE &&
5464f5a1 2617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2618# Use a double $ so make ignores it.
2619test "$program_suffix" != NONE &&
5464f5a1
NN
2620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2621# Double any \ or $. echo might interpret backslashes.
2622# By default was `s,x,x', remove it if useless.
2623cat <<\_ACEOF >conftest.sed
2624s/[\\$]/&&/g;s/;s,x,x,$//
2625_ACEOF
2626program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2627rm conftest.sed
2628
f5385ebf
AM
2629# expand $ac_aux_dir to an absolute path
2630am_aux_dir=`cd $ac_aux_dir && pwd`
2631
2632test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2633# Use eval to expand $SHELL
2634if eval "$MISSING --run true"; then
2635 am_missing_run="$MISSING --run "
2636else
2637 am_missing_run=
2638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2639echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640fi
2641
2642if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2643 # We used to keeping the `.' as first argument, in order to
2644 # allow $(mkdir_p) to be used without argument. As in
2645 # $(mkdir_p) $(somedir)
2646 # where $(somedir) is conditionally defined. However this is wrong
2647 # for two reasons:
2648 # 1. if the package is installed by a user who cannot write `.'
2649 # make install will fail,
2650 # 2. the above comment should most certainly read
2651 # $(mkdir_p) $(DESTDIR)$(somedir)
2652 # so it does not work when $(somedir) is undefined and
2653 # $(DESTDIR) is not.
2654 # To support the latter case, we have to write
2655 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2656 # so the `.' trick is pointless.
2657 mkdir_p='mkdir -p --'
2658else
2659 # On NextStep and OpenStep, the `mkdir' command does not
2660 # recognize any option. It will interpret all options as
2661 # directories to create, and then abort because `.' already
2662 # exists.
2663 for d in ./-p ./--version;
2664 do
2665 test -d $d && rmdir $d
2666 done
2667 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2668 if test -f "$ac_aux_dir/mkinstalldirs"; then
2669 mkdir_p='$(mkinstalldirs)'
2670 else
2671 mkdir_p='$(install_sh) -d'
2672 fi
2673fi
2674
2675for ac_prog in gawk mawk nawk awk
2676do
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678set dummy $ac_prog; ac_word=$2
2679echo "$as_me:$LINENO: checking for $ac_word" >&5
2680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681if test "${ac_cv_prog_AWK+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683else
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_AWK="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698done
2699done
2700
2701fi
2702fi
2703AWK=$ac_cv_prog_AWK
2704if test -n "$AWK"; then
2705 echo "$as_me:$LINENO: result: $AWK" >&5
2706echo "${ECHO_T}$AWK" >&6
2707else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710fi
2711
2712 test -n "$AWK" && break
2713done
2714
5464f5a1
NN
2715echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2717set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2718if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720else
2721 cat >conftest.make <<\_ACEOF
252b5132 2722all:
5464f5a1
NN
2723 @echo 'ac_maketemp="$(MAKE)"'
2724_ACEOF
252b5132 2725# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2726eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2727if test -n "$ac_maketemp"; then
2728 eval ac_cv_prog_make_${ac_make}_set=yes
2729else
2730 eval ac_cv_prog_make_${ac_make}_set=no
2731fi
5464f5a1 2732rm -f conftest.make
252b5132
RH
2733fi
2734if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2735 echo "$as_me:$LINENO: result: yes" >&5
2736echo "${ECHO_T}yes" >&6
252b5132
RH
2737 SET_MAKE=
2738else
5464f5a1
NN
2739 echo "$as_me:$LINENO: result: no" >&5
2740echo "${ECHO_T}no" >&6
252b5132
RH
2741 SET_MAKE="MAKE=${MAKE-make}"
2742fi
2743
f5385ebf
AM
2744rm -rf .tst 2>/dev/null
2745mkdir .tst 2>/dev/null
2746if test -d .tst; then
2747 am__leading_dot=.
2748else
2749 am__leading_dot=_
2750fi
2751rmdir .tst 2>/dev/null
2752
2753DEPDIR="${am__leading_dot}deps"
2754
2755 ac_config_commands="$ac_config_commands depfiles"
2756
2757
2758am_make=${MAKE-make}
2759cat > confinc << 'END'
2760am__doit:
2761 @echo done
2762.PHONY: am__doit
2763END
2764# If we don't find an include directive, just comment out the code.
2765echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2766echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2767am__include="#"
2768am__quote=
2769_am_result=none
2770# First try GNU make style include.
2771echo "include confinc" > confmf
2772# We grep out `Entering directory' and `Leaving directory'
2773# messages which can occur if `w' ends up in MAKEFLAGS.
2774# In particular we don't look at `^make:' because GNU make might
2775# be invoked under some other name (usually "gmake"), in which
2776# case it prints its new name instead of `make'.
2777if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2778 am__include=include
2779 am__quote=
2780 _am_result=GNU
2781fi
2782# Now try BSD make style include.
2783if test "$am__include" = "#"; then
2784 echo '.include "confinc"' > confmf
2785 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2786 am__include=.include
2787 am__quote="\""
2788 _am_result=BSD
2789 fi
2790fi
2791
2792
2793echo "$as_me:$LINENO: result: $_am_result" >&5
2794echo "${ECHO_T}$_am_result" >&6
2795rm -f confinc confmf
2796
2797# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2798if test "${enable_dependency_tracking+set}" = set; then
2799 enableval="$enable_dependency_tracking"
2800
2801fi;
2802if test "x$enable_dependency_tracking" != xno; then
2803 am_depcomp="$ac_aux_dir/depcomp"
2804 AMDEPBACKSLASH='\'
2805fi
2806
2807
2808if test "x$enable_dependency_tracking" != xno; then
2809 AMDEP_TRUE=
2810 AMDEP_FALSE='#'
2811else
2812 AMDEP_TRUE='#'
2813 AMDEP_FALSE=
2814fi
6be7c12c 2815
252b5132 2816
252b5132 2817
f5385ebf
AM
2818# test to see if srcdir already configured
2819if test "`cd $srcdir && pwd`" != "`pwd`" &&
2820 test -f $srcdir/config.status; then
5464f5a1
NN
2821 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2822echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2823 { (exit 1); exit 1; }; }
252b5132 2824fi
5464f5a1 2825
f5385ebf
AM
2826# test whether we have cygpath
2827if test -z "$CYGPATH_W"; then
2828 if (cygpath --version) >/dev/null 2>/dev/null; then
2829 CYGPATH_W='cygpath -w'
2830 else
2831 CYGPATH_W=echo
2832 fi
2833fi
2834
2835
2836# Define the identity of the package.
2837 PACKAGE=bfd
664fe1be 2838 VERSION=2.16.90
f5385ebf
AM
2839
2840
5464f5a1 2841cat >>confdefs.h <<_ACEOF
252b5132 2842#define PACKAGE "$PACKAGE"
5464f5a1 2843_ACEOF
252b5132 2844
5464f5a1
NN
2845
2846cat >>confdefs.h <<_ACEOF
252b5132 2847#define VERSION "$VERSION"
5464f5a1 2848_ACEOF
252b5132 2849
f5385ebf
AM
2850# Some tools Automake needs.
2851
2852ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853
2854
2855AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856
2857
2858AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859
2860
2861AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862
2863
2864MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2865
f5385ebf 2866install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2867
f5385ebf
AM
2868# Installed binaries are usually stripped using `strip' when the user
2869# run `make install-strip'. However `strip' might not be the right
2870# tool to use in cross-compilation environments, therefore Automake
2871# will honor the `STRIP' environment variable to overrule this program.
2872if test "$cross_compiling" != no; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2875set dummy ${ac_tool_prefix}strip; ac_word=$2
2876echo "$as_me:$LINENO: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878if test "${ac_cv_prog_STRIP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 if test -n "$STRIP"; then
2882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2883else
f5385ebf
AM
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895done
2896done
2897
2898fi
2899fi
2900STRIP=$ac_cv_prog_STRIP
2901if test -n "$STRIP"; then
2902 echo "$as_me:$LINENO: result: $STRIP" >&5
2903echo "${ECHO_T}$STRIP" >&6
2904else
2905 echo "$as_me:$LINENO: result: no" >&5
2906echo "${ECHO_T}no" >&6
2907fi
2908
252b5132 2909fi
f5385ebf
AM
2910if test -z "$ac_cv_prog_STRIP"; then
2911 ac_ct_STRIP=$STRIP
2912 # Extract the first word of "strip", so it can be a program name with args.
2913set dummy strip; ac_word=$2
2914echo "$as_me:$LINENO: checking for $ac_word" >&5
2915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 if test -n "$ac_ct_STRIP"; then
2920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_STRIP="strip"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933done
2934done
252b5132 2935
f5385ebf
AM
2936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2937fi
2938fi
2939ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940if test -n "$ac_ct_STRIP"; then
2941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2942echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2943else
f5385ebf
AM
2944 echo "$as_me:$LINENO: result: no" >&5
2945echo "${ECHO_T}no" >&6
252b5132
RH
2946fi
2947
f5385ebf 2948 STRIP=$ac_ct_STRIP
252b5132 2949else
f5385ebf
AM
2950 STRIP="$ac_cv_prog_STRIP"
2951fi
2952
252b5132 2953fi
f5385ebf
AM
2954INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2955
2956# We need awk for the "check" target. The system "awk" is bad on
2957# some platforms.
2958# Always define AMTAR for backward compatibility.
2959
2960AMTAR=${AMTAR-"${am_missing_run}tar"}
2961
2962am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2963
252b5132 2964
f5385ebf
AM
2965
2966
2967depcc="$CC" am_compiler_list=
2968
2969echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2970echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2971if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2973else
f5385ebf
AM
2974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2975 # We make a subdir and do the tests there. Otherwise we can end up
2976 # making bogus files that we don't know about and never remove. For
2977 # instance it was reported that on HP-UX the gcc test will end up
2978 # making a dummy file named `D' -- because `-MD' means `put the output
2979 # in D'.
2980 mkdir conftest.dir
2981 # Copy depcomp to subdir because otherwise we won't find it if we're
2982 # using a relative directory.
2983 cp "$am_depcomp" conftest.dir
2984 cd conftest.dir
2985 # We will build objects and dependencies in a subdirectory because
2986 # it helps to detect inapplicable dependency modes. For instance
2987 # both Tru64's cc and ICC support -MD to output dependencies as a
2988 # side effect of compilation, but ICC will put the dependencies in
2989 # the current directory while Tru64 will put them in the object
2990 # directory.
2991 mkdir sub
2992
2993 am_cv_CC_dependencies_compiler_type=none
2994 if test "$am_compiler_list" = ""; then
2995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2996 fi
2997 for depmode in $am_compiler_list; do
2998 # Setup a source with many dependencies, because some compilers
2999 # like to wrap large dependency lists on column 80 (with \), and
3000 # we should not choose a depcomp mode which is confused by this.
3001 #
3002 # We need to recreate these files for each test, as the compiler may
3003 # overwrite some of them when testing with obscure command lines.
3004 # This happens at least with the AIX C compiler.
3005 : > sub/conftest.c
3006 for i in 1 2 3 4 5 6; do
3007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3009 # Solaris 8's {/usr,}/bin/sh.
3010 touch sub/conftst$i.h
3011 done
3012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3013
3014 case $depmode in
3015 nosideeffect)
3016 # after this tag, mechanisms are not by side-effect, so they'll
3017 # only be used when explicitly requested
3018 if test "x$enable_dependency_tracking" = xyes; then
3019 continue
3020 else
3021 break
3022 fi
3023 ;;
3024 none) break ;;
3025 esac
3026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3027 # mode. It turns out that the SunPro C++ compiler does not properly
3028 # handle `-M -o', and we need to detect this.
3029 if depmode=$depmode \
3030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3033 >/dev/null 2>conftest.err &&
3034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3037 # icc doesn't choke on unknown options, it will just issue warnings
3038 # or remarks (even with -Werror). So we grep stderr for any message
3039 # that says an option was ignored or not supported.
3040 # When given -MP, icc 7.0 and 7.1 complain thusly:
3041 # icc: Command line warning: ignoring option '-M'; no argument required
3042 # The diagnosis changed in icc 8.0:
3043 # icc: Command line remark: option '-MP' not supported
3044 if (grep 'ignoring option' conftest.err ||
3045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3046 am_cv_CC_dependencies_compiler_type=$depmode
3047 break
3048 fi
3049 fi
3050 done
3051
3052 cd ..
3053 rm -rf conftest.dir
3054else
3055 am_cv_CC_dependencies_compiler_type=none
3056fi
3057
252b5132 3058fi
f5385ebf
AM
3059echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3060echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3061CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3062
f5385ebf
AM
3063
3064
3065if
3066 test "x$enable_dependency_tracking" != xno \
3067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3068 am__fastdepCC_TRUE=
3069 am__fastdepCC_FALSE='#'
252b5132 3070else
f5385ebf
AM
3071 am__fastdepCC_TRUE='#'
3072 am__fastdepCC_FALSE=
252b5132
RH
3073fi
3074
6be7c12c 3075
e43d48cc 3076
f5385ebf 3077
5464f5a1
NN
3078if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3080set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3081echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3083if test "${ac_cv_prog_AR+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3085else
3086 if test -n "$AR"; then
3087 ac_cv_prog_AR="$AR" # Let the user override the test.
3088else
5464f5a1
NN
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_AR="${ac_tool_prefix}ar"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
3102
252b5132
RH
3103fi
3104fi
5464f5a1 3105AR=$ac_cv_prog_AR
252b5132 3106if test -n "$AR"; then
5464f5a1
NN
3107 echo "$as_me:$LINENO: result: $AR" >&5
3108echo "${ECHO_T}$AR" >&6
252b5132 3109else
5464f5a1
NN
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
3112fi
3113
252b5132 3114fi
5464f5a1
NN
3115if test -z "$ac_cv_prog_AR"; then
3116 ac_ct_AR=$AR
3117 # Extract the first word of "ar", so it can be a program name with args.
3118set dummy ar; ac_word=$2
3119echo "$as_me:$LINENO: checking for $ac_word" >&5
3120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124 if test -n "$ac_ct_AR"; then
3125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_AR="ar"
3135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138done
3139done
252b5132 3140
5464f5a1
NN
3141fi
3142fi
3143ac_ct_AR=$ac_cv_prog_ac_ct_AR
3144if test -n "$ac_ct_AR"; then
3145 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3146echo "${ECHO_T}$ac_ct_AR" >&6
3147else
3148 echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
3150fi
252b5132 3151
5464f5a1
NN
3152 AR=$ac_ct_AR
3153else
3154 AR="$ac_cv_prog_AR"
3155fi
6be7c12c 3156
5464f5a1
NN
3157if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3159set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3160echo "$as_me:$LINENO: checking for $ac_word" >&5
3161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162if test "${ac_cv_prog_RANLIB+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3164else
3165 if test -n "$RANLIB"; then
3166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3167else
5464f5a1
NN
3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179done
3180done
3181
252b5132
RH
3182fi
3183fi
5464f5a1 3184RANLIB=$ac_cv_prog_RANLIB
252b5132 3185if test -n "$RANLIB"; then
5464f5a1
NN
3186 echo "$as_me:$LINENO: result: $RANLIB" >&5
3187echo "${ECHO_T}$RANLIB" >&6
252b5132 3188else
5464f5a1
NN
3189 echo "$as_me:$LINENO: result: no" >&5
3190echo "${ECHO_T}no" >&6
252b5132
RH
3191fi
3192
5464f5a1 3193fi
252b5132 3194if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3195 ac_ct_RANLIB=$RANLIB
252b5132
RH
3196 # Extract the first word of "ranlib", so it can be a program name with args.
3197set dummy ranlib; ac_word=$2
5464f5a1
NN
3198echo "$as_me:$LINENO: checking for $ac_word" >&5
3199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3202else
5464f5a1
NN
3203 if test -n "$ac_ct_RANLIB"; then
3204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3205else
5464f5a1
NN
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_ac_ct_RANLIB="ranlib"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217done
3218done
3219
3220 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3221fi
3222fi
5464f5a1
NN
3223ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3224if test -n "$ac_ct_RANLIB"; then
3225 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3226echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3227else
5464f5a1
NN
3228 echo "$as_me:$LINENO: result: no" >&5
3229echo "${ECHO_T}no" >&6
252b5132
RH
3230fi
3231
5464f5a1 3232 RANLIB=$ac_ct_RANLIB
252b5132 3233else
5464f5a1 3234 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3235fi
3236
252b5132
RH
3237
3238# Check whether --enable-shared or --disable-shared was given.
3239if test "${enable_shared+set}" = set; then
3240 enableval="$enable_shared"
3241 p=${PACKAGE-default}
55c80943 3242case $enableval in
252b5132
RH
3243yes) enable_shared=yes ;;
3244no) enable_shared=no ;;
3245*)
3246 enable_shared=no
3247 # Look at the argument we got. We use all the common list separators.
3248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3249 for pkg in $enableval; do
3250 if test "X$pkg" = "X$p"; then
3251 enable_shared=yes
3252 fi
3253 done
3254 IFS="$ac_save_ifs"
3255 ;;
3256esac
3257else
3258 enable_shared=no
5464f5a1 3259fi;
252b5132
RH
3260
3261# Check whether --enable-static or --disable-static was given.
3262if test "${enable_static+set}" = set; then
3263 enableval="$enable_static"
3264 p=${PACKAGE-default}
55c80943 3265case $enableval in
252b5132
RH
3266yes) enable_static=yes ;;
3267no) enable_static=no ;;
3268*)
3269 enable_static=no
3270 # Look at the argument we got. We use all the common list separators.
3271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3272 for pkg in $enableval; do
3273 if test "X$pkg" = "X$p"; then
3274 enable_static=yes
3275 fi
3276 done
3277 IFS="$ac_save_ifs"
3278 ;;
3279esac
3280else
3281 enable_static=yes
5464f5a1 3282fi;
b2ef150d
ILT
3283# Check whether --enable-fast-install or --disable-fast-install was given.
3284if test "${enable_fast_install+set}" = set; then
3285 enableval="$enable_fast_install"
3286 p=${PACKAGE-default}
55c80943 3287case $enableval in
b2ef150d
ILT
3288yes) enable_fast_install=yes ;;
3289no) enable_fast_install=no ;;
3290*)
3291 enable_fast_install=no
3292 # Look at the argument we got. We use all the common list separators.
3293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3294 for pkg in $enableval; do
3295 if test "X$pkg" = "X$p"; then
3296 enable_fast_install=yes
3297 fi
3298 done
3299 IFS="$ac_save_ifs"
3300 ;;
3301esac
3302else
3303 enable_fast_install=yes
5464f5a1 3304fi;
c5d1701e 3305
252b5132
RH
3306# Check whether --with-gnu-ld or --without-gnu-ld was given.
3307if test "${with_gnu_ld+set}" = set; then
3308 withval="$with_gnu_ld"
3309 test "$withval" = no || with_gnu_ld=yes
3310else
3311 with_gnu_ld=no
5464f5a1 3312fi;
252b5132 3313ac_prog=ld
55c80943 3314if test "$GCC" = yes; then
252b5132 3315 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
3316 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3317echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3318 case $host in
3319 *-*-mingw*)
3320 # gcc leaves a trailing carriage return which upsets mingw
3321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3322 *)
3323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3324 esac
55c80943 3325 case $ac_prog in
b2ef150d 3326 # Accept absolute paths.
a74801ba 3327 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
3328 re_direlt='/[^/][^/]*/\.\./'
3329 # Canonicalize the path of ld
3330 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3331 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3332 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3333 done
3334 test -z "$LD" && LD="$ac_prog"
3335 ;;
252b5132
RH
3336 "")
3337 # If it fails, then pretend we aren't using GCC.
3338 ac_prog=ld
3339 ;;
3340 *)
3341 # If it is relative, then search for the first ld in PATH.
3342 with_gnu_ld=unknown
3343 ;;
3344 esac
3345elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
3346 echo "$as_me:$LINENO: checking for GNU ld" >&5
3347echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3348else
5464f5a1
NN
3349 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3350echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3351fi
5464f5a1
NN
3352if test "${lt_cv_path_LD+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3354else
3355 if test -z "$LD"; then
a74801ba 3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3357 for ac_dir in $PATH; do
3358 test -z "$ac_dir" && ac_dir=.
a74801ba 3359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 3360 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3361 # Check to see if the program is GNU ld. I'd rather use --version,
3362 # but apparently some GNU ld's only accept -v.
3363 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 3364 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3365 test "$with_gnu_ld" != no && break
3366 else
b2ef150d 3367 test "$with_gnu_ld" != yes && break
252b5132
RH
3368 fi
3369 fi
3370 done
3371 IFS="$ac_save_ifs"
3372else
55c80943 3373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3374fi
3375fi
3376
55c80943 3377LD="$lt_cv_path_LD"
252b5132 3378if test -n "$LD"; then
5464f5a1
NN
3379 echo "$as_me:$LINENO: result: $LD" >&5
3380echo "${ECHO_T}$LD" >&6
252b5132 3381else
5464f5a1
NN
3382 echo "$as_me:$LINENO: result: no" >&5
3383echo "${ECHO_T}no" >&6
252b5132 3384fi
5464f5a1
NN
3385test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3386echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3387 { (exit 1); exit 1; }; }
3388echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3389echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3390if test "${lt_cv_prog_gnu_ld+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3392else
3393 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3394if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3395 lt_cv_prog_gnu_ld=yes
252b5132 3396else
55c80943 3397 lt_cv_prog_gnu_ld=no
252b5132
RH
3398fi
3399fi
5464f5a1
NN
3400echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3401echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3402with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3403
6be7c12c 3404
5464f5a1
NN
3405echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3406echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3407if test "${lt_cv_ld_reload_flag+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3409else
3410 lt_cv_ld_reload_flag='-r'
3411fi
5464f5a1
NN
3412echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3413echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3414reload_flag=$lt_cv_ld_reload_flag
3415test -n "$reload_flag" && reload_flag=" $reload_flag"
3416
5464f5a1
NN
3417echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3418echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3419if test "${lt_cv_path_NM+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3421else
3422 if test -n "$NM"; then
3423 # Let the user override the test.
55c80943 3424 lt_cv_path_NM="$NM"
252b5132 3425else
a74801ba 3426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3427 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3428 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3429 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3430 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3431 # Check to see if the nm accepts a BSD-compat flag.
3432 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3433 # nm: unknown option "B" ignored
90f2472a
AO
3434 # Tru64's nm complains that /dev/null is an invalid object file
3435 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3436 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3437 break
ac48eca1 3438 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3439 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3440 break
252b5132 3441 else
55c80943 3442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3443 continue # so that we can try to find one that supports BSD flags
252b5132 3444 fi
252b5132
RH
3445 fi
3446 done
3447 IFS="$ac_save_ifs"
55c80943 3448 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3449fi
3450fi
3451
55c80943 3452NM="$lt_cv_path_NM"
5464f5a1
NN
3453echo "$as_me:$LINENO: result: $NM" >&5
3454echo "${ECHO_T}$NM" >&6
252b5132 3455
5464f5a1
NN
3456echo "$as_me:$LINENO: checking whether ln -s works" >&5
3457echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3458LN_S=$as_ln_s
3459if test "$LN_S" = "ln -s"; then
3460 echo "$as_me:$LINENO: result: yes" >&5
3461echo "${ECHO_T}yes" >&6
6be7c12c 3462else
5464f5a1
NN
3463 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3464echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3465fi
3466
5464f5a1
NN
3467echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3468echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3469if test "${lt_cv_deplibs_check_method+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3471else
d64552c5 3472 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3473lt_cv_file_magic_test_file=
3474lt_cv_deplibs_check_method='unknown'
3475# Need to set the preceding variable on all platforms that support
3476# interlibrary dependencies.
3477# 'none' -- dependencies not supported.
3478# `unknown' -- same as none, but documents that we really don't know.
3479# 'pass_all' -- all dependencies passed with no checks.
3480# 'test_compile' -- check by making test program.
3481# 'file_magic [regex]' -- check by looking for files in library path
3482# which responds to the $file_magic_cmd with a given egrep regex.
3483# If you have `file' or equivalent on your system and you're not sure
3484# whether `pass_all' will *always* work, you probably want this one.
3485
55c80943
NC
3486case $host_os in
3487aix*)
ac48eca1
AO
3488 lt_cv_deplibs_check_method=pass_all
3489 ;;
3490
3491beos*)
3492 lt_cv_deplibs_check_method=pass_all
3493 ;;
3494
3495bsdi4*)
55c80943
NC
3496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3497 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3498 lt_cv_file_magic_test_file=/shlib/libc.so
3499 ;;
3500
d64552c5 3501cygwin* | mingw* |pw32*)
ac48eca1 3502 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3503 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3504 ;;
3505
55c80943
NC
3506darwin* | rhapsody*)
3507 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3508 lt_cv_file_magic_cmd='/usr/bin/file -L'
3509 case "$host_os" in
3510 rhapsody* | darwin1.012)
3511 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3512 ;;
3513 *) # Darwin 1.3 on
3514 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3515 ;;
3516 esac
55c80943
NC
3517 ;;
3518
5464f5a1 3519freebsd* | kfreebsd*-gnu)
ac48eca1 3520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3521 case $host_cpu in
ac48eca1 3522 i*86 )
90f2472a
AO
3523 # Not sure whether the presence of OpenBSD here was a mistake.
3524 # Let's accept both of them until this is cleared up.
55c80943
NC
3525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3526 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3528 ;;
3529 esac
3530 else
3531 lt_cv_deplibs_check_method=pass_all
3532 fi
3533 ;;
3534
3535gnu*)
3536 lt_cv_deplibs_check_method=pass_all
3537 ;;
3538
55c80943 3539hpux10.20*|hpux11*)
4867be41
DJ
3540 case $host_cpu in
3541 hppa*)
3542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3543 lt_cv_file_magic_cmd=/usr/bin/file
3544 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3545 ;;
3546 ia64*)
3547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3548 lt_cv_file_magic_cmd=/usr/bin/file
3549 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3550 ;;
3551 esac
ac48eca1
AO
3552 ;;
3553
3554irix5* | irix6*)
55c80943 3555 case $host_os in
ac48eca1
AO
3556 irix5*)
3557 # this will be overridden with pass_all, but let us keep it just in case
3558 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3559 ;;
3560 *)
55c80943 3561 case $LD in
ac48eca1
AO
3562 *-32|*"-32 ") libmagic=32-bit;;
3563 *-n32|*"-n32 ") libmagic=N32;;
3564 *-64|*"-64 ") libmagic=64-bit;;
3565 *) libmagic=never-match;;
3566 esac
3567 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3568 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3569 ;;
ac48eca1
AO
3570 esac
3571 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3572 lt_cv_deplibs_check_method=pass_all
3573 ;;
3574
3575# This must be Linux ELF.
90f2472a 3576linux-gnu*)
55c80943 3577 case $host_cpu in
c5d1701e 3578 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3579 lt_cv_deplibs_check_method=pass_all ;;
3580 *)
3581 # glibc up to 2.1.1 does not perform some relocations on ARM
55c80943
NC
3582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3583 esac
ac48eca1
AO
3584 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3585 ;;
3586
5464f5a1 3587netbsd* | knetbsd*-gnu)
55c80943 3588 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3589 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3590 else
b3baf5d0 3591 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3592 fi
55c80943
NC
3593 ;;
3594
3595newsos6)
3596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3597 lt_cv_file_magic_cmd=/usr/bin/file
3598 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3599 ;;
3600
3601osf3* | osf4* | osf5*)
3602 # this will be overridden with pass_all, but let us keep it just in case
3603 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3604 lt_cv_file_magic_test_file=/shlib/libc.so
3605 lt_cv_deplibs_check_method=pass_all
3606 ;;
3607
3608sco3.2v5*)
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611
3612solaris*)
3613 lt_cv_deplibs_check_method=pass_all
3614 lt_cv_file_magic_test_file=/lib/libc.so
3615 ;;
3616
6be7c12c
AO
3617sysv5uw[78]* | sysv4*uw2*)
3618 lt_cv_deplibs_check_method=pass_all
3619 ;;
3620
ac48eca1 3621sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3622 case $host_vendor in
ac48eca1
AO
3623 ncr)
3624 lt_cv_deplibs_check_method=pass_all
3625 ;;
3626 motorola)
55c80943
NC
3627 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3629 ;;
3630 esac
3631 ;;
3632esac
3633
3634fi
5464f5a1
NN
3635echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3636echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3637file_magic_cmd=$lt_cv_file_magic_cmd
3638deplibs_check_method=$lt_cv_deplibs_check_method
3639
6be7c12c
AO
3640
3641
6be7c12c
AO
3642
3643# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3644
3645# Only perform the check for file, if the check method requires it
3646case $deplibs_check_method in
3647file_magic*)
3648 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3649 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3650echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3651if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3653else
3654 case $MAGIC_CMD in
3655 /*)
3656 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3657 ;;
3658 ?:/*)
3659 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3660 ;;
3661 *)
d64552c5 3662 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3664 ac_dummy="/usr/bin:$PATH"
3665 for ac_dir in $ac_dummy; do
3666 test -z "$ac_dir" && ac_dir=.
3667 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3668 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3669 if test -n "$file_magic_test_file"; then
55c80943 3670 case $deplibs_check_method in
ac48eca1
AO
3671 "file_magic "*)
3672 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3675 egrep "$file_magic_regex" > /dev/null; then
3676 :
3677 else
3678 cat <<EOF 1>&2
3679
3680*** Warning: the command libtool uses to detect shared libraries,
3681*** $file_magic_cmd, produces output that libtool cannot recognize.
3682*** The result is that libtool may fail to recognize shared libraries
3683*** as such. This will affect the creation of libtool libraries that
3684*** depend on shared libraries, but programs linked with such libtool
3685*** libraries will work regardless of this problem. Nevertheless, you
3686*** may want to report the problem to your system manager and/or to
3687*** bug-libtool@gnu.org
3688
3689EOF
3690 fi ;;
3691 esac
3692 fi
3693 break
3694 fi
3695 done
3696 IFS="$ac_save_ifs"
d64552c5 3697 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3698 ;;
3699esac
3700fi
3701
d64552c5
AO
3702MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3703if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3704 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3705echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3706else
5464f5a1
NN
3707 echo "$as_me:$LINENO: result: no" >&5
3708echo "${ECHO_T}no" >&6
ac48eca1
AO
3709fi
3710
d64552c5 3711if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3712 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3713 echo "$as_me:$LINENO: checking for file" >&5
3714echo $ECHO_N "checking for file... $ECHO_C" >&6
3715if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3717else
55c80943 3718 case $MAGIC_CMD in
ac48eca1 3719 /*)
d64552c5 3720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3721 ;;
3722 ?:/*)
d64552c5 3723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3724 ;;
3725 *)
d64552c5 3726 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3728 ac_dummy="/usr/bin:$PATH"
3729 for ac_dir in $ac_dummy; do
3730 test -z "$ac_dir" && ac_dir=.
3731 if test -f $ac_dir/file; then
d64552c5 3732 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3733 if test -n "$file_magic_test_file"; then
55c80943 3734 case $deplibs_check_method in
ac48eca1
AO
3735 "file_magic "*)
3736 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3737 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3738 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3739 egrep "$file_magic_regex" > /dev/null; then
3740 :
3741 else
3742 cat <<EOF 1>&2
3743
3744*** Warning: the command libtool uses to detect shared libraries,
3745*** $file_magic_cmd, produces output that libtool cannot recognize.
3746*** The result is that libtool may fail to recognize shared libraries
3747*** as such. This will affect the creation of libtool libraries that
3748*** depend on shared libraries, but programs linked with such libtool
3749*** libraries will work regardless of this problem. Nevertheless, you
3750*** may want to report the problem to your system manager and/or to
3751*** bug-libtool@gnu.org
3752
3753EOF
3754 fi ;;
3755 esac
3756 fi
3757 break
3758 fi
3759 done
3760 IFS="$ac_save_ifs"
d64552c5 3761 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3762 ;;
3763esac
3764fi
3765
d64552c5
AO
3766MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3767if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3768 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3769echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3770else
5464f5a1
NN
3771 echo "$as_me:$LINENO: result: no" >&5
3772echo "${ECHO_T}no" >&6
ac48eca1
AO
3773fi
3774
3775 else
d64552c5 3776 MAGIC_CMD=:
ac48eca1
AO
3777 fi
3778fi
3779
3780 fi
3781 ;;
3782esac
3783
5464f5a1
NN
3784if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3786set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3787echo "$as_me:$LINENO: checking for $ac_word" >&5
3788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789if test "${ac_cv_prog_RANLIB+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3791else
3792 if test -n "$RANLIB"; then
3793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3794else
5464f5a1
NN
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806done
3807done
3808
ac48eca1
AO
3809fi
3810fi
5464f5a1 3811RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3812if test -n "$RANLIB"; then
5464f5a1
NN
3813 echo "$as_me:$LINENO: result: $RANLIB" >&5
3814echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3815else
5464f5a1
NN
3816 echo "$as_me:$LINENO: result: no" >&5
3817echo "${ECHO_T}no" >&6
ac48eca1
AO
3818fi
3819
5464f5a1 3820fi
ac48eca1 3821if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3822 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3823 # Extract the first word of "ranlib", so it can be a program name with args.
3824set dummy ranlib; ac_word=$2
5464f5a1
NN
3825echo "$as_me:$LINENO: checking for $ac_word" >&5
3826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3829else
5464f5a1
NN
3830 if test -n "$ac_ct_RANLIB"; then
3831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3832else
5464f5a1
NN
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_ac_ct_RANLIB="ranlib"
3841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844done
3845done
3846
3847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3848fi
3849fi
5464f5a1
NN
3850ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3851if test -n "$ac_ct_RANLIB"; then
3852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3853echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3854else
5464f5a1
NN
3855 echo "$as_me:$LINENO: result: no" >&5
3856echo "${ECHO_T}no" >&6
ac48eca1
AO
3857fi
3858
5464f5a1 3859 RANLIB=$ac_ct_RANLIB
ac48eca1 3860else
5464f5a1 3861 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3862fi
3863
5464f5a1
NN
3864if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3866set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3867echo "$as_me:$LINENO: checking for $ac_word" >&5
3868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869if test "${ac_cv_prog_STRIP+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3871else
3872 if test -n "$STRIP"; then
3873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3874else
5464f5a1
NN
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886done
3887done
3888
ac48eca1
AO
3889fi
3890fi
5464f5a1 3891STRIP=$ac_cv_prog_STRIP
ac48eca1 3892if test -n "$STRIP"; then
5464f5a1
NN
3893 echo "$as_me:$LINENO: result: $STRIP" >&5
3894echo "${ECHO_T}$STRIP" >&6
ac48eca1 3895else
5464f5a1
NN
3896 echo "$as_me:$LINENO: result: no" >&5
3897echo "${ECHO_T}no" >&6
ac48eca1
AO
3898fi
3899
5464f5a1 3900fi
ac48eca1 3901if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3902 ac_ct_STRIP=$STRIP
ac48eca1
AO
3903 # Extract the first word of "strip", so it can be a program name with args.
3904set dummy strip; ac_word=$2
5464f5a1
NN
3905echo "$as_me:$LINENO: checking for $ac_word" >&5
3906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3909else
5464f5a1
NN
3910 if test -n "$ac_ct_STRIP"; then
3911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3912else
5464f5a1
NN
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_ac_ct_STRIP="strip"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3923 fi
3924done
3925done
3926
3927 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3928fi
3929fi
5464f5a1
NN
3930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3931if test -n "$ac_ct_STRIP"; then
3932 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3933echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3934else
5464f5a1
NN
3935 echo "$as_me:$LINENO: result: no" >&5
3936echo "${ECHO_T}no" >&6
ac48eca1
AO
3937fi
3938
5464f5a1 3939 STRIP=$ac_ct_STRIP
ac48eca1 3940else
5464f5a1 3941 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3942fi
252b5132 3943
6be7c12c 3944
252b5132 3945# Check for any special flags to pass to ltconfig.
b2ef150d 3946libtool_flags="--cache-file=$cache_file"
252b5132
RH
3947test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3948test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 3949test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
3950test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3951test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3952
6be7c12c 3953
a74801ba
ILT
3954# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3955if test "${enable_libtool_lock+set}" = set; then
3956 enableval="$enable_libtool_lock"
a74801ba 3957
5464f5a1 3958fi;
a74801ba
ILT
3959test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3960test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3961
5464f5a1 3962
ac48eca1
AO
3963# Check whether --with-pic or --without-pic was given.
3964if test "${with_pic+set}" = set; then
3965 withval="$with_pic"
3966 pic_mode="$withval"
3967else
5464f5a1
NN
3968 pic_mode=default
3969fi;
ac48eca1
AO
3970test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3971test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3972
252b5132
RH
3973# Some flags need to be propagated to the compiler or linker for good
3974# libtool support.
55c80943 3975case $host in
252b5132
RH
3976*-*-irix6*)
3977 # Find out which ABI we are using.
1ad12f97 3978 echo '#line 3978 "configure"' > conftest.$ac_ext
5464f5a1
NN
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; then
6a457e5c
NC
3984 if test "$lt_cv_prog_gnu_ld" = yes; then
3985 case `/usr/bin/file conftest.$ac_objext` in
3986 *32-bit*)
3987 LD="${LD-ld} -melf32bsmip"
3988 ;;
3989 *N32*)
3990 LD="${LD-ld} -melf32bmipn32"
3991 ;;
3992 *64-bit*)
3993 LD="${LD-ld} -melf64bmip"
3994 ;;
3995 esac
3996 else
55c80943 3997 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3998 *32-bit*)
3999 LD="${LD-ld} -32"
4000 ;;
4001 *N32*)
4002 LD="${LD-ld} -n32"
4003 ;;
4004 *64-bit*)
4005 LD="${LD-ld} -64"
4006 ;;
4007 esac
6a457e5c 4008 fi
252b5132
RH
4009 fi
4010 rm -rf conftest*
4011 ;;
4012
4867be41
DJ
4013ia64-*-hpux*)
4014 # Find out which ABI we are using.
4015 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; then
4867be41
DJ
4021 case "`/usr/bin/file conftest.o`" in
4022 *ELF-32*)
4023 HPUX_IA64_MODE="32"
4024 ;;
4025 *ELF-64*)
4026 HPUX_IA64_MODE="64"
4027 ;;
4028 esac
4029 fi
4030 rm -rf conftest*
4031 ;;
4032
252b5132
RH
4033*-*-sco3.2v5*)
4034 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4035 SAVE_CFLAGS="$CFLAGS"
252b5132 4036 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4037 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4038echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4039if test "${lt_cv_cc_needs_belf+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4041else
5464f5a1
NN
4042
4043
ac48eca1 4044 ac_ext=c
ac48eca1 4045ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4049
5464f5a1
NN
4050 cat >conftest.$ac_ext <<_ACEOF
4051/* confdefs.h. */
4052_ACEOF
4053cat confdefs.h >>conftest.$ac_ext
4054cat >>conftest.$ac_ext <<_ACEOF
4055/* end confdefs.h. */
b2ef150d 4056
5464f5a1
NN
4057int
4058main ()
4059{
b2ef150d 4060
5464f5a1
NN
4061 ;
4062 return 0;
4063}
4064_ACEOF
4065rm -f conftest.$ac_objext conftest$ac_exeext
4066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067 (eval $ac_link) 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
8fb84ecc
AC
4074 { ac_try='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
5464f5a1
NN
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest$ac_exeext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
b2ef150d
ILT
4087 lt_cv_cc_needs_belf=yes
4088else
5464f5a1
NN
4089 echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
4092lt_cv_cc_needs_belf=no
b2ef150d 4093fi
5464f5a1
NN
4094rm -f conftest.err conftest.$ac_objext \
4095 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4096 ac_ext=c
ac48eca1 4097ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4101
b2ef150d 4102fi
5464f5a1
NN
4103echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4104echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4105 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4106 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4107 CFLAGS="$SAVE_CFLAGS"
4108 fi
252b5132
RH
4109 ;;
4110
6be7c12c 4111
252b5132
RH
4112esac
4113
6be7c12c 4114
b2ef150d 4115# Save cache, so that ltconfig can load it
5464f5a1 4116cat >confcache <<\_ACEOF
b2ef150d
ILT
4117# This file is a shell script that caches the results of configure
4118# tests run on this system so they can be shared between configure
5464f5a1
NN
4119# scripts and configure runs, see configure's option --config-cache.
4120# It is not useful on other systems. If it contains results you don't
4121# want to keep, you may remove or edit it.
b2ef150d 4122#
5464f5a1
NN
4123# config.status only pays attention to the cache file if you give it
4124# the --recheck option to rerun configure.
b2ef150d 4125#
5464f5a1
NN
4126# `ac_cv_env_foo' variables (set or unset) will be overridden when
4127# loading this file, other *unset* `ac_cv_foo' will be assigned the
4128# following values.
4129
4130_ACEOF
4131
b2ef150d
ILT
4132# The following way of writing the cache mishandles newlines in values,
4133# but we know of no workaround that is simple, portable, and efficient.
4134# So, don't put newlines in cache variables' values.
4135# Ultrix sh set writes to stderr and can't be redirected directly,
4136# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4137{
4138 (set) 2>&1 |
4139 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4140 *ac_space=\ *)
4141 # `set' does not quote correctly, so add quotes (double-quote
4142 # substitution turns \\\\ into \\, and sed turns \\ into \).
4143 sed -n \
4144 "s/'/'\\\\''/g;
4145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4146 ;;
4147 *)
4148 # `set' quotes correctly as required by POSIX, so do not add quotes.
4149 sed -n \
4150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4151 ;;
4152 esac;
4153} |
4154 sed '
4155 t clear
4156 : clear
4157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4158 t end
4159 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4160 : end' >>confcache
4161if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4162 if test -w $cache_file; then
5464f5a1
NN
4163 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4164 cat confcache >$cache_file
b2ef150d
ILT
4165 else
4166 echo "not updating unwritable cache $cache_file"
4167 fi
4168fi
4169rm -f confcache
4170
252b5132 4171# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4172AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4173MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4174LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4175AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4176objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4177deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4178${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4179$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4180|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4181echo "$as_me: error: libtool configure failed" >&2;}
4182 { (exit 1); exit 1; }; }
252b5132 4183
b2ef150d
ILT
4184# Reload cache, that may have been modified by ltconfig
4185if test -r "$cache_file"; then
5464f5a1
NN
4186 # Some versions of bash will fail to source /dev/null (special
4187 # files actually), so we avoid doing that.
4188 if test -f "$cache_file"; then
4189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4190echo "$as_me: loading cache $cache_file" >&6;}
4191 case $cache_file in
4192 [\\/]* | ?:[\\/]* ) . $cache_file;;
4193 *) . ./$cache_file;;
4194 esac
4195 fi
b2ef150d 4196else
5464f5a1
NN
4197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4198echo "$as_me: creating cache $cache_file" >&6;}
4199 >$cache_file
b2ef150d
ILT
4200fi
4201
6be7c12c 4202
b2ef150d 4203# This can be used to rebuild libtool when needed
ac48eca1 4204LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4205
4206# Always use our own libtool.
4207LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4208
252b5132
RH
4209# Redirect the config.log output again, so that the ltconfig log is not
4210# clobbered by the next message.
4211exec 5>>./config.log
4212
6be7c12c 4213
5464f5a1
NN
4214
4215
4216
4217
6be7c12c 4218
252b5132
RH
4219# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4220if test "${enable_64_bit_bfd+set}" = set; then
4221 enableval="$enable_64_bit_bfd"
4222 case "${enableval}" in
4223 yes) want64=true ;;
4224 no) want64=false ;;
5464f5a1
NN
4225 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4226echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4227 { (exit 1); exit 1; }; } ;;
252b5132
RH
4228esac
4229else
4230 want64=false
5464f5a1 4231fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4232if test "${enable_targets+set}" = set; then
4233 enableval="$enable_targets"
4234 case "${enableval}" in
5464f5a1
NN
4235 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4236echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4237 { (exit 1); exit 1; }; }
252b5132
RH
4238 ;;
4239 no) enable_targets= ;;
4240 *) enable_targets=$enableval ;;
4241esac
5464f5a1 4242fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4243if test "${enable_commonbfdlib+set}" = set; then
4244 enableval="$enable_commonbfdlib"
4245 case "${enableval}" in
4246 yes) commonbfdlib=true ;;
4247 no) commonbfdlib=false ;;
5464f5a1
NN
4248 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4249echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4250 { (exit 1); exit 1; }; } ;;
252b5132 4251esac
5464f5a1 4252fi;
252b5132
RH
4253# Check whether --with-mmap or --without-mmap was given.
4254if test "${with_mmap+set}" = set; then
4255 withval="$with_mmap"
4256 case "${withval}" in
4257 yes) want_mmap=true ;;
4258 no) want_mmap=false ;;
5464f5a1
NN
4259 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4260echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4261 { (exit 1); exit 1; }; } ;;
252b5132
RH
4262esac
4263else
4264 want_mmap=false
5464f5a1 4265fi;
9e9b66a9
AM
4266
4267WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4268
569acd2c
NC
4269# Check whether --enable-werror or --disable-werror was given.
4270if test "${enable_werror+set}" = set; then
4271 enableval="$enable_werror"
1ad12f97
NC
4272 case "${enableval}" in
4273 yes | y) ERROR_ON_WARNING="yes" ;;
4274 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4275 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4276echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4277 { (exit 1); exit 1; }; } ;;
4278 esac
4279fi;
4280
9e9b66a9
AM
4281# Enable -Werror by default when using gcc
4282if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4283 ERROR_ON_WARNING=yes
4284fi
4285
4286NO_WERROR=
4287if test "${ERROR_ON_WARNING}" = yes ; then
4288 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4289 NO_WERROR="-Wno-error"
1ad12f97
NC
4290fi
4291
a2d91340
AC
4292# Check whether --enable-build-warnings or --disable-build-warnings was given.
4293if test "${enable_build_warnings+set}" = set; then
4294 enableval="$enable_build_warnings"
4295 case "${enableval}" in
4296 yes) ;;
9e9b66a9 4297 no) WARN_CFLAGS="-w";;
a2d91340 4298 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9 4299 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
a2d91340 4300 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9
AM
4301 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4302 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4303esac
9e9b66a9
AM
4304fi;
4305
4306if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4307 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4308fi
4309
4310
9e9b66a9
AM
4311
4312
4313
5464f5a1 4314 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4315
252b5132
RH
4316
4317if test -z "$target" ; then
5464f5a1
NN
4318 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4319echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4320 { (exit 1); exit 1; }; }
252b5132 4321fi
252b5132 4322
5464f5a1
NN
4323echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4324echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4325 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4326if test "${enable_maintainer_mode+set}" = set; then
4327 enableval="$enable_maintainer_mode"
4328 USE_MAINTAINER_MODE=$enableval
4329else
4330 USE_MAINTAINER_MODE=no
5464f5a1
NN
4331fi;
4332 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4333echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4334
252b5132
RH
4335
4336if test $USE_MAINTAINER_MODE = yes; then
4337 MAINTAINER_MODE_TRUE=
4338 MAINTAINER_MODE_FALSE='#'
4339else
4340 MAINTAINER_MODE_TRUE='#'
4341 MAINTAINER_MODE_FALSE=
4342fi
f5385ebf 4343
252b5132 4344 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4345
5464f5a1 4346
24443139
AS
4347 case ${build_alias} in
4348 "") build_noncanonical=${build} ;;
4349 *) build_noncanonical=${build_alias} ;;
4350esac
4351
4352 case ${host_alias} in
4353 "") host_noncanonical=${build_noncanonical} ;;
4354 *) host_noncanonical=${host_alias} ;;
4355esac
4356
4357 case ${target_alias} in
4358 "") target_noncanonical=${host_noncanonical} ;;
4359 *) target_noncanonical=${target_alias} ;;
4360esac
4361
5464f5a1
NN
4362echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4363echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4364 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4365if test "${enable_install_libbfd+set}" = set; then
4366 enableval="$enable_install_libbfd"
4367 install_libbfd_p=$enableval
4368else
66e25bab 4369 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4370 install_libbfd_p=yes
4371 else
4372 install_libbfd_p=no
4373 fi
5464f5a1
NN
4374fi;
4375 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4376echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4377
a703a6ea
AM
4378
4379if test $install_libbfd_p = yes; then
4380 INSTALL_LIBBFD_TRUE=
4381 INSTALL_LIBBFD_FALSE='#'
4382else
4383 INSTALL_LIBBFD_TRUE='#'
4384 INSTALL_LIBBFD_FALSE=
4385fi
f5385ebf 4386
5464f5a1 4387 # Need _noncanonical variables for this.
24443139
AS
4388
4389
4390
4391
a703a6ea
AM
4392 # libbfd.a is a host library containing target dependent code
4393 bfdlibdir='$(libdir)'
4394 bfdincludedir='$(includedir)'
4395 if test "${host}" != "${target}"; then
5464f5a1
NN
4396 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4397 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4398 fi
a703a6ea
AM
4399
4400
252b5132
RH
4401
4402
5464f5a1
NN
4403
4404
4405host64=false
4406target64=false
4407bfd_default_target_size=32
4408
4409# host stuff:
4410
4411ac_ext=c
4412ac_cpp='$CPP $CPPFLAGS'
4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416if test -n "$ac_tool_prefix"; then
4417 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4418set dummy ${ac_tool_prefix}gcc; ac_word=$2
4419echo "$as_me:$LINENO: checking for $ac_word" >&5
4420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421if test "${ac_cv_prog_CC+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4423else
5464f5a1
NN
4424 if test -n "$CC"; then
4425 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4426else
5464f5a1
NN
4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
6be7c12c 4437 fi
5464f5a1
NN
4438done
4439done
4440
252b5132 4441fi
b3baf5d0 4442fi
5464f5a1
NN
4443CC=$ac_cv_prog_CC
4444if test -n "$CC"; then
4445 echo "$as_me:$LINENO: result: $CC" >&5
4446echo "${ECHO_T}$CC" >&6
4447else
4448 echo "$as_me:$LINENO: result: no" >&5
4449echo "${ECHO_T}no" >&6
4450fi
252b5132 4451
5464f5a1
NN
4452fi
4453if test -z "$ac_cv_prog_CC"; then
4454 ac_ct_CC=$CC
4455 # Extract the first word of "gcc", so it can be a program name with args.
4456set dummy gcc; ac_word=$2
4457echo "$as_me:$LINENO: checking for $ac_word" >&5
4458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462 if test -n "$ac_ct_CC"; then
4463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4464else
4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_ac_ct_CC="gcc"
4473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476done
4477done
252b5132 4478
5464f5a1
NN
4479fi
4480fi
4481ac_ct_CC=$ac_cv_prog_ac_ct_CC
4482if test -n "$ac_ct_CC"; then
4483 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4484echo "${ECHO_T}$ac_ct_CC" >&6
4485else
4486 echo "$as_me:$LINENO: result: no" >&5
4487echo "${ECHO_T}no" >&6
4488fi
252b5132 4489
5464f5a1
NN
4490 CC=$ac_ct_CC
4491else
4492 CC="$ac_cv_prog_CC"
4493fi
252b5132 4494
5464f5a1
NN
4495if test -z "$CC"; then
4496 if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4498set dummy ${ac_tool_prefix}cc; ac_word=$2
4499echo "$as_me:$LINENO: checking for $ac_word" >&5
4500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501if test "${ac_cv_prog_CC+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
4504 if test -n "$CC"; then
4505 ac_cv_prog_CC="$CC" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_CC="${ac_tool_prefix}cc"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 break 2
4517 fi
4518done
4519done
6be7c12c 4520
5464f5a1
NN
4521fi
4522fi
4523CC=$ac_cv_prog_CC
4524if test -n "$CC"; then
4525 echo "$as_me:$LINENO: result: $CC" >&5
4526echo "${ECHO_T}$CC" >&6
4527else
4528 echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6
4530fi
4531
4532fi
4533if test -z "$ac_cv_prog_CC"; then
4534 ac_ct_CC=$CC
4535 # Extract the first word of "cc", so it can be a program name with args.
4536set dummy cc; ac_word=$2
4537echo "$as_me:$LINENO: checking for $ac_word" >&5
4538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4539if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541else
4542 if test -n "$ac_ct_CC"; then
4543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4544else
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_ac_ct_CC="cc"
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556done
4557done
4558
4559fi
4560fi
4561ac_ct_CC=$ac_cv_prog_ac_ct_CC
4562if test -n "$ac_ct_CC"; then
4563 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4564echo "${ECHO_T}$ac_ct_CC" >&6
4565else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568fi
4569
4570 CC=$ac_ct_CC
4571else
4572 CC="$ac_cv_prog_CC"
4573fi
4574
4575fi
4576if test -z "$CC"; then
4577 # Extract the first word of "cc", so it can be a program name with args.
4578set dummy cc; ac_word=$2
4579echo "$as_me:$LINENO: checking for $ac_word" >&5
4580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581if test "${ac_cv_prog_CC+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4583else
4584 if test -n "$CC"; then
4585 ac_cv_prog_CC="$CC" # Let the user override the test.
4586else
5464f5a1
NN
4587 ac_prog_rejected=no
4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589for as_dir in $PATH
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4596 ac_prog_rejected=yes
4597 continue
4598 fi
4599 ac_cv_prog_CC="cc"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4602 fi
4603done
4604done
4605
4606if test $ac_prog_rejected = yes; then
4607 # We found a bogon in the path, so make sure we never use it.
4608 set dummy $ac_cv_prog_CC
4609 shift
4610 if test $# != 0; then
4611 # We chose a different compiler from the bogus one.
4612 # However, it has the same basename, so the bogon will be chosen
4613 # first if we set CC to just the basename; use the full file name.
4614 shift
4615 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4616 fi
4617fi
4618fi
4619fi
4620CC=$ac_cv_prog_CC
4621if test -n "$CC"; then
4622 echo "$as_me:$LINENO: result: $CC" >&5
4623echo "${ECHO_T}$CC" >&6
4624else
4625 echo "$as_me:$LINENO: result: no" >&5
4626echo "${ECHO_T}no" >&6
4627fi
4628
4629fi
4630if test -z "$CC"; then
4631 if test -n "$ac_tool_prefix"; then
4632 for ac_prog in cl
4633 do
4634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4635set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4636echo "$as_me:$LINENO: checking for $ac_word" >&5
4637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4638if test "${ac_cv_prog_CC+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640else
4641 if test -n "$CC"; then
4642 ac_cv_prog_CC="$CC" # Let the user override the test.
4643else
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
4650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655done
4656done
4657
4658fi
4659fi
4660CC=$ac_cv_prog_CC
4661if test -n "$CC"; then
4662 echo "$as_me:$LINENO: result: $CC" >&5
4663echo "${ECHO_T}$CC" >&6
4664else
4665 echo "$as_me:$LINENO: result: no" >&5
4666echo "${ECHO_T}no" >&6
4667fi
4668
4669 test -n "$CC" && break
6be7c12c 4670 done
252b5132 4671fi
5464f5a1
NN
4672if test -z "$CC"; then
4673 ac_ct_CC=$CC
4674 for ac_prog in cl
4675do
4676 # Extract the first word of "$ac_prog", so it can be a program name with args.
4677set dummy $ac_prog; ac_word=$2
4678echo "$as_me:$LINENO: checking for $ac_word" >&5
4679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4680if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682else
4683 if test -n "$ac_ct_CC"; then
4684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_ac_ct_CC="$ac_prog"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697done
4698done
4699
4700fi
4701fi
4702ac_ct_CC=$ac_cv_prog_ac_ct_CC
4703if test -n "$ac_ct_CC"; then
4704 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4705echo "${ECHO_T}$ac_ct_CC" >&6
4706else
4707 echo "$as_me:$LINENO: result: no" >&5
4708echo "${ECHO_T}no" >&6
4709fi
4710
4711 test -n "$ac_ct_CC" && break
4712done
4713
4714 CC=$ac_ct_CC
4715fi
4716
4717fi
4718
4719
4720test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4721See \`config.log' for more details." >&5
4722echo "$as_me: error: no acceptable C compiler found in \$PATH
4723See \`config.log' for more details." >&2;}
4724 { (exit 1); exit 1; }; }
4725
4726# Provide some information about the compiler.
4727echo "$as_me:$LINENO:" \
4728 "checking for C compiler version" >&5
4729ac_compiler=`set X $ac_compile; echo $2`
4730{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4731 (eval $ac_compiler --version </dev/null >&5) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }
4735{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4736 (eval $ac_compiler -v </dev/null >&5) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }
4740{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4741 (eval $ac_compiler -V </dev/null >&5) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }
4745
4746echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4747echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4748if test "${ac_cv_c_compiler_gnu+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751 cat >conftest.$ac_ext <<_ACEOF
4752/* confdefs.h. */
4753_ACEOF
4754cat confdefs.h >>conftest.$ac_ext
4755cat >>conftest.$ac_ext <<_ACEOF
4756/* end confdefs.h. */
4757
4758int
4759main ()
4760{
4761#ifndef __GNUC__
4762 choke me
4763#endif
4764
4765 ;
4766 return 0;
4767}
4768_ACEOF
4769rm -f conftest.$ac_objext
4770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } &&
8fb84ecc
AC
4778 { ac_try='test -z "$ac_c_werror_flag"
4779 || test ! -s conftest.err'
5464f5a1
NN
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; } &&
4785 { ac_try='test -s conftest.$ac_objext'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; }; then
4791 ac_compiler_gnu=yes
4792else
4793 echo "$as_me: failed program was:" >&5
4794sed 's/^/| /' conftest.$ac_ext >&5
4795
4796ac_compiler_gnu=no
4797fi
4798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4799ac_cv_c_compiler_gnu=$ac_compiler_gnu
4800
4801fi
4802echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4803echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4804GCC=`test $ac_compiler_gnu = yes && echo yes`
4805ac_test_CFLAGS=${CFLAGS+set}
4806ac_save_CFLAGS=$CFLAGS
4807CFLAGS="-g"
4808echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4809echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4810if test "${ac_cv_prog_cc_g+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812else
4813 cat >conftest.$ac_ext <<_ACEOF
4814/* confdefs.h. */
4815_ACEOF
4816cat confdefs.h >>conftest.$ac_ext
4817cat >>conftest.$ac_ext <<_ACEOF
4818/* end confdefs.h. */
4819
4820int
4821main ()
4822{
4823
4824 ;
4825 return 0;
4826}
4827_ACEOF
4828rm -f conftest.$ac_objext
4829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
8fb84ecc
AC
4837 { ac_try='test -z "$ac_c_werror_flag"
4838 || test ! -s conftest.err'
5464f5a1
NN
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; } &&
4844 { ac_try='test -s conftest.$ac_objext'
4845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 (eval $ac_try) 2>&5
4847 ac_status=$?
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4850 ac_cv_prog_cc_g=yes
4851else
4852 echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
4855ac_cv_prog_cc_g=no
4856fi
4857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4858fi
4859echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4860echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4861if test "$ac_test_CFLAGS" = set; then
4862 CFLAGS=$ac_save_CFLAGS
4863elif test $ac_cv_prog_cc_g = yes; then
4864 if test "$GCC" = yes; then
4865 CFLAGS="-g -O2"
4866 else
4867 CFLAGS="-g"
4868 fi
4869else
4870 if test "$GCC" = yes; then
4871 CFLAGS="-O2"
4872 else
4873 CFLAGS=
4874 fi
4875fi
4876echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4877echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4878if test "${ac_cv_prog_cc_stdc+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880else
4881 ac_cv_prog_cc_stdc=no
4882ac_save_CC=$CC
4883cat >conftest.$ac_ext <<_ACEOF
4884/* confdefs.h. */
4885_ACEOF
4886cat confdefs.h >>conftest.$ac_ext
4887cat >>conftest.$ac_ext <<_ACEOF
4888/* end confdefs.h. */
4889#include <stdarg.h>
4890#include <stdio.h>
4891#include <sys/types.h>
4892#include <sys/stat.h>
4893/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4894struct buf { int x; };
4895FILE * (*rcsopen) (struct buf *, struct stat *, int);
4896static char *e (p, i)
4897 char **p;
4898 int i;
4899{
4900 return p[i];
4901}
4902static char *f (char * (*g) (char **, int), char **p, ...)
4903{
4904 char *s;
4905 va_list v;
4906 va_start (v,p);
4907 s = g (p, va_arg (v,int));
4908 va_end (v);
4909 return s;
4910}
4911
4912/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4913 function prototypes and stuff, but not '\xHH' hex character constants.
4914 These don't provoke an error unfortunately, instead are silently treated
4915 as 'x'. The following induces an error, until -std1 is added to get
4916 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4917 array size at least. It's necessary to write '\x00'==0 to get something
4918 that's true only with -std1. */
4919int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4920
4921int test (int i, double x);
4922struct s1 {int (*f) (int a);};
4923struct s2 {int (*f) (double a);};
4924int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4925int argc;
4926char **argv;
4927int
4928main ()
4929{
4930return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4931 ;
4932 return 0;
4933}
4934_ACEOF
4935# Don't try gcc -ansi; that turns off useful extensions and
4936# breaks some systems' header files.
4937# AIX -qlanglvl=ansi
4938# Ultrix and OSF/1 -std1
4939# HP-UX 10.20 and later -Ae
4940# HP-UX older versions -Aa -D_HPUX_SOURCE
4941# SVR4 -Xc -D__EXTENSIONS__
4942for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4943do
4944 CC="$ac_save_CC $ac_arg"
4945 rm -f conftest.$ac_objext
4946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
8fb84ecc
AC
4954 { ac_try='test -z "$ac_c_werror_flag"
4955 || test ! -s conftest.err'
5464f5a1
NN
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; } &&
4961 { ac_try='test -s conftest.$ac_objext'
4962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963 (eval $ac_try) 2>&5
4964 ac_status=$?
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); }; }; then
4967 ac_cv_prog_cc_stdc=$ac_arg
4968break
4969else
4970 echo "$as_me: failed program was:" >&5
4971sed 's/^/| /' conftest.$ac_ext >&5
4972
4973fi
4974rm -f conftest.err conftest.$ac_objext
4975done
4976rm -f conftest.$ac_ext conftest.$ac_objext
4977CC=$ac_save_CC
4978
4979fi
4980
4981case "x$ac_cv_prog_cc_stdc" in
4982 x|xno)
4983 echo "$as_me:$LINENO: result: none needed" >&5
4984echo "${ECHO_T}none needed" >&6 ;;
4985 *)
4986 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4987echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4988 CC="$CC $ac_cv_prog_cc_stdc" ;;
4989esac
4990
4991# Some people use a C++ compiler to compile C. Since we use `exit',
4992# in C++ we need to declare it. In case someone uses the same compiler
4993# for both compiling C and C++ we need to have the C++ compiler decide
4994# the declaration of exit, since it's the most demanding environment.
4995cat >conftest.$ac_ext <<_ACEOF
4996#ifndef __cplusplus
4997 choke me
4998#endif
4999_ACEOF
5000rm -f conftest.$ac_objext
5001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
8fb84ecc
AC
5009 { ac_try='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5464f5a1
NN
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 (eval $ac_try) 2>&5
5019 ac_status=$?
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5022 for ac_declaration in \
5023 '' \
5024 'extern "C" void std::exit (int) throw (); using std::exit;' \
5025 'extern "C" void std::exit (int); using std::exit;' \
5026 'extern "C" void exit (int) throw ();' \
5027 'extern "C" void exit (int);' \
5028 'void exit (int);'
5029do
5030 cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h. */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h. */
5036$ac_declaration
5037#include <stdlib.h>
5038int
5039main ()
5040{
5041exit (42);
5042 ;
5043 return 0;
5044}
5045_ACEOF
5046rm -f conftest.$ac_objext
5047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048 (eval $ac_compile) 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
8fb84ecc
AC
5055 { ac_try='test -z "$ac_c_werror_flag"
5056 || test ! -s conftest.err'
5464f5a1
NN
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; } &&
5062 { ac_try='test -s conftest.$ac_objext'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 :
5069else
5070 echo "$as_me: failed program was:" >&5
5071sed 's/^/| /' conftest.$ac_ext >&5
5072
5073continue
5074fi
5075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5076 cat >conftest.$ac_ext <<_ACEOF
5077/* confdefs.h. */
5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h. */
5082$ac_declaration
5083int
5084main ()
5085{
5086exit (42);
5087 ;
5088 return 0;
5089}
5090_ACEOF
5091rm -f conftest.$ac_objext
5092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5093 (eval $ac_compile) 2>conftest.er1
5094 ac_status=$?
5095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
8fb84ecc
AC
5100 { ac_try='test -z "$ac_c_werror_flag"
5101 || test ! -s conftest.err'
5464f5a1
NN
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 (eval $ac_try) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; } &&
5107 { ac_try='test -s conftest.$ac_objext'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; }; then
5113 break
5114else
5115 echo "$as_me: failed program was:" >&5
5116sed 's/^/| /' conftest.$ac_ext >&5
5117
5118fi
5119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5120done
5121rm -f conftest*
5122if test -n "$ac_declaration"; then
5123 echo '#ifdef __cplusplus' >>confdefs.h
5124 echo $ac_declaration >>confdefs.h
5125 echo '#endif' >>confdefs.h
252b5132 5126fi
5464f5a1 5127
b3baf5d0 5128else
5464f5a1
NN
5129 echo "$as_me: failed program was:" >&5
5130sed 's/^/| /' conftest.$ac_ext >&5
5131
b3baf5d0 5132fi
5464f5a1
NN
5133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5134ac_ext=c
5135ac_cpp='$CPP $CPPFLAGS'
5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5139
5464f5a1 5140
429cc0ae 5141ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw"
5464f5a1
NN
5142if test -n "$ac_tool_prefix"; then
5143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5144set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5145echo "$as_me:$LINENO: checking for $ac_word" >&5
5146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5147if test "${ac_cv_prog_RANLIB+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5149else
5464f5a1
NN
5150 if test -n "$RANLIB"; then
5151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 5152else
5464f5a1
NN
5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
252b5132 5163 fi
5464f5a1
NN
5164done
5165done
5166
252b5132
RH
5167fi
5168fi
5464f5a1
NN
5169RANLIB=$ac_cv_prog_RANLIB
5170if test -n "$RANLIB"; then
5171 echo "$as_me:$LINENO: result: $RANLIB" >&5
5172echo "${ECHO_T}$RANLIB" >&6
252b5132 5173else
5464f5a1
NN
5174 echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6
252b5132
RH
5176fi
5177
5464f5a1
NN
5178fi
5179if test -z "$ac_cv_prog_RANLIB"; then
5180 ac_ct_RANLIB=$RANLIB
5181 # Extract the first word of "ranlib", so it can be a program name with args.
5182set dummy ranlib; ac_word=$2
5183echo "$as_me:$LINENO: checking for $ac_word" >&5
5184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5187else
5464f5a1
NN
5188 if test -n "$ac_ct_RANLIB"; then
5189 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 5190else
5464f5a1
NN
5191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_ac_ct_RANLIB="ranlib"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202done
5203done
5204
5205 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
5206fi
5207fi
5464f5a1
NN
5208ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5209if test -n "$ac_ct_RANLIB"; then
5210 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5211echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 5212else
5464f5a1
NN
5213 echo "$as_me:$LINENO: result: no" >&5
5214echo "${ECHO_T}no" >&6
b3baf5d0 5215fi
252b5132 5216
5464f5a1 5217 RANLIB=$ac_ct_RANLIB
6be7c12c 5218else
5464f5a1 5219 RANLIB="$ac_cv_prog_RANLIB"
252b5132 5220fi
5464f5a1 5221
6be7c12c 5222ac_ext=c
6be7c12c 5223ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
5224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5228echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5229# On Suns, sometimes $CPP names a directory.
5230if test -n "$CPP" && test -d "$CPP"; then
5231 CPP=
6be7c12c 5232fi
5464f5a1
NN
5233if test -z "$CPP"; then
5234 if test "${ac_cv_prog_CPP+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5236else
5464f5a1
NN
5237 # Double quotes because CPP needs to be expanded
5238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5239 do
5240 ac_preproc_ok=false
5241for ac_c_preproc_warn_flag in '' yes
5242do
5243 # Use a header file that comes with gcc, so configuring glibc
5244 # with a fresh cross-compiler works.
5245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5246 # <limits.h> exists even on freestanding compilers.
5247 # On the NeXT, cc -E runs the code through the compiler's parser,
5248 # not just through cpp. "Syntax error" is here to catch this case.
5249 cat >conftest.$ac_ext <<_ACEOF
5250/* confdefs.h. */
5251_ACEOF
5252cat confdefs.h >>conftest.$ac_ext
5253cat >>conftest.$ac_ext <<_ACEOF
5254/* end confdefs.h. */
5255#ifdef __STDC__
5256# include <limits.h>
5257#else
5258# include <assert.h>
252b5132 5259#endif
5464f5a1
NN
5260 Syntax error
5261_ACEOF
5262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } >/dev/null; then
5270 if test -s conftest.err; then
5271 ac_cpp_err=$ac_c_preproc_warn_flag
5272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5273 else
5274 ac_cpp_err=
5275 fi
6be7c12c 5276else
5464f5a1 5277 ac_cpp_err=yes
6be7c12c 5278fi
5464f5a1
NN
5279if test -z "$ac_cpp_err"; then
5280 :
6be7c12c 5281else
5464f5a1
NN
5282 echo "$as_me: failed program was:" >&5
5283sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 # Broken: fails on valid input.
5286continue
5287fi
5288rm -f conftest.err conftest.$ac_ext
5289
5290 # OK, works on sane cases. Now check whether non-existent headers
5291 # can be detected and how.
5292 cat >conftest.$ac_ext <<_ACEOF
5293/* confdefs.h. */
5294_ACEOF
5295cat confdefs.h >>conftest.$ac_ext
5296cat >>conftest.$ac_ext <<_ACEOF
5297/* end confdefs.h. */
5298#include <ac_nonexistent.h>
5299_ACEOF
5300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev/null; then
5308 if test -s conftest.err; then
5309 ac_cpp_err=$ac_c_preproc_warn_flag
5310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5311 else
5312 ac_cpp_err=
5313 fi
252b5132 5314else
5464f5a1 5315 ac_cpp_err=yes
252b5132 5316fi
5464f5a1
NN
5317if test -z "$ac_cpp_err"; then
5318 # Broken: success on invalid input.
5319continue
5320else
5321 echo "$as_me: failed program was:" >&5
5322sed 's/^/| /' conftest.$ac_ext >&5
6be7c12c 5323
5464f5a1
NN
5324 # Passes both tests.
5325ac_preproc_ok=:
5326break
252b5132 5327fi
5464f5a1 5328rm -f conftest.err conftest.$ac_ext
6be7c12c 5329
5464f5a1
NN
5330done
5331# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5332rm -f conftest.err conftest.$ac_ext
5333if $ac_preproc_ok; then
5334 break
252b5132
RH
5335fi
5336
5464f5a1
NN
5337 done
5338 ac_cv_prog_CPP=$CPP
252b5132 5339
252b5132 5340fi
5464f5a1 5341 CPP=$ac_cv_prog_CPP
6be7c12c 5342else
5464f5a1
NN
5343 ac_cv_prog_CPP=$CPP
5344fi
5345echo "$as_me:$LINENO: result: $CPP" >&5
5346echo "${ECHO_T}$CPP" >&6
5347ac_preproc_ok=false
5348for ac_c_preproc_warn_flag in '' yes
5349do
5350 # Use a header file that comes with gcc, so configuring glibc
5351 # with a fresh cross-compiler works.
5352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5353 # <limits.h> exists even on freestanding compilers.
6be7c12c 5354 # On the NeXT, cc -E runs the code through the compiler's parser,
5464f5a1
NN
5355 # not just through cpp. "Syntax error" is here to catch this case.
5356 cat >conftest.$ac_ext <<_ACEOF
5357/* confdefs.h. */
5358_ACEOF
5359cat confdefs.h >>conftest.$ac_ext
5360cat >>conftest.$ac_ext <<_ACEOF
5361/* end confdefs.h. */
5362#ifdef __STDC__
5363# include <limits.h>
5364#else
5365# include <assert.h>
5366#endif
5367 Syntax error
5368_ACEOF
5369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5371 ac_status=$?
5372 grep -v '^ *+' conftest.er1 >conftest.err
5373 rm -f conftest.er1
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } >/dev/null; then
5377 if test -s conftest.err; then
5378 ac_cpp_err=$ac_c_preproc_warn_flag
5379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5380 else
5381 ac_cpp_err=
5382 fi
252b5132 5383else
5464f5a1
NN
5384 ac_cpp_err=yes
5385fi
5386if test -z "$ac_cpp_err"; then
6be7c12c 5387 :
252b5132 5388else
5464f5a1
NN
5389 echo "$as_me: failed program was:" >&5
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
5392 # Broken: fails on valid input.
5393continue
5394fi
5395rm -f conftest.err conftest.$ac_ext
5396
5397 # OK, works on sane cases. Now check whether non-existent headers
5398 # can be detected and how.
5399 cat >conftest.$ac_ext <<_ACEOF
5400/* confdefs.h. */
5401_ACEOF
5402cat confdefs.h >>conftest.$ac_ext
5403cat >>conftest.$ac_ext <<_ACEOF
5404/* end confdefs.h. */
5405#include <ac_nonexistent.h>
5406_ACEOF
5407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5409 ac_status=$?
5410 grep -v '^ *+' conftest.er1 >conftest.err
5411 rm -f conftest.er1
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } >/dev/null; then
5415 if test -s conftest.err; then
5416 ac_cpp_err=$ac_c_preproc_warn_flag
5417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5418 else
5419 ac_cpp_err=
5420 fi
b3baf5d0 5421else
5464f5a1 5422 ac_cpp_err=yes
6be7c12c 5423fi
5464f5a1
NN
5424if test -z "$ac_cpp_err"; then
5425 # Broken: success on invalid input.
5426continue
ac48eca1 5427else
5464f5a1
NN
5428 echo "$as_me: failed program was:" >&5
5429sed 's/^/| /' conftest.$ac_ext >&5
5430
5431 # Passes both tests.
5432ac_preproc_ok=:
5433break
b3baf5d0 5434fi
5464f5a1 5435rm -f conftest.err conftest.$ac_ext
6be7c12c 5436
5464f5a1
NN
5437done
5438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5439rm -f conftest.err conftest.$ac_ext
5440if $ac_preproc_ok; then
5441 :
6be7c12c 5442else
5464f5a1
NN
5443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5444See \`config.log' for more details." >&5
5445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5446See \`config.log' for more details." >&2;}
5447 { (exit 1); exit 1; }; }
ac48eca1 5448fi
5464f5a1
NN
5449
5450ac_ext=c
5451ac_cpp='$CPP $CPPFLAGS'
5452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5454ac_compiler_gnu=$ac_cv_c_compiler_gnu
5455
5456
5457echo "$as_me:$LINENO: checking for egrep" >&5
5458echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5459if test "${ac_cv_prog_egrep+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5461else
5464f5a1
NN
5462 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5463 then ac_cv_prog_egrep='grep -E'
5464 else ac_cv_prog_egrep='egrep'
5465 fi
b3baf5d0 5466fi
5464f5a1
NN
5467echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5468echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5469 EGREP=$ac_cv_prog_egrep
5470
ac48eca1 5471
5464f5a1
NN
5472echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5473echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5474if test "${ac_cv_header_stdc+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5476else
5464f5a1
NN
5477 cat >conftest.$ac_ext <<_ACEOF
5478/* confdefs.h. */
5479_ACEOF
5480cat confdefs.h >>conftest.$ac_ext
5481cat >>conftest.$ac_ext <<_ACEOF
5482/* end confdefs.h. */
252b5132
RH
5483#include <stdlib.h>
5484#include <stdarg.h>
5485#include <string.h>
5486#include <float.h>
5464f5a1
NN
5487
5488int
5489main ()
5490{
5491
5492 ;
5493 return 0;
5494}
5495_ACEOF
5496rm -f conftest.$ac_objext
5497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5498 (eval $ac_compile) 2>conftest.er1
5499 ac_status=$?
5500 grep -v '^ *+' conftest.er1 >conftest.err
5501 rm -f conftest.er1
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
8fb84ecc
AC
5505 { ac_try='test -z "$ac_c_werror_flag"
5506 || test ! -s conftest.err'
5464f5a1
NN
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 (eval $ac_try) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; } &&
5512 { ac_try='test -s conftest.$ac_objext'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 (eval $ac_try) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; }; then
252b5132
RH
5518 ac_cv_header_stdc=yes
5519else
5464f5a1
NN
5520 echo "$as_me: failed program was:" >&5
5521sed 's/^/| /' conftest.$ac_ext >&5
5522
5523ac_cv_header_stdc=no
252b5132 5524fi
5464f5a1 5525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5526
5527if test $ac_cv_header_stdc = yes; then
5528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464f5a1
NN
5529 cat >conftest.$ac_ext <<_ACEOF
5530/* confdefs.h. */
5531_ACEOF
5532cat confdefs.h >>conftest.$ac_ext
5533cat >>conftest.$ac_ext <<_ACEOF
5534/* end confdefs.h. */
252b5132 5535#include <string.h>
5464f5a1
NN
5536
5537_ACEOF
252b5132 5538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5539 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5540 :
5541else
252b5132
RH
5542 ac_cv_header_stdc=no
5543fi
5544rm -f conftest*
5545
5546fi
5547
5548if test $ac_cv_header_stdc = yes; then
5549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464f5a1
NN
5550 cat >conftest.$ac_ext <<_ACEOF
5551/* confdefs.h. */
5552_ACEOF
5553cat confdefs.h >>conftest.$ac_ext
5554cat >>conftest.$ac_ext <<_ACEOF
5555/* end confdefs.h. */
252b5132 5556#include <stdlib.h>
5464f5a1
NN
5557
5558_ACEOF
252b5132 5559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5560 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5561 :
5562else
252b5132
RH
5563 ac_cv_header_stdc=no
5564fi
5565rm -f conftest*
5566
5567fi
5568
5569if test $ac_cv_header_stdc = yes; then
5570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464f5a1 5571 if test "$cross_compiling" = yes; then
252b5132
RH
5572 :
5573else
5464f5a1
NN
5574 cat >conftest.$ac_ext <<_ACEOF
5575/* confdefs.h. */
5576_ACEOF
5577cat confdefs.h >>conftest.$ac_ext
5578cat >>conftest.$ac_ext <<_ACEOF
5579/* end confdefs.h. */
252b5132 5580#include <ctype.h>
5464f5a1
NN
5581#if ((' ' & 0x0FF) == 0x020)
5582# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5583# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5584#else
5585# define ISLOWER(c) \
5586 (('a' <= (c) && (c) <= 'i') \
5587 || ('j' <= (c) && (c) <= 'r') \
5588 || ('s' <= (c) && (c) <= 'z'))
5589# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5590#endif
6be7c12c 5591
5464f5a1
NN
5592#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5593int
5594main ()
5595{
5596 int i;
5597 for (i = 0; i < 256; i++)
5598 if (XOR (islower (i), ISLOWER (i))
5599 || toupper (i) != TOUPPER (i))
5600 exit(2);
5601 exit (0);
5602}
5603_ACEOF
5604rm -f conftest$ac_exeext
5605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606 (eval $ac_link) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 (eval $ac_try) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
252b5132
RH
5615 :
5616else
5464f5a1
NN
5617 echo "$as_me: program exited with status $ac_status" >&5
5618echo "$as_me: failed program was:" >&5
5619sed 's/^/| /' conftest.$ac_ext >&5
5620
5621( exit $ac_status )
5622ac_cv_header_stdc=no
252b5132 5623fi
5464f5a1 5624rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5625fi
252b5132
RH
5626fi
5627fi
5464f5a1
NN
5628echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5629echo "${ECHO_T}$ac_cv_header_stdc" >&6
6be7c12c 5630if test $ac_cv_header_stdc = yes; then
5464f5a1
NN
5631
5632cat >>confdefs.h <<\_ACEOF
252b5132 5633#define STDC_HEADERS 1
5464f5a1 5634_ACEOF
252b5132
RH
5635
5636fi
5637
5464f5a1
NN
5638echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5639echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5640if test "${ac_cv_c_const+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5642else
5464f5a1
NN
5643 cat >conftest.$ac_ext <<_ACEOF
5644/* confdefs.h. */
5645_ACEOF
5646cat confdefs.h >>conftest.$ac_ext
5647cat >>conftest.$ac_ext <<_ACEOF
5648/* end confdefs.h. */
6be7c12c 5649
5464f5a1
NN
5650int
5651main ()
5652{
5653/* FIXME: Include the comments suggested by Paul. */
5654#ifndef __cplusplus
5655 /* Ultrix mips cc rejects this. */
5656 typedef int charset[2];
5657 const charset x;
5658 /* SunOS 4.1.1 cc rejects this. */
5659 char const *const *ccp;
5660 char **p;
5661 /* NEC SVR4.0.2 mips cc rejects this. */
5662 struct point {int x, y;};
5663 static struct point const zero = {0,0};
5664 /* AIX XL C 1.02.0.0 rejects this.
5665 It does not let you subtract one const X* pointer from another in
5666 an arm of an if-expression whose if-part is not a constant
5667 expression */
5668 const char *g = "string";
5669 ccp = &g + (g ? g-g : 0);
5670 /* HPUX 7.0 cc rejects these. */
5671 ++ccp;
5672 p = (char**) ccp;
5673 ccp = (char const *const *) p;
5674 { /* SCO 3.2v4 cc rejects this. */
5675 char *t;
5676 char const *s = 0 ? (char *) 0 : (char const *) 0;
5677
5678 *t++ = 0;
5679 }
5680 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5681 int x[] = {25, 17};
5682 const int *foo = &x[0];
5683 ++foo;
5684 }
5685 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5686 typedef const int *iptr;
5687 iptr p = 0;
5688 ++p;
5689 }
5690 { /* AIX XL C 1.02.0.0 rejects this saying
5691 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5692 struct s { int j; const int *ap[3]; };
5693 struct s *b; b->j = 5;
5694 }
5695 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5696 const int foo = 10;
5697 }
5698#endif
6be7c12c 5699
5464f5a1
NN
5700 ;
5701 return 0;
5702}
5703_ACEOF
5704rm -f conftest.$ac_objext
5705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
8fb84ecc
AC
5713 { ac_try='test -z "$ac_c_werror_flag"
5714 || test ! -s conftest.err'
5464f5a1
NN
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest.$ac_objext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
252b5132
RH
5726 ac_cv_c_const=yes
5727else
5464f5a1
NN
5728 echo "$as_me: failed program was:" >&5
5729sed 's/^/| /' conftest.$ac_ext >&5
5730
5731ac_cv_c_const=no
252b5132 5732fi
5464f5a1 5733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5734fi
5464f5a1
NN
5735echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5736echo "${ECHO_T}$ac_cv_c_const" >&6
6be7c12c 5737if test $ac_cv_c_const = no; then
5464f5a1
NN
5738
5739cat >>confdefs.h <<\_ACEOF
5740#define const
5741_ACEOF
252b5132
RH
5742
5743fi
5744
5464f5a1
NN
5745echo "$as_me:$LINENO: checking for inline" >&5
5746echo $ECHO_N "checking for inline... $ECHO_C" >&6
5747if test "${ac_cv_c_inline+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5749else
5750 ac_cv_c_inline=no
5751for ac_kw in inline __inline__ __inline; do
5464f5a1
NN
5752 cat >conftest.$ac_ext <<_ACEOF
5753/* confdefs.h. */
5754_ACEOF
5755cat confdefs.h >>conftest.$ac_ext
5756cat >>conftest.$ac_ext <<_ACEOF
5757/* end confdefs.h. */
5758#ifndef __cplusplus
5759typedef int foo_t;
5760static $ac_kw foo_t static_foo () {return 0; }
5761$ac_kw foo_t foo () {return 0; }
5762#endif
252b5132 5763
5464f5a1
NN
5764_ACEOF
5765rm -f conftest.$ac_objext
5766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
8fb84ecc
AC
5774 { ac_try='test -z "$ac_c_werror_flag"
5775 || test ! -s conftest.err'
5464f5a1
NN
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest.$ac_objext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
252b5132
RH
5787 ac_cv_c_inline=$ac_kw; break
5788else
5464f5a1
NN
5789 echo "$as_me: failed program was:" >&5
5790sed 's/^/| /' conftest.$ac_ext >&5
5791
252b5132 5792fi
5464f5a1 5793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5794done
5795
5464f5a1
NN
5796fi
5797echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5798echo "${ECHO_T}$ac_cv_c_inline" >&6
5799
5800
5801case $ac_cv_c_inline in
5802 inline | yes) ;;
5803 *)
5804 case $ac_cv_c_inline in
5805 no) ac_val=;;
5806 *) ac_val=$ac_cv_c_inline;;
5807 esac
5808 cat >>confdefs.h <<_ACEOF
5809#ifndef __cplusplus
5810#define inline $ac_val
5811#endif
5812_ACEOF
5813 ;;
5814esac
5815
5816# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5827 inttypes.h stdint.h unistd.h
5828do
5829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5830echo "$as_me:$LINENO: checking for $ac_header" >&5
5831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5832if eval "test \"\${$as_ac_Header+set}\" = set"; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835 cat >conftest.$ac_ext <<_ACEOF
5836/* confdefs.h. */
5837_ACEOF
5838cat confdefs.h >>conftest.$ac_ext
5839cat >>conftest.$ac_ext <<_ACEOF
5840/* end confdefs.h. */
5841$ac_includes_default
5842
5843#include <$ac_header>
5844_ACEOF
5845rm -f conftest.$ac_objext
5846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5847 (eval $ac_compile) 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
8fb84ecc
AC
5854 { ac_try='test -z "$ac_c_werror_flag"
5855 || test ! -s conftest.err'
5464f5a1
NN
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 (eval $ac_try) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; } &&
5861 { ac_try='test -s conftest.$ac_objext'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 (eval $ac_try) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; }; then
5867 eval "$as_ac_Header=yes"
5868else
5869 echo "$as_me: failed program was:" >&5
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
5872eval "$as_ac_Header=no"
5873fi
5874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875fi
5876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5878if test `eval echo '${'$as_ac_Header'}'` = yes; then
5879 cat >>confdefs.h <<_ACEOF
5880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5881_ACEOF
5882
252b5132 5883fi
6be7c12c 5884
5464f5a1 5885done
252b5132 5886
5464f5a1
NN
5887
5888echo "$as_me:$LINENO: checking for off_t" >&5
5889echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5890if test "${ac_cv_type_off_t+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 5892else
5464f5a1
NN
5893 cat >conftest.$ac_ext <<_ACEOF
5894/* confdefs.h. */
5895_ACEOF
5896cat confdefs.h >>conftest.$ac_ext
5897cat >>conftest.$ac_ext <<_ACEOF
5898/* end confdefs.h. */
5899$ac_includes_default
5900int
5901main ()
5902{
5903if ((off_t *) 0)
5904 return 0;
5905if (sizeof (off_t))
5906 return 0;
5907 ;
5908 return 0;
5909}
5910_ACEOF
5911rm -f conftest.$ac_objext
5912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913 (eval $ac_compile) 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
8fb84ecc
AC
5920 { ac_try='test -z "$ac_c_werror_flag"
5921 || test ! -s conftest.err'
5464f5a1
NN
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 (eval $ac_try) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
653f71ca 5933 ac_cv_type_off_t=yes
252b5132 5934else
5464f5a1
NN
5935 echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5937
5464f5a1 5938ac_cv_type_off_t=no
6be7c12c 5939fi
5464f5a1
NN
5940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5941fi
5942echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5943echo "${ECHO_T}$ac_cv_type_off_t" >&6
5944if test $ac_cv_type_off_t = yes; then
5945 :
5946else
5947
5948cat >>confdefs.h <<_ACEOF
252b5132 5949#define off_t long
5464f5a1 5950_ACEOF
252b5132
RH
5951
5952fi
5953
5464f5a1
NN
5954echo "$as_me:$LINENO: checking for size_t" >&5
5955echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5956if test "${ac_cv_type_size_t+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5958else
5464f5a1
NN
5959 cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h. */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h. */
5965$ac_includes_default
5966int
5967main ()
5968{
5969if ((size_t *) 0)
5970 return 0;
5971if (sizeof (size_t))
5972 return 0;
5973 ;
5974 return 0;
5975}
5976_ACEOF
5977rm -f conftest.$ac_objext
5978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5979 (eval $ac_compile) 2>conftest.er1
5980 ac_status=$?
5981 grep -v '^ *+' conftest.er1 >conftest.err
5982 rm -f conftest.er1
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
8fb84ecc
AC
5986 { ac_try='test -z "$ac_c_werror_flag"
5987 || test ! -s conftest.err'
5464f5a1
NN
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 (eval $ac_try) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest.$ac_objext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
653f71ca 5999 ac_cv_type_size_t=yes
252b5132 6000else
5464f5a1
NN
6001 echo "$as_me: failed program was:" >&5
6002sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 6003
5464f5a1 6004ac_cv_type_size_t=no
6be7c12c 6005fi
5464f5a1
NN
6006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6007fi
6008echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6009echo "${ECHO_T}$ac_cv_type_size_t" >&6
6010if test $ac_cv_type_size_t = yes; then
6011 :
6012else
6013
6014cat >>confdefs.h <<_ACEOF
252b5132 6015#define size_t unsigned
5464f5a1 6016_ACEOF
252b5132
RH
6017
6018fi
6019
6020# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6021# for constant arguments. Useless!
5464f5a1
NN
6022echo "$as_me:$LINENO: checking for working alloca.h" >&5
6023echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6024if test "${ac_cv_working_alloca_h+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026else
6027 cat >conftest.$ac_ext <<_ACEOF
6028/* confdefs.h. */
6029_ACEOF
6030cat confdefs.h >>conftest.$ac_ext
6031cat >>conftest.$ac_ext <<_ACEOF
6032/* end confdefs.h. */
252b5132 6033#include <alloca.h>
5464f5a1
NN
6034int
6035main ()
6036{
6037char *p = (char *) alloca (2 * sizeof (int));
6038 ;
6039 return 0;
6040}
6041_ACEOF
6042rm -f conftest.$ac_objext conftest$ac_exeext
6043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6044 (eval $ac_link) 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
8fb84ecc
AC
6051 { ac_try='test -z "$ac_c_werror_flag"
6052 || test ! -s conftest.err'
5464f5a1
NN
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 (eval $ac_try) 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; } &&
6058 { ac_try='test -s conftest$ac_exeext'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060 (eval $ac_try) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 ac_cv_working_alloca_h=yes
6065else
6066 echo "$as_me: failed program was:" >&5
6067sed 's/^/| /' conftest.$ac_ext >&5
6068
6069ac_cv_working_alloca_h=no
6070fi
6071rm -f conftest.err conftest.$ac_objext \
6072 conftest$ac_exeext conftest.$ac_ext
6073fi
6074echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6075echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6076if test $ac_cv_working_alloca_h = yes; then
6077
6078cat >>confdefs.h <<\_ACEOF
252b5132 6079#define HAVE_ALLOCA_H 1
5464f5a1 6080_ACEOF
252b5132
RH
6081
6082fi
6083
5464f5a1
NN
6084echo "$as_me:$LINENO: checking for alloca" >&5
6085echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6086if test "${ac_cv_func_alloca_works+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6088else
5464f5a1
NN
6089 cat >conftest.$ac_ext <<_ACEOF
6090/* confdefs.h. */
6091_ACEOF
6092cat confdefs.h >>conftest.$ac_ext
6093cat >>conftest.$ac_ext <<_ACEOF
6094/* end confdefs.h. */
252b5132
RH
6095#ifdef __GNUC__
6096# define alloca __builtin_alloca
6097#else
6098# ifdef _MSC_VER
6099# include <malloc.h>
6100# define alloca _alloca
6101# else
6102# if HAVE_ALLOCA_H
6103# include <alloca.h>
6104# else
6105# ifdef _AIX
6106 #pragma alloca
6107# else
6108# ifndef alloca /* predefined by HP cc +Olibcalls */
6109char *alloca ();
6110# endif
6111# endif
6112# endif
6113# endif
6114#endif
6115
5464f5a1
NN
6116int
6117main ()
6118{
6119char *p = (char *) alloca (1);
6120 ;
6121 return 0;
6122}
6123_ACEOF
6124rm -f conftest.$ac_objext conftest$ac_exeext
6125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6126 (eval $ac_link) 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
8fb84ecc
AC
6133 { ac_try='test -z "$ac_c_werror_flag"
6134 || test ! -s conftest.err'
5464f5a1
NN
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; } &&
6140 { ac_try='test -s conftest$ac_exeext'
6141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 (eval $ac_try) 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
252b5132
RH
6146 ac_cv_func_alloca_works=yes
6147else
5464f5a1
NN
6148 echo "$as_me: failed program was:" >&5
6149sed 's/^/| /' conftest.$ac_ext >&5
6150
6151ac_cv_func_alloca_works=no
252b5132 6152fi
5464f5a1
NN
6153rm -f conftest.err conftest.$ac_objext \
6154 conftest$ac_exeext conftest.$ac_ext
252b5132 6155fi
5464f5a1
NN
6156echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6157echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6158
252b5132 6159if test $ac_cv_func_alloca_works = yes; then
252b5132 6160
5464f5a1
NN
6161cat >>confdefs.h <<\_ACEOF
6162#define HAVE_ALLOCA 1
6163_ACEOF
b3baf5d0 6164
5464f5a1 6165else
6be7c12c 6166 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5464f5a1
NN
6167# that cause trouble. Some versions do not even contain alloca or
6168# contain a buggy version. If you still want to use their alloca,
6169# use ar to extract alloca.o from them instead of compiling alloca.c.
6170
6171ALLOCA=alloca.$ac_objext
6172
6173cat >>confdefs.h <<\_ACEOF
252b5132 6174#define C_ALLOCA 1
5464f5a1 6175_ACEOF
252b5132 6176
6be7c12c 6177
5464f5a1
NN
6178echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6179echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6180if test "${ac_cv_os_cray+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6182else
5464f5a1
NN
6183 cat >conftest.$ac_ext <<_ACEOF
6184/* confdefs.h. */
6185_ACEOF
6186cat confdefs.h >>conftest.$ac_ext
6187cat >>conftest.$ac_ext <<_ACEOF
6188/* end confdefs.h. */
252b5132
RH
6189#if defined(CRAY) && ! defined(CRAY2)
6190webecray
6191#else
6192wenotbecray
6193#endif
6194
5464f5a1 6195_ACEOF
252b5132 6196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 6197 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6198 ac_cv_os_cray=yes
6199else
252b5132
RH
6200 ac_cv_os_cray=no
6201fi
6202rm -f conftest*
6203
6204fi
5464f5a1
NN
6205echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6206echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6207if test $ac_cv_os_cray = yes; then
5464f5a1
NN
6208 for ac_func in _getb67 GETB67 getb67; do
6209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6210echo "$as_me:$LINENO: checking for $ac_func" >&5
6211echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6212if eval "test \"\${$as_ac_var+set}\" = set"; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215 cat >conftest.$ac_ext <<_ACEOF
6216/* confdefs.h. */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h. */
6221/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6223#define $ac_func innocuous_$ac_func
6224
252b5132 6225/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6226 which can conflict with char $ac_func (); below.
6227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6228 <limits.h> exists even on freestanding compilers. */
6229
6230#ifdef __STDC__
6231# include <limits.h>
6232#else
6233# include <assert.h>
6234#endif
6be7c12c 6235
5464f5a1 6236#undef $ac_func
252b5132 6237
5464f5a1
NN
6238/* Override any gcc2 internal prototype to avoid an error. */
6239#ifdef __cplusplus
6240extern "C"
6241{
6242#endif
6243/* We use char because int might match the return type of a gcc2
6244 builtin and then its argument prototype would still apply. */
6245char $ac_func ();
252b5132
RH
6246/* The GNU C library defines this for functions which it implements
6247 to always fail with ENOSYS. Some functions are actually named
6248 something starting with __ and the normal name is an alias. */
6249#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6250choke me
6251#else
5464f5a1
NN
6252char (*f) () = $ac_func;
6253#endif
6254#ifdef __cplusplus
6255}
252b5132
RH
6256#endif
6257
5464f5a1
NN
6258int
6259main ()
6260{
6261return f != $ac_func;
6262 ;
6263 return 0;
6264}
6265_ACEOF
6266rm -f conftest.$ac_objext conftest$ac_exeext
6267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6268 (eval $ac_link) 2>conftest.er1
6269 ac_status=$?
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } &&
8fb84ecc
AC
6275 { ac_try='test -z "$ac_c_werror_flag"
6276 || test ! -s conftest.err'
5464f5a1
NN
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 (eval $ac_try) 2>&5
6279 ac_status=$?
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; } &&
6282 { ac_try='test -s conftest$ac_exeext'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6288 eval "$as_ac_var=yes"
6289else
6290 echo "$as_me: failed program was:" >&5
6291sed 's/^/| /' conftest.$ac_ext >&5
6292
6293eval "$as_ac_var=no"
6294fi
6295rm -f conftest.err conftest.$ac_objext \
6296 conftest$ac_exeext conftest.$ac_ext
6297fi
6298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6299echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6300if test `eval echo '${'$as_ac_var'}'` = yes; then
6301
6302cat >>confdefs.h <<_ACEOF
252b5132 6303#define CRAY_STACKSEG_END $ac_func
5464f5a1 6304_ACEOF
252b5132 6305
5464f5a1 6306 break
252b5132
RH
6307fi
6308
5464f5a1 6309 done
252b5132
RH
6310fi
6311
5464f5a1
NN
6312echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6313echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6314if test "${ac_cv_c_stack_direction+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6316else
6317 if test "$cross_compiling" = yes; then
6318 ac_cv_c_stack_direction=0
6319else
5464f5a1
NN
6320 cat >conftest.$ac_ext <<_ACEOF
6321/* confdefs.h. */
6322_ACEOF
6323cat confdefs.h >>conftest.$ac_ext
6324cat >>conftest.$ac_ext <<_ACEOF
6325/* end confdefs.h. */
6326int
252b5132
RH
6327find_stack_direction ()
6328{
6329 static char *addr = 0;
6330 auto char dummy;
6331 if (addr == 0)
6332 {
6333 addr = &dummy;
6334 return find_stack_direction ();
6335 }
6336 else
6337 return (&dummy > addr) ? 1 : -1;
6338}
5464f5a1
NN
6339
6340int
252b5132
RH
6341main ()
6342{
5464f5a1 6343 exit (find_stack_direction () < 0);
252b5132 6344}
5464f5a1
NN
6345_ACEOF
6346rm -f conftest$ac_exeext
6347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348 (eval $ac_link) 2>&5
6349 ac_status=$?
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
252b5132
RH
6357 ac_cv_c_stack_direction=1
6358else
5464f5a1
NN
6359 echo "$as_me: program exited with status $ac_status" >&5
6360echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
6363( exit $ac_status )
6364ac_cv_c_stack_direction=-1
252b5132 6365fi
5464f5a1 6366rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6367fi
252b5132 6368fi
5464f5a1
NN
6369echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6370echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6371
5464f5a1 6372cat >>confdefs.h <<_ACEOF
252b5132 6373#define STACK_DIRECTION $ac_cv_c_stack_direction
5464f5a1
NN
6374_ACEOF
6375
252b5132
RH
6376
6377fi
6378
5464f5a1
NN
6379
6380
6381for ac_header in stdlib.h unistd.h
252b5132 6382do
5464f5a1
NN
6383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6384if eval "test \"\${$as_ac_Header+set}\" = set"; then
6385 echo "$as_me:$LINENO: checking for $ac_header" >&5
6386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6387if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6389fi
6390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6391echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6392else
6393 # Is the header compilable?
6394echo "$as_me:$LINENO: checking $ac_header usability" >&5
6395echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6396cat >conftest.$ac_ext <<_ACEOF
6397/* confdefs.h. */
6398_ACEOF
6399cat confdefs.h >>conftest.$ac_ext
6400cat >>conftest.$ac_ext <<_ACEOF
6401/* end confdefs.h. */
6402$ac_includes_default
6403#include <$ac_header>
6404_ACEOF
6405rm -f conftest.$ac_objext
6406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407 (eval $ac_compile) 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
8fb84ecc
AC
6414 { ac_try='test -z "$ac_c_werror_flag"
6415 || test ! -s conftest.err'
5464f5a1
NN
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; } &&
6421 { ac_try='test -s conftest.$ac_objext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_header_compiler=yes
6428else
6429 echo "$as_me: failed program was:" >&5
6430sed 's/^/| /' conftest.$ac_ext >&5
6431
6432ac_header_compiler=no
6433fi
6434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6436echo "${ECHO_T}$ac_header_compiler" >&6
6437
6438# Is the header present?
6439echo "$as_me:$LINENO: checking $ac_header presence" >&5
6440echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6441cat >conftest.$ac_ext <<_ACEOF
6442/* confdefs.h. */
6443_ACEOF
6444cat confdefs.h >>conftest.$ac_ext
6445cat >>conftest.$ac_ext <<_ACEOF
6446/* end confdefs.h. */
6447#include <$ac_header>
6448_ACEOF
6449if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6451 ac_status=$?
6452 grep -v '^ *+' conftest.er1 >conftest.err
6453 rm -f conftest.er1
6454 cat conftest.err >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } >/dev/null; then
6457 if test -s conftest.err; then
6458 ac_cpp_err=$ac_c_preproc_warn_flag
6459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6460 else
6461 ac_cpp_err=
6462 fi
252b5132 6463else
5464f5a1 6464 ac_cpp_err=yes
252b5132 6465fi
5464f5a1
NN
6466if test -z "$ac_cpp_err"; then
6467 ac_header_preproc=yes
6468else
6469 echo "$as_me: failed program was:" >&5
6470sed 's/^/| /' conftest.$ac_ext >&5
6471
6472 ac_header_preproc=no
252b5132 6473fi
5464f5a1
NN
6474rm -f conftest.err conftest.$ac_ext
6475echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6476echo "${ECHO_T}$ac_header_preproc" >&6
6477
6478# So? What about this header?
6479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6480 yes:no: )
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6482echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6484echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6485 ac_header_preproc=yes
6486 ;;
6487 no:yes:* )
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6489echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6491echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6493echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6495echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6497echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6499echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6500 (
6501 cat <<\_ASBOX
6502## ------------------------------------------ ##
6503## Report this to the AC_PACKAGE_NAME lists. ##
6504## ------------------------------------------ ##
6505_ASBOX
6506 ) |
6507 sed "s/^/$as_me: WARNING: /" >&2
6508 ;;
6509esac
6510echo "$as_me:$LINENO: checking for $ac_header" >&5
6511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6512if eval "test \"\${$as_ac_Header+set}\" = set"; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6514else
5464f5a1
NN
6515 eval "$as_ac_Header=\$ac_header_preproc"
6516fi
6517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6519
252b5132 6520fi
5464f5a1
NN
6521if test `eval echo '${'$as_ac_Header'}'` = yes; then
6522 cat >>confdefs.h <<_ACEOF
6523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6524_ACEOF
6525
6526fi
6527
252b5132
RH
6528done
6529
5464f5a1 6530
252b5132
RH
6531for ac_func in getpagesize
6532do
5464f5a1
NN
6533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6534echo "$as_me:$LINENO: checking for $ac_func" >&5
6535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6536if eval "test \"\${$as_ac_var+set}\" = set"; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538else
6539 cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h. */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h. */
6545/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6547#define $ac_func innocuous_$ac_func
6548
252b5132 6549/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6550 which can conflict with char $ac_func (); below.
6551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6552 <limits.h> exists even on freestanding compilers. */
6553
6554#ifdef __STDC__
6555# include <limits.h>
6556#else
6557# include <assert.h>
6558#endif
6be7c12c 6559
5464f5a1 6560#undef $ac_func
252b5132 6561
5464f5a1
NN
6562/* Override any gcc2 internal prototype to avoid an error. */
6563#ifdef __cplusplus
6564extern "C"
6565{
6566#endif
6567/* We use char because int might match the return type of a gcc2
6568 builtin and then its argument prototype would still apply. */
6569char $ac_func ();
252b5132
RH
6570/* The GNU C library defines this for functions which it implements
6571 to always fail with ENOSYS. Some functions are actually named
6572 something starting with __ and the normal name is an alias. */
6573#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6574choke me
6575#else
5464f5a1
NN
6576char (*f) () = $ac_func;
6577#endif
6578#ifdef __cplusplus
6579}
252b5132
RH
6580#endif
6581
5464f5a1
NN
6582int
6583main ()
6584{
6585return f != $ac_func;
6586 ;
6587 return 0;
6588}
6589_ACEOF
6590rm -f conftest.$ac_objext conftest$ac_exeext
6591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6592 (eval $ac_link) 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
8fb84ecc
AC
6599 { ac_try='test -z "$ac_c_werror_flag"
6600 || test ! -s conftest.err'
5464f5a1
NN
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; } &&
6606 { ac_try='test -s conftest$ac_exeext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6612 eval "$as_ac_var=yes"
6613else
6614 echo "$as_me: failed program was:" >&5
6615sed 's/^/| /' conftest.$ac_ext >&5
6616
6617eval "$as_ac_var=no"
6618fi
6619rm -f conftest.err conftest.$ac_objext \
6620 conftest$ac_exeext conftest.$ac_ext
6621fi
6622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6623echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6624if test `eval echo '${'$as_ac_var'}'` = yes; then
6625 cat >>confdefs.h <<_ACEOF
6626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6627_ACEOF
252b5132 6628
252b5132
RH
6629fi
6630done
6631
5464f5a1
NN
6632echo "$as_me:$LINENO: checking for working mmap" >&5
6633echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6634if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6636else
6637 if test "$cross_compiling" = yes; then
6638 ac_cv_func_mmap_fixed_mapped=no
6639else
5464f5a1
NN
6640 cat >conftest.$ac_ext <<_ACEOF
6641/* confdefs.h. */
6642_ACEOF
6643cat confdefs.h >>conftest.$ac_ext
6644cat >>conftest.$ac_ext <<_ACEOF
6645/* end confdefs.h. */
6646$ac_includes_default
6647/* malloc might have been renamed as rpl_malloc. */
6648#undef malloc
6be7c12c 6649
252b5132
RH
6650/* Thanks to Mike Haertel and Jim Avera for this test.
6651 Here is a matrix of mmap possibilities:
6652 mmap private not fixed
6653 mmap private fixed at somewhere currently unmapped
6654 mmap private fixed at somewhere already mapped
6655 mmap shared not fixed
6656 mmap shared fixed at somewhere currently unmapped
6657 mmap shared fixed at somewhere already mapped
6658 For private mappings, we should verify that changes cannot be read()
6659 back from the file, nor mmap's back from the file at a different
6660 address. (There have been systems where private was not correctly
6661 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 6662 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6663 like early versions of FreeBSD and possibly contemporary NetBSD.)
6664 For shared mappings, we should conversely verify that changes get
5464f5a1 6665 propagated back to all the places they're supposed to be.
252b5132
RH
6666
6667 Grep wants private fixed already mapped.
6668 The main things grep needs to know about mmap are:
6669 * does it exist and is it safe to write into the mmap'd area
6670 * how to use it (BSD variants) */
5464f5a1 6671
252b5132
RH
6672#include <fcntl.h>
6673#include <sys/mman.h>
6674
5464f5a1
NN
6675#if !STDC_HEADERS && !HAVE_STDLIB_H
6676char *malloc ();
6677#endif
6be7c12c 6678
5464f5a1
NN
6679/* This mess was copied from the GNU getpagesize.h. */
6680#if !HAVE_GETPAGESIZE
252b5132 6681/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 6682# if !HAVE_SYS_PARAM_H
252b5132
RH
6683# define HAVE_SYS_PARAM_H 1
6684# endif
6685
6686# ifdef _SC_PAGESIZE
6687# define getpagesize() sysconf(_SC_PAGESIZE)
6688# else /* no _SC_PAGESIZE */
5464f5a1 6689# if HAVE_SYS_PARAM_H
252b5132
RH
6690# include <sys/param.h>
6691# ifdef EXEC_PAGESIZE
6692# define getpagesize() EXEC_PAGESIZE
6693# else /* no EXEC_PAGESIZE */
6694# ifdef NBPG
6695# define getpagesize() NBPG * CLSIZE
6696# ifndef CLSIZE
6697# define CLSIZE 1
6698# endif /* no CLSIZE */
6699# else /* no NBPG */
6700# ifdef NBPC
6701# define getpagesize() NBPC
6702# else /* no NBPC */
6703# ifdef PAGESIZE
6704# define getpagesize() PAGESIZE
6705# endif /* PAGESIZE */
6706# endif /* no NBPC */
6707# endif /* no NBPG */
6708# endif /* no EXEC_PAGESIZE */
6709# else /* no HAVE_SYS_PARAM_H */
6710# define getpagesize() 8192 /* punt totally */
6711# endif /* no HAVE_SYS_PARAM_H */
6712# endif /* no _SC_PAGESIZE */
6713
6714#endif /* no HAVE_GETPAGESIZE */
6715
252b5132 6716int
5464f5a1 6717main ()
252b5132 6718{
5464f5a1
NN
6719 char *data, *data2, *data3;
6720 int i, pagesize;
6721 int fd;
6722
6723 pagesize = getpagesize ();
6724
6725 /* First, make a file with some known garbage in it. */
6726 data = (char *) malloc (pagesize);
6727 if (!data)
6728 exit (1);
6729 for (i = 0; i < pagesize; ++i)
6730 *(data + i) = rand ();
6731 umask (0);
6732 fd = creat ("conftest.mmap", 0600);
6733 if (fd < 0)
6734 exit (1);
6735 if (write (fd, data, pagesize) != pagesize)
6736 exit (1);
6737 close (fd);
6738
6739 /* Next, try to mmap the file at a fixed address which already has
6740 something else allocated at it. If we can, also make sure that
6741 we see the same garbage. */
6742 fd = open ("conftest.mmap", O_RDWR);
6743 if (fd < 0)
6744 exit (1);
6745 data2 = (char *) malloc (2 * pagesize);
6746 if (!data2)
6747 exit (1);
6748 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6749 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6750 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6751 exit (1);
6752 for (i = 0; i < pagesize; ++i)
6753 if (*(data + i) != *(data2 + i))
6754 exit (1);
6755
6756 /* Finally, make sure that changes to the mapped area do not
6757 percolate back to the file as seen by read(). (This is a bug on
6758 some variants of i386 svr4.0.) */
6759 for (i = 0; i < pagesize; ++i)
6760 *(data2 + i) = *(data2 + i) + 1;
6761 data3 = (char *) malloc (pagesize);
6762 if (!data3)
6763 exit (1);
6764 if (read (fd, data3, pagesize) != pagesize)
6765 exit (1);
6766 for (i = 0; i < pagesize; ++i)
6767 if (*(data + i) != *(data3 + i))
6768 exit (1);
6769 close (fd);
6770 exit (0);
252b5132 6771}
5464f5a1
NN
6772_ACEOF
6773rm -f conftest$ac_exeext
6774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 (eval $ac_try) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; }; then
252b5132
RH
6784 ac_cv_func_mmap_fixed_mapped=yes
6785else
5464f5a1
NN
6786 echo "$as_me: program exited with status $ac_status" >&5
6787echo "$as_me: failed program was:" >&5
6788sed 's/^/| /' conftest.$ac_ext >&5
6789
6790( exit $ac_status )
6791ac_cv_func_mmap_fixed_mapped=no
252b5132 6792fi
5464f5a1 6793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6794fi
252b5132 6795fi
5464f5a1
NN
6796echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6797echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6be7c12c 6798if test $ac_cv_func_mmap_fixed_mapped = yes; then
5464f5a1
NN
6799
6800cat >>confdefs.h <<\_ACEOF
252b5132 6801#define HAVE_MMAP 1
5464f5a1 6802_ACEOF
252b5132
RH
6803
6804fi
5464f5a1
NN
6805rm -f conftest.mmap
6806
6807
252b5132 6808
5464f5a1
NN
6809
6810
6811
6812
6813
6814
6815
6816
6817for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6818unistd.h values.h sys/param.h
6819do
5464f5a1
NN
6820as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6821if eval "test \"\${$as_ac_Header+set}\" = set"; then
6822 echo "$as_me:$LINENO: checking for $ac_header" >&5
6823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6824if eval "test \"\${$as_ac_Header+set}\" = set"; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6826fi
6827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6829else
6830 # Is the header compilable?
6831echo "$as_me:$LINENO: checking $ac_header usability" >&5
6832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6833cat >conftest.$ac_ext <<_ACEOF
6834/* confdefs.h. */
6835_ACEOF
6836cat confdefs.h >>conftest.$ac_ext
6837cat >>conftest.$ac_ext <<_ACEOF
6838/* end confdefs.h. */
6839$ac_includes_default
6840#include <$ac_header>
6841_ACEOF
6842rm -f conftest.$ac_objext
6843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6844 (eval $ac_compile) 2>conftest.er1
6845 ac_status=$?
6846 grep -v '^ *+' conftest.er1 >conftest.err
6847 rm -f conftest.er1
6848 cat conftest.err >&5
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
8fb84ecc
AC
6851 { ac_try='test -z "$ac_c_werror_flag"
6852 || test ! -s conftest.err'
5464f5a1
NN
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 (eval $ac_try) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; } &&
6858 { ac_try='test -s conftest.$ac_objext'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_header_compiler=yes
6865else
6866 echo "$as_me: failed program was:" >&5
6867sed 's/^/| /' conftest.$ac_ext >&5
6868
6869ac_header_compiler=no
6870fi
6871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6873echo "${ECHO_T}$ac_header_compiler" >&6
6874
6875# Is the header present?
6876echo "$as_me:$LINENO: checking $ac_header presence" >&5
6877echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6878cat >conftest.$ac_ext <<_ACEOF
6879/* confdefs.h. */
6880_ACEOF
6881cat confdefs.h >>conftest.$ac_ext
6882cat >>conftest.$ac_ext <<_ACEOF
6883/* end confdefs.h. */
6884#include <$ac_header>
6885_ACEOF
6886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6888 ac_status=$?
6889 grep -v '^ *+' conftest.er1 >conftest.err
6890 rm -f conftest.er1
6891 cat conftest.err >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } >/dev/null; then
6894 if test -s conftest.err; then
6895 ac_cpp_err=$ac_c_preproc_warn_flag
6896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6897 else
6898 ac_cpp_err=
6899 fi
252b5132 6900else
5464f5a1 6901 ac_cpp_err=yes
252b5132 6902fi
5464f5a1
NN
6903if test -z "$ac_cpp_err"; then
6904 ac_header_preproc=yes
6905else
6906 echo "$as_me: failed program was:" >&5
6907sed 's/^/| /' conftest.$ac_ext >&5
6908
6909 ac_header_preproc=no
252b5132 6910fi
5464f5a1
NN
6911rm -f conftest.err conftest.$ac_ext
6912echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6913echo "${ECHO_T}$ac_header_preproc" >&6
6914
6915# So? What about this header?
6916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6917 yes:no: )
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6922 ac_header_preproc=yes
6923 ;;
6924 no:yes:* )
6925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6937 (
6938 cat <<\_ASBOX
6939## ------------------------------------------ ##
6940## Report this to the AC_PACKAGE_NAME lists. ##
6941## ------------------------------------------ ##
6942_ASBOX
6943 ) |
6944 sed "s/^/$as_me: WARNING: /" >&2
6945 ;;
6946esac
6947echo "$as_me:$LINENO: checking for $ac_header" >&5
6948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6949if eval "test \"\${$as_ac_Header+set}\" = set"; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6951else
5464f5a1
NN
6952 eval "$as_ac_Header=\$ac_header_preproc"
6953fi
6954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6956
6957fi
6958if test `eval echo '${'$as_ac_Header'}'` = yes; then
6959 cat >>confdefs.h <<_ACEOF
6960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6961_ACEOF
6962
252b5132 6963fi
5464f5a1 6964
252b5132
RH
6965done
6966
5464f5a1
NN
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6978__argz_count __argz_stringify __argz_next
6979do
5464f5a1
NN
6980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6981echo "$as_me:$LINENO: checking for $ac_func" >&5
6982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6983if eval "test \"\${$as_ac_var+set}\" = set"; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986 cat >conftest.$ac_ext <<_ACEOF
6987/* confdefs.h. */
6988_ACEOF
6989cat confdefs.h >>conftest.$ac_ext
6990cat >>conftest.$ac_ext <<_ACEOF
6991/* end confdefs.h. */
6992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6994#define $ac_func innocuous_$ac_func
6995
252b5132 6996/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6997 which can conflict with char $ac_func (); below.
6998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999 <limits.h> exists even on freestanding compilers. */
7000
7001#ifdef __STDC__
7002# include <limits.h>
7003#else
7004# include <assert.h>
7005#endif
7006
7007#undef $ac_func
7008
252b5132 7009/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7010#ifdef __cplusplus
7011extern "C"
7012{
7013#endif
252b5132 7014/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7015 builtin and then its argument prototype would still apply. */
7016char $ac_func ();
252b5132
RH
7017/* The GNU C library defines this for functions which it implements
7018 to always fail with ENOSYS. Some functions are actually named
7019 something starting with __ and the normal name is an alias. */
7020#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7021choke me
7022#else
5464f5a1
NN
7023char (*f) () = $ac_func;
7024#endif
7025#ifdef __cplusplus
7026}
252b5132
RH
7027#endif
7028
5464f5a1
NN
7029int
7030main ()
7031{
7032return f != $ac_func;
7033 ;
7034 return 0;
7035}
7036_ACEOF
7037rm -f conftest.$ac_objext conftest$ac_exeext
7038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039 (eval $ac_link) 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
8fb84ecc
AC
7046 { ac_try='test -z "$ac_c_werror_flag"
7047 || test ! -s conftest.err'
5464f5a1
NN
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 (eval $ac_try) 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; } &&
7053 { ac_try='test -s conftest$ac_exeext'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055 (eval $ac_try) 2>&5
7056 ac_status=$?
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; }; then
7059 eval "$as_ac_var=yes"
7060else
7061 echo "$as_me: failed program was:" >&5
7062sed 's/^/| /' conftest.$ac_ext >&5
7063
7064eval "$as_ac_var=no"
7065fi
7066rm -f conftest.err conftest.$ac_objext \
7067 conftest$ac_exeext conftest.$ac_ext
7068fi
7069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7070echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7071if test `eval echo '${'$as_ac_var'}'` = yes; then
7072 cat >>confdefs.h <<_ACEOF
7073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7074_ACEOF
252b5132 7075
252b5132
RH
7076fi
7077done
7078
b3baf5d0 7079
6be7c12c 7080 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5464f5a1
NN
7081
7082for ac_func in stpcpy
252b5132 7083do
5464f5a1
NN
7084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7085echo "$as_me:$LINENO: checking for $ac_func" >&5
7086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7087if eval "test \"\${$as_ac_var+set}\" = set"; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089else
7090 cat >conftest.$ac_ext <<_ACEOF
7091/* confdefs.h. */
7092_ACEOF
7093cat confdefs.h >>conftest.$ac_ext
7094cat >>conftest.$ac_ext <<_ACEOF
7095/* end confdefs.h. */
7096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7098#define $ac_func innocuous_$ac_func
7099
252b5132 7100/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7101 which can conflict with char $ac_func (); below.
7102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7103 <limits.h> exists even on freestanding compilers. */
7104
7105#ifdef __STDC__
7106# include <limits.h>
7107#else
7108# include <assert.h>
7109#endif
6be7c12c 7110
5464f5a1 7111#undef $ac_func
252b5132 7112
5464f5a1
NN
7113/* Override any gcc2 internal prototype to avoid an error. */
7114#ifdef __cplusplus
7115extern "C"
7116{
7117#endif
7118/* We use char because int might match the return type of a gcc2
7119 builtin and then its argument prototype would still apply. */
7120char $ac_func ();
252b5132
RH
7121/* The GNU C library defines this for functions which it implements
7122 to always fail with ENOSYS. Some functions are actually named
7123 something starting with __ and the normal name is an alias. */
7124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7125choke me
7126#else
5464f5a1
NN
7127char (*f) () = $ac_func;
7128#endif
7129#ifdef __cplusplus
7130}
252b5132
RH
7131#endif
7132
5464f5a1
NN
7133int
7134main ()
7135{
7136return f != $ac_func;
7137 ;
7138 return 0;
7139}
7140_ACEOF
7141rm -f conftest.$ac_objext conftest$ac_exeext
7142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143 (eval $ac_link) 2>conftest.er1
7144 ac_status=$?
7145 grep -v '^ *+' conftest.er1 >conftest.err
7146 rm -f conftest.er1
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
8fb84ecc
AC
7150 { ac_try='test -z "$ac_c_werror_flag"
7151 || test ! -s conftest.err'
5464f5a1
NN
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; } &&
7157 { ac_try='test -s conftest$ac_exeext'
7158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159 (eval $ac_try) 2>&5
7160 ac_status=$?
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); }; }; then
7163 eval "$as_ac_var=yes"
7164else
7165 echo "$as_me: failed program was:" >&5
7166sed 's/^/| /' conftest.$ac_ext >&5
7167
7168eval "$as_ac_var=no"
7169fi
7170rm -f conftest.err conftest.$ac_objext \
7171 conftest$ac_exeext conftest.$ac_ext
7172fi
7173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7174echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7175if test `eval echo '${'$as_ac_var'}'` = yes; then
7176 cat >>confdefs.h <<_ACEOF
7177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7178_ACEOF
252b5132 7179
252b5132
RH
7180fi
7181done
7182
7183 fi
7184 if test "${ac_cv_func_stpcpy}" = "yes"; then
5464f5a1
NN
7185
7186cat >>confdefs.h <<\_ACEOF
252b5132 7187#define HAVE_STPCPY 1
5464f5a1 7188_ACEOF
252b5132
RH
7189
7190 fi
7191
7192 if test $ac_cv_header_locale_h = yes; then
5464f5a1
NN
7193 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7194echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7195if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198 cat >conftest.$ac_ext <<_ACEOF
7199/* confdefs.h. */
7200_ACEOF
7201cat confdefs.h >>conftest.$ac_ext
7202cat >>conftest.$ac_ext <<_ACEOF
7203/* end confdefs.h. */
252b5132 7204#include <locale.h>
5464f5a1
NN
7205int
7206main ()
7207{
252b5132 7208return LC_MESSAGES
5464f5a1
NN
7209 ;
7210 return 0;
7211}
7212_ACEOF
7213rm -f conftest.$ac_objext conftest$ac_exeext
7214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7215 (eval $ac_link) 2>conftest.er1
7216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
8fb84ecc
AC
7222 { ac_try='test -z "$ac_c_werror_flag"
7223 || test ! -s conftest.err'
5464f5a1
NN
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; } &&
7229 { ac_try='test -s conftest$ac_exeext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 (eval $ac_try) 2>&5
7232 ac_status=$?
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
252b5132
RH
7235 am_cv_val_LC_MESSAGES=yes
7236else
5464f5a1
NN
7237 echo "$as_me: failed program was:" >&5
7238sed 's/^/| /' conftest.$ac_ext >&5
7239
7240am_cv_val_LC_MESSAGES=no
252b5132 7241fi
5464f5a1
NN
7242rm -f conftest.err conftest.$ac_objext \
7243 conftest$ac_exeext conftest.$ac_ext
252b5132 7244fi
5464f5a1
NN
7245echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7246echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6be7c12c 7247 if test $am_cv_val_LC_MESSAGES = yes; then
5464f5a1
NN
7248
7249cat >>confdefs.h <<\_ACEOF
252b5132 7250#define HAVE_LC_MESSAGES 1
5464f5a1 7251_ACEOF
252b5132
RH
7252
7253 fi
7254 fi
5464f5a1
NN
7255 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7256echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7257 # Check whether --enable-nls or --disable-nls was given.
7258if test "${enable_nls+set}" = set; then
7259 enableval="$enable_nls"
7260 USE_NLS=$enableval
7261else
7262 USE_NLS=yes
5464f5a1
NN
7263fi;
7264 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7265echo "${ECHO_T}$USE_NLS" >&6
6be7c12c 7266
252b5132
RH
7267
7268 USE_INCLUDED_LIBINTL=no
7269
7270 if test "$USE_NLS" = "yes"; then
5464f5a1
NN
7271 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7272echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7273
7274# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7275if test "${with_included_gettext+set}" = set; then
7276 withval="$with_included_gettext"
7277 nls_cv_force_use_gnu_gettext=$withval
7278else
7279 nls_cv_force_use_gnu_gettext=no
5464f5a1
NN
7280fi;
7281 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7282echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7283
7284 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7285 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7286 nls_cv_header_intl=
7287 nls_cv_header_libgt=
a53bf506 7288 CATOBJEXT=
252b5132 7289
5464f5a1
NN
7290 if test "${ac_cv_header_libintl_h+set}" = set; then
7291 echo "$as_me:$LINENO: checking for libintl.h" >&5
7292echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7293if test "${ac_cv_header_libintl_h+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295fi
7296echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7297echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7298else
7299 # Is the header compilable?
7300echo "$as_me:$LINENO: checking libintl.h usability" >&5
7301echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7302cat >conftest.$ac_ext <<_ACEOF
7303/* confdefs.h. */
7304_ACEOF
7305cat confdefs.h >>conftest.$ac_ext
7306cat >>conftest.$ac_ext <<_ACEOF
7307/* end confdefs.h. */
7308$ac_includes_default
252b5132 7309#include <libintl.h>
5464f5a1
NN
7310_ACEOF
7311rm -f conftest.$ac_objext
7312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7313 (eval $ac_compile) 2>conftest.er1
7314 ac_status=$?
7315 grep -v '^ *+' conftest.er1 >conftest.err
7316 rm -f conftest.er1
7317 cat conftest.err >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
8fb84ecc
AC
7320 { ac_try='test -z "$ac_c_werror_flag"
7321 || test ! -s conftest.err'
5464f5a1
NN
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 (eval $ac_try) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; } &&
7327 { ac_try='test -s conftest.$ac_objext'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329 (eval $ac_try) 2>&5
7330 ac_status=$?
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; }; then
7333 ac_header_compiler=yes
7334else
7335 echo "$as_me: failed program was:" >&5
7336sed 's/^/| /' conftest.$ac_ext >&5
7337
7338ac_header_compiler=no
7339fi
7340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7342echo "${ECHO_T}$ac_header_compiler" >&6
7343
7344# Is the header present?
7345echo "$as_me:$LINENO: checking libintl.h presence" >&5
7346echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7347cat >conftest.$ac_ext <<_ACEOF
7348/* confdefs.h. */
7349_ACEOF
7350cat confdefs.h >>conftest.$ac_ext
7351cat >>conftest.$ac_ext <<_ACEOF
7352/* end confdefs.h. */
7353#include <libintl.h>
7354_ACEOF
7355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } >/dev/null; then
7363 if test -s conftest.err; then
7364 ac_cpp_err=$ac_c_preproc_warn_flag
7365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7366 else
7367 ac_cpp_err=
7368 fi
252b5132 7369else
5464f5a1 7370 ac_cpp_err=yes
252b5132 7371fi
5464f5a1
NN
7372if test -z "$ac_cpp_err"; then
7373 ac_header_preproc=yes
7374else
7375 echo "$as_me: failed program was:" >&5
7376sed 's/^/| /' conftest.$ac_ext >&5
7377
7378 ac_header_preproc=no
252b5132 7379fi
5464f5a1
NN
7380rm -f conftest.err conftest.$ac_ext
7381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7382echo "${ECHO_T}$ac_header_preproc" >&6
7383
7384# So? What about this header?
7385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7386 yes:no: )
7387 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7388echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7390echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7391 ac_header_preproc=yes
7392 ;;
7393 no:yes:* )
7394 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7395echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7397echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7399echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7401echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7402 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7403echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7405echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7406 (
7407 cat <<\_ASBOX
7408## ------------------------------------------ ##
7409## Report this to the AC_PACKAGE_NAME lists. ##
7410## ------------------------------------------ ##
7411_ASBOX
7412 ) |
7413 sed "s/^/$as_me: WARNING: /" >&2
7414 ;;
7415esac
7416echo "$as_me:$LINENO: checking for libintl.h" >&5
7417echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7418if test "${ac_cv_header_libintl_h+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7420else
5464f5a1
NN
7421 ac_cv_header_libintl_h=$ac_header_preproc
7422fi
7423echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7424echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7425
7426fi
7427if test $ac_cv_header_libintl_h = yes; then
7428 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7429echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7430if test "${gt_cv_func_gettext_libc+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432else
7433 cat >conftest.$ac_ext <<_ACEOF
7434/* confdefs.h. */
7435_ACEOF
7436cat confdefs.h >>conftest.$ac_ext
7437cat >>conftest.$ac_ext <<_ACEOF
7438/* end confdefs.h. */
252b5132 7439#include <libintl.h>
5464f5a1
NN
7440int
7441main ()
7442{
252b5132 7443return (int) gettext ("")
5464f5a1
NN
7444 ;
7445 return 0;
7446}
7447_ACEOF
7448rm -f conftest.$ac_objext conftest$ac_exeext
7449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7450 (eval $ac_link) 2>conftest.er1
7451 ac_status=$?
7452 grep -v '^ *+' conftest.er1 >conftest.err
7453 rm -f conftest.er1
7454 cat conftest.err >&5
7455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } &&
8fb84ecc
AC
7457 { ac_try='test -z "$ac_c_werror_flag"
7458 || test ! -s conftest.err'
5464f5a1
NN
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; } &&
7464 { ac_try='test -s conftest$ac_exeext'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; }; then
252b5132
RH
7470 gt_cv_func_gettext_libc=yes
7471else
5464f5a1
NN
7472 echo "$as_me: failed program was:" >&5
7473sed 's/^/| /' conftest.$ac_ext >&5
7474
7475gt_cv_func_gettext_libc=no
252b5132 7476fi
5464f5a1
NN
7477rm -f conftest.err conftest.$ac_objext \
7478 conftest$ac_exeext conftest.$ac_ext
252b5132 7479fi
5464f5a1
NN
7480echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7481echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7482
7483 if test "$gt_cv_func_gettext_libc" != "yes"; then
5464f5a1
NN
7484 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7485echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7486if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7488else
5464f5a1 7489 ac_check_lib_save_LIBS=$LIBS
252b5132 7490LIBS="-lintl $LIBS"
5464f5a1
NN
7491cat >conftest.$ac_ext <<_ACEOF
7492/* confdefs.h. */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h. */
7497
252b5132 7498/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7499#ifdef __cplusplus
7500extern "C"
7501#endif
252b5132 7502/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7503 builtin and then its argument prototype would still apply. */
7504char bindtextdomain ();
7505int
7506main ()
7507{
7508bindtextdomain ();
7509 ;
7510 return 0;
7511}
7512_ACEOF
7513rm -f conftest.$ac_objext conftest$ac_exeext
7514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515 (eval $ac_link) 2>conftest.er1
7516 ac_status=$?
7517 grep -v '^ *+' conftest.er1 >conftest.err
7518 rm -f conftest.er1
7519 cat conftest.err >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
8fb84ecc
AC
7522 { ac_try='test -z "$ac_c_werror_flag"
7523 || 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
7535 ac_cv_lib_intl_bindtextdomain=yes
7536else
7537 echo "$as_me: failed program was:" >&5
7538sed 's/^/| /' conftest.$ac_ext >&5
7539
7540ac_cv_lib_intl_bindtextdomain=no
7541fi
7542rm -f conftest.err conftest.$ac_objext \
7543 conftest$ac_exeext conftest.$ac_ext
7544LIBS=$ac_check_lib_save_LIBS
7545fi
7546echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7547echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7548if test $ac_cv_lib_intl_bindtextdomain = yes; then
7549 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7550echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7551if test "${gt_cv_func_gettext_libintl+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553else
7554 cat >conftest.$ac_ext <<_ACEOF
7555/* confdefs.h. */
7556_ACEOF
7557cat confdefs.h >>conftest.$ac_ext
7558cat >>conftest.$ac_ext <<_ACEOF
7559/* end confdefs.h. */
252b5132 7560
5464f5a1
NN
7561int
7562main ()
7563{
252b5132 7564return (int) gettext ("")
5464f5a1
NN
7565 ;
7566 return 0;
7567}
7568_ACEOF
7569rm -f conftest.$ac_objext conftest$ac_exeext
7570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7571 (eval $ac_link) 2>conftest.er1
7572 ac_status=$?
7573 grep -v '^ *+' conftest.er1 >conftest.err
7574 rm -f conftest.er1
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } &&
8fb84ecc
AC
7578 { ac_try='test -z "$ac_c_werror_flag"
7579 || test ! -s conftest.err'
5464f5a1
NN
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 (eval $ac_try) 2>&5
7582 ac_status=$?
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; } &&
7585 { ac_try='test -s conftest$ac_exeext'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 (eval $ac_try) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; }; then
252b5132
RH
7591 gt_cv_func_gettext_libintl=yes
7592else
5464f5a1
NN
7593 echo "$as_me: failed program was:" >&5
7594sed 's/^/| /' conftest.$ac_ext >&5
7595
7596gt_cv_func_gettext_libintl=no
252b5132 7597fi
5464f5a1
NN
7598rm -f conftest.err conftest.$ac_objext \
7599 conftest$ac_exeext conftest.$ac_ext
252b5132 7600fi
5464f5a1
NN
7601echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7602echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7603fi
7604
7605 fi
7606
7607 if test "$gt_cv_func_gettext_libc" = "yes" \
7608 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5464f5a1
NN
7609
7610cat >>confdefs.h <<\_ACEOF
252b5132 7611#define HAVE_GETTEXT 1
5464f5a1 7612_ACEOF
252b5132
RH
7613
7614 # Extract the first word of "msgfmt", so it can be a program name with args.
7615set dummy msgfmt; ac_word=$2
5464f5a1
NN
7616echo "$as_me:$LINENO: checking for $ac_word" >&5
7617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7618if test "${ac_cv_path_MSGFMT+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7620else
7621 case "$MSGFMT" in
7622 /*)
7623 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7624 ;;
7625 *)
7626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7627 for ac_dir in $PATH; do
7628 test -z "$ac_dir" && ac_dir=.
7629 if test -f $ac_dir/$ac_word; then
7630 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7631 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7632 break
7633 fi
7634 fi
7635 done
7636 IFS="$ac_save_ifs"
7637 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7638 ;;
7639esac
7640fi
7641MSGFMT="$ac_cv_path_MSGFMT"
7642if test -n "$MSGFMT"; then
5464f5a1
NN
7643 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7644echo "${ECHO_T}$MSGFMT" >&6
252b5132 7645else
5464f5a1
NN
7646 echo "$as_me:$LINENO: result: no" >&5
7647echo "${ECHO_T}no" >&6
252b5132
RH
7648fi
7649 if test "$MSGFMT" != "no"; then
5464f5a1
NN
7650
7651for ac_func in dcgettext
252b5132 7652do
5464f5a1
NN
7653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7654echo "$as_me:$LINENO: checking for $ac_func" >&5
7655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7656if eval "test \"\${$as_ac_var+set}\" = set"; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7658else
7659 cat >conftest.$ac_ext <<_ACEOF
7660/* confdefs.h. */
7661_ACEOF
7662cat confdefs.h >>conftest.$ac_ext
7663cat >>conftest.$ac_ext <<_ACEOF
7664/* end confdefs.h. */
7665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7667#define $ac_func innocuous_$ac_func
7668
252b5132 7669/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7670 which can conflict with char $ac_func (); below.
7671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7672 <limits.h> exists even on freestanding compilers. */
7673
7674#ifdef __STDC__
7675# include <limits.h>
7676#else
7677# include <assert.h>
7678#endif
6be7c12c 7679
5464f5a1 7680#undef $ac_func
252b5132 7681
5464f5a1
NN
7682/* Override any gcc2 internal prototype to avoid an error. */
7683#ifdef __cplusplus
7684extern "C"
7685{
7686#endif
7687/* We use char because int might match the return type of a gcc2
7688 builtin and then its argument prototype would still apply. */
7689char $ac_func ();
252b5132
RH
7690/* The GNU C library defines this for functions which it implements
7691 to always fail with ENOSYS. Some functions are actually named
7692 something starting with __ and the normal name is an alias. */
7693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7694choke me
7695#else
5464f5a1
NN
7696char (*f) () = $ac_func;
7697#endif
7698#ifdef __cplusplus
7699}
252b5132
RH
7700#endif
7701
5464f5a1
NN
7702int
7703main ()
7704{
7705return f != $ac_func;
7706 ;
7707 return 0;
7708}
7709_ACEOF
7710rm -f conftest.$ac_objext conftest$ac_exeext
7711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7712 (eval $ac_link) 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } &&
8fb84ecc
AC
7719 { ac_try='test -z "$ac_c_werror_flag"
7720 || test ! -s conftest.err'
5464f5a1
NN
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; } &&
7726 { ac_try='test -s conftest$ac_exeext'
7727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728 (eval $ac_try) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); }; }; then
7732 eval "$as_ac_var=yes"
7733else
7734 echo "$as_me: failed program was:" >&5
7735sed 's/^/| /' conftest.$ac_ext >&5
7736
7737eval "$as_ac_var=no"
7738fi
7739rm -f conftest.err conftest.$ac_objext \
7740 conftest$ac_exeext conftest.$ac_ext
7741fi
7742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7743echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7744if test `eval echo '${'$as_ac_var'}'` = yes; then
7745 cat >>confdefs.h <<_ACEOF
7746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7747_ACEOF
252b5132 7748
252b5132
RH
7749fi
7750done
7751
7752 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7753set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7754echo "$as_me:$LINENO: checking for $ac_word" >&5
7755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7756if test "${ac_cv_path_GMSGFMT+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7758else
5464f5a1
NN
7759 case $GMSGFMT in
7760 [\\/]* | ?:[\\/]*)
252b5132
RH
7761 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7762 ;;
252b5132 7763 *)
5464f5a1
NN
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7774 fi
7775done
7776done
7777
252b5132
RH
7778 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7779 ;;
7780esac
7781fi
5464f5a1
NN
7782GMSGFMT=$ac_cv_path_GMSGFMT
7783
252b5132 7784if test -n "$GMSGFMT"; then
5464f5a1
NN
7785 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7786echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7787else
5464f5a1
NN
7788 echo "$as_me:$LINENO: result: no" >&5
7789echo "${ECHO_T}no" >&6
252b5132
RH
7790fi
7791
7792 # Extract the first word of "xgettext", so it can be a program name with args.
7793set dummy xgettext; ac_word=$2
5464f5a1
NN
7794echo "$as_me:$LINENO: checking for $ac_word" >&5
7795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7796if test "${ac_cv_path_XGETTEXT+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7798else
7799 case "$XGETTEXT" in
7800 /*)
7801 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7802 ;;
7803 *)
7804 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7805 for ac_dir in $PATH; do
7806 test -z "$ac_dir" && ac_dir=.
7807 if test -f $ac_dir/$ac_word; then
7808 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7809 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7810 break
7811 fi
7812 fi
7813 done
7814 IFS="$ac_save_ifs"
7815 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7816 ;;
7817esac
7818fi
7819XGETTEXT="$ac_cv_path_XGETTEXT"
7820if test -n "$XGETTEXT"; then
5464f5a1
NN
7821 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7822echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7823else
5464f5a1
NN
7824 echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
252b5132
RH
7826fi
7827
5464f5a1
NN
7828 cat >conftest.$ac_ext <<_ACEOF
7829/* confdefs.h. */
7830_ACEOF
7831cat confdefs.h >>conftest.$ac_ext
7832cat >>conftest.$ac_ext <<_ACEOF
7833/* end confdefs.h. */
252b5132 7834
5464f5a1
NN
7835int
7836main ()
7837{
252b5132
RH
7838extern int _nl_msg_cat_cntr;
7839 return _nl_msg_cat_cntr
5464f5a1
NN
7840 ;
7841 return 0;
7842}
7843_ACEOF
7844rm -f conftest.$ac_objext conftest$ac_exeext
7845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7846 (eval $ac_link) 2>conftest.er1
7847 ac_status=$?
7848 grep -v '^ *+' conftest.er1 >conftest.err
7849 rm -f conftest.er1
7850 cat conftest.err >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
8fb84ecc
AC
7853 { ac_try='test -z "$ac_c_werror_flag"
7854 || test ! -s conftest.err'
5464f5a1
NN
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; } &&
7860 { ac_try='test -s conftest$ac_exeext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
252b5132
RH
7866 CATOBJEXT=.gmo
7867 DATADIRNAME=share
7868else
5464f5a1
NN
7869 echo "$as_me: failed program was:" >&5
7870sed 's/^/| /' conftest.$ac_ext >&5
7871
7872CATOBJEXT=.mo
252b5132
RH
7873 DATADIRNAME=lib
7874fi
5464f5a1
NN
7875rm -f conftest.err conftest.$ac_objext \
7876 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7877 INSTOBJEXT=.mo
7878 fi
7879 fi
5464f5a1 7880
b3baf5d0 7881fi
252b5132 7882
6be7c12c 7883
5464f5a1
NN
7884
7885
a53bf506 7886 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
7887 # Neither gettext nor catgets in included in the C library.
7888 # Fall back on GNU gettext library (assuming it is present).
7889 nls_cv_use_gnu_gettext=yes
252b5132
RH
7890 fi
7891 fi
7892
7893 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7894 INTLOBJS="\$(GETTOBJS)"
7895 # Extract the first word of "msgfmt", so it can be a program name with args.
7896set dummy msgfmt; ac_word=$2
5464f5a1
NN
7897echo "$as_me:$LINENO: checking for $ac_word" >&5
7898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7899if test "${ac_cv_path_MSGFMT+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7901else
7902 case "$MSGFMT" in
7903 /*)
7904 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7905 ;;
7906 *)
7907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7908 for ac_dir in $PATH; do
7909 test -z "$ac_dir" && ac_dir=.
7910 if test -f $ac_dir/$ac_word; then
7911 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7912 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7913 break
7914 fi
7915 fi
7916 done
7917 IFS="$ac_save_ifs"
7918 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7919 ;;
7920esac
7921fi
7922MSGFMT="$ac_cv_path_MSGFMT"
7923if test -n "$MSGFMT"; then
5464f5a1
NN
7924 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7925echo "${ECHO_T}$MSGFMT" >&6
252b5132 7926else
5464f5a1
NN
7927 echo "$as_me:$LINENO: result: no" >&5
7928echo "${ECHO_T}no" >&6
252b5132
RH
7929fi
7930
7931 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7932set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7933echo "$as_me:$LINENO: checking for $ac_word" >&5
7934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7935if test "${ac_cv_path_GMSGFMT+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7937else
5464f5a1
NN
7938 case $GMSGFMT in
7939 [\\/]* | ?:[\\/]*)
252b5132
RH
7940 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7941 ;;
252b5132 7942 *)
5464f5a1
NN
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954done
7955done
7956
252b5132
RH
7957 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7958 ;;
7959esac
7960fi
5464f5a1
NN
7961GMSGFMT=$ac_cv_path_GMSGFMT
7962
252b5132 7963if test -n "$GMSGFMT"; then
5464f5a1
NN
7964 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7965echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7966else
5464f5a1
NN
7967 echo "$as_me:$LINENO: result: no" >&5
7968echo "${ECHO_T}no" >&6
252b5132
RH
7969fi
7970
7971 # Extract the first word of "xgettext", so it can be a program name with args.
7972set dummy xgettext; ac_word=$2
5464f5a1
NN
7973echo "$as_me:$LINENO: checking for $ac_word" >&5
7974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7975if test "${ac_cv_path_XGETTEXT+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7977else
7978 case "$XGETTEXT" in
7979 /*)
7980 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7981 ;;
7982 *)
7983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7984 for ac_dir in $PATH; do
7985 test -z "$ac_dir" && ac_dir=.
7986 if test -f $ac_dir/$ac_word; then
7987 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7988 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7989 break
7990 fi
7991 fi
7992 done
7993 IFS="$ac_save_ifs"
7994 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7995 ;;
7996esac
7997fi
7998XGETTEXT="$ac_cv_path_XGETTEXT"
7999if test -n "$XGETTEXT"; then
5464f5a1
NN
8000 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8001echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8002else
5464f5a1
NN
8003 echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6
252b5132
RH
8005fi
8006
5464f5a1 8007
252b5132
RH
8008 USE_INCLUDED_LIBINTL=yes
8009 CATOBJEXT=.gmo
8010 INSTOBJEXT=.mo
8011 DATADIRNAME=share
8012 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8013 INTLLIBS=$INTLDEPS
8014 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8015 nls_cv_header_intl=libintl.h
8016 nls_cv_header_libgt=libgettext.h
8017 fi
8018
8019 if test "$XGETTEXT" != ":"; then
8020 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8021 : ;
8022 else
5464f5a1
NN
8023 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8024echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
8025 XGETTEXT=":"
8026 fi
8027 fi
8028
8029 # We need to process the po/ directory.
8030 POSUB=po
8031 else
8032 DATADIRNAME=share
8033 nls_cv_header_intl=libintl.h
8034 nls_cv_header_libgt=libgettext.h
8035 fi
8036
8037 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8038 # because some of the sources are only built for this goal.
8039 if test "$PACKAGE" = gettext; then
8040 USE_NLS=yes
8041 USE_INCLUDED_LIBINTL=yes
8042 fi
8043
8044 for lang in $ALL_LINGUAS; do
8045 GMOFILES="$GMOFILES $lang.gmo"
8046 POFILES="$POFILES $lang.po"
8047 done
8048
5464f5a1
NN
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
c46f8c51
AC
8060 if test "x$CATOBJEXT" != "x"; then
8061
8062cat >>confdefs.h <<\_ACEOF
8063#define ENABLE_NLS 1
8064_ACEOF
8065
8066 fi
5464f5a1 8067
6be7c12c 8068
252b5132
RH
8069 if test "x$CATOBJEXT" != "x"; then
8070 if test "x$ALL_LINGUAS" = "x"; then
8071 LINGUAS=
8072 else
5464f5a1
NN
8073 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8074echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8075 NEW_LINGUAS=
8076 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8077 case "$ALL_LINGUAS" in
8078 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8079 esac
8080 done
8081 LINGUAS=$NEW_LINGUAS
5464f5a1
NN
8082 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8083echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8084 fi
8085
8086 if test -n "$LINGUAS"; then
8087 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8088 fi
8089 fi
8090
8091 if test $ac_cv_header_locale_h = yes; then
8092 INCLUDE_LOCALE_H="#include <locale.h>"
8093 else
8094 INCLUDE_LOCALE_H="\
8095/* The system does not provide the header <locale.h>. Take care yourself. */"
8096 fi
5464f5a1 8097
252b5132
RH
8098
8099 if test -f $srcdir/po2tbl.sed.in; then
8100 if test "$CATOBJEXT" = ".cat"; then
5464f5a1
NN
8101 if test "${ac_cv_header_linux_version_h+set}" = set; then
8102 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8103echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8104if test "${ac_cv_header_linux_version_h+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106fi
8107echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8108echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8109else
8110 # Is the header compilable?
8111echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8112echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8113cat >conftest.$ac_ext <<_ACEOF
8114/* confdefs.h. */
8115_ACEOF
8116cat confdefs.h >>conftest.$ac_ext
8117cat >>conftest.$ac_ext <<_ACEOF
8118/* end confdefs.h. */
8119$ac_includes_default
252b5132 8120#include <linux/version.h>
5464f5a1
NN
8121_ACEOF
8122rm -f conftest.$ac_objext
8123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8124 (eval $ac_compile) 2>conftest.er1
8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8fb84ecc
AC
8131 { ac_try='test -z "$ac_c_werror_flag"
8132 || test ! -s conftest.err'
5464f5a1
NN
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 (eval $ac_try) 2>&5
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_header_compiler=yes
8145else
8146 echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
8149ac_header_compiler=no
8150fi
8151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8153echo "${ECHO_T}$ac_header_compiler" >&6
8154
8155# Is the header present?
8156echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8157echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8158cat >conftest.$ac_ext <<_ACEOF
8159/* confdefs.h. */
8160_ACEOF
8161cat confdefs.h >>conftest.$ac_ext
8162cat >>conftest.$ac_ext <<_ACEOF
8163/* end confdefs.h. */
8164#include <linux/version.h>
8165_ACEOF
8166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8168 ac_status=$?
8169 grep -v '^ *+' conftest.er1 >conftest.err
8170 rm -f conftest.er1
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } >/dev/null; then
8174 if test -s conftest.err; then
8175 ac_cpp_err=$ac_c_preproc_warn_flag
8176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8177 else
8178 ac_cpp_err=
8179 fi
252b5132 8180else
5464f5a1 8181 ac_cpp_err=yes
252b5132 8182fi
5464f5a1
NN
8183if test -z "$ac_cpp_err"; then
8184 ac_header_preproc=yes
8185else
8186 echo "$as_me: failed program was:" >&5
8187sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 ac_header_preproc=no
8190fi
8191rm -f conftest.err conftest.$ac_ext
8192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8193echo "${ECHO_T}$ac_header_preproc" >&6
8194
8195# So? What about this header?
8196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8197 yes:no: )
8198 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8199echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8201echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8202 ac_header_preproc=yes
8203 ;;
8204 no:yes:* )
8205 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8206echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8208echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8210echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8211 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8212echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8213 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8214echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8215 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8216echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8217 (
8218 cat <<\_ASBOX
8219## ------------------------------------------ ##
8220## Report this to the AC_PACKAGE_NAME lists. ##
8221## ------------------------------------------ ##
8222_ASBOX
8223 ) |
8224 sed "s/^/$as_me: WARNING: /" >&2
8225 ;;
8226esac
8227echo "$as_me:$LINENO: checking for linux/version.h" >&5
8228echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8229if test "${ac_cv_header_linux_version_h+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231else
8232 ac_cv_header_linux_version_h=$ac_header_preproc
8233fi
8234echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8235echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8236
252b5132 8237fi
5464f5a1 8238if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8239 msgformat=linux
8240else
5464f5a1 8241 msgformat=xopen
252b5132
RH
8242fi
8243
6be7c12c 8244
5464f5a1 8245
252b5132
RH
8246 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8247 fi
8248 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8249 $srcdir/po2tbl.sed.in > po2tbl.sed
8250 fi
8251
8252 if test "$PACKAGE" = "gettext"; then
8253 GT_NO="#NO#"
8254 GT_YES=
8255 else
8256 GT_NO=
8257 GT_YES="#YES#"
8258 fi
5464f5a1
NN
8259
8260
252b5132
RH
8261
8262 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5464f5a1 8263
252b5132
RH
8264
8265 l=
5464f5a1 8266
252b5132 8267
3c3bdf30 8268 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8269 test -d po || mkdir po
8270 if test "x$srcdir" != "x."; then
8271 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8272 posrcprefix="$srcdir/"
8273 else
8274 posrcprefix="../$srcdir/"
8275 fi
8276 else
8277 posrcprefix="../"
8278 fi
8279 rm -f po/POTFILES
8280 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8281 < $srcdir/po/POTFILES.in > po/POTFILES
8282 fi
5464f5a1 8283
252b5132
RH
8284
8285# Permit host specific settings.
8286. ${srcdir}/configure.host
8287
6be7c12c 8288
252b5132
RH
8289# Find a good install program. We prefer a C program (faster),
8290# so one script is as good as another. But avoid the broken or
8291# incompatible versions:
8292# SysV /etc/install, /usr/sbin/install
8293# SunOS /usr/etc/install
8294# IRIX /sbin/install
8295# AIX /bin/install
5464f5a1 8296# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8297# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8298# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8299# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 8300# OS/2's system install, which has a completely different semantic
252b5132 8301# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
8302echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8303echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8304if test -z "$INSTALL"; then
5464f5a1
NN
8305if test "${ac_cv_path_install+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8307else
5464f5a1
NN
8308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309for as_dir in $PATH
8310do
8311 IFS=$as_save_IFS
8312 test -z "$as_dir" && as_dir=.
8313 # Account for people who put trailing slashes in PATH elements.
8314case $as_dir/ in
8315 ./ | .// | /cC/* | \
8316 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8317 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8318 /usr/ucb/* ) ;;
8319 *)
8320 # OSF1 and SCO ODT 3.0 have their own names for install.
8321 # Don't use installbsd from OSF since it installs stuff as root
8322 # by default.
8323 for ac_prog in ginstall scoinst install; do
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8326 if test $ac_prog = install &&
5464f5a1 8327 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8328 # AIX install. It has an incompatible calling convention.
8329 :
5464f5a1
NN
8330 elif test $ac_prog = install &&
8331 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8332 # program-specific install script used by HP pwplus--don't use.
8333 :
252b5132 8334 else
5464f5a1
NN
8335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8336 break 3
252b5132
RH
8337 fi
8338 fi
8339 done
5464f5a1
NN
8340 done
8341 ;;
8342esac
8343done
8344
252b5132
RH
8345
8346fi
8347 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 8348 INSTALL=$ac_cv_path_install
252b5132
RH
8349 else
8350 # As a last resort, use the slow shell script. We don't cache a
8351 # path for INSTALL within a source directory, because that will
8352 # break other packages using the cache if that directory is
8353 # removed, or if the path is relative.
5464f5a1 8354 INSTALL=$ac_install_sh
252b5132
RH
8355 fi
8356fi
5464f5a1
NN
8357echo "$as_me:$LINENO: result: $INSTALL" >&5
8358echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8359
8360# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8361# It thinks the first close brace ends the variable substitution.
8362test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8363
5464f5a1 8364test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8365
8366test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8367
6be7c12c 8368
252b5132 8369BFD_HOST_64BIT_LONG=0
ec317fb1 8370BFD_HOST_LONG_LONG=0
252b5132
RH
8371BFD_HOST_64_BIT_DEFINED=0
8372BFD_HOST_64_BIT=
8373BFD_HOST_U_64_BIT=
252b5132 8374
5464f5a1
NN
8375echo "$as_me:$LINENO: checking for long long" >&5
8376echo $ECHO_N "checking for long long... $ECHO_C" >&6
8377if test "${bfd_cv_has_long_long+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 8379else
5464f5a1
NN
8380 cat >conftest.$ac_ext <<_ACEOF
8381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
8385/* end confdefs.h. */
ec317fb1 8386
5464f5a1
NN
8387int
8388main ()
8389{
ec317fb1 8390unsigned long long ll = 18446744073709551615ULL;
5464f5a1
NN
8391 ;
8392 return 0;
8393}
8394_ACEOF
8395rm -f conftest.$ac_objext
8396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8397 (eval $ac_compile) 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8fb84ecc
AC
8404 { ac_try='test -z "$ac_c_werror_flag"
8405 || test ! -s conftest.err'
5464f5a1
NN
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; } &&
8411 { ac_try='test -s conftest.$ac_objext'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
ec317fb1
ILT
8417 bfd_cv_has_long_long=yes
8418else
5464f5a1
NN
8419 echo "$as_me: failed program was:" >&5
8420sed 's/^/| /' conftest.$ac_ext >&5
8421
8422bfd_cv_has_long_long=no
ec317fb1 8423fi
5464f5a1 8424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ec317fb1
ILT
8425fi
8426
5464f5a1
NN
8427echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8428echo "${ECHO_T}$bfd_cv_has_long_long" >&6
ec317fb1
ILT
8429if test $bfd_cv_has_long_long = yes; then
8430 BFD_HOST_LONG_LONG=1
5464f5a1
NN
8431 echo "$as_me:$LINENO: checking size of long long" >&5
8432echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8433if test "${ac_cv_sizeof_long_long+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8435else
8436 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8437 cat >conftest.$ac_ext <<_ACEOF
8438/* confdefs.h. */
8439_ACEOF
8440cat confdefs.h >>conftest.$ac_ext
8441cat >>conftest.$ac_ext <<_ACEOF
8442/* end confdefs.h. */
6726e1ea
L
8443#include "confdefs.h"
8444#include <sys/types.h>
8445
8446
5464f5a1
NN
8447int
8448main ()
8449{
6726e1ea 8450switch (0) case 0: case (sizeof (long long) == $ac_size):;
5464f5a1
NN
8451 ;
8452 return 0;
8453}
8454_ACEOF
8455rm -f conftest.$ac_objext
8456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8457 (eval $ac_compile) 2>conftest.er1
8458 ac_status=$?
8459 grep -v '^ *+' conftest.er1 >conftest.err
8460 rm -f conftest.er1
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8fb84ecc
AC
8464 { ac_try='test -z "$ac_c_werror_flag"
8465 || test ! -s conftest.err'
5464f5a1
NN
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 (eval $ac_try) 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; } &&
8471 { ac_try='test -s conftest.$ac_objext'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 (eval $ac_try) 2>&5
8474 ac_status=$?
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; }; then
6726e1ea
L
8477 ac_cv_sizeof_long_long=$ac_size
8478else
5464f5a1
NN
8479 echo "$as_me: failed program was:" >&5
8480sed 's/^/| /' conftest.$ac_ext >&5
8481
6726e1ea 8482fi
5464f5a1 8483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8484 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8485done
8486
8487fi
8488
8489if test x$ac_cv_sizeof_long_long = x ; then
5464f5a1
NN
8490 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8491echo "$as_me: error: cannot determine a size for long long" >&2;}
8492 { (exit 1); exit 1; }; }
6726e1ea 8493fi
5464f5a1
NN
8494echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8495echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8496
8497cat >>confdefs.h <<_ACEOF
6726e1ea 8498#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 8499_ACEOF
6726e1ea
L
8500
8501
8502fi
8503
5464f5a1
NN
8504echo "$as_me:$LINENO: checking size of long" >&5
8505echo $ECHO_N "checking size of long... $ECHO_C" >&6
8506if test "${ac_cv_sizeof_long+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8508else
8509 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8510 cat >conftest.$ac_ext <<_ACEOF
8511/* confdefs.h. */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h. */
6726e1ea
L
8516#include "confdefs.h"
8517#include <sys/types.h>
8518
8519
5464f5a1
NN
8520int
8521main ()
8522{
6726e1ea 8523switch (0) case 0: case (sizeof (long) == $ac_size):;
5464f5a1
NN
8524 ;
8525 return 0;
8526}
8527_ACEOF
8528rm -f conftest.$ac_objext
8529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8530 (eval $ac_compile) 2>conftest.er1
8531 ac_status=$?
8532 grep -v '^ *+' conftest.er1 >conftest.err
8533 rm -f conftest.er1
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } &&
8fb84ecc
AC
8537 { ac_try='test -z "$ac_c_werror_flag"
8538 || test ! -s conftest.err'
5464f5a1
NN
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 (eval $ac_try) 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; } &&
8544 { ac_try='test -s conftest.$ac_objext'
8545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546 (eval $ac_try) 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
6726e1ea
L
8550 ac_cv_sizeof_long=$ac_size
8551else
5464f5a1
NN
8552 echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
8554
6726e1ea 8555fi
5464f5a1 8556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8557 if test x$ac_cv_sizeof_long != x ; then break; fi
8558done
8559
8560fi
8561
8562if test x$ac_cv_sizeof_long = x ; then
5464f5a1
NN
8563 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8564echo "$as_me: error: cannot determine a size for long" >&2;}
8565 { (exit 1); exit 1; }; }
6726e1ea 8566fi
5464f5a1
NN
8567echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8568echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8569
8570cat >>confdefs.h <<_ACEOF
6726e1ea 8571#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 8572_ACEOF
6726e1ea
L
8573
8574
8575if test "x${ac_cv_sizeof_long}" = "x8"; then
8576 host64=true
ccba357f
AM
8577 BFD_HOST_64BIT_LONG=1
8578 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8579 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
6726e1ea 8580elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
ccba357f
AM
8581 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8582 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
6726e1ea
L
8583fi
8584
ccba357f 8585if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
6726e1ea 8586 BFD_HOST_64_BIT_DEFINED=1
ccba357f
AM
8587 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8588 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
ec317fb1
ILT
8589fi
8590
8591
8592
6be7c12c
AO
8593
8594
8595
8596
252b5132
RH
8597# Put a plausible default for CC_FOR_BUILD in Makefile.
8598if test -z "$CC_FOR_BUILD"; then
8599 if test "x$cross_compiling" = "xno"; then
8600 CC_FOR_BUILD='$(CC)'
8601 else
8602 CC_FOR_BUILD=gcc
8603 fi
8604fi
8605
8606# Also set EXEEXT_FOR_BUILD.
8607if test "x$cross_compiling" = "xno"; then
8608 EXEEXT_FOR_BUILD='$(EXEEXT)'
8609else
5464f5a1
NN
8610 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8611echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8612if test "${bfd_cv_build_exeext+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8614else
aab08431
ILT
8615 rm -f conftest*
8616 echo 'int main () { return 0; }' > conftest.c
8617 bfd_cv_build_exeext=
8618 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8619 for file in conftest.*; do
8620 case $file in
8621 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8622 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8623 esac
8624 done
8625 rm -f conftest*
8626 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 8627fi
5464f5a1
NN
8628echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8629echo "${ECHO_T}$bfd_cv_build_exeext" >&6
252b5132
RH
8630 EXEEXT_FOR_BUILD=""
8631 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8632fi
8633
6be7c12c 8634
5464f5a1
NN
8635
8636
8637
8638
8639
8640
8641for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
252b5132 8642do
5464f5a1
NN
8643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8644if eval "test \"\${$as_ac_Header+set}\" = set"; then
8645 echo "$as_me:$LINENO: checking for $ac_header" >&5
8646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8647if eval "test \"\${$as_ac_Header+set}\" = set"; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649fi
8650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8652else
8653 # Is the header compilable?
8654echo "$as_me:$LINENO: checking $ac_header usability" >&5
8655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8656cat >conftest.$ac_ext <<_ACEOF
8657/* confdefs.h. */
8658_ACEOF
8659cat confdefs.h >>conftest.$ac_ext
8660cat >>conftest.$ac_ext <<_ACEOF
8661/* end confdefs.h. */
8662$ac_includes_default
8663#include <$ac_header>
8664_ACEOF
8665rm -f conftest.$ac_objext
8666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8667 (eval $ac_compile) 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8fb84ecc
AC
8674 { ac_try='test -z "$ac_c_werror_flag"
8675 || test ! -s conftest.err'
5464f5a1
NN
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 (eval $ac_try) 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; } &&
8681 { ac_try='test -s conftest.$ac_objext'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; }; then
8687 ac_header_compiler=yes
8688else
8689 echo "$as_me: failed program was:" >&5
8690sed 's/^/| /' conftest.$ac_ext >&5
8691
8692ac_header_compiler=no
8693fi
8694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8696echo "${ECHO_T}$ac_header_compiler" >&6
8697
8698# Is the header present?
8699echo "$as_me:$LINENO: checking $ac_header presence" >&5
8700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8701cat >conftest.$ac_ext <<_ACEOF
8702/* confdefs.h. */
8703_ACEOF
8704cat confdefs.h >>conftest.$ac_ext
8705cat >>conftest.$ac_ext <<_ACEOF
8706/* end confdefs.h. */
8707#include <$ac_header>
8708_ACEOF
8709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } >/dev/null; then
8717 if test -s conftest.err; then
8718 ac_cpp_err=$ac_c_preproc_warn_flag
8719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8720 else
8721 ac_cpp_err=
8722 fi
252b5132 8723else
5464f5a1 8724 ac_cpp_err=yes
252b5132 8725fi
5464f5a1
NN
8726if test -z "$ac_cpp_err"; then
8727 ac_header_preproc=yes
8728else
8729 echo "$as_me: failed program was:" >&5
8730sed 's/^/| /' conftest.$ac_ext >&5
8731
8732 ac_header_preproc=no
252b5132 8733fi
5464f5a1
NN
8734rm -f conftest.err conftest.$ac_ext
8735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8736echo "${ECHO_T}$ac_header_preproc" >&6
8737
8738# So? What about this header?
8739case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8740 yes:no: )
8741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8745 ac_header_preproc=yes
8746 ;;
8747 no:yes:* )
8748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8751echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8755echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8760 (
8761 cat <<\_ASBOX
8762## ------------------------------------------ ##
8763## Report this to the AC_PACKAGE_NAME lists. ##
8764## ------------------------------------------ ##
8765_ASBOX
8766 ) |
8767 sed "s/^/$as_me: WARNING: /" >&2
8768 ;;
8769esac
8770echo "$as_me:$LINENO: checking for $ac_header" >&5
8771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8772if eval "test \"\${$as_ac_Header+set}\" = set"; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8774else
5464f5a1
NN
8775 eval "$as_ac_Header=\$ac_header_preproc"
8776fi
8777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8779
252b5132 8780fi
5464f5a1
NN
8781if test `eval echo '${'$as_ac_Header'}'` = yes; then
8782 cat >>confdefs.h <<_ACEOF
8783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8784_ACEOF
8785
8786fi
8787
252b5132
RH
8788done
8789
5464f5a1
NN
8790
8791
8792
8793for ac_header in fcntl.h sys/file.h sys/time.h
252b5132 8794do
5464f5a1
NN
8795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8796if eval "test \"\${$as_ac_Header+set}\" = set"; then
8797 echo "$as_me:$LINENO: checking for $ac_header" >&5
8798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8799if eval "test \"\${$as_ac_Header+set}\" = set"; then
8800 echo $ECHO_N "(cached) $ECHO_C" >&6
8801fi
8802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8804else
8805 # Is the header compilable?
8806echo "$as_me:$LINENO: checking $ac_header usability" >&5
8807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8808cat >conftest.$ac_ext <<_ACEOF
8809/* confdefs.h. */
8810_ACEOF
8811cat confdefs.h >>conftest.$ac_ext
8812cat >>conftest.$ac_ext <<_ACEOF
8813/* end confdefs.h. */
8814$ac_includes_default
8815#include <$ac_header>
8816_ACEOF
8817rm -f conftest.$ac_objext
8818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819 (eval $ac_compile) 2>conftest.er1
8820 ac_status=$?
8821 grep -v '^ *+' conftest.er1 >conftest.err
8822 rm -f conftest.er1
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8fb84ecc
AC
8826 { ac_try='test -z "$ac_c_werror_flag"
8827 || test ! -s conftest.err'
5464f5a1
NN
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest.$ac_objext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8835 (eval $ac_try) 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 ac_header_compiler=yes
8840else
8841 echo "$as_me: failed program was:" >&5
8842sed 's/^/| /' conftest.$ac_ext >&5
8843
8844ac_header_compiler=no
8845fi
8846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8848echo "${ECHO_T}$ac_header_compiler" >&6
8849
8850# Is the header present?
8851echo "$as_me:$LINENO: checking $ac_header presence" >&5
8852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8853cat >conftest.$ac_ext <<_ACEOF
8854/* confdefs.h. */
8855_ACEOF
8856cat confdefs.h >>conftest.$ac_ext
8857cat >>conftest.$ac_ext <<_ACEOF
8858/* end confdefs.h. */
8859#include <$ac_header>
8860_ACEOF
8861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8863 ac_status=$?
8864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } >/dev/null; then
8869 if test -s conftest.err; then
8870 ac_cpp_err=$ac_c_preproc_warn_flag
8871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8872 else
8873 ac_cpp_err=
8874 fi
252b5132 8875else
5464f5a1 8876 ac_cpp_err=yes
252b5132 8877fi
5464f5a1
NN
8878if test -z "$ac_cpp_err"; then
8879 ac_header_preproc=yes
8880else
8881 echo "$as_me: failed program was:" >&5
8882sed 's/^/| /' conftest.$ac_ext >&5
8883
8884 ac_header_preproc=no
252b5132 8885fi
5464f5a1
NN
8886rm -f conftest.err conftest.$ac_ext
8887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8888echo "${ECHO_T}$ac_header_preproc" >&6
8889
8890# So? What about this header?
8891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8892 yes:no: )
8893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8897 ac_header_preproc=yes
8898 ;;
8899 no:yes:* )
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8912 (
8913 cat <<\_ASBOX
8914## ------------------------------------------ ##
8915## Report this to the AC_PACKAGE_NAME lists. ##
8916## ------------------------------------------ ##
8917_ASBOX
8918 ) |
8919 sed "s/^/$as_me: WARNING: /" >&2
8920 ;;
8921esac
8922echo "$as_me:$LINENO: checking for $ac_header" >&5
8923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8924if eval "test \"\${$as_ac_Header+set}\" = set"; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8926else
5464f5a1
NN
8927 eval "$as_ac_Header=\$ac_header_preproc"
8928fi
8929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8931
8932fi
8933if test `eval echo '${'$as_ac_Header'}'` = yes; then
8934 cat >>confdefs.h <<_ACEOF
8935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8936_ACEOF
8937
252b5132 8938fi
5464f5a1 8939
252b5132
RH
8940done
8941
5464f5a1
NN
8942echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8943echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8944if test "${ac_cv_header_time+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8946else
8947 cat >conftest.$ac_ext <<_ACEOF
8948/* confdefs.h. */
8949_ACEOF
8950cat confdefs.h >>conftest.$ac_ext
8951cat >>conftest.$ac_ext <<_ACEOF
8952/* end confdefs.h. */
252b5132
RH
8953#include <sys/types.h>
8954#include <sys/time.h>
8955#include <time.h>
5464f5a1
NN
8956
8957int
8958main ()
8959{
8960if ((struct tm *) 0)
8961return 0;
8962 ;
8963 return 0;
8964}
8965_ACEOF
8966rm -f conftest.$ac_objext
8967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8968 (eval $ac_compile) 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8fb84ecc
AC
8975 { ac_try='test -z "$ac_c_werror_flag"
8976 || test ! -s conftest.err'
5464f5a1
NN
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest.$ac_objext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
252b5132
RH
8988 ac_cv_header_time=yes
8989else
5464f5a1
NN
8990 echo "$as_me: failed program was:" >&5
8991sed 's/^/| /' conftest.$ac_ext >&5
8992
8993ac_cv_header_time=no
252b5132 8994fi
5464f5a1 8995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8996fi
5464f5a1
NN
8997echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8998echo "${ECHO_T}$ac_cv_header_time" >&6
6be7c12c 8999if test $ac_cv_header_time = yes; then
5464f5a1
NN
9000
9001cat >>confdefs.h <<\_ACEOF
252b5132 9002#define TIME_WITH_SYS_TIME 1
5464f5a1 9003_ACEOF
252b5132
RH
9004
9005fi
9006
5464f5a1
NN
9007
9008
9009
9010
9011
252b5132 9012ac_header_dirent=no
5464f5a1
NN
9013for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9014 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9015echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9016echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9017if eval "test \"\${$as_ac_Header+set}\" = set"; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019else
9020 cat >conftest.$ac_ext <<_ACEOF
9021/* confdefs.h. */
9022_ACEOF
9023cat confdefs.h >>conftest.$ac_ext
9024cat >>conftest.$ac_ext <<_ACEOF
9025/* end confdefs.h. */
252b5132
RH
9026#include <sys/types.h>
9027#include <$ac_hdr>
5464f5a1
NN
9028
9029int
9030main ()
9031{
9032if ((DIR *) 0)
9033return 0;
9034 ;
9035 return 0;
9036}
9037_ACEOF
9038rm -f conftest.$ac_objext
9039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9040 (eval $ac_compile) 2>conftest.er1
9041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
8fb84ecc
AC
9047 { ac_try='test -z "$ac_c_werror_flag"
9048 || test ! -s conftest.err'
5464f5a1
NN
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; } &&
9054 { ac_try='test -s conftest.$ac_objext'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then
9060 eval "$as_ac_Header=yes"
9061else
9062 echo "$as_me: failed program was:" >&5
9063sed 's/^/| /' conftest.$ac_ext >&5
9064
9065eval "$as_ac_Header=no"
9066fi
9067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9068fi
9069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9071if test `eval echo '${'$as_ac_Header'}'` = yes; then
9072 cat >>confdefs.h <<_ACEOF
9073#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9074_ACEOF
9075
9076ac_header_dirent=$ac_hdr; break
252b5132 9077fi
5464f5a1 9078
252b5132
RH
9079done
9080# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9081if test $ac_header_dirent = dirent.h; then
5464f5a1
NN
9082 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9083echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9084if test "${ac_cv_search_opendir+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086else
9087 ac_func_search_save_LIBS=$LIBS
9088ac_cv_search_opendir=no
9089cat >conftest.$ac_ext <<_ACEOF
9090/* confdefs.h. */
9091_ACEOF
9092cat confdefs.h >>conftest.$ac_ext
9093cat >>conftest.$ac_ext <<_ACEOF
9094/* end confdefs.h. */
9095
252b5132 9096/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
9097#ifdef __cplusplus
9098extern "C"
9099#endif
252b5132 9100/* We use char because int might match the return type of a gcc2
5464f5a1
NN
9101 builtin and then its argument prototype would still apply. */
9102char opendir ();
9103int
9104main ()
9105{
9106opendir ();
9107 ;
9108 return 0;
9109}
9110_ACEOF
9111rm -f conftest.$ac_objext conftest$ac_exeext
9112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
8fb84ecc
AC
9120 { ac_try='test -z "$ac_c_werror_flag"
9121 || test ! -s conftest.err'
5464f5a1
NN
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_cv_search_opendir="none required"
9134else
9135 echo "$as_me: failed program was:" >&5
9136sed 's/^/| /' conftest.$ac_ext >&5
9137
9138fi
9139rm -f conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
9141if test "$ac_cv_search_opendir" = no; then
9142 for ac_lib in dir; do
9143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9144 cat >conftest.$ac_ext <<_ACEOF
9145/* confdefs.h. */
9146_ACEOF
9147cat confdefs.h >>conftest.$ac_ext
9148cat >>conftest.$ac_ext <<_ACEOF
9149/* end confdefs.h. */
6be7c12c 9150
5464f5a1
NN
9151/* Override any gcc2 internal prototype to avoid an error. */
9152#ifdef __cplusplus
9153extern "C"
9154#endif
9155/* We use char because int might match the return type of a gcc2
9156 builtin and then its argument prototype would still apply. */
9157char opendir ();
9158int
9159main ()
9160{
9161opendir ();
9162 ;
9163 return 0;
9164}
9165_ACEOF
9166rm -f conftest.$ac_objext conftest$ac_exeext
9167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9168 (eval $ac_link) 2>conftest.er1
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
8fb84ecc
AC
9175 { ac_try='test -z "$ac_c_werror_flag"
9176 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
9182 { ac_try='test -s conftest$ac_exeext'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
9188 ac_cv_search_opendir="-l$ac_lib"
9189break
9190else
9191 echo "$as_me: failed program was:" >&5
9192sed 's/^/| /' conftest.$ac_ext >&5
9193
9194fi
9195rm -f conftest.err conftest.$ac_objext \
9196 conftest$ac_exeext conftest.$ac_ext
9197 done
6be7c12c 9198fi
5464f5a1 9199LIBS=$ac_func_search_save_LIBS
6be7c12c 9200fi
5464f5a1
NN
9201echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9202echo "${ECHO_T}$ac_cv_search_opendir" >&6
9203if test "$ac_cv_search_opendir" != no; then
9204 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9205
252b5132
RH
9206fi
9207
9208else
5464f5a1
NN
9209 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9210echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9211if test "${ac_cv_search_opendir+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 9213else
5464f5a1
NN
9214 ac_func_search_save_LIBS=$LIBS
9215ac_cv_search_opendir=no
9216cat >conftest.$ac_ext <<_ACEOF
9217/* confdefs.h. */
9218_ACEOF
9219cat confdefs.h >>conftest.$ac_ext
9220cat >>conftest.$ac_ext <<_ACEOF
9221/* end confdefs.h. */
9222
6be7c12c 9223/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
9224#ifdef __cplusplus
9225extern "C"
9226#endif
6be7c12c 9227/* We use char because int might match the return type of a gcc2
5464f5a1
NN
9228 builtin and then its argument prototype would still apply. */
9229char opendir ();
9230int
9231main ()
9232{
9233opendir ();
9234 ;
9235 return 0;
9236}
9237_ACEOF
9238rm -f conftest.$ac_objext conftest$ac_exeext
9239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9240 (eval $ac_link) 2>conftest.er1
9241 ac_status=$?
9242 grep -v '^ *+' conftest.er1 >conftest.err
9243 rm -f conftest.er1
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
8fb84ecc
AC
9247 { ac_try='test -z "$ac_c_werror_flag"
9248 || test ! -s conftest.err'
5464f5a1
NN
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; } &&
9254 { ac_try='test -s conftest$ac_exeext'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 (eval $ac_try) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_cv_search_opendir="none required"
9261else
9262 echo "$as_me: failed program was:" >&5
9263sed 's/^/| /' conftest.$ac_ext >&5
9264
9265fi
9266rm -f conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268if test "$ac_cv_search_opendir" = no; then
9269 for ac_lib in x; do
9270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9271 cat >conftest.$ac_ext <<_ACEOF
9272/* confdefs.h. */
9273_ACEOF
9274cat confdefs.h >>conftest.$ac_ext
9275cat >>conftest.$ac_ext <<_ACEOF
9276/* end confdefs.h. */
6be7c12c 9277
5464f5a1
NN
9278/* Override any gcc2 internal prototype to avoid an error. */
9279#ifdef __cplusplus
9280extern "C"
9281#endif
9282/* We use char because int might match the return type of a gcc2
9283 builtin and then its argument prototype would still apply. */
9284char opendir ();
9285int
9286main ()
9287{
9288opendir ();
9289 ;
9290 return 0;
9291}
9292_ACEOF
9293rm -f conftest.$ac_objext conftest$ac_exeext
9294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>conftest.er1
9296 ac_status=$?
9297 grep -v '^ *+' conftest.er1 >conftest.err
9298 rm -f conftest.er1
9299 cat conftest.err >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } &&
8fb84ecc
AC
9302 { ac_try='test -z "$ac_c_werror_flag"
9303 || test ! -s conftest.err'
5464f5a1
NN
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 (eval $ac_try) 2>&5
9306 ac_status=$?
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; } &&
9309 { ac_try='test -s conftest$ac_exeext'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; }; then
9315 ac_cv_search_opendir="-l$ac_lib"
9316break
9317else
9318 echo "$as_me: failed program was:" >&5
9319sed 's/^/| /' conftest.$ac_ext >&5
9320
9321fi
9322rm -f conftest.err conftest.$ac_objext \
9323 conftest$ac_exeext conftest.$ac_ext
9324 done
6be7c12c 9325fi
5464f5a1 9326LIBS=$ac_func_search_save_LIBS
6be7c12c 9327fi
5464f5a1
NN
9328echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9329echo "${ECHO_T}$ac_cv_search_opendir" >&6
9330if test "$ac_cv_search_opendir" != no; then
9331 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9332
252b5132
RH
9333fi
9334
9335fi
9336
5464f5a1
NN
9337
9338
9339
9340
9341
9342
9343
633fd09f 9344for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 9345do
5464f5a1
NN
9346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9347echo "$as_me:$LINENO: checking for $ac_func" >&5
9348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9349if eval "test \"\${$as_ac_var+set}\" = set"; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351else
9352 cat >conftest.$ac_ext <<_ACEOF
9353/* confdefs.h. */
9354_ACEOF
9355cat confdefs.h >>conftest.$ac_ext
9356cat >>conftest.$ac_ext <<_ACEOF
9357/* end confdefs.h. */
9358/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9360#define $ac_func innocuous_$ac_func
9361
252b5132 9362/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
9363 which can conflict with char $ac_func (); below.
9364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9365 <limits.h> exists even on freestanding compilers. */
9366
9367#ifdef __STDC__
9368# include <limits.h>
9369#else
9370# include <assert.h>
9371#endif
6be7c12c 9372
5464f5a1 9373#undef $ac_func
252b5132 9374
5464f5a1
NN
9375/* Override any gcc2 internal prototype to avoid an error. */
9376#ifdef __cplusplus
9377extern "C"
9378{
9379#endif
9380/* We use char because int might match the return type of a gcc2
9381 builtin and then its argument prototype would still apply. */
9382char $ac_func ();
252b5132
RH
9383/* The GNU C library defines this for functions which it implements
9384 to always fail with ENOSYS. Some functions are actually named
9385 something starting with __ and the normal name is an alias. */
9386#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9387choke me
9388#else
5464f5a1
NN
9389char (*f) () = $ac_func;
9390#endif
9391#ifdef __cplusplus
9392}
252b5132
RH
9393#endif
9394
5464f5a1
NN
9395int
9396main ()
9397{
9398return f != $ac_func;
9399 ;
9400 return 0;
9401}
9402_ACEOF
9403rm -f conftest.$ac_objext conftest$ac_exeext
9404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9405 (eval $ac_link) 2>conftest.er1
9406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
8fb84ecc
AC
9412 { ac_try='test -z "$ac_c_werror_flag"
9413 || test ! -s conftest.err'
5464f5a1
NN
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 (eval $ac_try) 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; } &&
9419 { ac_try='test -s conftest$ac_exeext'
9420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9421 (eval $ac_try) 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 eval "$as_ac_var=yes"
9426else
9427 echo "$as_me: failed program was:" >&5
9428sed 's/^/| /' conftest.$ac_ext >&5
9429
9430eval "$as_ac_var=no"
9431fi
9432rm -f conftest.err conftest.$ac_objext \
9433 conftest$ac_exeext conftest.$ac_ext
9434fi
9435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9436echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9437if test `eval echo '${'$as_ac_var'}'` = yes; then
9438 cat >>confdefs.h <<_ACEOF
9439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9440_ACEOF
252b5132 9441
252b5132
RH
9442fi
9443done
9444
5464f5a1 9445
49c97a80
ILT
9446for ac_func in strtoull
9447do
5464f5a1
NN
9448as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9449echo "$as_me:$LINENO: checking for $ac_func" >&5
9450echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9451if eval "test \"\${$as_ac_var+set}\" = set"; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
9453else
9454 cat >conftest.$ac_ext <<_ACEOF
9455/* confdefs.h. */
9456_ACEOF
9457cat confdefs.h >>conftest.$ac_ext
9458cat >>conftest.$ac_ext <<_ACEOF
9459/* end confdefs.h. */
9460/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9462#define $ac_func innocuous_$ac_func
9463
49c97a80 9464/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
9465 which can conflict with char $ac_func (); below.
9466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9467 <limits.h> exists even on freestanding compilers. */
9468
9469#ifdef __STDC__
9470# include <limits.h>
9471#else
9472# include <assert.h>
9473#endif
49c97a80 9474
5464f5a1 9475#undef $ac_func
49c97a80 9476
5464f5a1
NN
9477/* Override any gcc2 internal prototype to avoid an error. */
9478#ifdef __cplusplus
9479extern "C"
9480{
9481#endif
9482/* We use char because int might match the return type of a gcc2
9483 builtin and then its argument prototype would still apply. */
9484char $ac_func ();
49c97a80
ILT
9485/* The GNU C library defines this for functions which it implements
9486 to always fail with ENOSYS. Some functions are actually named
9487 something starting with __ and the normal name is an alias. */
9488#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9489choke me
9490#else
5464f5a1
NN
9491char (*f) () = $ac_func;
9492#endif
9493#ifdef __cplusplus
9494}
49c97a80
ILT
9495#endif
9496
5464f5a1
NN
9497int
9498main ()
9499{
9500return f != $ac_func;
9501 ;
9502 return 0;
9503}
9504_ACEOF
9505rm -f conftest.$ac_objext conftest$ac_exeext
9506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9507 (eval $ac_link) 2>conftest.er1
9508 ac_status=$?
9509 grep -v '^ *+' conftest.er1 >conftest.err
9510 rm -f conftest.er1
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } &&
8fb84ecc
AC
9514 { ac_try='test -z "$ac_c_werror_flag"
9515 || test ! -s conftest.err'
5464f5a1
NN
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 (eval $ac_try) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; } &&
9521 { ac_try='test -s conftest$ac_exeext'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; }; then
9527 eval "$as_ac_var=yes"
9528else
9529 echo "$as_me: failed program was:" >&5
9530sed 's/^/| /' conftest.$ac_ext >&5
9531
9532eval "$as_ac_var=no"
9533fi
9534rm -f conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536fi
9537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9538echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9539if test `eval echo '${'$as_ac_var'}'` = yes; then
9540 cat >>confdefs.h <<_ACEOF
9541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9542_ACEOF
49c97a80 9543
49c97a80
ILT
9544fi
9545done
9546
6be7c12c 9547
2e9ebff5
JG
9548echo "$as_me:$LINENO: checking whether basename is declared" >&5
9549echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
9550if test "${ac_cv_have_decl_basename+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9552else
9553 cat >conftest.$ac_ext <<_ACEOF
9554/* confdefs.h. */
9555_ACEOF
9556cat confdefs.h >>conftest.$ac_ext
9557cat >>conftest.$ac_ext <<_ACEOF
9558/* end confdefs.h. */
ec7b76fe 9559$ac_includes_default
2e9ebff5
JG
9560int
9561main ()
9562{
9563#ifndef basename
9564 char *p = (char *) basename;
9565#endif
9566
9567 ;
9568 return 0;
9569}
9570_ACEOF
9571rm -f conftest.$ac_objext
9572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573 (eval $ac_compile) 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag"
9581 || test ! -s conftest.err'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 (eval $ac_try) 2>&5
9584 ac_status=$?
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; } &&
9587 { ac_try='test -s conftest.$ac_objext'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 (eval $ac_try) 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_cv_have_decl_basename=yes
9594else
9595 echo "$as_me: failed program was:" >&5
9596sed 's/^/| /' conftest.$ac_ext >&5
9597
9598ac_cv_have_decl_basename=no
9599fi
9600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9601fi
9602echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
9603echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
9604if test $ac_cv_have_decl_basename = yes; then
9605
9606cat >>confdefs.h <<_ACEOF
9607#define HAVE_DECL_BASENAME 1
9608_ACEOF
9609
9610
9611else
9612 cat >>confdefs.h <<_ACEOF
9613#define HAVE_DECL_BASENAME 0
9614_ACEOF
9615
9616
9617fi
9618
9619
ec7b76fe
JG
9620echo "$as_me:$LINENO: checking whether ftello is declared" >&5
9621echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
9622if test "${ac_cv_have_decl_ftello+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9624else
9625 cat >conftest.$ac_ext <<_ACEOF
9626/* confdefs.h. */
9627_ACEOF
9628cat confdefs.h >>conftest.$ac_ext
9629cat >>conftest.$ac_ext <<_ACEOF
9630/* end confdefs.h. */
9631$ac_includes_default
9632int
9633main ()
9634{
9635#ifndef ftello
9636 char *p = (char *) ftello;
9637#endif
9638
9639 ;
9640 return 0;
9641}
9642_ACEOF
9643rm -f conftest.$ac_objext
9644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9645 (eval $ac_compile) 2>conftest.er1
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } &&
9652 { ac_try='test -z "$ac_c_werror_flag"
9653 || test ! -s conftest.err'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 (eval $ac_try) 2>&5
9656 ac_status=$?
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; } &&
9659 { ac_try='test -s conftest.$ac_objext'
9660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 (eval $ac_try) 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 ac_cv_have_decl_ftello=yes
9666else
9667 echo "$as_me: failed program was:" >&5
9668sed 's/^/| /' conftest.$ac_ext >&5
9669
9670ac_cv_have_decl_ftello=no
9671fi
9672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9673fi
9674echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
9675echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
9676if test $ac_cv_have_decl_ftello = yes; then
9677
9678cat >>confdefs.h <<_ACEOF
9679#define HAVE_DECL_FTELLO 1
9680_ACEOF
9681
9682
9683else
9684 cat >>confdefs.h <<_ACEOF
9685#define HAVE_DECL_FTELLO 0
9686_ACEOF
9687
9688
9689fi
9690
9691
9692echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
9693echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
9694if test "${ac_cv_have_decl_ftello64+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9696else
9697 cat >conftest.$ac_ext <<_ACEOF
9698/* confdefs.h. */
9699_ACEOF
9700cat confdefs.h >>conftest.$ac_ext
9701cat >>conftest.$ac_ext <<_ACEOF
9702/* end confdefs.h. */
9703$ac_includes_default
9704int
9705main ()
9706{
9707#ifndef ftello64
9708 char *p = (char *) ftello64;
9709#endif
9710
9711 ;
9712 return 0;
9713}
9714_ACEOF
9715rm -f conftest.$ac_objext
9716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9717 (eval $ac_compile) 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -z "$ac_c_werror_flag"
9725 || test ! -s conftest.err'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try='test -s conftest.$ac_objext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 ac_cv_have_decl_ftello64=yes
9738else
9739 echo "$as_me: failed program was:" >&5
9740sed 's/^/| /' conftest.$ac_ext >&5
9741
9742ac_cv_have_decl_ftello64=no
9743fi
9744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9745fi
9746echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
9747echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
9748if test $ac_cv_have_decl_ftello64 = yes; then
9749
9750cat >>confdefs.h <<_ACEOF
9751#define HAVE_DECL_FTELLO64 1
9752_ACEOF
9753
9754
9755else
9756 cat >>confdefs.h <<_ACEOF
9757#define HAVE_DECL_FTELLO64 0
9758_ACEOF
9759
9760
9761fi
9762
9763
9764echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
9765echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
9766if test "${ac_cv_have_decl_fseeko+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9768else
9769 cat >conftest.$ac_ext <<_ACEOF
9770/* confdefs.h. */
9771_ACEOF
9772cat confdefs.h >>conftest.$ac_ext
9773cat >>conftest.$ac_ext <<_ACEOF
9774/* end confdefs.h. */
9775$ac_includes_default
9776int
9777main ()
9778{
9779#ifndef fseeko
9780 char *p = (char *) fseeko;
9781#endif
9782
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787rm -f conftest.$ac_objext
9788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_have_decl_fseeko=yes
9810else
9811 echo "$as_me: failed program was:" >&5
9812sed 's/^/| /' conftest.$ac_ext >&5
9813
9814ac_cv_have_decl_fseeko=no
9815fi
9816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9817fi
9818echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
9819echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
9820if test $ac_cv_have_decl_fseeko = yes; then
9821
9822cat >>confdefs.h <<_ACEOF
9823#define HAVE_DECL_FSEEKO 1
9824_ACEOF
9825
9826
9827else
9828 cat >>confdefs.h <<_ACEOF
9829#define HAVE_DECL_FSEEKO 0
9830_ACEOF
9831
9832
9833fi
9834
9835
9836echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
9837echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
9838if test "${ac_cv_have_decl_fseeko64+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840else
9841 cat >conftest.$ac_ext <<_ACEOF
9842/* confdefs.h. */
9843_ACEOF
9844cat confdefs.h >>conftest.$ac_ext
9845cat >>conftest.$ac_ext <<_ACEOF
9846/* end confdefs.h. */
9847$ac_includes_default
9848int
9849main ()
9850{
9851#ifndef fseeko64
9852 char *p = (char *) fseeko64;
9853#endif
9854
9855 ;
9856 return 0;
9857}
9858_ACEOF
9859rm -f conftest.$ac_objext
9860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861 (eval $ac_compile) 2>conftest.er1
9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag"
9869 || test ! -s conftest.err'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_have_decl_fseeko64=yes
9882else
9883 echo "$as_me: failed program was:" >&5
9884sed 's/^/| /' conftest.$ac_ext >&5
9885
9886ac_cv_have_decl_fseeko64=no
9887fi
9888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9889fi
9890echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
9891echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
9892if test $ac_cv_have_decl_fseeko64 = yes; then
9893
9894cat >>confdefs.h <<_ACEOF
9895#define HAVE_DECL_FSEEKO64 1
9896_ACEOF
9897
9898
9899else
9900 cat >>confdefs.h <<_ACEOF
9901#define HAVE_DECL_FSEEKO64 0
9902_ACEOF
9903
9904
9905fi
9906
9907
2e9ebff5 9908
6be7c12c 9909
252b5132 9910case "${host}" in
855b0be7 9911*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
9912
9913cat >>confdefs.h <<\_ACEOF
252b5132 9914#define USE_BINARY_FOPEN 1
5464f5a1 9915_ACEOF
252b5132
RH
9916 ;;
9917esac
9918
d34a2b1d
JG
9919echo "$as_me:$LINENO: checking whether ffs is declared" >&5
9920echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
9921if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 9922 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9923else
5464f5a1
NN
9924 cat >conftest.$ac_ext <<_ACEOF
9925/* confdefs.h. */
9926_ACEOF
9927cat confdefs.h >>conftest.$ac_ext
9928cat >>conftest.$ac_ext <<_ACEOF
9929/* end confdefs.h. */
d34a2b1d 9930$ac_includes_default
5464f5a1
NN
9931int
9932main ()
9933{
d34a2b1d
JG
9934#ifndef ffs
9935 char *p = (char *) ffs;
9936#endif
9937
5464f5a1
NN
9938 ;
9939 return 0;
9940}
9941_ACEOF
9942rm -f conftest.$ac_objext
9943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9944 (eval $ac_compile) 2>conftest.er1
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
8fb84ecc
AC
9951 { ac_try='test -z "$ac_c_werror_flag"
9952 || test ! -s conftest.err'
5464f5a1
NN
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; } &&
9958 { ac_try='test -s conftest.$ac_objext'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960 (eval $ac_try) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; }; then
d34a2b1d 9964 ac_cv_have_decl_ffs=yes
252b5132 9965else
5464f5a1
NN
9966 echo "$as_me: failed program was:" >&5
9967sed 's/^/| /' conftest.$ac_ext >&5
9968
d34a2b1d 9969ac_cv_have_decl_ffs=no
252b5132 9970fi
5464f5a1 9971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 9972fi
d34a2b1d
JG
9973echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
9974echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
9975if test $ac_cv_have_decl_ffs = yes; then
252b5132 9976
d34a2b1d
JG
9977cat >>confdefs.h <<_ACEOF
9978#define HAVE_DECL_FFS 1
9979_ACEOF
5464f5a1 9980
d34a2b1d
JG
9981
9982else
9983 cat >>confdefs.h <<_ACEOF
9984#define HAVE_DECL_FFS 0
5464f5a1 9985_ACEOF
252b5132 9986
d34a2b1d 9987
252b5132
RH
9988fi
9989
d34a2b1d
JG
9990
9991echo "$as_me:$LINENO: checking whether free is declared" >&5
9992echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9993if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 9994 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9995else
5464f5a1
NN
9996 cat >conftest.$ac_ext <<_ACEOF
9997/* confdefs.h. */
9998_ACEOF
9999cat confdefs.h >>conftest.$ac_ext
10000cat >>conftest.$ac_ext <<_ACEOF
10001/* end confdefs.h. */
d34a2b1d 10002$ac_includes_default
5464f5a1
NN
10003int
10004main ()
10005{
d34a2b1d
JG
10006#ifndef free
10007 char *p = (char *) free;
10008#endif
10009
5464f5a1
NN
10010 ;
10011 return 0;
10012}
10013_ACEOF
10014rm -f conftest.$ac_objext
10015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
8fb84ecc
AC
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
5464f5a1
NN
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest.$ac_objext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
d34a2b1d 10036 ac_cv_have_decl_free=yes
252b5132 10037else
5464f5a1
NN
10038 echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
d34a2b1d 10041ac_cv_have_decl_free=no
252b5132 10042fi
5464f5a1 10043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10044fi
d34a2b1d
JG
10045echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10046echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10047if test $ac_cv_have_decl_free = yes; then
10048
10049cat >>confdefs.h <<_ACEOF
10050#define HAVE_DECL_FREE 1
10051_ACEOF
252b5132 10052
5464f5a1 10053
d34a2b1d
JG
10054else
10055 cat >>confdefs.h <<_ACEOF
10056#define HAVE_DECL_FREE 0
5464f5a1 10057_ACEOF
252b5132 10058
d34a2b1d 10059
252b5132
RH
10060fi
10061
d34a2b1d
JG
10062
10063echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10064echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10065if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 10066 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10067else
5464f5a1
NN
10068 cat >conftest.$ac_ext <<_ACEOF
10069/* confdefs.h. */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h. */
d34a2b1d 10074$ac_includes_default
5464f5a1
NN
10075int
10076main ()
10077{
d34a2b1d
JG
10078#ifndef getenv
10079 char *p = (char *) getenv;
10080#endif
10081
5464f5a1
NN
10082 ;
10083 return 0;
10084}
10085_ACEOF
10086rm -f conftest.$ac_objext
10087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10088 (eval $ac_compile) 2>conftest.er1
10089 ac_status=$?
10090 grep -v '^ *+' conftest.er1 >conftest.err
10091 rm -f conftest.er1
10092 cat conftest.err >&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); } &&
8fb84ecc
AC
10095 { ac_try='test -z "$ac_c_werror_flag"
10096 || test ! -s conftest.err'
5464f5a1
NN
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest.$ac_objext'
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; }; then
d34a2b1d 10108 ac_cv_have_decl_getenv=yes
252b5132 10109else
5464f5a1
NN
10110 echo "$as_me: failed program was:" >&5
10111sed 's/^/| /' conftest.$ac_ext >&5
10112
d34a2b1d 10113ac_cv_have_decl_getenv=no
252b5132 10114fi
5464f5a1 10115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10116fi
d34a2b1d
JG
10117echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10118echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10119if test $ac_cv_have_decl_getenv = yes; then
252b5132 10120
d34a2b1d
JG
10121cat >>confdefs.h <<_ACEOF
10122#define HAVE_DECL_GETENV 1
10123_ACEOF
5464f5a1 10124
d34a2b1d
JG
10125
10126else
10127 cat >>confdefs.h <<_ACEOF
10128#define HAVE_DECL_GETENV 0
5464f5a1 10129_ACEOF
252b5132 10130
d34a2b1d 10131
252b5132
RH
10132fi
10133
d34a2b1d
JG
10134
10135echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10136echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
10137if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 10138 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10139else
5464f5a1
NN
10140 cat >conftest.$ac_ext <<_ACEOF
10141/* confdefs.h. */
10142_ACEOF
10143cat confdefs.h >>conftest.$ac_ext
10144cat >>conftest.$ac_ext <<_ACEOF
10145/* end confdefs.h. */
d34a2b1d 10146$ac_includes_default
5464f5a1
NN
10147int
10148main ()
10149{
d34a2b1d
JG
10150#ifndef malloc
10151 char *p = (char *) malloc;
10152#endif
10153
5464f5a1
NN
10154 ;
10155 return 0;
10156}
10157_ACEOF
10158rm -f conftest.$ac_objext
10159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10160 (eval $ac_compile) 2>conftest.er1
10161 ac_status=$?
10162 grep -v '^ *+' conftest.er1 >conftest.err
10163 rm -f conftest.er1
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } &&
8fb84ecc
AC
10167 { ac_try='test -z "$ac_c_werror_flag"
10168 || test ! -s conftest.err'
5464f5a1
NN
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10171 ac_status=$?
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest.$ac_objext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
d34a2b1d 10180 ac_cv_have_decl_malloc=yes
252b5132 10181else
5464f5a1
NN
10182 echo "$as_me: failed program was:" >&5
10183sed 's/^/| /' conftest.$ac_ext >&5
10184
d34a2b1d 10185ac_cv_have_decl_malloc=no
252b5132 10186fi
5464f5a1 10187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10188fi
d34a2b1d
JG
10189echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10190echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
10191if test $ac_cv_have_decl_malloc = yes; then
252b5132 10192
d34a2b1d
JG
10193cat >>confdefs.h <<_ACEOF
10194#define HAVE_DECL_MALLOC 1
10195_ACEOF
5464f5a1 10196
d34a2b1d
JG
10197
10198else
10199 cat >>confdefs.h <<_ACEOF
10200#define HAVE_DECL_MALLOC 0
5464f5a1 10201_ACEOF
252b5132 10202
d34a2b1d 10203
252b5132
RH
10204fi
10205
d34a2b1d
JG
10206
10207echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10208echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
10209if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 10210 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10211else
5464f5a1
NN
10212 cat >conftest.$ac_ext <<_ACEOF
10213/* confdefs.h. */
10214_ACEOF
10215cat confdefs.h >>conftest.$ac_ext
10216cat >>conftest.$ac_ext <<_ACEOF
10217/* end confdefs.h. */
d34a2b1d 10218$ac_includes_default
5464f5a1
NN
10219int
10220main ()
10221{
d34a2b1d
JG
10222#ifndef realloc
10223 char *p = (char *) realloc;
10224#endif
10225
5464f5a1
NN
10226 ;
10227 return 0;
10228}
10229_ACEOF
10230rm -f conftest.$ac_objext
10231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 (eval $ac_compile) 2>conftest.er1
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } &&
8fb84ecc
AC
10239 { ac_try='test -z "$ac_c_werror_flag"
10240 || test ! -s conftest.err'
5464f5a1
NN
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; } &&
10246 { ac_try='test -s conftest.$ac_objext'
10247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
d34a2b1d 10252 ac_cv_have_decl_realloc=yes
252b5132 10253else
5464f5a1
NN
10254 echo "$as_me: failed program was:" >&5
10255sed 's/^/| /' conftest.$ac_ext >&5
10256
d34a2b1d 10257ac_cv_have_decl_realloc=no
252b5132 10258fi
5464f5a1 10259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10260fi
d34a2b1d
JG
10261echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10262echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
10263if test $ac_cv_have_decl_realloc = yes; then
10264
10265cat >>confdefs.h <<_ACEOF
10266#define HAVE_DECL_REALLOC 1
10267_ACEOF
252b5132 10268
5464f5a1 10269
d34a2b1d
JG
10270else
10271 cat >>confdefs.h <<_ACEOF
10272#define HAVE_DECL_REALLOC 0
efa9bda4
AL
10273_ACEOF
10274
d34a2b1d 10275
efa9bda4
AL
10276fi
10277
d34a2b1d 10278
be5cacdb
L
10279echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10280echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10281if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283else
10284 cat >conftest.$ac_ext <<_ACEOF
10285/* confdefs.h. */
10286_ACEOF
10287cat confdefs.h >>conftest.$ac_ext
10288cat >>conftest.$ac_ext <<_ACEOF
10289/* end confdefs.h. */
10290$ac_includes_default
10291int
10292main ()
10293{
10294#ifndef stpcpy
10295 char *p = (char *) stpcpy;
10296#endif
10297
10298 ;
10299 return 0;
10300}
10301_ACEOF
10302rm -f conftest.$ac_objext
10303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10304 (eval $ac_compile) 2>conftest.er1
10305 ac_status=$?
10306 grep -v '^ *+' conftest.er1 >conftest.err
10307 rm -f conftest.er1
10308 cat conftest.err >&5
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -z "$ac_c_werror_flag"
10312 || test ! -s conftest.err'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; } &&
10318 { ac_try='test -s conftest.$ac_objext'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 ac_cv_have_decl_stpcpy=yes
10325else
10326 echo "$as_me: failed program was:" >&5
10327sed 's/^/| /' conftest.$ac_ext >&5
10328
10329ac_cv_have_decl_stpcpy=no
10330fi
10331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10332fi
10333echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10334echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
10335if test $ac_cv_have_decl_stpcpy = yes; then
10336
10337cat >>confdefs.h <<_ACEOF
10338#define HAVE_DECL_STPCPY 1
10339_ACEOF
10340
10341
10342else
10343 cat >>confdefs.h <<_ACEOF
10344#define HAVE_DECL_STPCPY 0
10345_ACEOF
10346
10347
10348fi
10349
10350
d34a2b1d
JG
10351echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10352echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10353if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10355else
10356 cat >conftest.$ac_ext <<_ACEOF
10357/* confdefs.h. */
10358_ACEOF
10359cat confdefs.h >>conftest.$ac_ext
10360cat >>conftest.$ac_ext <<_ACEOF
10361/* end confdefs.h. */
d34a2b1d 10362$ac_includes_default
efa9bda4
AL
10363int
10364main ()
10365{
d34a2b1d
JG
10366#ifndef strstr
10367 char *p = (char *) strstr;
10368#endif
10369
efa9bda4
AL
10370 ;
10371 return 0;
10372}
10373_ACEOF
10374rm -f conftest.$ac_objext
10375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10376 (eval $ac_compile) 2>conftest.er1
10377 ac_status=$?
10378 grep -v '^ *+' conftest.er1 >conftest.err
10379 rm -f conftest.er1
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } &&
10383 { ac_try='test -z "$ac_c_werror_flag"
10384 || test ! -s conftest.err'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; } &&
10390 { ac_try='test -s conftest.$ac_objext'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; }; then
d34a2b1d 10396 ac_cv_have_decl_strstr=yes
efa9bda4
AL
10397else
10398 echo "$as_me: failed program was:" >&5
10399sed 's/^/| /' conftest.$ac_ext >&5
10400
d34a2b1d 10401ac_cv_have_decl_strstr=no
efa9bda4
AL
10402fi
10403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10404fi
d34a2b1d
JG
10405echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10406echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10407if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 10408
d34a2b1d
JG
10409cat >>confdefs.h <<_ACEOF
10410#define HAVE_DECL_STRSTR 1
10411_ACEOF
efa9bda4 10412
d34a2b1d
JG
10413
10414else
10415 cat >>confdefs.h <<_ACEOF
10416#define HAVE_DECL_STRSTR 0
5464f5a1 10417_ACEOF
252b5132 10418
d34a2b1d 10419
252b5132
RH
10420fi
10421
6be7c12c 10422
d34a2b1d 10423
252b5132
RH
10424# If we are configured native, pick a core file support file.
10425COREFILE=
10426COREFLAG=
10427TRAD_HEADER=
10428if test "${target}" = "${host}"; then
10429 case "${host}" in
13dfd2d0 10430 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
10431 COREFILE=''
10432 ;;
ed84e695 10433 alpha*-*-linux-*)
252b5132
RH
10434 COREFILE=trad-core.lo
10435 TRAD_HEADER='"hosts/alphalinux.h"'
10436 ;;
690cc98b
NC
10437 alpha*-*-netbsd* | alpha*-*-openbsd*)
10438 COREFILE=netbsd-core.lo
10439 ;;
252b5132 10440 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
10441 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
10442 COREFILE='' ;;
61d0bc33 10443 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
10444 arm-*-riscix) COREFILE=trad-core.lo ;;
10445 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
10446 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
10447 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
10448 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
10449 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
10450 hppa*-*-netbsd* | hppa*-*-openbsd*)
10451 COREFILE=netbsd-core.lo
10452 ;;
10453
dc810e39 10454 i370-*-*)
5b93d8bb
AM
10455 COREFILE=trad-core.lo
10456 TRAD_HEADER='"hosts/i370linux.h"'
10457 ;;
10458
80c7c40a 10459 i[3-7]86-sequent-bsd*)
5b93d8bb 10460 COREFILE=trad-core.lo
252b5132
RH
10461 TRAD_HEADER='"hosts/symmetry.h"'
10462 ;;
80c7c40a
NC
10463 i[3-7]86-sequent-sysv4*) ;;
10464 i[3-7]86-sequent-sysv*)
252b5132
RH
10465 COREFILE=trad-core.lo
10466 TRAD_HEADER='"hosts/symmetry.h"'
10467 ;;
80c7c40a 10468 i[3-7]86-*-bsdi)
7e3b3466
NC
10469 COREFILE=
10470 ;;
d2bef492 10471 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
10472 COREFILE=trad-core.lo
10473 TRAD_HEADER='"hosts/i386bsd.h"'
10474 ;;
13dfd2d0 10475 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
10476 COREFILE=''
10477 TRAD_HEADER='"hosts/i386bsd.h"'
10478 ;;
4615568e 10479 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
10480 COREFILE=netbsd-core.lo
10481 ;;
80c7c40a 10482 i[3-7]86-esix-sysv3*)
252b5132
RH
10483 COREFILE=trad-core.lo
10484 TRAD_HEADER='"hosts/esix.h"'
10485 ;;
80c7c40a 10486 i[3-7]86-*-sco3.2v5*)
252b5132
RH
10487 COREFILE=sco5-core.lo
10488 ;;
80c7c40a 10489 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
10490 COREFILE=trad-core.lo
10491 TRAD_HEADER='"hosts/i386sco.h"'
10492 ;;
80c7c40a 10493 i[3-7]86-*-mach3*)
252b5132
RH
10494 COREFILE=trad-core.lo
10495 TRAD_HEADER='"hosts/i386mach3.h"'
10496 ;;
ed84e695 10497 i[3-7]86-*-linux-*)
252b5132
RH
10498 COREFILE=trad-core.lo
10499 TRAD_HEADER='"hosts/i386linux.h"'
10500 ;;
80c7c40a
NC
10501 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
10502 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
10503 i860-*-mach3* | i860-*-osf1*)
10504 COREFILE=trad-core.lo
10505 TRAD_HEADER='"hosts/i860mach3.h"'
10506 ;;
252b5132
RH
10507 mips-*-netbsd* | mips*-*-openbsd*)
10508 COREFILE=netbsd-core.lo
10509 ;;
10510 mips-dec-*)
10511 COREFILE=trad-core.lo
10512 TRAD_HEADER='"hosts/decstation.h"'
10513 ;;
10514 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
10515 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
10516 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
10517 mips-*-sysv4*) ;;
10518 mips-*-sysv* | mips-*-riscos*)
10519 COREFILE=trad-core.lo
10520 TRAD_HEADER='"hosts/riscos.h"'
10521 ;;
10522 mips-sony-bsd*)
10523 COREFILE=trad-core.lo
10524 TRAD_HEADER='"hosts/news-mips.h"'
10525 ;;
10526 m68*-bull*-sysv*)
10527 COREFILE=trad-core.lo
10528 TRAD_HEADER='"hosts/dpx2.h"'
10529 ;;
10530 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
10531 m68*-hp-bsd*)
10532 COREFILE=trad-core.lo
10533 TRAD_HEADER='"hosts/hp300bsd.h"'
10534 ;;
ed84e695 10535 m68*-*-linux-*)
252b5132
RH
10536 COREFILE=trad-core.lo
10537 TRAD_HEADER='"hosts/m68klinux.h"'
10538 ;;
10539 m68*-motorola-sysv*)
10540 COREFILE=trad-core.lo
10541 TRAD_HEADER='"hosts/delta68.h"'
10542 ;;
10543 m68*-sony-*)
10544 COREFILE=trad-core.lo
10545 TRAD_HEADER='"hosts/news.h"'
10546 ;;
10547 m68*-*-netbsd* | m68*-*-openbsd*)
10548 COREFILE=netbsd-core.lo
10549 ;;
10550 m68*-apple-aux*)
10551 COREFILE=trad-core.lo
10552 TRAD_HEADER='"hosts/m68kaux.h"'
10553 ;;
eb1e0e80
NC
10554 m88*-*-sysv4*)
10555 ;;
10556 m88*-motorola-sysv*)
10557 COREFILE=ptrace-core.lo
10558 ;;
252b5132
RH
10559 m88*-*-mach3*)
10560 COREFILE=trad-core.lo
10561 TRAD_HEADER='"hosts/m88kmach3.h"'
10562 ;;
c6f8758f
NC
10563 m88*-*-openbsd*)
10564 COREFILE=netbsd-core.lo
10565 ;;
252b5132
RH
10566 ns32k-pc532-mach)
10567 COREFILE=trad-core.lo
10568 TRAD_HEADER='"hosts/pc532mach.h"'
10569 ;;
10570 ns32k-*-netbsd* | ns32k-*-openbsd*)
10571 COREFILE=netbsd-core.lo
10572 ;;
eb1e0e80
NC
10573 rs6000-*-lynx*)
10574 COREFILE=lynx-core.lo
10575 ;;
10576 rs6000-*-aix5.* | powerpc-*-aix5.*)
10577 COREFILE=rs6000-core.lo
10578 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
10579 ;;
83954261 10580 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
10581 COREFILE=rs6000-core.lo
10582 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
10583 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
10584 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
10585 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
10586echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
10587 cat >conftest.$ac_ext <<_ACEOF
10588/* confdefs.h. */
10589_ACEOF
10590cat confdefs.h >>conftest.$ac_ext
10591cat >>conftest.$ac_ext <<_ACEOF
10592/* end confdefs.h. */
83954261 10593#include <core.h>
5464f5a1
NN
10594int
10595main ()
10596{
83954261 10597struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
10598 ;
10599 return 0;
10600}
10601_ACEOF
10602rm -f conftest.$ac_objext
10603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10604 (eval $ac_compile) 2>conftest.er1
10605 ac_status=$?
10606 grep -v '^ *+' conftest.er1 >conftest.err
10607 rm -f conftest.er1
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } &&
8fb84ecc
AC
10611 { ac_try='test -z "$ac_c_werror_flag"
10612 || test ! -s conftest.err'
5464f5a1
NN
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; } &&
10618 { ac_try='test -s conftest.$ac_objext'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; }; then
10624
10625cat >>confdefs.h <<\_ACEOF
83954261 10626#define HAVE_ST_C_IMPL 1
5464f5a1 10627_ACEOF
83954261 10628
5464f5a1
NN
10629 echo "$as_me:$LINENO: result: yes" >&5
10630echo "${ECHO_T}yes" >&6
83954261 10631else
5464f5a1
NN
10632 echo "$as_me: failed program was:" >&5
10633sed 's/^/| /' conftest.$ac_ext >&5
10634
10635echo "$as_me:$LINENO: result: no" >&5
10636echo "${ECHO_T}no" >&6
83954261 10637fi
5464f5a1 10638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 10639 ;;
252b5132
RH
10640 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
10641 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
10642 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
10643 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
10644 powerpc-*-beos*) ;;
13dfd2d0
NC
10645 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
10646 COREFILE='' ;;
252b5132 10647 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 10648 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 10649 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 10650 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 10651 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
10652 COREFILE=netbsd-core.lo
10653 ;;
10654 tahoe-*-*)
10655 COREFILE=trad-core.lo
10656 TRAD_HEADER='"hosts/tahoe.h"'
10657 ;;
de6e5e1a
NC
10658 vax-*-netbsd* | vax-*-openbsd*)
10659 COREFILE=netbsd-core.lo
10660 ;;
252b5132
RH
10661 vax-*-ultrix2*)
10662 COREFILE=trad-core.lo
10663 TRAD_HEADER='"hosts/vaxult2.h"'
10664 ;;
10665 vax-*-ultrix*)
10666 COREFILE=trad-core.lo
10667 TRAD_HEADER='"hosts/vaxult2.h"'
10668 ;;
ed84e695 10669 vax-*-linux-*)
f8fc3443
NC
10670 COREFILE=trad-core.lo
10671 TRAD_HEADER='"hosts/vaxlinux.h"'
10672 ;;
252b5132
RH
10673 vax-*-*)
10674 COREFILE=trad-core.lo
10675 TRAD_HEADER='"hosts/vaxbsd.h"'
10676 ;;
85cfd8d3
MK
10677 x86_64-*-netbsd* | x86_64-*-openbsd*)
10678 COREFILE=netbsd-core.lo
10679 ;;
252b5132
RH
10680 esac
10681
10682 case "$COREFILE" in
10683 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
10684 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
10685 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
10686 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
10687 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
10688 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
10689 osf-core.lo) COREFLAG=-DOSF_CORE ;;
10690 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
10691 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
10692 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
10693 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
10694 esac
10695
10696 # ELF corefile support has several flavors, but all of
10697 # them use something called <sys/procfs.h>
5464f5a1
NN
10698
10699for ac_header in sys/procfs.h
252b5132 10700do
5464f5a1
NN
10701as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10702if eval "test \"\${$as_ac_Header+set}\" = set"; then
10703 echo "$as_me:$LINENO: checking for $ac_header" >&5
10704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10705if eval "test \"\${$as_ac_Header+set}\" = set"; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10707fi
10708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10710else
10711 # Is the header compilable?
10712echo "$as_me:$LINENO: checking $ac_header usability" >&5
10713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10714cat >conftest.$ac_ext <<_ACEOF
10715/* confdefs.h. */
10716_ACEOF
10717cat confdefs.h >>conftest.$ac_ext
10718cat >>conftest.$ac_ext <<_ACEOF
10719/* end confdefs.h. */
10720$ac_includes_default
10721#include <$ac_header>
10722_ACEOF
10723rm -f conftest.$ac_objext
10724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10725 (eval $ac_compile) 2>conftest.er1
10726 ac_status=$?
10727 grep -v '^ *+' conftest.er1 >conftest.err
10728 rm -f conftest.er1
10729 cat conftest.err >&5
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
8fb84ecc
AC
10732 { ac_try='test -z "$ac_c_werror_flag"
10733 || test ! -s conftest.err'
5464f5a1
NN
10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735 (eval $ac_try) 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; } &&
10739 { ac_try='test -s conftest.$ac_objext'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; }; then
10745 ac_header_compiler=yes
10746else
10747 echo "$as_me: failed program was:" >&5
10748sed 's/^/| /' conftest.$ac_ext >&5
10749
10750ac_header_compiler=no
10751fi
10752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10753echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10754echo "${ECHO_T}$ac_header_compiler" >&6
10755
10756# Is the header present?
10757echo "$as_me:$LINENO: checking $ac_header presence" >&5
10758echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10759cat >conftest.$ac_ext <<_ACEOF
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
10765#include <$ac_header>
10766_ACEOF
10767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } >/dev/null; then
10775 if test -s conftest.err; then
10776 ac_cpp_err=$ac_c_preproc_warn_flag
10777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10778 else
10779 ac_cpp_err=
10780 fi
252b5132 10781else
5464f5a1 10782 ac_cpp_err=yes
252b5132 10783fi
5464f5a1
NN
10784if test -z "$ac_cpp_err"; then
10785 ac_header_preproc=yes
10786else
10787 echo "$as_me: failed program was:" >&5
10788sed 's/^/| /' conftest.$ac_ext >&5
10789
10790 ac_header_preproc=no
252b5132 10791fi
5464f5a1
NN
10792rm -f conftest.err conftest.$ac_ext
10793echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10794echo "${ECHO_T}$ac_header_preproc" >&6
10795
10796# So? What about this header?
10797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10798 yes:no: )
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10803 ac_header_preproc=yes
10804 ;;
10805 no:yes:* )
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10809echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10813echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10818 (
10819 cat <<\_ASBOX
10820## ------------------------------------------ ##
10821## Report this to the AC_PACKAGE_NAME lists. ##
10822## ------------------------------------------ ##
10823_ASBOX
10824 ) |
10825 sed "s/^/$as_me: WARNING: /" >&2
10826 ;;
10827esac
10828echo "$as_me:$LINENO: checking for $ac_header" >&5
10829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10830if eval "test \"\${$as_ac_Header+set}\" = set"; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 10832else
5464f5a1
NN
10833 eval "$as_ac_Header=\$ac_header_preproc"
10834fi
10835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10837
252b5132 10838fi
5464f5a1
NN
10839if test `eval echo '${'$as_ac_Header'}'` = yes; then
10840 cat >>confdefs.h <<_ACEOF
10841#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10842_ACEOF
10843
10844fi
10845
252b5132
RH
10846done
10847
10848 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
10849 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
10850echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
10851 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853else
10854 cat >conftest.$ac_ext <<_ACEOF
10855/* confdefs.h. */
10856_ACEOF
10857cat confdefs.h >>conftest.$ac_ext
10858cat >>conftest.$ac_ext <<_ACEOF
10859/* end confdefs.h. */
7ee38065
MS
10860
10861#define _SYSCALL32
252b5132 10862#include <sys/procfs.h>
5464f5a1
NN
10863int
10864main ()
10865{
252b5132 10866prstatus_t avar
5464f5a1
NN
10867 ;
10868 return 0;
10869}
10870_ACEOF
10871rm -f conftest.$ac_objext
10872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10873 (eval $ac_compile) 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
8fb84ecc
AC
10880 { ac_try='test -z "$ac_c_werror_flag"
10881 || test ! -s conftest.err'
5464f5a1
NN
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; } &&
10887 { ac_try='test -s conftest.$ac_objext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
252b5132
RH
10893 bfd_cv_have_sys_procfs_type_prstatus_t=yes
10894else
5464f5a1
NN
10895 echo "$as_me: failed program was:" >&5
10896sed 's/^/| /' conftest.$ac_ext >&5
10897
10898bfd_cv_have_sys_procfs_type_prstatus_t=no
10899
252b5132 10900fi
5464f5a1 10901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10902fi
10903
10904 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
10905
10906cat >>confdefs.h <<\_ACEOF
252b5132 10907#define HAVE_PRSTATUS_T 1
5464f5a1 10908_ACEOF
252b5132
RH
10909
10910 fi
5464f5a1
NN
10911 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10912echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 10913
5464f5a1
NN
10914 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10915echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10916 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10918else
5464f5a1
NN
10919 cat >conftest.$ac_ext <<_ACEOF
10920/* confdefs.h. */
10921_ACEOF
10922cat confdefs.h >>conftest.$ac_ext
10923cat >>conftest.$ac_ext <<_ACEOF
10924/* end confdefs.h. */
7ee38065
MS
10925
10926#define _SYSCALL32
10927#include <sys/procfs.h>
5464f5a1
NN
10928int
10929main ()
10930{
7ee38065 10931prstatus32_t avar
5464f5a1
NN
10932 ;
10933 return 0;
10934}
10935_ACEOF
10936rm -f conftest.$ac_objext
10937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10938 (eval $ac_compile) 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
8fb84ecc
AC
10945 { ac_try='test -z "$ac_c_werror_flag"
10946 || test ! -s conftest.err'
5464f5a1
NN
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try='test -s conftest.$ac_objext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
7ee38065
MS
10958 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10959else
5464f5a1
NN
10960 echo "$as_me: failed program was:" >&5
10961sed 's/^/| /' conftest.$ac_ext >&5
10962
10963bfd_cv_have_sys_procfs_type_prstatus32_t=no
10964
7ee38065 10965fi
5464f5a1 10966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10967fi
10968
10969 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
10970
10971cat >>confdefs.h <<\_ACEOF
7ee38065 10972#define HAVE_PRSTATUS32_T 1
5464f5a1 10973_ACEOF
7ee38065
MS
10974
10975 fi
5464f5a1
NN
10976 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10977echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 10978
5464f5a1
NN
10979 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10980echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10981 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10983else
5464f5a1
NN
10984 cat >conftest.$ac_ext <<_ACEOF
10985/* confdefs.h. */
10986_ACEOF
10987cat confdefs.h >>conftest.$ac_ext
10988cat >>conftest.$ac_ext <<_ACEOF
10989/* end confdefs.h. */
7ee38065
MS
10990
10991#define _SYSCALL32
252b5132 10992#include <sys/procfs.h>
5464f5a1
NN
10993int
10994main ()
10995{
252b5132 10996prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
10997 ;
10998 return 0;
10999}
11000_ACEOF
11001rm -f conftest.$ac_objext
11002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11003 (eval $ac_compile) 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } &&
8fb84ecc
AC
11010 { ac_try='test -z "$ac_c_werror_flag"
11011 || 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_member_prstatus_t_pr_who=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_member_prstatus_t_pr_who=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_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
11035
11036cat >>confdefs.h <<\_ACEOF
252b5132 11037#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 11038_ACEOF
252b5132
RH
11039
11040 fi
5464f5a1
NN
11041 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
11042echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 11043
5464f5a1
NN
11044 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
11045echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11046 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 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. */
7ee38065
MS
11055
11056#define _SYSCALL32
11057#include <sys/procfs.h>
5464f5a1
NN
11058int
11059main ()
11060{
7ee38065 11061prstatus32_t avar; void* aref = (void*) &avar.pr_who
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); } &&
8fb84ecc
AC
11075 { ac_try='test -z "$ac_c_werror_flag"
11076 || test ! -s conftest.err'
5464f5a1
NN
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; } &&
11082 { ac_try='test -s conftest.$ac_objext'
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; }; then
7ee38065
MS
11088 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
11089else
5464f5a1
NN
11090 echo "$as_me: failed program was:" >&5
11091sed 's/^/| /' conftest.$ac_ext >&5
11092
11093bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
11094
7ee38065 11095fi
5464f5a1 11096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11097fi
11098
11099 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
11100
11101cat >>confdefs.h <<\_ACEOF
7ee38065 11102#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 11103_ACEOF
7ee38065
MS
11104
11105 fi
5464f5a1
NN
11106 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
11107echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 11108
5464f5a1
NN
11109 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
11110echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
11111 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11113else
5464f5a1
NN
11114 cat >conftest.$ac_ext <<_ACEOF
11115/* confdefs.h. */
11116_ACEOF
11117cat confdefs.h >>conftest.$ac_ext
11118cat >>conftest.$ac_ext <<_ACEOF
11119/* end confdefs.h. */
7ee38065
MS
11120
11121#define _SYSCALL32
252b5132 11122#include <sys/procfs.h>
5464f5a1
NN
11123int
11124main ()
11125{
252b5132 11126pstatus_t avar
5464f5a1
NN
11127 ;
11128 return 0;
11129}
11130_ACEOF
11131rm -f conftest.$ac_objext
11132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11133 (eval $ac_compile) 2>conftest.er1
11134 ac_status=$?
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } &&
8fb84ecc
AC
11140 { ac_try='test -z "$ac_c_werror_flag"
11141 || test ! -s conftest.err'
5464f5a1
NN
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; } &&
11147 { ac_try='test -s conftest.$ac_objext'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
252b5132
RH
11153 bfd_cv_have_sys_procfs_type_pstatus_t=yes
11154else
5464f5a1
NN
11155 echo "$as_me: failed program was:" >&5
11156sed 's/^/| /' conftest.$ac_ext >&5
11157
11158bfd_cv_have_sys_procfs_type_pstatus_t=no
11159
252b5132 11160fi
5464f5a1 11161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11162fi
11163
11164 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
11165
11166cat >>confdefs.h <<\_ACEOF
252b5132 11167#define HAVE_PSTATUS_T 1
5464f5a1 11168_ACEOF
252b5132
RH
11169
11170 fi
5464f5a1
NN
11171 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11172echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 11173
5464f5a1
NN
11174 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
11175echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
11176 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 11178else
5464f5a1
NN
11179 cat >conftest.$ac_ext <<_ACEOF
11180/* confdefs.h. */
11181_ACEOF
11182cat confdefs.h >>conftest.$ac_ext
11183cat >>conftest.$ac_ext <<_ACEOF
11184/* end confdefs.h. */
f572a39d
AM
11185
11186#define _SYSCALL32
11187#include <sys/procfs.h>
5464f5a1
NN
11188int
11189main ()
11190{
f572a39d 11191pxstatus_t avar
5464f5a1
NN
11192 ;
11193 return 0;
11194}
11195_ACEOF
11196rm -f conftest.$ac_objext
11197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11198 (eval $ac_compile) 2>conftest.er1
11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } &&
8fb84ecc
AC
11205 { ac_try='test -z "$ac_c_werror_flag"
11206 || test ! -s conftest.err'
5464f5a1
NN
11207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11208 (eval $ac_try) 2>&5
11209 ac_status=$?
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; } &&
11212 { ac_try='test -s conftest.$ac_objext'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; }; then
f572a39d
AM
11218 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
11219else
5464f5a1
NN
11220 echo "$as_me: failed program was:" >&5
11221sed 's/^/| /' conftest.$ac_ext >&5
11222
11223bfd_cv_have_sys_procfs_type_pxstatus_t=no
11224
f572a39d 11225fi
5464f5a1 11226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
11227fi
11228
11229 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
11230
11231cat >>confdefs.h <<\_ACEOF
f572a39d 11232#define HAVE_PXSTATUS_T 1
5464f5a1 11233_ACEOF
f572a39d
AM
11234
11235 fi
5464f5a1
NN
11236 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
11237echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 11238
5464f5a1
NN
11239 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
11240echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
11241 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 11243else
5464f5a1
NN
11244 cat >conftest.$ac_ext <<_ACEOF
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
7ee38065
MS
11250
11251#define _SYSCALL32
11252#include <sys/procfs.h>
5464f5a1
NN
11253int
11254main ()
11255{
7ee38065 11256pstatus32_t avar
5464f5a1
NN
11257 ;
11258 return 0;
11259}
11260_ACEOF
11261rm -f conftest.$ac_objext
11262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11263 (eval $ac_compile) 2>conftest.er1
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
8fb84ecc
AC
11270 { ac_try='test -z "$ac_c_werror_flag"
11271 || test ! -s conftest.err'
5464f5a1
NN
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; } &&
11277 { ac_try='test -s conftest.$ac_objext'
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
7ee38065
MS
11283 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
11284else
5464f5a1
NN
11285 echo "$as_me: failed program was:" >&5
11286sed 's/^/| /' conftest.$ac_ext >&5
11287
11288bfd_cv_have_sys_procfs_type_pstatus32_t=no
11289
7ee38065 11290fi
5464f5a1 11291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11292fi
11293
11294 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
11295
11296cat >>confdefs.h <<\_ACEOF
7ee38065 11297#define HAVE_PSTATUS32_T 1
5464f5a1 11298_ACEOF
7ee38065
MS
11299
11300 fi
5464f5a1
NN
11301 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
11302echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 11303
5464f5a1
NN
11304 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
11305echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
11306 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11308else
5464f5a1
NN
11309 cat >conftest.$ac_ext <<_ACEOF
11310/* confdefs.h. */
11311_ACEOF
11312cat confdefs.h >>conftest.$ac_ext
11313cat >>conftest.$ac_ext <<_ACEOF
11314/* end confdefs.h. */
7ee38065
MS
11315
11316#define _SYSCALL32
252b5132 11317#include <sys/procfs.h>
5464f5a1
NN
11318int
11319main ()
11320{
252b5132 11321prpsinfo_t avar
5464f5a1
NN
11322 ;
11323 return 0;
11324}
11325_ACEOF
11326rm -f conftest.$ac_objext
11327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11328 (eval $ac_compile) 2>conftest.er1
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
8fb84ecc
AC
11335 { ac_try='test -z "$ac_c_werror_flag"
11336 || test ! -s conftest.err'
5464f5a1
NN
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; } &&
11342 { ac_try='test -s conftest.$ac_objext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
252b5132
RH
11348 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
11349else
5464f5a1
NN
11350 echo "$as_me: failed program was:" >&5
11351sed 's/^/| /' conftest.$ac_ext >&5
11352
11353bfd_cv_have_sys_procfs_type_prpsinfo_t=no
11354
252b5132 11355fi
5464f5a1 11356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11357fi
11358
11359 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
11360
11361cat >>confdefs.h <<\_ACEOF
252b5132 11362#define HAVE_PRPSINFO_T 1
5464f5a1 11363_ACEOF
252b5132
RH
11364
11365 fi
5464f5a1
NN
11366 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
11367echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 11368
5464f5a1
NN
11369 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
11370echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
11371 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 11373else
5464f5a1
NN
11374 cat >conftest.$ac_ext <<_ACEOF
11375/* confdefs.h. */
11376_ACEOF
11377cat confdefs.h >>conftest.$ac_ext
11378cat >>conftest.$ac_ext <<_ACEOF
11379/* end confdefs.h. */
7ee38065
MS
11380
11381#define _SYSCALL32
11382#include <sys/procfs.h>
5464f5a1
NN
11383int
11384main ()
11385{
7ee38065 11386prpsinfo32_t avar
5464f5a1
NN
11387 ;
11388 return 0;
11389}
11390_ACEOF
11391rm -f conftest.$ac_objext
11392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
8fb84ecc
AC
11400 { ac_try='test -z "$ac_c_werror_flag"
11401 || test ! -s conftest.err'
5464f5a1
NN
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
7ee38065
MS
11413 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
11414else
5464f5a1
NN
11415 echo "$as_me: failed program was:" >&5
11416sed 's/^/| /' conftest.$ac_ext >&5
11417
11418bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
11419
7ee38065 11420fi
5464f5a1 11421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11422fi
11423
11424 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
11425
11426cat >>confdefs.h <<\_ACEOF
7ee38065 11427#define HAVE_PRPSINFO32_T 1
5464f5a1 11428_ACEOF
7ee38065
MS
11429
11430 fi
5464f5a1
NN
11431 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
11432echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 11433
5464f5a1
NN
11434 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
11435echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
11436 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11438else
5464f5a1
NN
11439 cat >conftest.$ac_ext <<_ACEOF
11440/* confdefs.h. */
11441_ACEOF
11442cat confdefs.h >>conftest.$ac_ext
11443cat >>conftest.$ac_ext <<_ACEOF
11444/* end confdefs.h. */
7ee38065
MS
11445
11446#define _SYSCALL32
252b5132 11447#include <sys/procfs.h>
5464f5a1
NN
11448int
11449main ()
11450{
252b5132 11451psinfo_t avar
5464f5a1
NN
11452 ;
11453 return 0;
11454}
11455_ACEOF
11456rm -f conftest.$ac_objext
11457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11458 (eval $ac_compile) 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
8fb84ecc
AC
11465 { ac_try='test -z "$ac_c_werror_flag"
11466 || test ! -s conftest.err'
5464f5a1
NN
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; } &&
11472 { ac_try='test -s conftest.$ac_objext'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11475 ac_status=$?
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
252b5132
RH
11478 bfd_cv_have_sys_procfs_type_psinfo_t=yes
11479else
5464f5a1
NN
11480 echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
11483bfd_cv_have_sys_procfs_type_psinfo_t=no
11484
252b5132 11485fi
5464f5a1 11486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11487fi
11488
11489 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
11490
11491cat >>confdefs.h <<\_ACEOF
252b5132 11492#define HAVE_PSINFO_T 1
5464f5a1 11493_ACEOF
252b5132
RH
11494
11495 fi
5464f5a1
NN
11496 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
11497echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 11498
5464f5a1
NN
11499 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
11500echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
11501 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 11503else
5464f5a1
NN
11504 cat >conftest.$ac_ext <<_ACEOF
11505/* confdefs.h. */
11506_ACEOF
11507cat confdefs.h >>conftest.$ac_ext
11508cat >>conftest.$ac_ext <<_ACEOF
11509/* end confdefs.h. */
7ee38065
MS
11510
11511#define _SYSCALL32
11512#include <sys/procfs.h>
5464f5a1
NN
11513int
11514main ()
11515{
7ee38065 11516psinfo32_t avar
5464f5a1
NN
11517 ;
11518 return 0;
11519}
11520_ACEOF
11521rm -f conftest.$ac_objext
11522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11523 (eval $ac_compile) 2>conftest.er1
11524 ac_status=$?
11525 grep -v '^ *+' conftest.er1 >conftest.err
11526 rm -f conftest.er1
11527 cat conftest.err >&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } &&
8fb84ecc
AC
11530 { ac_try='test -z "$ac_c_werror_flag"
11531 || test ! -s conftest.err'
5464f5a1
NN
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; } &&
11537 { ac_try='test -s conftest.$ac_objext'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; }; then
7ee38065
MS
11543 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
11544else
5464f5a1
NN
11545 echo "$as_me: failed program was:" >&5
11546sed 's/^/| /' conftest.$ac_ext >&5
11547
11548bfd_cv_have_sys_procfs_type_psinfo32_t=no
11549
7ee38065 11550fi
5464f5a1 11551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11552fi
11553
11554 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
11555
11556cat >>confdefs.h <<\_ACEOF
7ee38065 11557#define HAVE_PSINFO32_T 1
5464f5a1 11558_ACEOF
7ee38065
MS
11559
11560 fi
5464f5a1
NN
11561 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
11562echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 11563
5464f5a1
NN
11564 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
11565echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
11566 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11568else
5464f5a1
NN
11569 cat >conftest.$ac_ext <<_ACEOF
11570/* confdefs.h. */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h. */
7ee38065
MS
11575
11576#define _SYSCALL32
252b5132 11577#include <sys/procfs.h>
5464f5a1
NN
11578int
11579main ()
11580{
252b5132 11581lwpstatus_t avar
5464f5a1
NN
11582 ;
11583 return 0;
11584}
11585_ACEOF
11586rm -f conftest.$ac_objext
11587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11588 (eval $ac_compile) 2>conftest.er1
11589 ac_status=$?
11590 grep -v '^ *+' conftest.er1 >conftest.err
11591 rm -f conftest.er1
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } &&
8fb84ecc
AC
11595 { ac_try='test -z "$ac_c_werror_flag"
11596 || test ! -s conftest.err'
5464f5a1
NN
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest.$ac_objext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
252b5132
RH
11608 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
11609else
5464f5a1
NN
11610 echo "$as_me: failed program was:" >&5
11611sed 's/^/| /' conftest.$ac_ext >&5
11612
11613bfd_cv_have_sys_procfs_type_lwpstatus_t=no
11614
252b5132 11615fi
5464f5a1 11616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11617fi
11618
11619 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
11620
11621cat >>confdefs.h <<\_ACEOF
252b5132 11622#define HAVE_LWPSTATUS_T 1
5464f5a1 11623_ACEOF
252b5132
RH
11624
11625 fi
5464f5a1
NN
11626 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
11627echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 11628
5464f5a1
NN
11629 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
11630echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
11631 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 11633else
5464f5a1
NN
11634 cat >conftest.$ac_ext <<_ACEOF
11635/* confdefs.h. */
11636_ACEOF
11637cat confdefs.h >>conftest.$ac_ext
11638cat >>conftest.$ac_ext <<_ACEOF
11639/* end confdefs.h. */
f572a39d
AM
11640
11641#define _SYSCALL32
11642#include <sys/procfs.h>
5464f5a1
NN
11643int
11644main ()
11645{
f572a39d 11646lwpxstatus_t avar
5464f5a1
NN
11647 ;
11648 return 0;
11649}
11650_ACEOF
11651rm -f conftest.$ac_objext
11652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653 (eval $ac_compile) 2>conftest.er1
11654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
8fb84ecc
AC
11660 { ac_try='test -z "$ac_c_werror_flag"
11661 || test ! -s conftest.err'
5464f5a1
NN
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest.$ac_objext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
f572a39d
AM
11673 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
11674else
5464f5a1
NN
11675 echo "$as_me: failed program was:" >&5
11676sed 's/^/| /' conftest.$ac_ext >&5
11677
11678bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
11679
f572a39d 11680fi
5464f5a1 11681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
11682fi
11683
11684 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
11685
11686cat >>confdefs.h <<\_ACEOF
f572a39d 11687#define HAVE_LWPXSTATUS_T 1
5464f5a1 11688_ACEOF
f572a39d
AM
11689
11690 fi
5464f5a1
NN
11691 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
11692echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 11693
5464f5a1
NN
11694 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
11695echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
11696 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11698else
5464f5a1
NN
11699 cat >conftest.$ac_ext <<_ACEOF
11700/* confdefs.h. */
11701_ACEOF
11702cat confdefs.h >>conftest.$ac_ext
11703cat >>conftest.$ac_ext <<_ACEOF
11704/* end confdefs.h. */
7ee38065
MS
11705
11706#define _SYSCALL32
252b5132 11707#include <sys/procfs.h>
5464f5a1
NN
11708int
11709main ()
11710{
252b5132 11711lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
11712 ;
11713 return 0;
11714}
11715_ACEOF
11716rm -f conftest.$ac_objext
11717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11718 (eval $ac_compile) 2>conftest.er1
11719 ac_status=$?
11720 grep -v '^ *+' conftest.er1 >conftest.err
11721 rm -f conftest.er1
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } &&
8fb84ecc
AC
11725 { ac_try='test -z "$ac_c_werror_flag"
11726 || test ! -s conftest.err'
5464f5a1
NN
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11729 ac_status=$?
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; } &&
11732 { ac_try='test -s conftest.$ac_objext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
252b5132
RH
11738 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
11739else
5464f5a1
NN
11740 echo "$as_me: failed program was:" >&5
11741sed 's/^/| /' conftest.$ac_ext >&5
11742
11743bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
11744
252b5132 11745fi
5464f5a1 11746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11747fi
11748
11749 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
11750
11751cat >>confdefs.h <<\_ACEOF
252b5132 11752#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 11753_ACEOF
252b5132
RH
11754
11755 fi
5464f5a1
NN
11756 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
11757echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 11758
5464f5a1
NN
11759 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
11760echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
11761 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11763else
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. */
7ee38065
MS
11770
11771#define _SYSCALL32
252b5132 11772#include <sys/procfs.h>
5464f5a1
NN
11773int
11774main ()
11775{
252b5132 11776lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
11777 ;
11778 return 0;
11779}
11780_ACEOF
11781rm -f conftest.$ac_objext
11782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11783 (eval $ac_compile) 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } &&
8fb84ecc
AC
11790 { ac_try='test -z "$ac_c_werror_flag"
11791 || test ! -s conftest.err'
5464f5a1
NN
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; } &&
11797 { ac_try='test -s conftest.$ac_objext'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
252b5132
RH
11803 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
11804else
5464f5a1
NN
11805 echo "$as_me: failed program was:" >&5
11806sed 's/^/| /' conftest.$ac_ext >&5
11807
11808bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
11809
252b5132 11810fi
5464f5a1 11811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11812fi
11813
11814 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
11815
11816cat >>confdefs.h <<\_ACEOF
252b5132 11817#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 11818_ACEOF
252b5132
RH
11819
11820 fi
5464f5a1
NN
11821 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
11822echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 11823
5464f5a1
NN
11824 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
11825echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
11826 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 11828else
5464f5a1
NN
11829 cat >conftest.$ac_ext <<_ACEOF
11830/* confdefs.h. */
11831_ACEOF
11832cat confdefs.h >>conftest.$ac_ext
11833cat >>conftest.$ac_ext <<_ACEOF
11834/* end confdefs.h. */
7ee38065
MS
11835
11836#define _SYSCALL32
e3c976c4 11837#include <sys/procfs.h>
5464f5a1
NN
11838int
11839main ()
11840{
e3c976c4 11841win32_pstatus_t avar
5464f5a1
NN
11842 ;
11843 return 0;
11844}
11845_ACEOF
11846rm -f conftest.$ac_objext
11847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848 (eval $ac_compile) 2>conftest.er1
11849 ac_status=$?
11850 grep -v '^ *+' conftest.er1 >conftest.err
11851 rm -f conftest.er1
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } &&
8fb84ecc
AC
11855 { ac_try='test -z "$ac_c_werror_flag"
11856 || test ! -s conftest.err'
5464f5a1
NN
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; } &&
11862 { ac_try='test -s conftest.$ac_objext'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11865 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
e3c976c4
ILT
11868 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
11869else
5464f5a1
NN
11870 echo "$as_me: failed program was:" >&5
11871sed 's/^/| /' conftest.$ac_ext >&5
11872
11873bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
11874
e3c976c4 11875fi
5464f5a1 11876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11877fi
11878
e3c976c4 11879 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
11880
11881cat >>confdefs.h <<\_ACEOF
e3c976c4 11882#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 11883_ACEOF
16e9c715
NC
11884
11885 fi
5464f5a1
NN
11886 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
11887echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
11888
11889 fi
11890fi
16e9c715 11891
b3baf5d0 11892
6be7c12c 11893if test -n "$TRAD_HEADER"; then
5464f5a1
NN
11894
11895cat >>confdefs.h <<_ACEOF
252b5132 11896#define TRAD_HEADER $TRAD_HEADER
5464f5a1 11897_ACEOF
252b5132 11898
3f9b03b5 11899fi
252b5132
RH
11900
11901# Horrible hacks to build DLLs on Windows.
11902WIN32LDFLAGS=
11903WIN32LIBADD=
11904case "${host}" in
11905*-*-cygwin*)
11906 if test "$enable_shared" = "yes"; then
11907 WIN32LDFLAGS="-no-undefined"
11908 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11909 fi
11910 ;;
78be1d6e 11911*-*-linux*)
39691762
L
11912 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11913 # libiberty.a.
ca51bfff
L
11914 case "${host}" in
11915 mips*-*-linux*)
11916 # Linux/MIPS uses PIC by default.
11917 if test "$enable_shared" = "yes"; then
11918 WIN32LIBADD="-L../libiberty -liberty"
11919 fi
11920 ;;
11921 *)
66e25bab 11922 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 11923 if test -n "$x"; then
ca51bfff
L
11924 WIN32LIBADD="-L../libiberty/pic -liberty"
11925 fi
11926 ;;
11927 esac
39691762 11928 ;;
252b5132
RH
11929esac
11930
6be7c12c
AO
11931
11932
252b5132
RH
11933# target stuff:
11934
11935# Canonicalize the secondary target names.
11936if test -n "$enable_targets" ; then
11937 for targ in `echo $enable_targets | sed 's/,/ /g'`
11938 do
6d83c84b 11939 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
11940 if test -n "$result" ; then
11941 canon_targets="$canon_targets $result"
11942 else
11943 # Allow targets that config.sub doesn't recognize, like "all".
11944 canon_targets="$canon_targets $targ"
11945 fi
11946 done
11947fi
11948
11949all_targets=false
11950defvec=
11951selvecs=
08f74004 11952assocvecs=
252b5132
RH
11953selarchs=
11954TDEFINES=
11955for targ in $target $canon_targets
11956do
11957 if test "x$targ" = "xall"; then
11958 all_targets=true
08f74004 11959 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
11960 else
11961 . $srcdir/config.bfd
11962 if test "x$targ" = "x$target"; then
11963 defvec=$targ_defvec
11964 fi
11965 selvecs="$selvecs $targ_defvec $targ_selvecs"
11966 selarchs="$selarchs $targ_archs"
11967 TDEFINES="$TDEFINES $targ_cflags"
11968 fi
11969done
11970
6be7c12c 11971
252b5132
RH
11972# This processing still needs to be done if we're to decide properly whether
11973# 64-bit support needs to be compiled in. Currently, it will be included if
11974# the default or any other explicitly requested target requires it; it
11975# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 11976# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
11977# used.
11978
11979# uniq the default and selected vectors in all the configured targets.
11980f=""
11981for i in $selvecs ; do
11982 case " $f " in
11983 *" $i "*) ;;
11984 *) f="$f $i" ;;
11985 esac
11986done
11987selvecs="$f"
11988
6be7c12c 11989
08f74004
AM
11990# uniq the associated vectors in all the configured targets.
11991f=""
11992for i in $assocvecs ; do
11993 case " $f " in
11994 *" $i "*) ;;
11995 *) f="$f $i" ;;
11996 esac
11997done
11998assocvecs="$f"
11999
12000
252b5132
RH
12001# uniq the architectures in all the configured targets.
12002f=""
12003for i in $selarchs ; do
12004 case " $f " in
12005 *" $i "*) ;;
12006 *) f="$f $i" ;;
12007 esac
12008done
12009selarchs="$f"
12010
12011# Target backend .o files.
12012tb=
12013
65765700 12014elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
12015
12016for vec in $selvecs
12017do
69263e90 12018 target_size=32
252b5132
RH
12019 case "$vec" in
12020 # This list is alphabetized to make it easy to compare
dc810e39
AM
12021 # with the two vector lists in targets.c. For the same reason,
12022 # use one entry per line, even though this leads to long lines.
252b5132
RH
12023 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
12024 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 12025 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
12026 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
12027 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
12028 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 12029 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
12030 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12031 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12032 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12033 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12034 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12035 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12036 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
12037 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12038 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12039 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12040 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
12041 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
12042 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 12043 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 12044 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 12045 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 12046 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
dc810e39 12047 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 12048 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
7f266840 12049 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
e5a52504 12050 bfd_elf32_bigarm_symbian_vec)
7f266840 12051 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
4e7fd91e
PB
12052 bfd_elf32_bigarm_vxworks_vec)
12053 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 12054 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 12055 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 12056 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 12057 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
12058 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
12059 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 12060 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 12061 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 12062 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 12063 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 12064 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 12065 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 12066 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 12067 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 12068 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
b6821651
AM
12069 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
12070 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
9d751335 12071 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 12072 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 12073 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 12074 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 12075 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 12076 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 12077 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 12078 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 12079 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 12080 bfd_elf32_littlearm_symbian_vec)
7f266840 12081 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
4e7fd91e
PB
12082 bfd_elf32_littlearm_vxworks_vec)
12083 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
7f266840 12084 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 12085 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
252b5132 12086 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
12087 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12088 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12089 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
12090 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12091 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
12092 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
12093 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
12094 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12095 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12096 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
12097 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
2469cfa2 12098 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
8a397dad
TS
12099 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12100 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12101 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12102 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 12103 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 12104 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
12105 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
12106 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
b6821651
AM
12107 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
12108 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
a85d7ed0 12109 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
eb1e0e80
NC
12110 # FIXME: We include cofflink.lo not because it's needed for
12111 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
12112 # which needs it but does not list it. Should be fixed in right place.
9cba27b2
JT
12113 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12114 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
2bc3c89a
AM
12115 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12116 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12117 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
12118 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
b6821651
AM
12119 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
12120 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12121 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
85fbca6a 12122 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
b6821651
AM
12123 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12124 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12125 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
22b75d0a 12126 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
c6e90b02
TS
12127 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12128 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 12129 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 12130 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 12131 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 12132 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
e0001a05
NC
12133 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
12134 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 12135 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
12136 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
12137 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 12138 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
12139 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
12140 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 12141 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 12142 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
12143 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12144 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 12145 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 12146 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
12147 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12148 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
12149 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
12150 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12151 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
12152 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12153 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12154 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12155 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
22b75d0a 12156 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02
TS
12157 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12158 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39 12159 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 12160 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
12161 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12162 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
12163 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12164 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 12165 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 12166 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 12167 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 12168 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
12169 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12170 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
12171 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
12172 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
12173 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
12174 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
12175 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
12176 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
12177 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
12178 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
12179 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
12180 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
12181 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
12182 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
12183 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
12184 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
12185 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
12186 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 12187 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
12188 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
12189 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
12190 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
12191 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
12192 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
12193 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
12194 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
12195 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
12196 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
12197 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
12198 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
12199 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
12200 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
12201 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
12202 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
12203 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
12204 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
12205 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 12206 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 12207 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 12208 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
12209 mach_o_be_vec) tb="$tb mach-o.lo" ;;
12210 mach_o_le_vec) tb="$tb mach-o.lo" ;;
12211 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
12212 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
12213 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
12214 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
12215 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
12216 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
12217 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 12218 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 12219 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 12220 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 12221 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 12222 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 12223 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 12224 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 12225 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
12226 pef_vec) tb="$tb pef.lo" ;;
12227 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 12228 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 12229 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 12230 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 12231 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 12232 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 12233 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 12234 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 12235 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 12236 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 12237 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
12238 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
12239 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 12240 som_vec) tb="$tb som.lo" ;;
dc810e39 12241 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
12242 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
12243 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
12244 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
12245 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
12246 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 12247 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 12248 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
12249 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
12250 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
12251 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
12252 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
12253 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
12254 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
12255 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
12256 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 12257 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 12258 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 12259 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 12260 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 12261 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 12262 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 12263 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 12264 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 12265 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 12266 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 12267 versados_vec) tb="$tb versados.lo" ;;
dc810e39 12268 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
12269 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
12270 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
12271 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
12272 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
12273
341ca622
AM
12274 # These appear out of order in targets.c
12275 srec_vec) tb="$tb srec.lo" ;;
12276 symbolsrec_vec) tb="$tb srec.lo" ;;
12277 tekhex_vec) tb="$tb tekhex.lo" ;;
12278 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
12279 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
12280
252b5132 12281 "") ;;
5464f5a1
NN
12282 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
12283echo "$as_me: error: *** unknown target vector $vec" >&2;}
12284 { (exit 1); exit 1; }; } ;;
252b5132 12285 esac
69263e90
AM
12286
12287 if test ${target_size} = 64; then
12288 target64=true
12289 fi
12290 if test x"${vec}" = x"${defvec}"; then
12291 bfd_default_target_size=${target_size}
12292 fi
252b5132
RH
12293done
12294
12295# Target architecture .o files.
12296# A couple of CPUs use shorter file names to avoid problems on DOS
12297# filesystems.
12298ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
12299
12300# Weed out duplicate .o files.
12301f=""
12302for i in $tb ; do
12303 case " $f " in
12304 *" $i "*) ;;
12305 *) f="$f $i" ;;
12306 esac
12307done
12308tb="$f"
12309
12310f=""
12311for i in $ta ; do
12312 case " $f " in
12313 *" $i "*) ;;
12314 *) f="$f $i" ;;
12315 esac
12316done
12317ta="$f"
12318
12319bfd_backends="$tb"
12320bfd_machines="$ta"
12321
12322if test x${all_targets} = xtrue ; then
12323 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
12324 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
12325 selvecs=
12326 havevecs=
12327 selarchs=
08f74004
AM
12328 test -n "$assocvecs" &&
12329 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
12330else # all_targets is true
12331 # Only set these if they will be nonempty, for the clever echo.
12332 havevecs=
08f74004 12333 assocvecs=
252b5132
RH
12334 test -n "$selvecs" &&
12335 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
12336 test -n "$selvecs" &&
12337 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
12338 test -n "$selarchs" &&
12339 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
12340fi # all_targets is true
12341
12342case ${host64}-${target64}-${want64} in
12343 *true*)
12344 wordsize=64
2858ef35 12345 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 12346 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 12347 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
12348 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
12349echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
12350 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
12351echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 12352 fi
966abd70
HPN
12353 if test -n "$GCC" ; then
12354 bad_64bit_gcc=no;
5464f5a1
NN
12355 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
12356echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 12357 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
12358 cat >conftest.$ac_ext <<_ACEOF
12359/* confdefs.h. */
12360_ACEOF
12361cat confdefs.h >>conftest.$ac_ext
12362cat >>conftest.$ac_ext <<_ACEOF
12363/* end confdefs.h. */
966abd70 12364:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 12365_ACEOF
966abd70 12366if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 12367 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 12368 bad_64bit_gcc=yes;
5464f5a1
NN
12369 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
12370echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 12371else
5464f5a1
NN
12372 echo "$as_me:$LINENO: result: no" >&5
12373echo "${ECHO_T}no" >&6
966abd70
HPN
12374fi
12375rm -f conftest*
12376
12377 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
12378 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
12379echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
12380 { (exit 1); exit 1; }; }
966abd70
HPN
12381 fi
12382 fi
252b5132
RH
12383 ;;
12384 false-false-false)
12385 wordsize=32
2858ef35 12386 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
12387 all_backends='$(BFD32_BACKENDS)'
12388 ;;
12389esac
12390
6be7c12c
AO
12391
12392
12393
12394
12395
69263e90 12396
2858ef35 12397
1012372a
AC
12398# Determine the host dependant file_ptr a.k.a. off_t type. In order
12399# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
12400# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
12401# Hopefully a reasonable assumption since fseeko et.al. should be
12402# upward compatible.
5464f5a1
NN
12403
12404
12405
12406
1012372a
AC
12407for ac_func in ftello ftello64 fseeko fseeko64
12408do
5464f5a1
NN
12409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12410echo "$as_me:$LINENO: checking for $ac_func" >&5
12411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12412if eval "test \"\${$as_ac_var+set}\" = set"; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12414else
12415 cat >conftest.$ac_ext <<_ACEOF
12416/* confdefs.h. */
12417_ACEOF
12418cat confdefs.h >>conftest.$ac_ext
12419cat >>conftest.$ac_ext <<_ACEOF
12420/* end confdefs.h. */
12421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12423#define $ac_func innocuous_$ac_func
12424
1012372a 12425/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
12426 which can conflict with char $ac_func (); below.
12427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12428 <limits.h> exists even on freestanding compilers. */
12429
12430#ifdef __STDC__
12431# include <limits.h>
12432#else
12433# include <assert.h>
12434#endif
1012372a 12435
5464f5a1 12436#undef $ac_func
1012372a 12437
5464f5a1
NN
12438/* Override any gcc2 internal prototype to avoid an error. */
12439#ifdef __cplusplus
12440extern "C"
12441{
12442#endif
12443/* We use char because int might match the return type of a gcc2
12444 builtin and then its argument prototype would still apply. */
12445char $ac_func ();
1012372a
AC
12446/* The GNU C library defines this for functions which it implements
12447 to always fail with ENOSYS. Some functions are actually named
12448 something starting with __ and the normal name is an alias. */
12449#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12450choke me
12451#else
5464f5a1
NN
12452char (*f) () = $ac_func;
12453#endif
12454#ifdef __cplusplus
12455}
1012372a
AC
12456#endif
12457
5464f5a1
NN
12458int
12459main ()
12460{
12461return f != $ac_func;
12462 ;
12463 return 0;
12464}
12465_ACEOF
12466rm -f conftest.$ac_objext conftest$ac_exeext
12467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468 (eval $ac_link) 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } &&
8fb84ecc
AC
12475 { ac_try='test -z "$ac_c_werror_flag"
12476 || test ! -s conftest.err'
5464f5a1
NN
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 eval "$as_ac_var=yes"
12489else
12490 echo "$as_me: failed program was:" >&5
12491sed 's/^/| /' conftest.$ac_ext >&5
12492
12493eval "$as_ac_var=no"
12494fi
12495rm -f conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
12497fi
12498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12499echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12500if test `eval echo '${'$as_ac_var'}'` = yes; then
12501 cat >>confdefs.h <<_ACEOF
12502#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12503_ACEOF
1012372a 12504
1012372a
AC
12505fi
12506done
12507
1012372a 12508if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
5464f5a1
NN
12509 echo "$as_me:$LINENO: checking size of off_t" >&5
12510echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
12511if test "${ac_cv_sizeof_off_t+set}" = set; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
1012372a
AC
12513else
12514 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
12515 cat >conftest.$ac_ext <<_ACEOF
12516/* confdefs.h. */
12517_ACEOF
12518cat confdefs.h >>conftest.$ac_ext
12519cat >>conftest.$ac_ext <<_ACEOF
12520/* end confdefs.h. */
1012372a
AC
12521#include "confdefs.h"
12522#include <sys/types.h>
12523
12524
5464f5a1
NN
12525int
12526main ()
12527{
1012372a 12528switch (0) case 0: case (sizeof (off_t) == $ac_size):;
5464f5a1
NN
12529 ;
12530 return 0;
12531}
12532_ACEOF
12533rm -f conftest.$ac_objext
12534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535 (eval $ac_compile) 2>conftest.er1
12536 ac_status=$?
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
8fb84ecc
AC
12542 { ac_try='test -z "$ac_c_werror_flag"
12543 || test ! -s conftest.err'
5464f5a1
NN
12544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; } &&
12549 { ac_try='test -s conftest.$ac_objext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
1012372a
AC
12555 ac_cv_sizeof_off_t=$ac_size
12556else
5464f5a1
NN
12557 echo "$as_me: failed program was:" >&5
12558sed 's/^/| /' conftest.$ac_ext >&5
12559
1012372a 12560fi
5464f5a1 12561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a
AC
12562 if test x$ac_cv_sizeof_off_t != x ; then break; fi
12563done
12564
12565fi
12566
12567if test x$ac_cv_sizeof_off_t = x ; then
5464f5a1
NN
12568 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
12569echo "$as_me: error: cannot determine a size for off_t" >&2;}
12570 { (exit 1); exit 1; }; }
1012372a 12571fi
5464f5a1
NN
12572echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12573echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
12574
12575cat >>confdefs.h <<_ACEOF
1012372a 12576#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 12577_ACEOF
1012372a
AC
12578
12579
1012372a 12580fi
5464f5a1
NN
12581echo "$as_me:$LINENO: checking file_ptr type" >&5
12582echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
12583bfd_file_ptr="long"
12584bfd_ufile_ptr="unsigned long"
12585if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
12586 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
12587 bfd_file_ptr=BFD_HOST_64_BIT
12588 bfd_ufile_ptr=BFD_HOST_U_64_BIT
12589fi
5464f5a1
NN
12590echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
12591echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
12592
12593
12594
12595
252b5132
RH
12596tdefaults=""
12597test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
12598test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 12599test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
12600test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
12601test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
12602
6be7c12c 12603
5464f5a1
NN
12604
12605
12606for ac_header in stdlib.h unistd.h
252b5132 12607do
5464f5a1
NN
12608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12609if eval "test \"\${$as_ac_Header+set}\" = set"; then
12610 echo "$as_me:$LINENO: checking for $ac_header" >&5
12611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12612if eval "test \"\${$as_ac_Header+set}\" = set"; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614fi
12615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12617else
12618 # Is the header compilable?
12619echo "$as_me:$LINENO: checking $ac_header usability" >&5
12620echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12621cat >conftest.$ac_ext <<_ACEOF
12622/* confdefs.h. */
12623_ACEOF
12624cat confdefs.h >>conftest.$ac_ext
12625cat >>conftest.$ac_ext <<_ACEOF
12626/* end confdefs.h. */
12627$ac_includes_default
12628#include <$ac_header>
12629_ACEOF
12630rm -f conftest.$ac_objext
12631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632 (eval $ac_compile) 2>conftest.er1
12633 ac_status=$?
12634 grep -v '^ *+' conftest.er1 >conftest.err
12635 rm -f conftest.er1
12636 cat conftest.err >&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); } &&
8fb84ecc
AC
12639 { ac_try='test -z "$ac_c_werror_flag"
12640 || test ! -s conftest.err'
5464f5a1
NN
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest.$ac_objext'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
12652 ac_header_compiler=yes
12653else
12654 echo "$as_me: failed program was:" >&5
12655sed 's/^/| /' conftest.$ac_ext >&5
12656
12657ac_header_compiler=no
12658fi
12659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12660echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12661echo "${ECHO_T}$ac_header_compiler" >&6
12662
12663# Is the header present?
12664echo "$as_me:$LINENO: checking $ac_header presence" >&5
12665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12666cat >conftest.$ac_ext <<_ACEOF
12667/* confdefs.h. */
12668_ACEOF
12669cat confdefs.h >>conftest.$ac_ext
12670cat >>conftest.$ac_ext <<_ACEOF
12671/* end confdefs.h. */
12672#include <$ac_header>
12673_ACEOF
12674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12676 ac_status=$?
12677 grep -v '^ *+' conftest.er1 >conftest.err
12678 rm -f conftest.er1
12679 cat conftest.err >&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } >/dev/null; then
12682 if test -s conftest.err; then
12683 ac_cpp_err=$ac_c_preproc_warn_flag
12684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12685 else
12686 ac_cpp_err=
12687 fi
252b5132 12688else
5464f5a1 12689 ac_cpp_err=yes
252b5132 12690fi
5464f5a1
NN
12691if test -z "$ac_cpp_err"; then
12692 ac_header_preproc=yes
12693else
12694 echo "$as_me: failed program was:" >&5
12695sed 's/^/| /' conftest.$ac_ext >&5
12696
12697 ac_header_preproc=no
252b5132 12698fi
5464f5a1
NN
12699rm -f conftest.err conftest.$ac_ext
12700echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12701echo "${ECHO_T}$ac_header_preproc" >&6
12702
12703# So? What about this header?
12704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12705 yes:no: )
12706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12710 ac_header_preproc=yes
12711 ;;
12712 no:yes:* )
12713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12725 (
12726 cat <<\_ASBOX
12727## ------------------------------------------ ##
12728## Report this to the AC_PACKAGE_NAME lists. ##
12729## ------------------------------------------ ##
12730_ASBOX
12731 ) |
12732 sed "s/^/$as_me: WARNING: /" >&2
12733 ;;
12734esac
12735echo "$as_me:$LINENO: checking for $ac_header" >&5
12736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12737if eval "test \"\${$as_ac_Header+set}\" = set"; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 12739else
5464f5a1
NN
12740 eval "$as_ac_Header=\$ac_header_preproc"
12741fi
12742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12744
12745fi
12746if test `eval echo '${'$as_ac_Header'}'` = yes; then
12747 cat >>confdefs.h <<_ACEOF
12748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12749_ACEOF
12750
252b5132 12751fi
5464f5a1 12752
252b5132
RH
12753done
12754
5464f5a1 12755
252b5132
RH
12756for ac_func in getpagesize
12757do
5464f5a1
NN
12758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12759echo "$as_me:$LINENO: checking for $ac_func" >&5
12760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12761if eval "test \"\${$as_ac_var+set}\" = set"; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763else
12764 cat >conftest.$ac_ext <<_ACEOF
12765/* confdefs.h. */
12766_ACEOF
12767cat confdefs.h >>conftest.$ac_ext
12768cat >>conftest.$ac_ext <<_ACEOF
12769/* end confdefs.h. */
12770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12772#define $ac_func innocuous_$ac_func
12773
252b5132 12774/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
12775 which can conflict with char $ac_func (); below.
12776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12777 <limits.h> exists even on freestanding compilers. */
12778
12779#ifdef __STDC__
12780# include <limits.h>
12781#else
12782# include <assert.h>
12783#endif
6be7c12c 12784
5464f5a1 12785#undef $ac_func
252b5132 12786
5464f5a1
NN
12787/* Override any gcc2 internal prototype to avoid an error. */
12788#ifdef __cplusplus
12789extern "C"
12790{
12791#endif
12792/* We use char because int might match the return type of a gcc2
12793 builtin and then its argument prototype would still apply. */
12794char $ac_func ();
252b5132
RH
12795/* The GNU C library defines this for functions which it implements
12796 to always fail with ENOSYS. Some functions are actually named
12797 something starting with __ and the normal name is an alias. */
12798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12799choke me
12800#else
5464f5a1
NN
12801char (*f) () = $ac_func;
12802#endif
12803#ifdef __cplusplus
12804}
252b5132
RH
12805#endif
12806
5464f5a1
NN
12807int
12808main ()
12809{
12810return f != $ac_func;
12811 ;
12812 return 0;
12813}
12814_ACEOF
12815rm -f conftest.$ac_objext conftest$ac_exeext
12816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12817 (eval $ac_link) 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } &&
8fb84ecc
AC
12824 { ac_try='test -z "$ac_c_werror_flag"
12825 || test ! -s conftest.err'
5464f5a1
NN
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; } &&
12831 { ac_try='test -s conftest$ac_exeext'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 eval "$as_ac_var=yes"
12838else
12839 echo "$as_me: failed program was:" >&5
12840sed 's/^/| /' conftest.$ac_ext >&5
12841
12842eval "$as_ac_var=no"
12843fi
12844rm -f conftest.err conftest.$ac_objext \
12845 conftest$ac_exeext conftest.$ac_ext
12846fi
12847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12848echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12849if test `eval echo '${'$as_ac_var'}'` = yes; then
12850 cat >>confdefs.h <<_ACEOF
12851#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12852_ACEOF
252b5132 12853
252b5132
RH
12854fi
12855done
12856
5464f5a1
NN
12857echo "$as_me:$LINENO: checking for working mmap" >&5
12858echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12859if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12860 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12861else
12862 if test "$cross_compiling" = yes; then
12863 ac_cv_func_mmap_fixed_mapped=no
12864else
5464f5a1
NN
12865 cat >conftest.$ac_ext <<_ACEOF
12866/* confdefs.h. */
12867_ACEOF
12868cat confdefs.h >>conftest.$ac_ext
12869cat >>conftest.$ac_ext <<_ACEOF
12870/* end confdefs.h. */
12871$ac_includes_default
12872/* malloc might have been renamed as rpl_malloc. */
12873#undef malloc
6be7c12c 12874
252b5132
RH
12875/* Thanks to Mike Haertel and Jim Avera for this test.
12876 Here is a matrix of mmap possibilities:
12877 mmap private not fixed
12878 mmap private fixed at somewhere currently unmapped
12879 mmap private fixed at somewhere already mapped
12880 mmap shared not fixed
12881 mmap shared fixed at somewhere currently unmapped
12882 mmap shared fixed at somewhere already mapped
12883 For private mappings, we should verify that changes cannot be read()
12884 back from the file, nor mmap's back from the file at a different
12885 address. (There have been systems where private was not correctly
12886 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 12887 VM page cache was not coherent with the file system buffer cache
252b5132
RH
12888 like early versions of FreeBSD and possibly contemporary NetBSD.)
12889 For shared mappings, we should conversely verify that changes get
5464f5a1 12890 propagated back to all the places they're supposed to be.
252b5132
RH
12891
12892 Grep wants private fixed already mapped.
12893 The main things grep needs to know about mmap are:
12894 * does it exist and is it safe to write into the mmap'd area
12895 * how to use it (BSD variants) */
5464f5a1 12896
252b5132
RH
12897#include <fcntl.h>
12898#include <sys/mman.h>
12899
5464f5a1
NN
12900#if !STDC_HEADERS && !HAVE_STDLIB_H
12901char *malloc ();
12902#endif
6be7c12c 12903
5464f5a1
NN
12904/* This mess was copied from the GNU getpagesize.h. */
12905#if !HAVE_GETPAGESIZE
252b5132 12906/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 12907# if !HAVE_SYS_PARAM_H
252b5132
RH
12908# define HAVE_SYS_PARAM_H 1
12909# endif
12910
12911# ifdef _SC_PAGESIZE
12912# define getpagesize() sysconf(_SC_PAGESIZE)
12913# else /* no _SC_PAGESIZE */
5464f5a1 12914# if HAVE_SYS_PARAM_H
252b5132
RH
12915# include <sys/param.h>
12916# ifdef EXEC_PAGESIZE
12917# define getpagesize() EXEC_PAGESIZE
12918# else /* no EXEC_PAGESIZE */
12919# ifdef NBPG
12920# define getpagesize() NBPG * CLSIZE
12921# ifndef CLSIZE
12922# define CLSIZE 1
12923# endif /* no CLSIZE */
12924# else /* no NBPG */
12925# ifdef NBPC
12926# define getpagesize() NBPC
12927# else /* no NBPC */
12928# ifdef PAGESIZE
12929# define getpagesize() PAGESIZE
12930# endif /* PAGESIZE */
12931# endif /* no NBPC */
12932# endif /* no NBPG */
12933# endif /* no EXEC_PAGESIZE */
12934# else /* no HAVE_SYS_PARAM_H */
12935# define getpagesize() 8192 /* punt totally */
12936# endif /* no HAVE_SYS_PARAM_H */
12937# endif /* no _SC_PAGESIZE */
12938
5464f5a1
NN
12939#endif /* no HAVE_GETPAGESIZE */
12940
12941int
12942main ()
12943{
12944 char *data, *data2, *data3;
12945 int i, pagesize;
12946 int fd;
12947
12948 pagesize = getpagesize ();
12949
12950 /* First, make a file with some known garbage in it. */
12951 data = (char *) malloc (pagesize);
12952 if (!data)
12953 exit (1);
12954 for (i = 0; i < pagesize; ++i)
12955 *(data + i) = rand ();
12956 umask (0);
12957 fd = creat ("conftest.mmap", 0600);
12958 if (fd < 0)
12959 exit (1);
12960 if (write (fd, data, pagesize) != pagesize)
12961 exit (1);
12962 close (fd);
12963
12964 /* Next, try to mmap the file at a fixed address which already has
12965 something else allocated at it. If we can, also make sure that
12966 we see the same garbage. */
12967 fd = open ("conftest.mmap", O_RDWR);
12968 if (fd < 0)
12969 exit (1);
12970 data2 = (char *) malloc (2 * pagesize);
12971 if (!data2)
12972 exit (1);
12973 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12974 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12975 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12976 exit (1);
12977 for (i = 0; i < pagesize; ++i)
12978 if (*(data + i) != *(data2 + i))
12979 exit (1);
12980
12981 /* Finally, make sure that changes to the mapped area do not
12982 percolate back to the file as seen by read(). (This is a bug on
12983 some variants of i386 svr4.0.) */
12984 for (i = 0; i < pagesize; ++i)
12985 *(data2 + i) = *(data2 + i) + 1;
12986 data3 = (char *) malloc (pagesize);
12987 if (!data3)
12988 exit (1);
12989 if (read (fd, data3, pagesize) != pagesize)
12990 exit (1);
12991 for (i = 0; i < pagesize; ++i)
12992 if (*(data + i) != *(data3 + i))
12993 exit (1);
12994 close (fd);
12995 exit (0);
12996}
12997_ACEOF
12998rm -f conftest$ac_exeext
12999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13000 (eval $ac_link) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 ac_cv_func_mmap_fixed_mapped=yes
13010else
13011 echo "$as_me: program exited with status $ac_status" >&5
13012echo "$as_me: failed program was:" >&5
13013sed 's/^/| /' conftest.$ac_ext >&5
13014
13015( exit $ac_status )
13016ac_cv_func_mmap_fixed_mapped=no
13017fi
13018rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13019fi
13020fi
13021echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13022echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13023if test $ac_cv_func_mmap_fixed_mapped = yes; then
13024
13025cat >>confdefs.h <<\_ACEOF
13026#define HAVE_MMAP 1
13027_ACEOF
13028
13029fi
13030rm -f conftest.mmap
13031
13032
13033
13034for ac_func in madvise mprotect
13035do
13036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13037echo "$as_me:$LINENO: checking for $ac_func" >&5
13038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13039if eval "test \"\${$as_ac_var+set}\" = set"; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13041else
13042 cat >conftest.$ac_ext <<_ACEOF
13043/* confdefs.h. */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h. */
13048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13050#define $ac_func innocuous_$ac_func
13051
13052/* System header to define __stub macros and hopefully few prototypes,
13053 which can conflict with char $ac_func (); below.
13054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13055 <limits.h> exists even on freestanding compilers. */
13056
13057#ifdef __STDC__
13058# include <limits.h>
13059#else
13060# include <assert.h>
13061#endif
13062
13063#undef $ac_func
13064
13065/* Override any gcc2 internal prototype to avoid an error. */
13066#ifdef __cplusplus
13067extern "C"
13068{
13069#endif
13070/* We use char because int might match the return type of a gcc2
13071 builtin and then its argument prototype would still apply. */
13072char $ac_func ();
13073/* The GNU C library defines this for functions which it implements
13074 to always fail with ENOSYS. Some functions are actually named
13075 something starting with __ and the normal name is an alias. */
13076#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13077choke me
13078#else
13079char (*f) () = $ac_func;
13080#endif
13081#ifdef __cplusplus
13082}
13083#endif
13084
13085int
13086main ()
13087{
13088return f != $ac_func;
13089 ;
13090 return 0;
13091}
13092_ACEOF
13093rm -f conftest.$ac_objext conftest$ac_exeext
13094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13095 (eval $ac_link) 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
8fb84ecc
AC
13102 { ac_try='test -z "$ac_c_werror_flag"
13103 || test ! -s conftest.err'
5464f5a1
NN
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 eval "$as_ac_var=yes"
13116else
13117 echo "$as_me: failed program was:" >&5
13118sed 's/^/| /' conftest.$ac_ext >&5
13119
13120eval "$as_ac_var=no"
13121fi
13122rm -f conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124fi
13125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13126echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13127if test `eval echo '${'$as_ac_var'}'` = yes; then
13128 cat >>confdefs.h <<_ACEOF
13129#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13130_ACEOF
13131
13132fi
13133done
13134
13135case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
13136 true+yes )
13137cat >>confdefs.h <<\_ACEOF
13138#define USE_MMAP 1
13139_ACEOF
13140 ;;
13141esac
13142
13143rm -f doc/config.status
13144 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
13145
13146 ac_config_commands="$ac_config_commands default"
13147
13148cat >confcache <<\_ACEOF
13149# This file is a shell script that caches the results of configure
13150# tests run on this system so they can be shared between configure
13151# scripts and configure runs, see configure's option --config-cache.
13152# It is not useful on other systems. If it contains results you don't
13153# want to keep, you may remove or edit it.
13154#
13155# config.status only pays attention to the cache file if you give it
13156# the --recheck option to rerun configure.
13157#
13158# `ac_cv_env_foo' variables (set or unset) will be overridden when
13159# loading this file, other *unset* `ac_cv_foo' will be assigned the
13160# following values.
13161
13162_ACEOF
13163
13164# The following way of writing the cache mishandles newlines in values,
13165# but we know of no workaround that is simple, portable, and efficient.
13166# So, don't put newlines in cache variables' values.
13167# Ultrix sh set writes to stderr and can't be redirected directly,
13168# and sets the high bit in the cache file unless we assign to the vars.
13169{
13170 (set) 2>&1 |
13171 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13172 *ac_space=\ *)
13173 # `set' does not quote correctly, so add quotes (double-quote
13174 # substitution turns \\\\ into \\, and sed turns \\ into \).
13175 sed -n \
13176 "s/'/'\\\\''/g;
13177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13178 ;;
13179 *)
13180 # `set' quotes correctly as required by POSIX, so do not add quotes.
13181 sed -n \
13182 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13183 ;;
13184 esac;
13185} |
13186 sed '
13187 t clear
13188 : clear
13189 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13190 t end
13191 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13192 : end' >>confcache
13193if diff $cache_file confcache >/dev/null 2>&1; then :; else
13194 if test -w $cache_file; then
13195 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13196 cat confcache >$cache_file
13197 else
13198 echo "not updating unwritable cache $cache_file"
13199 fi
13200fi
13201rm -f confcache
13202
13203test "x$prefix" = xNONE && prefix=$ac_default_prefix
13204# Let make expand exec_prefix.
13205test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13206
13207# VPATH may cause trouble with some makes, so we remove $(srcdir),
13208# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13209# trailing colons and then remove the whole line if VPATH becomes empty
13210# (actually we leave an empty line to preserve line numbers).
13211if test "x$srcdir" = x.; then
13212 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13213s/:*\$(srcdir):*/:/;
13214s/:*\${srcdir}:*/:/;
13215s/:*@srcdir@:*/:/;
13216s/^\([^=]*=[ ]*\):*/\1/;
13217s/:*$//;
13218s/^[^=]*=[ ]*$//;
13219}'
13220fi
13221
13222DEFS=-DHAVE_CONFIG_H
13223
13224ac_libobjs=
13225ac_ltlibobjs=
13226for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13227 # 1. Remove the extension, and $U if already installed.
13228 ac_i=`echo "$ac_i" |
13229 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13230 # 2. Add them.
13231 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13232 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13233done
13234LIBOBJS=$ac_libobjs
13235
13236LTLIBOBJS=$ac_ltlibobjs
13237
13238
f5385ebf
AM
13239if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13240 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13241Usually this means the macro was only invoked conditionally." >&5
13242echo "$as_me: error: conditional \"AMDEP\" was never defined.
13243Usually this means the macro was only invoked conditionally." >&2;}
13244 { (exit 1); exit 1; }; }
13245fi
13246if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13247 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13248Usually this means the macro was only invoked conditionally." >&5
13249echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13250Usually this means the macro was only invoked conditionally." >&2;}
13251 { (exit 1); exit 1; }; }
13252fi
13253if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13254 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13255Usually this means the macro was only invoked conditionally." >&5
13256echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13257Usually this means the macro was only invoked conditionally." >&2;}
13258 { (exit 1); exit 1; }; }
13259fi
13260if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
13261 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
13262Usually this means the macro was only invoked conditionally." >&5
13263echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
13264Usually this means the macro was only invoked conditionally." >&2;}
13265 { (exit 1); exit 1; }; }
13266fi
5464f5a1
NN
13267
13268: ${CONFIG_STATUS=./config.status}
13269ac_clean_files_save=$ac_clean_files
13270ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13271{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13272echo "$as_me: creating $CONFIG_STATUS" >&6;}
13273cat >$CONFIG_STATUS <<_ACEOF
13274#! $SHELL
13275# Generated by $as_me.
13276# Run this file to recreate the current configuration.
13277# Compiler output produced by configure, useful for debugging
13278# configure, is in config.log if it exists.
13279
13280debug=false
13281ac_cs_recheck=false
13282ac_cs_silent=false
13283SHELL=\${CONFIG_SHELL-$SHELL}
13284_ACEOF
13285
13286cat >>$CONFIG_STATUS <<\_ACEOF
13287## --------------------- ##
13288## M4sh Initialization. ##
13289## --------------------- ##
13290
13291# Be Bourne compatible
13292if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13293 emulate sh
13294 NULLCMD=:
13295 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13296 # is contrary to our usage. Disable this feature.
13297 alias -g '${1+"$@"}'='"$@"'
13298elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13299 set -o posix
13300fi
13301DUALCASE=1; export DUALCASE # for MKS sh
13302
13303# Support unset when possible.
13304if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13305 as_unset=unset
13306else
13307 as_unset=false
13308fi
13309
13310
13311# Work around bugs in pre-3.0 UWIN ksh.
13312$as_unset ENV MAIL MAILPATH
13313PS1='$ '
13314PS2='> '
13315PS4='+ '
13316
13317# NLS nuisances.
13318for as_var in \
13319 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13320 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13321 LC_TELEPHONE LC_TIME
13322do
13323 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13324 eval $as_var=C; export $as_var
13325 else
13326 $as_unset $as_var
13327 fi
13328done
13329
13330# Required to use basename.
13331if expr a : '\(a\)' >/dev/null 2>&1; then
13332 as_expr=expr
13333else
13334 as_expr=false
13335fi
13336
13337if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13338 as_basename=basename
13339else
13340 as_basename=false
13341fi
252b5132 13342
6be7c12c 13343
5464f5a1
NN
13344# Name of the executable.
13345as_me=`$as_basename "$0" ||
13346$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13347 X"$0" : 'X\(//\)$' \| \
13348 X"$0" : 'X\(/\)$' \| \
13349 . : '\(.\)' 2>/dev/null ||
13350echo X/"$0" |
13351 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13352 /^X\/\(\/\/\)$/{ s//\1/; q; }
13353 /^X\/\(\/\).*/{ s//\1/; q; }
13354 s/.*/./; q'`
13355
13356
13357# PATH needs CR, and LINENO needs CR and PATH.
13358# Avoid depending upon Character Ranges.
13359as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13360as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13361as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13362as_cr_digits='0123456789'
13363as_cr_alnum=$as_cr_Letters$as_cr_digits
13364
13365# The user is always right.
13366if test "${PATH_SEPARATOR+set}" != set; then
13367 echo "#! /bin/sh" >conf$$.sh
13368 echo "exit 0" >>conf$$.sh
13369 chmod +x conf$$.sh
13370 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13371 PATH_SEPARATOR=';'
13372 else
13373 PATH_SEPARATOR=:
13374 fi
13375 rm -f conf$$.sh
13376fi
13377
13378
13379 as_lineno_1=$LINENO
13380 as_lineno_2=$LINENO
13381 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13382 test "x$as_lineno_1" != "x$as_lineno_2" &&
13383 test "x$as_lineno_3" = "x$as_lineno_2" || {
13384 # Find who we are. Look in the path if we contain no path at all
13385 # relative or not.
13386 case $0 in
13387 *[\\/]* ) as_myself=$0 ;;
13388 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13389for as_dir in $PATH
13390do
13391 IFS=$as_save_IFS
13392 test -z "$as_dir" && as_dir=.
13393 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13394done
13395
13396 ;;
13397 esac
13398 # We did not find ourselves, most probably we were run as `sh COMMAND'
13399 # in which case we are not to be found in the path.
13400 if test "x$as_myself" = x; then
13401 as_myself=$0
13402 fi
13403 if test ! -f "$as_myself"; then
13404 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13405echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13406 { (exit 1); exit 1; }; }
13407 fi
13408 case $CONFIG_SHELL in
13409 '')
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13412do
13413 IFS=$as_save_IFS
13414 test -z "$as_dir" && as_dir=.
13415 for as_base in sh bash ksh sh5; do
13416 case $as_dir in
13417 /*)
13418 if ("$as_dir/$as_base" -c '
13419 as_lineno_1=$LINENO
13420 as_lineno_2=$LINENO
13421 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13422 test "x$as_lineno_1" != "x$as_lineno_2" &&
13423 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13424 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13425 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13426 CONFIG_SHELL=$as_dir/$as_base
13427 export CONFIG_SHELL
13428 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13429 fi;;
13430 esac
13431 done
13432done
13433;;
13434 esac
13435
13436 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13437 # uniformly replaced by the line number. The first 'sed' inserts a
13438 # line-number line before each line; the second 'sed' does the real
13439 # work. The second script uses 'N' to pair each line-number line
13440 # with the numbered line, and appends trailing '-' during
13441 # substitution so that $LINENO is not a special case at line end.
13442 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13443 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13444 sed '=' <$as_myself |
13445 sed '
13446 N
13447 s,$,-,
13448 : loop
13449 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13450 t loop
13451 s,-$,,
13452 s,^['$as_cr_digits']*\n,,
13453 ' >$as_me.lineno &&
13454 chmod +x $as_me.lineno ||
13455 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13456echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13457 { (exit 1); exit 1; }; }
13458
13459 # Don't try to exec as it changes $[0], causing all sort of problems
13460 # (the dirname of $[0] is not the place where we might find the
13461 # original and so on. Autoconf is especially sensible to this).
13462 . ./$as_me.lineno
13463 # Exit status is that of the last command.
13464 exit
252b5132 13465}
6be7c12c 13466
5464f5a1
NN
13467
13468case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13469 *c*,-n*) ECHO_N= ECHO_C='
13470' ECHO_T=' ' ;;
13471 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13472 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13473esac
13474
13475if expr a : '\(a\)' >/dev/null 2>&1; then
13476 as_expr=expr
252b5132 13477else
5464f5a1 13478 as_expr=false
252b5132 13479fi
5464f5a1
NN
13480
13481rm -f conf$$ conf$$.exe conf$$.file
13482echo >conf$$.file
13483if ln -s conf$$.file conf$$ 2>/dev/null; then
13484 # We could just check for DJGPP; but this test a) works b) is more generic
13485 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13486 if test -f conf$$.exe; then
13487 # Don't use ln at all; we don't have any links
13488 as_ln_s='cp -p'
13489 else
13490 as_ln_s='ln -s'
13491 fi
13492elif ln conf$$.file conf$$ 2>/dev/null; then
13493 as_ln_s=ln
13494else
13495 as_ln_s='cp -p'
252b5132 13496fi
5464f5a1 13497rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 13498
5464f5a1
NN
13499if mkdir -p . 2>/dev/null; then
13500 as_mkdir_p=:
13501else
13502 test -d ./-p && rmdir ./-p
13503 as_mkdir_p=false
252b5132 13504fi
b3baf5d0 13505
5464f5a1 13506as_executable_p="test -f"
252b5132 13507
5464f5a1
NN
13508# Sed expression to map a string onto a valid CPP name.
13509as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 13510
5464f5a1
NN
13511# Sed expression to map a string onto a valid variable name.
13512as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 13513
252b5132 13514
5464f5a1
NN
13515# IFS
13516# We need space, tab and new line, in precisely that order.
13517as_nl='
13518'
13519IFS=" $as_nl"
252b5132 13520
5464f5a1
NN
13521# CDPATH.
13522$as_unset CDPATH
13523
13524exec 6>&1
13525
13526# Open the log real soon, to keep \$[0] and so on meaningful, and to
13527# report actual input values of CONFIG_FILES etc. instead of their
13528# values after options handling. Logging --version etc. is OK.
13529exec 5>>config.log
13530{
13531 echo
13532 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13533## Running $as_me. ##
13534_ASBOX
13535} >&5
13536cat >&5 <<_CSEOF
13537
13538This file was extended by $as_me, which was
13539generated by GNU Autoconf 2.59. Invocation command line was
13540
13541 CONFIG_FILES = $CONFIG_FILES
13542 CONFIG_HEADERS = $CONFIG_HEADERS
13543 CONFIG_LINKS = $CONFIG_LINKS
13544 CONFIG_COMMANDS = $CONFIG_COMMANDS
13545 $ $0 $@
13546
13547_CSEOF
13548echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13549echo >&5
13550_ACEOF
13551
13552# Files that config.status was made for.
13553if test -n "$ac_config_files"; then
13554 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 13555fi
5464f5a1
NN
13556
13557if test -n "$ac_config_headers"; then
13558 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 13559fi
252b5132 13560
5464f5a1
NN
13561if test -n "$ac_config_links"; then
13562 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 13563fi
252b5132 13564
5464f5a1
NN
13565if test -n "$ac_config_commands"; then
13566 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13567fi
252b5132 13568
5464f5a1
NN
13569cat >>$CONFIG_STATUS <<\_ACEOF
13570
13571ac_cs_usage="\
13572\`$as_me' instantiates files from templates according to the
13573current configuration.
13574
13575Usage: $0 [OPTIONS] [FILE]...
13576
13577 -h, --help print this help, then exit
13578 -V, --version print version number, then exit
13579 -q, --quiet do not print progress messages
13580 -d, --debug don't remove temporary files
13581 --recheck update $as_me by reconfiguring in the same conditions
13582 --file=FILE[:TEMPLATE]
13583 instantiate the configuration file FILE
13584 --header=FILE[:TEMPLATE]
13585 instantiate the configuration header FILE
13586
13587Configuration files:
13588$config_files
13589
13590Configuration headers:
13591$config_headers
13592
13593Configuration commands:
13594$config_commands
13595
13596Report bugs to <bug-autoconf@gnu.org>."
13597_ACEOF
13598
13599cat >>$CONFIG_STATUS <<_ACEOF
13600ac_cs_version="\\
13601config.status
13602configured by $0, generated by GNU Autoconf 2.59,
13603 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13604
13605Copyright (C) 2003 Free Software Foundation, Inc.
13606This config.status script is free software; the Free Software Foundation
13607gives unlimited permission to copy, distribute and modify it."
13608srcdir=$srcdir
13609INSTALL="$INSTALL"
13610_ACEOF
13611
13612cat >>$CONFIG_STATUS <<\_ACEOF
13613# If no file are specified by the user, then we need to provide default
13614# value. By we need to know if files were specified by the user.
13615ac_need_defaults=:
13616while test $# != 0
13617do
13618 case $1 in
13619 --*=*)
13620 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13621 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13622 ac_shift=:
6be7c12c 13623 ;;
5464f5a1
NN
13624 -*)
13625 ac_option=$1
13626 ac_optarg=$2
13627 ac_shift=shift
6be7c12c 13628 ;;
5464f5a1
NN
13629 *) # This is not an option, so the user has probably given explicit
13630 # arguments.
13631 ac_option=$1
13632 ac_need_defaults=false;;
13633 esac
252b5132 13634
5464f5a1
NN
13635 case $ac_option in
13636 # Handling of the options.
13637_ACEOF
13638cat >>$CONFIG_STATUS <<\_ACEOF
13639 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13640 ac_cs_recheck=: ;;
13641 --version | --vers* | -V )
13642 echo "$ac_cs_version"; exit 0 ;;
13643 --he | --h)
13644 # Conflict between --help and --header
13645 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13646Try \`$0 --help' for more information." >&5
13647echo "$as_me: error: ambiguous option: $1
13648Try \`$0 --help' for more information." >&2;}
13649 { (exit 1); exit 1; }; };;
13650 --help | --hel | -h )
13651 echo "$ac_cs_usage"; exit 0 ;;
13652 --debug | --d* | -d )
13653 debug=: ;;
13654 --file | --fil | --fi | --f )
13655 $ac_shift
13656 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13657 ac_need_defaults=false;;
13658 --header | --heade | --head | --hea )
13659 $ac_shift
13660 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13661 ac_need_defaults=false;;
13662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13663 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13664 ac_cs_silent=: ;;
6be7c12c 13665
5464f5a1
NN
13666 # This is an error.
13667 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13668Try \`$0 --help' for more information." >&5
13669echo "$as_me: error: unrecognized option: $1
13670Try \`$0 --help' for more information." >&2;}
13671 { (exit 1); exit 1; }; } ;;
252b5132 13672
5464f5a1 13673 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 13674
5464f5a1
NN
13675 esac
13676 shift
13677done
6be7c12c 13678
5464f5a1 13679ac_configure_extra_args=
252b5132 13680
5464f5a1
NN
13681if $ac_cs_silent; then
13682 exec 6>/dev/null
13683 ac_configure_extra_args="$ac_configure_extra_args --silent"
13684fi
6be7c12c 13685
5464f5a1
NN
13686_ACEOF
13687cat >>$CONFIG_STATUS <<_ACEOF
13688if \$ac_cs_recheck; then
13689 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13690 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13691fi
13692
13693_ACEOF
13694
13695cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 13696#
5464f5a1 13697# INIT-COMMANDS section.
6be7c12c 13698#
b3baf5d0 13699
f5385ebf 13700AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5464f5a1
NN
13701
13702
13703_ACEOF
13704
13705
13706
13707cat >>$CONFIG_STATUS <<\_ACEOF
13708for ac_config_target in $ac_config_targets
252b5132 13709do
5464f5a1
NN
13710 case "$ac_config_target" in
13711 # Handling of arguments.
13712 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13713 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13714 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
13715 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 13716 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5464f5a1
NN
13717 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13718 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13719 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13720echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13721 { (exit 1); exit 1; }; };;
252b5132
RH
13722 esac
13723done
13724
5464f5a1
NN
13725# If the user did not use the arguments to specify the items to instantiate,
13726# then the envvar interface is used. Set only those that are not.
13727# We use the long form for the default assignment because of an extremely
13728# bizarre bug on SunOS 4.1.3.
13729if $ac_need_defaults; then
13730 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13731 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13732 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13733fi
13734
13735# Have a temporary directory for convenience. Make it in the build tree
13736# simply because there is no reason to put it here, and in addition,
13737# creating and moving files from /tmp can sometimes cause problems.
13738# Create a temporary directory, and hook for its removal unless debugging.
13739$debug ||
13740{
13741 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13742 trap '{ (exit 1); exit 1; }' 1 2 13 15
13743}
b3baf5d0 13744
5464f5a1 13745# Create a (secure) tmp directory for tmp files.
b3baf5d0 13746
5464f5a1
NN
13747{
13748 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13749 test -n "$tmp" && test -d "$tmp"
13750} ||
13751{
13752 tmp=./confstat$$-$RANDOM
13753 (umask 077 && mkdir $tmp)
13754} ||
13755{
13756 echo "$me: cannot create a temporary directory in ." >&2
13757 { (exit 1); exit 1; }
13758}
13759
13760_ACEOF
13761
13762cat >>$CONFIG_STATUS <<_ACEOF
13763
13764#
13765# CONFIG_FILES section.
13766#
b3baf5d0 13767
5464f5a1
NN
13768# No need to generate the scripts if there are no CONFIG_FILES.
13769# This happens for instance when ./config.status config.h
13770if test -n "\$CONFIG_FILES"; then
13771 # Protect against being on the right side of a sed subst in config.status.
13772 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13773 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13774s,@SHELL@,$SHELL,;t t
13775s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13776s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13777s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13778s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13779s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13780s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13781s,@exec_prefix@,$exec_prefix,;t t
13782s,@prefix@,$prefix,;t t
13783s,@program_transform_name@,$program_transform_name,;t t
13784s,@bindir@,$bindir,;t t
13785s,@sbindir@,$sbindir,;t t
13786s,@libexecdir@,$libexecdir,;t t
13787s,@datadir@,$datadir,;t t
13788s,@sysconfdir@,$sysconfdir,;t t
13789s,@sharedstatedir@,$sharedstatedir,;t t
13790s,@localstatedir@,$localstatedir,;t t
13791s,@libdir@,$libdir,;t t
13792s,@includedir@,$includedir,;t t
13793s,@oldincludedir@,$oldincludedir,;t t
13794s,@infodir@,$infodir,;t t
13795s,@mandir@,$mandir,;t t
13796s,@build_alias@,$build_alias,;t t
13797s,@host_alias@,$host_alias,;t t
13798s,@target_alias@,$target_alias,;t t
13799s,@DEFS@,$DEFS,;t t
13800s,@ECHO_C@,$ECHO_C,;t t
13801s,@ECHO_N@,$ECHO_N,;t t
13802s,@ECHO_T@,$ECHO_T,;t t
13803s,@LIBS@,$LIBS,;t t
13804s,@build@,$build,;t t
13805s,@build_cpu@,$build_cpu,;t t
13806s,@build_vendor@,$build_vendor,;t t
13807s,@build_os@,$build_os,;t t
13808s,@host@,$host,;t t
13809s,@host_cpu@,$host_cpu,;t t
13810s,@host_vendor@,$host_vendor,;t t
13811s,@host_os@,$host_os,;t t
13812s,@target@,$target,;t t
13813s,@target_cpu@,$target_cpu,;t t
13814s,@target_vendor@,$target_vendor,;t t
13815s,@target_os@,$target_os,;t t
13816s,@CC@,$CC,;t t
13817s,@CFLAGS@,$CFLAGS,;t t
13818s,@LDFLAGS@,$LDFLAGS,;t t
13819s,@CPPFLAGS@,$CPPFLAGS,;t t
13820s,@ac_ct_CC@,$ac_ct_CC,;t t
13821s,@EXEEXT@,$EXEEXT,;t t
13822s,@OBJEXT@,$OBJEXT,;t t
13823s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13824s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13825s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 13826s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
13827s,@PACKAGE@,$PACKAGE,;t t
13828s,@VERSION@,$VERSION,;t t
13829s,@ACLOCAL@,$ACLOCAL,;t t
13830s,@AUTOCONF@,$AUTOCONF,;t t
13831s,@AUTOMAKE@,$AUTOMAKE,;t t
13832s,@AUTOHEADER@,$AUTOHEADER,;t t
13833s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
13834s,@install_sh@,$install_sh,;t t
13835s,@STRIP@,$STRIP,;t t
13836s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13837s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13838s,@mkdir_p@,$mkdir_p,;t t
13839s,@AWK@,$AWK,;t t
5464f5a1 13840s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
13841s,@am__leading_dot@,$am__leading_dot,;t t
13842s,@AMTAR@,$AMTAR,;t t
13843s,@am__tar@,$am__tar,;t t
13844s,@am__untar@,$am__untar,;t t
13845s,@DEPDIR@,$DEPDIR,;t t
13846s,@am__include@,$am__include,;t t
13847s,@am__quote@,$am__quote,;t t
13848s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13849s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13850s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13851s,@CCDEPMODE@,$CCDEPMODE,;t t
13852s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13853s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
13854s,@AR@,$AR,;t t
13855s,@ac_ct_AR@,$ac_ct_AR,;t t
13856s,@RANLIB@,$RANLIB,;t t
13857s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13858s,@LN_S@,$LN_S,;t t
5464f5a1
NN
13859s,@LIBTOOL@,$LIBTOOL,;t t
13860s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 13861s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
13862s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13863s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13864s,@MAINT@,$MAINT,;t t
13865s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13866s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
13867s,@host_noncanonical@,$host_noncanonical,;t t
13868s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
13869s,@bfdlibdir@,$bfdlibdir,;t t
13870s,@bfdincludedir@,$bfdincludedir,;t t
13871s,@CPP@,$CPP,;t t
13872s,@EGREP@,$EGREP,;t t
13873s,@ALLOCA@,$ALLOCA,;t t
13874s,@USE_NLS@,$USE_NLS,;t t
13875s,@MSGFMT@,$MSGFMT,;t t
13876s,@GMSGFMT@,$GMSGFMT,;t t
13877s,@XGETTEXT@,$XGETTEXT,;t t
13878s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13879s,@CATALOGS@,$CATALOGS,;t t
13880s,@CATOBJEXT@,$CATOBJEXT,;t t
13881s,@DATADIRNAME@,$DATADIRNAME,;t t
13882s,@GMOFILES@,$GMOFILES,;t t
13883s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13884s,@INTLDEPS@,$INTLDEPS,;t t
13885s,@INTLLIBS@,$INTLLIBS,;t t
13886s,@INTLOBJS@,$INTLOBJS,;t t
13887s,@POFILES@,$POFILES,;t t
13888s,@POSUB@,$POSUB,;t t
13889s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
13890s,@GT_NO@,$GT_NO,;t t
13891s,@GT_YES@,$GT_YES,;t t
13892s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13893s,@l@,$l,;t t
13894s,@HDEFINES@,$HDEFINES,;t t
13895s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13896s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13897s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13898s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13899s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13900s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13901s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13902s,@COREFILE@,$COREFILE,;t t
13903s,@COREFLAG@,$COREFLAG,;t t
13904s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13905s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13906s,@TDEFINES@,$TDEFINES,;t t
13907s,@wordsize@,$wordsize,;t t
13908s,@bfd_libs@,$bfd_libs,;t t
13909s,@all_backends@,$all_backends,;t t
13910s,@bfd_backends@,$bfd_backends,;t t
13911s,@bfd_machines@,$bfd_machines,;t t
13912s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13913s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13914s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13915s,@tdefaults@,$tdefaults,;t t
13916s,@LIBOBJS@,$LIBOBJS,;t t
13917s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 13918CEOF
252b5132 13919
5464f5a1
NN
13920_ACEOF
13921
13922 cat >>$CONFIG_STATUS <<\_ACEOF
13923 # Split the substitutions into bite-sized pieces for seds with
13924 # small command number limits, like on Digital OSF/1 and HP-UX.
13925 ac_max_sed_lines=48
13926 ac_sed_frag=1 # Number of current file.
13927 ac_beg=1 # First line for current file.
13928 ac_end=$ac_max_sed_lines # Line after last line for current file.
13929 ac_more_lines=:
13930 ac_sed_cmds=
13931 while $ac_more_lines; do
13932 if test $ac_beg -gt 1; then
13933 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 13934 else
5464f5a1
NN
13935 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13936 fi
13937 if test ! -s $tmp/subs.frag; then
13938 ac_more_lines=false
13939 else
13940 # The purpose of the label and of the branching condition is to
13941 # speed up the sed processing (if there are no `@' at all, there
13942 # is no need to browse any of the substitutions).
13943 # These are the two extra sed commands mentioned above.
13944 (echo ':t
13945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13946 if test -z "$ac_sed_cmds"; then
13947 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13948 else
13949 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13950 fi
13951 ac_sed_frag=`expr $ac_sed_frag + 1`
13952 ac_beg=$ac_end
13953 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13954 fi
5464f5a1
NN
13955 done
13956 if test -z "$ac_sed_cmds"; then
13957 ac_sed_cmds=cat
252b5132 13958 fi
5464f5a1 13959fi # test -n "$CONFIG_FILES"
6be7c12c 13960
5464f5a1
NN
13961_ACEOF
13962cat >>$CONFIG_STATUS <<\_ACEOF
13963for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13964 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13965 case $ac_file in
13966 - | *:- | *:-:* ) # input from stdin
13967 cat >$tmp/stdin
13968 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13969 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13970 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13971 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13972 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13973 esac
13974
5464f5a1
NN
13975 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13976 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13977$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13978 X"$ac_file" : 'X\(//\)[^/]' \| \
13979 X"$ac_file" : 'X\(//\)$' \| \
13980 X"$ac_file" : 'X\(/\)' \| \
13981 . : '\(.\)' 2>/dev/null ||
13982echo X"$ac_file" |
13983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13985 /^X\(\/\/\)$/{ s//\1/; q; }
13986 /^X\(\/\).*/{ s//\1/; q; }
13987 s/.*/./; q'`
13988 { if $as_mkdir_p; then
13989 mkdir -p "$ac_dir"
252b5132 13990 else
5464f5a1
NN
13991 as_dir="$ac_dir"
13992 as_dirs=
13993 while test ! -d "$as_dir"; do
13994 as_dirs="$as_dir $as_dirs"
13995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13997 X"$as_dir" : 'X\(//\)[^/]' \| \
13998 X"$as_dir" : 'X\(//\)$' \| \
13999 X"$as_dir" : 'X\(/\)' \| \
14000 . : '\(.\)' 2>/dev/null ||
14001echo X"$as_dir" |
14002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14004 /^X\(\/\/\)$/{ s//\1/; q; }
14005 /^X\(\/\).*/{ s//\1/; q; }
14006 s/.*/./; q'`
14007 done
14008 test ! -n "$as_dirs" || mkdir $as_dirs
14009 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14010echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14011 { (exit 1); exit 1; }; }; }
14012
14013 ac_builddir=.
14014
14015if test "$ac_dir" != .; then
14016 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14017 # A "../" for each directory in $ac_dir_suffix.
14018 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14019else
14020 ac_dir_suffix= ac_top_builddir=
14021fi
252b5132 14022
5464f5a1
NN
14023case $srcdir in
14024 .) # No --srcdir option. We are building in place.
14025 ac_srcdir=.
14026 if test -z "$ac_top_builddir"; then
14027 ac_top_srcdir=.
14028 else
14029 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14030 fi ;;
14031 [\\/]* | ?:[\\/]* ) # Absolute path.
14032 ac_srcdir=$srcdir$ac_dir_suffix;
14033 ac_top_srcdir=$srcdir ;;
252b5132 14034 *) # Relative path.
5464f5a1
NN
14035 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14036 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14037esac
252b5132 14038
5464f5a1
NN
14039# Do not use `cd foo && pwd` to compute absolute paths, because
14040# the directories may not exist.
14041case `pwd` in
14042.) ac_abs_builddir="$ac_dir";;
14043*)
14044 case "$ac_dir" in
14045 .) ac_abs_builddir=`pwd`;;
14046 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14047 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14048 esac;;
14049esac
14050case $ac_abs_builddir in
14051.) ac_abs_top_builddir=${ac_top_builddir}.;;
14052*)
14053 case ${ac_top_builddir}. in
14054 .) ac_abs_top_builddir=$ac_abs_builddir;;
14055 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14056 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14057 esac;;
14058esac
14059case $ac_abs_builddir in
14060.) ac_abs_srcdir=$ac_srcdir;;
14061*)
14062 case $ac_srcdir in
14063 .) ac_abs_srcdir=$ac_abs_builddir;;
14064 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14065 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14066 esac;;
14067esac
14068case $ac_abs_builddir in
14069.) ac_abs_top_srcdir=$ac_top_srcdir;;
14070*)
14071 case $ac_top_srcdir in
14072 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14073 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14074 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14075 esac;;
14076esac
252b5132 14077
5464f5a1
NN
14078
14079 case $INSTALL in
14080 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14081 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 14082 esac
252b5132 14083
8fb84ecc
AC
14084 if test x"$ac_file" != x-; then
14085 { echo "$as_me:$LINENO: creating $ac_file" >&5
14086echo "$as_me: creating $ac_file" >&6;}
14087 rm -f "$ac_file"
14088 fi
5464f5a1
NN
14089 # Let's still pretend it is `configure' which instantiates (i.e., don't
14090 # use $as_me), people would be surprised to read:
14091 # /* config.h. Generated by config.status. */
14092 if test x"$ac_file" = x-; then
14093 configure_input=
14094 else
14095 configure_input="$ac_file. "
14096 fi
14097 configure_input=$configure_input"Generated from `echo $ac_file_in |
14098 sed 's,.*/,,'` by configure."
14099
14100 # First look for the input files in the build tree, otherwise in the
14101 # src tree.
14102 ac_file_inputs=`IFS=:
14103 for f in $ac_file_in; do
14104 case $f in
14105 -) echo $tmp/stdin ;;
14106 [\\/$]*)
14107 # Absolute (can't be DOS-style, as IFS=:)
14108 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14109echo "$as_me: error: cannot find input file: $f" >&2;}
14110 { (exit 1); exit 1; }; }
14111 echo "$f";;
14112 *) # Relative
14113 if test -f "$f"; then
14114 # Build tree
14115 echo "$f"
14116 elif test -f "$srcdir/$f"; then
14117 # Source tree
14118 echo "$srcdir/$f"
14119 else
14120 # /dev/null tree
14121 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14122echo "$as_me: error: cannot find input file: $f" >&2;}
14123 { (exit 1); exit 1; }; }
14124 fi;;
14125 esac
14126 done` || { (exit 1); exit 1; }
5464f5a1
NN
14127_ACEOF
14128cat >>$CONFIG_STATUS <<_ACEOF
14129 sed "$ac_vpsub
14130$extrasub
14131_ACEOF
14132cat >>$CONFIG_STATUS <<\_ACEOF
14133:t
14134/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14135s,@configure_input@,$configure_input,;t t
14136s,@srcdir@,$ac_srcdir,;t t
14137s,@abs_srcdir@,$ac_abs_srcdir,;t t
14138s,@top_srcdir@,$ac_top_srcdir,;t t
14139s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14140s,@builddir@,$ac_builddir,;t t
14141s,@abs_builddir@,$ac_abs_builddir,;t t
14142s,@top_builddir@,$ac_top_builddir,;t t
14143s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14144s,@INSTALL@,$ac_INSTALL,;t t
14145" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14146 rm -f $tmp/stdin
14147 if test x"$ac_file" != x-; then
14148 mv $tmp/out $ac_file
14149 else
14150 cat $tmp/out
14151 rm -f $tmp/out
14152 fi
14153
14154done
14155_ACEOF
14156cat >>$CONFIG_STATUS <<\_ACEOF
14157
14158#
14159# CONFIG_HEADER section.
14160#
252b5132
RH
14161
14162# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14163# NAME is the cpp macro being defined and VALUE is the value it is being given.
14164#
14165# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
14166ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14167ac_dB='[ ].*$,\1#\2'
14168ac_dC=' '
14169ac_dD=',;t'
14170# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14171ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14172ac_uB='$,\1#\2define\3'
252b5132 14173ac_uC=' '
5464f5a1
NN
14174ac_uD=',;t'
14175
14176for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 14177 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
14178 case $ac_file in
14179 - | *:- | *:-:* ) # input from stdin
14180 cat >$tmp/stdin
14181 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14183 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14184 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14185 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14186 esac
14187
5464f5a1
NN
14188 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14189echo "$as_me: creating $ac_file" >&6;}
14190
14191 # First look for the input files in the build tree, otherwise in the
14192 # src tree.
14193 ac_file_inputs=`IFS=:
14194 for f in $ac_file_in; do
14195 case $f in
14196 -) echo $tmp/stdin ;;
14197 [\\/$]*)
14198 # Absolute (can't be DOS-style, as IFS=:)
14199 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14200echo "$as_me: error: cannot find input file: $f" >&2;}
14201 { (exit 1); exit 1; }; }
14202 # Do quote $f, to prevent DOS paths from being IFS'd.
14203 echo "$f";;
14204 *) # Relative
14205 if test -f "$f"; then
14206 # Build tree
14207 echo "$f"
14208 elif test -f "$srcdir/$f"; then
14209 # Source tree
14210 echo "$srcdir/$f"
14211 else
14212 # /dev/null tree
14213 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14214echo "$as_me: error: cannot find input file: $f" >&2;}
14215 { (exit 1); exit 1; }; }
14216 fi;;
14217 esac
14218 done` || { (exit 1); exit 1; }
14219 # Remove the trailing spaces.
14220 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14221
14222_ACEOF
14223
14224# Transform confdefs.h into two sed scripts, `conftest.defines' and
14225# `conftest.undefs', that substitutes the proper values into
14226# config.h.in to produce config.h. The first handles `#define'
14227# templates, and the second `#undef' templates.
14228# And first: Protect against being on the right side of a sed subst in
14229# config.status. Protect against being in an unquoted here document
14230# in config.status.
14231rm -f conftest.defines conftest.undefs
14232# Using a here document instead of a string reduces the quoting nightmare.
14233# Putting comments in sed scripts is not portable.
14234#
14235# `end' is used to avoid that the second main sed command (meant for
14236# 0-ary CPP macros) applies to n-ary macro definitions.
14237# See the Autoconf documentation for `clear'.
14238cat >confdef2sed.sed <<\_ACEOF
14239s/[\\&,]/\\&/g
14240s,[\\$`],\\&,g
14241t clear
14242: clear
14243s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14244t end
14245s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14246: end
14247_ACEOF
14248# If some macros were called several times there might be several times
14249# the same #defines, which is useless. Nevertheless, we may not want to
14250# sort them, since we want the *last* AC-DEFINE to be honored.
14251uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14252sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14253rm -f confdef2sed.sed
252b5132
RH
14254
14255# This sed command replaces #undef with comments. This is necessary, for
14256# example, in the case of _POSIX_SOURCE, which is predefined and required
14257# on some systems where configure will not decide to define it.
5464f5a1
NN
14258cat >>conftest.undefs <<\_ACEOF
14259s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14260_ACEOF
14261
14262# Break up conftest.defines because some shells have a limit on the size
14263# of here documents, and old seds have small limits too (100 cmds).
14264echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14265echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14266echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14267echo ' :' >>$CONFIG_STATUS
14268rm -f conftest.tail
14269while grep . conftest.defines >/dev/null
14270do
14271 # Write a limited-size here document to $tmp/defines.sed.
14272 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14273 # Speed up: don't consider the non `#define' lines.
14274 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14275 # Work around the forget-to-reset-the-flag bug.
14276 echo 't clr' >>$CONFIG_STATUS
14277 echo ': clr' >>$CONFIG_STATUS
14278 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14279 echo 'CEOF
14280 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14281 rm -f $tmp/in
14282 mv $tmp/out $tmp/in
14283' >>$CONFIG_STATUS
14284 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14285 rm -f conftest.defines
14286 mv conftest.tail conftest.defines
14287done
14288rm -f conftest.defines
14289echo ' fi # grep' >>$CONFIG_STATUS
14290echo >>$CONFIG_STATUS
252b5132 14291
5464f5a1
NN
14292# Break up conftest.undefs because some shells have a limit on the size
14293# of here documents, and old seds have small limits too (100 cmds).
14294echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 14295rm -f conftest.tail
5464f5a1 14296while grep . conftest.undefs >/dev/null
252b5132 14297do
5464f5a1
NN
14298 # Write a limited-size here document to $tmp/undefs.sed.
14299 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14300 # Speed up: don't consider the non `#undef'
14301 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14302 # Work around the forget-to-reset-the-flag bug.
14303 echo 't clr' >>$CONFIG_STATUS
14304 echo ': clr' >>$CONFIG_STATUS
14305 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 14306 echo 'CEOF
5464f5a1
NN
14307 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14308 rm -f $tmp/in
14309 mv $tmp/out $tmp/in
14310' >>$CONFIG_STATUS
14311 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14312 rm -f conftest.undefs
14313 mv conftest.tail conftest.undefs
252b5132 14314done
5464f5a1
NN
14315rm -f conftest.undefs
14316
14317cat >>$CONFIG_STATUS <<\_ACEOF
14318 # Let's still pretend it is `configure' which instantiates (i.e., don't
14319 # use $as_me), people would be surprised to read:
14320 # /* config.h. Generated by config.status. */
14321 if test x"$ac_file" = x-; then
14322 echo "/* Generated by configure. */" >$tmp/config.h
14323 else
14324 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14325 fi
14326 cat $tmp/in >>$tmp/config.h
14327 rm -f $tmp/in
14328 if test x"$ac_file" != x-; then
14329 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14330 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14331echo "$as_me: $ac_file is unchanged" >&6;}
14332 else
14333 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14334$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14335 X"$ac_file" : 'X\(//\)[^/]' \| \
14336 X"$ac_file" : 'X\(//\)$' \| \
14337 X"$ac_file" : 'X\(/\)' \| \
14338 . : '\(.\)' 2>/dev/null ||
14339echo X"$ac_file" |
14340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14342 /^X\(\/\/\)$/{ s//\1/; q; }
14343 /^X\(\/\).*/{ s//\1/; q; }
14344 s/.*/./; q'`
14345 { if $as_mkdir_p; then
14346 mkdir -p "$ac_dir"
252b5132 14347 else
5464f5a1
NN
14348 as_dir="$ac_dir"
14349 as_dirs=
14350 while test ! -d "$as_dir"; do
14351 as_dirs="$as_dir $as_dirs"
14352 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14353$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14354 X"$as_dir" : 'X\(//\)[^/]' \| \
14355 X"$as_dir" : 'X\(//\)$' \| \
14356 X"$as_dir" : 'X\(/\)' \| \
14357 . : '\(.\)' 2>/dev/null ||
14358echo X"$as_dir" |
14359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14361 /^X\(\/\/\)$/{ s//\1/; q; }
14362 /^X\(\/\).*/{ s//\1/; q; }
14363 s/.*/./; q'`
14364 done
14365 test ! -n "$as_dirs" || mkdir $as_dirs
14366 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14367echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14368 { (exit 1); exit 1; }; }; }
14369
14370 rm -f $ac_file
14371 mv $tmp/config.h $ac_file
252b5132 14372 fi
5464f5a1
NN
14373 else
14374 cat $tmp/config.h
14375 rm -f $tmp/config.h
252b5132 14376 fi
f5385ebf
AM
14377# Compute $ac_file's index in $config_headers.
14378_am_stamp_count=1
14379for _am_header in $config_headers :; do
14380 case $_am_header in
14381 $ac_file | $ac_file:* )
14382 break ;;
14383 * )
14384 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14385 esac
14386done
14387echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14388$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14389 X$ac_file : 'X\(//\)[^/]' \| \
14390 X$ac_file : 'X\(//\)$' \| \
14391 X$ac_file : 'X\(/\)' \| \
14392 . : '\(.\)' 2>/dev/null ||
14393echo X$ac_file |
14394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14396 /^X\(\/\/\)$/{ s//\1/; q; }
14397 /^X\(\/\).*/{ s//\1/; q; }
14398 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
14399done
14400_ACEOF
14401cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 14402
5464f5a1
NN
14403#
14404# CONFIG_COMMANDS section.
14405#
14406for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14407 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14408 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14409 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14410$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14411 X"$ac_dest" : 'X\(//\)[^/]' \| \
14412 X"$ac_dest" : 'X\(//\)$' \| \
14413 X"$ac_dest" : 'X\(/\)' \| \
14414 . : '\(.\)' 2>/dev/null ||
14415echo X"$ac_dest" |
14416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14417 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14418 /^X\(\/\/\)$/{ s//\1/; q; }
14419 /^X\(\/\).*/{ s//\1/; q; }
14420 s/.*/./; q'`
14421 { if $as_mkdir_p; then
14422 mkdir -p "$ac_dir"
14423 else
14424 as_dir="$ac_dir"
14425 as_dirs=
14426 while test ! -d "$as_dir"; do
14427 as_dirs="$as_dir $as_dirs"
14428 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14429$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14430 X"$as_dir" : 'X\(//\)[^/]' \| \
14431 X"$as_dir" : 'X\(//\)$' \| \
14432 X"$as_dir" : 'X\(/\)' \| \
14433 . : '\(.\)' 2>/dev/null ||
14434echo X"$as_dir" |
14435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14436 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14437 /^X\(\/\/\)$/{ s//\1/; q; }
14438 /^X\(\/\).*/{ s//\1/; q; }
14439 s/.*/./; q'`
14440 done
14441 test ! -n "$as_dirs" || mkdir $as_dirs
14442 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14443echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14444 { (exit 1); exit 1; }; }; }
b3baf5d0 14445
5464f5a1 14446 ac_builddir=.
b3baf5d0 14447
5464f5a1
NN
14448if test "$ac_dir" != .; then
14449 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14450 # A "../" for each directory in $ac_dir_suffix.
14451 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14452else
14453 ac_dir_suffix= ac_top_builddir=
14454fi
14455
14456case $srcdir in
14457 .) # No --srcdir option. We are building in place.
14458 ac_srcdir=.
14459 if test -z "$ac_top_builddir"; then
14460 ac_top_srcdir=.
14461 else
14462 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14463 fi ;;
14464 [\\/]* | ?:[\\/]* ) # Absolute path.
14465 ac_srcdir=$srcdir$ac_dir_suffix;
14466 ac_top_srcdir=$srcdir ;;
14467 *) # Relative path.
14468 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14469 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14470esac
14471
14472# Do not use `cd foo && pwd` to compute absolute paths, because
14473# the directories may not exist.
14474case `pwd` in
14475.) ac_abs_builddir="$ac_dir";;
14476*)
14477 case "$ac_dir" in
14478 .) ac_abs_builddir=`pwd`;;
14479 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14480 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14481 esac;;
14482esac
14483case $ac_abs_builddir in
14484.) ac_abs_top_builddir=${ac_top_builddir}.;;
14485*)
14486 case ${ac_top_builddir}. in
14487 .) ac_abs_top_builddir=$ac_abs_builddir;;
14488 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14489 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14490 esac;;
14491esac
14492case $ac_abs_builddir in
14493.) ac_abs_srcdir=$ac_srcdir;;
14494*)
14495 case $ac_srcdir in
14496 .) ac_abs_srcdir=$ac_abs_builddir;;
14497 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14498 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14499 esac;;
14500esac
14501case $ac_abs_builddir in
14502.) ac_abs_top_srcdir=$ac_top_srcdir;;
14503*)
14504 case $ac_top_srcdir in
14505 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14506 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14507 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14508 esac;;
14509esac
14510
14511
14512 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14513echo "$as_me: executing $ac_dest commands" >&6;}
14514 case $ac_dest in
f5385ebf
AM
14515 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14516 # Strip MF so we end up with the name of the file.
14517 mf=`echo "$mf" | sed -e 's/:.*$//'`
14518 # Check whether this is an Automake generated Makefile or not.
14519 # We used to match only the files named `Makefile.in', but
14520 # some people rename them; so instead we look at the file content.
14521 # Grep'ing the first line is not enough: some people post-process
14522 # each Makefile.in and add a new line on top of each file to say so.
14523 # So let's grep whole file.
14524 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14525 dirpart=`(dirname "$mf") 2>/dev/null ||
14526$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14527 X"$mf" : 'X\(//\)[^/]' \| \
14528 X"$mf" : 'X\(//\)$' \| \
14529 X"$mf" : 'X\(/\)' \| \
14530 . : '\(.\)' 2>/dev/null ||
14531echo X"$mf" |
14532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14533 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14534 /^X\(\/\/\)$/{ s//\1/; q; }
14535 /^X\(\/\).*/{ s//\1/; q; }
14536 s/.*/./; q'`
14537 else
14538 continue
14539 fi
14540 # Extract the definition of DEPDIR, am__include, and am__quote
14541 # from the Makefile without running `make'.
14542 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14543 test -z "$DEPDIR" && continue
14544 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14545 test -z "am__include" && continue
14546 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14547 # When using ansi2knr, U may be empty or an underscore; expand it
14548 U=`sed -n 's/^U = //p' < "$mf"`
14549 # Find all dependency output files, they are included files with
14550 # $(DEPDIR) in their names. We invoke sed twice because it is the
14551 # simplest approach to changing $(DEPDIR) to its actual value in the
14552 # expansion.
14553 for file in `sed -n "
14554 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14555 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14556 # Make sure the directory exists.
14557 test -f "$dirpart/$file" && continue
14558 fdir=`(dirname "$file") 2>/dev/null ||
14559$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14560 X"$file" : 'X\(//\)[^/]' \| \
14561 X"$file" : 'X\(//\)$' \| \
14562 X"$file" : 'X\(/\)' \| \
14563 . : '\(.\)' 2>/dev/null ||
14564echo X"$file" |
14565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14567 /^X\(\/\/\)$/{ s//\1/; q; }
14568 /^X\(\/\).*/{ s//\1/; q; }
14569 s/.*/./; q'`
14570 { if $as_mkdir_p; then
14571 mkdir -p $dirpart/$fdir
14572 else
14573 as_dir=$dirpart/$fdir
14574 as_dirs=
14575 while test ! -d "$as_dir"; do
14576 as_dirs="$as_dir $as_dirs"
14577 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14578$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14579 X"$as_dir" : 'X\(//\)[^/]' \| \
14580 X"$as_dir" : 'X\(//\)$' \| \
14581 X"$as_dir" : 'X\(/\)' \| \
14582 . : '\(.\)' 2>/dev/null ||
14583echo X"$as_dir" |
14584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14585 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14586 /^X\(\/\/\)$/{ s//\1/; q; }
14587 /^X\(\/\).*/{ s//\1/; q; }
14588 s/.*/./; q'`
14589 done
14590 test ! -n "$as_dirs" || mkdir $as_dirs
14591 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14592echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14593 { (exit 1); exit 1; }; }; }
14594
14595 # echo "creating $dirpart/$file"
14596 echo '# dummy' > "$dirpart/$file"
14597 done
14598done
14599 ;;
5464f5a1
NN
14600 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
14601 esac
14602done
14603_ACEOF
14604
14605cat >>$CONFIG_STATUS <<\_ACEOF
14606
14607{ (exit 0); exit 0; }
14608_ACEOF
252b5132 14609chmod +x $CONFIG_STATUS
5464f5a1
NN
14610ac_clean_files=$ac_clean_files_save
14611
14612
14613# configure is writing to config.log, and then calls config.status.
14614# config.status does its own redirection, appending to config.log.
14615# Unfortunately, on DOS this fails, as config.log is still kept open
14616# by configure, so config.status won't be able to write to it; its
14617# output is simply discarded. So we exec the FD to /dev/null,
14618# effectively closing config.log, so it can be properly (re)opened and
14619# appended to by config.status. When coming back to configure, we
14620# need to make the FD available again.
14621if test "$no_create" != yes; then
14622 ac_cs_success=:
14623 ac_config_status_args=
14624 test "$silent" = yes &&
14625 ac_config_status_args="$ac_config_status_args --quiet"
14626 exec 5>/dev/null
14627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14628 exec 5>>config.log
14629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14630 # would make configure fail if this is the last instruction.
14631 $ac_cs_success || { (exit 1); exit 1; }
14632fi
252b5132 14633
55c80943 14634