]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/configure
Fix ia64-hpux build failure, patch from Steve Ellcey.
[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
eac338cf 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); } &&
eac338cf 2001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 (eval $ac_try) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 ac_compiler_gnu=yes
2014else
2015 echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018ac_compiler_gnu=no
2019fi
2020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2021ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022
2023fi
2024echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2025echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2026GCC=`test $ac_compiler_gnu = yes && echo yes`
2027ac_test_CFLAGS=${CFLAGS+set}
2028ac_save_CFLAGS=$CFLAGS
2029CFLAGS="-g"
2030echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2031echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2032if test "${ac_cv_prog_cc_g+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035 cat >conftest.$ac_ext <<_ACEOF
2036/* confdefs.h. */
2037_ACEOF
2038cat confdefs.h >>conftest.$ac_ext
2039cat >>conftest.$ac_ext <<_ACEOF
2040/* end confdefs.h. */
2041
2042int
2043main ()
2044{
2045
2046 ;
2047 return 0;
2048}
2049_ACEOF
2050rm -f conftest.$ac_objext
2051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2053 ac_status=$?
2054 grep -v '^ *+' conftest.er1 >conftest.err
2055 rm -f conftest.er1
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
eac338cf 2059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061 (eval $ac_try) 2>&5
2062 ac_status=$?
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; } &&
2065 { ac_try='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 (eval $ac_try) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2071 ac_cv_prog_cc_g=yes
2072else
2073 echo "$as_me: failed program was:" >&5
2074sed 's/^/| /' conftest.$ac_ext >&5
2075
2076ac_cv_prog_cc_g=no
2077fi
2078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079fi
2080echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2081echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2082if test "$ac_test_CFLAGS" = set; then
2083 CFLAGS=$ac_save_CFLAGS
2084elif test $ac_cv_prog_cc_g = yes; then
2085 if test "$GCC" = yes; then
2086 CFLAGS="-g -O2"
2087 else
2088 CFLAGS="-g"
2089 fi
2090else
2091 if test "$GCC" = yes; then
2092 CFLAGS="-O2"
2093 else
2094 CFLAGS=
2095 fi
2096fi
2097echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2098echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2099if test "${ac_cv_prog_cc_stdc+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102 ac_cv_prog_cc_stdc=no
2103ac_save_CC=$CC
2104cat >conftest.$ac_ext <<_ACEOF
2105/* confdefs.h. */
2106_ACEOF
2107cat confdefs.h >>conftest.$ac_ext
2108cat >>conftest.$ac_ext <<_ACEOF
2109/* end confdefs.h. */
2110#include <stdarg.h>
2111#include <stdio.h>
2112#include <sys/types.h>
2113#include <sys/stat.h>
2114/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2115struct buf { int x; };
2116FILE * (*rcsopen) (struct buf *, struct stat *, int);
2117static char *e (p, i)
2118 char **p;
2119 int i;
2120{
2121 return p[i];
2122}
2123static char *f (char * (*g) (char **, int), char **p, ...)
2124{
2125 char *s;
2126 va_list v;
2127 va_start (v,p);
2128 s = g (p, va_arg (v,int));
2129 va_end (v);
2130 return s;
2131}
2132
2133/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2134 function prototypes and stuff, but not '\xHH' hex character constants.
2135 These don't provoke an error unfortunately, instead are silently treated
2136 as 'x'. The following induces an error, until -std1 is added to get
2137 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2138 array size at least. It's necessary to write '\x00'==0 to get something
2139 that's true only with -std1. */
2140int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2141
2142int test (int i, double x);
2143struct s1 {int (*f) (int a);};
2144struct s2 {int (*f) (double a);};
2145int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2146int argc;
2147char **argv;
2148int
2149main ()
2150{
2151return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156# Don't try gcc -ansi; that turns off useful extensions and
2157# breaks some systems' header files.
2158# AIX -qlanglvl=ansi
2159# Ultrix and OSF/1 -std1
2160# HP-UX 10.20 and later -Ae
2161# HP-UX older versions -Aa -D_HPUX_SOURCE
2162# SVR4 -Xc -D__EXTENSIONS__
2163for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164do
2165 CC="$ac_save_CC $ac_arg"
2166 rm -f conftest.$ac_objext
2167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>conftest.er1
2169 ac_status=$?
2170 grep -v '^ *+' conftest.er1 >conftest.err
2171 rm -f conftest.er1
2172 cat conftest.err >&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); } &&
eac338cf 2175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188break
2189else
2190 echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193fi
2194rm -f conftest.err conftest.$ac_objext
2195done
2196rm -f conftest.$ac_ext conftest.$ac_objext
2197CC=$ac_save_CC
2198
2199fi
2200
2201case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204echo "${ECHO_T}none needed" >&6 ;;
2205 *)
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209esac
2210
2211# Some people use a C++ compiler to compile C. Since we use `exit',
2212# in C++ we need to declare it. In case someone uses the same compiler
2213# for both compiling C and C++ we need to have the C++ compiler decide
2214# the declaration of exit, since it's the most demanding environment.
2215cat >conftest.$ac_ext <<_ACEOF
2216#ifndef __cplusplus
2217 choke me
2218#endif
2219_ACEOF
2220rm -f conftest.$ac_objext
2221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
eac338cf 2229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 for ac_declaration in \
2242 '' \
2243 'extern "C" void std::exit (int) throw (); using std::exit;' \
2244 'extern "C" void std::exit (int); using std::exit;' \
2245 'extern "C" void exit (int) throw ();' \
2246 'extern "C" void exit (int);' \
2247 'void exit (int);'
2248do
2249 cat >conftest.$ac_ext <<_ACEOF
2250/* confdefs.h. */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h. */
2255$ac_declaration
2256#include <stdlib.h>
2257int
2258main ()
2259{
2260exit (42);
2261 ;
2262 return 0;
2263}
2264_ACEOF
2265rm -f conftest.$ac_objext
2266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2268 ac_status=$?
2269 grep -v '^ *+' conftest.er1 >conftest.err
2270 rm -f conftest.er1
2271 cat conftest.err >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
eac338cf 2274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 :
2287else
2288 echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291continue
2292fi
2293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 cat >conftest.$ac_ext <<_ACEOF
2295/* confdefs.h. */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h. */
2300$ac_declaration
2301int
2302main ()
2303{
2304exit (42);
2305 ;
2306 return 0;
2307}
2308_ACEOF
2309rm -f conftest.$ac_objext
2310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2312 ac_status=$?
2313 grep -v '^ *+' conftest.er1 >conftest.err
2314 rm -f conftest.er1
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
eac338cf 2318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320 (eval $ac_try) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; } &&
2324 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2330 break
2331else
2332 echo "$as_me: failed program was:" >&5
2333sed 's/^/| /' conftest.$ac_ext >&5
2334
2335fi
2336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2337done
2338rm -f conftest*
2339if test -n "$ac_declaration"; then
2340 echo '#ifdef __cplusplus' >>confdefs.h
2341 echo $ac_declaration >>confdefs.h
2342 echo '#endif' >>confdefs.h
2343fi
2344
2345else
2346 echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349fi
2350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351ac_ext=c
2352ac_cpp='$CPP $CPPFLAGS'
2353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356
2357
f5385ebf
AM
2358echo "$as_me:$LINENO: checking for library containing strerror" >&5
2359echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2360if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
f5385ebf
AM
2363 ac_func_search_save_LIBS=$LIBS
2364ac_cv_search_strerror=no
5464f5a1
NN
2365cat >conftest.$ac_ext <<_ACEOF
2366/* confdefs.h. */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
2370/* end confdefs.h. */
2371
2372/* Override any gcc2 internal prototype to avoid an error. */
2373#ifdef __cplusplus
2374extern "C"
2375#endif
2376/* We use char because int might match the return type of a gcc2
2377 builtin and then its argument prototype would still apply. */
2378char strerror ();
2379int
2380main ()
2381{
2382strerror ();
2383 ;
2384 return 0;
2385}
2386_ACEOF
2387rm -f conftest.$ac_objext conftest$ac_exeext
2388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2389 (eval $ac_link) 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
eac338cf 2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 (eval $ac_try) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try='test -s conftest$ac_exeext'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 (eval $ac_try) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
f5385ebf 2408 ac_cv_search_strerror="none required"
5464f5a1
NN
2409else
2410 echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
2412
5464f5a1
NN
2413fi
2414rm -f conftest.err conftest.$ac_objext \
2415 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2416if test "$ac_cv_search_strerror" = no; then
2417 for ac_lib in cposix; do
2418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2419 cat >conftest.$ac_ext <<_ACEOF
2420/* confdefs.h. */
2421_ACEOF
2422cat confdefs.h >>conftest.$ac_ext
2423cat >>conftest.$ac_ext <<_ACEOF
2424/* end confdefs.h. */
2425
2426/* Override any gcc2 internal prototype to avoid an error. */
2427#ifdef __cplusplus
2428extern "C"
2429#endif
2430/* We use char because int might match the return type of a gcc2
2431 builtin and then its argument prototype would still apply. */
2432char strerror ();
2433int
2434main ()
2435{
2436strerror ();
2437 ;
2438 return 0;
2439}
2440_ACEOF
2441rm -f conftest.$ac_objext conftest$ac_exeext
2442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2443 (eval $ac_link) 2>conftest.er1
2444 ac_status=$?
2445 grep -v '^ *+' conftest.er1 >conftest.err
2446 rm -f conftest.er1
2447 cat conftest.err >&5
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); } &&
eac338cf 2450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f5385ebf
AM
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try='test -s conftest$ac_exeext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 ac_cv_search_strerror="-l$ac_lib"
2463break
2464else
2465 echo "$as_me: failed program was:" >&5
2466sed 's/^/| /' conftest.$ac_ext >&5
2467
5464f5a1 2468fi
f5385ebf
AM
2469rm -f conftest.err conftest.$ac_objext \
2470 conftest$ac_exeext conftest.$ac_ext
2471 done
5464f5a1 2472fi
f5385ebf
AM
2473LIBS=$ac_func_search_save_LIBS
2474fi
2475echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2476echo "${ECHO_T}$ac_cv_search_strerror" >&6
2477if test "$ac_cv_search_strerror" != no; then
2478 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2479
f5385ebf 2480fi
5464f5a1
NN
2481
2482
f5385ebf 2483am__api_version="1.9"
5464f5a1
NN
2484# Find a good install program. We prefer a C program (faster),
2485# so one script is as good as another. But avoid the broken or
2486# incompatible versions:
2487# SysV /etc/install, /usr/sbin/install
2488# SunOS /usr/etc/install
2489# IRIX /sbin/install
2490# AIX /bin/install
2491# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2492# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2493# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2494# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2495# OS/2's system install, which has a completely different semantic
252b5132 2496# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2497echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2498echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2499if test -z "$INSTALL"; then
5464f5a1
NN
2500if test "${ac_cv_path_install+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2502else
5464f5a1
NN
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506 IFS=$as_save_IFS
2507 test -z "$as_dir" && as_dir=.
2508 # Account for people who put trailing slashes in PATH elements.
2509case $as_dir/ in
2510 ./ | .// | /cC/* | \
2511 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2512 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2513 /usr/ucb/* ) ;;
2514 *)
2515 # OSF1 and SCO ODT 3.0 have their own names for install.
2516 # Don't use installbsd from OSF since it installs stuff as root
2517 # by default.
2518 for ac_prog in ginstall scoinst install; do
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2521 if test $ac_prog = install &&
5464f5a1 2522 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2523 # AIX install. It has an incompatible calling convention.
2524 :
5464f5a1
NN
2525 elif test $ac_prog = install &&
2526 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # program-specific install script used by HP pwplus--don't use.
2528 :
252b5132 2529 else
5464f5a1
NN
2530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2531 break 3
252b5132
RH
2532 fi
2533 fi
2534 done
5464f5a1
NN
2535 done
2536 ;;
2537esac
2538done
2539
252b5132
RH
2540
2541fi
2542 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2543 INSTALL=$ac_cv_path_install
252b5132
RH
2544 else
2545 # As a last resort, use the slow shell script. We don't cache a
2546 # path for INSTALL within a source directory, because that will
2547 # break other packages using the cache if that directory is
2548 # removed, or if the path is relative.
5464f5a1 2549 INSTALL=$ac_install_sh
252b5132
RH
2550 fi
2551fi
5464f5a1
NN
2552echo "$as_me:$LINENO: result: $INSTALL" >&5
2553echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2554
2555# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2556# It thinks the first close brace ends the variable substitution.
2557test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2558
5464f5a1 2559test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2560
2561test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2562
5464f5a1
NN
2563echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2564echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2565# Just in case
2566sleep 1
f5385ebf 2567echo timestamp > conftest.file
252b5132
RH
2568# Do `set' in a subshell so we don't clobber the current shell's
2569# arguments. Must try -L first in case configure is actually a
2570# symlink; some systems play weird games with the mod time of symlinks
2571# (eg FreeBSD returns the mod time of the symlink's containing
2572# directory).
2573if (
f5385ebf 2574 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2575 if test "$*" = "X"; then
2576 # -L didn't work.
f5385ebf 2577 set X `ls -t $srcdir/configure conftest.file`
252b5132 2578 fi
f5385ebf
AM
2579 rm -f conftest.file
2580 if test "$*" != "X $srcdir/configure conftest.file" \
2581 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2582
2583 # If neither matched, then we have a broken ls. This can happen
2584 # if, for instance, CONFIG_SHELL is bash and it inherits a
2585 # broken ls alias from the environment. This has actually
2586 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2587 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2588alias in your environment" >&5
2589echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2590alias in your environment" >&2;}
2591 { (exit 1); exit 1; }; }
252b5132
RH
2592 fi
2593
f5385ebf 2594 test "$2" = conftest.file
252b5132
RH
2595 )
2596then
2597 # Ok.
2598 :
2599else
5464f5a1
NN
2600 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2601Check your system clock" >&5
2602echo "$as_me: error: newly created file is older than distributed files!
2603Check your system clock" >&2;}
2604 { (exit 1); exit 1; }; }
252b5132 2605fi
5464f5a1
NN
2606echo "$as_me:$LINENO: result: yes" >&5
2607echo "${ECHO_T}yes" >&6
252b5132 2608test "$program_prefix" != NONE &&
5464f5a1 2609 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2610# Use a double $ so make ignores it.
2611test "$program_suffix" != NONE &&
5464f5a1
NN
2612 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2613# Double any \ or $. echo might interpret backslashes.
2614# By default was `s,x,x', remove it if useless.
2615cat <<\_ACEOF >conftest.sed
2616s/[\\$]/&&/g;s/;s,x,x,$//
2617_ACEOF
2618program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2619rm conftest.sed
2620
f5385ebf
AM
2621# expand $ac_aux_dir to an absolute path
2622am_aux_dir=`cd $ac_aux_dir && pwd`
2623
2624test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2625# Use eval to expand $SHELL
2626if eval "$MISSING --run true"; then
2627 am_missing_run="$MISSING --run "
2628else
2629 am_missing_run=
2630 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2631echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2632fi
2633
2634if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2635 # We used to keeping the `.' as first argument, in order to
2636 # allow $(mkdir_p) to be used without argument. As in
2637 # $(mkdir_p) $(somedir)
2638 # where $(somedir) is conditionally defined. However this is wrong
2639 # for two reasons:
2640 # 1. if the package is installed by a user who cannot write `.'
2641 # make install will fail,
2642 # 2. the above comment should most certainly read
2643 # $(mkdir_p) $(DESTDIR)$(somedir)
2644 # so it does not work when $(somedir) is undefined and
2645 # $(DESTDIR) is not.
2646 # To support the latter case, we have to write
2647 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2648 # so the `.' trick is pointless.
2649 mkdir_p='mkdir -p --'
2650else
2651 # On NextStep and OpenStep, the `mkdir' command does not
2652 # recognize any option. It will interpret all options as
2653 # directories to create, and then abort because `.' already
2654 # exists.
2655 for d in ./-p ./--version;
2656 do
2657 test -d $d && rmdir $d
2658 done
2659 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2660 if test -f "$ac_aux_dir/mkinstalldirs"; then
2661 mkdir_p='$(mkinstalldirs)'
2662 else
2663 mkdir_p='$(install_sh) -d'
2664 fi
2665fi
2666
2667for ac_prog in gawk mawk nawk awk
2668do
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670set dummy $ac_prog; ac_word=$2
2671echo "$as_me:$LINENO: checking for $ac_word" >&5
2672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673if test "${ac_cv_prog_AWK+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675else
2676 if test -n "$AWK"; then
2677 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_AWK="$ac_prog"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 break 2
2689 fi
2690done
2691done
2692
2693fi
2694fi
2695AWK=$ac_cv_prog_AWK
2696if test -n "$AWK"; then
2697 echo "$as_me:$LINENO: result: $AWK" >&5
2698echo "${ECHO_T}$AWK" >&6
2699else
2700 echo "$as_me:$LINENO: result: no" >&5
2701echo "${ECHO_T}no" >&6
2702fi
2703
2704 test -n "$AWK" && break
2705done
2706
5464f5a1
NN
2707echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2708echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2709set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2710if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2712else
2713 cat >conftest.make <<\_ACEOF
252b5132 2714all:
5464f5a1
NN
2715 @echo 'ac_maketemp="$(MAKE)"'
2716_ACEOF
252b5132 2717# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2718eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2719if test -n "$ac_maketemp"; then
2720 eval ac_cv_prog_make_${ac_make}_set=yes
2721else
2722 eval ac_cv_prog_make_${ac_make}_set=no
2723fi
5464f5a1 2724rm -f conftest.make
252b5132
RH
2725fi
2726if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2727 echo "$as_me:$LINENO: result: yes" >&5
2728echo "${ECHO_T}yes" >&6
252b5132
RH
2729 SET_MAKE=
2730else
5464f5a1
NN
2731 echo "$as_me:$LINENO: result: no" >&5
2732echo "${ECHO_T}no" >&6
252b5132
RH
2733 SET_MAKE="MAKE=${MAKE-make}"
2734fi
2735
f5385ebf
AM
2736rm -rf .tst 2>/dev/null
2737mkdir .tst 2>/dev/null
2738if test -d .tst; then
2739 am__leading_dot=.
2740else
2741 am__leading_dot=_
2742fi
2743rmdir .tst 2>/dev/null
2744
2745DEPDIR="${am__leading_dot}deps"
2746
2747 ac_config_commands="$ac_config_commands depfiles"
2748
2749
2750am_make=${MAKE-make}
2751cat > confinc << 'END'
2752am__doit:
2753 @echo done
2754.PHONY: am__doit
2755END
2756# If we don't find an include directive, just comment out the code.
2757echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2758echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2759am__include="#"
2760am__quote=
2761_am_result=none
2762# First try GNU make style include.
2763echo "include confinc" > confmf
2764# We grep out `Entering directory' and `Leaving directory'
2765# messages which can occur if `w' ends up in MAKEFLAGS.
2766# In particular we don't look at `^make:' because GNU make might
2767# be invoked under some other name (usually "gmake"), in which
2768# case it prints its new name instead of `make'.
2769if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2770 am__include=include
2771 am__quote=
2772 _am_result=GNU
2773fi
2774# Now try BSD make style include.
2775if test "$am__include" = "#"; then
2776 echo '.include "confinc"' > confmf
2777 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2778 am__include=.include
2779 am__quote="\""
2780 _am_result=BSD
2781 fi
2782fi
2783
2784
2785echo "$as_me:$LINENO: result: $_am_result" >&5
2786echo "${ECHO_T}$_am_result" >&6
2787rm -f confinc confmf
2788
2789# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2790if test "${enable_dependency_tracking+set}" = set; then
2791 enableval="$enable_dependency_tracking"
2792
2793fi;
2794if test "x$enable_dependency_tracking" != xno; then
2795 am_depcomp="$ac_aux_dir/depcomp"
2796 AMDEPBACKSLASH='\'
2797fi
2798
2799
2800if test "x$enable_dependency_tracking" != xno; then
2801 AMDEP_TRUE=
2802 AMDEP_FALSE='#'
2803else
2804 AMDEP_TRUE='#'
2805 AMDEP_FALSE=
2806fi
6be7c12c 2807
252b5132 2808
252b5132 2809
f5385ebf
AM
2810# test to see if srcdir already configured
2811if test "`cd $srcdir && pwd`" != "`pwd`" &&
2812 test -f $srcdir/config.status; then
5464f5a1
NN
2813 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2814echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2815 { (exit 1); exit 1; }; }
252b5132 2816fi
5464f5a1 2817
f5385ebf
AM
2818# test whether we have cygpath
2819if test -z "$CYGPATH_W"; then
2820 if (cygpath --version) >/dev/null 2>/dev/null; then
2821 CYGPATH_W='cygpath -w'
2822 else
2823 CYGPATH_W=echo
2824 fi
2825fi
2826
2827
2828# Define the identity of the package.
2829 PACKAGE=bfd
664fe1be 2830 VERSION=2.16.90
f5385ebf
AM
2831
2832
5464f5a1 2833cat >>confdefs.h <<_ACEOF
252b5132 2834#define PACKAGE "$PACKAGE"
5464f5a1 2835_ACEOF
252b5132 2836
5464f5a1
NN
2837
2838cat >>confdefs.h <<_ACEOF
252b5132 2839#define VERSION "$VERSION"
5464f5a1 2840_ACEOF
252b5132 2841
f5385ebf
AM
2842# Some tools Automake needs.
2843
2844ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2845
2846
2847AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2848
2849
2850AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2851
2852
2853AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2854
2855
2856MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2857
f5385ebf 2858install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2859
f5385ebf
AM
2860# Installed binaries are usually stripped using `strip' when the user
2861# run `make install-strip'. However `strip' might not be the right
2862# tool to use in cross-compilation environments, therefore Automake
2863# will honor the `STRIP' environment variable to overrule this program.
2864if test "$cross_compiling" != no; then
2865 if test -n "$ac_tool_prefix"; then
2866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2867set dummy ${ac_tool_prefix}strip; ac_word=$2
2868echo "$as_me:$LINENO: checking for $ac_word" >&5
2869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2870if test "${ac_cv_prog_STRIP+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872else
2873 if test -n "$STRIP"; then
2874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2875else
f5385ebf
AM
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2886 fi
2887done
2888done
2889
2890fi
2891fi
2892STRIP=$ac_cv_prog_STRIP
2893if test -n "$STRIP"; then
2894 echo "$as_me:$LINENO: result: $STRIP" >&5
2895echo "${ECHO_T}$STRIP" >&6
2896else
2897 echo "$as_me:$LINENO: result: no" >&5
2898echo "${ECHO_T}no" >&6
2899fi
2900
252b5132 2901fi
f5385ebf
AM
2902if test -z "$ac_cv_prog_STRIP"; then
2903 ac_ct_STRIP=$STRIP
2904 # Extract the first word of "strip", so it can be a program name with args.
2905set dummy strip; ac_word=$2
2906echo "$as_me:$LINENO: checking for $ac_word" >&5
2907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2908if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910else
2911 if test -n "$ac_ct_STRIP"; then
2912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2913else
2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915for as_dir in $PATH
2916do
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921 ac_cv_prog_ac_ct_STRIP="strip"
2922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925done
2926done
252b5132 2927
f5385ebf
AM
2928 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2929fi
2930fi
2931ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2932if test -n "$ac_ct_STRIP"; then
2933 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2934echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2935else
f5385ebf
AM
2936 echo "$as_me:$LINENO: result: no" >&5
2937echo "${ECHO_T}no" >&6
252b5132
RH
2938fi
2939
f5385ebf 2940 STRIP=$ac_ct_STRIP
252b5132 2941else
f5385ebf
AM
2942 STRIP="$ac_cv_prog_STRIP"
2943fi
2944
252b5132 2945fi
f5385ebf
AM
2946INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2947
2948# We need awk for the "check" target. The system "awk" is bad on
2949# some platforms.
2950# Always define AMTAR for backward compatibility.
2951
2952AMTAR=${AMTAR-"${am_missing_run}tar"}
2953
2954am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2955
252b5132 2956
f5385ebf
AM
2957
2958
2959depcc="$CC" am_compiler_list=
2960
2961echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2962echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2963if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2965else
f5385ebf
AM
2966 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2967 # We make a subdir and do the tests there. Otherwise we can end up
2968 # making bogus files that we don't know about and never remove. For
2969 # instance it was reported that on HP-UX the gcc test will end up
2970 # making a dummy file named `D' -- because `-MD' means `put the output
2971 # in D'.
2972 mkdir conftest.dir
2973 # Copy depcomp to subdir because otherwise we won't find it if we're
2974 # using a relative directory.
2975 cp "$am_depcomp" conftest.dir
2976 cd conftest.dir
2977 # We will build objects and dependencies in a subdirectory because
2978 # it helps to detect inapplicable dependency modes. For instance
2979 # both Tru64's cc and ICC support -MD to output dependencies as a
2980 # side effect of compilation, but ICC will put the dependencies in
2981 # the current directory while Tru64 will put them in the object
2982 # directory.
2983 mkdir sub
2984
2985 am_cv_CC_dependencies_compiler_type=none
2986 if test "$am_compiler_list" = ""; then
2987 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2988 fi
2989 for depmode in $am_compiler_list; do
2990 # Setup a source with many dependencies, because some compilers
2991 # like to wrap large dependency lists on column 80 (with \), and
2992 # we should not choose a depcomp mode which is confused by this.
2993 #
2994 # We need to recreate these files for each test, as the compiler may
2995 # overwrite some of them when testing with obscure command lines.
2996 # This happens at least with the AIX C compiler.
2997 : > sub/conftest.c
2998 for i in 1 2 3 4 5 6; do
2999 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3000 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3001 # Solaris 8's {/usr,}/bin/sh.
3002 touch sub/conftst$i.h
3003 done
3004 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3005
3006 case $depmode in
3007 nosideeffect)
3008 # after this tag, mechanisms are not by side-effect, so they'll
3009 # only be used when explicitly requested
3010 if test "x$enable_dependency_tracking" = xyes; then
3011 continue
3012 else
3013 break
3014 fi
3015 ;;
3016 none) break ;;
3017 esac
3018 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3019 # mode. It turns out that the SunPro C++ compiler does not properly
3020 # handle `-M -o', and we need to detect this.
3021 if depmode=$depmode \
3022 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3023 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3024 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3025 >/dev/null 2>conftest.err &&
3026 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3027 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3028 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3029 # icc doesn't choke on unknown options, it will just issue warnings
3030 # or remarks (even with -Werror). So we grep stderr for any message
3031 # that says an option was ignored or not supported.
3032 # When given -MP, icc 7.0 and 7.1 complain thusly:
3033 # icc: Command line warning: ignoring option '-M'; no argument required
3034 # The diagnosis changed in icc 8.0:
3035 # icc: Command line remark: option '-MP' not supported
3036 if (grep 'ignoring option' conftest.err ||
3037 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3038 am_cv_CC_dependencies_compiler_type=$depmode
3039 break
3040 fi
3041 fi
3042 done
3043
3044 cd ..
3045 rm -rf conftest.dir
3046else
3047 am_cv_CC_dependencies_compiler_type=none
3048fi
3049
252b5132 3050fi
f5385ebf
AM
3051echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3052echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3053CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3054
f5385ebf
AM
3055
3056
3057if
3058 test "x$enable_dependency_tracking" != xno \
3059 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3060 am__fastdepCC_TRUE=
3061 am__fastdepCC_FALSE='#'
252b5132 3062else
f5385ebf
AM
3063 am__fastdepCC_TRUE='#'
3064 am__fastdepCC_FALSE=
252b5132
RH
3065fi
3066
6be7c12c 3067
e43d48cc 3068
f5385ebf 3069
5464f5a1
NN
3070if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3072set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3073echo "$as_me:$LINENO: checking for $ac_word" >&5
3074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075if test "${ac_cv_prog_AR+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3077else
3078 if test -n "$AR"; then
3079 ac_cv_prog_AR="$AR" # Let the user override the test.
3080else
5464f5a1
NN
3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082for as_dir in $PATH
3083do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_AR="${ac_tool_prefix}ar"
3089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092done
3093done
3094
252b5132
RH
3095fi
3096fi
5464f5a1 3097AR=$ac_cv_prog_AR
252b5132 3098if test -n "$AR"; then
5464f5a1
NN
3099 echo "$as_me:$LINENO: result: $AR" >&5
3100echo "${ECHO_T}$AR" >&6
252b5132 3101else
5464f5a1
NN
3102 echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
3104fi
3105
252b5132 3106fi
5464f5a1
NN
3107if test -z "$ac_cv_prog_AR"; then
3108 ac_ct_AR=$AR
3109 # Extract the first word of "ar", so it can be a program name with args.
3110set dummy ar; ac_word=$2
3111echo "$as_me:$LINENO: checking for $ac_word" >&5
3112echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3113if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115else
3116 if test -n "$ac_ct_AR"; then
3117 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3118else
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_ac_ct_AR="ar"
3127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130done
3131done
252b5132 3132
5464f5a1
NN
3133fi
3134fi
3135ac_ct_AR=$ac_cv_prog_ac_ct_AR
3136if test -n "$ac_ct_AR"; then
3137 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3138echo "${ECHO_T}$ac_ct_AR" >&6
3139else
3140 echo "$as_me:$LINENO: result: no" >&5
3141echo "${ECHO_T}no" >&6
3142fi
252b5132 3143
5464f5a1
NN
3144 AR=$ac_ct_AR
3145else
3146 AR="$ac_cv_prog_AR"
3147fi
6be7c12c 3148
5464f5a1
NN
3149if test -n "$ac_tool_prefix"; then
3150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3151set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3152echo "$as_me:$LINENO: checking for $ac_word" >&5
3153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154if test "${ac_cv_prog_RANLIB+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3156else
3157 if test -n "$RANLIB"; then
3158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3159else
5464f5a1
NN
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3170 fi
3171done
3172done
3173
252b5132
RH
3174fi
3175fi
5464f5a1 3176RANLIB=$ac_cv_prog_RANLIB
252b5132 3177if test -n "$RANLIB"; then
5464f5a1
NN
3178 echo "$as_me:$LINENO: result: $RANLIB" >&5
3179echo "${ECHO_T}$RANLIB" >&6
252b5132 3180else
5464f5a1
NN
3181 echo "$as_me:$LINENO: result: no" >&5
3182echo "${ECHO_T}no" >&6
252b5132
RH
3183fi
3184
5464f5a1 3185fi
252b5132 3186if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3187 ac_ct_RANLIB=$RANLIB
252b5132
RH
3188 # Extract the first word of "ranlib", so it can be a program name with args.
3189set dummy ranlib; ac_word=$2
5464f5a1
NN
3190echo "$as_me:$LINENO: checking for $ac_word" >&5
3191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3192if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3194else
5464f5a1
NN
3195 if test -n "$ac_ct_RANLIB"; then
3196 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3197else
5464f5a1
NN
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 ac_cv_prog_ac_ct_RANLIB="ranlib"
3206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209done
3210done
3211
3212 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3213fi
3214fi
5464f5a1
NN
3215ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3216if test -n "$ac_ct_RANLIB"; then
3217 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3218echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3219else
5464f5a1
NN
3220 echo "$as_me:$LINENO: result: no" >&5
3221echo "${ECHO_T}no" >&6
252b5132
RH
3222fi
3223
5464f5a1 3224 RANLIB=$ac_ct_RANLIB
252b5132 3225else
5464f5a1 3226 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3227fi
3228
252b5132
RH
3229
3230# Check whether --enable-shared or --disable-shared was given.
3231if test "${enable_shared+set}" = set; then
3232 enableval="$enable_shared"
3233 p=${PACKAGE-default}
55c80943 3234case $enableval in
252b5132
RH
3235yes) enable_shared=yes ;;
3236no) enable_shared=no ;;
3237*)
3238 enable_shared=no
3239 # Look at the argument we got. We use all the common list separators.
3240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3241 for pkg in $enableval; do
3242 if test "X$pkg" = "X$p"; then
3243 enable_shared=yes
3244 fi
3245 done
3246 IFS="$ac_save_ifs"
3247 ;;
3248esac
3249else
3250 enable_shared=no
5464f5a1 3251fi;
252b5132
RH
3252
3253# Check whether --enable-static or --disable-static was given.
3254if test "${enable_static+set}" = set; then
3255 enableval="$enable_static"
3256 p=${PACKAGE-default}
55c80943 3257case $enableval in
252b5132
RH
3258yes) enable_static=yes ;;
3259no) enable_static=no ;;
3260*)
3261 enable_static=no
3262 # Look at the argument we got. We use all the common list separators.
3263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3264 for pkg in $enableval; do
3265 if test "X$pkg" = "X$p"; then
3266 enable_static=yes
3267 fi
3268 done
3269 IFS="$ac_save_ifs"
3270 ;;
3271esac
3272else
3273 enable_static=yes
5464f5a1 3274fi;
b2ef150d
ILT
3275# Check whether --enable-fast-install or --disable-fast-install was given.
3276if test "${enable_fast_install+set}" = set; then
3277 enableval="$enable_fast_install"
3278 p=${PACKAGE-default}
55c80943 3279case $enableval in
b2ef150d
ILT
3280yes) enable_fast_install=yes ;;
3281no) enable_fast_install=no ;;
3282*)
3283 enable_fast_install=no
3284 # Look at the argument we got. We use all the common list separators.
3285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3286 for pkg in $enableval; do
3287 if test "X$pkg" = "X$p"; then
3288 enable_fast_install=yes
3289 fi
3290 done
3291 IFS="$ac_save_ifs"
3292 ;;
3293esac
3294else
3295 enable_fast_install=yes
5464f5a1 3296fi;
c5d1701e 3297
252b5132
RH
3298# Check whether --with-gnu-ld or --without-gnu-ld was given.
3299if test "${with_gnu_ld+set}" = set; then
3300 withval="$with_gnu_ld"
3301 test "$withval" = no || with_gnu_ld=yes
3302else
3303 with_gnu_ld=no
5464f5a1 3304fi;
252b5132 3305ac_prog=ld
55c80943 3306if test "$GCC" = yes; then
252b5132 3307 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
3308 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3309echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3310 case $host in
3311 *-*-mingw*)
3312 # gcc leaves a trailing carriage return which upsets mingw
3313 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3314 *)
3315 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3316 esac
55c80943 3317 case $ac_prog in
b2ef150d 3318 # Accept absolute paths.
a74801ba 3319 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
3320 re_direlt='/[^/][^/]*/\.\./'
3321 # Canonicalize the path of ld
3322 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3323 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3324 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3325 done
3326 test -z "$LD" && LD="$ac_prog"
3327 ;;
252b5132
RH
3328 "")
3329 # If it fails, then pretend we aren't using GCC.
3330 ac_prog=ld
3331 ;;
3332 *)
3333 # If it is relative, then search for the first ld in PATH.
3334 with_gnu_ld=unknown
3335 ;;
3336 esac
3337elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
3338 echo "$as_me:$LINENO: checking for GNU ld" >&5
3339echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3340else
5464f5a1
NN
3341 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3342echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3343fi
5464f5a1
NN
3344if test "${lt_cv_path_LD+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3346else
3347 if test -z "$LD"; then
a74801ba 3348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3349 for ac_dir in $PATH; do
3350 test -z "$ac_dir" && ac_dir=.
a74801ba 3351 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 3352 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3353 # Check to see if the program is GNU ld. I'd rather use --version,
3354 # but apparently some GNU ld's only accept -v.
3355 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 3356 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3357 test "$with_gnu_ld" != no && break
3358 else
b2ef150d 3359 test "$with_gnu_ld" != yes && break
252b5132
RH
3360 fi
3361 fi
3362 done
3363 IFS="$ac_save_ifs"
3364else
55c80943 3365 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3366fi
3367fi
3368
55c80943 3369LD="$lt_cv_path_LD"
252b5132 3370if test -n "$LD"; then
5464f5a1
NN
3371 echo "$as_me:$LINENO: result: $LD" >&5
3372echo "${ECHO_T}$LD" >&6
252b5132 3373else
5464f5a1
NN
3374 echo "$as_me:$LINENO: result: no" >&5
3375echo "${ECHO_T}no" >&6
252b5132 3376fi
5464f5a1
NN
3377test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3378echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3379 { (exit 1); exit 1; }; }
3380echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3381echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3382if test "${lt_cv_prog_gnu_ld+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3384else
3385 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3386if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3387 lt_cv_prog_gnu_ld=yes
252b5132 3388else
55c80943 3389 lt_cv_prog_gnu_ld=no
252b5132
RH
3390fi
3391fi
5464f5a1
NN
3392echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3393echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3394with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3395
6be7c12c 3396
5464f5a1
NN
3397echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3398echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3399if test "${lt_cv_ld_reload_flag+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3401else
3402 lt_cv_ld_reload_flag='-r'
3403fi
5464f5a1
NN
3404echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3405echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3406reload_flag=$lt_cv_ld_reload_flag
3407test -n "$reload_flag" && reload_flag=" $reload_flag"
3408
5464f5a1
NN
3409echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3410echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3411if test "${lt_cv_path_NM+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3413else
3414 if test -n "$NM"; then
3415 # Let the user override the test.
55c80943 3416 lt_cv_path_NM="$NM"
252b5132 3417else
a74801ba 3418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3419 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3420 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3421 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3422 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3423 # Check to see if the nm accepts a BSD-compat flag.
3424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3425 # nm: unknown option "B" ignored
90f2472a
AO
3426 # Tru64's nm complains that /dev/null is an invalid object file
3427 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3428 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3429 break
ac48eca1 3430 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3431 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3432 break
252b5132 3433 else
55c80943 3434 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3435 continue # so that we can try to find one that supports BSD flags
252b5132 3436 fi
252b5132
RH
3437 fi
3438 done
3439 IFS="$ac_save_ifs"
55c80943 3440 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3441fi
3442fi
3443
55c80943 3444NM="$lt_cv_path_NM"
5464f5a1
NN
3445echo "$as_me:$LINENO: result: $NM" >&5
3446echo "${ECHO_T}$NM" >&6
252b5132 3447
5464f5a1
NN
3448echo "$as_me:$LINENO: checking whether ln -s works" >&5
3449echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3450LN_S=$as_ln_s
3451if test "$LN_S" = "ln -s"; then
3452 echo "$as_me:$LINENO: result: yes" >&5
3453echo "${ECHO_T}yes" >&6
6be7c12c 3454else
5464f5a1
NN
3455 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3456echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3457fi
3458
5464f5a1
NN
3459echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3460echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3461if test "${lt_cv_deplibs_check_method+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3463else
d64552c5 3464 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3465lt_cv_file_magic_test_file=
3466lt_cv_deplibs_check_method='unknown'
3467# Need to set the preceding variable on all platforms that support
3468# interlibrary dependencies.
3469# 'none' -- dependencies not supported.
3470# `unknown' -- same as none, but documents that we really don't know.
3471# 'pass_all' -- all dependencies passed with no checks.
3472# 'test_compile' -- check by making test program.
3473# 'file_magic [regex]' -- check by looking for files in library path
3474# which responds to the $file_magic_cmd with a given egrep regex.
3475# If you have `file' or equivalent on your system and you're not sure
3476# whether `pass_all' will *always* work, you probably want this one.
3477
55c80943
NC
3478case $host_os in
3479aix*)
ac48eca1
AO
3480 lt_cv_deplibs_check_method=pass_all
3481 ;;
3482
3483beos*)
3484 lt_cv_deplibs_check_method=pass_all
3485 ;;
3486
3487bsdi4*)
55c80943
NC
3488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3489 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3490 lt_cv_file_magic_test_file=/shlib/libc.so
3491 ;;
3492
d64552c5 3493cygwin* | mingw* |pw32*)
ac48eca1 3494 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3495 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3496 ;;
3497
55c80943
NC
3498darwin* | rhapsody*)
3499 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3500 lt_cv_file_magic_cmd='/usr/bin/file -L'
3501 case "$host_os" in
3502 rhapsody* | darwin1.012)
3503 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3504 ;;
3505 *) # Darwin 1.3 on
3506 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3507 ;;
3508 esac
55c80943
NC
3509 ;;
3510
5464f5a1 3511freebsd* | kfreebsd*-gnu)
ac48eca1 3512 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3513 case $host_cpu in
ac48eca1 3514 i*86 )
90f2472a
AO
3515 # Not sure whether the presence of OpenBSD here was a mistake.
3516 # Let's accept both of them until this is cleared up.
55c80943
NC
3517 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3518 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3519 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3520 ;;
3521 esac
3522 else
3523 lt_cv_deplibs_check_method=pass_all
3524 fi
3525 ;;
3526
3527gnu*)
3528 lt_cv_deplibs_check_method=pass_all
3529 ;;
3530
55c80943 3531hpux10.20*|hpux11*)
4867be41
DJ
3532 case $host_cpu in
3533 hppa*)
3534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3535 lt_cv_file_magic_cmd=/usr/bin/file
3536 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3537 ;;
3538 ia64*)
3539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3540 lt_cv_file_magic_cmd=/usr/bin/file
3541 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3542 ;;
3543 esac
ac48eca1
AO
3544 ;;
3545
3546irix5* | irix6*)
55c80943 3547 case $host_os in
ac48eca1
AO
3548 irix5*)
3549 # this will be overridden with pass_all, but let us keep it just in case
3550 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3551 ;;
3552 *)
55c80943 3553 case $LD in
ac48eca1
AO
3554 *-32|*"-32 ") libmagic=32-bit;;
3555 *-n32|*"-n32 ") libmagic=N32;;
3556 *-64|*"-64 ") libmagic=64-bit;;
3557 *) libmagic=never-match;;
3558 esac
3559 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3560 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3561 ;;
ac48eca1
AO
3562 esac
3563 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3564 lt_cv_deplibs_check_method=pass_all
3565 ;;
3566
3567# This must be Linux ELF.
90f2472a 3568linux-gnu*)
55c80943 3569 case $host_cpu in
c5d1701e 3570 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3571 lt_cv_deplibs_check_method=pass_all ;;
3572 *)
3573 # glibc up to 2.1.1 does not perform some relocations on ARM
55c80943
NC
3574 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3575 esac
ac48eca1
AO
3576 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3577 ;;
3578
5464f5a1 3579netbsd* | knetbsd*-gnu)
55c80943 3580 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3581 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3582 else
b3baf5d0 3583 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3584 fi
55c80943
NC
3585 ;;
3586
3587newsos6)
3588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3589 lt_cv_file_magic_cmd=/usr/bin/file
3590 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3591 ;;
3592
3593osf3* | osf4* | osf5*)
3594 # this will be overridden with pass_all, but let us keep it just in case
3595 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3596 lt_cv_file_magic_test_file=/shlib/libc.so
3597 lt_cv_deplibs_check_method=pass_all
3598 ;;
3599
3600sco3.2v5*)
3601 lt_cv_deplibs_check_method=pass_all
3602 ;;
3603
3604solaris*)
3605 lt_cv_deplibs_check_method=pass_all
3606 lt_cv_file_magic_test_file=/lib/libc.so
3607 ;;
3608
6be7c12c
AO
3609sysv5uw[78]* | sysv4*uw2*)
3610 lt_cv_deplibs_check_method=pass_all
3611 ;;
3612
ac48eca1 3613sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3614 case $host_vendor in
ac48eca1
AO
3615 ncr)
3616 lt_cv_deplibs_check_method=pass_all
3617 ;;
3618 motorola)
55c80943
NC
3619 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]'
3620 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3621 ;;
3622 esac
3623 ;;
3624esac
3625
3626fi
5464f5a1
NN
3627echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3628echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3629file_magic_cmd=$lt_cv_file_magic_cmd
3630deplibs_check_method=$lt_cv_deplibs_check_method
3631
6be7c12c
AO
3632
3633
6be7c12c
AO
3634
3635# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3636
3637# Only perform the check for file, if the check method requires it
3638case $deplibs_check_method in
3639file_magic*)
3640 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3641 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3642echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3643if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3645else
3646 case $MAGIC_CMD in
3647 /*)
3648 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3649 ;;
3650 ?:/*)
3651 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3652 ;;
3653 *)
d64552c5 3654 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3656 ac_dummy="/usr/bin:$PATH"
3657 for ac_dir in $ac_dummy; do
3658 test -z "$ac_dir" && ac_dir=.
3659 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3660 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3661 if test -n "$file_magic_test_file"; then
55c80943 3662 case $deplibs_check_method in
ac48eca1
AO
3663 "file_magic "*)
3664 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3665 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3666 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3667 egrep "$file_magic_regex" > /dev/null; then
3668 :
3669 else
3670 cat <<EOF 1>&2
3671
3672*** Warning: the command libtool uses to detect shared libraries,
3673*** $file_magic_cmd, produces output that libtool cannot recognize.
3674*** The result is that libtool may fail to recognize shared libraries
3675*** as such. This will affect the creation of libtool libraries that
3676*** depend on shared libraries, but programs linked with such libtool
3677*** libraries will work regardless of this problem. Nevertheless, you
3678*** may want to report the problem to your system manager and/or to
3679*** bug-libtool@gnu.org
3680
3681EOF
3682 fi ;;
3683 esac
3684 fi
3685 break
3686 fi
3687 done
3688 IFS="$ac_save_ifs"
d64552c5 3689 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3690 ;;
3691esac
3692fi
3693
d64552c5
AO
3694MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3695if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3696 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3697echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3698else
5464f5a1
NN
3699 echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
ac48eca1
AO
3701fi
3702
d64552c5 3703if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3704 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3705 echo "$as_me:$LINENO: checking for file" >&5
3706echo $ECHO_N "checking for file... $ECHO_C" >&6
3707if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3709else
55c80943 3710 case $MAGIC_CMD in
ac48eca1 3711 /*)
d64552c5 3712 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3713 ;;
3714 ?:/*)
d64552c5 3715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3716 ;;
3717 *)
d64552c5 3718 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3720 ac_dummy="/usr/bin:$PATH"
3721 for ac_dir in $ac_dummy; do
3722 test -z "$ac_dir" && ac_dir=.
3723 if test -f $ac_dir/file; then
d64552c5 3724 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3725 if test -n "$file_magic_test_file"; then
55c80943 3726 case $deplibs_check_method in
ac48eca1
AO
3727 "file_magic "*)
3728 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3731 egrep "$file_magic_regex" > /dev/null; then
3732 :
3733 else
3734 cat <<EOF 1>&2
3735
3736*** Warning: the command libtool uses to detect shared libraries,
3737*** $file_magic_cmd, produces output that libtool cannot recognize.
3738*** The result is that libtool may fail to recognize shared libraries
3739*** as such. This will affect the creation of libtool libraries that
3740*** depend on shared libraries, but programs linked with such libtool
3741*** libraries will work regardless of this problem. Nevertheless, you
3742*** may want to report the problem to your system manager and/or to
3743*** bug-libtool@gnu.org
3744
3745EOF
3746 fi ;;
3747 esac
3748 fi
3749 break
3750 fi
3751 done
3752 IFS="$ac_save_ifs"
d64552c5 3753 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3754 ;;
3755esac
3756fi
3757
d64552c5
AO
3758MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3759if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3760 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3761echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3762else
5464f5a1
NN
3763 echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
ac48eca1
AO
3765fi
3766
3767 else
d64552c5 3768 MAGIC_CMD=:
ac48eca1
AO
3769 fi
3770fi
3771
3772 fi
3773 ;;
3774esac
3775
5464f5a1
NN
3776if test -n "$ac_tool_prefix"; then
3777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3778set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3779echo "$as_me:$LINENO: checking for $ac_word" >&5
3780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3781if test "${ac_cv_prog_RANLIB+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3783else
3784 if test -n "$RANLIB"; then
3785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3786else
5464f5a1
NN
3787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788for as_dir in $PATH
3789do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798done
3799done
3800
ac48eca1
AO
3801fi
3802fi
5464f5a1 3803RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3804if test -n "$RANLIB"; then
5464f5a1
NN
3805 echo "$as_me:$LINENO: result: $RANLIB" >&5
3806echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3807else
5464f5a1
NN
3808 echo "$as_me:$LINENO: result: no" >&5
3809echo "${ECHO_T}no" >&6
ac48eca1
AO
3810fi
3811
5464f5a1 3812fi
ac48eca1 3813if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3814 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3815 # Extract the first word of "ranlib", so it can be a program name with args.
3816set dummy ranlib; ac_word=$2
5464f5a1
NN
3817echo "$as_me:$LINENO: checking for $ac_word" >&5
3818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3819if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3821else
5464f5a1
NN
3822 if test -n "$ac_ct_RANLIB"; then
3823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3824else
5464f5a1
NN
3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826for as_dir in $PATH
3827do
3828 IFS=$as_save_IFS
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3832 ac_cv_prog_ac_ct_RANLIB="ranlib"
3833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3834 break 2
3835 fi
3836done
3837done
3838
3839 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3840fi
3841fi
5464f5a1
NN
3842ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3843if test -n "$ac_ct_RANLIB"; then
3844 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3845echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3846else
5464f5a1
NN
3847 echo "$as_me:$LINENO: result: no" >&5
3848echo "${ECHO_T}no" >&6
ac48eca1
AO
3849fi
3850
5464f5a1 3851 RANLIB=$ac_ct_RANLIB
ac48eca1 3852else
5464f5a1 3853 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3854fi
3855
5464f5a1
NN
3856if test -n "$ac_tool_prefix"; then
3857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3858set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3859echo "$as_me:$LINENO: checking for $ac_word" >&5
3860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3861if test "${ac_cv_prog_STRIP+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3863else
3864 if test -n "$STRIP"; then
3865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3866else
5464f5a1
NN
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3877 fi
3878done
3879done
3880
ac48eca1
AO
3881fi
3882fi
5464f5a1 3883STRIP=$ac_cv_prog_STRIP
ac48eca1 3884if test -n "$STRIP"; then
5464f5a1
NN
3885 echo "$as_me:$LINENO: result: $STRIP" >&5
3886echo "${ECHO_T}$STRIP" >&6
ac48eca1 3887else
5464f5a1
NN
3888 echo "$as_me:$LINENO: result: no" >&5
3889echo "${ECHO_T}no" >&6
ac48eca1
AO
3890fi
3891
5464f5a1 3892fi
ac48eca1 3893if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3894 ac_ct_STRIP=$STRIP
ac48eca1
AO
3895 # Extract the first word of "strip", so it can be a program name with args.
3896set dummy strip; ac_word=$2
5464f5a1
NN
3897echo "$as_me:$LINENO: checking for $ac_word" >&5
3898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3899if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3901else
5464f5a1
NN
3902 if test -n "$ac_ct_STRIP"; then
3903 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3904else
5464f5a1
NN
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_ac_ct_STRIP="strip"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916done
3917done
3918
3919 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3920fi
3921fi
5464f5a1
NN
3922ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3923if test -n "$ac_ct_STRIP"; then
3924 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3925echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3926else
5464f5a1
NN
3927 echo "$as_me:$LINENO: result: no" >&5
3928echo "${ECHO_T}no" >&6
ac48eca1
AO
3929fi
3930
5464f5a1 3931 STRIP=$ac_ct_STRIP
ac48eca1 3932else
5464f5a1 3933 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3934fi
252b5132 3935
6be7c12c 3936
252b5132 3937# Check for any special flags to pass to ltconfig.
b2ef150d 3938libtool_flags="--cache-file=$cache_file"
252b5132
RH
3939test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3940test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 3941test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
3942test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3943test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3944
6be7c12c 3945
a74801ba
ILT
3946# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3947if test "${enable_libtool_lock+set}" = set; then
3948 enableval="$enable_libtool_lock"
a74801ba 3949
5464f5a1 3950fi;
a74801ba
ILT
3951test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3952test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3953
5464f5a1 3954
ac48eca1
AO
3955# Check whether --with-pic or --without-pic was given.
3956if test "${with_pic+set}" = set; then
3957 withval="$with_pic"
3958 pic_mode="$withval"
3959else
5464f5a1
NN
3960 pic_mode=default
3961fi;
ac48eca1
AO
3962test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3963test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3964
252b5132
RH
3965# Some flags need to be propagated to the compiler or linker for good
3966# libtool support.
55c80943 3967case $host in
252b5132
RH
3968*-*-irix6*)
3969 # Find out which ABI we are using.
eac338cf 3970 echo '#line 3970 "configure"' > conftest.$ac_ext
5464f5a1
NN
3971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972 (eval $ac_compile) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); }; then
6a457e5c
NC
3976 if test "$lt_cv_prog_gnu_ld" = yes; then
3977 case `/usr/bin/file conftest.$ac_objext` in
3978 *32-bit*)
3979 LD="${LD-ld} -melf32bsmip"
3980 ;;
3981 *N32*)
3982 LD="${LD-ld} -melf32bmipn32"
3983 ;;
3984 *64-bit*)
3985 LD="${LD-ld} -melf64bmip"
3986 ;;
3987 esac
3988 else
55c80943 3989 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3990 *32-bit*)
3991 LD="${LD-ld} -32"
3992 ;;
3993 *N32*)
3994 LD="${LD-ld} -n32"
3995 ;;
3996 *64-bit*)
3997 LD="${LD-ld} -64"
3998 ;;
3999 esac
6a457e5c 4000 fi
252b5132
RH
4001 fi
4002 rm -rf conftest*
4003 ;;
4004
4867be41
DJ
4005ia64-*-hpux*)
4006 # Find out which ABI we are using.
4007 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009 (eval $ac_compile) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }; then
4867be41
DJ
4013 case "`/usr/bin/file conftest.o`" in
4014 *ELF-32*)
4015 HPUX_IA64_MODE="32"
4016 ;;
4017 *ELF-64*)
4018 HPUX_IA64_MODE="64"
4019 ;;
4020 esac
4021 fi
4022 rm -rf conftest*
4023 ;;
4024
252b5132
RH
4025*-*-sco3.2v5*)
4026 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4027 SAVE_CFLAGS="$CFLAGS"
252b5132 4028 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4029 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4030echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4031if test "${lt_cv_cc_needs_belf+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4033else
5464f5a1
NN
4034
4035
ac48eca1 4036 ac_ext=c
ac48eca1 4037ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4041
5464f5a1
NN
4042 cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
b2ef150d 4048
5464f5a1
NN
4049int
4050main ()
4051{
b2ef150d 4052
5464f5a1
NN
4053 ;
4054 return 0;
4055}
4056_ACEOF
4057rm -f conftest.$ac_objext conftest$ac_exeext
4058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4059 (eval $ac_link) 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } &&
eac338cf 4066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 (eval $ac_try) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try='test -s conftest$ac_exeext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
b2ef150d
ILT
4078 lt_cv_cc_needs_belf=yes
4079else
5464f5a1
NN
4080 echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083lt_cv_cc_needs_belf=no
b2ef150d 4084fi
5464f5a1
NN
4085rm -f conftest.err conftest.$ac_objext \
4086 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4087 ac_ext=c
ac48eca1 4088ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4092
b2ef150d 4093fi
5464f5a1
NN
4094echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4095echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4096 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4097 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4098 CFLAGS="$SAVE_CFLAGS"
4099 fi
252b5132
RH
4100 ;;
4101
6be7c12c 4102
252b5132
RH
4103esac
4104
6be7c12c 4105
b2ef150d 4106# Save cache, so that ltconfig can load it
5464f5a1 4107cat >confcache <<\_ACEOF
b2ef150d
ILT
4108# This file is a shell script that caches the results of configure
4109# tests run on this system so they can be shared between configure
5464f5a1
NN
4110# scripts and configure runs, see configure's option --config-cache.
4111# It is not useful on other systems. If it contains results you don't
4112# want to keep, you may remove or edit it.
b2ef150d 4113#
5464f5a1
NN
4114# config.status only pays attention to the cache file if you give it
4115# the --recheck option to rerun configure.
b2ef150d 4116#
5464f5a1
NN
4117# `ac_cv_env_foo' variables (set or unset) will be overridden when
4118# loading this file, other *unset* `ac_cv_foo' will be assigned the
4119# following values.
4120
4121_ACEOF
4122
b2ef150d
ILT
4123# The following way of writing the cache mishandles newlines in values,
4124# but we know of no workaround that is simple, portable, and efficient.
4125# So, don't put newlines in cache variables' values.
4126# Ultrix sh set writes to stderr and can't be redirected directly,
4127# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4128{
4129 (set) 2>&1 |
4130 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4131 *ac_space=\ *)
4132 # `set' does not quote correctly, so add quotes (double-quote
4133 # substitution turns \\\\ into \\, and sed turns \\ into \).
4134 sed -n \
4135 "s/'/'\\\\''/g;
4136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4137 ;;
4138 *)
4139 # `set' quotes correctly as required by POSIX, so do not add quotes.
4140 sed -n \
4141 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4142 ;;
4143 esac;
4144} |
4145 sed '
4146 t clear
4147 : clear
4148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4149 t end
4150 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4151 : end' >>confcache
4152if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4153 if test -w $cache_file; then
5464f5a1
NN
4154 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4155 cat confcache >$cache_file
b2ef150d
ILT
4156 else
4157 echo "not updating unwritable cache $cache_file"
4158 fi
4159fi
4160rm -f confcache
4161
252b5132 4162# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4163AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4164MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4165LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4166AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4167objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4168deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4169${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4170$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4171|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4172echo "$as_me: error: libtool configure failed" >&2;}
4173 { (exit 1); exit 1; }; }
252b5132 4174
b2ef150d
ILT
4175# Reload cache, that may have been modified by ltconfig
4176if test -r "$cache_file"; then
5464f5a1
NN
4177 # Some versions of bash will fail to source /dev/null (special
4178 # files actually), so we avoid doing that.
4179 if test -f "$cache_file"; then
4180 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4181echo "$as_me: loading cache $cache_file" >&6;}
4182 case $cache_file in
4183 [\\/]* | ?:[\\/]* ) . $cache_file;;
4184 *) . ./$cache_file;;
4185 esac
4186 fi
b2ef150d 4187else
5464f5a1
NN
4188 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4189echo "$as_me: creating cache $cache_file" >&6;}
4190 >$cache_file
b2ef150d
ILT
4191fi
4192
6be7c12c 4193
b2ef150d 4194# This can be used to rebuild libtool when needed
ac48eca1 4195LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4196
4197# Always use our own libtool.
4198LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4199
252b5132
RH
4200# Redirect the config.log output again, so that the ltconfig log is not
4201# clobbered by the next message.
4202exec 5>>./config.log
4203
6be7c12c 4204
5464f5a1
NN
4205
4206
4207
4208
6be7c12c 4209
252b5132
RH
4210# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4211if test "${enable_64_bit_bfd+set}" = set; then
4212 enableval="$enable_64_bit_bfd"
4213 case "${enableval}" in
4214 yes) want64=true ;;
4215 no) want64=false ;;
5464f5a1
NN
4216 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4217echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4218 { (exit 1); exit 1; }; } ;;
252b5132
RH
4219esac
4220else
4221 want64=false
5464f5a1 4222fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4223if test "${enable_targets+set}" = set; then
4224 enableval="$enable_targets"
4225 case "${enableval}" in
5464f5a1
NN
4226 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4227echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4228 { (exit 1); exit 1; }; }
252b5132
RH
4229 ;;
4230 no) enable_targets= ;;
4231 *) enable_targets=$enableval ;;
4232esac
5464f5a1 4233fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4234if test "${enable_commonbfdlib+set}" = set; then
4235 enableval="$enable_commonbfdlib"
4236 case "${enableval}" in
4237 yes) commonbfdlib=true ;;
4238 no) commonbfdlib=false ;;
5464f5a1
NN
4239 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4240echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4241 { (exit 1); exit 1; }; } ;;
252b5132 4242esac
5464f5a1 4243fi;
252b5132
RH
4244# Check whether --with-mmap or --without-mmap was given.
4245if test "${with_mmap+set}" = set; then
4246 withval="$with_mmap"
4247 case "${withval}" in
4248 yes) want_mmap=true ;;
4249 no) want_mmap=false ;;
5464f5a1
NN
4250 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4251echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4252 { (exit 1); exit 1; }; } ;;
252b5132
RH
4253esac
4254else
4255 want_mmap=false
5464f5a1 4256fi;
9e9b66a9
AM
4257
4258WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4259
569acd2c
NC
4260# Check whether --enable-werror or --disable-werror was given.
4261if test "${enable_werror+set}" = set; then
4262 enableval="$enable_werror"
1ad12f97
NC
4263 case "${enableval}" in
4264 yes | y) ERROR_ON_WARNING="yes" ;;
4265 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4266 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4267echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4268 { (exit 1); exit 1; }; } ;;
4269 esac
4270fi;
4271
9e9b66a9
AM
4272# Enable -Werror by default when using gcc
4273if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4274 ERROR_ON_WARNING=yes
4275fi
4276
4277NO_WERROR=
4278if test "${ERROR_ON_WARNING}" = yes ; then
4279 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4280 NO_WERROR="-Wno-error"
1ad12f97
NC
4281fi
4282
a2d91340
AC
4283# Check whether --enable-build-warnings or --disable-build-warnings was given.
4284if test "${enable_build_warnings+set}" = set; then
4285 enableval="$enable_build_warnings"
4286 case "${enableval}" in
4287 yes) ;;
9e9b66a9 4288 no) WARN_CFLAGS="-w";;
a2d91340 4289 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9 4290 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
a2d91340 4291 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9
AM
4292 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4293 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4294esac
9e9b66a9
AM
4295fi;
4296
4297if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4298 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4299fi
4300
4301
9e9b66a9
AM
4302
4303
4304
5464f5a1 4305 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4306
252b5132
RH
4307
4308if test -z "$target" ; then
5464f5a1
NN
4309 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4310echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4311 { (exit 1); exit 1; }; }
252b5132 4312fi
252b5132 4313
5464f5a1
NN
4314echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4315echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4316 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4317if test "${enable_maintainer_mode+set}" = set; then
4318 enableval="$enable_maintainer_mode"
4319 USE_MAINTAINER_MODE=$enableval
4320else
4321 USE_MAINTAINER_MODE=no
5464f5a1
NN
4322fi;
4323 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4324echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4325
252b5132
RH
4326
4327if test $USE_MAINTAINER_MODE = yes; then
4328 MAINTAINER_MODE_TRUE=
4329 MAINTAINER_MODE_FALSE='#'
4330else
4331 MAINTAINER_MODE_TRUE='#'
4332 MAINTAINER_MODE_FALSE=
4333fi
f5385ebf 4334
252b5132 4335 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4336
5464f5a1 4337
24443139
AS
4338 case ${build_alias} in
4339 "") build_noncanonical=${build} ;;
4340 *) build_noncanonical=${build_alias} ;;
4341esac
4342
4343 case ${host_alias} in
4344 "") host_noncanonical=${build_noncanonical} ;;
4345 *) host_noncanonical=${host_alias} ;;
4346esac
4347
4348 case ${target_alias} in
4349 "") target_noncanonical=${host_noncanonical} ;;
4350 *) target_noncanonical=${target_alias} ;;
4351esac
4352
5464f5a1
NN
4353echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4354echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4355 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4356if test "${enable_install_libbfd+set}" = set; then
4357 enableval="$enable_install_libbfd"
4358 install_libbfd_p=$enableval
4359else
66e25bab 4360 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4361 install_libbfd_p=yes
4362 else
4363 install_libbfd_p=no
4364 fi
5464f5a1
NN
4365fi;
4366 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4367echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4368
a703a6ea
AM
4369
4370if test $install_libbfd_p = yes; then
4371 INSTALL_LIBBFD_TRUE=
4372 INSTALL_LIBBFD_FALSE='#'
4373else
4374 INSTALL_LIBBFD_TRUE='#'
4375 INSTALL_LIBBFD_FALSE=
4376fi
f5385ebf 4377
5464f5a1 4378 # Need _noncanonical variables for this.
24443139
AS
4379
4380
4381
4382
a703a6ea
AM
4383 # libbfd.a is a host library containing target dependent code
4384 bfdlibdir='$(libdir)'
4385 bfdincludedir='$(includedir)'
4386 if test "${host}" != "${target}"; then
5464f5a1
NN
4387 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4388 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4389 fi
a703a6ea
AM
4390
4391
252b5132
RH
4392
4393
5464f5a1
NN
4394
4395
4396host64=false
4397target64=false
4398bfd_default_target_size=32
4399
4400# host stuff:
4401
4402ac_ext=c
4403ac_cpp='$CPP $CPPFLAGS'
4404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407if test -n "$ac_tool_prefix"; then
4408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4409set dummy ${ac_tool_prefix}gcc; ac_word=$2
4410echo "$as_me:$LINENO: checking for $ac_word" >&5
4411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412if test "${ac_cv_prog_CC+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4414else
5464f5a1
NN
4415 if test -n "$CC"; then
4416 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4417else
5464f5a1
NN
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
6be7c12c 4428 fi
5464f5a1
NN
4429done
4430done
4431
252b5132 4432fi
b3baf5d0 4433fi
5464f5a1
NN
4434CC=$ac_cv_prog_CC
4435if test -n "$CC"; then
4436 echo "$as_me:$LINENO: result: $CC" >&5
4437echo "${ECHO_T}$CC" >&6
4438else
4439 echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6
4441fi
252b5132 4442
5464f5a1
NN
4443fi
4444if test -z "$ac_cv_prog_CC"; then
4445 ac_ct_CC=$CC
4446 # Extract the first word of "gcc", so it can be a program name with args.
4447set dummy gcc; ac_word=$2
4448echo "$as_me:$LINENO: checking for $ac_word" >&5
4449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4450if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4452else
4453 if test -n "$ac_ct_CC"; then
4454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4455else
4456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH
4458do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_prog_ac_ct_CC="gcc"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
4467done
4468done
252b5132 4469
5464f5a1
NN
4470fi
4471fi
4472ac_ct_CC=$ac_cv_prog_ac_ct_CC
4473if test -n "$ac_ct_CC"; then
4474 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4475echo "${ECHO_T}$ac_ct_CC" >&6
4476else
4477 echo "$as_me:$LINENO: result: no" >&5
4478echo "${ECHO_T}no" >&6
4479fi
252b5132 4480
5464f5a1
NN
4481 CC=$ac_ct_CC
4482else
4483 CC="$ac_cv_prog_CC"
4484fi
252b5132 4485
5464f5a1
NN
4486if test -z "$CC"; then
4487 if test -n "$ac_tool_prefix"; then
4488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4489set dummy ${ac_tool_prefix}cc; ac_word=$2
4490echo "$as_me:$LINENO: checking for $ac_word" >&5
4491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4492if test "${ac_cv_prog_CC+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495 if test -n "$CC"; then
4496 ac_cv_prog_CC="$CC" # Let the user override the test.
4497else
4498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_CC="${ac_tool_prefix}cc"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509done
4510done
6be7c12c 4511
5464f5a1
NN
4512fi
4513fi
4514CC=$ac_cv_prog_CC
4515if test -n "$CC"; then
4516 echo "$as_me:$LINENO: result: $CC" >&5
4517echo "${ECHO_T}$CC" >&6
4518else
4519 echo "$as_me:$LINENO: result: no" >&5
4520echo "${ECHO_T}no" >&6
4521fi
4522
4523fi
4524if test -z "$ac_cv_prog_CC"; then
4525 ac_ct_CC=$CC
4526 # Extract the first word of "cc", so it can be a program name with args.
4527set dummy cc; ac_word=$2
4528echo "$as_me:$LINENO: checking for $ac_word" >&5
4529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532else
4533 if test -n "$ac_ct_CC"; then
4534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_ac_ct_CC="cc"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547done
4548done
4549
4550fi
4551fi
4552ac_ct_CC=$ac_cv_prog_ac_ct_CC
4553if test -n "$ac_ct_CC"; then
4554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4555echo "${ECHO_T}$ac_ct_CC" >&6
4556else
4557 echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6
4559fi
4560
4561 CC=$ac_ct_CC
4562else
4563 CC="$ac_cv_prog_CC"
4564fi
4565
4566fi
4567if test -z "$CC"; then
4568 # Extract the first word of "cc", so it can be a program name with args.
4569set dummy cc; ac_word=$2
4570echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4572if test "${ac_cv_prog_CC+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4574else
4575 if test -n "$CC"; then
4576 ac_cv_prog_CC="$CC" # Let the user override the test.
4577else
5464f5a1
NN
4578 ac_prog_rejected=no
4579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580for as_dir in $PATH
4581do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4587 ac_prog_rejected=yes
4588 continue
4589 fi
4590 ac_cv_prog_CC="cc"
4591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4593 fi
4594done
4595done
4596
4597if test $ac_prog_rejected = yes; then
4598 # We found a bogon in the path, so make sure we never use it.
4599 set dummy $ac_cv_prog_CC
4600 shift
4601 if test $# != 0; then
4602 # We chose a different compiler from the bogus one.
4603 # However, it has the same basename, so the bogon will be chosen
4604 # first if we set CC to just the basename; use the full file name.
4605 shift
4606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4607 fi
4608fi
4609fi
4610fi
4611CC=$ac_cv_prog_CC
4612if test -n "$CC"; then
4613 echo "$as_me:$LINENO: result: $CC" >&5
4614echo "${ECHO_T}$CC" >&6
4615else
4616 echo "$as_me:$LINENO: result: no" >&5
4617echo "${ECHO_T}no" >&6
4618fi
4619
4620fi
4621if test -z "$CC"; then
4622 if test -n "$ac_tool_prefix"; then
4623 for ac_prog in cl
4624 do
4625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4627echo "$as_me:$LINENO: checking for $ac_word" >&5
4628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629if test "${ac_cv_prog_CC+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC="$CC" # Let the user override the test.
4634else
4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646done
4647done
4648
4649fi
4650fi
4651CC=$ac_cv_prog_CC
4652if test -n "$CC"; then
4653 echo "$as_me:$LINENO: result: $CC" >&5
4654echo "${ECHO_T}$CC" >&6
4655else
4656 echo "$as_me:$LINENO: result: no" >&5
4657echo "${ECHO_T}no" >&6
4658fi
4659
4660 test -n "$CC" && break
6be7c12c 4661 done
252b5132 4662fi
5464f5a1
NN
4663if test -z "$CC"; then
4664 ac_ct_CC=$CC
4665 for ac_prog in cl
4666do
4667 # Extract the first word of "$ac_prog", so it can be a program name with args.
4668set dummy $ac_prog; ac_word=$2
4669echo "$as_me:$LINENO: checking for $ac_word" >&5
4670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4671if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673else
4674 if test -n "$ac_ct_CC"; then
4675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4676else
4677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in $PATH
4679do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4684 ac_cv_prog_ac_ct_CC="$ac_prog"
4685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4687 fi
4688done
4689done
4690
4691fi
4692fi
4693ac_ct_CC=$ac_cv_prog_ac_ct_CC
4694if test -n "$ac_ct_CC"; then
4695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4696echo "${ECHO_T}$ac_ct_CC" >&6
4697else
4698 echo "$as_me:$LINENO: result: no" >&5
4699echo "${ECHO_T}no" >&6
4700fi
4701
4702 test -n "$ac_ct_CC" && break
4703done
4704
4705 CC=$ac_ct_CC
4706fi
4707
4708fi
4709
4710
4711test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4712See \`config.log' for more details." >&5
4713echo "$as_me: error: no acceptable C compiler found in \$PATH
4714See \`config.log' for more details." >&2;}
4715 { (exit 1); exit 1; }; }
4716
4717# Provide some information about the compiler.
4718echo "$as_me:$LINENO:" \
4719 "checking for C compiler version" >&5
4720ac_compiler=`set X $ac_compile; echo $2`
4721{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4722 (eval $ac_compiler --version </dev/null >&5) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }
4726{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4727 (eval $ac_compiler -v </dev/null >&5) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }
4731{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4732 (eval $ac_compiler -V </dev/null >&5) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }
4736
4737echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4738echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4739if test "${ac_cv_c_compiler_gnu+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741else
4742 cat >conftest.$ac_ext <<_ACEOF
4743/* confdefs.h. */
4744_ACEOF
4745cat confdefs.h >>conftest.$ac_ext
4746cat >>conftest.$ac_ext <<_ACEOF
4747/* end confdefs.h. */
4748
4749int
4750main ()
4751{
4752#ifndef __GNUC__
4753 choke me
4754#endif
4755
4756 ;
4757 return 0;
4758}
4759_ACEOF
4760rm -f conftest.$ac_objext
4761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4762 (eval $ac_compile) 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } &&
eac338cf 4769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; } &&
4775 { ac_try='test -s conftest.$ac_objext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 (eval $ac_try) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 ac_compiler_gnu=yes
4782else
4783 echo "$as_me: failed program was:" >&5
4784sed 's/^/| /' conftest.$ac_ext >&5
4785
4786ac_compiler_gnu=no
4787fi
4788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4789ac_cv_c_compiler_gnu=$ac_compiler_gnu
4790
4791fi
4792echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4793echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4794GCC=`test $ac_compiler_gnu = yes && echo yes`
4795ac_test_CFLAGS=${CFLAGS+set}
4796ac_save_CFLAGS=$CFLAGS
4797CFLAGS="-g"
4798echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4799echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4800if test "${ac_cv_prog_cc_g+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4802else
4803 cat >conftest.$ac_ext <<_ACEOF
4804/* confdefs.h. */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h. */
4809
4810int
4811main ()
4812{
4813
4814 ;
4815 return 0;
4816}
4817_ACEOF
4818rm -f conftest.$ac_objext
4819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820 (eval $ac_compile) 2>conftest.er1
4821 ac_status=$?
4822 grep -v '^ *+' conftest.er1 >conftest.err
4823 rm -f conftest.er1
4824 cat conftest.err >&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } &&
eac338cf 4827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 (eval $ac_try) 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; } &&
4833 { ac_try='test -s conftest.$ac_objext'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4835 (eval $ac_try) 2>&5
4836 ac_status=$?
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4839 ac_cv_prog_cc_g=yes
4840else
4841 echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844ac_cv_prog_cc_g=no
4845fi
4846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4847fi
4848echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4849echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4850if test "$ac_test_CFLAGS" = set; then
4851 CFLAGS=$ac_save_CFLAGS
4852elif test $ac_cv_prog_cc_g = yes; then
4853 if test "$GCC" = yes; then
4854 CFLAGS="-g -O2"
4855 else
4856 CFLAGS="-g"
4857 fi
4858else
4859 if test "$GCC" = yes; then
4860 CFLAGS="-O2"
4861 else
4862 CFLAGS=
4863 fi
4864fi
4865echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4866echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4867if test "${ac_cv_prog_cc_stdc+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869else
4870 ac_cv_prog_cc_stdc=no
4871ac_save_CC=$CC
4872cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h. */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h. */
4878#include <stdarg.h>
4879#include <stdio.h>
4880#include <sys/types.h>
4881#include <sys/stat.h>
4882/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4883struct buf { int x; };
4884FILE * (*rcsopen) (struct buf *, struct stat *, int);
4885static char *e (p, i)
4886 char **p;
4887 int i;
4888{
4889 return p[i];
4890}
4891static char *f (char * (*g) (char **, int), char **p, ...)
4892{
4893 char *s;
4894 va_list v;
4895 va_start (v,p);
4896 s = g (p, va_arg (v,int));
4897 va_end (v);
4898 return s;
4899}
4900
4901/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4902 function prototypes and stuff, but not '\xHH' hex character constants.
4903 These don't provoke an error unfortunately, instead are silently treated
4904 as 'x'. The following induces an error, until -std1 is added to get
4905 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4906 array size at least. It's necessary to write '\x00'==0 to get something
4907 that's true only with -std1. */
4908int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4909
4910int test (int i, double x);
4911struct s1 {int (*f) (int a);};
4912struct s2 {int (*f) (double a);};
4913int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4914int argc;
4915char **argv;
4916int
4917main ()
4918{
4919return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4920 ;
4921 return 0;
4922}
4923_ACEOF
4924# Don't try gcc -ansi; that turns off useful extensions and
4925# breaks some systems' header files.
4926# AIX -qlanglvl=ansi
4927# Ultrix and OSF/1 -std1
4928# HP-UX 10.20 and later -Ae
4929# HP-UX older versions -Aa -D_HPUX_SOURCE
4930# SVR4 -Xc -D__EXTENSIONS__
4931for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4932do
4933 CC="$ac_save_CC $ac_arg"
4934 rm -f conftest.$ac_objext
4935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
eac338cf 4943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 ac_cv_prog_cc_stdc=$ac_arg
4956break
4957else
4958 echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961fi
4962rm -f conftest.err conftest.$ac_objext
4963done
4964rm -f conftest.$ac_ext conftest.$ac_objext
4965CC=$ac_save_CC
4966
4967fi
4968
4969case "x$ac_cv_prog_cc_stdc" in
4970 x|xno)
4971 echo "$as_me:$LINENO: result: none needed" >&5
4972echo "${ECHO_T}none needed" >&6 ;;
4973 *)
4974 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4975echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4976 CC="$CC $ac_cv_prog_cc_stdc" ;;
4977esac
4978
4979# Some people use a C++ compiler to compile C. Since we use `exit',
4980# in C++ we need to declare it. In case someone uses the same compiler
4981# for both compiling C and C++ we need to have the C++ compiler decide
4982# the declaration of exit, since it's the most demanding environment.
4983cat >conftest.$ac_ext <<_ACEOF
4984#ifndef __cplusplus
4985 choke me
4986#endif
4987_ACEOF
4988rm -f conftest.$ac_objext
4989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
eac338cf 4997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 (eval $ac_try) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; } &&
5003 { ac_try='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 (eval $ac_try) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 for ac_declaration in \
5010 '' \
5011 'extern "C" void std::exit (int) throw (); using std::exit;' \
5012 'extern "C" void std::exit (int); using std::exit;' \
5013 'extern "C" void exit (int) throw ();' \
5014 'extern "C" void exit (int);' \
5015 'void exit (int);'
5016do
5017 cat >conftest.$ac_ext <<_ACEOF
5018/* confdefs.h. */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h. */
5023$ac_declaration
5024#include <stdlib.h>
5025int
5026main ()
5027{
5028exit (42);
5029 ;
5030 return 0;
5031}
5032_ACEOF
5033rm -f conftest.$ac_objext
5034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5035 (eval $ac_compile) 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
eac338cf 5042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 (eval $ac_try) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 :
5055else
5056 echo "$as_me: failed program was:" >&5
5057sed 's/^/| /' conftest.$ac_ext >&5
5058
5059continue
5060fi
5061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5062 cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068$ac_declaration
5069int
5070main ()
5071{
5072exit (42);
5073 ;
5074 return 0;
5075}
5076_ACEOF
5077rm -f conftest.$ac_objext
5078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
eac338cf 5086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 (eval $ac_try) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 (eval $ac_try) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5098 break
5099else
5100 echo "$as_me: failed program was:" >&5
5101sed 's/^/| /' conftest.$ac_ext >&5
5102
5103fi
5104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5105done
5106rm -f conftest*
5107if test -n "$ac_declaration"; then
5108 echo '#ifdef __cplusplus' >>confdefs.h
5109 echo $ac_declaration >>confdefs.h
5110 echo '#endif' >>confdefs.h
252b5132 5111fi
5464f5a1 5112
b3baf5d0 5113else
5464f5a1
NN
5114 echo "$as_me: failed program was:" >&5
5115sed 's/^/| /' conftest.$ac_ext >&5
5116
b3baf5d0 5117fi
5464f5a1
NN
5118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5119ac_ext=c
5120ac_cpp='$CPP $CPPFLAGS'
5121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5124
5464f5a1 5125
4a2a2686
HPN
5126cat >>confdefs.h <<\_ACEOF
5127#define _GNU_SOURCE 1
5128_ACEOF
5129
5130
5131
429cc0ae 5132ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw"
5464f5a1
NN
5133if test -n "$ac_tool_prefix"; then
5134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5135set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5136echo "$as_me:$LINENO: checking for $ac_word" >&5
5137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5138if test "${ac_cv_prog_RANLIB+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5140else
5464f5a1
NN
5141 if test -n "$RANLIB"; then
5142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 5143else
5464f5a1
NN
5144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
252b5132 5154 fi
5464f5a1
NN
5155done
5156done
5157
252b5132
RH
5158fi
5159fi
5464f5a1
NN
5160RANLIB=$ac_cv_prog_RANLIB
5161if test -n "$RANLIB"; then
5162 echo "$as_me:$LINENO: result: $RANLIB" >&5
5163echo "${ECHO_T}$RANLIB" >&6
252b5132 5164else
5464f5a1
NN
5165 echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6
252b5132
RH
5167fi
5168
5464f5a1
NN
5169fi
5170if test -z "$ac_cv_prog_RANLIB"; then
5171 ac_ct_RANLIB=$RANLIB
5172 # Extract the first word of "ranlib", so it can be a program name with args.
5173set dummy ranlib; ac_word=$2
5174echo "$as_me:$LINENO: checking for $ac_word" >&5
5175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5176if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5178else
5464f5a1
NN
5179 if test -n "$ac_ct_RANLIB"; then
5180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 5181else
5464f5a1
NN
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_ac_ct_RANLIB="ranlib"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193done
5194done
5195
5196 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
5197fi
5198fi
5464f5a1
NN
5199ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5200if test -n "$ac_ct_RANLIB"; then
5201 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5202echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 5203else
5464f5a1
NN
5204 echo "$as_me:$LINENO: result: no" >&5
5205echo "${ECHO_T}no" >&6
b3baf5d0 5206fi
252b5132 5207
5464f5a1 5208 RANLIB=$ac_ct_RANLIB
6be7c12c 5209else
5464f5a1 5210 RANLIB="$ac_cv_prog_RANLIB"
252b5132 5211fi
5464f5a1 5212
6be7c12c 5213ac_ext=c
6be7c12c 5214ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
5215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217ac_compiler_gnu=$ac_cv_c_compiler_gnu
5218echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5219echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5220# On Suns, sometimes $CPP names a directory.
5221if test -n "$CPP" && test -d "$CPP"; then
5222 CPP=
6be7c12c 5223fi
5464f5a1
NN
5224if test -z "$CPP"; then
5225 if test "${ac_cv_prog_CPP+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5227else
5464f5a1
NN
5228 # Double quotes because CPP needs to be expanded
5229 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5230 do
5231 ac_preproc_ok=false
5232for ac_c_preproc_warn_flag in '' yes
5233do
5234 # Use a header file that comes with gcc, so configuring glibc
5235 # with a fresh cross-compiler works.
5236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5237 # <limits.h> exists even on freestanding compilers.
5238 # On the NeXT, cc -E runs the code through the compiler's parser,
5239 # not just through cpp. "Syntax error" is here to catch this case.
5240 cat >conftest.$ac_ext <<_ACEOF
5241/* confdefs.h. */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h. */
5246#ifdef __STDC__
5247# include <limits.h>
5248#else
5249# include <assert.h>
252b5132 5250#endif
5464f5a1
NN
5251 Syntax error
5252_ACEOF
5253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } >/dev/null; then
5261 if test -s conftest.err; then
5262 ac_cpp_err=$ac_c_preproc_warn_flag
5263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5264 else
5265 ac_cpp_err=
5266 fi
6be7c12c 5267else
5464f5a1 5268 ac_cpp_err=yes
6be7c12c 5269fi
5464f5a1
NN
5270if test -z "$ac_cpp_err"; then
5271 :
6be7c12c 5272else
5464f5a1
NN
5273 echo "$as_me: failed program was:" >&5
5274sed 's/^/| /' conftest.$ac_ext >&5
5275
5276 # Broken: fails on valid input.
5277continue
5278fi
5279rm -f conftest.err conftest.$ac_ext
5280
5281 # OK, works on sane cases. Now check whether non-existent headers
5282 # can be detected and how.
5283 cat >conftest.$ac_ext <<_ACEOF
5284/* confdefs.h. */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h. */
5289#include <ac_nonexistent.h>
5290_ACEOF
5291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } >/dev/null; then
5299 if test -s conftest.err; then
5300 ac_cpp_err=$ac_c_preproc_warn_flag
5301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5302 else
5303 ac_cpp_err=
5304 fi
252b5132 5305else
5464f5a1 5306 ac_cpp_err=yes
252b5132 5307fi
5464f5a1
NN
5308if test -z "$ac_cpp_err"; then
5309 # Broken: success on invalid input.
5310continue
5311else
5312 echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
6be7c12c 5314
5464f5a1
NN
5315 # Passes both tests.
5316ac_preproc_ok=:
5317break
252b5132 5318fi
5464f5a1 5319rm -f conftest.err conftest.$ac_ext
6be7c12c 5320
5464f5a1
NN
5321done
5322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5323rm -f conftest.err conftest.$ac_ext
5324if $ac_preproc_ok; then
5325 break
252b5132
RH
5326fi
5327
5464f5a1
NN
5328 done
5329 ac_cv_prog_CPP=$CPP
252b5132 5330
252b5132 5331fi
5464f5a1 5332 CPP=$ac_cv_prog_CPP
6be7c12c 5333else
5464f5a1
NN
5334 ac_cv_prog_CPP=$CPP
5335fi
5336echo "$as_me:$LINENO: result: $CPP" >&5
5337echo "${ECHO_T}$CPP" >&6
5338ac_preproc_ok=false
5339for ac_c_preproc_warn_flag in '' yes
5340do
5341 # Use a header file that comes with gcc, so configuring glibc
5342 # with a fresh cross-compiler works.
5343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344 # <limits.h> exists even on freestanding compilers.
6be7c12c 5345 # On the NeXT, cc -E runs the code through the compiler's parser,
5464f5a1
NN
5346 # not just through cpp. "Syntax error" is here to catch this case.
5347 cat >conftest.$ac_ext <<_ACEOF
5348/* confdefs.h. */
5349_ACEOF
5350cat confdefs.h >>conftest.$ac_ext
5351cat >>conftest.$ac_ext <<_ACEOF
5352/* end confdefs.h. */
5353#ifdef __STDC__
5354# include <limits.h>
5355#else
5356# include <assert.h>
5357#endif
5358 Syntax error
5359_ACEOF
5360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev/null; then
5368 if test -s conftest.err; then
5369 ac_cpp_err=$ac_c_preproc_warn_flag
5370 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5371 else
5372 ac_cpp_err=
5373 fi
252b5132 5374else
5464f5a1
NN
5375 ac_cpp_err=yes
5376fi
5377if test -z "$ac_cpp_err"; then
6be7c12c 5378 :
252b5132 5379else
5464f5a1
NN
5380 echo "$as_me: failed program was:" >&5
5381sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 # Broken: fails on valid input.
5384continue
5385fi
5386rm -f conftest.err conftest.$ac_ext
5387
5388 # OK, works on sane cases. Now check whether non-existent headers
5389 # can be detected and how.
5390 cat >conftest.$ac_ext <<_ACEOF
5391/* confdefs.h. */
5392_ACEOF
5393cat confdefs.h >>conftest.$ac_ext
5394cat >>conftest.$ac_ext <<_ACEOF
5395/* end confdefs.h. */
5396#include <ac_nonexistent.h>
5397_ACEOF
5398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5400 ac_status=$?
5401 grep -v '^ *+' conftest.er1 >conftest.err
5402 rm -f conftest.er1
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } >/dev/null; then
5406 if test -s conftest.err; then
5407 ac_cpp_err=$ac_c_preproc_warn_flag
5408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5409 else
5410 ac_cpp_err=
5411 fi
b3baf5d0 5412else
5464f5a1 5413 ac_cpp_err=yes
6be7c12c 5414fi
5464f5a1
NN
5415if test -z "$ac_cpp_err"; then
5416 # Broken: success on invalid input.
5417continue
ac48eca1 5418else
5464f5a1
NN
5419 echo "$as_me: failed program was:" >&5
5420sed 's/^/| /' conftest.$ac_ext >&5
5421
5422 # Passes both tests.
5423ac_preproc_ok=:
5424break
b3baf5d0 5425fi
5464f5a1 5426rm -f conftest.err conftest.$ac_ext
6be7c12c 5427
5464f5a1
NN
5428done
5429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5430rm -f conftest.err conftest.$ac_ext
5431if $ac_preproc_ok; then
5432 :
6be7c12c 5433else
5464f5a1
NN
5434 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5435See \`config.log' for more details." >&5
5436echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5437See \`config.log' for more details." >&2;}
5438 { (exit 1); exit 1; }; }
ac48eca1 5439fi
5464f5a1
NN
5440
5441ac_ext=c
5442ac_cpp='$CPP $CPPFLAGS'
5443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446
5447
5448echo "$as_me:$LINENO: checking for egrep" >&5
5449echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5450if test "${ac_cv_prog_egrep+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5452else
5464f5a1
NN
5453 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5454 then ac_cv_prog_egrep='grep -E'
5455 else ac_cv_prog_egrep='egrep'
5456 fi
b3baf5d0 5457fi
5464f5a1
NN
5458echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5459echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5460 EGREP=$ac_cv_prog_egrep
5461
ac48eca1 5462
5464f5a1
NN
5463echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5464echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5465if test "${ac_cv_header_stdc+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5467else
5464f5a1
NN
5468 cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h. */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h. */
252b5132
RH
5474#include <stdlib.h>
5475#include <stdarg.h>
5476#include <string.h>
5477#include <float.h>
5464f5a1
NN
5478
5479int
5480main ()
5481{
5482
5483 ;
5484 return 0;
5485}
5486_ACEOF
5487rm -f conftest.$ac_objext
5488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489 (eval $ac_compile) 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } &&
eac338cf 5496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; } &&
5502 { ac_try='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504 (eval $ac_try) 2>&5
5505 ac_status=$?
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
252b5132
RH
5508 ac_cv_header_stdc=yes
5509else
5464f5a1
NN
5510 echo "$as_me: failed program was:" >&5
5511sed 's/^/| /' conftest.$ac_ext >&5
5512
5513ac_cv_header_stdc=no
252b5132 5514fi
5464f5a1 5515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5516
5517if test $ac_cv_header_stdc = yes; then
5518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464f5a1
NN
5519 cat >conftest.$ac_ext <<_ACEOF
5520/* confdefs.h. */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h. */
252b5132 5525#include <string.h>
5464f5a1
NN
5526
5527_ACEOF
252b5132 5528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5529 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5530 :
5531else
252b5132
RH
5532 ac_cv_header_stdc=no
5533fi
5534rm -f conftest*
5535
5536fi
5537
5538if test $ac_cv_header_stdc = yes; then
5539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464f5a1
NN
5540 cat >conftest.$ac_ext <<_ACEOF
5541/* confdefs.h. */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
5545/* end confdefs.h. */
252b5132 5546#include <stdlib.h>
5464f5a1
NN
5547
5548_ACEOF
252b5132 5549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5550 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5551 :
5552else
252b5132
RH
5553 ac_cv_header_stdc=no
5554fi
5555rm -f conftest*
5556
5557fi
5558
5559if test $ac_cv_header_stdc = yes; then
5560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464f5a1 5561 if test "$cross_compiling" = yes; then
252b5132
RH
5562 :
5563else
5464f5a1
NN
5564 cat >conftest.$ac_ext <<_ACEOF
5565/* confdefs.h. */
5566_ACEOF
5567cat confdefs.h >>conftest.$ac_ext
5568cat >>conftest.$ac_ext <<_ACEOF
5569/* end confdefs.h. */
252b5132 5570#include <ctype.h>
5464f5a1
NN
5571#if ((' ' & 0x0FF) == 0x020)
5572# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5573# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5574#else
5575# define ISLOWER(c) \
5576 (('a' <= (c) && (c) <= 'i') \
5577 || ('j' <= (c) && (c) <= 'r') \
5578 || ('s' <= (c) && (c) <= 'z'))
5579# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5580#endif
6be7c12c 5581
5464f5a1
NN
5582#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5583int
5584main ()
5585{
5586 int i;
5587 for (i = 0; i < 256; i++)
5588 if (XOR (islower (i), ISLOWER (i))
5589 || toupper (i) != TOUPPER (i))
5590 exit(2);
5591 exit (0);
5592}
5593_ACEOF
5594rm -f conftest$ac_exeext
5595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5596 (eval $ac_link) 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
252b5132
RH
5605 :
5606else
5464f5a1
NN
5607 echo "$as_me: program exited with status $ac_status" >&5
5608echo "$as_me: failed program was:" >&5
5609sed 's/^/| /' conftest.$ac_ext >&5
5610
5611( exit $ac_status )
5612ac_cv_header_stdc=no
252b5132 5613fi
5464f5a1 5614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5615fi
252b5132
RH
5616fi
5617fi
5464f5a1
NN
5618echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5619echo "${ECHO_T}$ac_cv_header_stdc" >&6
6be7c12c 5620if test $ac_cv_header_stdc = yes; then
5464f5a1
NN
5621
5622cat >>confdefs.h <<\_ACEOF
252b5132 5623#define STDC_HEADERS 1
5464f5a1 5624_ACEOF
252b5132
RH
5625
5626fi
5627
5464f5a1
NN
5628echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5629echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5630if test "${ac_cv_c_const+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5632else
5464f5a1
NN
5633 cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h. */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h. */
6be7c12c 5639
5464f5a1
NN
5640int
5641main ()
5642{
5643/* FIXME: Include the comments suggested by Paul. */
5644#ifndef __cplusplus
5645 /* Ultrix mips cc rejects this. */
5646 typedef int charset[2];
5647 const charset x;
5648 /* SunOS 4.1.1 cc rejects this. */
5649 char const *const *ccp;
5650 char **p;
5651 /* NEC SVR4.0.2 mips cc rejects this. */
5652 struct point {int x, y;};
5653 static struct point const zero = {0,0};
5654 /* AIX XL C 1.02.0.0 rejects this.
5655 It does not let you subtract one const X* pointer from another in
5656 an arm of an if-expression whose if-part is not a constant
5657 expression */
5658 const char *g = "string";
5659 ccp = &g + (g ? g-g : 0);
5660 /* HPUX 7.0 cc rejects these. */
5661 ++ccp;
5662 p = (char**) ccp;
5663 ccp = (char const *const *) p;
5664 { /* SCO 3.2v4 cc rejects this. */
5665 char *t;
5666 char const *s = 0 ? (char *) 0 : (char const *) 0;
5667
5668 *t++ = 0;
5669 }
5670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5671 int x[] = {25, 17};
5672 const int *foo = &x[0];
5673 ++foo;
5674 }
5675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5676 typedef const int *iptr;
5677 iptr p = 0;
5678 ++p;
5679 }
5680 { /* AIX XL C 1.02.0.0 rejects this saying
5681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5682 struct s { int j; const int *ap[3]; };
5683 struct s *b; b->j = 5;
5684 }
5685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5686 const int foo = 10;
5687 }
5688#endif
6be7c12c 5689
5464f5a1
NN
5690 ;
5691 return 0;
5692}
5693_ACEOF
5694rm -f conftest.$ac_objext
5695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>conftest.er1
5697 ac_status=$?
5698 grep -v '^ *+' conftest.er1 >conftest.err
5699 rm -f conftest.er1
5700 cat conftest.err >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
eac338cf 5703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 (eval $ac_try) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
252b5132
RH
5715 ac_cv_c_const=yes
5716else
5464f5a1
NN
5717 echo "$as_me: failed program was:" >&5
5718sed 's/^/| /' conftest.$ac_ext >&5
5719
5720ac_cv_c_const=no
252b5132 5721fi
5464f5a1 5722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5723fi
5464f5a1
NN
5724echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5725echo "${ECHO_T}$ac_cv_c_const" >&6
6be7c12c 5726if test $ac_cv_c_const = no; then
5464f5a1
NN
5727
5728cat >>confdefs.h <<\_ACEOF
5729#define const
5730_ACEOF
252b5132
RH
5731
5732fi
5733
5464f5a1
NN
5734echo "$as_me:$LINENO: checking for inline" >&5
5735echo $ECHO_N "checking for inline... $ECHO_C" >&6
5736if test "${ac_cv_c_inline+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5738else
5739 ac_cv_c_inline=no
5740for ac_kw in inline __inline__ __inline; do
5464f5a1
NN
5741 cat >conftest.$ac_ext <<_ACEOF
5742/* confdefs.h. */
5743_ACEOF
5744cat confdefs.h >>conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h. */
5747#ifndef __cplusplus
5748typedef int foo_t;
5749static $ac_kw foo_t static_foo () {return 0; }
5750$ac_kw foo_t foo () {return 0; }
5751#endif
252b5132 5752
5464f5a1
NN
5753_ACEOF
5754rm -f conftest.$ac_objext
5755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756 (eval $ac_compile) 2>conftest.er1
5757 ac_status=$?
5758 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
eac338cf 5763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
252b5132
RH
5775 ac_cv_c_inline=$ac_kw; break
5776else
5464f5a1
NN
5777 echo "$as_me: failed program was:" >&5
5778sed 's/^/| /' conftest.$ac_ext >&5
5779
252b5132 5780fi
5464f5a1 5781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5782done
5783
5464f5a1
NN
5784fi
5785echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5786echo "${ECHO_T}$ac_cv_c_inline" >&6
5787
5788
5789case $ac_cv_c_inline in
5790 inline | yes) ;;
5791 *)
5792 case $ac_cv_c_inline in
5793 no) ac_val=;;
5794 *) ac_val=$ac_cv_c_inline;;
5795 esac
5796 cat >>confdefs.h <<_ACEOF
5797#ifndef __cplusplus
5798#define inline $ac_val
5799#endif
5800_ACEOF
5801 ;;
5802esac
5803
5804# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5815 inttypes.h stdint.h unistd.h
5816do
5817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5818echo "$as_me:$LINENO: checking for $ac_header" >&5
5819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5820if eval "test \"\${$as_ac_Header+set}\" = set"; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822else
5823 cat >conftest.$ac_ext <<_ACEOF
5824/* confdefs.h. */
5825_ACEOF
5826cat confdefs.h >>conftest.$ac_ext
5827cat >>conftest.$ac_ext <<_ACEOF
5828/* end confdefs.h. */
5829$ac_includes_default
5830
5831#include <$ac_header>
5832_ACEOF
5833rm -f conftest.$ac_objext
5834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } &&
eac338cf 5842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest.$ac_objext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 eval "$as_ac_Header=yes"
5855else
5856 echo "$as_me: failed program was:" >&5
5857sed 's/^/| /' conftest.$ac_ext >&5
5858
5859eval "$as_ac_Header=no"
5860fi
5861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5862fi
5863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5865if test `eval echo '${'$as_ac_Header'}'` = yes; then
5866 cat >>confdefs.h <<_ACEOF
5867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5868_ACEOF
5869
252b5132 5870fi
6be7c12c 5871
5464f5a1 5872done
252b5132 5873
5464f5a1
NN
5874
5875echo "$as_me:$LINENO: checking for off_t" >&5
5876echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5877if test "${ac_cv_type_off_t+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 5879else
5464f5a1
NN
5880 cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h. */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h. */
5886$ac_includes_default
5887int
5888main ()
5889{
5890if ((off_t *) 0)
5891 return 0;
5892if (sizeof (off_t))
5893 return 0;
5894 ;
5895 return 0;
5896}
5897_ACEOF
5898rm -f conftest.$ac_objext
5899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900 (eval $ac_compile) 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
eac338cf 5907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 (eval $ac_try) 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try='test -s conftest.$ac_objext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
653f71ca 5919 ac_cv_type_off_t=yes
252b5132 5920else
5464f5a1
NN
5921 echo "$as_me: failed program was:" >&5
5922sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5923
5464f5a1 5924ac_cv_type_off_t=no
6be7c12c 5925fi
5464f5a1
NN
5926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5927fi
5928echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5929echo "${ECHO_T}$ac_cv_type_off_t" >&6
5930if test $ac_cv_type_off_t = yes; then
5931 :
5932else
5933
5934cat >>confdefs.h <<_ACEOF
252b5132 5935#define off_t long
5464f5a1 5936_ACEOF
252b5132
RH
5937
5938fi
5939
5464f5a1
NN
5940echo "$as_me:$LINENO: checking for size_t" >&5
5941echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5942if test "${ac_cv_type_size_t+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5944else
5464f5a1
NN
5945 cat >conftest.$ac_ext <<_ACEOF
5946/* confdefs.h. */
5947_ACEOF
5948cat confdefs.h >>conftest.$ac_ext
5949cat >>conftest.$ac_ext <<_ACEOF
5950/* end confdefs.h. */
5951$ac_includes_default
5952int
5953main ()
5954{
5955if ((size_t *) 0)
5956 return 0;
5957if (sizeof (size_t))
5958 return 0;
5959 ;
5960 return 0;
5961}
5962_ACEOF
5963rm -f conftest.$ac_objext
5964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>conftest.er1
5966 ac_status=$?
5967 grep -v '^ *+' conftest.er1 >conftest.err
5968 rm -f conftest.er1
5969 cat conftest.err >&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); } &&
eac338cf 5972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
653f71ca 5984 ac_cv_type_size_t=yes
252b5132 5985else
5464f5a1
NN
5986 echo "$as_me: failed program was:" >&5
5987sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5988
5464f5a1 5989ac_cv_type_size_t=no
6be7c12c 5990fi
5464f5a1
NN
5991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5992fi
5993echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5994echo "${ECHO_T}$ac_cv_type_size_t" >&6
5995if test $ac_cv_type_size_t = yes; then
5996 :
5997else
5998
5999cat >>confdefs.h <<_ACEOF
252b5132 6000#define size_t unsigned
5464f5a1 6001_ACEOF
252b5132
RH
6002
6003fi
6004
6005# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6006# for constant arguments. Useless!
5464f5a1
NN
6007echo "$as_me:$LINENO: checking for working alloca.h" >&5
6008echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6009if test "${ac_cv_working_alloca_h+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011else
6012 cat >conftest.$ac_ext <<_ACEOF
6013/* confdefs.h. */
6014_ACEOF
6015cat confdefs.h >>conftest.$ac_ext
6016cat >>conftest.$ac_ext <<_ACEOF
6017/* end confdefs.h. */
252b5132 6018#include <alloca.h>
5464f5a1
NN
6019int
6020main ()
6021{
6022char *p = (char *) alloca (2 * sizeof (int));
6023 ;
6024 return 0;
6025}
6026_ACEOF
6027rm -f conftest.$ac_objext conftest$ac_exeext
6028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6029 (eval $ac_link) 2>conftest.er1
6030 ac_status=$?
6031 grep -v '^ *+' conftest.er1 >conftest.err
6032 rm -f conftest.er1
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
eac338cf 6036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 (eval $ac_try) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; } &&
6042 { ac_try='test -s conftest$ac_exeext'
6043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6044 (eval $ac_try) 2>&5
6045 ac_status=$?
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; }; then
6048 ac_cv_working_alloca_h=yes
6049else
6050 echo "$as_me: failed program was:" >&5
6051sed 's/^/| /' conftest.$ac_ext >&5
6052
6053ac_cv_working_alloca_h=no
6054fi
6055rm -f conftest.err conftest.$ac_objext \
6056 conftest$ac_exeext conftest.$ac_ext
6057fi
6058echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6059echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6060if test $ac_cv_working_alloca_h = yes; then
6061
6062cat >>confdefs.h <<\_ACEOF
252b5132 6063#define HAVE_ALLOCA_H 1
5464f5a1 6064_ACEOF
252b5132
RH
6065
6066fi
6067
5464f5a1
NN
6068echo "$as_me:$LINENO: checking for alloca" >&5
6069echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6070if test "${ac_cv_func_alloca_works+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6072else
5464f5a1
NN
6073 cat >conftest.$ac_ext <<_ACEOF
6074/* confdefs.h. */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h. */
252b5132
RH
6079#ifdef __GNUC__
6080# define alloca __builtin_alloca
6081#else
6082# ifdef _MSC_VER
6083# include <malloc.h>
6084# define alloca _alloca
6085# else
6086# if HAVE_ALLOCA_H
6087# include <alloca.h>
6088# else
6089# ifdef _AIX
6090 #pragma alloca
6091# else
6092# ifndef alloca /* predefined by HP cc +Olibcalls */
6093char *alloca ();
6094# endif
6095# endif
6096# endif
6097# endif
6098#endif
6099
5464f5a1
NN
6100int
6101main ()
6102{
6103char *p = (char *) alloca (1);
6104 ;
6105 return 0;
6106}
6107_ACEOF
6108rm -f conftest.$ac_objext conftest$ac_exeext
6109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } &&
eac338cf 6117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 (eval $ac_try) 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest$ac_exeext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 (eval $ac_try) 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
252b5132
RH
6129 ac_cv_func_alloca_works=yes
6130else
5464f5a1
NN
6131 echo "$as_me: failed program was:" >&5
6132sed 's/^/| /' conftest.$ac_ext >&5
6133
6134ac_cv_func_alloca_works=no
252b5132 6135fi
5464f5a1
NN
6136rm -f conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext
252b5132 6138fi
5464f5a1
NN
6139echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6140echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6141
252b5132 6142if test $ac_cv_func_alloca_works = yes; then
252b5132 6143
5464f5a1
NN
6144cat >>confdefs.h <<\_ACEOF
6145#define HAVE_ALLOCA 1
6146_ACEOF
b3baf5d0 6147
5464f5a1 6148else
6be7c12c 6149 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5464f5a1
NN
6150# that cause trouble. Some versions do not even contain alloca or
6151# contain a buggy version. If you still want to use their alloca,
6152# use ar to extract alloca.o from them instead of compiling alloca.c.
6153
6154ALLOCA=alloca.$ac_objext
6155
6156cat >>confdefs.h <<\_ACEOF
252b5132 6157#define C_ALLOCA 1
5464f5a1 6158_ACEOF
252b5132 6159
6be7c12c 6160
5464f5a1
NN
6161echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6162echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6163if test "${ac_cv_os_cray+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6165else
5464f5a1
NN
6166 cat >conftest.$ac_ext <<_ACEOF
6167/* confdefs.h. */
6168_ACEOF
6169cat confdefs.h >>conftest.$ac_ext
6170cat >>conftest.$ac_ext <<_ACEOF
6171/* end confdefs.h. */
252b5132
RH
6172#if defined(CRAY) && ! defined(CRAY2)
6173webecray
6174#else
6175wenotbecray
6176#endif
6177
5464f5a1 6178_ACEOF
252b5132 6179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 6180 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6181 ac_cv_os_cray=yes
6182else
252b5132
RH
6183 ac_cv_os_cray=no
6184fi
6185rm -f conftest*
6186
6187fi
5464f5a1
NN
6188echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6189echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6190if test $ac_cv_os_cray = yes; then
5464f5a1
NN
6191 for ac_func in _getb67 GETB67 getb67; do
6192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6193echo "$as_me:$LINENO: checking for $ac_func" >&5
6194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6195if eval "test \"\${$as_ac_var+set}\" = set"; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197else
6198 cat >conftest.$ac_ext <<_ACEOF
6199/* confdefs.h. */
6200_ACEOF
6201cat confdefs.h >>conftest.$ac_ext
6202cat >>conftest.$ac_ext <<_ACEOF
6203/* end confdefs.h. */
6204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6206#define $ac_func innocuous_$ac_func
6207
252b5132 6208/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6209 which can conflict with char $ac_func (); below.
6210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6211 <limits.h> exists even on freestanding compilers. */
6212
6213#ifdef __STDC__
6214# include <limits.h>
6215#else
6216# include <assert.h>
6217#endif
6be7c12c 6218
5464f5a1 6219#undef $ac_func
252b5132 6220
5464f5a1
NN
6221/* Override any gcc2 internal prototype to avoid an error. */
6222#ifdef __cplusplus
6223extern "C"
6224{
6225#endif
6226/* We use char because int might match the return type of a gcc2
6227 builtin and then its argument prototype would still apply. */
6228char $ac_func ();
252b5132
RH
6229/* The GNU C library defines this for functions which it implements
6230 to always fail with ENOSYS. Some functions are actually named
6231 something starting with __ and the normal name is an alias. */
6232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6233choke me
6234#else
5464f5a1
NN
6235char (*f) () = $ac_func;
6236#endif
6237#ifdef __cplusplus
6238}
252b5132
RH
6239#endif
6240
5464f5a1
NN
6241int
6242main ()
6243{
6244return f != $ac_func;
6245 ;
6246 return 0;
6247}
6248_ACEOF
6249rm -f conftest.$ac_objext conftest$ac_exeext
6250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
eac338cf 6258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260 (eval $ac_try) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest$ac_exeext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 eval "$as_ac_var=yes"
6271else
6272 echo "$as_me: failed program was:" >&5
6273sed 's/^/| /' conftest.$ac_ext >&5
6274
6275eval "$as_ac_var=no"
6276fi
6277rm -f conftest.err conftest.$ac_objext \
6278 conftest$ac_exeext conftest.$ac_ext
6279fi
6280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6281echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6282if test `eval echo '${'$as_ac_var'}'` = yes; then
6283
6284cat >>confdefs.h <<_ACEOF
252b5132 6285#define CRAY_STACKSEG_END $ac_func
5464f5a1 6286_ACEOF
252b5132 6287
5464f5a1 6288 break
252b5132
RH
6289fi
6290
5464f5a1 6291 done
252b5132
RH
6292fi
6293
5464f5a1
NN
6294echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6295echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6296if test "${ac_cv_c_stack_direction+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6298else
6299 if test "$cross_compiling" = yes; then
6300 ac_cv_c_stack_direction=0
6301else
5464f5a1
NN
6302 cat >conftest.$ac_ext <<_ACEOF
6303/* confdefs.h. */
6304_ACEOF
6305cat confdefs.h >>conftest.$ac_ext
6306cat >>conftest.$ac_ext <<_ACEOF
6307/* end confdefs.h. */
6308int
252b5132
RH
6309find_stack_direction ()
6310{
6311 static char *addr = 0;
6312 auto char dummy;
6313 if (addr == 0)
6314 {
6315 addr = &dummy;
6316 return find_stack_direction ();
6317 }
6318 else
6319 return (&dummy > addr) ? 1 : -1;
6320}
5464f5a1
NN
6321
6322int
252b5132
RH
6323main ()
6324{
5464f5a1 6325 exit (find_stack_direction () < 0);
252b5132 6326}
5464f5a1
NN
6327_ACEOF
6328rm -f conftest$ac_exeext
6329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6330 (eval $ac_link) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
252b5132
RH
6339 ac_cv_c_stack_direction=1
6340else
5464f5a1
NN
6341 echo "$as_me: program exited with status $ac_status" >&5
6342echo "$as_me: failed program was:" >&5
6343sed 's/^/| /' conftest.$ac_ext >&5
6344
6345( exit $ac_status )
6346ac_cv_c_stack_direction=-1
252b5132 6347fi
5464f5a1 6348rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6349fi
252b5132 6350fi
5464f5a1
NN
6351echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6352echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6353
5464f5a1 6354cat >>confdefs.h <<_ACEOF
252b5132 6355#define STACK_DIRECTION $ac_cv_c_stack_direction
5464f5a1
NN
6356_ACEOF
6357
252b5132
RH
6358
6359fi
6360
5464f5a1
NN
6361
6362
6363for ac_header in stdlib.h unistd.h
252b5132 6364do
5464f5a1
NN
6365as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366if eval "test \"\${$as_ac_Header+set}\" = set"; then
6367 echo "$as_me:$LINENO: checking for $ac_header" >&5
6368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6369if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371fi
6372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6374else
6375 # Is the header compilable?
6376echo "$as_me:$LINENO: checking $ac_header usability" >&5
6377echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6378cat >conftest.$ac_ext <<_ACEOF
6379/* confdefs.h. */
6380_ACEOF
6381cat confdefs.h >>conftest.$ac_ext
6382cat >>conftest.$ac_ext <<_ACEOF
6383/* end confdefs.h. */
6384$ac_includes_default
6385#include <$ac_header>
6386_ACEOF
6387rm -f conftest.$ac_objext
6388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>conftest.er1
6390 ac_status=$?
6391 grep -v '^ *+' conftest.er1 >conftest.err
6392 rm -f conftest.er1
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
eac338cf 6396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_header_compiler=yes
6409else
6410 echo "$as_me: failed program was:" >&5
6411sed 's/^/| /' conftest.$ac_ext >&5
6412
6413ac_header_compiler=no
6414fi
6415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6417echo "${ECHO_T}$ac_header_compiler" >&6
6418
6419# Is the header present?
6420echo "$as_me:$LINENO: checking $ac_header presence" >&5
6421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6422cat >conftest.$ac_ext <<_ACEOF
6423/* confdefs.h. */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h. */
6428#include <$ac_header>
6429_ACEOF
6430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } >/dev/null; then
6438 if test -s conftest.err; then
6439 ac_cpp_err=$ac_c_preproc_warn_flag
6440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6441 else
6442 ac_cpp_err=
6443 fi
252b5132 6444else
5464f5a1 6445 ac_cpp_err=yes
252b5132 6446fi
5464f5a1
NN
6447if test -z "$ac_cpp_err"; then
6448 ac_header_preproc=yes
6449else
6450 echo "$as_me: failed program was:" >&5
6451sed 's/^/| /' conftest.$ac_ext >&5
6452
6453 ac_header_preproc=no
252b5132 6454fi
5464f5a1
NN
6455rm -f conftest.err conftest.$ac_ext
6456echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6457echo "${ECHO_T}$ac_header_preproc" >&6
6458
6459# So? What about this header?
6460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6461 yes:no: )
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6463echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6465echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6466 ac_header_preproc=yes
6467 ;;
6468 no:yes:* )
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6474echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6476echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6478echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6480echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6481 (
6482 cat <<\_ASBOX
6483## ------------------------------------------ ##
6484## Report this to the AC_PACKAGE_NAME lists. ##
6485## ------------------------------------------ ##
6486_ASBOX
6487 ) |
6488 sed "s/^/$as_me: WARNING: /" >&2
6489 ;;
6490esac
6491echo "$as_me:$LINENO: checking for $ac_header" >&5
6492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6495else
5464f5a1
NN
6496 eval "$as_ac_Header=\$ac_header_preproc"
6497fi
6498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500
252b5132 6501fi
5464f5a1
NN
6502if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503 cat >>confdefs.h <<_ACEOF
6504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505_ACEOF
6506
6507fi
6508
252b5132
RH
6509done
6510
5464f5a1 6511
252b5132
RH
6512for ac_func in getpagesize
6513do
5464f5a1
NN
6514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6515echo "$as_me:$LINENO: checking for $ac_func" >&5
6516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6517if eval "test \"\${$as_ac_var+set}\" = set"; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520 cat >conftest.$ac_ext <<_ACEOF
6521/* confdefs.h. */
6522_ACEOF
6523cat confdefs.h >>conftest.$ac_ext
6524cat >>conftest.$ac_ext <<_ACEOF
6525/* end confdefs.h. */
6526/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6528#define $ac_func innocuous_$ac_func
6529
252b5132 6530/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6531 which can conflict with char $ac_func (); below.
6532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6533 <limits.h> exists even on freestanding compilers. */
6534
6535#ifdef __STDC__
6536# include <limits.h>
6537#else
6538# include <assert.h>
6539#endif
6be7c12c 6540
5464f5a1 6541#undef $ac_func
252b5132 6542
5464f5a1
NN
6543/* Override any gcc2 internal prototype to avoid an error. */
6544#ifdef __cplusplus
6545extern "C"
6546{
6547#endif
6548/* We use char because int might match the return type of a gcc2
6549 builtin and then its argument prototype would still apply. */
6550char $ac_func ();
252b5132
RH
6551/* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6555choke me
6556#else
5464f5a1
NN
6557char (*f) () = $ac_func;
6558#endif
6559#ifdef __cplusplus
6560}
252b5132
RH
6561#endif
6562
5464f5a1
NN
6563int
6564main ()
6565{
6566return f != $ac_func;
6567 ;
6568 return 0;
6569}
6570_ACEOF
6571rm -f conftest.$ac_objext conftest$ac_exeext
6572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
eac338cf 6580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582 (eval $ac_try) 2>&5
6583 ac_status=$?
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try='test -s conftest$ac_exeext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 (eval $ac_try) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 eval "$as_ac_var=yes"
6593else
6594 echo "$as_me: failed program was:" >&5
6595sed 's/^/| /' conftest.$ac_ext >&5
6596
6597eval "$as_ac_var=no"
6598fi
6599rm -f conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
6601fi
6602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6603echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6604if test `eval echo '${'$as_ac_var'}'` = yes; then
6605 cat >>confdefs.h <<_ACEOF
6606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6607_ACEOF
252b5132 6608
252b5132
RH
6609fi
6610done
6611
5464f5a1
NN
6612echo "$as_me:$LINENO: checking for working mmap" >&5
6613echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6614if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6616else
6617 if test "$cross_compiling" = yes; then
6618 ac_cv_func_mmap_fixed_mapped=no
6619else
5464f5a1
NN
6620 cat >conftest.$ac_ext <<_ACEOF
6621/* confdefs.h. */
6622_ACEOF
6623cat confdefs.h >>conftest.$ac_ext
6624cat >>conftest.$ac_ext <<_ACEOF
6625/* end confdefs.h. */
6626$ac_includes_default
6627/* malloc might have been renamed as rpl_malloc. */
6628#undef malloc
6be7c12c 6629
252b5132
RH
6630/* Thanks to Mike Haertel and Jim Avera for this test.
6631 Here is a matrix of mmap possibilities:
6632 mmap private not fixed
6633 mmap private fixed at somewhere currently unmapped
6634 mmap private fixed at somewhere already mapped
6635 mmap shared not fixed
6636 mmap shared fixed at somewhere currently unmapped
6637 mmap shared fixed at somewhere already mapped
6638 For private mappings, we should verify that changes cannot be read()
6639 back from the file, nor mmap's back from the file at a different
6640 address. (There have been systems where private was not correctly
6641 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 6642 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6643 like early versions of FreeBSD and possibly contemporary NetBSD.)
6644 For shared mappings, we should conversely verify that changes get
5464f5a1 6645 propagated back to all the places they're supposed to be.
252b5132
RH
6646
6647 Grep wants private fixed already mapped.
6648 The main things grep needs to know about mmap are:
6649 * does it exist and is it safe to write into the mmap'd area
6650 * how to use it (BSD variants) */
5464f5a1 6651
252b5132
RH
6652#include <fcntl.h>
6653#include <sys/mman.h>
6654
5464f5a1
NN
6655#if !STDC_HEADERS && !HAVE_STDLIB_H
6656char *malloc ();
6657#endif
6be7c12c 6658
5464f5a1
NN
6659/* This mess was copied from the GNU getpagesize.h. */
6660#if !HAVE_GETPAGESIZE
252b5132 6661/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 6662# if !HAVE_SYS_PARAM_H
252b5132
RH
6663# define HAVE_SYS_PARAM_H 1
6664# endif
6665
6666# ifdef _SC_PAGESIZE
6667# define getpagesize() sysconf(_SC_PAGESIZE)
6668# else /* no _SC_PAGESIZE */
5464f5a1 6669# if HAVE_SYS_PARAM_H
252b5132
RH
6670# include <sys/param.h>
6671# ifdef EXEC_PAGESIZE
6672# define getpagesize() EXEC_PAGESIZE
6673# else /* no EXEC_PAGESIZE */
6674# ifdef NBPG
6675# define getpagesize() NBPG * CLSIZE
6676# ifndef CLSIZE
6677# define CLSIZE 1
6678# endif /* no CLSIZE */
6679# else /* no NBPG */
6680# ifdef NBPC
6681# define getpagesize() NBPC
6682# else /* no NBPC */
6683# ifdef PAGESIZE
6684# define getpagesize() PAGESIZE
6685# endif /* PAGESIZE */
6686# endif /* no NBPC */
6687# endif /* no NBPG */
6688# endif /* no EXEC_PAGESIZE */
6689# else /* no HAVE_SYS_PARAM_H */
6690# define getpagesize() 8192 /* punt totally */
6691# endif /* no HAVE_SYS_PARAM_H */
6692# endif /* no _SC_PAGESIZE */
6693
6694#endif /* no HAVE_GETPAGESIZE */
6695
252b5132 6696int
5464f5a1 6697main ()
252b5132 6698{
5464f5a1
NN
6699 char *data, *data2, *data3;
6700 int i, pagesize;
6701 int fd;
6702
6703 pagesize = getpagesize ();
6704
6705 /* First, make a file with some known garbage in it. */
6706 data = (char *) malloc (pagesize);
6707 if (!data)
6708 exit (1);
6709 for (i = 0; i < pagesize; ++i)
6710 *(data + i) = rand ();
6711 umask (0);
6712 fd = creat ("conftest.mmap", 0600);
6713 if (fd < 0)
6714 exit (1);
6715 if (write (fd, data, pagesize) != pagesize)
6716 exit (1);
6717 close (fd);
6718
6719 /* Next, try to mmap the file at a fixed address which already has
6720 something else allocated at it. If we can, also make sure that
6721 we see the same garbage. */
6722 fd = open ("conftest.mmap", O_RDWR);
6723 if (fd < 0)
6724 exit (1);
6725 data2 = (char *) malloc (2 * pagesize);
6726 if (!data2)
6727 exit (1);
6728 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6729 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6730 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6731 exit (1);
6732 for (i = 0; i < pagesize; ++i)
6733 if (*(data + i) != *(data2 + i))
6734 exit (1);
6735
6736 /* Finally, make sure that changes to the mapped area do not
6737 percolate back to the file as seen by read(). (This is a bug on
6738 some variants of i386 svr4.0.) */
6739 for (i = 0; i < pagesize; ++i)
6740 *(data2 + i) = *(data2 + i) + 1;
6741 data3 = (char *) malloc (pagesize);
6742 if (!data3)
6743 exit (1);
6744 if (read (fd, data3, pagesize) != pagesize)
6745 exit (1);
6746 for (i = 0; i < pagesize; ++i)
6747 if (*(data + i) != *(data3 + i))
6748 exit (1);
6749 close (fd);
6750 exit (0);
252b5132 6751}
5464f5a1
NN
6752_ACEOF
6753rm -f conftest$ac_exeext
6754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755 (eval $ac_link) 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
252b5132
RH
6764 ac_cv_func_mmap_fixed_mapped=yes
6765else
5464f5a1
NN
6766 echo "$as_me: program exited with status $ac_status" >&5
6767echo "$as_me: failed program was:" >&5
6768sed 's/^/| /' conftest.$ac_ext >&5
6769
6770( exit $ac_status )
6771ac_cv_func_mmap_fixed_mapped=no
252b5132 6772fi
5464f5a1 6773rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6774fi
252b5132 6775fi
5464f5a1
NN
6776echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6777echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6be7c12c 6778if test $ac_cv_func_mmap_fixed_mapped = yes; then
5464f5a1
NN
6779
6780cat >>confdefs.h <<\_ACEOF
252b5132 6781#define HAVE_MMAP 1
5464f5a1 6782_ACEOF
252b5132
RH
6783
6784fi
5464f5a1
NN
6785rm -f conftest.mmap
6786
6787
252b5132 6788
5464f5a1
NN
6789
6790
6791
6792
6793
6794
6795
6796
6797for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6798unistd.h values.h sys/param.h
6799do
5464f5a1
NN
6800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6801if eval "test \"\${$as_ac_Header+set}\" = set"; then
6802 echo "$as_me:$LINENO: checking for $ac_header" >&5
6803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6804if eval "test \"\${$as_ac_Header+set}\" = set"; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806fi
6807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6809else
6810 # Is the header compilable?
6811echo "$as_me:$LINENO: checking $ac_header usability" >&5
6812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6813cat >conftest.$ac_ext <<_ACEOF
6814/* confdefs.h. */
6815_ACEOF
6816cat confdefs.h >>conftest.$ac_ext
6817cat >>conftest.$ac_ext <<_ACEOF
6818/* end confdefs.h. */
6819$ac_includes_default
6820#include <$ac_header>
6821_ACEOF
6822rm -f conftest.$ac_objext
6823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824 (eval $ac_compile) 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
eac338cf 6831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest.$ac_objext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_header_compiler=yes
6844else
6845 echo "$as_me: failed program was:" >&5
6846sed 's/^/| /' conftest.$ac_ext >&5
6847
6848ac_header_compiler=no
6849fi
6850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6851echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6852echo "${ECHO_T}$ac_header_compiler" >&6
6853
6854# Is the header present?
6855echo "$as_me:$LINENO: checking $ac_header presence" >&5
6856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6857cat >conftest.$ac_ext <<_ACEOF
6858/* confdefs.h. */
6859_ACEOF
6860cat confdefs.h >>conftest.$ac_ext
6861cat >>conftest.$ac_ext <<_ACEOF
6862/* end confdefs.h. */
6863#include <$ac_header>
6864_ACEOF
6865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6867 ac_status=$?
6868 grep -v '^ *+' conftest.er1 >conftest.err
6869 rm -f conftest.er1
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } >/dev/null; then
6873 if test -s conftest.err; then
6874 ac_cpp_err=$ac_c_preproc_warn_flag
6875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6876 else
6877 ac_cpp_err=
6878 fi
252b5132 6879else
5464f5a1 6880 ac_cpp_err=yes
252b5132 6881fi
5464f5a1
NN
6882if test -z "$ac_cpp_err"; then
6883 ac_header_preproc=yes
6884else
6885 echo "$as_me: failed program was:" >&5
6886sed 's/^/| /' conftest.$ac_ext >&5
6887
6888 ac_header_preproc=no
252b5132 6889fi
5464f5a1
NN
6890rm -f conftest.err conftest.$ac_ext
6891echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6892echo "${ECHO_T}$ac_header_preproc" >&6
6893
6894# So? What about this header?
6895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6896 yes:no: )
6897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6898echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6900echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6901 ac_header_preproc=yes
6902 ;;
6903 no:yes:* )
6904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6905echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6907echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6909echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6911echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6915echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6916 (
6917 cat <<\_ASBOX
6918## ------------------------------------------ ##
6919## Report this to the AC_PACKAGE_NAME lists. ##
6920## ------------------------------------------ ##
6921_ASBOX
6922 ) |
6923 sed "s/^/$as_me: WARNING: /" >&2
6924 ;;
6925esac
6926echo "$as_me:$LINENO: checking for $ac_header" >&5
6927echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6928if eval "test \"\${$as_ac_Header+set}\" = set"; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6930else
5464f5a1
NN
6931 eval "$as_ac_Header=\$ac_header_preproc"
6932fi
6933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6935
6936fi
6937if test `eval echo '${'$as_ac_Header'}'` = yes; then
6938 cat >>confdefs.h <<_ACEOF
6939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6940_ACEOF
6941
252b5132 6942fi
5464f5a1 6943
252b5132
RH
6944done
6945
5464f5a1
NN
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6957__argz_count __argz_stringify __argz_next
6958do
5464f5a1
NN
6959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6960echo "$as_me:$LINENO: checking for $ac_func" >&5
6961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6962if eval "test \"\${$as_ac_var+set}\" = set"; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6964else
6965 cat >conftest.$ac_ext <<_ACEOF
6966/* confdefs.h. */
6967_ACEOF
6968cat confdefs.h >>conftest.$ac_ext
6969cat >>conftest.$ac_ext <<_ACEOF
6970/* end confdefs.h. */
6971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6973#define $ac_func innocuous_$ac_func
6974
252b5132 6975/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6976 which can conflict with char $ac_func (); below.
6977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6978 <limits.h> exists even on freestanding compilers. */
6979
6980#ifdef __STDC__
6981# include <limits.h>
6982#else
6983# include <assert.h>
6984#endif
6985
6986#undef $ac_func
6987
252b5132 6988/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
6989#ifdef __cplusplus
6990extern "C"
6991{
6992#endif
252b5132 6993/* We use char because int might match the return type of a gcc2
5464f5a1
NN
6994 builtin and then its argument prototype would still apply. */
6995char $ac_func ();
252b5132
RH
6996/* The GNU C library defines this for functions which it implements
6997 to always fail with ENOSYS. Some functions are actually named
6998 something starting with __ and the normal name is an alias. */
6999#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7000choke me
7001#else
5464f5a1
NN
7002char (*f) () = $ac_func;
7003#endif
7004#ifdef __cplusplus
7005}
252b5132
RH
7006#endif
7007
5464f5a1
NN
7008int
7009main ()
7010{
7011return f != $ac_func;
7012 ;
7013 return 0;
7014}
7015_ACEOF
7016rm -f conftest.$ac_objext conftest$ac_exeext
7017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018 (eval $ac_link) 2>conftest.er1
7019 ac_status=$?
7020 grep -v '^ *+' conftest.er1 >conftest.err
7021 rm -f conftest.er1
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } &&
eac338cf 7025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 (eval $ac_try) 2>&5
7028 ac_status=$?
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; } &&
7031 { ac_try='test -s conftest$ac_exeext'
7032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033 (eval $ac_try) 2>&5
7034 ac_status=$?
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); }; }; then
7037 eval "$as_ac_var=yes"
7038else
7039 echo "$as_me: failed program was:" >&5
7040sed 's/^/| /' conftest.$ac_ext >&5
7041
7042eval "$as_ac_var=no"
7043fi
7044rm -f conftest.err conftest.$ac_objext \
7045 conftest$ac_exeext conftest.$ac_ext
7046fi
7047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7048echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7049if test `eval echo '${'$as_ac_var'}'` = yes; then
7050 cat >>confdefs.h <<_ACEOF
7051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7052_ACEOF
252b5132 7053
252b5132
RH
7054fi
7055done
7056
b3baf5d0 7057
6be7c12c 7058 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5464f5a1
NN
7059
7060for ac_func in stpcpy
252b5132 7061do
5464f5a1
NN
7062as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7063echo "$as_me:$LINENO: checking for $ac_func" >&5
7064echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7065if eval "test \"\${$as_ac_var+set}\" = set"; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7068 cat >conftest.$ac_ext <<_ACEOF
7069/* confdefs.h. */
7070_ACEOF
7071cat confdefs.h >>conftest.$ac_ext
7072cat >>conftest.$ac_ext <<_ACEOF
7073/* end confdefs.h. */
7074/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7076#define $ac_func innocuous_$ac_func
7077
252b5132 7078/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7079 which can conflict with char $ac_func (); below.
7080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081 <limits.h> exists even on freestanding compilers. */
7082
7083#ifdef __STDC__
7084# include <limits.h>
7085#else
7086# include <assert.h>
7087#endif
6be7c12c 7088
5464f5a1 7089#undef $ac_func
252b5132 7090
5464f5a1
NN
7091/* Override any gcc2 internal prototype to avoid an error. */
7092#ifdef __cplusplus
7093extern "C"
7094{
7095#endif
7096/* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7098char $ac_func ();
252b5132
RH
7099/* The GNU C library defines this for functions which it implements
7100 to always fail with ENOSYS. Some functions are actually named
7101 something starting with __ and the normal name is an alias. */
7102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7103choke me
7104#else
5464f5a1
NN
7105char (*f) () = $ac_func;
7106#endif
7107#ifdef __cplusplus
7108}
252b5132
RH
7109#endif
7110
5464f5a1
NN
7111int
7112main ()
7113{
7114return f != $ac_func;
7115 ;
7116 return 0;
7117}
7118_ACEOF
7119rm -f conftest.$ac_objext conftest$ac_exeext
7120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121 (eval $ac_link) 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
eac338cf 7128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 (eval $ac_try) 2>&5
7131 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; } &&
7134 { ac_try='test -s conftest$ac_exeext'
7135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136 (eval $ac_try) 2>&5
7137 ac_status=$?
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); }; }; then
7140 eval "$as_ac_var=yes"
7141else
7142 echo "$as_me: failed program was:" >&5
7143sed 's/^/| /' conftest.$ac_ext >&5
7144
7145eval "$as_ac_var=no"
7146fi
7147rm -f conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext conftest.$ac_ext
7149fi
7150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7152if test `eval echo '${'$as_ac_var'}'` = yes; then
7153 cat >>confdefs.h <<_ACEOF
7154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7155_ACEOF
252b5132 7156
252b5132
RH
7157fi
7158done
7159
7160 fi
7161 if test "${ac_cv_func_stpcpy}" = "yes"; then
5464f5a1
NN
7162
7163cat >>confdefs.h <<\_ACEOF
252b5132 7164#define HAVE_STPCPY 1
5464f5a1 7165_ACEOF
252b5132
RH
7166
7167 fi
7168
7169 if test $ac_cv_header_locale_h = yes; then
5464f5a1
NN
7170 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7171echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7172if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174else
7175 cat >conftest.$ac_ext <<_ACEOF
7176/* confdefs.h. */
7177_ACEOF
7178cat confdefs.h >>conftest.$ac_ext
7179cat >>conftest.$ac_ext <<_ACEOF
7180/* end confdefs.h. */
252b5132 7181#include <locale.h>
5464f5a1
NN
7182int
7183main ()
7184{
252b5132 7185return LC_MESSAGES
5464f5a1
NN
7186 ;
7187 return 0;
7188}
7189_ACEOF
7190rm -f conftest.$ac_objext conftest$ac_exeext
7191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7192 (eval $ac_link) 2>conftest.er1
7193 ac_status=$?
7194 grep -v '^ *+' conftest.er1 >conftest.err
7195 rm -f conftest.er1
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } &&
eac338cf 7199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 (eval $ac_try) 2>&5
7202 ac_status=$?
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try='test -s conftest$ac_exeext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 (eval $ac_try) 2>&5
7208 ac_status=$?
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
252b5132
RH
7211 am_cv_val_LC_MESSAGES=yes
7212else
5464f5a1
NN
7213 echo "$as_me: failed program was:" >&5
7214sed 's/^/| /' conftest.$ac_ext >&5
7215
7216am_cv_val_LC_MESSAGES=no
252b5132 7217fi
5464f5a1
NN
7218rm -f conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
252b5132 7220fi
5464f5a1
NN
7221echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7222echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6be7c12c 7223 if test $am_cv_val_LC_MESSAGES = yes; then
5464f5a1
NN
7224
7225cat >>confdefs.h <<\_ACEOF
252b5132 7226#define HAVE_LC_MESSAGES 1
5464f5a1 7227_ACEOF
252b5132
RH
7228
7229 fi
7230 fi
5464f5a1
NN
7231 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7232echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7233 # Check whether --enable-nls or --disable-nls was given.
7234if test "${enable_nls+set}" = set; then
7235 enableval="$enable_nls"
7236 USE_NLS=$enableval
7237else
7238 USE_NLS=yes
5464f5a1
NN
7239fi;
7240 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7241echo "${ECHO_T}$USE_NLS" >&6
6be7c12c 7242
252b5132
RH
7243
7244 USE_INCLUDED_LIBINTL=no
7245
7246 if test "$USE_NLS" = "yes"; then
5464f5a1
NN
7247 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7248echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7249
7250# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7251if test "${with_included_gettext+set}" = set; then
7252 withval="$with_included_gettext"
7253 nls_cv_force_use_gnu_gettext=$withval
7254else
7255 nls_cv_force_use_gnu_gettext=no
5464f5a1
NN
7256fi;
7257 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7258echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7259
7260 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7261 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7262 nls_cv_header_intl=
7263 nls_cv_header_libgt=
a53bf506 7264 CATOBJEXT=
252b5132 7265
5464f5a1
NN
7266 if test "${ac_cv_header_libintl_h+set}" = set; then
7267 echo "$as_me:$LINENO: checking for libintl.h" >&5
7268echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7269if test "${ac_cv_header_libintl_h+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271fi
7272echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7273echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7274else
7275 # Is the header compilable?
7276echo "$as_me:$LINENO: checking libintl.h usability" >&5
7277echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7278cat >conftest.$ac_ext <<_ACEOF
7279/* confdefs.h. */
7280_ACEOF
7281cat confdefs.h >>conftest.$ac_ext
7282cat >>conftest.$ac_ext <<_ACEOF
7283/* end confdefs.h. */
7284$ac_includes_default
252b5132 7285#include <libintl.h>
5464f5a1
NN
7286_ACEOF
7287rm -f conftest.$ac_objext
7288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7289 (eval $ac_compile) 2>conftest.er1
7290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
eac338cf 7296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
7308 ac_header_compiler=yes
7309else
7310 echo "$as_me: failed program was:" >&5
7311sed 's/^/| /' conftest.$ac_ext >&5
7312
7313ac_header_compiler=no
7314fi
7315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7316echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7317echo "${ECHO_T}$ac_header_compiler" >&6
7318
7319# Is the header present?
7320echo "$as_me:$LINENO: checking libintl.h presence" >&5
7321echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7322cat >conftest.$ac_ext <<_ACEOF
7323/* confdefs.h. */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
7327/* end confdefs.h. */
7328#include <libintl.h>
7329_ACEOF
7330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } >/dev/null; then
7338 if test -s conftest.err; then
7339 ac_cpp_err=$ac_c_preproc_warn_flag
7340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7341 else
7342 ac_cpp_err=
7343 fi
252b5132 7344else
5464f5a1 7345 ac_cpp_err=yes
252b5132 7346fi
5464f5a1
NN
7347if test -z "$ac_cpp_err"; then
7348 ac_header_preproc=yes
7349else
7350 echo "$as_me: failed program was:" >&5
7351sed 's/^/| /' conftest.$ac_ext >&5
7352
7353 ac_header_preproc=no
252b5132 7354fi
5464f5a1
NN
7355rm -f conftest.err conftest.$ac_ext
7356echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7357echo "${ECHO_T}$ac_header_preproc" >&6
7358
7359# So? What about this header?
7360case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7361 yes:no: )
7362 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7363echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7364 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7365echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7366 ac_header_preproc=yes
7367 ;;
7368 no:yes:* )
7369 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7370echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7371 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7372echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7373 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7374echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7376echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7378echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7380echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7381 (
7382 cat <<\_ASBOX
7383## ------------------------------------------ ##
7384## Report this to the AC_PACKAGE_NAME lists. ##
7385## ------------------------------------------ ##
7386_ASBOX
7387 ) |
7388 sed "s/^/$as_me: WARNING: /" >&2
7389 ;;
7390esac
7391echo "$as_me:$LINENO: checking for libintl.h" >&5
7392echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7393if test "${ac_cv_header_libintl_h+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7395else
5464f5a1
NN
7396 ac_cv_header_libintl_h=$ac_header_preproc
7397fi
7398echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7399echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7400
7401fi
7402if test $ac_cv_header_libintl_h = yes; then
7403 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7404echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7405if test "${gt_cv_func_gettext_libc+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408 cat >conftest.$ac_ext <<_ACEOF
7409/* confdefs.h. */
7410_ACEOF
7411cat confdefs.h >>conftest.$ac_ext
7412cat >>conftest.$ac_ext <<_ACEOF
7413/* end confdefs.h. */
252b5132 7414#include <libintl.h>
5464f5a1
NN
7415int
7416main ()
7417{
252b5132 7418return (int) gettext ("")
5464f5a1
NN
7419 ;
7420 return 0;
7421}
7422_ACEOF
7423rm -f conftest.$ac_objext conftest$ac_exeext
7424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425 (eval $ac_link) 2>conftest.er1
7426 ac_status=$?
7427 grep -v '^ *+' conftest.er1 >conftest.err
7428 rm -f conftest.er1
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } &&
eac338cf 7432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 (eval $ac_try) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); }; } &&
7438 { ac_try='test -s conftest$ac_exeext'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 (eval $ac_try) 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; }; then
252b5132
RH
7444 gt_cv_func_gettext_libc=yes
7445else
5464f5a1
NN
7446 echo "$as_me: failed program was:" >&5
7447sed 's/^/| /' conftest.$ac_ext >&5
7448
7449gt_cv_func_gettext_libc=no
252b5132 7450fi
5464f5a1
NN
7451rm -f conftest.err conftest.$ac_objext \
7452 conftest$ac_exeext conftest.$ac_ext
252b5132 7453fi
5464f5a1
NN
7454echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7455echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7456
7457 if test "$gt_cv_func_gettext_libc" != "yes"; then
5464f5a1
NN
7458 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7459echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7460if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7462else
5464f5a1 7463 ac_check_lib_save_LIBS=$LIBS
252b5132 7464LIBS="-lintl $LIBS"
5464f5a1
NN
7465cat >conftest.$ac_ext <<_ACEOF
7466/* confdefs.h. */
7467_ACEOF
7468cat confdefs.h >>conftest.$ac_ext
7469cat >>conftest.$ac_ext <<_ACEOF
7470/* end confdefs.h. */
7471
252b5132 7472/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7473#ifdef __cplusplus
7474extern "C"
7475#endif
252b5132 7476/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7477 builtin and then its argument prototype would still apply. */
7478char bindtextdomain ();
7479int
7480main ()
7481{
7482bindtextdomain ();
7483 ;
7484 return 0;
7485}
7486_ACEOF
7487rm -f conftest.$ac_objext conftest$ac_exeext
7488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7489 (eval $ac_link) 2>conftest.er1
7490 ac_status=$?
7491 grep -v '^ *+' conftest.er1 >conftest.err
7492 rm -f conftest.er1
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
eac338cf 7496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7498 (eval $ac_try) 2>&5
7499 ac_status=$?
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; } &&
7502 { ac_try='test -s conftest$ac_exeext'
7503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 (eval $ac_try) 2>&5
7505 ac_status=$?
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); }; }; then
7508 ac_cv_lib_intl_bindtextdomain=yes
7509else
7510 echo "$as_me: failed program was:" >&5
7511sed 's/^/| /' conftest.$ac_ext >&5
7512
7513ac_cv_lib_intl_bindtextdomain=no
7514fi
7515rm -f conftest.err conftest.$ac_objext \
7516 conftest$ac_exeext conftest.$ac_ext
7517LIBS=$ac_check_lib_save_LIBS
7518fi
7519echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7520echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7521if test $ac_cv_lib_intl_bindtextdomain = yes; then
7522 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7523echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7524if test "${gt_cv_func_gettext_libintl+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526else
7527 cat >conftest.$ac_ext <<_ACEOF
7528/* confdefs.h. */
7529_ACEOF
7530cat confdefs.h >>conftest.$ac_ext
7531cat >>conftest.$ac_ext <<_ACEOF
7532/* end confdefs.h. */
252b5132 7533
5464f5a1
NN
7534int
7535main ()
7536{
252b5132 7537return (int) gettext ("")
5464f5a1
NN
7538 ;
7539 return 0;
7540}
7541_ACEOF
7542rm -f conftest.$ac_objext conftest$ac_exeext
7543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7544 (eval $ac_link) 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } &&
eac338cf 7551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 (eval $ac_try) 2>&5
7554 ac_status=$?
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; } &&
7557 { ac_try='test -s conftest$ac_exeext'
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 (eval $ac_try) 2>&5
7560 ac_status=$?
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; }; then
252b5132
RH
7563 gt_cv_func_gettext_libintl=yes
7564else
5464f5a1
NN
7565 echo "$as_me: failed program was:" >&5
7566sed 's/^/| /' conftest.$ac_ext >&5
7567
7568gt_cv_func_gettext_libintl=no
252b5132 7569fi
5464f5a1
NN
7570rm -f conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
252b5132 7572fi
5464f5a1
NN
7573echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7574echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7575fi
7576
7577 fi
7578
7579 if test "$gt_cv_func_gettext_libc" = "yes" \
7580 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5464f5a1
NN
7581
7582cat >>confdefs.h <<\_ACEOF
252b5132 7583#define HAVE_GETTEXT 1
5464f5a1 7584_ACEOF
252b5132
RH
7585
7586 # Extract the first word of "msgfmt", so it can be a program name with args.
7587set dummy msgfmt; ac_word=$2
5464f5a1
NN
7588echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7590if test "${ac_cv_path_MSGFMT+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7592else
7593 case "$MSGFMT" in
7594 /*)
7595 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7599 for ac_dir in $PATH; do
7600 test -z "$ac_dir" && ac_dir=.
7601 if test -f $ac_dir/$ac_word; then
7602 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7603 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7604 break
7605 fi
7606 fi
7607 done
7608 IFS="$ac_save_ifs"
7609 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7610 ;;
7611esac
7612fi
7613MSGFMT="$ac_cv_path_MSGFMT"
7614if test -n "$MSGFMT"; then
5464f5a1
NN
7615 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7616echo "${ECHO_T}$MSGFMT" >&6
252b5132 7617else
5464f5a1
NN
7618 echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6
252b5132
RH
7620fi
7621 if test "$MSGFMT" != "no"; then
5464f5a1
NN
7622
7623for ac_func in dcgettext
252b5132 7624do
5464f5a1
NN
7625as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7626echo "$as_me:$LINENO: checking for $ac_func" >&5
7627echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7628if eval "test \"\${$as_ac_var+set}\" = set"; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630else
7631 cat >conftest.$ac_ext <<_ACEOF
7632/* confdefs.h. */
7633_ACEOF
7634cat confdefs.h >>conftest.$ac_ext
7635cat >>conftest.$ac_ext <<_ACEOF
7636/* end confdefs.h. */
7637/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7639#define $ac_func innocuous_$ac_func
7640
252b5132 7641/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7642 which can conflict with char $ac_func (); below.
7643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7644 <limits.h> exists even on freestanding compilers. */
7645
7646#ifdef __STDC__
7647# include <limits.h>
7648#else
7649# include <assert.h>
7650#endif
6be7c12c 7651
5464f5a1 7652#undef $ac_func
252b5132 7653
5464f5a1
NN
7654/* Override any gcc2 internal prototype to avoid an error. */
7655#ifdef __cplusplus
7656extern "C"
7657{
7658#endif
7659/* We use char because int might match the return type of a gcc2
7660 builtin and then its argument prototype would still apply. */
7661char $ac_func ();
252b5132
RH
7662/* The GNU C library defines this for functions which it implements
7663 to always fail with ENOSYS. Some functions are actually named
7664 something starting with __ and the normal name is an alias. */
7665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7666choke me
7667#else
5464f5a1
NN
7668char (*f) () = $ac_func;
7669#endif
7670#ifdef __cplusplus
7671}
252b5132
RH
7672#endif
7673
5464f5a1
NN
7674int
7675main ()
7676{
7677return f != $ac_func;
7678 ;
7679 return 0;
7680}
7681_ACEOF
7682rm -f conftest.$ac_objext conftest$ac_exeext
7683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7684 (eval $ac_link) 2>conftest.er1
7685 ac_status=$?
7686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
eac338cf 7691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 (eval $ac_try) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest$ac_exeext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 eval "$as_ac_var=yes"
7704else
7705 echo "$as_me: failed program was:" >&5
7706sed 's/^/| /' conftest.$ac_ext >&5
7707
7708eval "$as_ac_var=no"
7709fi
7710rm -f conftest.err conftest.$ac_objext \
7711 conftest$ac_exeext conftest.$ac_ext
7712fi
7713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7714echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7715if test `eval echo '${'$as_ac_var'}'` = yes; then
7716 cat >>confdefs.h <<_ACEOF
7717#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7718_ACEOF
252b5132 7719
252b5132
RH
7720fi
7721done
7722
7723 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7724set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7725echo "$as_me:$LINENO: checking for $ac_word" >&5
7726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7727if test "${ac_cv_path_GMSGFMT+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7729else
5464f5a1
NN
7730 case $GMSGFMT in
7731 [\\/]* | ?:[\\/]*)
252b5132
RH
7732 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7733 ;;
252b5132 7734 *)
5464f5a1
NN
7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7742 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 break 2
7745 fi
7746done
7747done
7748
252b5132
RH
7749 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7750 ;;
7751esac
7752fi
5464f5a1
NN
7753GMSGFMT=$ac_cv_path_GMSGFMT
7754
252b5132 7755if test -n "$GMSGFMT"; then
5464f5a1
NN
7756 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7757echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7758else
5464f5a1
NN
7759 echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
252b5132
RH
7761fi
7762
7763 # Extract the first word of "xgettext", so it can be a program name with args.
7764set dummy xgettext; ac_word=$2
5464f5a1
NN
7765echo "$as_me:$LINENO: checking for $ac_word" >&5
7766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7767if test "${ac_cv_path_XGETTEXT+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7769else
7770 case "$XGETTEXT" in
7771 /*)
7772 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7773 ;;
7774 *)
7775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7776 for ac_dir in $PATH; do
7777 test -z "$ac_dir" && ac_dir=.
7778 if test -f $ac_dir/$ac_word; then
7779 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7780 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7781 break
7782 fi
7783 fi
7784 done
7785 IFS="$ac_save_ifs"
7786 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7787 ;;
7788esac
7789fi
7790XGETTEXT="$ac_cv_path_XGETTEXT"
7791if test -n "$XGETTEXT"; then
5464f5a1
NN
7792 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7793echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7794else
5464f5a1
NN
7795 echo "$as_me:$LINENO: result: no" >&5
7796echo "${ECHO_T}no" >&6
252b5132
RH
7797fi
7798
5464f5a1
NN
7799 cat >conftest.$ac_ext <<_ACEOF
7800/* confdefs.h. */
7801_ACEOF
7802cat confdefs.h >>conftest.$ac_ext
7803cat >>conftest.$ac_ext <<_ACEOF
7804/* end confdefs.h. */
252b5132 7805
5464f5a1
NN
7806int
7807main ()
7808{
252b5132
RH
7809extern int _nl_msg_cat_cntr;
7810 return _nl_msg_cat_cntr
5464f5a1
NN
7811 ;
7812 return 0;
7813}
7814_ACEOF
7815rm -f conftest.$ac_objext conftest$ac_exeext
7816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7817 (eval $ac_link) 2>conftest.er1
7818 ac_status=$?
7819 grep -v '^ *+' conftest.er1 >conftest.err
7820 rm -f conftest.er1
7821 cat conftest.err >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
eac338cf 7824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826 (eval $ac_try) 2>&5
7827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest$ac_exeext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 (eval $ac_try) 2>&5
7833 ac_status=$?
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
252b5132
RH
7836 CATOBJEXT=.gmo
7837 DATADIRNAME=share
7838else
5464f5a1
NN
7839 echo "$as_me: failed program was:" >&5
7840sed 's/^/| /' conftest.$ac_ext >&5
7841
7842CATOBJEXT=.mo
252b5132
RH
7843 DATADIRNAME=lib
7844fi
5464f5a1
NN
7845rm -f conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7847 INSTOBJEXT=.mo
7848 fi
7849 fi
5464f5a1 7850
b3baf5d0 7851fi
252b5132 7852
6be7c12c 7853
5464f5a1
NN
7854
7855
a53bf506 7856 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
7857 # Neither gettext nor catgets in included in the C library.
7858 # Fall back on GNU gettext library (assuming it is present).
7859 nls_cv_use_gnu_gettext=yes
252b5132
RH
7860 fi
7861 fi
7862
7863 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7864 INTLOBJS="\$(GETTOBJS)"
7865 # Extract the first word of "msgfmt", so it can be a program name with args.
7866set dummy msgfmt; ac_word=$2
5464f5a1
NN
7867echo "$as_me:$LINENO: checking for $ac_word" >&5
7868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7869if test "${ac_cv_path_MSGFMT+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7871else
7872 case "$MSGFMT" in
7873 /*)
7874 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7875 ;;
7876 *)
7877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7878 for ac_dir in $PATH; do
7879 test -z "$ac_dir" && ac_dir=.
7880 if test -f $ac_dir/$ac_word; then
7881 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7882 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7883 break
7884 fi
7885 fi
7886 done
7887 IFS="$ac_save_ifs"
7888 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7889 ;;
7890esac
7891fi
7892MSGFMT="$ac_cv_path_MSGFMT"
7893if test -n "$MSGFMT"; then
5464f5a1
NN
7894 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7895echo "${ECHO_T}$MSGFMT" >&6
252b5132 7896else
5464f5a1
NN
7897 echo "$as_me:$LINENO: result: no" >&5
7898echo "${ECHO_T}no" >&6
252b5132
RH
7899fi
7900
7901 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7902set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7903echo "$as_me:$LINENO: checking for $ac_word" >&5
7904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7905if test "${ac_cv_path_GMSGFMT+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7907else
5464f5a1
NN
7908 case $GMSGFMT in
7909 [\\/]* | ?:[\\/]*)
252b5132
RH
7910 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7911 ;;
252b5132 7912 *)
5464f5a1
NN
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914for as_dir in $PATH
7915do
7916 IFS=$as_save_IFS
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 break 2
7923 fi
7924done
7925done
7926
252b5132
RH
7927 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7928 ;;
7929esac
7930fi
5464f5a1
NN
7931GMSGFMT=$ac_cv_path_GMSGFMT
7932
252b5132 7933if test -n "$GMSGFMT"; then
5464f5a1
NN
7934 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7935echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7936else
5464f5a1
NN
7937 echo "$as_me:$LINENO: result: no" >&5
7938echo "${ECHO_T}no" >&6
252b5132
RH
7939fi
7940
7941 # Extract the first word of "xgettext", so it can be a program name with args.
7942set dummy xgettext; ac_word=$2
5464f5a1
NN
7943echo "$as_me:$LINENO: checking for $ac_word" >&5
7944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7945if test "${ac_cv_path_XGETTEXT+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7947else
7948 case "$XGETTEXT" in
7949 /*)
7950 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7951 ;;
7952 *)
7953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7954 for ac_dir in $PATH; do
7955 test -z "$ac_dir" && ac_dir=.
7956 if test -f $ac_dir/$ac_word; then
7957 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7958 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7959 break
7960 fi
7961 fi
7962 done
7963 IFS="$ac_save_ifs"
7964 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7965 ;;
7966esac
7967fi
7968XGETTEXT="$ac_cv_path_XGETTEXT"
7969if test -n "$XGETTEXT"; then
5464f5a1
NN
7970 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7971echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7972else
5464f5a1
NN
7973 echo "$as_me:$LINENO: result: no" >&5
7974echo "${ECHO_T}no" >&6
252b5132
RH
7975fi
7976
5464f5a1 7977
252b5132
RH
7978 USE_INCLUDED_LIBINTL=yes
7979 CATOBJEXT=.gmo
7980 INSTOBJEXT=.mo
7981 DATADIRNAME=share
7982 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7983 INTLLIBS=$INTLDEPS
7984 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7985 nls_cv_header_intl=libintl.h
7986 nls_cv_header_libgt=libgettext.h
7987 fi
7988
7989 if test "$XGETTEXT" != ":"; then
7990 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7991 : ;
7992 else
5464f5a1
NN
7993 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7994echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
7995 XGETTEXT=":"
7996 fi
7997 fi
7998
7999 # We need to process the po/ directory.
8000 POSUB=po
8001 else
8002 DATADIRNAME=share
8003 nls_cv_header_intl=libintl.h
8004 nls_cv_header_libgt=libgettext.h
8005 fi
8006
8007 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8008 # because some of the sources are only built for this goal.
8009 if test "$PACKAGE" = gettext; then
8010 USE_NLS=yes
8011 USE_INCLUDED_LIBINTL=yes
8012 fi
8013
8014 for lang in $ALL_LINGUAS; do
8015 GMOFILES="$GMOFILES $lang.gmo"
8016 POFILES="$POFILES $lang.po"
8017 done
8018
5464f5a1
NN
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
c46f8c51
AC
8030 if test "x$CATOBJEXT" != "x"; then
8031
8032cat >>confdefs.h <<\_ACEOF
8033#define ENABLE_NLS 1
8034_ACEOF
8035
8036 fi
5464f5a1 8037
6be7c12c 8038
252b5132
RH
8039 if test "x$CATOBJEXT" != "x"; then
8040 if test "x$ALL_LINGUAS" = "x"; then
8041 LINGUAS=
8042 else
5464f5a1
NN
8043 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8044echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8045 NEW_LINGUAS=
8046 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8047 case "$ALL_LINGUAS" in
8048 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8049 esac
8050 done
8051 LINGUAS=$NEW_LINGUAS
5464f5a1
NN
8052 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8053echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8054 fi
8055
8056 if test -n "$LINGUAS"; then
8057 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8058 fi
8059 fi
8060
8061 if test $ac_cv_header_locale_h = yes; then
8062 INCLUDE_LOCALE_H="#include <locale.h>"
8063 else
8064 INCLUDE_LOCALE_H="\
8065/* The system does not provide the header <locale.h>. Take care yourself. */"
8066 fi
5464f5a1 8067
252b5132
RH
8068
8069 if test -f $srcdir/po2tbl.sed.in; then
8070 if test "$CATOBJEXT" = ".cat"; then
5464f5a1
NN
8071 if test "${ac_cv_header_linux_version_h+set}" = set; then
8072 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8073echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8074if test "${ac_cv_header_linux_version_h+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8076fi
8077echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8078echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8079else
8080 # Is the header compilable?
8081echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8082echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8083cat >conftest.$ac_ext <<_ACEOF
8084/* confdefs.h. */
8085_ACEOF
8086cat confdefs.h >>conftest.$ac_ext
8087cat >>conftest.$ac_ext <<_ACEOF
8088/* end confdefs.h. */
8089$ac_includes_default
252b5132 8090#include <linux/version.h>
5464f5a1
NN
8091_ACEOF
8092rm -f conftest.$ac_objext
8093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8094 (eval $ac_compile) 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } &&
eac338cf 8101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 (eval $ac_try) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; } &&
8107 { ac_try='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 ac_header_compiler=yes
8114else
8115 echo "$as_me: failed program was:" >&5
8116sed 's/^/| /' conftest.$ac_ext >&5
8117
8118ac_header_compiler=no
8119fi
8120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8122echo "${ECHO_T}$ac_header_compiler" >&6
8123
8124# Is the header present?
8125echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8126echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8127cat >conftest.$ac_ext <<_ACEOF
8128/* confdefs.h. */
8129_ACEOF
8130cat confdefs.h >>conftest.$ac_ext
8131cat >>conftest.$ac_ext <<_ACEOF
8132/* end confdefs.h. */
8133#include <linux/version.h>
8134_ACEOF
8135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } >/dev/null; then
8143 if test -s conftest.err; then
8144 ac_cpp_err=$ac_c_preproc_warn_flag
8145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8146 else
8147 ac_cpp_err=
8148 fi
252b5132 8149else
5464f5a1 8150 ac_cpp_err=yes
252b5132 8151fi
5464f5a1
NN
8152if test -z "$ac_cpp_err"; then
8153 ac_header_preproc=yes
8154else
8155 echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 ac_header_preproc=no
8159fi
8160rm -f conftest.err conftest.$ac_ext
8161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8162echo "${ECHO_T}$ac_header_preproc" >&6
8163
8164# So? What about this header?
8165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8166 yes:no: )
8167 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8168echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8169 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8170echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8171 ac_header_preproc=yes
8172 ;;
8173 no:yes:* )
8174 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8175echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8176 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8177echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8178 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8179echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8180 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8181echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8183echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8185echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8186 (
8187 cat <<\_ASBOX
8188## ------------------------------------------ ##
8189## Report this to the AC_PACKAGE_NAME lists. ##
8190## ------------------------------------------ ##
8191_ASBOX
8192 ) |
8193 sed "s/^/$as_me: WARNING: /" >&2
8194 ;;
8195esac
8196echo "$as_me:$LINENO: checking for linux/version.h" >&5
8197echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8198if test "${ac_cv_header_linux_version_h+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201 ac_cv_header_linux_version_h=$ac_header_preproc
8202fi
8203echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8204echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8205
252b5132 8206fi
5464f5a1 8207if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8208 msgformat=linux
8209else
5464f5a1 8210 msgformat=xopen
252b5132
RH
8211fi
8212
6be7c12c 8213
5464f5a1 8214
252b5132
RH
8215 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8216 fi
8217 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8218 $srcdir/po2tbl.sed.in > po2tbl.sed
8219 fi
8220
8221 if test "$PACKAGE" = "gettext"; then
8222 GT_NO="#NO#"
8223 GT_YES=
8224 else
8225 GT_NO=
8226 GT_YES="#YES#"
8227 fi
5464f5a1
NN
8228
8229
252b5132
RH
8230
8231 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5464f5a1 8232
252b5132
RH
8233
8234 l=
5464f5a1 8235
252b5132 8236
3c3bdf30 8237 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8238 test -d po || mkdir po
8239 if test "x$srcdir" != "x."; then
8240 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8241 posrcprefix="$srcdir/"
8242 else
8243 posrcprefix="../$srcdir/"
8244 fi
8245 else
8246 posrcprefix="../"
8247 fi
8248 rm -f po/POTFILES
8249 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8250 < $srcdir/po/POTFILES.in > po/POTFILES
8251 fi
5464f5a1 8252
252b5132
RH
8253
8254# Permit host specific settings.
8255. ${srcdir}/configure.host
8256
6be7c12c 8257
252b5132
RH
8258# Find a good install program. We prefer a C program (faster),
8259# so one script is as good as another. But avoid the broken or
8260# incompatible versions:
8261# SysV /etc/install, /usr/sbin/install
8262# SunOS /usr/etc/install
8263# IRIX /sbin/install
8264# AIX /bin/install
5464f5a1 8265# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8266# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8267# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8268# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 8269# OS/2's system install, which has a completely different semantic
252b5132 8270# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
8271echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8272echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8273if test -z "$INSTALL"; then
5464f5a1
NN
8274if test "${ac_cv_path_install+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8276else
5464f5a1
NN
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 # Account for people who put trailing slashes in PATH elements.
8283case $as_dir/ in
8284 ./ | .// | /cC/* | \
8285 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8286 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8287 /usr/ucb/* ) ;;
8288 *)
8289 # OSF1 and SCO ODT 3.0 have their own names for install.
8290 # Don't use installbsd from OSF since it installs stuff as root
8291 # by default.
8292 for ac_prog in ginstall scoinst install; do
8293 for ac_exec_ext in '' $ac_executable_extensions; do
8294 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8295 if test $ac_prog = install &&
5464f5a1 8296 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8297 # AIX install. It has an incompatible calling convention.
8298 :
5464f5a1
NN
8299 elif test $ac_prog = install &&
8300 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8301 # program-specific install script used by HP pwplus--don't use.
8302 :
252b5132 8303 else
5464f5a1
NN
8304 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8305 break 3
252b5132
RH
8306 fi
8307 fi
8308 done
5464f5a1
NN
8309 done
8310 ;;
8311esac
8312done
8313
252b5132
RH
8314
8315fi
8316 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 8317 INSTALL=$ac_cv_path_install
252b5132
RH
8318 else
8319 # As a last resort, use the slow shell script. We don't cache a
8320 # path for INSTALL within a source directory, because that will
8321 # break other packages using the cache if that directory is
8322 # removed, or if the path is relative.
5464f5a1 8323 INSTALL=$ac_install_sh
252b5132
RH
8324 fi
8325fi
5464f5a1
NN
8326echo "$as_me:$LINENO: result: $INSTALL" >&5
8327echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8328
8329# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8330# It thinks the first close brace ends the variable substitution.
8331test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8332
5464f5a1 8333test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8334
8335test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8336
6be7c12c 8337
252b5132 8338BFD_HOST_64BIT_LONG=0
ec317fb1 8339BFD_HOST_LONG_LONG=0
252b5132
RH
8340BFD_HOST_64_BIT_DEFINED=0
8341BFD_HOST_64_BIT=
8342BFD_HOST_U_64_BIT=
252b5132 8343
5464f5a1
NN
8344echo "$as_me:$LINENO: checking for long long" >&5
8345echo $ECHO_N "checking for long long... $ECHO_C" >&6
8346if test "${bfd_cv_has_long_long+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 8348else
5464f5a1
NN
8349 cat >conftest.$ac_ext <<_ACEOF
8350/* confdefs.h. */
8351_ACEOF
8352cat confdefs.h >>conftest.$ac_ext
8353cat >>conftest.$ac_ext <<_ACEOF
8354/* end confdefs.h. */
ec317fb1 8355
5464f5a1
NN
8356int
8357main ()
8358{
ec317fb1 8359unsigned long long ll = 18446744073709551615ULL;
5464f5a1
NN
8360 ;
8361 return 0;
8362}
8363_ACEOF
8364rm -f conftest.$ac_objext
8365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>conftest.er1
8367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
eac338cf 8373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 (eval $ac_try) 2>&5
8376 ac_status=$?
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try='test -s conftest.$ac_objext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 (eval $ac_try) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
ec317fb1
ILT
8385 bfd_cv_has_long_long=yes
8386else
5464f5a1
NN
8387 echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
8389
8390bfd_cv_has_long_long=no
ec317fb1 8391fi
5464f5a1 8392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ec317fb1
ILT
8393fi
8394
5464f5a1
NN
8395echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8396echo "${ECHO_T}$bfd_cv_has_long_long" >&6
ec317fb1
ILT
8397if test $bfd_cv_has_long_long = yes; then
8398 BFD_HOST_LONG_LONG=1
5464f5a1
NN
8399 echo "$as_me:$LINENO: checking size of long long" >&5
8400echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8401if test "${ac_cv_sizeof_long_long+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8403else
8404 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8405 cat >conftest.$ac_ext <<_ACEOF
8406/* confdefs.h. */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h. */
6726e1ea
L
8411#include "confdefs.h"
8412#include <sys/types.h>
8413
8414
5464f5a1
NN
8415int
8416main ()
8417{
6726e1ea 8418switch (0) case 0: case (sizeof (long long) == $ac_size):;
5464f5a1
NN
8419 ;
8420 return 0;
8421}
8422_ACEOF
8423rm -f conftest.$ac_objext
8424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425 (eval $ac_compile) 2>conftest.er1
8426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
eac338cf 8432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest.$ac_objext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
6726e1ea
L
8444 ac_cv_sizeof_long_long=$ac_size
8445else
5464f5a1
NN
8446 echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
6726e1ea 8449fi
5464f5a1 8450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8451 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8452done
8453
8454fi
8455
8456if test x$ac_cv_sizeof_long_long = x ; then
5464f5a1
NN
8457 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8458echo "$as_me: error: cannot determine a size for long long" >&2;}
8459 { (exit 1); exit 1; }; }
6726e1ea 8460fi
5464f5a1
NN
8461echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8462echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8463
8464cat >>confdefs.h <<_ACEOF
6726e1ea 8465#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 8466_ACEOF
6726e1ea
L
8467
8468
8469fi
8470
5464f5a1
NN
8471echo "$as_me:$LINENO: checking size of long" >&5
8472echo $ECHO_N "checking size of long... $ECHO_C" >&6
8473if test "${ac_cv_sizeof_long+set}" = set; then
8474 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8475else
8476 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8477 cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
6726e1ea
L
8483#include "confdefs.h"
8484#include <sys/types.h>
8485
8486
5464f5a1
NN
8487int
8488main ()
8489{
6726e1ea 8490switch (0) case 0: case (sizeof (long) == $ac_size):;
5464f5a1
NN
8491 ;
8492 return 0;
8493}
8494_ACEOF
8495rm -f conftest.$ac_objext
8496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497 (eval $ac_compile) 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
eac338cf 8504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; } &&
8510 { ac_try='test -s conftest.$ac_objext'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 (eval $ac_try) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; }; then
6726e1ea
L
8516 ac_cv_sizeof_long=$ac_size
8517else
5464f5a1
NN
8518 echo "$as_me: failed program was:" >&5
8519sed 's/^/| /' conftest.$ac_ext >&5
8520
6726e1ea 8521fi
5464f5a1 8522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8523 if test x$ac_cv_sizeof_long != x ; then break; fi
8524done
8525
8526fi
8527
8528if test x$ac_cv_sizeof_long = x ; then
5464f5a1
NN
8529 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8530echo "$as_me: error: cannot determine a size for long" >&2;}
8531 { (exit 1); exit 1; }; }
6726e1ea 8532fi
5464f5a1
NN
8533echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8534echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8535
8536cat >>confdefs.h <<_ACEOF
6726e1ea 8537#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 8538_ACEOF
6726e1ea
L
8539
8540
8541if test "x${ac_cv_sizeof_long}" = "x8"; then
8542 host64=true
ccba357f
AM
8543 BFD_HOST_64BIT_LONG=1
8544 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8545 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
6726e1ea 8546elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
ccba357f
AM
8547 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8548 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
6726e1ea
L
8549fi
8550
ccba357f 8551if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
6726e1ea 8552 BFD_HOST_64_BIT_DEFINED=1
ccba357f
AM
8553 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8554 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
ec317fb1
ILT
8555fi
8556
8557
8558
6be7c12c
AO
8559
8560
8561
8562
252b5132
RH
8563# Put a plausible default for CC_FOR_BUILD in Makefile.
8564if test -z "$CC_FOR_BUILD"; then
8565 if test "x$cross_compiling" = "xno"; then
8566 CC_FOR_BUILD='$(CC)'
8567 else
8568 CC_FOR_BUILD=gcc
8569 fi
8570fi
8571
8572# Also set EXEEXT_FOR_BUILD.
8573if test "x$cross_compiling" = "xno"; then
8574 EXEEXT_FOR_BUILD='$(EXEEXT)'
8575else
5464f5a1
NN
8576 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8577echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8578if test "${bfd_cv_build_exeext+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8580else
aab08431
ILT
8581 rm -f conftest*
8582 echo 'int main () { return 0; }' > conftest.c
8583 bfd_cv_build_exeext=
8584 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8585 for file in conftest.*; do
8586 case $file in
8587 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8588 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8589 esac
8590 done
8591 rm -f conftest*
8592 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 8593fi
5464f5a1
NN
8594echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8595echo "${ECHO_T}$bfd_cv_build_exeext" >&6
252b5132
RH
8596 EXEEXT_FOR_BUILD=""
8597 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8598fi
8599
6be7c12c 8600
5464f5a1
NN
8601
8602
8603
8604
8605
8606
8607for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
252b5132 8608do
5464f5a1
NN
8609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8610if eval "test \"\${$as_ac_Header+set}\" = set"; then
8611 echo "$as_me:$LINENO: checking for $ac_header" >&5
8612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8613if eval "test \"\${$as_ac_Header+set}\" = set"; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8615fi
8616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8618else
8619 # Is the header compilable?
8620echo "$as_me:$LINENO: checking $ac_header usability" >&5
8621echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8622cat >conftest.$ac_ext <<_ACEOF
8623/* confdefs.h. */
8624_ACEOF
8625cat confdefs.h >>conftest.$ac_ext
8626cat >>conftest.$ac_ext <<_ACEOF
8627/* end confdefs.h. */
8628$ac_includes_default
8629#include <$ac_header>
8630_ACEOF
8631rm -f conftest.$ac_objext
8632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8633 (eval $ac_compile) 2>conftest.er1
8634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } &&
eac338cf 8640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 (eval $ac_try) 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest.$ac_objext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 (eval $ac_try) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 ac_header_compiler=yes
8653else
8654 echo "$as_me: failed program was:" >&5
8655sed 's/^/| /' conftest.$ac_ext >&5
8656
8657ac_header_compiler=no
8658fi
8659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8660echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8661echo "${ECHO_T}$ac_header_compiler" >&6
8662
8663# Is the header present?
8664echo "$as_me:$LINENO: checking $ac_header presence" >&5
8665echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8666cat >conftest.$ac_ext <<_ACEOF
8667/* confdefs.h. */
8668_ACEOF
8669cat confdefs.h >>conftest.$ac_ext
8670cat >>conftest.$ac_ext <<_ACEOF
8671/* end confdefs.h. */
8672#include <$ac_header>
8673_ACEOF
8674if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8675 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8676 ac_status=$?
8677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } >/dev/null; then
8682 if test -s conftest.err; then
8683 ac_cpp_err=$ac_c_preproc_warn_flag
8684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8685 else
8686 ac_cpp_err=
8687 fi
252b5132 8688else
5464f5a1 8689 ac_cpp_err=yes
252b5132 8690fi
5464f5a1
NN
8691if test -z "$ac_cpp_err"; then
8692 ac_header_preproc=yes
8693else
8694 echo "$as_me: failed program was:" >&5
8695sed 's/^/| /' conftest.$ac_ext >&5
8696
8697 ac_header_preproc=no
252b5132 8698fi
5464f5a1
NN
8699rm -f conftest.err conftest.$ac_ext
8700echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8701echo "${ECHO_T}$ac_header_preproc" >&6
8702
8703# So? What about this header?
8704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8705 yes:no: )
8706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8710 ac_header_preproc=yes
8711 ;;
8712 no:yes:* )
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8725 (
8726 cat <<\_ASBOX
8727## ------------------------------------------ ##
8728## Report this to the AC_PACKAGE_NAME lists. ##
8729## ------------------------------------------ ##
8730_ASBOX
8731 ) |
8732 sed "s/^/$as_me: WARNING: /" >&2
8733 ;;
8734esac
8735echo "$as_me:$LINENO: checking for $ac_header" >&5
8736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8737if eval "test \"\${$as_ac_Header+set}\" = set"; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8739else
5464f5a1
NN
8740 eval "$as_ac_Header=\$ac_header_preproc"
8741fi
8742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744
252b5132 8745fi
5464f5a1
NN
8746if test `eval echo '${'$as_ac_Header'}'` = yes; then
8747 cat >>confdefs.h <<_ACEOF
8748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8749_ACEOF
8750
8751fi
8752
252b5132
RH
8753done
8754
5464f5a1
NN
8755
8756
8757
8758for ac_header in fcntl.h sys/file.h sys/time.h
252b5132 8759do
5464f5a1
NN
8760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8761if eval "test \"\${$as_ac_Header+set}\" = set"; then
8762 echo "$as_me:$LINENO: checking for $ac_header" >&5
8763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8764if eval "test \"\${$as_ac_Header+set}\" = set"; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8766fi
8767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8769else
8770 # Is the header compilable?
8771echo "$as_me:$LINENO: checking $ac_header usability" >&5
8772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8773cat >conftest.$ac_ext <<_ACEOF
8774/* confdefs.h. */
8775_ACEOF
8776cat confdefs.h >>conftest.$ac_ext
8777cat >>conftest.$ac_ext <<_ACEOF
8778/* end confdefs.h. */
8779$ac_includes_default
8780#include <$ac_header>
8781_ACEOF
8782rm -f conftest.$ac_objext
8783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8784 (eval $ac_compile) 2>conftest.er1
8785 ac_status=$?
8786 grep -v '^ *+' conftest.er1 >conftest.err
8787 rm -f conftest.er1
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
eac338cf 8791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; } &&
8797 { ac_try='test -s conftest.$ac_objext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 (eval $ac_try) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8803 ac_header_compiler=yes
8804else
8805 echo "$as_me: failed program was:" >&5
8806sed 's/^/| /' conftest.$ac_ext >&5
8807
8808ac_header_compiler=no
8809fi
8810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8811echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8812echo "${ECHO_T}$ac_header_compiler" >&6
8813
8814# Is the header present?
8815echo "$as_me:$LINENO: checking $ac_header presence" >&5
8816echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8817cat >conftest.$ac_ext <<_ACEOF
8818/* confdefs.h. */
8819_ACEOF
8820cat confdefs.h >>conftest.$ac_ext
8821cat >>conftest.$ac_ext <<_ACEOF
8822/* end confdefs.h. */
8823#include <$ac_header>
8824_ACEOF
8825if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8827 ac_status=$?
8828 grep -v '^ *+' conftest.er1 >conftest.err
8829 rm -f conftest.er1
8830 cat conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } >/dev/null; then
8833 if test -s conftest.err; then
8834 ac_cpp_err=$ac_c_preproc_warn_flag
8835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8836 else
8837 ac_cpp_err=
8838 fi
252b5132 8839else
5464f5a1 8840 ac_cpp_err=yes
252b5132 8841fi
5464f5a1
NN
8842if test -z "$ac_cpp_err"; then
8843 ac_header_preproc=yes
8844else
8845 echo "$as_me: failed program was:" >&5
8846sed 's/^/| /' conftest.$ac_ext >&5
8847
8848 ac_header_preproc=no
252b5132 8849fi
5464f5a1
NN
8850rm -f conftest.err conftest.$ac_ext
8851echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8852echo "${ECHO_T}$ac_header_preproc" >&6
8853
8854# So? What about this header?
8855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8856 yes:no: )
8857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8860echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8861 ac_header_preproc=yes
8862 ;;
8863 no:yes:* )
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8869echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8871echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8873echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8875echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8876 (
8877 cat <<\_ASBOX
8878## ------------------------------------------ ##
8879## Report this to the AC_PACKAGE_NAME lists. ##
8880## ------------------------------------------ ##
8881_ASBOX
8882 ) |
8883 sed "s/^/$as_me: WARNING: /" >&2
8884 ;;
8885esac
8886echo "$as_me:$LINENO: checking for $ac_header" >&5
8887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8888if eval "test \"\${$as_ac_Header+set}\" = set"; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8890else
5464f5a1
NN
8891 eval "$as_ac_Header=\$ac_header_preproc"
8892fi
8893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8895
8896fi
8897if test `eval echo '${'$as_ac_Header'}'` = yes; then
8898 cat >>confdefs.h <<_ACEOF
8899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8900_ACEOF
8901
252b5132 8902fi
5464f5a1 8903
252b5132
RH
8904done
8905
5464f5a1
NN
8906echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8907echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8908if test "${ac_cv_header_time+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910else
8911 cat >conftest.$ac_ext <<_ACEOF
8912/* confdefs.h. */
8913_ACEOF
8914cat confdefs.h >>conftest.$ac_ext
8915cat >>conftest.$ac_ext <<_ACEOF
8916/* end confdefs.h. */
252b5132
RH
8917#include <sys/types.h>
8918#include <sys/time.h>
8919#include <time.h>
5464f5a1
NN
8920
8921int
8922main ()
8923{
8924if ((struct tm *) 0)
8925return 0;
8926 ;
8927 return 0;
8928}
8929_ACEOF
8930rm -f conftest.$ac_objext
8931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932 (eval $ac_compile) 2>conftest.er1
8933 ac_status=$?
8934 grep -v '^ *+' conftest.er1 >conftest.err
8935 rm -f conftest.er1
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } &&
eac338cf 8939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 (eval $ac_try) 2>&5
8942 ac_status=$?
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); }; } &&
8945 { ac_try='test -s conftest.$ac_objext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 (eval $ac_try) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
252b5132
RH
8951 ac_cv_header_time=yes
8952else
5464f5a1
NN
8953 echo "$as_me: failed program was:" >&5
8954sed 's/^/| /' conftest.$ac_ext >&5
8955
8956ac_cv_header_time=no
252b5132 8957fi
5464f5a1 8958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8959fi
5464f5a1
NN
8960echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8961echo "${ECHO_T}$ac_cv_header_time" >&6
6be7c12c 8962if test $ac_cv_header_time = yes; then
5464f5a1
NN
8963
8964cat >>confdefs.h <<\_ACEOF
252b5132 8965#define TIME_WITH_SYS_TIME 1
5464f5a1 8966_ACEOF
252b5132
RH
8967
8968fi
8969
5464f5a1
NN
8970
8971
8972
8973
8974
252b5132 8975ac_header_dirent=no
5464f5a1
NN
8976for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8977 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8978echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8979echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8980if eval "test \"\${$as_ac_Header+set}\" = set"; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982else
8983 cat >conftest.$ac_ext <<_ACEOF
8984/* confdefs.h. */
8985_ACEOF
8986cat confdefs.h >>conftest.$ac_ext
8987cat >>conftest.$ac_ext <<_ACEOF
8988/* end confdefs.h. */
252b5132
RH
8989#include <sys/types.h>
8990#include <$ac_hdr>
5464f5a1
NN
8991
8992int
8993main ()
8994{
8995if ((DIR *) 0)
8996return 0;
8997 ;
8998 return 0;
8999}
9000_ACEOF
9001rm -f conftest.$ac_objext
9002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9003 (eval $ac_compile) 2>conftest.er1
9004 ac_status=$?
9005 grep -v '^ *+' conftest.er1 >conftest.err
9006 rm -f conftest.er1
9007 cat conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); } &&
eac338cf 9010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 (eval $ac_try) 2>&5
9013 ac_status=$?
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); }; } &&
9016 { ac_try='test -s conftest.$ac_objext'
9017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 (eval $ac_try) 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 eval "$as_ac_Header=yes"
9023else
9024 echo "$as_me: failed program was:" >&5
9025sed 's/^/| /' conftest.$ac_ext >&5
9026
9027eval "$as_ac_Header=no"
9028fi
9029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9030fi
9031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9033if test `eval echo '${'$as_ac_Header'}'` = yes; then
9034 cat >>confdefs.h <<_ACEOF
9035#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9036_ACEOF
9037
9038ac_header_dirent=$ac_hdr; break
252b5132 9039fi
5464f5a1 9040
252b5132
RH
9041done
9042# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9043if test $ac_header_dirent = dirent.h; then
5464f5a1
NN
9044 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9045echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9046if test "${ac_cv_search_opendir+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9048else
9049 ac_func_search_save_LIBS=$LIBS
9050ac_cv_search_opendir=no
9051cat >conftest.$ac_ext <<_ACEOF
9052/* confdefs.h. */
9053_ACEOF
9054cat confdefs.h >>conftest.$ac_ext
9055cat >>conftest.$ac_ext <<_ACEOF
9056/* end confdefs.h. */
9057
252b5132 9058/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
9059#ifdef __cplusplus
9060extern "C"
9061#endif
252b5132 9062/* We use char because int might match the return type of a gcc2
5464f5a1
NN
9063 builtin and then its argument prototype would still apply. */
9064char opendir ();
9065int
9066main ()
9067{
9068opendir ();
9069 ;
9070 return 0;
9071}
9072_ACEOF
9073rm -f conftest.$ac_objext conftest$ac_exeext
9074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9075 (eval $ac_link) 2>conftest.er1
9076 ac_status=$?
9077 grep -v '^ *+' conftest.er1 >conftest.err
9078 rm -f conftest.er1
9079 cat conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } &&
eac338cf 9082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 (eval $ac_try) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; } &&
9088 { ac_try='test -s conftest$ac_exeext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_cv_search_opendir="none required"
9095else
9096 echo "$as_me: failed program was:" >&5
9097sed 's/^/| /' conftest.$ac_ext >&5
9098
9099fi
9100rm -f conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102if test "$ac_cv_search_opendir" = no; then
9103 for ac_lib in dir; do
9104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9105 cat >conftest.$ac_ext <<_ACEOF
9106/* confdefs.h. */
9107_ACEOF
9108cat confdefs.h >>conftest.$ac_ext
9109cat >>conftest.$ac_ext <<_ACEOF
9110/* end confdefs.h. */
6be7c12c 9111
5464f5a1
NN
9112/* Override any gcc2 internal prototype to avoid an error. */
9113#ifdef __cplusplus
9114extern "C"
9115#endif
9116/* We use char because int might match the return type of a gcc2
9117 builtin and then its argument prototype would still apply. */
9118char opendir ();
9119int
9120main ()
9121{
9122opendir ();
9123 ;
9124 return 0;
9125}
9126_ACEOF
9127rm -f conftest.$ac_objext conftest$ac_exeext
9128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9129 (eval $ac_link) 2>conftest.er1
9130 ac_status=$?
9131 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -f conftest.er1
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } &&
eac338cf 9136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest$ac_exeext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 ac_cv_search_opendir="-l$ac_lib"
9149break
9150else
9151 echo "$as_me: failed program was:" >&5
9152sed 's/^/| /' conftest.$ac_ext >&5
9153
9154fi
9155rm -f conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9157 done
6be7c12c 9158fi
5464f5a1 9159LIBS=$ac_func_search_save_LIBS
6be7c12c 9160fi
5464f5a1
NN
9161echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9162echo "${ECHO_T}$ac_cv_search_opendir" >&6
9163if test "$ac_cv_search_opendir" != no; then
9164 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9165
252b5132
RH
9166fi
9167
9168else
5464f5a1
NN
9169 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9170echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9171if test "${ac_cv_search_opendir+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 9173else
5464f5a1
NN
9174 ac_func_search_save_LIBS=$LIBS
9175ac_cv_search_opendir=no
9176cat >conftest.$ac_ext <<_ACEOF
9177/* confdefs.h. */
9178_ACEOF
9179cat confdefs.h >>conftest.$ac_ext
9180cat >>conftest.$ac_ext <<_ACEOF
9181/* end confdefs.h. */
9182
6be7c12c 9183/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
9184#ifdef __cplusplus
9185extern "C"
9186#endif
6be7c12c 9187/* We use char because int might match the return type of a gcc2
5464f5a1
NN
9188 builtin and then its argument prototype would still apply. */
9189char opendir ();
9190int
9191main ()
9192{
9193opendir ();
9194 ;
9195 return 0;
9196}
9197_ACEOF
9198rm -f conftest.$ac_objext conftest$ac_exeext
9199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200 (eval $ac_link) 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
eac338cf 9207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 (eval $ac_try) 2>&5
9210 ac_status=$?
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; } &&
9213 { ac_try='test -s conftest$ac_exeext'
9214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 (eval $ac_try) 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
9219 ac_cv_search_opendir="none required"
9220else
9221 echo "$as_me: failed program was:" >&5
9222sed 's/^/| /' conftest.$ac_ext >&5
9223
9224fi
9225rm -f conftest.err conftest.$ac_objext \
9226 conftest$ac_exeext conftest.$ac_ext
9227if test "$ac_cv_search_opendir" = no; then
9228 for ac_lib in x; do
9229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9230 cat >conftest.$ac_ext <<_ACEOF
9231/* confdefs.h. */
9232_ACEOF
9233cat confdefs.h >>conftest.$ac_ext
9234cat >>conftest.$ac_ext <<_ACEOF
9235/* end confdefs.h. */
6be7c12c 9236
5464f5a1
NN
9237/* Override any gcc2 internal prototype to avoid an error. */
9238#ifdef __cplusplus
9239extern "C"
9240#endif
9241/* We use char because int might match the return type of a gcc2
9242 builtin and then its argument prototype would still apply. */
9243char opendir ();
9244int
9245main ()
9246{
9247opendir ();
9248 ;
9249 return 0;
9250}
9251_ACEOF
9252rm -f conftest.$ac_objext conftest$ac_exeext
9253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9254 (eval $ac_link) 2>conftest.er1
9255 ac_status=$?
9256 grep -v '^ *+' conftest.er1 >conftest.err
9257 rm -f conftest.er1
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
eac338cf 9261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try='test -s conftest$ac_exeext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9273 ac_cv_search_opendir="-l$ac_lib"
9274break
9275else
9276 echo "$as_me: failed program was:" >&5
9277sed 's/^/| /' conftest.$ac_ext >&5
9278
9279fi
9280rm -f conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 done
6be7c12c 9283fi
5464f5a1 9284LIBS=$ac_func_search_save_LIBS
6be7c12c 9285fi
5464f5a1
NN
9286echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9287echo "${ECHO_T}$ac_cv_search_opendir" >&6
9288if test "$ac_cv_search_opendir" != no; then
9289 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9290
252b5132
RH
9291fi
9292
9293fi
9294
5464f5a1
NN
9295
9296
9297
9298
9299
9300
9301
633fd09f 9302for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 9303do
5464f5a1
NN
9304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9305echo "$as_me:$LINENO: checking for $ac_func" >&5
9306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9307if eval "test \"\${$as_ac_var+set}\" = set"; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309else
9310 cat >conftest.$ac_ext <<_ACEOF
9311/* confdefs.h. */
9312_ACEOF
9313cat confdefs.h >>conftest.$ac_ext
9314cat >>conftest.$ac_ext <<_ACEOF
9315/* end confdefs.h. */
9316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9318#define $ac_func innocuous_$ac_func
9319
252b5132 9320/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
9321 which can conflict with char $ac_func (); below.
9322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9323 <limits.h> exists even on freestanding compilers. */
9324
9325#ifdef __STDC__
9326# include <limits.h>
9327#else
9328# include <assert.h>
9329#endif
6be7c12c 9330
5464f5a1 9331#undef $ac_func
252b5132 9332
5464f5a1
NN
9333/* Override any gcc2 internal prototype to avoid an error. */
9334#ifdef __cplusplus
9335extern "C"
9336{
9337#endif
9338/* We use char because int might match the return type of a gcc2
9339 builtin and then its argument prototype would still apply. */
9340char $ac_func ();
252b5132
RH
9341/* The GNU C library defines this for functions which it implements
9342 to always fail with ENOSYS. Some functions are actually named
9343 something starting with __ and the normal name is an alias. */
9344#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9345choke me
9346#else
5464f5a1
NN
9347char (*f) () = $ac_func;
9348#endif
9349#ifdef __cplusplus
9350}
252b5132
RH
9351#endif
9352
5464f5a1
NN
9353int
9354main ()
9355{
9356return f != $ac_func;
9357 ;
9358 return 0;
9359}
9360_ACEOF
9361rm -f conftest.$ac_objext conftest$ac_exeext
9362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9363 (eval $ac_link) 2>conftest.er1
9364 ac_status=$?
9365 grep -v '^ *+' conftest.er1 >conftest.err
9366 rm -f conftest.er1
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
eac338cf 9370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 (eval $ac_try) 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; } &&
9376 { ac_try='test -s conftest$ac_exeext'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 (eval $ac_try) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 eval "$as_ac_var=yes"
9383else
9384 echo "$as_me: failed program was:" >&5
9385sed 's/^/| /' conftest.$ac_ext >&5
9386
9387eval "$as_ac_var=no"
9388fi
9389rm -f conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391fi
9392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9393echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9394if test `eval echo '${'$as_ac_var'}'` = yes; then
9395 cat >>confdefs.h <<_ACEOF
9396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9397_ACEOF
252b5132 9398
252b5132
RH
9399fi
9400done
9401
5464f5a1 9402
49c97a80
ILT
9403for ac_func in strtoull
9404do
5464f5a1
NN
9405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9406echo "$as_me:$LINENO: checking for $ac_func" >&5
9407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9408if eval "test \"\${$as_ac_var+set}\" = set"; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410else
9411 cat >conftest.$ac_ext <<_ACEOF
9412/* confdefs.h. */
9413_ACEOF
9414cat confdefs.h >>conftest.$ac_ext
9415cat >>conftest.$ac_ext <<_ACEOF
9416/* end confdefs.h. */
9417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9419#define $ac_func innocuous_$ac_func
9420
49c97a80 9421/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
9422 which can conflict with char $ac_func (); below.
9423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9424 <limits.h> exists even on freestanding compilers. */
9425
9426#ifdef __STDC__
9427# include <limits.h>
9428#else
9429# include <assert.h>
9430#endif
49c97a80 9431
5464f5a1 9432#undef $ac_func
49c97a80 9433
5464f5a1
NN
9434/* Override any gcc2 internal prototype to avoid an error. */
9435#ifdef __cplusplus
9436extern "C"
9437{
9438#endif
9439/* We use char because int might match the return type of a gcc2
9440 builtin and then its argument prototype would still apply. */
9441char $ac_func ();
49c97a80
ILT
9442/* The GNU C library defines this for functions which it implements
9443 to always fail with ENOSYS. Some functions are actually named
9444 something starting with __ and the normal name is an alias. */
9445#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9446choke me
9447#else
5464f5a1
NN
9448char (*f) () = $ac_func;
9449#endif
9450#ifdef __cplusplus
9451}
49c97a80
ILT
9452#endif
9453
5464f5a1
NN
9454int
9455main ()
9456{
9457return f != $ac_func;
9458 ;
9459 return 0;
9460}
9461_ACEOF
9462rm -f conftest.$ac_objext conftest$ac_exeext
9463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9464 (eval $ac_link) 2>conftest.er1
9465 ac_status=$?
9466 grep -v '^ *+' conftest.er1 >conftest.err
9467 rm -f conftest.er1
9468 cat conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); } &&
eac338cf 9471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9473 (eval $ac_try) 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try='test -s conftest$ac_exeext'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; }; then
9483 eval "$as_ac_var=yes"
9484else
9485 echo "$as_me: failed program was:" >&5
9486sed 's/^/| /' conftest.$ac_ext >&5
9487
9488eval "$as_ac_var=no"
9489fi
9490rm -f conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492fi
9493echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9494echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9495if test `eval echo '${'$as_ac_var'}'` = yes; then
9496 cat >>confdefs.h <<_ACEOF
9497#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9498_ACEOF
49c97a80 9499
49c97a80
ILT
9500fi
9501done
9502
6be7c12c 9503
2e9ebff5
JG
9504echo "$as_me:$LINENO: checking whether basename is declared" >&5
9505echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
9506if test "${ac_cv_have_decl_basename+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508else
9509 cat >conftest.$ac_ext <<_ACEOF
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
ec7b76fe 9515$ac_includes_default
2e9ebff5
JG
9516int
9517main ()
9518{
9519#ifndef basename
9520 char *p = (char *) basename;
9521#endif
9522
9523 ;
9524 return 0;
9525}
9526_ACEOF
9527rm -f conftest.$ac_objext
9528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529 (eval $ac_compile) 2>conftest.er1
9530 ac_status=$?
9531 grep -v '^ *+' conftest.er1 >conftest.err
9532 rm -f conftest.er1
9533 cat conftest.err >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
eac338cf 9536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2e9ebff5
JG
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; } &&
9542 { ac_try='test -s conftest.$ac_objext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544 (eval $ac_try) 2>&5
9545 ac_status=$?
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9548 ac_cv_have_decl_basename=yes
9549else
9550 echo "$as_me: failed program was:" >&5
9551sed 's/^/| /' conftest.$ac_ext >&5
9552
9553ac_cv_have_decl_basename=no
9554fi
9555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9556fi
9557echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
9558echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
9559if test $ac_cv_have_decl_basename = yes; then
9560
9561cat >>confdefs.h <<_ACEOF
9562#define HAVE_DECL_BASENAME 1
9563_ACEOF
9564
9565
9566else
9567 cat >>confdefs.h <<_ACEOF
9568#define HAVE_DECL_BASENAME 0
9569_ACEOF
9570
9571
9572fi
9573
9574
ec7b76fe
JG
9575echo "$as_me:$LINENO: checking whether ftello is declared" >&5
9576echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
9577if test "${ac_cv_have_decl_ftello+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579else
9580 cat >conftest.$ac_ext <<_ACEOF
9581/* confdefs.h. */
9582_ACEOF
9583cat confdefs.h >>conftest.$ac_ext
9584cat >>conftest.$ac_ext <<_ACEOF
9585/* end confdefs.h. */
9586$ac_includes_default
9587int
9588main ()
9589{
9590#ifndef ftello
9591 char *p = (char *) ftello;
9592#endif
9593
9594 ;
9595 return 0;
9596}
9597_ACEOF
9598rm -f conftest.$ac_objext
9599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600 (eval $ac_compile) 2>conftest.er1
9601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } &&
eac338cf 9607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec7b76fe
JG
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 (eval $ac_try) 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; } &&
9613 { ac_try='test -s conftest.$ac_objext'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 (eval $ac_try) 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_cv_have_decl_ftello=yes
9620else
9621 echo "$as_me: failed program was:" >&5
9622sed 's/^/| /' conftest.$ac_ext >&5
9623
9624ac_cv_have_decl_ftello=no
9625fi
9626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9627fi
9628echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
9629echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
9630if test $ac_cv_have_decl_ftello = yes; then
9631
9632cat >>confdefs.h <<_ACEOF
9633#define HAVE_DECL_FTELLO 1
9634_ACEOF
9635
9636
9637else
9638 cat >>confdefs.h <<_ACEOF
9639#define HAVE_DECL_FTELLO 0
9640_ACEOF
9641
9642
9643fi
9644
9645
9646echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
9647echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
9648if test "${ac_cv_have_decl_ftello64+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9650else
9651 cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657$ac_includes_default
9658int
9659main ()
9660{
9661#ifndef ftello64
9662 char *p = (char *) ftello64;
9663#endif
9664
9665 ;
9666 return 0;
9667}
9668_ACEOF
9669rm -f conftest.$ac_objext
9670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9671 (eval $ac_compile) 2>conftest.er1
9672 ac_status=$?
9673 grep -v '^ *+' conftest.er1 >conftest.err
9674 rm -f conftest.er1
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); } &&
eac338cf 9678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec7b76fe
JG
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; } &&
9684 { ac_try='test -s conftest.$ac_objext'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 (eval $ac_try) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 ac_cv_have_decl_ftello64=yes
9691else
9692 echo "$as_me: failed program was:" >&5
9693sed 's/^/| /' conftest.$ac_ext >&5
9694
9695ac_cv_have_decl_ftello64=no
9696fi
9697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9698fi
9699echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
9700echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
9701if test $ac_cv_have_decl_ftello64 = yes; then
9702
9703cat >>confdefs.h <<_ACEOF
9704#define HAVE_DECL_FTELLO64 1
9705_ACEOF
9706
9707
9708else
9709 cat >>confdefs.h <<_ACEOF
9710#define HAVE_DECL_FTELLO64 0
9711_ACEOF
9712
9713
9714fi
9715
9716
9717echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
9718echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
9719if test "${ac_cv_have_decl_fseeko+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721else
9722 cat >conftest.$ac_ext <<_ACEOF
9723/* confdefs.h. */
9724_ACEOF
9725cat confdefs.h >>conftest.$ac_ext
9726cat >>conftest.$ac_ext <<_ACEOF
9727/* end confdefs.h. */
9728$ac_includes_default
9729int
9730main ()
9731{
9732#ifndef fseeko
9733 char *p = (char *) fseeko;
9734#endif
9735
9736 ;
9737 return 0;
9738}
9739_ACEOF
9740rm -f conftest.$ac_objext
9741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9742 (eval $ac_compile) 2>conftest.er1
9743 ac_status=$?
9744 grep -v '^ *+' conftest.er1 >conftest.err
9745 rm -f conftest.er1
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
eac338cf 9749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec7b76fe
JG
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; } &&
9755 { ac_try='test -s conftest.$ac_objext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_have_decl_fseeko=yes
9762else
9763 echo "$as_me: failed program was:" >&5
9764sed 's/^/| /' conftest.$ac_ext >&5
9765
9766ac_cv_have_decl_fseeko=no
9767fi
9768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9769fi
9770echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
9771echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
9772if test $ac_cv_have_decl_fseeko = yes; then
9773
9774cat >>confdefs.h <<_ACEOF
9775#define HAVE_DECL_FSEEKO 1
9776_ACEOF
9777
9778
9779else
9780 cat >>confdefs.h <<_ACEOF
9781#define HAVE_DECL_FSEEKO 0
9782_ACEOF
9783
9784
9785fi
9786
9787
9788echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
9789echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
9790if test "${ac_cv_have_decl_fseeko64+set}" = set; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792else
9793 cat >conftest.$ac_ext <<_ACEOF
9794/* confdefs.h. */
9795_ACEOF
9796cat confdefs.h >>conftest.$ac_ext
9797cat >>conftest.$ac_ext <<_ACEOF
9798/* end confdefs.h. */
9799$ac_includes_default
9800int
9801main ()
9802{
9803#ifndef fseeko64
9804 char *p = (char *) fseeko64;
9805#endif
9806
9807 ;
9808 return 0;
9809}
9810_ACEOF
9811rm -f conftest.$ac_objext
9812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9813 (eval $ac_compile) 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
eac338cf 9820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec7b76fe
JG
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_cv_have_decl_fseeko64=yes
9833else
9834 echo "$as_me: failed program was:" >&5
9835sed 's/^/| /' conftest.$ac_ext >&5
9836
9837ac_cv_have_decl_fseeko64=no
9838fi
9839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9840fi
9841echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
9842echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
9843if test $ac_cv_have_decl_fseeko64 = yes; then
9844
9845cat >>confdefs.h <<_ACEOF
9846#define HAVE_DECL_FSEEKO64 1
9847_ACEOF
9848
9849
9850else
9851 cat >>confdefs.h <<_ACEOF
9852#define HAVE_DECL_FSEEKO64 0
9853_ACEOF
9854
9855
9856fi
9857
9858
2e9ebff5 9859
6be7c12c 9860
252b5132 9861case "${host}" in
855b0be7 9862*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
9863
9864cat >>confdefs.h <<\_ACEOF
252b5132 9865#define USE_BINARY_FOPEN 1
5464f5a1 9866_ACEOF
252b5132
RH
9867 ;;
9868esac
9869
d34a2b1d
JG
9870echo "$as_me:$LINENO: checking whether ffs is declared" >&5
9871echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
9872if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 9873 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9874else
5464f5a1
NN
9875 cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h. */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h. */
d34a2b1d 9881$ac_includes_default
5464f5a1
NN
9882int
9883main ()
9884{
d34a2b1d
JG
9885#ifndef ffs
9886 char *p = (char *) ffs;
9887#endif
9888
5464f5a1
NN
9889 ;
9890 return 0;
9891}
9892_ACEOF
9893rm -f conftest.$ac_objext
9894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9895 (eval $ac_compile) 2>conftest.er1
9896 ac_status=$?
9897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } &&
eac338cf 9902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 (eval $ac_try) 2>&5
9905 ac_status=$?
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); }; } &&
9908 { ac_try='test -s conftest.$ac_objext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
d34a2b1d 9914 ac_cv_have_decl_ffs=yes
252b5132 9915else
5464f5a1
NN
9916 echo "$as_me: failed program was:" >&5
9917sed 's/^/| /' conftest.$ac_ext >&5
9918
d34a2b1d 9919ac_cv_have_decl_ffs=no
252b5132 9920fi
5464f5a1 9921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 9922fi
d34a2b1d
JG
9923echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
9924echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
9925if test $ac_cv_have_decl_ffs = yes; then
252b5132 9926
d34a2b1d
JG
9927cat >>confdefs.h <<_ACEOF
9928#define HAVE_DECL_FFS 1
9929_ACEOF
5464f5a1 9930
d34a2b1d
JG
9931
9932else
9933 cat >>confdefs.h <<_ACEOF
9934#define HAVE_DECL_FFS 0
5464f5a1 9935_ACEOF
252b5132 9936
d34a2b1d 9937
252b5132
RH
9938fi
9939
d34a2b1d
JG
9940
9941echo "$as_me:$LINENO: checking whether free is declared" >&5
9942echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9943if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 9944 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9945else
5464f5a1
NN
9946 cat >conftest.$ac_ext <<_ACEOF
9947/* confdefs.h. */
9948_ACEOF
9949cat confdefs.h >>conftest.$ac_ext
9950cat >>conftest.$ac_ext <<_ACEOF
9951/* end confdefs.h. */
d34a2b1d 9952$ac_includes_default
5464f5a1
NN
9953int
9954main ()
9955{
d34a2b1d
JG
9956#ifndef free
9957 char *p = (char *) free;
9958#endif
9959
5464f5a1
NN
9960 ;
9961 return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext
9965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
eac338cf 9973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try='test -s conftest.$ac_objext'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 (eval $ac_try) 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
d34a2b1d 9985 ac_cv_have_decl_free=yes
252b5132 9986else
5464f5a1
NN
9987 echo "$as_me: failed program was:" >&5
9988sed 's/^/| /' conftest.$ac_ext >&5
9989
d34a2b1d 9990ac_cv_have_decl_free=no
252b5132 9991fi
5464f5a1 9992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 9993fi
d34a2b1d
JG
9994echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9995echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9996if test $ac_cv_have_decl_free = yes; then
9997
9998cat >>confdefs.h <<_ACEOF
9999#define HAVE_DECL_FREE 1
10000_ACEOF
252b5132 10001
5464f5a1 10002
d34a2b1d
JG
10003else
10004 cat >>confdefs.h <<_ACEOF
10005#define HAVE_DECL_FREE 0
5464f5a1 10006_ACEOF
252b5132 10007
d34a2b1d 10008
252b5132
RH
10009fi
10010
d34a2b1d
JG
10011
10012echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10013echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10014if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 10015 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10016else
5464f5a1
NN
10017 cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h. */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h. */
d34a2b1d 10023$ac_includes_default
5464f5a1
NN
10024int
10025main ()
10026{
d34a2b1d
JG
10027#ifndef getenv
10028 char *p = (char *) getenv;
10029#endif
10030
5464f5a1
NN
10031 ;
10032 return 0;
10033}
10034_ACEOF
10035rm -f conftest.$ac_objext
10036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10037 (eval $ac_compile) 2>conftest.er1
10038 ac_status=$?
10039 grep -v '^ *+' conftest.er1 >conftest.err
10040 rm -f conftest.er1
10041 cat conftest.err >&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } &&
eac338cf 10044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; } &&
10050 { ac_try='test -s conftest.$ac_objext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
d34a2b1d 10056 ac_cv_have_decl_getenv=yes
252b5132 10057else
5464f5a1
NN
10058 echo "$as_me: failed program was:" >&5
10059sed 's/^/| /' conftest.$ac_ext >&5
10060
d34a2b1d 10061ac_cv_have_decl_getenv=no
252b5132 10062fi
5464f5a1 10063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10064fi
d34a2b1d
JG
10065echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10066echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10067if test $ac_cv_have_decl_getenv = yes; then
252b5132 10068
d34a2b1d
JG
10069cat >>confdefs.h <<_ACEOF
10070#define HAVE_DECL_GETENV 1
10071_ACEOF
5464f5a1 10072
d34a2b1d
JG
10073
10074else
10075 cat >>confdefs.h <<_ACEOF
10076#define HAVE_DECL_GETENV 0
5464f5a1 10077_ACEOF
252b5132 10078
d34a2b1d 10079
252b5132
RH
10080fi
10081
d34a2b1d
JG
10082
10083echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10084echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
10085if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 10086 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10087else
5464f5a1
NN
10088 cat >conftest.$ac_ext <<_ACEOF
10089/* confdefs.h. */
10090_ACEOF
10091cat confdefs.h >>conftest.$ac_ext
10092cat >>conftest.$ac_ext <<_ACEOF
10093/* end confdefs.h. */
d34a2b1d 10094$ac_includes_default
5464f5a1
NN
10095int
10096main ()
10097{
d34a2b1d
JG
10098#ifndef malloc
10099 char *p = (char *) malloc;
10100#endif
10101
5464f5a1
NN
10102 ;
10103 return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext
10107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10108 (eval $ac_compile) 2>conftest.er1
10109 ac_status=$?
10110 grep -v '^ *+' conftest.er1 >conftest.err
10111 rm -f conftest.er1
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } &&
eac338cf 10115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; } &&
10121 { ac_try='test -s conftest.$ac_objext'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
d34a2b1d 10127 ac_cv_have_decl_malloc=yes
252b5132 10128else
5464f5a1
NN
10129 echo "$as_me: failed program was:" >&5
10130sed 's/^/| /' conftest.$ac_ext >&5
10131
d34a2b1d 10132ac_cv_have_decl_malloc=no
252b5132 10133fi
5464f5a1 10134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10135fi
d34a2b1d
JG
10136echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10137echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
10138if test $ac_cv_have_decl_malloc = yes; then
252b5132 10139
d34a2b1d
JG
10140cat >>confdefs.h <<_ACEOF
10141#define HAVE_DECL_MALLOC 1
10142_ACEOF
5464f5a1 10143
d34a2b1d
JG
10144
10145else
10146 cat >>confdefs.h <<_ACEOF
10147#define HAVE_DECL_MALLOC 0
5464f5a1 10148_ACEOF
252b5132 10149
d34a2b1d 10150
252b5132
RH
10151fi
10152
d34a2b1d
JG
10153
10154echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10155echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
10156if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 10157 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10158else
5464f5a1
NN
10159 cat >conftest.$ac_ext <<_ACEOF
10160/* confdefs.h. */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h. */
d34a2b1d 10165$ac_includes_default
5464f5a1
NN
10166int
10167main ()
10168{
d34a2b1d
JG
10169#ifndef realloc
10170 char *p = (char *) realloc;
10171#endif
10172
5464f5a1
NN
10173 ;
10174 return 0;
10175}
10176_ACEOF
10177rm -f conftest.$ac_objext
10178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 2>conftest.er1
10180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
eac338cf 10186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; } &&
10192 { ac_try='test -s conftest.$ac_objext'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; }; then
d34a2b1d 10198 ac_cv_have_decl_realloc=yes
252b5132 10199else
5464f5a1
NN
10200 echo "$as_me: failed program was:" >&5
10201sed 's/^/| /' conftest.$ac_ext >&5
10202
d34a2b1d 10203ac_cv_have_decl_realloc=no
252b5132 10204fi
5464f5a1 10205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10206fi
d34a2b1d
JG
10207echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10208echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
10209if test $ac_cv_have_decl_realloc = yes; then
10210
10211cat >>confdefs.h <<_ACEOF
10212#define HAVE_DECL_REALLOC 1
10213_ACEOF
252b5132 10214
5464f5a1 10215
d34a2b1d
JG
10216else
10217 cat >>confdefs.h <<_ACEOF
10218#define HAVE_DECL_REALLOC 0
efa9bda4
AL
10219_ACEOF
10220
d34a2b1d 10221
efa9bda4
AL
10222fi
10223
d34a2b1d 10224
be5cacdb
L
10225echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10226echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10227if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229else
10230 cat >conftest.$ac_ext <<_ACEOF
10231/* confdefs.h. */
10232_ACEOF
10233cat confdefs.h >>conftest.$ac_ext
10234cat >>conftest.$ac_ext <<_ACEOF
10235/* end confdefs.h. */
10236$ac_includes_default
10237int
10238main ()
10239{
10240#ifndef stpcpy
10241 char *p = (char *) stpcpy;
10242#endif
10243
10244 ;
10245 return 0;
10246}
10247_ACEOF
10248rm -f conftest.$ac_objext
10249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250 (eval $ac_compile) 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_c_werror_flag"
10258 || test ! -s conftest.err'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10261 ac_status=$?
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest.$ac_objext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10270 ac_cv_have_decl_stpcpy=yes
10271else
10272 echo "$as_me: failed program was:" >&5
10273sed 's/^/| /' conftest.$ac_ext >&5
10274
10275ac_cv_have_decl_stpcpy=no
10276fi
10277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278fi
10279echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10280echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
10281if test $ac_cv_have_decl_stpcpy = yes; then
10282
10283cat >>confdefs.h <<_ACEOF
10284#define HAVE_DECL_STPCPY 1
10285_ACEOF
10286
10287
10288else
10289 cat >>confdefs.h <<_ACEOF
10290#define HAVE_DECL_STPCPY 0
10291_ACEOF
10292
10293
10294fi
10295
10296
d34a2b1d
JG
10297echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10298echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10299if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301else
10302 cat >conftest.$ac_ext <<_ACEOF
10303/* confdefs.h. */
10304_ACEOF
10305cat confdefs.h >>conftest.$ac_ext
10306cat >>conftest.$ac_ext <<_ACEOF
10307/* end confdefs.h. */
d34a2b1d 10308$ac_includes_default
efa9bda4
AL
10309int
10310main ()
10311{
d34a2b1d
JG
10312#ifndef strstr
10313 char *p = (char *) strstr;
10314#endif
10315
efa9bda4
AL
10316 ;
10317 return 0;
10318}
10319_ACEOF
10320rm -f conftest.$ac_objext
10321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10322 (eval $ac_compile) 2>conftest.er1
10323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } &&
eac338cf 10329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
efa9bda4
AL
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; } &&
10335 { ac_try='test -s conftest.$ac_objext'
10336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10337 (eval $ac_try) 2>&5
10338 ac_status=$?
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); }; }; then
d34a2b1d 10341 ac_cv_have_decl_strstr=yes
efa9bda4
AL
10342else
10343 echo "$as_me: failed program was:" >&5
10344sed 's/^/| /' conftest.$ac_ext >&5
10345
d34a2b1d 10346ac_cv_have_decl_strstr=no
efa9bda4
AL
10347fi
10348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10349fi
d34a2b1d
JG
10350echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10351echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10352if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 10353
d34a2b1d
JG
10354cat >>confdefs.h <<_ACEOF
10355#define HAVE_DECL_STRSTR 1
10356_ACEOF
efa9bda4 10357
d34a2b1d
JG
10358
10359else
10360 cat >>confdefs.h <<_ACEOF
10361#define HAVE_DECL_STRSTR 0
5464f5a1 10362_ACEOF
252b5132 10363
d34a2b1d 10364
252b5132
RH
10365fi
10366
6be7c12c 10367
d34a2b1d 10368
252b5132
RH
10369# If we are configured native, pick a core file support file.
10370COREFILE=
10371COREFLAG=
10372TRAD_HEADER=
10373if test "${target}" = "${host}"; then
10374 case "${host}" in
13dfd2d0 10375 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
10376 COREFILE=''
10377 ;;
ed84e695 10378 alpha*-*-linux-*)
252b5132
RH
10379 COREFILE=trad-core.lo
10380 TRAD_HEADER='"hosts/alphalinux.h"'
10381 ;;
690cc98b
NC
10382 alpha*-*-netbsd* | alpha*-*-openbsd*)
10383 COREFILE=netbsd-core.lo
10384 ;;
252b5132 10385 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
10386 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
10387 COREFILE='' ;;
61d0bc33 10388 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
10389 arm-*-riscix) COREFILE=trad-core.lo ;;
10390 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
10391 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
10392 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
10393 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
10394 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
10395 hppa*-*-netbsd* | hppa*-*-openbsd*)
10396 COREFILE=netbsd-core.lo
10397 ;;
10398
dc810e39 10399 i370-*-*)
5b93d8bb
AM
10400 COREFILE=trad-core.lo
10401 TRAD_HEADER='"hosts/i370linux.h"'
10402 ;;
10403
80c7c40a 10404 i[3-7]86-sequent-bsd*)
5b93d8bb 10405 COREFILE=trad-core.lo
252b5132
RH
10406 TRAD_HEADER='"hosts/symmetry.h"'
10407 ;;
80c7c40a
NC
10408 i[3-7]86-sequent-sysv4*) ;;
10409 i[3-7]86-sequent-sysv*)
252b5132
RH
10410 COREFILE=trad-core.lo
10411 TRAD_HEADER='"hosts/symmetry.h"'
10412 ;;
80c7c40a 10413 i[3-7]86-*-bsdi)
7e3b3466
NC
10414 COREFILE=
10415 ;;
d2bef492 10416 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
10417 COREFILE=trad-core.lo
10418 TRAD_HEADER='"hosts/i386bsd.h"'
10419 ;;
13dfd2d0 10420 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
10421 COREFILE=''
10422 TRAD_HEADER='"hosts/i386bsd.h"'
10423 ;;
4615568e 10424 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
10425 COREFILE=netbsd-core.lo
10426 ;;
80c7c40a 10427 i[3-7]86-esix-sysv3*)
252b5132
RH
10428 COREFILE=trad-core.lo
10429 TRAD_HEADER='"hosts/esix.h"'
10430 ;;
80c7c40a 10431 i[3-7]86-*-sco3.2v5*)
252b5132
RH
10432 COREFILE=sco5-core.lo
10433 ;;
80c7c40a 10434 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
10435 COREFILE=trad-core.lo
10436 TRAD_HEADER='"hosts/i386sco.h"'
10437 ;;
80c7c40a 10438 i[3-7]86-*-mach3*)
252b5132
RH
10439 COREFILE=trad-core.lo
10440 TRAD_HEADER='"hosts/i386mach3.h"'
10441 ;;
ed84e695 10442 i[3-7]86-*-linux-*)
252b5132
RH
10443 COREFILE=trad-core.lo
10444 TRAD_HEADER='"hosts/i386linux.h"'
10445 ;;
80c7c40a
NC
10446 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
10447 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
10448 i860-*-mach3* | i860-*-osf1*)
10449 COREFILE=trad-core.lo
10450 TRAD_HEADER='"hosts/i860mach3.h"'
10451 ;;
252b5132
RH
10452 mips-*-netbsd* | mips*-*-openbsd*)
10453 COREFILE=netbsd-core.lo
10454 ;;
10455 mips-dec-*)
10456 COREFILE=trad-core.lo
10457 TRAD_HEADER='"hosts/decstation.h"'
10458 ;;
10459 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
10460 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
10461 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
10462 mips-*-sysv4*) ;;
10463 mips-*-sysv* | mips-*-riscos*)
10464 COREFILE=trad-core.lo
10465 TRAD_HEADER='"hosts/riscos.h"'
10466 ;;
10467 mips-sony-bsd*)
10468 COREFILE=trad-core.lo
10469 TRAD_HEADER='"hosts/news-mips.h"'
10470 ;;
10471 m68*-bull*-sysv*)
10472 COREFILE=trad-core.lo
10473 TRAD_HEADER='"hosts/dpx2.h"'
10474 ;;
10475 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
10476 m68*-hp-bsd*)
10477 COREFILE=trad-core.lo
10478 TRAD_HEADER='"hosts/hp300bsd.h"'
10479 ;;
ed84e695 10480 m68*-*-linux-*)
252b5132
RH
10481 COREFILE=trad-core.lo
10482 TRAD_HEADER='"hosts/m68klinux.h"'
10483 ;;
10484 m68*-motorola-sysv*)
10485 COREFILE=trad-core.lo
10486 TRAD_HEADER='"hosts/delta68.h"'
10487 ;;
10488 m68*-sony-*)
10489 COREFILE=trad-core.lo
10490 TRAD_HEADER='"hosts/news.h"'
10491 ;;
10492 m68*-*-netbsd* | m68*-*-openbsd*)
10493 COREFILE=netbsd-core.lo
10494 ;;
10495 m68*-apple-aux*)
10496 COREFILE=trad-core.lo
10497 TRAD_HEADER='"hosts/m68kaux.h"'
10498 ;;
eb1e0e80
NC
10499 m88*-*-sysv4*)
10500 ;;
10501 m88*-motorola-sysv*)
10502 COREFILE=ptrace-core.lo
10503 ;;
252b5132
RH
10504 m88*-*-mach3*)
10505 COREFILE=trad-core.lo
10506 TRAD_HEADER='"hosts/m88kmach3.h"'
10507 ;;
c6f8758f
NC
10508 m88*-*-openbsd*)
10509 COREFILE=netbsd-core.lo
10510 ;;
252b5132
RH
10511 ns32k-pc532-mach)
10512 COREFILE=trad-core.lo
10513 TRAD_HEADER='"hosts/pc532mach.h"'
10514 ;;
10515 ns32k-*-netbsd* | ns32k-*-openbsd*)
10516 COREFILE=netbsd-core.lo
10517 ;;
eb1e0e80
NC
10518 rs6000-*-lynx*)
10519 COREFILE=lynx-core.lo
10520 ;;
10521 rs6000-*-aix5.* | powerpc-*-aix5.*)
10522 COREFILE=rs6000-core.lo
10523 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
10524 ;;
83954261 10525 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
10526 COREFILE=rs6000-core.lo
10527 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
10528 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
10529 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
10530 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
10531echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
10532 cat >conftest.$ac_ext <<_ACEOF
10533/* confdefs.h. */
10534_ACEOF
10535cat confdefs.h >>conftest.$ac_ext
10536cat >>conftest.$ac_ext <<_ACEOF
10537/* end confdefs.h. */
83954261 10538#include <core.h>
5464f5a1
NN
10539int
10540main ()
10541{
83954261 10542struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
10543 ;
10544 return 0;
10545}
10546_ACEOF
10547rm -f conftest.$ac_objext
10548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10549 (eval $ac_compile) 2>conftest.er1
10550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
eac338cf 10556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; } &&
10562 { ac_try='test -s conftest.$ac_objext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568
10569cat >>confdefs.h <<\_ACEOF
83954261 10570#define HAVE_ST_C_IMPL 1
5464f5a1 10571_ACEOF
83954261 10572
5464f5a1
NN
10573 echo "$as_me:$LINENO: result: yes" >&5
10574echo "${ECHO_T}yes" >&6
83954261 10575else
5464f5a1
NN
10576 echo "$as_me: failed program was:" >&5
10577sed 's/^/| /' conftest.$ac_ext >&5
10578
10579echo "$as_me:$LINENO: result: no" >&5
10580echo "${ECHO_T}no" >&6
83954261 10581fi
5464f5a1 10582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 10583 ;;
252b5132
RH
10584 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
10585 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
10586 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
10587 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
10588 powerpc-*-beos*) ;;
13dfd2d0
NC
10589 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
10590 COREFILE='' ;;
252b5132 10591 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 10592 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 10593 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 10594 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 10595 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
10596 COREFILE=netbsd-core.lo
10597 ;;
10598 tahoe-*-*)
10599 COREFILE=trad-core.lo
10600 TRAD_HEADER='"hosts/tahoe.h"'
10601 ;;
de6e5e1a
NC
10602 vax-*-netbsd* | vax-*-openbsd*)
10603 COREFILE=netbsd-core.lo
10604 ;;
252b5132
RH
10605 vax-*-ultrix2*)
10606 COREFILE=trad-core.lo
10607 TRAD_HEADER='"hosts/vaxult2.h"'
10608 ;;
10609 vax-*-ultrix*)
10610 COREFILE=trad-core.lo
10611 TRAD_HEADER='"hosts/vaxult2.h"'
10612 ;;
ed84e695 10613 vax-*-linux-*)
f8fc3443
NC
10614 COREFILE=trad-core.lo
10615 TRAD_HEADER='"hosts/vaxlinux.h"'
10616 ;;
252b5132
RH
10617 vax-*-*)
10618 COREFILE=trad-core.lo
10619 TRAD_HEADER='"hosts/vaxbsd.h"'
10620 ;;
85cfd8d3
MK
10621 x86_64-*-netbsd* | x86_64-*-openbsd*)
10622 COREFILE=netbsd-core.lo
10623 ;;
252b5132
RH
10624 esac
10625
10626 case "$COREFILE" in
10627 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
10628 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
10629 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
10630 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
10631 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
10632 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
10633 osf-core.lo) COREFLAG=-DOSF_CORE ;;
10634 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
10635 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
10636 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
10637 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
10638 esac
10639
10640 # ELF corefile support has several flavors, but all of
10641 # them use something called <sys/procfs.h>
5464f5a1
NN
10642
10643for ac_header in sys/procfs.h
252b5132 10644do
5464f5a1
NN
10645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10646if eval "test \"\${$as_ac_Header+set}\" = set"; then
10647 echo "$as_me:$LINENO: checking for $ac_header" >&5
10648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10649if eval "test \"\${$as_ac_Header+set}\" = set"; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651fi
10652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10654else
10655 # Is the header compilable?
10656echo "$as_me:$LINENO: checking $ac_header usability" >&5
10657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10658cat >conftest.$ac_ext <<_ACEOF
10659/* confdefs.h. */
10660_ACEOF
10661cat confdefs.h >>conftest.$ac_ext
10662cat >>conftest.$ac_ext <<_ACEOF
10663/* end confdefs.h. */
10664$ac_includes_default
10665#include <$ac_header>
10666_ACEOF
10667rm -f conftest.$ac_objext
10668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669 (eval $ac_compile) 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
eac338cf 10676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; } &&
10682 { ac_try='test -s conftest.$ac_objext'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
10688 ac_header_compiler=yes
10689else
10690 echo "$as_me: failed program was:" >&5
10691sed 's/^/| /' conftest.$ac_ext >&5
10692
10693ac_header_compiler=no
10694fi
10695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10696echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10697echo "${ECHO_T}$ac_header_compiler" >&6
10698
10699# Is the header present?
10700echo "$as_me:$LINENO: checking $ac_header presence" >&5
10701echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10702cat >conftest.$ac_ext <<_ACEOF
10703/* confdefs.h. */
10704_ACEOF
10705cat confdefs.h >>conftest.$ac_ext
10706cat >>conftest.$ac_ext <<_ACEOF
10707/* end confdefs.h. */
10708#include <$ac_header>
10709_ACEOF
10710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } >/dev/null; then
10718 if test -s conftest.err; then
10719 ac_cpp_err=$ac_c_preproc_warn_flag
10720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10721 else
10722 ac_cpp_err=
10723 fi
252b5132 10724else
5464f5a1 10725 ac_cpp_err=yes
252b5132 10726fi
5464f5a1
NN
10727if test -z "$ac_cpp_err"; then
10728 ac_header_preproc=yes
10729else
10730 echo "$as_me: failed program was:" >&5
10731sed 's/^/| /' conftest.$ac_ext >&5
10732
10733 ac_header_preproc=no
252b5132 10734fi
5464f5a1
NN
10735rm -f conftest.err conftest.$ac_ext
10736echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10737echo "${ECHO_T}$ac_header_preproc" >&6
10738
10739# So? What about this header?
10740case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10741 yes:no: )
10742 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10743echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10745echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10746 ac_header_preproc=yes
10747 ;;
10748 no:yes:* )
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10750echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10752echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10753 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10754echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10755 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10756echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10758echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10760echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10761 (
10762 cat <<\_ASBOX
10763## ------------------------------------------ ##
10764## Report this to the AC_PACKAGE_NAME lists. ##
10765## ------------------------------------------ ##
10766_ASBOX
10767 ) |
10768 sed "s/^/$as_me: WARNING: /" >&2
10769 ;;
10770esac
10771echo "$as_me:$LINENO: checking for $ac_header" >&5
10772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10773if eval "test \"\${$as_ac_Header+set}\" = set"; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 10775else
5464f5a1
NN
10776 eval "$as_ac_Header=\$ac_header_preproc"
10777fi
10778echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10779echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10780
252b5132 10781fi
5464f5a1
NN
10782if test `eval echo '${'$as_ac_Header'}'` = yes; then
10783 cat >>confdefs.h <<_ACEOF
10784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10785_ACEOF
10786
10787fi
10788
252b5132
RH
10789done
10790
10791 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
10792 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
10793echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
10794 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796else
10797 cat >conftest.$ac_ext <<_ACEOF
10798/* confdefs.h. */
10799_ACEOF
10800cat confdefs.h >>conftest.$ac_ext
10801cat >>conftest.$ac_ext <<_ACEOF
10802/* end confdefs.h. */
7ee38065
MS
10803
10804#define _SYSCALL32
252b5132 10805#include <sys/procfs.h>
5464f5a1
NN
10806int
10807main ()
10808{
252b5132 10809prstatus_t avar
5464f5a1
NN
10810 ;
10811 return 0;
10812}
10813_ACEOF
10814rm -f conftest.$ac_objext
10815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10816 (eval $ac_compile) 2>conftest.er1
10817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
eac338cf 10823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest.$ac_objext'
10830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
252b5132
RH
10835 bfd_cv_have_sys_procfs_type_prstatus_t=yes
10836else
5464f5a1
NN
10837 echo "$as_me: failed program was:" >&5
10838sed 's/^/| /' conftest.$ac_ext >&5
10839
10840bfd_cv_have_sys_procfs_type_prstatus_t=no
10841
252b5132 10842fi
5464f5a1 10843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10844fi
10845
10846 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
10847
10848cat >>confdefs.h <<\_ACEOF
252b5132 10849#define HAVE_PRSTATUS_T 1
5464f5a1 10850_ACEOF
252b5132
RH
10851
10852 fi
5464f5a1
NN
10853 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10854echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 10855
5464f5a1
NN
10856 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10857echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10858 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10860else
5464f5a1
NN
10861 cat >conftest.$ac_ext <<_ACEOF
10862/* confdefs.h. */
10863_ACEOF
10864cat confdefs.h >>conftest.$ac_ext
10865cat >>conftest.$ac_ext <<_ACEOF
10866/* end confdefs.h. */
7ee38065
MS
10867
10868#define _SYSCALL32
10869#include <sys/procfs.h>
5464f5a1
NN
10870int
10871main ()
10872{
7ee38065 10873prstatus32_t avar
5464f5a1
NN
10874 ;
10875 return 0;
10876}
10877_ACEOF
10878rm -f conftest.$ac_objext
10879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10880 (eval $ac_compile) 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
eac338cf 10887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
10893 { ac_try='test -s conftest.$ac_objext'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
7ee38065
MS
10899 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10900else
5464f5a1
NN
10901 echo "$as_me: failed program was:" >&5
10902sed 's/^/| /' conftest.$ac_ext >&5
10903
10904bfd_cv_have_sys_procfs_type_prstatus32_t=no
10905
7ee38065 10906fi
5464f5a1 10907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10908fi
10909
10910 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
10911
10912cat >>confdefs.h <<\_ACEOF
7ee38065 10913#define HAVE_PRSTATUS32_T 1
5464f5a1 10914_ACEOF
7ee38065
MS
10915
10916 fi
5464f5a1
NN
10917 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10918echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 10919
5464f5a1
NN
10920 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10921echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10922 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10924else
5464f5a1
NN
10925 cat >conftest.$ac_ext <<_ACEOF
10926/* confdefs.h. */
10927_ACEOF
10928cat confdefs.h >>conftest.$ac_ext
10929cat >>conftest.$ac_ext <<_ACEOF
10930/* end confdefs.h. */
7ee38065
MS
10931
10932#define _SYSCALL32
252b5132 10933#include <sys/procfs.h>
5464f5a1
NN
10934int
10935main ()
10936{
252b5132 10937prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
10938 ;
10939 return 0;
10940}
10941_ACEOF
10942rm -f conftest.$ac_objext
10943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944 (eval $ac_compile) 2>conftest.er1
10945 ac_status=$?
10946 grep -v '^ *+' conftest.er1 >conftest.err
10947 rm -f conftest.er1
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
eac338cf 10951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest.$ac_objext'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
252b5132
RH
10963 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10964else
5464f5a1
NN
10965 echo "$as_me: failed program was:" >&5
10966sed 's/^/| /' conftest.$ac_ext >&5
10967
10968bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10969
252b5132 10970fi
5464f5a1 10971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10972fi
10973
10974 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
10975
10976cat >>confdefs.h <<\_ACEOF
252b5132 10977#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 10978_ACEOF
252b5132
RH
10979
10980 fi
5464f5a1
NN
10981 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10982echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 10983
5464f5a1
NN
10984 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10985echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10986 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10988else
5464f5a1
NN
10989 cat >conftest.$ac_ext <<_ACEOF
10990/* confdefs.h. */
10991_ACEOF
10992cat confdefs.h >>conftest.$ac_ext
10993cat >>conftest.$ac_ext <<_ACEOF
10994/* end confdefs.h. */
7ee38065
MS
10995
10996#define _SYSCALL32
10997#include <sys/procfs.h>
5464f5a1
NN
10998int
10999main ()
11000{
7ee38065 11001prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
11002 ;
11003 return 0;
11004}
11005_ACEOF
11006rm -f conftest.$ac_objext
11007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008 (eval $ac_compile) 2>conftest.er1
11009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
eac338cf 11015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest.$ac_objext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
7ee38065
MS
11027 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
11028else
5464f5a1
NN
11029 echo "$as_me: failed program was:" >&5
11030sed 's/^/| /' conftest.$ac_ext >&5
11031
11032bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
11033
7ee38065 11034fi
5464f5a1 11035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11036fi
11037
11038 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
11039
11040cat >>confdefs.h <<\_ACEOF
7ee38065 11041#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 11042_ACEOF
7ee38065
MS
11043
11044 fi
5464f5a1
NN
11045 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
11046echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 11047
5464f5a1
NN
11048 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
11049echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
11050 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11052else
5464f5a1
NN
11053 cat >conftest.$ac_ext <<_ACEOF
11054/* confdefs.h. */
11055_ACEOF
11056cat confdefs.h >>conftest.$ac_ext
11057cat >>conftest.$ac_ext <<_ACEOF
11058/* end confdefs.h. */
7ee38065
MS
11059
11060#define _SYSCALL32
252b5132 11061#include <sys/procfs.h>
5464f5a1
NN
11062int
11063main ()
11064{
252b5132 11065pstatus_t avar
5464f5a1
NN
11066 ;
11067 return 0;
11068}
11069_ACEOF
11070rm -f conftest.$ac_objext
11071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11072 (eval $ac_compile) 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
eac338cf 11079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest.$ac_objext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
252b5132
RH
11091 bfd_cv_have_sys_procfs_type_pstatus_t=yes
11092else
5464f5a1
NN
11093 echo "$as_me: failed program was:" >&5
11094sed 's/^/| /' conftest.$ac_ext >&5
11095
11096bfd_cv_have_sys_procfs_type_pstatus_t=no
11097
252b5132 11098fi
5464f5a1 11099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11100fi
11101
11102 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
11103
11104cat >>confdefs.h <<\_ACEOF
252b5132 11105#define HAVE_PSTATUS_T 1
5464f5a1 11106_ACEOF
252b5132
RH
11107
11108 fi
5464f5a1
NN
11109 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11110echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 11111
5464f5a1
NN
11112 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
11113echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
11114 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
11115 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 11116else
5464f5a1
NN
11117 cat >conftest.$ac_ext <<_ACEOF
11118/* confdefs.h. */
11119_ACEOF
11120cat confdefs.h >>conftest.$ac_ext
11121cat >>conftest.$ac_ext <<_ACEOF
11122/* end confdefs.h. */
f572a39d
AM
11123
11124#define _SYSCALL32
11125#include <sys/procfs.h>
5464f5a1
NN
11126int
11127main ()
11128{
f572a39d 11129pxstatus_t avar
5464f5a1
NN
11130 ;
11131 return 0;
11132}
11133_ACEOF
11134rm -f conftest.$ac_objext
11135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11136 (eval $ac_compile) 2>conftest.er1
11137 ac_status=$?
11138 grep -v '^ *+' conftest.er1 >conftest.err
11139 rm -f conftest.er1
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
eac338cf 11143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest.$ac_objext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
f572a39d
AM
11155 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
11156else
5464f5a1
NN
11157 echo "$as_me: failed program was:" >&5
11158sed 's/^/| /' conftest.$ac_ext >&5
11159
11160bfd_cv_have_sys_procfs_type_pxstatus_t=no
11161
f572a39d 11162fi
5464f5a1 11163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
11164fi
11165
11166 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
11167
11168cat >>confdefs.h <<\_ACEOF
f572a39d 11169#define HAVE_PXSTATUS_T 1
5464f5a1 11170_ACEOF
f572a39d
AM
11171
11172 fi
5464f5a1
NN
11173 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
11174echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 11175
5464f5a1
NN
11176 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
11177echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
11178 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 11180else
5464f5a1
NN
11181 cat >conftest.$ac_ext <<_ACEOF
11182/* confdefs.h. */
11183_ACEOF
11184cat confdefs.h >>conftest.$ac_ext
11185cat >>conftest.$ac_ext <<_ACEOF
11186/* end confdefs.h. */
7ee38065
MS
11187
11188#define _SYSCALL32
11189#include <sys/procfs.h>
5464f5a1
NN
11190int
11191main ()
11192{
7ee38065 11193pstatus32_t avar
5464f5a1
NN
11194 ;
11195 return 0;
11196}
11197_ACEOF
11198rm -f conftest.$ac_objext
11199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11200 (eval $ac_compile) 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } &&
eac338cf 11207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11210 ac_status=$?
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; } &&
11213 { ac_try='test -s conftest.$ac_objext'
11214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
7ee38065
MS
11219 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
11220else
5464f5a1
NN
11221 echo "$as_me: failed program was:" >&5
11222sed 's/^/| /' conftest.$ac_ext >&5
11223
11224bfd_cv_have_sys_procfs_type_pstatus32_t=no
11225
7ee38065 11226fi
5464f5a1 11227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11228fi
11229
11230 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
11231
11232cat >>confdefs.h <<\_ACEOF
7ee38065 11233#define HAVE_PSTATUS32_T 1
5464f5a1 11234_ACEOF
7ee38065
MS
11235
11236 fi
5464f5a1
NN
11237 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
11238echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 11239
5464f5a1
NN
11240 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
11241echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
11242 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11244else
5464f5a1
NN
11245 cat >conftest.$ac_ext <<_ACEOF
11246/* confdefs.h. */
11247_ACEOF
11248cat confdefs.h >>conftest.$ac_ext
11249cat >>conftest.$ac_ext <<_ACEOF
11250/* end confdefs.h. */
7ee38065
MS
11251
11252#define _SYSCALL32
252b5132 11253#include <sys/procfs.h>
5464f5a1
NN
11254int
11255main ()
11256{
252b5132 11257prpsinfo_t avar
5464f5a1
NN
11258 ;
11259 return 0;
11260}
11261_ACEOF
11262rm -f conftest.$ac_objext
11263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11264 (eval $ac_compile) 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
eac338cf 11271 { ac_try='test -z "$ac_c_werror_flag" || 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
252b5132
RH
11283 bfd_cv_have_sys_procfs_type_prpsinfo_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_prpsinfo_t=no
11289
252b5132 11290fi
5464f5a1 11291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11292fi
11293
11294 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
11295
11296cat >>confdefs.h <<\_ACEOF
252b5132 11297#define HAVE_PRPSINFO_T 1
5464f5a1 11298_ACEOF
252b5132
RH
11299
11300 fi
5464f5a1
NN
11301 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
11302echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 11303
5464f5a1
NN
11304 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
11305echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
11306 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 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
11317#include <sys/procfs.h>
5464f5a1
NN
11318int
11319main ()
11320{
7ee38065 11321prpsinfo32_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); } &&
eac338cf 11335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
7ee38065
MS
11347 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
11348else
5464f5a1
NN
11349 echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
11353
7ee38065 11354fi
5464f5a1 11355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11356fi
11357
11358 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
11359
11360cat >>confdefs.h <<\_ACEOF
7ee38065 11361#define HAVE_PRPSINFO32_T 1
5464f5a1 11362_ACEOF
7ee38065
MS
11363
11364 fi
5464f5a1
NN
11365 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
11366echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 11367
5464f5a1
NN
11368 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
11369echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
11370 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11372else
5464f5a1
NN
11373 cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
7ee38065
MS
11379
11380#define _SYSCALL32
252b5132 11381#include <sys/procfs.h>
5464f5a1
NN
11382int
11383main ()
11384{
252b5132 11385psinfo_t avar
5464f5a1
NN
11386 ;
11387 return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext
11391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11392 (eval $ac_compile) 2>conftest.er1
11393 ac_status=$?
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
eac338cf 11399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } &&
11405 { ac_try='test -s conftest.$ac_objext'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then
252b5132
RH
11411 bfd_cv_have_sys_procfs_type_psinfo_t=yes
11412else
5464f5a1
NN
11413 echo "$as_me: failed program was:" >&5
11414sed 's/^/| /' conftest.$ac_ext >&5
11415
11416bfd_cv_have_sys_procfs_type_psinfo_t=no
11417
252b5132 11418fi
5464f5a1 11419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11420fi
11421
11422 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
11423
11424cat >>confdefs.h <<\_ACEOF
252b5132 11425#define HAVE_PSINFO_T 1
5464f5a1 11426_ACEOF
252b5132
RH
11427
11428 fi
5464f5a1
NN
11429 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
11430echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 11431
5464f5a1
NN
11432 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
11433echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
11434 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 11436else
5464f5a1
NN
11437 cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h. */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h. */
7ee38065
MS
11443
11444#define _SYSCALL32
11445#include <sys/procfs.h>
5464f5a1
NN
11446int
11447main ()
11448{
7ee38065 11449psinfo32_t avar
5464f5a1
NN
11450 ;
11451 return 0;
11452}
11453_ACEOF
11454rm -f conftest.$ac_objext
11455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11456 (eval $ac_compile) 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
eac338cf 11463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; } &&
11469 { ac_try='test -s conftest.$ac_objext'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
7ee38065
MS
11475 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
11476else
5464f5a1
NN
11477 echo "$as_me: failed program was:" >&5
11478sed 's/^/| /' conftest.$ac_ext >&5
11479
11480bfd_cv_have_sys_procfs_type_psinfo32_t=no
11481
7ee38065 11482fi
5464f5a1 11483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11484fi
11485
11486 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
11487
11488cat >>confdefs.h <<\_ACEOF
7ee38065 11489#define HAVE_PSINFO32_T 1
5464f5a1 11490_ACEOF
7ee38065
MS
11491
11492 fi
5464f5a1
NN
11493 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
11494echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 11495
5464f5a1
NN
11496 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
11497echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
11498 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11500else
5464f5a1
NN
11501 cat >conftest.$ac_ext <<_ACEOF
11502/* confdefs.h. */
11503_ACEOF
11504cat confdefs.h >>conftest.$ac_ext
11505cat >>conftest.$ac_ext <<_ACEOF
11506/* end confdefs.h. */
7ee38065
MS
11507
11508#define _SYSCALL32
252b5132 11509#include <sys/procfs.h>
5464f5a1
NN
11510int
11511main ()
11512{
252b5132 11513lwpstatus_t avar
5464f5a1
NN
11514 ;
11515 return 0;
11516}
11517_ACEOF
11518rm -f conftest.$ac_objext
11519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11520 (eval $ac_compile) 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
eac338cf 11527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest.$ac_objext'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
252b5132
RH
11539 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
11540else
5464f5a1
NN
11541 echo "$as_me: failed program was:" >&5
11542sed 's/^/| /' conftest.$ac_ext >&5
11543
11544bfd_cv_have_sys_procfs_type_lwpstatus_t=no
11545
252b5132 11546fi
5464f5a1 11547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11548fi
11549
11550 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
11551
11552cat >>confdefs.h <<\_ACEOF
252b5132 11553#define HAVE_LWPSTATUS_T 1
5464f5a1 11554_ACEOF
252b5132
RH
11555
11556 fi
5464f5a1
NN
11557 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
11558echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 11559
5464f5a1
NN
11560 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
11561echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
11562 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 11564else
5464f5a1
NN
11565 cat >conftest.$ac_ext <<_ACEOF
11566/* confdefs.h. */
11567_ACEOF
11568cat confdefs.h >>conftest.$ac_ext
11569cat >>conftest.$ac_ext <<_ACEOF
11570/* end confdefs.h. */
f572a39d
AM
11571
11572#define _SYSCALL32
11573#include <sys/procfs.h>
5464f5a1
NN
11574int
11575main ()
11576{
f572a39d 11577lwpxstatus_t avar
5464f5a1
NN
11578 ;
11579 return 0;
11580}
11581_ACEOF
11582rm -f conftest.$ac_objext
11583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11584 (eval $ac_compile) 2>conftest.er1
11585 ac_status=$?
11586 grep -v '^ *+' conftest.er1 >conftest.err
11587 rm -f conftest.er1
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } &&
eac338cf 11591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; } &&
11597 { ac_try='test -s conftest.$ac_objext'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
f572a39d
AM
11603 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
11604else
5464f5a1
NN
11605 echo "$as_me: failed program was:" >&5
11606sed 's/^/| /' conftest.$ac_ext >&5
11607
11608bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
11609
f572a39d 11610fi
5464f5a1 11611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
11612fi
11613
11614 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
11615
11616cat >>confdefs.h <<\_ACEOF
f572a39d 11617#define HAVE_LWPXSTATUS_T 1
5464f5a1 11618_ACEOF
f572a39d
AM
11619
11620 fi
5464f5a1
NN
11621 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
11622echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 11623
5464f5a1
NN
11624 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
11625echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
11626 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11628else
5464f5a1
NN
11629 cat >conftest.$ac_ext <<_ACEOF
11630/* confdefs.h. */
11631_ACEOF
11632cat confdefs.h >>conftest.$ac_ext
11633cat >>conftest.$ac_ext <<_ACEOF
11634/* end confdefs.h. */
7ee38065
MS
11635
11636#define _SYSCALL32
252b5132 11637#include <sys/procfs.h>
5464f5a1
NN
11638int
11639main ()
11640{
252b5132 11641lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
11642 ;
11643 return 0;
11644}
11645_ACEOF
11646rm -f conftest.$ac_objext
11647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11648 (eval $ac_compile) 2>conftest.er1
11649 ac_status=$?
11650 grep -v '^ *+' conftest.er1 >conftest.err
11651 rm -f conftest.er1
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
eac338cf 11655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
252b5132
RH
11667 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
11668else
5464f5a1
NN
11669 echo "$as_me: failed program was:" >&5
11670sed 's/^/| /' conftest.$ac_ext >&5
11671
11672bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
11673
252b5132 11674fi
5464f5a1 11675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11676fi
11677
11678 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
11679
11680cat >>confdefs.h <<\_ACEOF
252b5132 11681#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 11682_ACEOF
252b5132
RH
11683
11684 fi
5464f5a1
NN
11685 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
11686echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 11687
5464f5a1
NN
11688 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
11689echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
11690 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11692else
5464f5a1
NN
11693 cat >conftest.$ac_ext <<_ACEOF
11694/* confdefs.h. */
11695_ACEOF
11696cat confdefs.h >>conftest.$ac_ext
11697cat >>conftest.$ac_ext <<_ACEOF
11698/* end confdefs.h. */
7ee38065
MS
11699
11700#define _SYSCALL32
252b5132 11701#include <sys/procfs.h>
5464f5a1
NN
11702int
11703main ()
11704{
252b5132 11705lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
11706 ;
11707 return 0;
11708}
11709_ACEOF
11710rm -f conftest.$ac_objext
11711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>conftest.er1
11713 ac_status=$?
11714 grep -v '^ *+' conftest.er1 >conftest.err
11715 rm -f conftest.er1
11716 cat conftest.err >&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
eac338cf 11719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11722 ac_status=$?
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; } &&
11725 { ac_try='test -s conftest.$ac_objext'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11728 ac_status=$?
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }; then
252b5132
RH
11731 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
11732else
5464f5a1
NN
11733 echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
11737
252b5132 11738fi
5464f5a1 11739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11740fi
11741
11742 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
11743
11744cat >>confdefs.h <<\_ACEOF
252b5132 11745#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 11746_ACEOF
252b5132
RH
11747
11748 fi
5464f5a1
NN
11749 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
11750echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 11751
5464f5a1
NN
11752 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
11753echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
11754 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 11756else
5464f5a1
NN
11757 cat >conftest.$ac_ext <<_ACEOF
11758/* confdefs.h. */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h. */
7ee38065
MS
11763
11764#define _SYSCALL32
e3c976c4 11765#include <sys/procfs.h>
5464f5a1
NN
11766int
11767main ()
11768{
e3c976c4 11769win32_pstatus_t avar
5464f5a1
NN
11770 ;
11771 return 0;
11772}
11773_ACEOF
11774rm -f conftest.$ac_objext
11775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776 (eval $ac_compile) 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
eac338cf 11783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785 (eval $ac_try) 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; } &&
11789 { ac_try='test -s conftest.$ac_objext'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; }; then
e3c976c4
ILT
11795 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
11796else
5464f5a1
NN
11797 echo "$as_me: failed program was:" >&5
11798sed 's/^/| /' conftest.$ac_ext >&5
11799
11800bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
11801
e3c976c4 11802fi
5464f5a1 11803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11804fi
11805
e3c976c4 11806 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
11807
11808cat >>confdefs.h <<\_ACEOF
e3c976c4 11809#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 11810_ACEOF
16e9c715
NC
11811
11812 fi
5464f5a1
NN
11813 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
11814echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
11815
11816 fi
11817fi
16e9c715 11818
b3baf5d0 11819
6be7c12c 11820if test -n "$TRAD_HEADER"; then
5464f5a1
NN
11821
11822cat >>confdefs.h <<_ACEOF
252b5132 11823#define TRAD_HEADER $TRAD_HEADER
5464f5a1 11824_ACEOF
252b5132 11825
3f9b03b5 11826fi
252b5132
RH
11827
11828# Horrible hacks to build DLLs on Windows.
11829WIN32LDFLAGS=
11830WIN32LIBADD=
11831case "${host}" in
11832*-*-cygwin*)
11833 if test "$enable_shared" = "yes"; then
11834 WIN32LDFLAGS="-no-undefined"
11835 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11836 fi
11837 ;;
78be1d6e 11838*-*-linux*)
39691762
L
11839 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11840 # libiberty.a.
ca51bfff
L
11841 case "${host}" in
11842 mips*-*-linux*)
11843 # Linux/MIPS uses PIC by default.
11844 if test "$enable_shared" = "yes"; then
11845 WIN32LIBADD="-L../libiberty -liberty"
11846 fi
11847 ;;
11848 *)
66e25bab 11849 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 11850 if test -n "$x"; then
ca51bfff
L
11851 WIN32LIBADD="-L../libiberty/pic -liberty"
11852 fi
11853 ;;
11854 esac
39691762 11855 ;;
252b5132
RH
11856esac
11857
6be7c12c
AO
11858
11859
252b5132
RH
11860# target stuff:
11861
11862# Canonicalize the secondary target names.
11863if test -n "$enable_targets" ; then
11864 for targ in `echo $enable_targets | sed 's/,/ /g'`
11865 do
6d83c84b 11866 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
11867 if test -n "$result" ; then
11868 canon_targets="$canon_targets $result"
11869 else
11870 # Allow targets that config.sub doesn't recognize, like "all".
11871 canon_targets="$canon_targets $targ"
11872 fi
11873 done
11874fi
11875
11876all_targets=false
11877defvec=
11878selvecs=
08f74004 11879assocvecs=
252b5132
RH
11880selarchs=
11881TDEFINES=
11882for targ in $target $canon_targets
11883do
11884 if test "x$targ" = "xall"; then
11885 all_targets=true
08f74004 11886 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
11887 else
11888 . $srcdir/config.bfd
11889 if test "x$targ" = "x$target"; then
11890 defvec=$targ_defvec
11891 fi
11892 selvecs="$selvecs $targ_defvec $targ_selvecs"
11893 selarchs="$selarchs $targ_archs"
11894 TDEFINES="$TDEFINES $targ_cflags"
11895 fi
11896done
11897
6be7c12c 11898
252b5132
RH
11899# This processing still needs to be done if we're to decide properly whether
11900# 64-bit support needs to be compiled in. Currently, it will be included if
11901# the default or any other explicitly requested target requires it; it
11902# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 11903# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
11904# used.
11905
11906# uniq the default and selected vectors in all the configured targets.
11907f=""
11908for i in $selvecs ; do
11909 case " $f " in
11910 *" $i "*) ;;
11911 *) f="$f $i" ;;
11912 esac
11913done
11914selvecs="$f"
11915
6be7c12c 11916
08f74004
AM
11917# uniq the associated vectors in all the configured targets.
11918f=""
11919for i in $assocvecs ; do
11920 case " $f " in
11921 *" $i "*) ;;
11922 *) f="$f $i" ;;
11923 esac
11924done
11925assocvecs="$f"
11926
11927
252b5132
RH
11928# uniq the architectures in all the configured targets.
11929f=""
11930for i in $selarchs ; do
11931 case " $f " in
11932 *" $i "*) ;;
11933 *) f="$f $i" ;;
11934 esac
11935done
11936selarchs="$f"
11937
11938# Target backend .o files.
11939tb=
11940
65765700 11941elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
11942
11943for vec in $selvecs
11944do
69263e90 11945 target_size=32
252b5132
RH
11946 case "$vec" in
11947 # This list is alphabetized to make it easy to compare
dc810e39
AM
11948 # with the two vector lists in targets.c. For the same reason,
11949 # use one entry per line, even though this leads to long lines.
252b5132
RH
11950 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
11951 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 11952 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
11953 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
11954 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11955 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 11956 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
11957 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11958 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11959 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11960 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11961 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11962 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11963 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
11964 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11965 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11966 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11967 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
11968 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
11969 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 11970 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 11971 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 11972 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 11973 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
dc810e39 11974 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 11975 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
7f266840 11976 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
e5a52504 11977 bfd_elf32_bigarm_symbian_vec)
7f266840 11978 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
4e7fd91e
PB
11979 bfd_elf32_bigarm_vxworks_vec)
11980 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 11981 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 11982 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 11983 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 11984 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
11985 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11986 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 11987 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 11988 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 11989 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 11990 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 11991 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 11992 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 11993 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 11994 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 11995 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
11996 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
11997 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
11998 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 11999 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 12000 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 12001 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 12002 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 12003 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 12004 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 12005 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 12006 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 12007 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 12008 bfd_elf32_littlearm_symbian_vec)
7f266840 12009 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
4e7fd91e
PB
12010 bfd_elf32_littlearm_vxworks_vec)
12011 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
7f266840 12012 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 12013 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
252b5132 12014 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
12015 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12016 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12017 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
12018 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12019 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
12020 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
12021 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
12022 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12023 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12024 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
12025 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
2469cfa2 12026 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
8a397dad
TS
12027 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12028 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12029 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12030 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 12031 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 12032 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
12033 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
12034 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
b6821651
AM
12035 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
12036 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
a85d7ed0 12037 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
eb1e0e80
NC
12038 # FIXME: We include cofflink.lo not because it's needed for
12039 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
12040 # which needs it but does not list it. Should be fixed in right place.
9cba27b2
JT
12041 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12042 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
2bc3c89a
AM
12043 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12044 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12045 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
12046 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
b6821651
AM
12047 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
12048 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12049 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
85fbca6a 12050 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
b6821651
AM
12051 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12052 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12053 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
22b75d0a 12054 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
c6e90b02
TS
12055 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12056 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 12057 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 12058 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 12059 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 12060 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
e0001a05
NC
12061 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
12062 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 12063 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
12064 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
12065 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 12066 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
12067 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
12068 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 12069 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 12070 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
12071 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12072 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 12073 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 12074 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
12075 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12076 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
12077 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
12078 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12079 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
12080 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12081 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12082 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12083 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
22b75d0a 12084 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02
TS
12085 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12086 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39 12087 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 12088 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
12089 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12090 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
12091 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12092 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 12093 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 12094 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 12095 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 12096 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
12097 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12098 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
12099 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
12100 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
12101 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
12102 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
12103 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
12104 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
12105 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
12106 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
12107 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
12108 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
12109 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
12110 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
12111 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
12112 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
12113 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
12114 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 12115 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
12116 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
12117 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
12118 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
12119 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
12120 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
12121 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
12122 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
12123 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
12124 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
12125 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
12126 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
12127 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
12128 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
12129 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
12130 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
12131 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
12132 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
12133 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 12134 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 12135 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 12136 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
12137 mach_o_be_vec) tb="$tb mach-o.lo" ;;
12138 mach_o_le_vec) tb="$tb mach-o.lo" ;;
12139 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
12140 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
12141 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
12142 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
12143 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
12144 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
12145 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 12146 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 12147 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 12148 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 12149 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 12150 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 12151 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 12152 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 12153 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
12154 pef_vec) tb="$tb pef.lo" ;;
12155 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 12156 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 12157 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 12158 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 12159 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 12160 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 12161 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 12162 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 12163 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 12164 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 12165 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
12166 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
12167 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 12168 som_vec) tb="$tb som.lo" ;;
dc810e39 12169 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
12170 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
12171 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
12172 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
12173 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
12174 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 12175 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 12176 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
12177 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
12178 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
12179 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
12180 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
12181 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
12182 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
12183 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
12184 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 12185 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 12186 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 12187 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 12188 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 12189 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 12190 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 12191 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 12192 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 12193 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 12194 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 12195 versados_vec) tb="$tb versados.lo" ;;
dc810e39 12196 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
12197 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
12198 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
12199 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
12200 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
12201
341ca622
AM
12202 # These appear out of order in targets.c
12203 srec_vec) tb="$tb srec.lo" ;;
12204 symbolsrec_vec) tb="$tb srec.lo" ;;
12205 tekhex_vec) tb="$tb tekhex.lo" ;;
12206 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
12207 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
12208
252b5132 12209 "") ;;
5464f5a1
NN
12210 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
12211echo "$as_me: error: *** unknown target vector $vec" >&2;}
12212 { (exit 1); exit 1; }; } ;;
252b5132 12213 esac
69263e90
AM
12214
12215 if test ${target_size} = 64; then
12216 target64=true
12217 fi
12218 if test x"${vec}" = x"${defvec}"; then
12219 bfd_default_target_size=${target_size}
12220 fi
252b5132
RH
12221done
12222
12223# Target architecture .o files.
12224# A couple of CPUs use shorter file names to avoid problems on DOS
12225# filesystems.
12226ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
12227
12228# Weed out duplicate .o files.
12229f=""
12230for i in $tb ; do
12231 case " $f " in
12232 *" $i "*) ;;
12233 *) f="$f $i" ;;
12234 esac
12235done
12236tb="$f"
12237
12238f=""
12239for i in $ta ; do
12240 case " $f " in
12241 *" $i "*) ;;
12242 *) f="$f $i" ;;
12243 esac
12244done
12245ta="$f"
12246
12247bfd_backends="$tb"
12248bfd_machines="$ta"
12249
12250if test x${all_targets} = xtrue ; then
12251 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
12252 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
12253 selvecs=
12254 havevecs=
12255 selarchs=
08f74004
AM
12256 test -n "$assocvecs" &&
12257 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
12258else # all_targets is true
12259 # Only set these if they will be nonempty, for the clever echo.
12260 havevecs=
08f74004 12261 assocvecs=
252b5132
RH
12262 test -n "$selvecs" &&
12263 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
12264 test -n "$selvecs" &&
12265 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
12266 test -n "$selarchs" &&
12267 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
12268fi # all_targets is true
12269
12270case ${host64}-${target64}-${want64} in
12271 *true*)
12272 wordsize=64
2858ef35 12273 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 12274 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 12275 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
12276 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
12277echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
12278 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
12279echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 12280 fi
966abd70
HPN
12281 if test -n "$GCC" ; then
12282 bad_64bit_gcc=no;
5464f5a1
NN
12283 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
12284echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 12285 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
12286 cat >conftest.$ac_ext <<_ACEOF
12287/* confdefs.h. */
12288_ACEOF
12289cat confdefs.h >>conftest.$ac_ext
12290cat >>conftest.$ac_ext <<_ACEOF
12291/* end confdefs.h. */
966abd70 12292:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 12293_ACEOF
966abd70 12294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 12295 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 12296 bad_64bit_gcc=yes;
5464f5a1
NN
12297 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
12298echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 12299else
5464f5a1
NN
12300 echo "$as_me:$LINENO: result: no" >&5
12301echo "${ECHO_T}no" >&6
966abd70
HPN
12302fi
12303rm -f conftest*
12304
12305 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
12306 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
12307echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
12308 { (exit 1); exit 1; }; }
966abd70
HPN
12309 fi
12310 fi
252b5132
RH
12311 ;;
12312 false-false-false)
12313 wordsize=32
2858ef35 12314 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
12315 all_backends='$(BFD32_BACKENDS)'
12316 ;;
12317esac
12318
6be7c12c
AO
12319
12320
12321
12322
12323
69263e90 12324
2858ef35 12325
1012372a
AC
12326# Determine the host dependant file_ptr a.k.a. off_t type. In order
12327# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
12328# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
12329# Hopefully a reasonable assumption since fseeko et.al. should be
12330# upward compatible.
5464f5a1
NN
12331
12332
12333
12334
1012372a
AC
12335for ac_func in ftello ftello64 fseeko fseeko64
12336do
5464f5a1
NN
12337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12338echo "$as_me:$LINENO: checking for $ac_func" >&5
12339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12340if eval "test \"\${$as_ac_var+set}\" = set"; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342else
12343 cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12351#define $ac_func innocuous_$ac_func
12352
1012372a 12353/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
12354 which can conflict with char $ac_func (); below.
12355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12356 <limits.h> exists even on freestanding compilers. */
12357
12358#ifdef __STDC__
12359# include <limits.h>
12360#else
12361# include <assert.h>
12362#endif
1012372a 12363
5464f5a1 12364#undef $ac_func
1012372a 12365
5464f5a1
NN
12366/* Override any gcc2 internal prototype to avoid an error. */
12367#ifdef __cplusplus
12368extern "C"
12369{
12370#endif
12371/* We use char because int might match the return type of a gcc2
12372 builtin and then its argument prototype would still apply. */
12373char $ac_func ();
1012372a
AC
12374/* The GNU C library defines this for functions which it implements
12375 to always fail with ENOSYS. Some functions are actually named
12376 something starting with __ and the normal name is an alias. */
12377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12378choke me
12379#else
5464f5a1
NN
12380char (*f) () = $ac_func;
12381#endif
12382#ifdef __cplusplus
12383}
1012372a
AC
12384#endif
12385
5464f5a1
NN
12386int
12387main ()
12388{
12389return f != $ac_func;
12390 ;
12391 return 0;
12392}
12393_ACEOF
12394rm -f conftest.$ac_objext conftest$ac_exeext
12395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12396 (eval $ac_link) 2>conftest.er1
12397 ac_status=$?
12398 grep -v '^ *+' conftest.er1 >conftest.err
12399 rm -f conftest.er1
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } &&
eac338cf 12403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; } &&
12409 { ac_try='test -s conftest$ac_exeext'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 eval "$as_ac_var=yes"
12416else
12417 echo "$as_me: failed program was:" >&5
12418sed 's/^/| /' conftest.$ac_ext >&5
12419
12420eval "$as_ac_var=no"
12421fi
12422rm -f conftest.err conftest.$ac_objext \
12423 conftest$ac_exeext conftest.$ac_ext
12424fi
12425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12427if test `eval echo '${'$as_ac_var'}'` = yes; then
12428 cat >>confdefs.h <<_ACEOF
12429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12430_ACEOF
1012372a 12431
1012372a
AC
12432fi
12433done
12434
1012372a 12435if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
5464f5a1
NN
12436 echo "$as_me:$LINENO: checking size of off_t" >&5
12437echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
12438if test "${ac_cv_sizeof_off_t+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
1012372a
AC
12440else
12441 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
12442 cat >conftest.$ac_ext <<_ACEOF
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
1012372a
AC
12448#include "confdefs.h"
12449#include <sys/types.h>
12450
12451
5464f5a1
NN
12452int
12453main ()
12454{
1012372a 12455switch (0) case 0: case (sizeof (off_t) == $ac_size):;
5464f5a1
NN
12456 ;
12457 return 0;
12458}
12459_ACEOF
12460rm -f conftest.$ac_objext
12461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462 (eval $ac_compile) 2>conftest.er1
12463 ac_status=$?
12464 grep -v '^ *+' conftest.er1 >conftest.err
12465 rm -f conftest.er1
12466 cat conftest.err >&5
12467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468 (exit $ac_status); } &&
eac338cf 12469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; } &&
12475 { ac_try='test -s conftest.$ac_objext'
12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477 (eval $ac_try) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
1012372a
AC
12481 ac_cv_sizeof_off_t=$ac_size
12482else
5464f5a1
NN
12483 echo "$as_me: failed program was:" >&5
12484sed 's/^/| /' conftest.$ac_ext >&5
12485
1012372a 12486fi
5464f5a1 12487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a
AC
12488 if test x$ac_cv_sizeof_off_t != x ; then break; fi
12489done
12490
12491fi
12492
12493if test x$ac_cv_sizeof_off_t = x ; then
5464f5a1
NN
12494 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
12495echo "$as_me: error: cannot determine a size for off_t" >&2;}
12496 { (exit 1); exit 1; }; }
1012372a 12497fi
5464f5a1
NN
12498echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12499echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
12500
12501cat >>confdefs.h <<_ACEOF
1012372a 12502#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 12503_ACEOF
1012372a
AC
12504
12505
1012372a 12506fi
5464f5a1
NN
12507echo "$as_me:$LINENO: checking file_ptr type" >&5
12508echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
12509bfd_file_ptr="long"
12510bfd_ufile_ptr="unsigned long"
12511if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
12512 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
12513 bfd_file_ptr=BFD_HOST_64_BIT
12514 bfd_ufile_ptr=BFD_HOST_U_64_BIT
12515fi
5464f5a1
NN
12516echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
12517echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
12518
12519
12520
12521
252b5132
RH
12522tdefaults=""
12523test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
12524test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 12525test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
12526test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
12527test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
12528
6be7c12c 12529
5464f5a1
NN
12530
12531
12532for ac_header in stdlib.h unistd.h
252b5132 12533do
5464f5a1
NN
12534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12535if eval "test \"\${$as_ac_Header+set}\" = set"; then
12536 echo "$as_me:$LINENO: checking for $ac_header" >&5
12537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12538if eval "test \"\${$as_ac_Header+set}\" = set"; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12540fi
12541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12543else
12544 # Is the header compilable?
12545echo "$as_me:$LINENO: checking $ac_header usability" >&5
12546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12547cat >conftest.$ac_ext <<_ACEOF
12548/* confdefs.h. */
12549_ACEOF
12550cat confdefs.h >>conftest.$ac_ext
12551cat >>conftest.$ac_ext <<_ACEOF
12552/* end confdefs.h. */
12553$ac_includes_default
12554#include <$ac_header>
12555_ACEOF
12556rm -f conftest.$ac_objext
12557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12558 (eval $ac_compile) 2>conftest.er1
12559 ac_status=$?
12560 grep -v '^ *+' conftest.er1 >conftest.err
12561 rm -f conftest.er1
12562 cat conftest.err >&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
eac338cf 12565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try='test -s conftest.$ac_objext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_header_compiler=yes
12578else
12579 echo "$as_me: failed program was:" >&5
12580sed 's/^/| /' conftest.$ac_ext >&5
12581
12582ac_header_compiler=no
12583fi
12584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12585echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12586echo "${ECHO_T}$ac_header_compiler" >&6
12587
12588# Is the header present?
12589echo "$as_me:$LINENO: checking $ac_header presence" >&5
12590echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12591cat >conftest.$ac_ext <<_ACEOF
12592/* confdefs.h. */
12593_ACEOF
12594cat confdefs.h >>conftest.$ac_ext
12595cat >>conftest.$ac_ext <<_ACEOF
12596/* end confdefs.h. */
12597#include <$ac_header>
12598_ACEOF
12599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } >/dev/null; then
12607 if test -s conftest.err; then
12608 ac_cpp_err=$ac_c_preproc_warn_flag
12609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12610 else
12611 ac_cpp_err=
12612 fi
252b5132 12613else
5464f5a1 12614 ac_cpp_err=yes
252b5132 12615fi
5464f5a1
NN
12616if test -z "$ac_cpp_err"; then
12617 ac_header_preproc=yes
12618else
12619 echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
12622 ac_header_preproc=no
252b5132 12623fi
5464f5a1
NN
12624rm -f conftest.err conftest.$ac_ext
12625echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12626echo "${ECHO_T}$ac_header_preproc" >&6
12627
12628# So? What about this header?
12629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12630 yes:no: )
12631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12634echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12635 ac_header_preproc=yes
12636 ;;
12637 no:yes:* )
12638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12641echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12643echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12645echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12649echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12650 (
12651 cat <<\_ASBOX
12652## ------------------------------------------ ##
12653## Report this to the AC_PACKAGE_NAME lists. ##
12654## ------------------------------------------ ##
12655_ASBOX
12656 ) |
12657 sed "s/^/$as_me: WARNING: /" >&2
12658 ;;
12659esac
12660echo "$as_me:$LINENO: checking for $ac_header" >&5
12661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12662if eval "test \"\${$as_ac_Header+set}\" = set"; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 12664else
5464f5a1
NN
12665 eval "$as_ac_Header=\$ac_header_preproc"
12666fi
12667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12669
12670fi
12671if test `eval echo '${'$as_ac_Header'}'` = yes; then
12672 cat >>confdefs.h <<_ACEOF
12673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12674_ACEOF
12675
252b5132 12676fi
5464f5a1 12677
252b5132
RH
12678done
12679
5464f5a1 12680
252b5132
RH
12681for ac_func in getpagesize
12682do
5464f5a1
NN
12683as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12684echo "$as_me:$LINENO: checking for $ac_func" >&5
12685echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12686if eval "test \"\${$as_ac_var+set}\" = set"; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688else
12689 cat >conftest.$ac_ext <<_ACEOF
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
12695/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12697#define $ac_func innocuous_$ac_func
12698
252b5132 12699/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
12700 which can conflict with char $ac_func (); below.
12701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12702 <limits.h> exists even on freestanding compilers. */
12703
12704#ifdef __STDC__
12705# include <limits.h>
12706#else
12707# include <assert.h>
12708#endif
6be7c12c 12709
5464f5a1 12710#undef $ac_func
252b5132 12711
5464f5a1
NN
12712/* Override any gcc2 internal prototype to avoid an error. */
12713#ifdef __cplusplus
12714extern "C"
12715{
12716#endif
12717/* We use char because int might match the return type of a gcc2
12718 builtin and then its argument prototype would still apply. */
12719char $ac_func ();
252b5132
RH
12720/* The GNU C library defines this for functions which it implements
12721 to always fail with ENOSYS. Some functions are actually named
12722 something starting with __ and the normal name is an alias. */
12723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12724choke me
12725#else
5464f5a1
NN
12726char (*f) () = $ac_func;
12727#endif
12728#ifdef __cplusplus
12729}
252b5132
RH
12730#endif
12731
5464f5a1
NN
12732int
12733main ()
12734{
12735return f != $ac_func;
12736 ;
12737 return 0;
12738}
12739_ACEOF
12740rm -f conftest.$ac_objext conftest$ac_exeext
12741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12742 (eval $ac_link) 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } &&
eac338cf 12749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; } &&
12755 { ac_try='test -s conftest$ac_exeext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 eval "$as_ac_var=yes"
12762else
12763 echo "$as_me: failed program was:" >&5
12764sed 's/^/| /' conftest.$ac_ext >&5
12765
12766eval "$as_ac_var=no"
12767fi
12768rm -f conftest.err conftest.$ac_objext \
12769 conftest$ac_exeext conftest.$ac_ext
12770fi
12771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12772echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12773if test `eval echo '${'$as_ac_var'}'` = yes; then
12774 cat >>confdefs.h <<_ACEOF
12775#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12776_ACEOF
252b5132 12777
252b5132
RH
12778fi
12779done
12780
5464f5a1
NN
12781echo "$as_me:$LINENO: checking for working mmap" >&5
12782echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12783if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12785else
12786 if test "$cross_compiling" = yes; then
12787 ac_cv_func_mmap_fixed_mapped=no
12788else
5464f5a1
NN
12789 cat >conftest.$ac_ext <<_ACEOF
12790/* confdefs.h. */
12791_ACEOF
12792cat confdefs.h >>conftest.$ac_ext
12793cat >>conftest.$ac_ext <<_ACEOF
12794/* end confdefs.h. */
12795$ac_includes_default
12796/* malloc might have been renamed as rpl_malloc. */
12797#undef malloc
6be7c12c 12798
252b5132
RH
12799/* Thanks to Mike Haertel and Jim Avera for this test.
12800 Here is a matrix of mmap possibilities:
12801 mmap private not fixed
12802 mmap private fixed at somewhere currently unmapped
12803 mmap private fixed at somewhere already mapped
12804 mmap shared not fixed
12805 mmap shared fixed at somewhere currently unmapped
12806 mmap shared fixed at somewhere already mapped
12807 For private mappings, we should verify that changes cannot be read()
12808 back from the file, nor mmap's back from the file at a different
12809 address. (There have been systems where private was not correctly
12810 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 12811 VM page cache was not coherent with the file system buffer cache
252b5132
RH
12812 like early versions of FreeBSD and possibly contemporary NetBSD.)
12813 For shared mappings, we should conversely verify that changes get
5464f5a1 12814 propagated back to all the places they're supposed to be.
252b5132
RH
12815
12816 Grep wants private fixed already mapped.
12817 The main things grep needs to know about mmap are:
12818 * does it exist and is it safe to write into the mmap'd area
12819 * how to use it (BSD variants) */
5464f5a1 12820
252b5132
RH
12821#include <fcntl.h>
12822#include <sys/mman.h>
12823
5464f5a1
NN
12824#if !STDC_HEADERS && !HAVE_STDLIB_H
12825char *malloc ();
12826#endif
6be7c12c 12827
5464f5a1
NN
12828/* This mess was copied from the GNU getpagesize.h. */
12829#if !HAVE_GETPAGESIZE
252b5132 12830/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 12831# if !HAVE_SYS_PARAM_H
252b5132
RH
12832# define HAVE_SYS_PARAM_H 1
12833# endif
12834
12835# ifdef _SC_PAGESIZE
12836# define getpagesize() sysconf(_SC_PAGESIZE)
12837# else /* no _SC_PAGESIZE */
5464f5a1 12838# if HAVE_SYS_PARAM_H
252b5132
RH
12839# include <sys/param.h>
12840# ifdef EXEC_PAGESIZE
12841# define getpagesize() EXEC_PAGESIZE
12842# else /* no EXEC_PAGESIZE */
12843# ifdef NBPG
12844# define getpagesize() NBPG * CLSIZE
12845# ifndef CLSIZE
12846# define CLSIZE 1
12847# endif /* no CLSIZE */
12848# else /* no NBPG */
12849# ifdef NBPC
12850# define getpagesize() NBPC
12851# else /* no NBPC */
12852# ifdef PAGESIZE
12853# define getpagesize() PAGESIZE
12854# endif /* PAGESIZE */
12855# endif /* no NBPC */
12856# endif /* no NBPG */
12857# endif /* no EXEC_PAGESIZE */
12858# else /* no HAVE_SYS_PARAM_H */
12859# define getpagesize() 8192 /* punt totally */
12860# endif /* no HAVE_SYS_PARAM_H */
12861# endif /* no _SC_PAGESIZE */
12862
5464f5a1
NN
12863#endif /* no HAVE_GETPAGESIZE */
12864
12865int
12866main ()
12867{
12868 char *data, *data2, *data3;
12869 int i, pagesize;
12870 int fd;
12871
12872 pagesize = getpagesize ();
12873
12874 /* First, make a file with some known garbage in it. */
12875 data = (char *) malloc (pagesize);
12876 if (!data)
12877 exit (1);
12878 for (i = 0; i < pagesize; ++i)
12879 *(data + i) = rand ();
12880 umask (0);
12881 fd = creat ("conftest.mmap", 0600);
12882 if (fd < 0)
12883 exit (1);
12884 if (write (fd, data, pagesize) != pagesize)
12885 exit (1);
12886 close (fd);
12887
12888 /* Next, try to mmap the file at a fixed address which already has
12889 something else allocated at it. If we can, also make sure that
12890 we see the same garbage. */
12891 fd = open ("conftest.mmap", O_RDWR);
12892 if (fd < 0)
12893 exit (1);
12894 data2 = (char *) malloc (2 * pagesize);
12895 if (!data2)
12896 exit (1);
12897 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12898 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12899 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12900 exit (1);
12901 for (i = 0; i < pagesize; ++i)
12902 if (*(data + i) != *(data2 + i))
12903 exit (1);
12904
12905 /* Finally, make sure that changes to the mapped area do not
12906 percolate back to the file as seen by read(). (This is a bug on
12907 some variants of i386 svr4.0.) */
12908 for (i = 0; i < pagesize; ++i)
12909 *(data2 + i) = *(data2 + i) + 1;
12910 data3 = (char *) malloc (pagesize);
12911 if (!data3)
12912 exit (1);
12913 if (read (fd, data3, pagesize) != pagesize)
12914 exit (1);
12915 for (i = 0; i < pagesize; ++i)
12916 if (*(data + i) != *(data3 + i))
12917 exit (1);
12918 close (fd);
12919 exit (0);
12920}
12921_ACEOF
12922rm -f conftest$ac_exeext
12923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924 (eval $ac_link) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
12933 ac_cv_func_mmap_fixed_mapped=yes
12934else
12935 echo "$as_me: program exited with status $ac_status" >&5
12936echo "$as_me: failed program was:" >&5
12937sed 's/^/| /' conftest.$ac_ext >&5
12938
12939( exit $ac_status )
12940ac_cv_func_mmap_fixed_mapped=no
12941fi
12942rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12943fi
12944fi
12945echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12946echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12947if test $ac_cv_func_mmap_fixed_mapped = yes; then
12948
12949cat >>confdefs.h <<\_ACEOF
12950#define HAVE_MMAP 1
12951_ACEOF
12952
12953fi
12954rm -f conftest.mmap
12955
12956
12957
12958for ac_func in madvise mprotect
12959do
12960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12961echo "$as_me:$LINENO: checking for $ac_func" >&5
12962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12963if eval "test \"\${$as_ac_var+set}\" = set"; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965else
12966 cat >conftest.$ac_ext <<_ACEOF
12967/* confdefs.h. */
12968_ACEOF
12969cat confdefs.h >>conftest.$ac_ext
12970cat >>conftest.$ac_ext <<_ACEOF
12971/* end confdefs.h. */
12972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12974#define $ac_func innocuous_$ac_func
12975
12976/* System header to define __stub macros and hopefully few prototypes,
12977 which can conflict with char $ac_func (); below.
12978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12979 <limits.h> exists even on freestanding compilers. */
12980
12981#ifdef __STDC__
12982# include <limits.h>
12983#else
12984# include <assert.h>
12985#endif
12986
12987#undef $ac_func
12988
12989/* Override any gcc2 internal prototype to avoid an error. */
12990#ifdef __cplusplus
12991extern "C"
12992{
12993#endif
12994/* We use char because int might match the return type of a gcc2
12995 builtin and then its argument prototype would still apply. */
12996char $ac_func ();
12997/* The GNU C library defines this for functions which it implements
12998 to always fail with ENOSYS. Some functions are actually named
12999 something starting with __ and the normal name is an alias. */
13000#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13001choke me
13002#else
13003char (*f) () = $ac_func;
13004#endif
13005#ifdef __cplusplus
13006}
13007#endif
13008
13009int
13010main ()
13011{
13012return f != $ac_func;
13013 ;
13014 return 0;
13015}
13016_ACEOF
13017rm -f conftest.$ac_objext conftest$ac_exeext
13018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>conftest.er1
13020 ac_status=$?
13021 grep -v '^ *+' conftest.er1 >conftest.err
13022 rm -f conftest.er1
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } &&
eac338cf 13026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; } &&
13032 { ac_try='test -s conftest$ac_exeext'
13033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034 (eval $ac_try) 2>&5
13035 ac_status=$?
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; }; then
13038 eval "$as_ac_var=yes"
13039else
13040 echo "$as_me: failed program was:" >&5
13041sed 's/^/| /' conftest.$ac_ext >&5
13042
13043eval "$as_ac_var=no"
13044fi
13045rm -f conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
13047fi
13048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13049echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13050if test `eval echo '${'$as_ac_var'}'` = yes; then
13051 cat >>confdefs.h <<_ACEOF
13052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13053_ACEOF
13054
13055fi
13056done
13057
13058case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
13059 true+yes )
13060cat >>confdefs.h <<\_ACEOF
13061#define USE_MMAP 1
13062_ACEOF
13063 ;;
13064esac
13065
13066rm -f doc/config.status
13067 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
13068
13069 ac_config_commands="$ac_config_commands default"
13070
13071cat >confcache <<\_ACEOF
13072# This file is a shell script that caches the results of configure
13073# tests run on this system so they can be shared between configure
13074# scripts and configure runs, see configure's option --config-cache.
13075# It is not useful on other systems. If it contains results you don't
13076# want to keep, you may remove or edit it.
13077#
13078# config.status only pays attention to the cache file if you give it
13079# the --recheck option to rerun configure.
13080#
13081# `ac_cv_env_foo' variables (set or unset) will be overridden when
13082# loading this file, other *unset* `ac_cv_foo' will be assigned the
13083# following values.
13084
13085_ACEOF
13086
13087# The following way of writing the cache mishandles newlines in values,
13088# but we know of no workaround that is simple, portable, and efficient.
13089# So, don't put newlines in cache variables' values.
13090# Ultrix sh set writes to stderr and can't be redirected directly,
13091# and sets the high bit in the cache file unless we assign to the vars.
13092{
13093 (set) 2>&1 |
13094 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13095 *ac_space=\ *)
13096 # `set' does not quote correctly, so add quotes (double-quote
13097 # substitution turns \\\\ into \\, and sed turns \\ into \).
13098 sed -n \
13099 "s/'/'\\\\''/g;
13100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13101 ;;
13102 *)
13103 # `set' quotes correctly as required by POSIX, so do not add quotes.
13104 sed -n \
13105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13106 ;;
13107 esac;
13108} |
13109 sed '
13110 t clear
13111 : clear
13112 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13113 t end
13114 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13115 : end' >>confcache
13116if diff $cache_file confcache >/dev/null 2>&1; then :; else
13117 if test -w $cache_file; then
13118 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13119 cat confcache >$cache_file
13120 else
13121 echo "not updating unwritable cache $cache_file"
13122 fi
13123fi
13124rm -f confcache
13125
13126test "x$prefix" = xNONE && prefix=$ac_default_prefix
13127# Let make expand exec_prefix.
13128test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13129
13130# VPATH may cause trouble with some makes, so we remove $(srcdir),
13131# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13132# trailing colons and then remove the whole line if VPATH becomes empty
13133# (actually we leave an empty line to preserve line numbers).
13134if test "x$srcdir" = x.; then
13135 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13136s/:*\$(srcdir):*/:/;
13137s/:*\${srcdir}:*/:/;
13138s/:*@srcdir@:*/:/;
13139s/^\([^=]*=[ ]*\):*/\1/;
13140s/:*$//;
13141s/^[^=]*=[ ]*$//;
13142}'
13143fi
13144
13145DEFS=-DHAVE_CONFIG_H
13146
13147ac_libobjs=
13148ac_ltlibobjs=
13149for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13150 # 1. Remove the extension, and $U if already installed.
13151 ac_i=`echo "$ac_i" |
13152 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13153 # 2. Add them.
13154 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13155 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13156done
13157LIBOBJS=$ac_libobjs
13158
13159LTLIBOBJS=$ac_ltlibobjs
13160
13161
f5385ebf
AM
13162if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13163 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13164Usually this means the macro was only invoked conditionally." >&5
13165echo "$as_me: error: conditional \"AMDEP\" was never defined.
13166Usually this means the macro was only invoked conditionally." >&2;}
13167 { (exit 1); exit 1; }; }
13168fi
13169if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13170 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13171Usually this means the macro was only invoked conditionally." >&5
13172echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13173Usually this means the macro was only invoked conditionally." >&2;}
13174 { (exit 1); exit 1; }; }
13175fi
13176if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13177 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13178Usually this means the macro was only invoked conditionally." >&5
13179echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13180Usually this means the macro was only invoked conditionally." >&2;}
13181 { (exit 1); exit 1; }; }
13182fi
13183if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
13184 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
13185Usually this means the macro was only invoked conditionally." >&5
13186echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
13187Usually this means the macro was only invoked conditionally." >&2;}
13188 { (exit 1); exit 1; }; }
13189fi
5464f5a1
NN
13190
13191: ${CONFIG_STATUS=./config.status}
13192ac_clean_files_save=$ac_clean_files
13193ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13194{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13195echo "$as_me: creating $CONFIG_STATUS" >&6;}
13196cat >$CONFIG_STATUS <<_ACEOF
13197#! $SHELL
13198# Generated by $as_me.
13199# Run this file to recreate the current configuration.
13200# Compiler output produced by configure, useful for debugging
13201# configure, is in config.log if it exists.
13202
13203debug=false
13204ac_cs_recheck=false
13205ac_cs_silent=false
13206SHELL=\${CONFIG_SHELL-$SHELL}
13207_ACEOF
13208
13209cat >>$CONFIG_STATUS <<\_ACEOF
13210## --------------------- ##
13211## M4sh Initialization. ##
13212## --------------------- ##
13213
13214# Be Bourne compatible
13215if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13216 emulate sh
13217 NULLCMD=:
13218 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13219 # is contrary to our usage. Disable this feature.
13220 alias -g '${1+"$@"}'='"$@"'
13221elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13222 set -o posix
13223fi
13224DUALCASE=1; export DUALCASE # for MKS sh
13225
13226# Support unset when possible.
13227if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13228 as_unset=unset
13229else
13230 as_unset=false
13231fi
13232
13233
13234# Work around bugs in pre-3.0 UWIN ksh.
13235$as_unset ENV MAIL MAILPATH
13236PS1='$ '
13237PS2='> '
13238PS4='+ '
13239
13240# NLS nuisances.
13241for as_var in \
13242 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13243 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13244 LC_TELEPHONE LC_TIME
13245do
13246 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13247 eval $as_var=C; export $as_var
13248 else
13249 $as_unset $as_var
13250 fi
13251done
13252
13253# Required to use basename.
13254if expr a : '\(a\)' >/dev/null 2>&1; then
13255 as_expr=expr
13256else
13257 as_expr=false
13258fi
13259
13260if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13261 as_basename=basename
13262else
13263 as_basename=false
13264fi
252b5132 13265
6be7c12c 13266
5464f5a1
NN
13267# Name of the executable.
13268as_me=`$as_basename "$0" ||
13269$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13270 X"$0" : 'X\(//\)$' \| \
13271 X"$0" : 'X\(/\)$' \| \
13272 . : '\(.\)' 2>/dev/null ||
13273echo X/"$0" |
13274 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13275 /^X\/\(\/\/\)$/{ s//\1/; q; }
13276 /^X\/\(\/\).*/{ s//\1/; q; }
13277 s/.*/./; q'`
13278
13279
13280# PATH needs CR, and LINENO needs CR and PATH.
13281# Avoid depending upon Character Ranges.
13282as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13283as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13284as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13285as_cr_digits='0123456789'
13286as_cr_alnum=$as_cr_Letters$as_cr_digits
13287
13288# The user is always right.
13289if test "${PATH_SEPARATOR+set}" != set; then
13290 echo "#! /bin/sh" >conf$$.sh
13291 echo "exit 0" >>conf$$.sh
13292 chmod +x conf$$.sh
13293 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13294 PATH_SEPARATOR=';'
13295 else
13296 PATH_SEPARATOR=:
13297 fi
13298 rm -f conf$$.sh
13299fi
13300
13301
13302 as_lineno_1=$LINENO
13303 as_lineno_2=$LINENO
13304 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13305 test "x$as_lineno_1" != "x$as_lineno_2" &&
13306 test "x$as_lineno_3" = "x$as_lineno_2" || {
13307 # Find who we are. Look in the path if we contain no path at all
13308 # relative or not.
13309 case $0 in
13310 *[\\/]* ) as_myself=$0 ;;
13311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312for as_dir in $PATH
13313do
13314 IFS=$as_save_IFS
13315 test -z "$as_dir" && as_dir=.
13316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13317done
13318
13319 ;;
13320 esac
13321 # We did not find ourselves, most probably we were run as `sh COMMAND'
13322 # in which case we are not to be found in the path.
13323 if test "x$as_myself" = x; then
13324 as_myself=$0
13325 fi
13326 if test ! -f "$as_myself"; then
13327 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13328echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13329 { (exit 1); exit 1; }; }
13330 fi
13331 case $CONFIG_SHELL in
13332 '')
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13335do
13336 IFS=$as_save_IFS
13337 test -z "$as_dir" && as_dir=.
13338 for as_base in sh bash ksh sh5; do
13339 case $as_dir in
13340 /*)
13341 if ("$as_dir/$as_base" -c '
13342 as_lineno_1=$LINENO
13343 as_lineno_2=$LINENO
13344 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13345 test "x$as_lineno_1" != "x$as_lineno_2" &&
13346 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13347 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13348 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13349 CONFIG_SHELL=$as_dir/$as_base
13350 export CONFIG_SHELL
13351 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13352 fi;;
13353 esac
13354 done
13355done
13356;;
13357 esac
13358
13359 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13360 # uniformly replaced by the line number. The first 'sed' inserts a
13361 # line-number line before each line; the second 'sed' does the real
13362 # work. The second script uses 'N' to pair each line-number line
13363 # with the numbered line, and appends trailing '-' during
13364 # substitution so that $LINENO is not a special case at line end.
13365 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13366 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13367 sed '=' <$as_myself |
13368 sed '
13369 N
13370 s,$,-,
13371 : loop
13372 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13373 t loop
13374 s,-$,,
13375 s,^['$as_cr_digits']*\n,,
13376 ' >$as_me.lineno &&
13377 chmod +x $as_me.lineno ||
13378 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13379echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13380 { (exit 1); exit 1; }; }
13381
13382 # Don't try to exec as it changes $[0], causing all sort of problems
13383 # (the dirname of $[0] is not the place where we might find the
13384 # original and so on. Autoconf is especially sensible to this).
13385 . ./$as_me.lineno
13386 # Exit status is that of the last command.
13387 exit
252b5132 13388}
6be7c12c 13389
5464f5a1
NN
13390
13391case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13392 *c*,-n*) ECHO_N= ECHO_C='
13393' ECHO_T=' ' ;;
13394 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13395 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13396esac
13397
13398if expr a : '\(a\)' >/dev/null 2>&1; then
13399 as_expr=expr
252b5132 13400else
5464f5a1 13401 as_expr=false
252b5132 13402fi
5464f5a1
NN
13403
13404rm -f conf$$ conf$$.exe conf$$.file
13405echo >conf$$.file
13406if ln -s conf$$.file conf$$ 2>/dev/null; then
13407 # We could just check for DJGPP; but this test a) works b) is more generic
13408 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13409 if test -f conf$$.exe; then
13410 # Don't use ln at all; we don't have any links
13411 as_ln_s='cp -p'
13412 else
13413 as_ln_s='ln -s'
13414 fi
13415elif ln conf$$.file conf$$ 2>/dev/null; then
13416 as_ln_s=ln
13417else
13418 as_ln_s='cp -p'
252b5132 13419fi
5464f5a1 13420rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 13421
5464f5a1
NN
13422if mkdir -p . 2>/dev/null; then
13423 as_mkdir_p=:
13424else
13425 test -d ./-p && rmdir ./-p
13426 as_mkdir_p=false
252b5132 13427fi
b3baf5d0 13428
5464f5a1 13429as_executable_p="test -f"
252b5132 13430
5464f5a1
NN
13431# Sed expression to map a string onto a valid CPP name.
13432as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 13433
5464f5a1
NN
13434# Sed expression to map a string onto a valid variable name.
13435as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 13436
252b5132 13437
5464f5a1
NN
13438# IFS
13439# We need space, tab and new line, in precisely that order.
13440as_nl='
13441'
13442IFS=" $as_nl"
252b5132 13443
5464f5a1
NN
13444# CDPATH.
13445$as_unset CDPATH
13446
13447exec 6>&1
13448
13449# Open the log real soon, to keep \$[0] and so on meaningful, and to
13450# report actual input values of CONFIG_FILES etc. instead of their
13451# values after options handling. Logging --version etc. is OK.
13452exec 5>>config.log
13453{
13454 echo
13455 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13456## Running $as_me. ##
13457_ASBOX
13458} >&5
13459cat >&5 <<_CSEOF
13460
13461This file was extended by $as_me, which was
13462generated by GNU Autoconf 2.59. Invocation command line was
13463
13464 CONFIG_FILES = $CONFIG_FILES
13465 CONFIG_HEADERS = $CONFIG_HEADERS
13466 CONFIG_LINKS = $CONFIG_LINKS
13467 CONFIG_COMMANDS = $CONFIG_COMMANDS
13468 $ $0 $@
13469
13470_CSEOF
13471echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13472echo >&5
13473_ACEOF
13474
13475# Files that config.status was made for.
13476if test -n "$ac_config_files"; then
13477 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 13478fi
5464f5a1
NN
13479
13480if test -n "$ac_config_headers"; then
13481 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 13482fi
252b5132 13483
5464f5a1
NN
13484if test -n "$ac_config_links"; then
13485 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 13486fi
252b5132 13487
5464f5a1
NN
13488if test -n "$ac_config_commands"; then
13489 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13490fi
252b5132 13491
5464f5a1
NN
13492cat >>$CONFIG_STATUS <<\_ACEOF
13493
13494ac_cs_usage="\
13495\`$as_me' instantiates files from templates according to the
13496current configuration.
13497
13498Usage: $0 [OPTIONS] [FILE]...
13499
13500 -h, --help print this help, then exit
13501 -V, --version print version number, then exit
13502 -q, --quiet do not print progress messages
13503 -d, --debug don't remove temporary files
13504 --recheck update $as_me by reconfiguring in the same conditions
13505 --file=FILE[:TEMPLATE]
13506 instantiate the configuration file FILE
13507 --header=FILE[:TEMPLATE]
13508 instantiate the configuration header FILE
13509
13510Configuration files:
13511$config_files
13512
13513Configuration headers:
13514$config_headers
13515
13516Configuration commands:
13517$config_commands
13518
13519Report bugs to <bug-autoconf@gnu.org>."
13520_ACEOF
13521
13522cat >>$CONFIG_STATUS <<_ACEOF
13523ac_cs_version="\\
13524config.status
13525configured by $0, generated by GNU Autoconf 2.59,
13526 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13527
13528Copyright (C) 2003 Free Software Foundation, Inc.
13529This config.status script is free software; the Free Software Foundation
13530gives unlimited permission to copy, distribute and modify it."
13531srcdir=$srcdir
13532INSTALL="$INSTALL"
13533_ACEOF
13534
13535cat >>$CONFIG_STATUS <<\_ACEOF
13536# If no file are specified by the user, then we need to provide default
13537# value. By we need to know if files were specified by the user.
13538ac_need_defaults=:
13539while test $# != 0
13540do
13541 case $1 in
13542 --*=*)
13543 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13544 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13545 ac_shift=:
6be7c12c 13546 ;;
5464f5a1
NN
13547 -*)
13548 ac_option=$1
13549 ac_optarg=$2
13550 ac_shift=shift
6be7c12c 13551 ;;
5464f5a1
NN
13552 *) # This is not an option, so the user has probably given explicit
13553 # arguments.
13554 ac_option=$1
13555 ac_need_defaults=false;;
13556 esac
252b5132 13557
5464f5a1
NN
13558 case $ac_option in
13559 # Handling of the options.
13560_ACEOF
13561cat >>$CONFIG_STATUS <<\_ACEOF
13562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13563 ac_cs_recheck=: ;;
13564 --version | --vers* | -V )
13565 echo "$ac_cs_version"; exit 0 ;;
13566 --he | --h)
13567 # Conflict between --help and --header
13568 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13569Try \`$0 --help' for more information." >&5
13570echo "$as_me: error: ambiguous option: $1
13571Try \`$0 --help' for more information." >&2;}
13572 { (exit 1); exit 1; }; };;
13573 --help | --hel | -h )
13574 echo "$ac_cs_usage"; exit 0 ;;
13575 --debug | --d* | -d )
13576 debug=: ;;
13577 --file | --fil | --fi | --f )
13578 $ac_shift
13579 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13580 ac_need_defaults=false;;
13581 --header | --heade | --head | --hea )
13582 $ac_shift
13583 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13584 ac_need_defaults=false;;
13585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13586 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13587 ac_cs_silent=: ;;
6be7c12c 13588
5464f5a1
NN
13589 # This is an error.
13590 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13591Try \`$0 --help' for more information." >&5
13592echo "$as_me: error: unrecognized option: $1
13593Try \`$0 --help' for more information." >&2;}
13594 { (exit 1); exit 1; }; } ;;
252b5132 13595
5464f5a1 13596 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 13597
5464f5a1
NN
13598 esac
13599 shift
13600done
6be7c12c 13601
5464f5a1 13602ac_configure_extra_args=
252b5132 13603
5464f5a1
NN
13604if $ac_cs_silent; then
13605 exec 6>/dev/null
13606 ac_configure_extra_args="$ac_configure_extra_args --silent"
13607fi
6be7c12c 13608
5464f5a1
NN
13609_ACEOF
13610cat >>$CONFIG_STATUS <<_ACEOF
13611if \$ac_cs_recheck; then
13612 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13613 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13614fi
13615
13616_ACEOF
13617
13618cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 13619#
5464f5a1 13620# INIT-COMMANDS section.
6be7c12c 13621#
b3baf5d0 13622
f5385ebf 13623AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5464f5a1
NN
13624
13625
13626_ACEOF
13627
13628
13629
13630cat >>$CONFIG_STATUS <<\_ACEOF
13631for ac_config_target in $ac_config_targets
252b5132 13632do
5464f5a1
NN
13633 case "$ac_config_target" in
13634 # Handling of arguments.
13635 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13636 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13637 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
13638 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 13639 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5464f5a1
NN
13640 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13641 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13642 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13643echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13644 { (exit 1); exit 1; }; };;
252b5132
RH
13645 esac
13646done
13647
5464f5a1
NN
13648# If the user did not use the arguments to specify the items to instantiate,
13649# then the envvar interface is used. Set only those that are not.
13650# We use the long form for the default assignment because of an extremely
13651# bizarre bug on SunOS 4.1.3.
13652if $ac_need_defaults; then
13653 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13654 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13655 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13656fi
13657
13658# Have a temporary directory for convenience. Make it in the build tree
13659# simply because there is no reason to put it here, and in addition,
13660# creating and moving files from /tmp can sometimes cause problems.
13661# Create a temporary directory, and hook for its removal unless debugging.
13662$debug ||
13663{
13664 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13665 trap '{ (exit 1); exit 1; }' 1 2 13 15
13666}
b3baf5d0 13667
5464f5a1 13668# Create a (secure) tmp directory for tmp files.
b3baf5d0 13669
5464f5a1
NN
13670{
13671 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13672 test -n "$tmp" && test -d "$tmp"
13673} ||
13674{
13675 tmp=./confstat$$-$RANDOM
13676 (umask 077 && mkdir $tmp)
13677} ||
13678{
13679 echo "$me: cannot create a temporary directory in ." >&2
13680 { (exit 1); exit 1; }
13681}
13682
13683_ACEOF
13684
13685cat >>$CONFIG_STATUS <<_ACEOF
13686
13687#
13688# CONFIG_FILES section.
13689#
b3baf5d0 13690
5464f5a1
NN
13691# No need to generate the scripts if there are no CONFIG_FILES.
13692# This happens for instance when ./config.status config.h
13693if test -n "\$CONFIG_FILES"; then
13694 # Protect against being on the right side of a sed subst in config.status.
13695 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13696 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13697s,@SHELL@,$SHELL,;t t
13698s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13699s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13700s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13701s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13702s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13703s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13704s,@exec_prefix@,$exec_prefix,;t t
13705s,@prefix@,$prefix,;t t
13706s,@program_transform_name@,$program_transform_name,;t t
13707s,@bindir@,$bindir,;t t
13708s,@sbindir@,$sbindir,;t t
13709s,@libexecdir@,$libexecdir,;t t
13710s,@datadir@,$datadir,;t t
13711s,@sysconfdir@,$sysconfdir,;t t
13712s,@sharedstatedir@,$sharedstatedir,;t t
13713s,@localstatedir@,$localstatedir,;t t
13714s,@libdir@,$libdir,;t t
13715s,@includedir@,$includedir,;t t
13716s,@oldincludedir@,$oldincludedir,;t t
13717s,@infodir@,$infodir,;t t
13718s,@mandir@,$mandir,;t t
13719s,@build_alias@,$build_alias,;t t
13720s,@host_alias@,$host_alias,;t t
13721s,@target_alias@,$target_alias,;t t
13722s,@DEFS@,$DEFS,;t t
13723s,@ECHO_C@,$ECHO_C,;t t
13724s,@ECHO_N@,$ECHO_N,;t t
13725s,@ECHO_T@,$ECHO_T,;t t
13726s,@LIBS@,$LIBS,;t t
13727s,@build@,$build,;t t
13728s,@build_cpu@,$build_cpu,;t t
13729s,@build_vendor@,$build_vendor,;t t
13730s,@build_os@,$build_os,;t t
13731s,@host@,$host,;t t
13732s,@host_cpu@,$host_cpu,;t t
13733s,@host_vendor@,$host_vendor,;t t
13734s,@host_os@,$host_os,;t t
13735s,@target@,$target,;t t
13736s,@target_cpu@,$target_cpu,;t t
13737s,@target_vendor@,$target_vendor,;t t
13738s,@target_os@,$target_os,;t t
13739s,@CC@,$CC,;t t
13740s,@CFLAGS@,$CFLAGS,;t t
13741s,@LDFLAGS@,$LDFLAGS,;t t
13742s,@CPPFLAGS@,$CPPFLAGS,;t t
13743s,@ac_ct_CC@,$ac_ct_CC,;t t
13744s,@EXEEXT@,$EXEEXT,;t t
13745s,@OBJEXT@,$OBJEXT,;t t
13746s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13747s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13748s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 13749s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
13750s,@PACKAGE@,$PACKAGE,;t t
13751s,@VERSION@,$VERSION,;t t
13752s,@ACLOCAL@,$ACLOCAL,;t t
13753s,@AUTOCONF@,$AUTOCONF,;t t
13754s,@AUTOMAKE@,$AUTOMAKE,;t t
13755s,@AUTOHEADER@,$AUTOHEADER,;t t
13756s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
13757s,@install_sh@,$install_sh,;t t
13758s,@STRIP@,$STRIP,;t t
13759s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13760s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13761s,@mkdir_p@,$mkdir_p,;t t
13762s,@AWK@,$AWK,;t t
5464f5a1 13763s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
13764s,@am__leading_dot@,$am__leading_dot,;t t
13765s,@AMTAR@,$AMTAR,;t t
13766s,@am__tar@,$am__tar,;t t
13767s,@am__untar@,$am__untar,;t t
13768s,@DEPDIR@,$DEPDIR,;t t
13769s,@am__include@,$am__include,;t t
13770s,@am__quote@,$am__quote,;t t
13771s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13772s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13773s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13774s,@CCDEPMODE@,$CCDEPMODE,;t t
13775s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13776s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
13777s,@AR@,$AR,;t t
13778s,@ac_ct_AR@,$ac_ct_AR,;t t
13779s,@RANLIB@,$RANLIB,;t t
13780s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13781s,@LN_S@,$LN_S,;t t
5464f5a1
NN
13782s,@LIBTOOL@,$LIBTOOL,;t t
13783s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 13784s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
13785s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13786s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13787s,@MAINT@,$MAINT,;t t
13788s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13789s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
13790s,@host_noncanonical@,$host_noncanonical,;t t
13791s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
13792s,@bfdlibdir@,$bfdlibdir,;t t
13793s,@bfdincludedir@,$bfdincludedir,;t t
13794s,@CPP@,$CPP,;t t
13795s,@EGREP@,$EGREP,;t t
13796s,@ALLOCA@,$ALLOCA,;t t
13797s,@USE_NLS@,$USE_NLS,;t t
13798s,@MSGFMT@,$MSGFMT,;t t
13799s,@GMSGFMT@,$GMSGFMT,;t t
13800s,@XGETTEXT@,$XGETTEXT,;t t
13801s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13802s,@CATALOGS@,$CATALOGS,;t t
13803s,@CATOBJEXT@,$CATOBJEXT,;t t
13804s,@DATADIRNAME@,$DATADIRNAME,;t t
13805s,@GMOFILES@,$GMOFILES,;t t
13806s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13807s,@INTLDEPS@,$INTLDEPS,;t t
13808s,@INTLLIBS@,$INTLLIBS,;t t
13809s,@INTLOBJS@,$INTLOBJS,;t t
13810s,@POFILES@,$POFILES,;t t
13811s,@POSUB@,$POSUB,;t t
13812s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
13813s,@GT_NO@,$GT_NO,;t t
13814s,@GT_YES@,$GT_YES,;t t
13815s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13816s,@l@,$l,;t t
13817s,@HDEFINES@,$HDEFINES,;t t
13818s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13819s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13820s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13821s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13822s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13823s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13824s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13825s,@COREFILE@,$COREFILE,;t t
13826s,@COREFLAG@,$COREFLAG,;t t
13827s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13828s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13829s,@TDEFINES@,$TDEFINES,;t t
13830s,@wordsize@,$wordsize,;t t
13831s,@bfd_libs@,$bfd_libs,;t t
13832s,@all_backends@,$all_backends,;t t
13833s,@bfd_backends@,$bfd_backends,;t t
13834s,@bfd_machines@,$bfd_machines,;t t
13835s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13836s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13837s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13838s,@tdefaults@,$tdefaults,;t t
13839s,@LIBOBJS@,$LIBOBJS,;t t
13840s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 13841CEOF
252b5132 13842
5464f5a1
NN
13843_ACEOF
13844
13845 cat >>$CONFIG_STATUS <<\_ACEOF
13846 # Split the substitutions into bite-sized pieces for seds with
13847 # small command number limits, like on Digital OSF/1 and HP-UX.
13848 ac_max_sed_lines=48
13849 ac_sed_frag=1 # Number of current file.
13850 ac_beg=1 # First line for current file.
13851 ac_end=$ac_max_sed_lines # Line after last line for current file.
13852 ac_more_lines=:
13853 ac_sed_cmds=
13854 while $ac_more_lines; do
13855 if test $ac_beg -gt 1; then
13856 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 13857 else
5464f5a1
NN
13858 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13859 fi
13860 if test ! -s $tmp/subs.frag; then
13861 ac_more_lines=false
13862 else
13863 # The purpose of the label and of the branching condition is to
13864 # speed up the sed processing (if there are no `@' at all, there
13865 # is no need to browse any of the substitutions).
13866 # These are the two extra sed commands mentioned above.
13867 (echo ':t
13868 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13869 if test -z "$ac_sed_cmds"; then
13870 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13871 else
13872 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13873 fi
13874 ac_sed_frag=`expr $ac_sed_frag + 1`
13875 ac_beg=$ac_end
13876 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13877 fi
5464f5a1
NN
13878 done
13879 if test -z "$ac_sed_cmds"; then
13880 ac_sed_cmds=cat
252b5132 13881 fi
5464f5a1 13882fi # test -n "$CONFIG_FILES"
6be7c12c 13883
5464f5a1
NN
13884_ACEOF
13885cat >>$CONFIG_STATUS <<\_ACEOF
13886for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13887 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13888 case $ac_file in
13889 - | *:- | *:-:* ) # input from stdin
13890 cat >$tmp/stdin
13891 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13892 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13893 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13894 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13895 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13896 esac
13897
5464f5a1
NN
13898 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13899 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13900$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13901 X"$ac_file" : 'X\(//\)[^/]' \| \
13902 X"$ac_file" : 'X\(//\)$' \| \
13903 X"$ac_file" : 'X\(/\)' \| \
13904 . : '\(.\)' 2>/dev/null ||
13905echo X"$ac_file" |
13906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13908 /^X\(\/\/\)$/{ s//\1/; q; }
13909 /^X\(\/\).*/{ s//\1/; q; }
13910 s/.*/./; q'`
13911 { if $as_mkdir_p; then
13912 mkdir -p "$ac_dir"
252b5132 13913 else
5464f5a1
NN
13914 as_dir="$ac_dir"
13915 as_dirs=
13916 while test ! -d "$as_dir"; do
13917 as_dirs="$as_dir $as_dirs"
13918 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13919$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13920 X"$as_dir" : 'X\(//\)[^/]' \| \
13921 X"$as_dir" : 'X\(//\)$' \| \
13922 X"$as_dir" : 'X\(/\)' \| \
13923 . : '\(.\)' 2>/dev/null ||
13924echo X"$as_dir" |
13925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13927 /^X\(\/\/\)$/{ s//\1/; q; }
13928 /^X\(\/\).*/{ s//\1/; q; }
13929 s/.*/./; q'`
13930 done
13931 test ! -n "$as_dirs" || mkdir $as_dirs
13932 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13933echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13934 { (exit 1); exit 1; }; }; }
13935
13936 ac_builddir=.
13937
13938if test "$ac_dir" != .; then
13939 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13940 # A "../" for each directory in $ac_dir_suffix.
13941 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13942else
13943 ac_dir_suffix= ac_top_builddir=
13944fi
252b5132 13945
5464f5a1
NN
13946case $srcdir in
13947 .) # No --srcdir option. We are building in place.
13948 ac_srcdir=.
13949 if test -z "$ac_top_builddir"; then
13950 ac_top_srcdir=.
13951 else
13952 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13953 fi ;;
13954 [\\/]* | ?:[\\/]* ) # Absolute path.
13955 ac_srcdir=$srcdir$ac_dir_suffix;
13956 ac_top_srcdir=$srcdir ;;
252b5132 13957 *) # Relative path.
5464f5a1
NN
13958 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13959 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13960esac
252b5132 13961
5464f5a1
NN
13962# Do not use `cd foo && pwd` to compute absolute paths, because
13963# the directories may not exist.
13964case `pwd` in
13965.) ac_abs_builddir="$ac_dir";;
13966*)
13967 case "$ac_dir" in
13968 .) ac_abs_builddir=`pwd`;;
13969 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13970 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13971 esac;;
13972esac
13973case $ac_abs_builddir in
13974.) ac_abs_top_builddir=${ac_top_builddir}.;;
13975*)
13976 case ${ac_top_builddir}. in
13977 .) ac_abs_top_builddir=$ac_abs_builddir;;
13978 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13979 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13980 esac;;
13981esac
13982case $ac_abs_builddir in
13983.) ac_abs_srcdir=$ac_srcdir;;
13984*)
13985 case $ac_srcdir in
13986 .) ac_abs_srcdir=$ac_abs_builddir;;
13987 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13988 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13989 esac;;
13990esac
13991case $ac_abs_builddir in
13992.) ac_abs_top_srcdir=$ac_top_srcdir;;
13993*)
13994 case $ac_top_srcdir in
13995 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13996 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13997 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13998 esac;;
13999esac
252b5132 14000
5464f5a1
NN
14001
14002 case $INSTALL in
14003 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14004 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 14005 esac
252b5132 14006
5464f5a1
NN
14007 # Let's still pretend it is `configure' which instantiates (i.e., don't
14008 # use $as_me), people would be surprised to read:
14009 # /* config.h. Generated by config.status. */
14010 if test x"$ac_file" = x-; then
14011 configure_input=
14012 else
14013 configure_input="$ac_file. "
14014 fi
14015 configure_input=$configure_input"Generated from `echo $ac_file_in |
14016 sed 's,.*/,,'` by configure."
14017
14018 # First look for the input files in the build tree, otherwise in the
14019 # src tree.
14020 ac_file_inputs=`IFS=:
14021 for f in $ac_file_in; do
14022 case $f in
14023 -) echo $tmp/stdin ;;
14024 [\\/$]*)
14025 # Absolute (can't be DOS-style, as IFS=:)
14026 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14027echo "$as_me: error: cannot find input file: $f" >&2;}
14028 { (exit 1); exit 1; }; }
14029 echo "$f";;
14030 *) # Relative
14031 if test -f "$f"; then
14032 # Build tree
14033 echo "$f"
14034 elif test -f "$srcdir/$f"; then
14035 # Source tree
14036 echo "$srcdir/$f"
14037 else
14038 # /dev/null tree
14039 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14040echo "$as_me: error: cannot find input file: $f" >&2;}
14041 { (exit 1); exit 1; }; }
14042 fi;;
14043 esac
14044 done` || { (exit 1); exit 1; }
eac338cf
PB
14045
14046 if test x"$ac_file" != x-; then
14047 { echo "$as_me:$LINENO: creating $ac_file" >&5
14048echo "$as_me: creating $ac_file" >&6;}
14049 rm -f "$ac_file"
14050 fi
5464f5a1
NN
14051_ACEOF
14052cat >>$CONFIG_STATUS <<_ACEOF
14053 sed "$ac_vpsub
14054$extrasub
14055_ACEOF
14056cat >>$CONFIG_STATUS <<\_ACEOF
14057:t
14058/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14059s,@configure_input@,$configure_input,;t t
14060s,@srcdir@,$ac_srcdir,;t t
14061s,@abs_srcdir@,$ac_abs_srcdir,;t t
14062s,@top_srcdir@,$ac_top_srcdir,;t t
14063s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14064s,@builddir@,$ac_builddir,;t t
14065s,@abs_builddir@,$ac_abs_builddir,;t t
14066s,@top_builddir@,$ac_top_builddir,;t t
14067s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14068s,@INSTALL@,$ac_INSTALL,;t t
14069" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14070 rm -f $tmp/stdin
14071 if test x"$ac_file" != x-; then
14072 mv $tmp/out $ac_file
14073 else
14074 cat $tmp/out
14075 rm -f $tmp/out
14076 fi
14077
14078done
14079_ACEOF
14080cat >>$CONFIG_STATUS <<\_ACEOF
14081
14082#
14083# CONFIG_HEADER section.
14084#
252b5132
RH
14085
14086# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14087# NAME is the cpp macro being defined and VALUE is the value it is being given.
14088#
14089# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
14090ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14091ac_dB='[ ].*$,\1#\2'
14092ac_dC=' '
14093ac_dD=',;t'
14094# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14095ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14096ac_uB='$,\1#\2define\3'
252b5132 14097ac_uC=' '
5464f5a1
NN
14098ac_uD=',;t'
14099
14100for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 14101 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
14102 case $ac_file in
14103 - | *:- | *:-:* ) # input from stdin
14104 cat >$tmp/stdin
14105 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14106 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14107 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14108 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14109 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
14110 esac
14111
5464f5a1
NN
14112 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14113echo "$as_me: creating $ac_file" >&6;}
14114
14115 # First look for the input files in the build tree, otherwise in the
14116 # src tree.
14117 ac_file_inputs=`IFS=:
14118 for f in $ac_file_in; do
14119 case $f in
14120 -) echo $tmp/stdin ;;
14121 [\\/$]*)
14122 # Absolute (can't be DOS-style, as IFS=:)
14123 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14124echo "$as_me: error: cannot find input file: $f" >&2;}
14125 { (exit 1); exit 1; }; }
14126 # Do quote $f, to prevent DOS paths from being IFS'd.
14127 echo "$f";;
14128 *) # Relative
14129 if test -f "$f"; then
14130 # Build tree
14131 echo "$f"
14132 elif test -f "$srcdir/$f"; then
14133 # Source tree
14134 echo "$srcdir/$f"
14135 else
14136 # /dev/null tree
14137 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14138echo "$as_me: error: cannot find input file: $f" >&2;}
14139 { (exit 1); exit 1; }; }
14140 fi;;
14141 esac
14142 done` || { (exit 1); exit 1; }
14143 # Remove the trailing spaces.
14144 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14145
14146_ACEOF
14147
14148# Transform confdefs.h into two sed scripts, `conftest.defines' and
14149# `conftest.undefs', that substitutes the proper values into
14150# config.h.in to produce config.h. The first handles `#define'
14151# templates, and the second `#undef' templates.
14152# And first: Protect against being on the right side of a sed subst in
14153# config.status. Protect against being in an unquoted here document
14154# in config.status.
14155rm -f conftest.defines conftest.undefs
14156# Using a here document instead of a string reduces the quoting nightmare.
14157# Putting comments in sed scripts is not portable.
14158#
14159# `end' is used to avoid that the second main sed command (meant for
14160# 0-ary CPP macros) applies to n-ary macro definitions.
14161# See the Autoconf documentation for `clear'.
14162cat >confdef2sed.sed <<\_ACEOF
14163s/[\\&,]/\\&/g
14164s,[\\$`],\\&,g
14165t clear
14166: clear
14167s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14168t end
14169s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14170: end
14171_ACEOF
14172# If some macros were called several times there might be several times
14173# the same #defines, which is useless. Nevertheless, we may not want to
14174# sort them, since we want the *last* AC-DEFINE to be honored.
14175uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14176sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14177rm -f confdef2sed.sed
252b5132
RH
14178
14179# This sed command replaces #undef with comments. This is necessary, for
14180# example, in the case of _POSIX_SOURCE, which is predefined and required
14181# on some systems where configure will not decide to define it.
5464f5a1
NN
14182cat >>conftest.undefs <<\_ACEOF
14183s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14184_ACEOF
14185
14186# Break up conftest.defines because some shells have a limit on the size
14187# of here documents, and old seds have small limits too (100 cmds).
14188echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14189echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14190echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14191echo ' :' >>$CONFIG_STATUS
14192rm -f conftest.tail
14193while grep . conftest.defines >/dev/null
14194do
14195 # Write a limited-size here document to $tmp/defines.sed.
14196 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14197 # Speed up: don't consider the non `#define' lines.
14198 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14199 # Work around the forget-to-reset-the-flag bug.
14200 echo 't clr' >>$CONFIG_STATUS
14201 echo ': clr' >>$CONFIG_STATUS
14202 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14203 echo 'CEOF
14204 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14205 rm -f $tmp/in
14206 mv $tmp/out $tmp/in
14207' >>$CONFIG_STATUS
14208 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14209 rm -f conftest.defines
14210 mv conftest.tail conftest.defines
14211done
14212rm -f conftest.defines
14213echo ' fi # grep' >>$CONFIG_STATUS
14214echo >>$CONFIG_STATUS
252b5132 14215
5464f5a1
NN
14216# Break up conftest.undefs because some shells have a limit on the size
14217# of here documents, and old seds have small limits too (100 cmds).
14218echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 14219rm -f conftest.tail
5464f5a1 14220while grep . conftest.undefs >/dev/null
252b5132 14221do
5464f5a1
NN
14222 # Write a limited-size here document to $tmp/undefs.sed.
14223 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14224 # Speed up: don't consider the non `#undef'
14225 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14226 # Work around the forget-to-reset-the-flag bug.
14227 echo 't clr' >>$CONFIG_STATUS
14228 echo ': clr' >>$CONFIG_STATUS
14229 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 14230 echo 'CEOF
5464f5a1
NN
14231 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14232 rm -f $tmp/in
14233 mv $tmp/out $tmp/in
14234' >>$CONFIG_STATUS
14235 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14236 rm -f conftest.undefs
14237 mv conftest.tail conftest.undefs
252b5132 14238done
5464f5a1
NN
14239rm -f conftest.undefs
14240
14241cat >>$CONFIG_STATUS <<\_ACEOF
14242 # Let's still pretend it is `configure' which instantiates (i.e., don't
14243 # use $as_me), people would be surprised to read:
14244 # /* config.h. Generated by config.status. */
14245 if test x"$ac_file" = x-; then
14246 echo "/* Generated by configure. */" >$tmp/config.h
14247 else
14248 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14249 fi
14250 cat $tmp/in >>$tmp/config.h
14251 rm -f $tmp/in
14252 if test x"$ac_file" != x-; then
14253 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14254 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14255echo "$as_me: $ac_file is unchanged" >&6;}
14256 else
14257 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14258$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14259 X"$ac_file" : 'X\(//\)[^/]' \| \
14260 X"$ac_file" : 'X\(//\)$' \| \
14261 X"$ac_file" : 'X\(/\)' \| \
14262 . : '\(.\)' 2>/dev/null ||
14263echo X"$ac_file" |
14264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14266 /^X\(\/\/\)$/{ s//\1/; q; }
14267 /^X\(\/\).*/{ s//\1/; q; }
14268 s/.*/./; q'`
14269 { if $as_mkdir_p; then
14270 mkdir -p "$ac_dir"
252b5132 14271 else
5464f5a1
NN
14272 as_dir="$ac_dir"
14273 as_dirs=
14274 while test ! -d "$as_dir"; do
14275 as_dirs="$as_dir $as_dirs"
14276 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14277$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14278 X"$as_dir" : 'X\(//\)[^/]' \| \
14279 X"$as_dir" : 'X\(//\)$' \| \
14280 X"$as_dir" : 'X\(/\)' \| \
14281 . : '\(.\)' 2>/dev/null ||
14282echo X"$as_dir" |
14283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14285 /^X\(\/\/\)$/{ s//\1/; q; }
14286 /^X\(\/\).*/{ s//\1/; q; }
14287 s/.*/./; q'`
14288 done
14289 test ! -n "$as_dirs" || mkdir $as_dirs
14290 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14291echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14292 { (exit 1); exit 1; }; }; }
14293
14294 rm -f $ac_file
14295 mv $tmp/config.h $ac_file
252b5132 14296 fi
5464f5a1
NN
14297 else
14298 cat $tmp/config.h
14299 rm -f $tmp/config.h
252b5132 14300 fi
f5385ebf
AM
14301# Compute $ac_file's index in $config_headers.
14302_am_stamp_count=1
14303for _am_header in $config_headers :; do
14304 case $_am_header in
14305 $ac_file | $ac_file:* )
14306 break ;;
14307 * )
14308 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14309 esac
14310done
14311echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14312$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14313 X$ac_file : 'X\(//\)[^/]' \| \
14314 X$ac_file : 'X\(//\)$' \| \
14315 X$ac_file : 'X\(/\)' \| \
14316 . : '\(.\)' 2>/dev/null ||
14317echo X$ac_file |
14318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14320 /^X\(\/\/\)$/{ s//\1/; q; }
14321 /^X\(\/\).*/{ s//\1/; q; }
14322 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
14323done
14324_ACEOF
14325cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 14326
5464f5a1
NN
14327#
14328# CONFIG_COMMANDS section.
14329#
14330for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14331 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14332 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14333 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14334$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14335 X"$ac_dest" : 'X\(//\)[^/]' \| \
14336 X"$ac_dest" : 'X\(//\)$' \| \
14337 X"$ac_dest" : 'X\(/\)' \| \
14338 . : '\(.\)' 2>/dev/null ||
14339echo X"$ac_dest" |
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"
14347 else
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; }; }; }
b3baf5d0 14369
5464f5a1 14370 ac_builddir=.
b3baf5d0 14371
5464f5a1
NN
14372if test "$ac_dir" != .; then
14373 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14374 # A "../" for each directory in $ac_dir_suffix.
14375 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14376else
14377 ac_dir_suffix= ac_top_builddir=
14378fi
14379
14380case $srcdir in
14381 .) # No --srcdir option. We are building in place.
14382 ac_srcdir=.
14383 if test -z "$ac_top_builddir"; then
14384 ac_top_srcdir=.
14385 else
14386 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14387 fi ;;
14388 [\\/]* | ?:[\\/]* ) # Absolute path.
14389 ac_srcdir=$srcdir$ac_dir_suffix;
14390 ac_top_srcdir=$srcdir ;;
14391 *) # Relative path.
14392 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14393 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14394esac
14395
14396# Do not use `cd foo && pwd` to compute absolute paths, because
14397# the directories may not exist.
14398case `pwd` in
14399.) ac_abs_builddir="$ac_dir";;
14400*)
14401 case "$ac_dir" in
14402 .) ac_abs_builddir=`pwd`;;
14403 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14404 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14405 esac;;
14406esac
14407case $ac_abs_builddir in
14408.) ac_abs_top_builddir=${ac_top_builddir}.;;
14409*)
14410 case ${ac_top_builddir}. in
14411 .) ac_abs_top_builddir=$ac_abs_builddir;;
14412 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14413 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14414 esac;;
14415esac
14416case $ac_abs_builddir in
14417.) ac_abs_srcdir=$ac_srcdir;;
14418*)
14419 case $ac_srcdir in
14420 .) ac_abs_srcdir=$ac_abs_builddir;;
14421 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14422 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14423 esac;;
14424esac
14425case $ac_abs_builddir in
14426.) ac_abs_top_srcdir=$ac_top_srcdir;;
14427*)
14428 case $ac_top_srcdir in
14429 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14430 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14431 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14432 esac;;
14433esac
14434
14435
14436 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14437echo "$as_me: executing $ac_dest commands" >&6;}
14438 case $ac_dest in
f5385ebf
AM
14439 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14440 # Strip MF so we end up with the name of the file.
14441 mf=`echo "$mf" | sed -e 's/:.*$//'`
14442 # Check whether this is an Automake generated Makefile or not.
14443 # We used to match only the files named `Makefile.in', but
14444 # some people rename them; so instead we look at the file content.
14445 # Grep'ing the first line is not enough: some people post-process
14446 # each Makefile.in and add a new line on top of each file to say so.
14447 # So let's grep whole file.
14448 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14449 dirpart=`(dirname "$mf") 2>/dev/null ||
14450$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14451 X"$mf" : 'X\(//\)[^/]' \| \
14452 X"$mf" : 'X\(//\)$' \| \
14453 X"$mf" : 'X\(/\)' \| \
14454 . : '\(.\)' 2>/dev/null ||
14455echo X"$mf" |
14456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14458 /^X\(\/\/\)$/{ s//\1/; q; }
14459 /^X\(\/\).*/{ s//\1/; q; }
14460 s/.*/./; q'`
14461 else
14462 continue
14463 fi
14464 # Extract the definition of DEPDIR, am__include, and am__quote
14465 # from the Makefile without running `make'.
14466 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14467 test -z "$DEPDIR" && continue
14468 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14469 test -z "am__include" && continue
14470 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14471 # When using ansi2knr, U may be empty or an underscore; expand it
14472 U=`sed -n 's/^U = //p' < "$mf"`
14473 # Find all dependency output files, they are included files with
14474 # $(DEPDIR) in their names. We invoke sed twice because it is the
14475 # simplest approach to changing $(DEPDIR) to its actual value in the
14476 # expansion.
14477 for file in `sed -n "
14478 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14479 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14480 # Make sure the directory exists.
14481 test -f "$dirpart/$file" && continue
14482 fdir=`(dirname "$file") 2>/dev/null ||
14483$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14484 X"$file" : 'X\(//\)[^/]' \| \
14485 X"$file" : 'X\(//\)$' \| \
14486 X"$file" : 'X\(/\)' \| \
14487 . : '\(.\)' 2>/dev/null ||
14488echo X"$file" |
14489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14491 /^X\(\/\/\)$/{ s//\1/; q; }
14492 /^X\(\/\).*/{ s//\1/; q; }
14493 s/.*/./; q'`
14494 { if $as_mkdir_p; then
14495 mkdir -p $dirpart/$fdir
14496 else
14497 as_dir=$dirpart/$fdir
14498 as_dirs=
14499 while test ! -d "$as_dir"; do
14500 as_dirs="$as_dir $as_dirs"
14501 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14503 X"$as_dir" : 'X\(//\)[^/]' \| \
14504 X"$as_dir" : 'X\(//\)$' \| \
14505 X"$as_dir" : 'X\(/\)' \| \
14506 . : '\(.\)' 2>/dev/null ||
14507echo X"$as_dir" |
14508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14510 /^X\(\/\/\)$/{ s//\1/; q; }
14511 /^X\(\/\).*/{ s//\1/; q; }
14512 s/.*/./; q'`
14513 done
14514 test ! -n "$as_dirs" || mkdir $as_dirs
14515 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14516echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14517 { (exit 1); exit 1; }; }; }
14518
14519 # echo "creating $dirpart/$file"
14520 echo '# dummy' > "$dirpart/$file"
14521 done
14522done
14523 ;;
5464f5a1
NN
14524 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
14525 esac
14526done
14527_ACEOF
14528
14529cat >>$CONFIG_STATUS <<\_ACEOF
14530
14531{ (exit 0); exit 0; }
14532_ACEOF
252b5132 14533chmod +x $CONFIG_STATUS
5464f5a1
NN
14534ac_clean_files=$ac_clean_files_save
14535
14536
14537# configure is writing to config.log, and then calls config.status.
14538# config.status does its own redirection, appending to config.log.
14539# Unfortunately, on DOS this fails, as config.log is still kept open
14540# by configure, so config.status won't be able to write to it; its
14541# output is simply discarded. So we exec the FD to /dev/null,
14542# effectively closing config.log, so it can be properly (re)opened and
14543# appended to by config.status. When coming back to configure, we
14544# need to make the FD available again.
14545if test "$no_create" != yes; then
14546 ac_cs_success=:
14547 ac_config_status_args=
14548 test "$silent" = yes &&
14549 ac_config_status_args="$ac_config_status_args --quiet"
14550 exec 5>/dev/null
14551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14552 exec 5>>config.log
14553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14554 # would make configure fail if this is the last instruction.
14555 $ac_cs_success || { (exit 1); exit 1; }
14556fi
252b5132 14557
55c80943 14558