* configure.in (m32c): Build libstdc++-v3. Pass flags to
[deliverable/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
5464f5a1 3# Generated by GNU Autoconf 2.59.
252b5132 4#
5464f5a1 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
5464f5a1
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 248
5464f5a1
NN
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
5464f5a1
NN
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="libbfd.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
108a6f8e 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 datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
5464f5a1 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
5464f5a1
NN
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
5464f5a1 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
5464f5a1
NN
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
5464f5a1 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
5464f5a1 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
5464f5a1 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 377 build_alias=$ac_optarg ;;
252b5132
RH
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
5464f5a1 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
5464f5a1 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
5464f5a1
NN
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
5464f5a1 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
5464f5a1
NN
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
5464f5a1 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
5464f5a1 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
5464f5a1
NN
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
5464f5a1 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 440 host_alias=$ac_optarg ;;
252b5132
RH
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 457 libdir=$ac_optarg ;;
252b5132
RH
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
5464f5a1 464 libexecdir=$ac_optarg ;;
252b5132
RH
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5464f5a1 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 478 mandir=$ac_optarg ;;
252b5132
RH
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 485 | --no-cr | --no-c | -n)
252b5132
RH
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 504 prefix=$ac_optarg ;;
252b5132
RH
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 511 program_prefix=$ac_optarg ;;
252b5132
RH
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 518 program_suffix=$ac_optarg ;;
252b5132
RH
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 535 program_transform_name=$ac_optarg ;;
252b5132
RH
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
5464f5a1 545 sbindir=$ac_optarg ;;
252b5132
RH
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
5464f5a1 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
5464f5a1 561 site=$ac_optarg ;;
6be7c12c 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 566 srcdir=$ac_optarg ;;
252b5132
RH
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
5464f5a1
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
5464f5a1 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
5464f5a1
NN
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
5464f5a1 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
5464f5a1 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
5464f5a1
NN
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
252b5132
RH
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 617 x_includes=$ac_optarg ;;
252b5132
RH
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 624 x_libraries=$ac_optarg ;;
252b5132 625
5464f5a1
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
5464f5a1
NN
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
252b5132 641 *)
5464f5a1
NN
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
5464f5a1
NN
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
252b5132 656fi
252b5132 657
5464f5a1
NN
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
6be7c12c 668
5464f5a1
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
5464f5a1
NN
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
252b5132
RH
678 esac
679done
680
5464f5a1
NN
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
252b5132 698
5464f5a1
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
5464f5a1
NN
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
252b5132
RH
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
5464f5a1
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
5464f5a1
NN
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
b3baf5d0 773
5464f5a1
NN
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
252b5132 782
5464f5a1 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
5464f5a1
NN
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 787
5464f5a1 788Defaults for the options are specified in brackets.
6be7c12c 789
5464f5a1
NN
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
6be7c12c 809
5464f5a1
NN
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
6be7c12c 814
5464f5a1 815For better control, use the options below.
6be7c12c 816
5464f5a1
NN
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
6be7c12c 831
5464f5a1 832 cat <<\_ACEOF
6be7c12c 833
5464f5a1
NN
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 838
5464f5a1
NN
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
252b5132 844fi
252b5132 845
5464f5a1 846if test -n "$ac_init_help"; then
6be7c12c 847
5464f5a1 848 cat <<\_ACEOF
252b5132 849
5464f5a1
NN
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
5464f5a1
NN
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
6ec7057a 862 --enable-secureplt Default to creating read-only plt entries
569acd2c 863 --enable-werror treat compile warnings as errors
9e9b66a9 864 --enable-build-warnings Enable build-time compiler warnings
f5385ebf
AM
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
5464f5a1
NN
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
869
870Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
876 --with-included-gettext use the GNU gettext library included here
877
878Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CPP C preprocessor
886
887Use these variables to override the choices made by `configure' or to help
888it to find libraries and programs with nonstandard names/locations.
889
890_ACEOF
891fi
892
893if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
899
900if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904else
905 ac_dir_suffix= ac_top_builddir=
906fi
907
908case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
922esac
923
5464f5a1
NN
924# Do not use `cd foo && pwd` to compute absolute paths, because
925# the directories may not exist.
926case `pwd` in
927.) ac_abs_builddir="$ac_dir";;
928*)
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934esac
935case $ac_abs_builddir in
936.) ac_abs_top_builddir=${ac_top_builddir}.;;
937*)
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_srcdir=$ac_srcdir;;
946*)
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_top_srcdir=$ac_top_srcdir;;
955*)
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961esac
6be7c12c 962
5464f5a1
NN
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 fi
49c96104 978 cd $ac_popdir
5464f5a1 979 done
6be7c12c
AO
980fi
981
5464f5a1
NN
982test -n "$ac_init_help" && exit 0
983if $ac_init_version; then
984 cat <<\_ACEOF
6be7c12c 985
5464f5a1
NN
986Copyright (C) 2003 Free Software Foundation, Inc.
987This configure script is free software; the Free Software Foundation
988gives unlimited permission to copy, distribute and modify it.
989_ACEOF
990 exit 0
991fi
992exec 5>config.log
993cat >&5 <<_ACEOF
994This file contains any messages produced by compilers while
995running configure, to aid debugging if configure makes a mistake.
6be7c12c 996
5464f5a1
NN
997It was created by $as_me, which was
998generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 999
5464f5a1 1000 $ $0 $@
6be7c12c 1001
5464f5a1
NN
1002_ACEOF
1003{
1004cat <<_ASUNAME
1005## --------- ##
1006## Platform. ##
1007## --------- ##
1008
1009hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014
1015/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017
1018/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025
1026_ASUNAME
1027
1028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029for as_dir in $PATH
1030do
1031 IFS=$as_save_IFS
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1034done
6be7c12c 1035
5464f5a1 1036} >&5
66e25bab 1037
5464f5a1 1038cat >&5 <<_ACEOF
b3baf5d0 1039
6be7c12c 1040
5464f5a1
NN
1041## ----------- ##
1042## Core tests. ##
1043## ----------- ##
252b5132 1044
5464f5a1 1045_ACEOF
c5d1701e 1046
6be7c12c 1047
5464f5a1
NN
1048# Keep a trace of the command line.
1049# Strip out --no-create and --no-recursion so they do not pile up.
1050# Strip out --silent because we don't want to record it for future runs.
1051# Also quote any args containing shell meta-characters.
1052# Make two passes to allow for proper duplicate-argument suppression.
1053ac_configure_args=
1054ac_configure_args0=
1055ac_configure_args1=
1056ac_sep=
1057ac_must_keep_next=false
1058for ac_pass in 1 2
1059do
1060 for ac_arg
1061 do
1062 case $ac_arg in
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 continue ;;
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 esac
1070 case $ac_pass in
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 2)
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
1075 ac_must_keep_next=false # Got value, back to normal.
1076 else
1077 case $ac_arg in
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 esac
1085 ;;
1086 -* ) ac_must_keep_next=true ;;
1087 esac
1088 fi
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1091 ac_sep=" "
1092 ;;
1093 esac
1094 done
1095done
1096$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098
1099# When interrupted or exit'd, cleanup temporary files, and complete
1100# config.log. We remove comments because anyway the quotes in there
1101# would cause problems or look ugly.
1102# WARNING: Be sure not to use single quotes in there, as some shells,
1103# such as our DU 5.0 friend, will then `close' the trap.
1104trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1106 {
1107 echo
1108
1109 cat <<\_ASBOX
1110## ---------------- ##
1111## Cache variables. ##
1112## ---------------- ##
1113_ASBOX
1114 echo
1115 # The following way of writing the cache mishandles newlines in values,
1116{
1117 (set) 2>&1 |
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 *ac_space=\ *)
1120 sed -n \
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 ;;
1124 *)
1125 sed -n \
1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 ;;
1128 esac;
1129}
1130 echo
1131
1132 cat <<\_ASBOX
1133## ----------------- ##
1134## Output variables. ##
1135## ----------------- ##
1136_ASBOX
1137 echo
1138 for ac_var in $ac_subst_vars
1139 do
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1144
1145 if test -n "$ac_subst_files"; then
1146 cat <<\_ASBOX
1147## ------------- ##
1148## Output files. ##
1149## ------------- ##
1150_ASBOX
1151 echo
1152 for ac_var in $ac_subst_files
1153 do
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1158 fi
1159
1160 if test -s confdefs.h; then
1161 cat <<\_ASBOX
1162## ----------- ##
1163## confdefs.h. ##
1164## ----------- ##
1165_ASBOX
1166 echo
1167 sed "/^$/d" confdefs.h | sort
1168 echo
1169 fi
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1173 } >&5
1174 rm -f core *.core &&
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 exit $exit_status
1177 ' 0
1178for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180done
1181ac_signal=0
1182
1183# confdefs.h avoids OS command line length limits that DEFS can exceed.
1184rm -rf conftest* confdefs.h
1185# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186echo >confdefs.h
1187
1188# Predefined preprocessor variables.
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_NAME "$PACKAGE_NAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_VERSION "$PACKAGE_VERSION"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_STRING "$PACKAGE_STRING"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212_ACEOF
1213
1214
1215# Let the site file select an alternate cache file if it wants to.
1216# Prefer explicitly selected file to automatically selected ones.
1217if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 else
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 fi
1223fi
1224for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
1229 . "$ac_site_file"
1230 fi
1231done
1232
1233if test -r "$cache_file"; then
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238echo "$as_me: loading cache $cache_file" >&6;}
1239 case $cache_file in
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1242 esac
1243 fi
1244else
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246echo "$as_me: creating cache $cache_file" >&6;}
1247 >$cache_file
1248fi
1249
1250# Check that the precious variables saved in the cache have kept the same
1251# value.
1252ac_cache_corrupted=false
1253for ac_var in `(set) 2>&1 |
1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1260 set,)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,set)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,);;
1269 *)
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1274echo "$as_me: former value: $ac_old_val" >&2;}
1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1276echo "$as_me: current value: $ac_new_val" >&2;}
1277 ac_cache_corrupted=:
1278 fi;;
1279 esac
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1282 case $ac_new_val in
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1286 esac
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 esac
1291 fi
1292done
1293if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
1299fi
1300
1301ac_ext=c
1302ac_cpp='$CPP $CPPFLAGS'
1303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327ac_aux_dir=
1328for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329 if test -f $ac_dir/install-sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install-sh -c"
1332 break
1333 elif test -f $ac_dir/install.sh; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/install.sh -c"
1336 break
1337 elif test -f $ac_dir/shtool; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 break
1341 fi
1342done
1343if test -z "$ac_aux_dir"; then
1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346 { (exit 1); exit 1; }; }
1347fi
1348ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351
1352# Make sure we can run config.sub.
1353$ac_config_sub sun4 >/dev/null 2>&1 ||
1354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356 { (exit 1); exit 1; }; }
1357
1358echo "$as_me:$LINENO: checking build system type" >&5
1359echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360if test "${ac_cv_build+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362else
1363 ac_cv_build_alias=$build_alias
1364test -z "$ac_cv_build_alias" &&
1365 ac_cv_build_alias=`$ac_config_guess`
1366test -z "$ac_cv_build_alias" &&
1367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369 { (exit 1); exit 1; }; }
1370ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1374
1375fi
1376echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377echo "${ECHO_T}$ac_cv_build" >&6
1378build=$ac_cv_build
1379build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
1383
1384echo "$as_me:$LINENO: checking host system type" >&5
1385echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386if test "${ac_cv_host+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388else
1389 ac_cv_host_alias=$host_alias
1390test -z "$ac_cv_host_alias" &&
1391 ac_cv_host_alias=$ac_cv_build_alias
1392ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1396
1397fi
1398echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399echo "${ECHO_T}$ac_cv_host" >&6
1400host=$ac_cv_host
1401host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404
1405
1406echo "$as_me:$LINENO: checking target system type" >&5
1407echo $ECHO_N "checking target system type... $ECHO_C" >&6
1408if test "${ac_cv_target+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410else
1411 ac_cv_target_alias=$target_alias
1412test "x$ac_cv_target_alias" = "x" &&
1413 ac_cv_target_alias=$ac_cv_host_alias
1414ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1416echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1418
1419fi
1420echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1421echo "${ECHO_T}$ac_cv_target" >&6
1422target=$ac_cv_target
1423target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428# The aliases save the names the user supplied, while $host etc.
1429# will get canonicalized.
1430test -n "$target_alias" &&
1431 test "$program_prefix$program_suffix$program_transform_name" = \
1432 NONENONEs,x,x, &&
1433 program_prefix=${target_alias}-
1434ac_ext=c
1435ac_cpp='$CPP $CPPFLAGS'
1436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1438ac_compiler_gnu=$ac_cv_c_compiler_gnu
1439if test -n "$ac_tool_prefix"; then
1440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1441set dummy ${ac_tool_prefix}gcc; ac_word=$2
1442echo "$as_me:$LINENO: checking for $ac_word" >&5
1443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444if test "${ac_cv_prog_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446else
1447 if test -n "$CC"; then
1448 ac_cv_prog_CC="$CC" # Let the user override the test.
1449else
1450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451for as_dir in $PATH
1452do
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1460 fi
1461done
1462done
1463
1464fi
1465fi
1466CC=$ac_cv_prog_CC
1467if test -n "$CC"; then
1468 echo "$as_me:$LINENO: result: $CC" >&5
1469echo "${ECHO_T}$CC" >&6
1470else
1471 echo "$as_me:$LINENO: result: no" >&5
1472echo "${ECHO_T}no" >&6
1473fi
1474
1475fi
1476if test -z "$ac_cv_prog_CC"; then
1477 ac_ct_CC=$CC
1478 # Extract the first word of "gcc", so it can be a program name with args.
1479set dummy gcc; ac_word=$2
1480echo "$as_me:$LINENO: checking for $ac_word" >&5
1481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484else
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487else
1488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_ac_ct_CC="gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1498 fi
1499done
1500done
1501
1502fi
1503fi
1504ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505if test -n "$ac_ct_CC"; then
1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507echo "${ECHO_T}$ac_ct_CC" >&6
1508else
1509 echo "$as_me:$LINENO: result: no" >&5
1510echo "${ECHO_T}no" >&6
1511fi
1512
1513 CC=$ac_ct_CC
1514else
1515 CC="$ac_cv_prog_CC"
1516fi
1517
1518if test -z "$CC"; then
1519 if test -n "$ac_tool_prefix"; then
1520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1521set dummy ${ac_tool_prefix}cc; ac_word=$2
1522echo "$as_me:$LINENO: checking for $ac_word" >&5
1523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526else
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1529else
1530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531for as_dir in $PATH
1532do
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_CC="${ac_tool_prefix}cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1540 fi
1541done
1542done
1543
1544fi
1545fi
1546CC=$ac_cv_prog_CC
1547if test -n "$CC"; then
1548 echo "$as_me:$LINENO: result: $CC" >&5
1549echo "${ECHO_T}$CC" >&6
1550else
1551 echo "$as_me:$LINENO: result: no" >&5
1552echo "${ECHO_T}no" >&6
1553fi
1554
1555fi
1556if test -z "$ac_cv_prog_CC"; then
1557 ac_ct_CC=$CC
1558 # Extract the first word of "cc", so it can be a program name with args.
1559set dummy cc; ac_word=$2
1560echo "$as_me:$LINENO: checking for $ac_word" >&5
1561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565 if test -n "$ac_ct_CC"; then
1566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567else
1568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569for as_dir in $PATH
1570do
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_ac_ct_CC="cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 break 2
1578 fi
1579done
1580done
1581
1582fi
1583fi
1584ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585if test -n "$ac_ct_CC"; then
1586 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587echo "${ECHO_T}$ac_ct_CC" >&6
1588else
1589 echo "$as_me:$LINENO: result: no" >&5
1590echo "${ECHO_T}no" >&6
1591fi
1592
1593 CC=$ac_ct_CC
1594else
1595 CC="$ac_cv_prog_CC"
1596fi
1597
1598fi
1599if test -z "$CC"; then
1600 # Extract the first word of "cc", so it can be a program name with args.
1601set dummy cc; ac_word=$2
1602echo "$as_me:$LINENO: checking for $ac_word" >&5
1603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604if test "${ac_cv_prog_CC+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606else
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1609else
1610 ac_prog_rejected=no
1611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612for as_dir in $PATH
1613do
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1619 ac_prog_rejected=yes
1620 continue
1621 fi
1622 ac_cv_prog_CC="cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1625 fi
1626done
1627done
1628
1629if test $ac_prog_rejected = yes; then
1630 # We found a bogon in the path, so make sure we never use it.
1631 set dummy $ac_cv_prog_CC
1632 shift
1633 if test $# != 0; then
1634 # We chose a different compiler from the bogus one.
1635 # However, it has the same basename, so the bogon will be chosen
1636 # first if we set CC to just the basename; use the full file name.
1637 shift
1638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 fi
1640fi
1641fi
1642fi
1643CC=$ac_cv_prog_CC
1644if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646echo "${ECHO_T}$CC" >&6
1647else
1648 echo "$as_me:$LINENO: result: no" >&5
1649echo "${ECHO_T}no" >&6
1650fi
1651
1652fi
1653if test -z "$CC"; then
1654 if test -n "$ac_tool_prefix"; then
1655 for ac_prog in cl
1656 do
1657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1658set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1659echo "$as_me:$LINENO: checking for $ac_word" >&5
1660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661if test "${ac_cv_prog_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
1664 if test -n "$CC"; then
1665 ac_cv_prog_CC="$CC" # Let the user override the test.
1666else
1667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668for as_dir in $PATH
1669do
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1677 fi
1678done
1679done
1680
1681fi
1682fi
1683CC=$ac_cv_prog_CC
1684if test -n "$CC"; then
1685 echo "$as_me:$LINENO: result: $CC" >&5
1686echo "${ECHO_T}$CC" >&6
1687else
1688 echo "$as_me:$LINENO: result: no" >&5
1689echo "${ECHO_T}no" >&6
1690fi
1691
1692 test -n "$CC" && break
1693 done
1694fi
1695if test -z "$CC"; then
1696 ac_ct_CC=$CC
1697 for ac_prog in cl
1698do
1699 # Extract the first word of "$ac_prog", so it can be a program name with args.
1700set dummy $ac_prog; ac_word=$2
1701echo "$as_me:$LINENO: checking for $ac_word" >&5
1702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708else
1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
1711do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="$ac_prog"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1719 fi
1720done
1721done
1722
1723fi
1724fi
1725ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728echo "${ECHO_T}$ac_ct_CC" >&6
1729else
1730 echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
1732fi
1733
1734 test -n "$ac_ct_CC" && break
1735done
1736
1737 CC=$ac_ct_CC
1738fi
1739
1740fi
1741
1742
1743test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1744See \`config.log' for more details." >&5
1745echo "$as_me: error: no acceptable C compiler found in \$PATH
1746See \`config.log' for more details." >&2;}
1747 { (exit 1); exit 1; }; }
1748
1749# Provide some information about the compiler.
1750echo "$as_me:$LINENO:" \
1751 "checking for C compiler version" >&5
1752ac_compiler=`set X $ac_compile; echo $2`
1753{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1754 (eval $ac_compiler --version </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1759 (eval $ac_compiler -v </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1764 (eval $ac_compiler -V </dev/null >&5) 2>&5
1765 ac_status=$?
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1768
1769cat >conftest.$ac_ext <<_ACEOF
1770/* confdefs.h. */
1771_ACEOF
1772cat confdefs.h >>conftest.$ac_ext
1773cat >>conftest.$ac_ext <<_ACEOF
1774/* end confdefs.h. */
1775
1776int
1777main ()
1778{
1779
1780 ;
1781 return 0;
1782}
1783_ACEOF
1784ac_clean_files_save=$ac_clean_files
1785ac_clean_files="$ac_clean_files a.out a.exe b.out"
1786# Try to create an executable without -o first, disregard a.out.
1787# It will help us diagnose broken compilers, and finding out an intuition
1788# of exeext.
1789echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1790echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1791ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793 (eval $ac_link_default) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; then
1797 # Find the output, starting from the most likely. This scheme is
1798# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1799# resort.
1800
1801# Be careful to initialize this variable, since it used to be cached.
1802# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803ac_cv_exeext=
1804# b.out is created by i960 compilers.
1805for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1806do
1807 test -f "$ac_file" || continue
1808 case $ac_file in
1809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1810 ;;
1811 conftest.$ac_ext )
1812 # This is the source file.
1813 ;;
1814 [ab].out )
1815 # We found the default executable, but exeext='' is most
1816 # certainly right.
1817 break;;
1818 *.* )
1819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820 # FIXME: I believe we export ac_cv_exeext for Libtool,
1821 # but it would be cool to find out if it's true. Does anybody
1822 # maintain Libtool? --akim.
1823 export ac_cv_exeext
1824 break;;
1825 * )
1826 break;;
1827 esac
1828done
1829else
1830 echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1834See \`config.log' for more details." >&5
1835echo "$as_me: error: C compiler cannot create executables
1836See \`config.log' for more details." >&2;}
1837 { (exit 77); exit 77; }; }
1838fi
1839
1840ac_exeext=$ac_cv_exeext
1841echo "$as_me:$LINENO: result: $ac_file" >&5
1842echo "${ECHO_T}$ac_file" >&6
1843
1844# Check the compiler produces executables we can run. If not, either
1845# the compiler is broken, or we cross compile.
1846echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1847echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1848# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1849# If not cross compiling, check that we can run a simple program.
1850if test "$cross_compiling" != yes; then
1851 if { ac_try='./$ac_file'
1852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1853 (eval $ac_try) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; }; then
1857 cross_compiling=no
1858 else
1859 if test "$cross_compiling" = maybe; then
1860 cross_compiling=yes
1861 else
1862 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1863If you meant to cross compile, use \`--host'.
1864See \`config.log' for more details." >&5
1865echo "$as_me: error: cannot run C compiled programs.
1866If you meant to cross compile, use \`--host'.
1867See \`config.log' for more details." >&2;}
1868 { (exit 1); exit 1; }; }
1869 fi
1870 fi
1871fi
1872echo "$as_me:$LINENO: result: yes" >&5
1873echo "${ECHO_T}yes" >&6
1874
1875rm -f a.out a.exe conftest$ac_cv_exeext b.out
1876ac_clean_files=$ac_clean_files_save
1877# Check the compiler produces executables we can run. If not, either
1878# the compiler is broken, or we cross compile.
1879echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1880echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1881echo "$as_me:$LINENO: result: $cross_compiling" >&5
1882echo "${ECHO_T}$cross_compiling" >&6
1883
1884echo "$as_me:$LINENO: checking for suffix of executables" >&5
1885echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1887 (eval $ac_link) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; then
1891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1892# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1893# work properly (i.e., refer to `conftest.exe'), while it won't with
1894# `rm'.
1895for ac_file in conftest.exe conftest conftest.*; do
1896 test -f "$ac_file" || continue
1897 case $ac_file in
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1900 export ac_cv_exeext
1901 break;;
1902 * ) break;;
1903 esac
1904done
1905else
1906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1907See \`config.log' for more details." >&5
1908echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1909See \`config.log' for more details." >&2;}
1910 { (exit 1); exit 1; }; }
1911fi
1912
1913rm -f conftest$ac_cv_exeext
1914echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1915echo "${ECHO_T}$ac_cv_exeext" >&6
1916
1917rm -f conftest.$ac_ext
1918EXEEXT=$ac_cv_exeext
1919ac_exeext=$EXEEXT
1920echo "$as_me:$LINENO: checking for suffix of object files" >&5
1921echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1922if test "${ac_cv_objext+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925 cat >conftest.$ac_ext <<_ACEOF
1926/* confdefs.h. */
1927_ACEOF
1928cat confdefs.h >>conftest.$ac_ext
1929cat >>conftest.$ac_ext <<_ACEOF
1930/* end confdefs.h. */
1931
1932int
1933main ()
1934{
1935
1936 ;
1937 return 0;
1938}
1939_ACEOF
1940rm -f conftest.o conftest.obj
1941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1947 case $ac_file in
1948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1950 break;;
1951 esac
1952done
1953else
1954 echo "$as_me: failed program was:" >&5
1955sed 's/^/| /' conftest.$ac_ext >&5
1956
1957{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1958See \`config.log' for more details." >&5
1959echo "$as_me: error: cannot compute suffix of object files: cannot compile
1960See \`config.log' for more details." >&2;}
1961 { (exit 1); exit 1; }; }
1962fi
1963
1964rm -f conftest.$ac_cv_objext conftest.$ac_ext
1965fi
1966echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1967echo "${ECHO_T}$ac_cv_objext" >&6
1968OBJEXT=$ac_cv_objext
1969ac_objext=$OBJEXT
1970echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1971echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1972if test "${ac_cv_c_compiler_gnu+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975 cat >conftest.$ac_ext <<_ACEOF
1976/* confdefs.h. */
1977_ACEOF
1978cat confdefs.h >>conftest.$ac_ext
1979cat >>conftest.$ac_ext <<_ACEOF
1980/* end confdefs.h. */
1981
1982int
1983main ()
1984{
1985#ifndef __GNUC__
1986 choke me
1987#endif
1988
1989 ;
1990 return 0;
1991}
1992_ACEOF
1993rm -f conftest.$ac_objext
1994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>conftest.er1
1996 ac_status=$?
1997 grep -v '^ *+' conftest.er1 >conftest.err
1998 rm -f conftest.er1
1999 cat conftest.err >&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
49c96104
SE
2002 { ac_try='test -z "$ac_c_werror_flag"
2003 || test ! -s conftest.err'
5464f5a1
NN
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; } &&
2009 { ac_try='test -s conftest.$ac_objext'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 (eval $ac_try) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2015 ac_compiler_gnu=yes
2016else
2017 echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020ac_compiler_gnu=no
2021fi
2022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2023ac_cv_c_compiler_gnu=$ac_compiler_gnu
2024
2025fi
2026echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2027echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2028GCC=`test $ac_compiler_gnu = yes && echo yes`
2029ac_test_CFLAGS=${CFLAGS+set}
2030ac_save_CFLAGS=$CFLAGS
2031CFLAGS="-g"
2032echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2033echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2034if test "${ac_cv_prog_cc_g+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037 cat >conftest.$ac_ext <<_ACEOF
2038/* confdefs.h. */
2039_ACEOF
2040cat confdefs.h >>conftest.$ac_ext
2041cat >>conftest.$ac_ext <<_ACEOF
2042/* end confdefs.h. */
2043
2044int
2045main ()
2046{
2047
2048 ;
2049 return 0;
2050}
2051_ACEOF
2052rm -f conftest.$ac_objext
2053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2055 ac_status=$?
2056 grep -v '^ *+' conftest.er1 >conftest.err
2057 rm -f conftest.er1
2058 cat conftest.err >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
49c96104
SE
2061 { ac_try='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
5464f5a1
NN
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 (eval $ac_try) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 ac_cv_prog_cc_g=yes
2075else
2076 echo "$as_me: failed program was:" >&5
2077sed 's/^/| /' conftest.$ac_ext >&5
2078
2079ac_cv_prog_cc_g=no
2080fi
2081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2082fi
2083echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2084echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2085if test "$ac_test_CFLAGS" = set; then
2086 CFLAGS=$ac_save_CFLAGS
2087elif test $ac_cv_prog_cc_g = yes; then
2088 if test "$GCC" = yes; then
2089 CFLAGS="-g -O2"
2090 else
2091 CFLAGS="-g"
2092 fi
2093else
2094 if test "$GCC" = yes; then
2095 CFLAGS="-O2"
2096 else
2097 CFLAGS=
2098 fi
2099fi
2100echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2101echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2102if test "${ac_cv_prog_cc_stdc+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105 ac_cv_prog_cc_stdc=no
2106ac_save_CC=$CC
2107cat >conftest.$ac_ext <<_ACEOF
2108/* confdefs.h. */
2109_ACEOF
2110cat confdefs.h >>conftest.$ac_ext
2111cat >>conftest.$ac_ext <<_ACEOF
2112/* end confdefs.h. */
2113#include <stdarg.h>
2114#include <stdio.h>
2115#include <sys/types.h>
2116#include <sys/stat.h>
2117/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2118struct buf { int x; };
2119FILE * (*rcsopen) (struct buf *, struct stat *, int);
2120static char *e (p, i)
2121 char **p;
2122 int i;
2123{
2124 return p[i];
2125}
2126static char *f (char * (*g) (char **, int), char **p, ...)
2127{
2128 char *s;
2129 va_list v;
2130 va_start (v,p);
2131 s = g (p, va_arg (v,int));
2132 va_end (v);
2133 return s;
2134}
2135
2136/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2137 function prototypes and stuff, but not '\xHH' hex character constants.
2138 These don't provoke an error unfortunately, instead are silently treated
2139 as 'x'. The following induces an error, until -std1 is added to get
2140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2141 array size at least. It's necessary to write '\x00'==0 to get something
2142 that's true only with -std1. */
2143int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2144
2145int test (int i, double x);
2146struct s1 {int (*f) (int a);};
2147struct s2 {int (*f) (double a);};
2148int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2149int argc;
2150char **argv;
2151int
2152main ()
2153{
2154return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159# Don't try gcc -ansi; that turns off useful extensions and
2160# breaks some systems' header files.
2161# AIX -qlanglvl=ansi
2162# Ultrix and OSF/1 -std1
2163# HP-UX 10.20 and later -Ae
2164# HP-UX older versions -Aa -D_HPUX_SOURCE
2165# SVR4 -Xc -D__EXTENSIONS__
2166for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2167do
2168 CC="$ac_save_CC $ac_arg"
2169 rm -f conftest.$ac_objext
2170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
49c96104
SE
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
5464f5a1
NN
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_cv_prog_cc_stdc=$ac_arg
2192break
2193else
2194 echo "$as_me: failed program was:" >&5
2195sed 's/^/| /' conftest.$ac_ext >&5
2196
2197fi
2198rm -f conftest.err conftest.$ac_objext
2199done
2200rm -f conftest.$ac_ext conftest.$ac_objext
2201CC=$ac_save_CC
2202
2203fi
2204
2205case "x$ac_cv_prog_cc_stdc" in
2206 x|xno)
2207 echo "$as_me:$LINENO: result: none needed" >&5
2208echo "${ECHO_T}none needed" >&6 ;;
2209 *)
2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212 CC="$CC $ac_cv_prog_cc_stdc" ;;
2213esac
2214
2215# Some people use a C++ compiler to compile C. Since we use `exit',
2216# in C++ we need to declare it. In case someone uses the same compiler
2217# for both compiling C and C++ we need to have the C++ compiler decide
2218# the declaration of exit, since it's the most demanding environment.
2219cat >conftest.$ac_ext <<_ACEOF
2220#ifndef __cplusplus
2221 choke me
2222#endif
2223_ACEOF
2224rm -f conftest.$ac_objext
2225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>conftest.er1
2227 ac_status=$?
2228 grep -v '^ *+' conftest.er1 >conftest.err
2229 rm -f conftest.er1
2230 cat conftest.err >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
49c96104
SE
2233 { ac_try='test -z "$ac_c_werror_flag"
2234 || test ! -s conftest.err'
5464f5a1
NN
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 for ac_declaration in \
2247 '' \
2248 'extern "C" void std::exit (int) throw (); using std::exit;' \
2249 'extern "C" void std::exit (int); using std::exit;' \
2250 'extern "C" void exit (int) throw ();' \
2251 'extern "C" void exit (int);' \
2252 'void exit (int);'
2253do
2254 cat >conftest.$ac_ext <<_ACEOF
2255/* confdefs.h. */
2256_ACEOF
2257cat confdefs.h >>conftest.$ac_ext
2258cat >>conftest.$ac_ext <<_ACEOF
2259/* end confdefs.h. */
2260$ac_declaration
2261#include <stdlib.h>
2262int
2263main ()
2264{
2265exit (42);
2266 ;
2267 return 0;
2268}
2269_ACEOF
2270rm -f conftest.$ac_objext
2271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>conftest.er1
2273 ac_status=$?
2274 grep -v '^ *+' conftest.er1 >conftest.err
2275 rm -f conftest.er1
2276 cat conftest.err >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
49c96104
SE
2279 { ac_try='test -z "$ac_c_werror_flag"
2280 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
2286 { ac_try='test -s conftest.$ac_objext'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 :
2293else
2294 echo "$as_me: failed program was:" >&5
2295sed 's/^/| /' conftest.$ac_ext >&5
2296
2297continue
2298fi
2299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2300 cat >conftest.$ac_ext <<_ACEOF
2301/* confdefs.h. */
2302_ACEOF
2303cat confdefs.h >>conftest.$ac_ext
2304cat >>conftest.$ac_ext <<_ACEOF
2305/* end confdefs.h. */
2306$ac_declaration
2307int
2308main ()
2309{
2310exit (42);
2311 ;
2312 return 0;
2313}
2314_ACEOF
2315rm -f conftest.$ac_objext
2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2318 ac_status=$?
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
49c96104
SE
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
5464f5a1
NN
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 break
2338else
2339 echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342fi
2343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2344done
2345rm -f conftest*
2346if test -n "$ac_declaration"; then
2347 echo '#ifdef __cplusplus' >>confdefs.h
2348 echo $ac_declaration >>confdefs.h
2349 echo '#endif' >>confdefs.h
2350fi
2351
2352else
2353 echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356fi
2357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2358ac_ext=c
2359ac_cpp='$CPP $CPPFLAGS'
2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363
2364
f5385ebf
AM
2365echo "$as_me:$LINENO: checking for library containing strerror" >&5
2366echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2367if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
f5385ebf
AM
2370 ac_func_search_save_LIBS=$LIBS
2371ac_cv_search_strerror=no
5464f5a1
NN
2372cat >conftest.$ac_ext <<_ACEOF
2373/* confdefs.h. */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h. */
2378
2379/* Override any gcc2 internal prototype to avoid an error. */
2380#ifdef __cplusplus
2381extern "C"
2382#endif
2383/* We use char because int might match the return type of a gcc2
2384 builtin and then its argument prototype would still apply. */
2385char strerror ();
2386int
2387main ()
2388{
2389strerror ();
2390 ;
2391 return 0;
2392}
2393_ACEOF
2394rm -f conftest.$ac_objext conftest$ac_exeext
2395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>conftest.er1
2397 ac_status=$?
2398 grep -v '^ *+' conftest.er1 >conftest.err
2399 rm -f conftest.er1
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
49c96104
SE
2403 { ac_try='test -z "$ac_c_werror_flag"
2404 || test ! -s conftest.err'
5464f5a1
NN
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest$ac_exeext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
f5385ebf 2416 ac_cv_search_strerror="none required"
5464f5a1
NN
2417else
2418 echo "$as_me: failed program was:" >&5
2419sed 's/^/| /' conftest.$ac_ext >&5
2420
5464f5a1
NN
2421fi
2422rm -f conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2424if test "$ac_cv_search_strerror" = no; then
2425 for ac_lib in cposix; do
2426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2427 cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h. */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h. */
2433
2434/* Override any gcc2 internal prototype to avoid an error. */
2435#ifdef __cplusplus
2436extern "C"
2437#endif
2438/* We use char because int might match the return type of a gcc2
2439 builtin and then its argument prototype would still apply. */
2440char strerror ();
2441int
2442main ()
2443{
2444strerror ();
2445 ;
2446 return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext conftest$ac_exeext
2450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2451 (eval $ac_link) 2>conftest.er1
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
49c96104
SE
2458 { ac_try='test -z "$ac_c_werror_flag"
2459 || test ! -s conftest.err'
f5385ebf
AM
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest$ac_exeext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 ac_cv_search_strerror="-l$ac_lib"
2472break
2473else
2474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
5464f5a1 2477fi
f5385ebf
AM
2478rm -f conftest.err conftest.$ac_objext \
2479 conftest$ac_exeext conftest.$ac_ext
2480 done
5464f5a1 2481fi
f5385ebf
AM
2482LIBS=$ac_func_search_save_LIBS
2483fi
2484echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2485echo "${ECHO_T}$ac_cv_search_strerror" >&6
2486if test "$ac_cv_search_strerror" != no; then
2487 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2488
f5385ebf 2489fi
5464f5a1
NN
2490
2491
f5385ebf 2492am__api_version="1.9"
5464f5a1
NN
2493# Find a good install program. We prefer a C program (faster),
2494# so one script is as good as another. But avoid the broken or
2495# incompatible versions:
2496# SysV /etc/install, /usr/sbin/install
2497# SunOS /usr/etc/install
2498# IRIX /sbin/install
2499# AIX /bin/install
2500# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2501# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2504# OS/2's system install, which has a completely different semantic
252b5132 2505# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2506echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2507echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2508if test -z "$INSTALL"; then
5464f5a1
NN
2509if test "${ac_cv_path_install+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2511else
5464f5a1
NN
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 # Account for people who put trailing slashes in PATH elements.
2518case $as_dir/ in
2519 ./ | .// | /cC/* | \
2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2522 /usr/ucb/* ) ;;
2523 *)
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2526 # by default.
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2530 if test $ac_prog = install &&
5464f5a1 2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2532 # AIX install. It has an incompatible calling convention.
2533 :
5464f5a1
NN
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2537 :
252b5132 2538 else
5464f5a1
NN
2539 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2540 break 3
252b5132
RH
2541 fi
2542 fi
2543 done
5464f5a1
NN
2544 done
2545 ;;
2546esac
2547done
2548
252b5132
RH
2549
2550fi
2551 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2552 INSTALL=$ac_cv_path_install
252b5132
RH
2553 else
2554 # As a last resort, use the slow shell script. We don't cache a
2555 # path for INSTALL within a source directory, because that will
2556 # break other packages using the cache if that directory is
2557 # removed, or if the path is relative.
5464f5a1 2558 INSTALL=$ac_install_sh
252b5132
RH
2559 fi
2560fi
5464f5a1
NN
2561echo "$as_me:$LINENO: result: $INSTALL" >&5
2562echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2563
2564# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2565# It thinks the first close brace ends the variable substitution.
2566test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2567
5464f5a1 2568test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2569
2570test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2571
5464f5a1
NN
2572echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2573echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2574# Just in case
2575sleep 1
f5385ebf 2576echo timestamp > conftest.file
252b5132
RH
2577# Do `set' in a subshell so we don't clobber the current shell's
2578# arguments. Must try -L first in case configure is actually a
2579# symlink; some systems play weird games with the mod time of symlinks
2580# (eg FreeBSD returns the mod time of the symlink's containing
2581# directory).
2582if (
f5385ebf 2583 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2584 if test "$*" = "X"; then
2585 # -L didn't work.
f5385ebf 2586 set X `ls -t $srcdir/configure conftest.file`
252b5132 2587 fi
f5385ebf
AM
2588 rm -f conftest.file
2589 if test "$*" != "X $srcdir/configure conftest.file" \
2590 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2591
2592 # If neither matched, then we have a broken ls. This can happen
2593 # if, for instance, CONFIG_SHELL is bash and it inherits a
2594 # broken ls alias from the environment. This has actually
2595 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2596 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2597alias in your environment" >&5
2598echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2599alias in your environment" >&2;}
2600 { (exit 1); exit 1; }; }
252b5132
RH
2601 fi
2602
f5385ebf 2603 test "$2" = conftest.file
252b5132
RH
2604 )
2605then
2606 # Ok.
2607 :
2608else
5464f5a1
NN
2609 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2610Check your system clock" >&5
2611echo "$as_me: error: newly created file is older than distributed files!
2612Check your system clock" >&2;}
2613 { (exit 1); exit 1; }; }
252b5132 2614fi
5464f5a1
NN
2615echo "$as_me:$LINENO: result: yes" >&5
2616echo "${ECHO_T}yes" >&6
252b5132 2617test "$program_prefix" != NONE &&
5464f5a1 2618 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2619# Use a double $ so make ignores it.
2620test "$program_suffix" != NONE &&
5464f5a1
NN
2621 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2622# Double any \ or $. echo might interpret backslashes.
2623# By default was `s,x,x', remove it if useless.
2624cat <<\_ACEOF >conftest.sed
2625s/[\\$]/&&/g;s/;s,x,x,$//
2626_ACEOF
2627program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2628rm conftest.sed
2629
f5385ebf
AM
2630# expand $ac_aux_dir to an absolute path
2631am_aux_dir=`cd $ac_aux_dir && pwd`
2632
2633test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2634# Use eval to expand $SHELL
2635if eval "$MISSING --run true"; then
2636 am_missing_run="$MISSING --run "
2637else
2638 am_missing_run=
2639 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2640echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2641fi
2642
2643if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2644 # We used to keeping the `.' as first argument, in order to
2645 # allow $(mkdir_p) to be used without argument. As in
2646 # $(mkdir_p) $(somedir)
2647 # where $(somedir) is conditionally defined. However this is wrong
2648 # for two reasons:
2649 # 1. if the package is installed by a user who cannot write `.'
2650 # make install will fail,
2651 # 2. the above comment should most certainly read
2652 # $(mkdir_p) $(DESTDIR)$(somedir)
2653 # so it does not work when $(somedir) is undefined and
2654 # $(DESTDIR) is not.
2655 # To support the latter case, we have to write
2656 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2657 # so the `.' trick is pointless.
2658 mkdir_p='mkdir -p --'
2659else
2660 # On NextStep and OpenStep, the `mkdir' command does not
2661 # recognize any option. It will interpret all options as
2662 # directories to create, and then abort because `.' already
2663 # exists.
2664 for d in ./-p ./--version;
2665 do
2666 test -d $d && rmdir $d
2667 done
2668 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2669 if test -f "$ac_aux_dir/mkinstalldirs"; then
2670 mkdir_p='$(mkinstalldirs)'
2671 else
2672 mkdir_p='$(install_sh) -d'
2673 fi
2674fi
2675
2676for ac_prog in gawk mawk nawk awk
2677do
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679set dummy $ac_prog; ac_word=$2
2680echo "$as_me:$LINENO: checking for $ac_word" >&5
2681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682if test "${ac_cv_prog_AWK+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684else
2685 if test -n "$AWK"; then
2686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2687else
2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_AWK="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699done
2700done
2701
2702fi
2703fi
2704AWK=$ac_cv_prog_AWK
2705if test -n "$AWK"; then
2706 echo "$as_me:$LINENO: result: $AWK" >&5
2707echo "${ECHO_T}$AWK" >&6
2708else
2709 echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6
2711fi
2712
2713 test -n "$AWK" && break
2714done
2715
5464f5a1
NN
2716echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2717echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2718set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2719if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721else
2722 cat >conftest.make <<\_ACEOF
252b5132 2723all:
5464f5a1
NN
2724 @echo 'ac_maketemp="$(MAKE)"'
2725_ACEOF
252b5132 2726# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2727eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2728if test -n "$ac_maketemp"; then
2729 eval ac_cv_prog_make_${ac_make}_set=yes
2730else
2731 eval ac_cv_prog_make_${ac_make}_set=no
2732fi
5464f5a1 2733rm -f conftest.make
252b5132
RH
2734fi
2735if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2736 echo "$as_me:$LINENO: result: yes" >&5
2737echo "${ECHO_T}yes" >&6
252b5132
RH
2738 SET_MAKE=
2739else
5464f5a1
NN
2740 echo "$as_me:$LINENO: result: no" >&5
2741echo "${ECHO_T}no" >&6
252b5132
RH
2742 SET_MAKE="MAKE=${MAKE-make}"
2743fi
2744
f5385ebf
AM
2745rm -rf .tst 2>/dev/null
2746mkdir .tst 2>/dev/null
2747if test -d .tst; then
2748 am__leading_dot=.
2749else
2750 am__leading_dot=_
2751fi
2752rmdir .tst 2>/dev/null
2753
2754DEPDIR="${am__leading_dot}deps"
2755
2756 ac_config_commands="$ac_config_commands depfiles"
2757
2758
2759am_make=${MAKE-make}
2760cat > confinc << 'END'
2761am__doit:
2762 @echo done
2763.PHONY: am__doit
2764END
2765# If we don't find an include directive, just comment out the code.
2766echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2767echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2768am__include="#"
2769am__quote=
2770_am_result=none
2771# First try GNU make style include.
2772echo "include confinc" > confmf
2773# We grep out `Entering directory' and `Leaving directory'
2774# messages which can occur if `w' ends up in MAKEFLAGS.
2775# In particular we don't look at `^make:' because GNU make might
2776# be invoked under some other name (usually "gmake"), in which
2777# case it prints its new name instead of `make'.
2778if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2779 am__include=include
2780 am__quote=
2781 _am_result=GNU
2782fi
2783# Now try BSD make style include.
2784if test "$am__include" = "#"; then
2785 echo '.include "confinc"' > confmf
2786 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2787 am__include=.include
2788 am__quote="\""
2789 _am_result=BSD
2790 fi
2791fi
2792
2793
2794echo "$as_me:$LINENO: result: $_am_result" >&5
2795echo "${ECHO_T}$_am_result" >&6
2796rm -f confinc confmf
2797
2798# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2799if test "${enable_dependency_tracking+set}" = set; then
2800 enableval="$enable_dependency_tracking"
2801
2802fi;
2803if test "x$enable_dependency_tracking" != xno; then
2804 am_depcomp="$ac_aux_dir/depcomp"
2805 AMDEPBACKSLASH='\'
2806fi
2807
2808
2809if test "x$enable_dependency_tracking" != xno; then
2810 AMDEP_TRUE=
2811 AMDEP_FALSE='#'
2812else
2813 AMDEP_TRUE='#'
2814 AMDEP_FALSE=
2815fi
6be7c12c 2816
252b5132 2817
252b5132 2818
f5385ebf
AM
2819# test to see if srcdir already configured
2820if test "`cd $srcdir && pwd`" != "`pwd`" &&
2821 test -f $srcdir/config.status; then
5464f5a1
NN
2822 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2823echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2824 { (exit 1); exit 1; }; }
252b5132 2825fi
5464f5a1 2826
f5385ebf
AM
2827# test whether we have cygpath
2828if test -z "$CYGPATH_W"; then
2829 if (cygpath --version) >/dev/null 2>/dev/null; then
2830 CYGPATH_W='cygpath -w'
2831 else
2832 CYGPATH_W=echo
2833 fi
2834fi
2835
2836
2837# Define the identity of the package.
2838 PACKAGE=bfd
ffdc4eed 2839 VERSION=2.17.50
f5385ebf
AM
2840
2841
5464f5a1 2842cat >>confdefs.h <<_ACEOF
252b5132 2843#define PACKAGE "$PACKAGE"
5464f5a1 2844_ACEOF
252b5132 2845
5464f5a1
NN
2846
2847cat >>confdefs.h <<_ACEOF
252b5132 2848#define VERSION "$VERSION"
5464f5a1 2849_ACEOF
252b5132 2850
f5385ebf
AM
2851# Some tools Automake needs.
2852
2853ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2854
2855
2856AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2857
2858
2859AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2860
2861
2862AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2863
2864
2865MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2866
f5385ebf 2867install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2868
f5385ebf
AM
2869# Installed binaries are usually stripped using `strip' when the user
2870# run `make install-strip'. However `strip' might not be the right
2871# tool to use in cross-compilation environments, therefore Automake
2872# will honor the `STRIP' environment variable to overrule this program.
2873if test "$cross_compiling" != no; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876set dummy ${ac_tool_prefix}strip; ac_word=$2
2877echo "$as_me:$LINENO: checking for $ac_word" >&5
2878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879if test "${ac_cv_prog_STRIP+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 if test -n "$STRIP"; then
2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2884else
f5385ebf
AM
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897done
2898
2899fi
2900fi
2901STRIP=$ac_cv_prog_STRIP
2902if test -n "$STRIP"; then
2903 echo "$as_me:$LINENO: result: $STRIP" >&5
2904echo "${ECHO_T}$STRIP" >&6
2905else
2906 echo "$as_me:$LINENO: result: no" >&5
2907echo "${ECHO_T}no" >&6
2908fi
2909
252b5132 2910fi
f5385ebf
AM
2911if test -z "$ac_cv_prog_STRIP"; then
2912 ac_ct_STRIP=$STRIP
2913 # Extract the first word of "strip", so it can be a program name with args.
2914set dummy strip; ac_word=$2
2915echo "$as_me:$LINENO: checking for $ac_word" >&5
2916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919else
2920 if test -n "$ac_ct_STRIP"; then
2921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2922else
2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH
2925do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_STRIP="strip"
2931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934done
2935done
252b5132 2936
f5385ebf
AM
2937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2938fi
2939fi
2940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941if test -n "$ac_ct_STRIP"; then
2942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2943echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2944else
f5385ebf
AM
2945 echo "$as_me:$LINENO: result: no" >&5
2946echo "${ECHO_T}no" >&6
252b5132
RH
2947fi
2948
f5385ebf 2949 STRIP=$ac_ct_STRIP
252b5132 2950else
f5385ebf
AM
2951 STRIP="$ac_cv_prog_STRIP"
2952fi
2953
252b5132 2954fi
f5385ebf
AM
2955INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2956
2957# We need awk for the "check" target. The system "awk" is bad on
2958# some platforms.
2959# Always define AMTAR for backward compatibility.
2960
2961AMTAR=${AMTAR-"${am_missing_run}tar"}
2962
2963am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2964
252b5132 2965
f5385ebf
AM
2966
2967
2968depcc="$CC" am_compiler_list=
2969
2970echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2971echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2972if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2974else
f5385ebf
AM
2975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2976 # We make a subdir and do the tests there. Otherwise we can end up
2977 # making bogus files that we don't know about and never remove. For
2978 # instance it was reported that on HP-UX the gcc test will end up
2979 # making a dummy file named `D' -- because `-MD' means `put the output
2980 # in D'.
2981 mkdir conftest.dir
2982 # Copy depcomp to subdir because otherwise we won't find it if we're
2983 # using a relative directory.
2984 cp "$am_depcomp" conftest.dir
2985 cd conftest.dir
2986 # We will build objects and dependencies in a subdirectory because
2987 # it helps to detect inapplicable dependency modes. For instance
2988 # both Tru64's cc and ICC support -MD to output dependencies as a
2989 # side effect of compilation, but ICC will put the dependencies in
2990 # the current directory while Tru64 will put them in the object
2991 # directory.
2992 mkdir sub
2993
2994 am_cv_CC_dependencies_compiler_type=none
2995 if test "$am_compiler_list" = ""; then
2996 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2997 fi
2998 for depmode in $am_compiler_list; do
2999 # Setup a source with many dependencies, because some compilers
3000 # like to wrap large dependency lists on column 80 (with \), and
3001 # we should not choose a depcomp mode which is confused by this.
3002 #
3003 # We need to recreate these files for each test, as the compiler may
3004 # overwrite some of them when testing with obscure command lines.
3005 # This happens at least with the AIX C compiler.
3006 : > sub/conftest.c
3007 for i in 1 2 3 4 5 6; do
3008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3009 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3010 # Solaris 8's {/usr,}/bin/sh.
3011 touch sub/conftst$i.h
3012 done
3013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3014
3015 case $depmode in
3016 nosideeffect)
3017 # after this tag, mechanisms are not by side-effect, so they'll
3018 # only be used when explicitly requested
3019 if test "x$enable_dependency_tracking" = xyes; then
3020 continue
3021 else
3022 break
3023 fi
3024 ;;
3025 none) break ;;
3026 esac
3027 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3028 # mode. It turns out that the SunPro C++ compiler does not properly
3029 # handle `-M -o', and we need to detect this.
3030 if depmode=$depmode \
3031 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3033 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3034 >/dev/null 2>conftest.err &&
3035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3036 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3038 # icc doesn't choke on unknown options, it will just issue warnings
3039 # or remarks (even with -Werror). So we grep stderr for any message
3040 # that says an option was ignored or not supported.
3041 # When given -MP, icc 7.0 and 7.1 complain thusly:
3042 # icc: Command line warning: ignoring option '-M'; no argument required
3043 # The diagnosis changed in icc 8.0:
3044 # icc: Command line remark: option '-MP' not supported
3045 if (grep 'ignoring option' conftest.err ||
3046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3047 am_cv_CC_dependencies_compiler_type=$depmode
3048 break
3049 fi
3050 fi
3051 done
3052
3053 cd ..
3054 rm -rf conftest.dir
3055else
3056 am_cv_CC_dependencies_compiler_type=none
3057fi
3058
252b5132 3059fi
f5385ebf
AM
3060echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3061echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3062CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3063
f5385ebf
AM
3064
3065
3066if
3067 test "x$enable_dependency_tracking" != xno \
3068 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3069 am__fastdepCC_TRUE=
3070 am__fastdepCC_FALSE='#'
252b5132 3071else
f5385ebf
AM
3072 am__fastdepCC_TRUE='#'
3073 am__fastdepCC_FALSE=
252b5132
RH
3074fi
3075
6be7c12c 3076
e43d48cc 3077
f5385ebf 3078
5464f5a1
NN
3079if test -n "$ac_tool_prefix"; then
3080 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3081set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3082echo "$as_me:$LINENO: checking for $ac_word" >&5
3083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084if test "${ac_cv_prog_AR+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3086else
3087 if test -n "$AR"; then
3088 ac_cv_prog_AR="$AR" # Let the user override the test.
3089else
5464f5a1
NN
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_AR="${ac_tool_prefix}ar"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101done
3102done
3103
252b5132
RH
3104fi
3105fi
5464f5a1 3106AR=$ac_cv_prog_AR
252b5132 3107if test -n "$AR"; then
5464f5a1
NN
3108 echo "$as_me:$LINENO: result: $AR" >&5
3109echo "${ECHO_T}$AR" >&6
252b5132 3110else
5464f5a1
NN
3111 echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6
3113fi
3114
252b5132 3115fi
5464f5a1
NN
3116if test -z "$ac_cv_prog_AR"; then
3117 ac_ct_AR=$AR
3118 # Extract the first word of "ar", so it can be a program name with args.
3119set dummy ar; ac_word=$2
3120echo "$as_me:$LINENO: checking for $ac_word" >&5
3121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125 if test -n "$ac_ct_AR"; then
3126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_ac_ct_AR="ar"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139done
3140done
252b5132 3141
5464f5a1
NN
3142fi
3143fi
3144ac_ct_AR=$ac_cv_prog_ac_ct_AR
3145if test -n "$ac_ct_AR"; then
3146 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3147echo "${ECHO_T}$ac_ct_AR" >&6
3148else
3149 echo "$as_me:$LINENO: result: no" >&5
3150echo "${ECHO_T}no" >&6
3151fi
252b5132 3152
5464f5a1
NN
3153 AR=$ac_ct_AR
3154else
3155 AR="$ac_cv_prog_AR"
3156fi
6be7c12c 3157
5464f5a1
NN
3158if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3160set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3161echo "$as_me:$LINENO: checking for $ac_word" >&5
3162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163if test "${ac_cv_prog_RANLIB+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3165else
3166 if test -n "$RANLIB"; then
3167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3168else
5464f5a1
NN
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180done
3181done
3182
252b5132
RH
3183fi
3184fi
5464f5a1 3185RANLIB=$ac_cv_prog_RANLIB
252b5132 3186if test -n "$RANLIB"; then
5464f5a1
NN
3187 echo "$as_me:$LINENO: result: $RANLIB" >&5
3188echo "${ECHO_T}$RANLIB" >&6
252b5132 3189else
5464f5a1
NN
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
252b5132
RH
3192fi
3193
5464f5a1 3194fi
252b5132 3195if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3196 ac_ct_RANLIB=$RANLIB
252b5132
RH
3197 # Extract the first word of "ranlib", so it can be a program name with args.
3198set dummy ranlib; ac_word=$2
5464f5a1
NN
3199echo "$as_me:$LINENO: checking for $ac_word" >&5
3200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3201if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3203else
5464f5a1
NN
3204 if test -n "$ac_ct_RANLIB"; then
3205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3206else
5464f5a1
NN
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 ac_cv_prog_ac_ct_RANLIB="ranlib"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218done
3219done
3220
3221 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3222fi
3223fi
5464f5a1
NN
3224ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3225if test -n "$ac_ct_RANLIB"; then
3226 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3227echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3228else
5464f5a1
NN
3229 echo "$as_me:$LINENO: result: no" >&5
3230echo "${ECHO_T}no" >&6
252b5132
RH
3231fi
3232
5464f5a1 3233 RANLIB=$ac_ct_RANLIB
252b5132 3234else
5464f5a1 3235 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3236fi
3237
252b5132
RH
3238
3239# Check whether --enable-shared or --disable-shared was given.
3240if test "${enable_shared+set}" = set; then
3241 enableval="$enable_shared"
3242 p=${PACKAGE-default}
55c80943 3243case $enableval in
252b5132
RH
3244yes) enable_shared=yes ;;
3245no) enable_shared=no ;;
3246*)
3247 enable_shared=no
3248 # Look at the argument we got. We use all the common list separators.
3249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3250 for pkg in $enableval; do
3251 if test "X$pkg" = "X$p"; then
3252 enable_shared=yes
3253 fi
3254 done
3255 IFS="$ac_save_ifs"
3256 ;;
3257esac
3258else
3259 enable_shared=no
5464f5a1 3260fi;
252b5132
RH
3261
3262# Check whether --enable-static or --disable-static was given.
3263if test "${enable_static+set}" = set; then
3264 enableval="$enable_static"
3265 p=${PACKAGE-default}
55c80943 3266case $enableval in
252b5132
RH
3267yes) enable_static=yes ;;
3268no) enable_static=no ;;
3269*)
3270 enable_static=no
3271 # Look at the argument we got. We use all the common list separators.
3272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3273 for pkg in $enableval; do
3274 if test "X$pkg" = "X$p"; then
3275 enable_static=yes
3276 fi
3277 done
3278 IFS="$ac_save_ifs"
3279 ;;
3280esac
3281else
3282 enable_static=yes
5464f5a1 3283fi;
b2ef150d
ILT
3284# Check whether --enable-fast-install or --disable-fast-install was given.
3285if test "${enable_fast_install+set}" = set; then
3286 enableval="$enable_fast_install"
3287 p=${PACKAGE-default}
55c80943 3288case $enableval in
b2ef150d
ILT
3289yes) enable_fast_install=yes ;;
3290no) enable_fast_install=no ;;
3291*)
3292 enable_fast_install=no
3293 # Look at the argument we got. We use all the common list separators.
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3295 for pkg in $enableval; do
3296 if test "X$pkg" = "X$p"; then
3297 enable_fast_install=yes
3298 fi
3299 done
3300 IFS="$ac_save_ifs"
3301 ;;
3302esac
3303else
3304 enable_fast_install=yes
5464f5a1 3305fi;
c5d1701e 3306
252b5132
RH
3307# Check whether --with-gnu-ld or --without-gnu-ld was given.
3308if test "${with_gnu_ld+set}" = set; then
3309 withval="$with_gnu_ld"
3310 test "$withval" = no || with_gnu_ld=yes
3311else
3312 with_gnu_ld=no
5464f5a1 3313fi;
252b5132 3314ac_prog=ld
55c80943 3315if test "$GCC" = yes; then
252b5132 3316 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
3317 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3318echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3319 case $host in
3320 *-*-mingw*)
3321 # gcc leaves a trailing carriage return which upsets mingw
3322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3323 *)
3324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3325 esac
55c80943 3326 case $ac_prog in
b2ef150d 3327 # Accept absolute paths.
a74801ba 3328 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
3329 re_direlt='/[^/][^/]*/\.\./'
3330 # Canonicalize the path of ld
3331 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3333 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3334 done
3335 test -z "$LD" && LD="$ac_prog"
3336 ;;
252b5132
RH
3337 "")
3338 # If it fails, then pretend we aren't using GCC.
3339 ac_prog=ld
3340 ;;
3341 *)
3342 # If it is relative, then search for the first ld in PATH.
3343 with_gnu_ld=unknown
3344 ;;
3345 esac
3346elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
3347 echo "$as_me:$LINENO: checking for GNU ld" >&5
3348echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3349else
5464f5a1
NN
3350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3351echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3352fi
5464f5a1
NN
3353if test "${lt_cv_path_LD+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3355else
3356 if test -z "$LD"; then
a74801ba 3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3358 for ac_dir in $PATH; do
3359 test -z "$ac_dir" && ac_dir=.
a74801ba 3360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 3361 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3362 # Check to see if the program is GNU ld. I'd rather use --version,
3363 # but apparently some GNU ld's only accept -v.
3364 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 3365 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3366 test "$with_gnu_ld" != no && break
3367 else
b2ef150d 3368 test "$with_gnu_ld" != yes && break
252b5132
RH
3369 fi
3370 fi
3371 done
3372 IFS="$ac_save_ifs"
3373else
55c80943 3374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3375fi
3376fi
3377
55c80943 3378LD="$lt_cv_path_LD"
252b5132 3379if test -n "$LD"; then
5464f5a1
NN
3380 echo "$as_me:$LINENO: result: $LD" >&5
3381echo "${ECHO_T}$LD" >&6
252b5132 3382else
5464f5a1
NN
3383 echo "$as_me:$LINENO: result: no" >&5
3384echo "${ECHO_T}no" >&6
252b5132 3385fi
5464f5a1
NN
3386test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3387echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3388 { (exit 1); exit 1; }; }
3389echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3390echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3391if test "${lt_cv_prog_gnu_ld+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3393else
3394 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3395if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3396 lt_cv_prog_gnu_ld=yes
252b5132 3397else
55c80943 3398 lt_cv_prog_gnu_ld=no
252b5132
RH
3399fi
3400fi
5464f5a1
NN
3401echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3402echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3403with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3404
6be7c12c 3405
5464f5a1
NN
3406echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3407echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3408if test "${lt_cv_ld_reload_flag+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3410else
3411 lt_cv_ld_reload_flag='-r'
3412fi
5464f5a1
NN
3413echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3414echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3415reload_flag=$lt_cv_ld_reload_flag
3416test -n "$reload_flag" && reload_flag=" $reload_flag"
3417
5464f5a1
NN
3418echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3419echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3420if test "${lt_cv_path_NM+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3422else
3423 if test -n "$NM"; then
3424 # Let the user override the test.
55c80943 3425 lt_cv_path_NM="$NM"
252b5132 3426else
a74801ba 3427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3428 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3429 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3430 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3431 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3432 # Check to see if the nm accepts a BSD-compat flag.
3433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3434 # nm: unknown option "B" ignored
90f2472a
AO
3435 # Tru64's nm complains that /dev/null is an invalid object file
3436 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3437 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3438 break
ac48eca1 3439 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3440 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3441 break
252b5132 3442 else
55c80943 3443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3444 continue # so that we can try to find one that supports BSD flags
252b5132 3445 fi
252b5132
RH
3446 fi
3447 done
3448 IFS="$ac_save_ifs"
55c80943 3449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3450fi
3451fi
3452
55c80943 3453NM="$lt_cv_path_NM"
5464f5a1
NN
3454echo "$as_me:$LINENO: result: $NM" >&5
3455echo "${ECHO_T}$NM" >&6
252b5132 3456
5464f5a1
NN
3457echo "$as_me:$LINENO: checking whether ln -s works" >&5
3458echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3459LN_S=$as_ln_s
3460if test "$LN_S" = "ln -s"; then
3461 echo "$as_me:$LINENO: result: yes" >&5
3462echo "${ECHO_T}yes" >&6
6be7c12c 3463else
5464f5a1
NN
3464 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3465echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3466fi
3467
5464f5a1
NN
3468echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3469echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3470if test "${lt_cv_deplibs_check_method+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3472else
d64552c5 3473 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3474lt_cv_file_magic_test_file=
3475lt_cv_deplibs_check_method='unknown'
3476# Need to set the preceding variable on all platforms that support
3477# interlibrary dependencies.
3478# 'none' -- dependencies not supported.
3479# `unknown' -- same as none, but documents that we really don't know.
3480# 'pass_all' -- all dependencies passed with no checks.
3481# 'test_compile' -- check by making test program.
3482# 'file_magic [regex]' -- check by looking for files in library path
3483# which responds to the $file_magic_cmd with a given egrep regex.
3484# If you have `file' or equivalent on your system and you're not sure
3485# whether `pass_all' will *always* work, you probably want this one.
3486
55c80943
NC
3487case $host_os in
3488aix*)
ac48eca1
AO
3489 lt_cv_deplibs_check_method=pass_all
3490 ;;
3491
3492beos*)
3493 lt_cv_deplibs_check_method=pass_all
3494 ;;
3495
3496bsdi4*)
55c80943
NC
3497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3498 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3499 lt_cv_file_magic_test_file=/shlib/libc.so
3500 ;;
3501
d64552c5 3502cygwin* | mingw* |pw32*)
ac48eca1 3503 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3504 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3505 ;;
3506
55c80943 3507darwin* | rhapsody*)
d70c5fc7 3508 # this will be overwritten by pass_all, but leave it in just in case
55c80943 3509 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3510 lt_cv_file_magic_cmd='/usr/bin/file -L'
3511 case "$host_os" in
3512 rhapsody* | darwin1.012)
3513 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3514 ;;
3515 *) # Darwin 1.3 on
3516 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3517 ;;
3518 esac
d70c5fc7 3519 lt_cv_deplibs_check_method=pass_all
55c80943
NC
3520 ;;
3521
5464f5a1 3522freebsd* | kfreebsd*-gnu)
ac48eca1 3523 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3524 case $host_cpu in
ac48eca1 3525 i*86 )
90f2472a
AO
3526 # Not sure whether the presence of OpenBSD here was a mistake.
3527 # Let's accept both of them until this is cleared up.
55c80943
NC
3528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3529 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3531 ;;
3532 esac
3533 else
3534 lt_cv_deplibs_check_method=pass_all
3535 fi
3536 ;;
3537
3538gnu*)
3539 lt_cv_deplibs_check_method=pass_all
3540 ;;
3541
55c80943 3542hpux10.20*|hpux11*)
4867be41
DJ
3543 case $host_cpu in
3544 hppa*)
3545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3546 lt_cv_file_magic_cmd=/usr/bin/file
3547 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3548 ;;
3549 ia64*)
3550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3551 lt_cv_file_magic_cmd=/usr/bin/file
3552 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3553 ;;
3554 esac
ac48eca1
AO
3555 ;;
3556
3557irix5* | irix6*)
55c80943 3558 case $host_os in
ac48eca1
AO
3559 irix5*)
3560 # this will be overridden with pass_all, but let us keep it just in case
3561 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3562 ;;
3563 *)
55c80943 3564 case $LD in
ac48eca1
AO
3565 *-32|*"-32 ") libmagic=32-bit;;
3566 *-n32|*"-n32 ") libmagic=N32;;
3567 *-64|*"-64 ") libmagic=64-bit;;
3568 *) libmagic=never-match;;
3569 esac
3570 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3571 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3572 ;;
ac48eca1
AO
3573 esac
3574 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3575 lt_cv_deplibs_check_method=pass_all
3576 ;;
3577
3578# This must be Linux ELF.
90f2472a 3579linux-gnu*)
d70c5fc7 3580 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
3581 ;;
3582
5464f5a1 3583netbsd* | knetbsd*-gnu)
55c80943 3584 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3585 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3586 else
b3baf5d0 3587 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3588 fi
55c80943
NC
3589 ;;
3590
3591newsos6)
3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3593 lt_cv_file_magic_cmd=/usr/bin/file
3594 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3595 ;;
3596
3597osf3* | osf4* | osf5*)
3598 # this will be overridden with pass_all, but let us keep it just in case
3599 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3600 lt_cv_file_magic_test_file=/shlib/libc.so
3601 lt_cv_deplibs_check_method=pass_all
3602 ;;
3603
3604sco3.2v5*)
3605 lt_cv_deplibs_check_method=pass_all
3606 ;;
3607
3608solaris*)
3609 lt_cv_deplibs_check_method=pass_all
3610 lt_cv_file_magic_test_file=/lib/libc.so
3611 ;;
3612
6be7c12c
AO
3613sysv5uw[78]* | sysv4*uw2*)
3614 lt_cv_deplibs_check_method=pass_all
3615 ;;
3616
ac48eca1 3617sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3618 case $host_vendor in
ac48eca1
AO
3619 ncr)
3620 lt_cv_deplibs_check_method=pass_all
3621 ;;
3622 motorola)
55c80943
NC
3623 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]'
3624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3625 ;;
3626 esac
3627 ;;
3628esac
3629
3630fi
5464f5a1
NN
3631echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3632echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3633file_magic_cmd=$lt_cv_file_magic_cmd
3634deplibs_check_method=$lt_cv_deplibs_check_method
3635
6be7c12c
AO
3636
3637
6be7c12c
AO
3638
3639# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3640
d70c5fc7
NC
3641# find the maximum length of command line arguments
3642echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3643echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3644if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646else
3647 i=0
3648 teststring="ABCD"
3649
3650 case $build_os in
3651 msdosdjgpp*)
3652 # On DJGPP, this test can blow up pretty badly due to problems in libc
3653 # (any single argument exceeding 2000 bytes causes a buffer overrun
3654 # during glob expansion). Even if it were fixed, the result of this
3655 # check would be larger than it should be.
3656 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3657 ;;
3658
3659 cygwin* | mingw*)
3660 # On Win9x/ME, this test blows up -- it succeeds, but takes
3661 # about 5 minutes as the teststring grows exponentially.
3662 # Worse, since 9x/ME are not pre-emptively multitasking,
3663 # you end up with a "frozen" computer, even though with patience
3664 # the test eventually succeeds (with a max line length of 256k).
3665 # Instead, let's just punt: use the minimum linelength reported by
3666 # all of the supported platforms: 8192 (on NT/2K/XP).
3667 lt_cv_sys_max_cmd_len=8192;
3668 ;;
3669
3670 amigaos*)
3671 # On AmigaOS with pdksh, this test takes hours, literally.
3672 # So we just punt and use a minimum line length of 8192.
3673 lt_cv_sys_max_cmd_len=8192;
3674 ;;
3675
3676 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3677 # This has been around since 386BSD, at least. Likely further.
3678 if test -x /sbin/sysctl; then
3679 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3680 elif test -x /usr/sbin/sysctl; then
3681 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3682 else
3683 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3684 fi
3685 # And add a safety zone
3686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3688 ;;
3689 esac
3690
3691fi
3692
3693if test -n "$lt_cv_sys_max_cmd_len" ; then
3694 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3695echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3696else
3697 echo "$as_me:$LINENO: result: none" >&5
3698echo "${ECHO_T}none" >&6
3699fi
3700
3701
6be7c12c
AO
3702# Only perform the check for file, if the check method requires it
3703case $deplibs_check_method in
3704file_magic*)
3705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3706 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3707echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3708if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3710else
3711 case $MAGIC_CMD in
3712 /*)
3713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3714 ;;
3715 ?:/*)
3716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3717 ;;
3718 *)
d64552c5 3719 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3721 ac_dummy="/usr/bin:$PATH"
3722 for ac_dir in $ac_dummy; do
3723 test -z "$ac_dir" && ac_dir=.
3724 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3726 if test -n "$file_magic_test_file"; then
55c80943 3727 case $deplibs_check_method in
ac48eca1
AO
3728 "file_magic "*)
3729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3732 egrep "$file_magic_regex" > /dev/null; then
3733 :
3734 else
3735 cat <<EOF 1>&2
3736
3737*** Warning: the command libtool uses to detect shared libraries,
3738*** $file_magic_cmd, produces output that libtool cannot recognize.
3739*** The result is that libtool may fail to recognize shared libraries
3740*** as such. This will affect the creation of libtool libraries that
3741*** depend on shared libraries, but programs linked with such libtool
3742*** libraries will work regardless of this problem. Nevertheless, you
3743*** may want to report the problem to your system manager and/or to
3744*** bug-libtool@gnu.org
3745
3746EOF
3747 fi ;;
3748 esac
3749 fi
3750 break
3751 fi
3752 done
3753 IFS="$ac_save_ifs"
d64552c5 3754 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3755 ;;
3756esac
3757fi
3758
d64552c5
AO
3759MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3760if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3761 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3762echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3763else
5464f5a1
NN
3764 echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
ac48eca1
AO
3766fi
3767
d64552c5 3768if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3769 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3770 echo "$as_me:$LINENO: checking for file" >&5
3771echo $ECHO_N "checking for file... $ECHO_C" >&6
3772if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3774else
55c80943 3775 case $MAGIC_CMD in
ac48eca1 3776 /*)
d64552c5 3777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3778 ;;
3779 ?:/*)
d64552c5 3780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3781 ;;
3782 *)
d64552c5 3783 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3785 ac_dummy="/usr/bin:$PATH"
3786 for ac_dir in $ac_dummy; do
3787 test -z "$ac_dir" && ac_dir=.
3788 if test -f $ac_dir/file; then
d64552c5 3789 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3790 if test -n "$file_magic_test_file"; then
55c80943 3791 case $deplibs_check_method in
ac48eca1
AO
3792 "file_magic "*)
3793 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3796 egrep "$file_magic_regex" > /dev/null; then
3797 :
3798 else
3799 cat <<EOF 1>&2
3800
3801*** Warning: the command libtool uses to detect shared libraries,
3802*** $file_magic_cmd, produces output that libtool cannot recognize.
3803*** The result is that libtool may fail to recognize shared libraries
3804*** as such. This will affect the creation of libtool libraries that
3805*** depend on shared libraries, but programs linked with such libtool
3806*** libraries will work regardless of this problem. Nevertheless, you
3807*** may want to report the problem to your system manager and/or to
3808*** bug-libtool@gnu.org
3809
3810EOF
3811 fi ;;
3812 esac
3813 fi
3814 break
3815 fi
3816 done
3817 IFS="$ac_save_ifs"
d64552c5 3818 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3819 ;;
3820esac
3821fi
3822
d64552c5
AO
3823MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3824if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3825 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3826echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3827else
5464f5a1
NN
3828 echo "$as_me:$LINENO: result: no" >&5
3829echo "${ECHO_T}no" >&6
ac48eca1
AO
3830fi
3831
3832 else
d64552c5 3833 MAGIC_CMD=:
ac48eca1
AO
3834 fi
3835fi
3836
3837 fi
3838 ;;
3839esac
3840
5464f5a1
NN
3841if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3843set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3844echo "$as_me:$LINENO: checking for $ac_word" >&5
3845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846if test "${ac_cv_prog_RANLIB+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3848else
3849 if test -n "$RANLIB"; then
3850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3851else
5464f5a1
NN
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863done
3864done
3865
ac48eca1
AO
3866fi
3867fi
5464f5a1 3868RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3869if test -n "$RANLIB"; then
5464f5a1
NN
3870 echo "$as_me:$LINENO: result: $RANLIB" >&5
3871echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3872else
5464f5a1
NN
3873 echo "$as_me:$LINENO: result: no" >&5
3874echo "${ECHO_T}no" >&6
ac48eca1
AO
3875fi
3876
5464f5a1 3877fi
ac48eca1 3878if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3879 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3880 # Extract the first word of "ranlib", so it can be a program name with args.
3881set dummy ranlib; ac_word=$2
5464f5a1
NN
3882echo "$as_me:$LINENO: checking for $ac_word" >&5
3883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3886else
5464f5a1
NN
3887 if test -n "$ac_ct_RANLIB"; then
3888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3889else
5464f5a1
NN
3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH
3892do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_ac_ct_RANLIB="ranlib"
3898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901done
3902done
3903
3904 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3905fi
3906fi
5464f5a1
NN
3907ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3908if test -n "$ac_ct_RANLIB"; then
3909 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3910echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3911else
5464f5a1
NN
3912 echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6
ac48eca1
AO
3914fi
3915
5464f5a1 3916 RANLIB=$ac_ct_RANLIB
ac48eca1 3917else
5464f5a1 3918 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3919fi
3920
5464f5a1
NN
3921if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3923set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3924echo "$as_me:$LINENO: checking for $ac_word" >&5
3925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926if test "${ac_cv_prog_STRIP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3928else
3929 if test -n "$STRIP"; then
3930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3931else
5464f5a1
NN
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943done
3944done
3945
ac48eca1
AO
3946fi
3947fi
5464f5a1 3948STRIP=$ac_cv_prog_STRIP
ac48eca1 3949if test -n "$STRIP"; then
5464f5a1
NN
3950 echo "$as_me:$LINENO: result: $STRIP" >&5
3951echo "${ECHO_T}$STRIP" >&6
ac48eca1 3952else
5464f5a1
NN
3953 echo "$as_me:$LINENO: result: no" >&5
3954echo "${ECHO_T}no" >&6
ac48eca1
AO
3955fi
3956
5464f5a1 3957fi
ac48eca1 3958if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3959 ac_ct_STRIP=$STRIP
ac48eca1
AO
3960 # Extract the first word of "strip", so it can be a program name with args.
3961set dummy strip; ac_word=$2
5464f5a1
NN
3962echo "$as_me:$LINENO: checking for $ac_word" >&5
3963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3966else
5464f5a1
NN
3967 if test -n "$ac_ct_STRIP"; then
3968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3969else
5464f5a1
NN
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_STRIP="strip"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981done
3982done
3983
3984 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3985fi
3986fi
5464f5a1
NN
3987ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3988if test -n "$ac_ct_STRIP"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3990echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3991else
5464f5a1
NN
3992 echo "$as_me:$LINENO: result: no" >&5
3993echo "${ECHO_T}no" >&6
ac48eca1
AO
3994fi
3995
5464f5a1 3996 STRIP=$ac_ct_STRIP
ac48eca1 3997else
5464f5a1 3998 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3999fi
252b5132 4000
6be7c12c 4001
252b5132 4002# Check for any special flags to pass to ltconfig.
b2ef150d 4003libtool_flags="--cache-file=$cache_file"
252b5132
RH
4004test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4005test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 4006test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
4007test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4008test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 4009
6be7c12c 4010
a74801ba
ILT
4011# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4012if test "${enable_libtool_lock+set}" = set; then
4013 enableval="$enable_libtool_lock"
a74801ba 4014
5464f5a1 4015fi;
a74801ba
ILT
4016test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4017test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4018
5464f5a1 4019
ac48eca1
AO
4020# Check whether --with-pic or --without-pic was given.
4021if test "${with_pic+set}" = set; then
4022 withval="$with_pic"
4023 pic_mode="$withval"
4024else
5464f5a1
NN
4025 pic_mode=default
4026fi;
ac48eca1
AO
4027test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4028test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4029
252b5132
RH
4030# Some flags need to be propagated to the compiler or linker for good
4031# libtool support.
55c80943 4032case $host in
252b5132
RH
4033*-*-irix6*)
4034 # Find out which ABI we are using.
d70c5fc7 4035 echo '#line 4035 "configure"' > conftest.$ac_ext
5464f5a1
NN
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; then
6a457e5c
NC
4041 if test "$lt_cv_prog_gnu_ld" = yes; then
4042 case `/usr/bin/file conftest.$ac_objext` in
4043 *32-bit*)
4044 LD="${LD-ld} -melf32bsmip"
4045 ;;
4046 *N32*)
4047 LD="${LD-ld} -melf32bmipn32"
4048 ;;
4049 *64-bit*)
4050 LD="${LD-ld} -melf64bmip"
4051 ;;
4052 esac
4053 else
55c80943 4054 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
4055 *32-bit*)
4056 LD="${LD-ld} -32"
4057 ;;
4058 *N32*)
4059 LD="${LD-ld} -n32"
4060 ;;
4061 *64-bit*)
4062 LD="${LD-ld} -64"
4063 ;;
4064 esac
6a457e5c 4065 fi
252b5132
RH
4066 fi
4067 rm -rf conftest*
4068 ;;
4069
4867be41
DJ
4070ia64-*-hpux*)
4071 # Find out which ABI we are using.
4072 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; then
4867be41
DJ
4078 case "`/usr/bin/file conftest.o`" in
4079 *ELF-32*)
4080 HPUX_IA64_MODE="32"
4081 ;;
4082 *ELF-64*)
4083 HPUX_IA64_MODE="64"
4084 ;;
4085 esac
4086 fi
4087 rm -rf conftest*
4088 ;;
4089
d70c5fc7
NC
4090x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4091 # Find out which ABI we are using.
4092 echo 'int i;' > conftest.$ac_ext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; then
4098 case "`/usr/bin/file conftest.o`" in
4099 *32-bit*)
4100 case $host in
4101 x86_64-*linux*)
4102 LD="${LD-ld} -m elf_i386"
4103 ;;
4104 ppc64-*linux*|powerpc64-*linux*)
4105 LD="${LD-ld} -m elf32ppclinux"
4106 ;;
4107 s390x-*linux*)
4108 LD="${LD-ld} -m elf_s390"
4109 ;;
4110 sparc64-*linux*)
4111 LD="${LD-ld} -m elf32_sparc"
4112 ;;
4113 esac
4114 ;;
4115 *64-bit*)
4116 case $host in
4117 x86_64-*linux*)
4118 LD="${LD-ld} -m elf_x86_64"
4119 ;;
4120 ppc*-*linux*|powerpc*-*linux*)
4121 LD="${LD-ld} -m elf64ppc"
4122 ;;
4123 s390*-*linux*)
4124 LD="${LD-ld} -m elf64_s390"
4125 ;;
4126 sparc*-*linux*)
4127 LD="${LD-ld} -m elf64_sparc"
4128 ;;
4129 esac
4130 ;;
4131 esac
4132 fi
4133 rm -rf conftest*
4134 ;;
4135
252b5132
RH
4136*-*-sco3.2v5*)
4137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4138 SAVE_CFLAGS="$CFLAGS"
252b5132 4139 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4140 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4141echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4142if test "${lt_cv_cc_needs_belf+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4144else
5464f5a1
NN
4145
4146
ac48eca1 4147 ac_ext=c
ac48eca1 4148ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4152
5464f5a1
NN
4153 cat >conftest.$ac_ext <<_ACEOF
4154/* confdefs.h. */
4155_ACEOF
4156cat confdefs.h >>conftest.$ac_ext
4157cat >>conftest.$ac_ext <<_ACEOF
4158/* end confdefs.h. */
b2ef150d 4159
5464f5a1
NN
4160int
4161main ()
4162{
b2ef150d 4163
5464f5a1
NN
4164 ;
4165 return 0;
4166}
4167_ACEOF
4168rm -f conftest.$ac_objext conftest$ac_exeext
4169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4170 (eval $ac_link) 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
49c96104
SE
4177 { ac_try='test -z "$ac_c_werror_flag"
4178 || test ! -s conftest.err'
5464f5a1
NN
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
b2ef150d
ILT
4190 lt_cv_cc_needs_belf=yes
4191else
5464f5a1
NN
4192 echo "$as_me: failed program was:" >&5
4193sed 's/^/| /' conftest.$ac_ext >&5
4194
4195lt_cv_cc_needs_belf=no
b2ef150d 4196fi
5464f5a1
NN
4197rm -f conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4199 ac_ext=c
ac48eca1 4200ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4204
b2ef150d 4205fi
5464f5a1
NN
4206echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4207echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4208 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4209 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4210 CFLAGS="$SAVE_CFLAGS"
4211 fi
252b5132
RH
4212 ;;
4213
6be7c12c 4214
252b5132
RH
4215esac
4216
6be7c12c 4217
b2ef150d 4218# Save cache, so that ltconfig can load it
5464f5a1 4219cat >confcache <<\_ACEOF
b2ef150d
ILT
4220# This file is a shell script that caches the results of configure
4221# tests run on this system so they can be shared between configure
5464f5a1
NN
4222# scripts and configure runs, see configure's option --config-cache.
4223# It is not useful on other systems. If it contains results you don't
4224# want to keep, you may remove or edit it.
b2ef150d 4225#
5464f5a1
NN
4226# config.status only pays attention to the cache file if you give it
4227# the --recheck option to rerun configure.
b2ef150d 4228#
5464f5a1
NN
4229# `ac_cv_env_foo' variables (set or unset) will be overridden when
4230# loading this file, other *unset* `ac_cv_foo' will be assigned the
4231# following values.
4232
4233_ACEOF
4234
b2ef150d
ILT
4235# The following way of writing the cache mishandles newlines in values,
4236# but we know of no workaround that is simple, portable, and efficient.
4237# So, don't put newlines in cache variables' values.
4238# Ultrix sh set writes to stderr and can't be redirected directly,
4239# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4240{
4241 (set) 2>&1 |
4242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4243 *ac_space=\ *)
4244 # `set' does not quote correctly, so add quotes (double-quote
4245 # substitution turns \\\\ into \\, and sed turns \\ into \).
4246 sed -n \
4247 "s/'/'\\\\''/g;
4248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4249 ;;
4250 *)
4251 # `set' quotes correctly as required by POSIX, so do not add quotes.
4252 sed -n \
4253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4254 ;;
4255 esac;
4256} |
4257 sed '
4258 t clear
4259 : clear
4260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4261 t end
4262 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4263 : end' >>confcache
4264if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4265 if test -w $cache_file; then
5464f5a1
NN
4266 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4267 cat confcache >$cache_file
b2ef150d
ILT
4268 else
4269 echo "not updating unwritable cache $cache_file"
4270 fi
4271fi
4272rm -f confcache
4273
252b5132 4274# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4275AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4276MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4277LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4278AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4279objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4280deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4281${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4282$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4283|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4284echo "$as_me: error: libtool configure failed" >&2;}
4285 { (exit 1); exit 1; }; }
252b5132 4286
b2ef150d
ILT
4287# Reload cache, that may have been modified by ltconfig
4288if test -r "$cache_file"; then
5464f5a1
NN
4289 # Some versions of bash will fail to source /dev/null (special
4290 # files actually), so we avoid doing that.
4291 if test -f "$cache_file"; then
4292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4293echo "$as_me: loading cache $cache_file" >&6;}
4294 case $cache_file in
4295 [\\/]* | ?:[\\/]* ) . $cache_file;;
4296 *) . ./$cache_file;;
4297 esac
4298 fi
b2ef150d 4299else
5464f5a1
NN
4300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4301echo "$as_me: creating cache $cache_file" >&6;}
4302 >$cache_file
b2ef150d
ILT
4303fi
4304
6be7c12c 4305
b2ef150d 4306# This can be used to rebuild libtool when needed
ac48eca1 4307LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4308
4309# Always use our own libtool.
4310LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4311
252b5132
RH
4312# Redirect the config.log output again, so that the ltconfig log is not
4313# clobbered by the next message.
4314exec 5>>./config.log
4315
6be7c12c 4316
5464f5a1
NN
4317
4318
4319
4320
6be7c12c 4321
252b5132
RH
4322# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4323if test "${enable_64_bit_bfd+set}" = set; then
4324 enableval="$enable_64_bit_bfd"
4325 case "${enableval}" in
4326 yes) want64=true ;;
4327 no) want64=false ;;
5464f5a1
NN
4328 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4329echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4330 { (exit 1); exit 1; }; } ;;
252b5132
RH
4331esac
4332else
4333 want64=false
5464f5a1 4334fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4335if test "${enable_targets+set}" = set; then
4336 enableval="$enable_targets"
4337 case "${enableval}" in
5464f5a1
NN
4338 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4339echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4340 { (exit 1); exit 1; }; }
252b5132
RH
4341 ;;
4342 no) enable_targets= ;;
4343 *) enable_targets=$enableval ;;
4344esac
5464f5a1 4345fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4346if test "${enable_commonbfdlib+set}" = set; then
4347 enableval="$enable_commonbfdlib"
4348 case "${enableval}" in
4349 yes) commonbfdlib=true ;;
4350 no) commonbfdlib=false ;;
5464f5a1
NN
4351 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4352echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4353 { (exit 1); exit 1; }; } ;;
252b5132 4354esac
5464f5a1 4355fi;
252b5132
RH
4356# Check whether --with-mmap or --without-mmap was given.
4357if test "${with_mmap+set}" = set; then
4358 withval="$with_mmap"
4359 case "${withval}" in
4360 yes) want_mmap=true ;;
4361 no) want_mmap=false ;;
5464f5a1
NN
4362 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4363echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4364 { (exit 1); exit 1; }; } ;;
252b5132
RH
4365esac
4366else
4367 want_mmap=false
5464f5a1 4368fi;
6ec7057a
RH
4369# Check whether --enable-secureplt or --disable-secureplt was given.
4370if test "${enable_secureplt+set}" = set; then
4371 enableval="$enable_secureplt"
4372 case "${enableval}" in
4373 yes) use_secureplt=true ;;
4374 no) use_secureplt=false ;;
4375 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4376echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4377 { (exit 1); exit 1; }; } ;;
4378esac
4379else
4380 use_secureplt=false
4381fi; if test $use_secureplt = true; then
4382
4383cat >>confdefs.h <<\_ACEOF
4384#define USE_SECUREPLT 1
4385_ACEOF
4386
4387fi
4388
9e9b66a9 4389
49c96104 4390GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4391
569acd2c
NC
4392# Check whether --enable-werror or --disable-werror was given.
4393if test "${enable_werror+set}" = set; then
4394 enableval="$enable_werror"
1ad12f97
NC
4395 case "${enableval}" in
4396 yes | y) ERROR_ON_WARNING="yes" ;;
4397 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4398 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4399echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4400 { (exit 1); exit 1; }; } ;;
4401 esac
4402fi;
4403
9e9b66a9
AM
4404# Enable -Werror by default when using gcc
4405if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4406 ERROR_ON_WARNING=yes
4407fi
4408
4409NO_WERROR=
4410if test "${ERROR_ON_WARNING}" = yes ; then
49c96104 4411 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 4412 NO_WERROR="-Wno-error"
1ad12f97
NC
4413fi
4414
49c96104
SE
4415if test "${GCC}" = yes ; then
4416 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4417fi
4418
a2d91340
AC
4419# Check whether --enable-build-warnings or --disable-build-warnings was given.
4420if test "${enable_build_warnings+set}" = set; then
4421 enableval="$enable_build_warnings"
4422 case "${enableval}" in
49c96104
SE
4423 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4424 no) if test "${GCC}" = yes ; then
4425 WARN_CFLAGS="-w"
4426 fi;;
a2d91340 4427 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4428 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4429 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4430 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4431 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4432esac
9e9b66a9
AM
4433fi;
4434
4435if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4436 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4437fi
4438
4439
9e9b66a9
AM
4440
4441
4442
5464f5a1 4443 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4444
252b5132
RH
4445
4446if test -z "$target" ; then
5464f5a1
NN
4447 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4448echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4449 { (exit 1); exit 1; }; }
252b5132 4450fi
252b5132 4451
5464f5a1
NN
4452echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4453echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4454 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4455if test "${enable_maintainer_mode+set}" = set; then
4456 enableval="$enable_maintainer_mode"
4457 USE_MAINTAINER_MODE=$enableval
4458else
4459 USE_MAINTAINER_MODE=no
5464f5a1
NN
4460fi;
4461 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4462echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4463
252b5132
RH
4464
4465if test $USE_MAINTAINER_MODE = yes; then
4466 MAINTAINER_MODE_TRUE=
4467 MAINTAINER_MODE_FALSE='#'
4468else
4469 MAINTAINER_MODE_TRUE='#'
4470 MAINTAINER_MODE_FALSE=
4471fi
f5385ebf 4472
252b5132 4473 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4474
5464f5a1 4475
24443139
AS
4476 case ${build_alias} in
4477 "") build_noncanonical=${build} ;;
4478 *) build_noncanonical=${build_alias} ;;
4479esac
4480
4481 case ${host_alias} in
4482 "") host_noncanonical=${build_noncanonical} ;;
4483 *) host_noncanonical=${host_alias} ;;
4484esac
4485
4486 case ${target_alias} in
4487 "") target_noncanonical=${host_noncanonical} ;;
4488 *) target_noncanonical=${target_alias} ;;
4489esac
4490
5464f5a1
NN
4491echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4492echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4493 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4494if test "${enable_install_libbfd+set}" = set; then
4495 enableval="$enable_install_libbfd"
4496 install_libbfd_p=$enableval
4497else
66e25bab 4498 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4499 install_libbfd_p=yes
4500 else
4501 install_libbfd_p=no
4502 fi
5464f5a1
NN
4503fi;
4504 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4505echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4506
a703a6ea
AM
4507
4508if test $install_libbfd_p = yes; then
4509 INSTALL_LIBBFD_TRUE=
4510 INSTALL_LIBBFD_FALSE='#'
4511else
4512 INSTALL_LIBBFD_TRUE='#'
4513 INSTALL_LIBBFD_FALSE=
4514fi
f5385ebf 4515
5464f5a1 4516 # Need _noncanonical variables for this.
24443139
AS
4517
4518
4519
4520
a703a6ea
AM
4521 # libbfd.a is a host library containing target dependent code
4522 bfdlibdir='$(libdir)'
4523 bfdincludedir='$(includedir)'
4524 if test "${host}" != "${target}"; then
5464f5a1
NN
4525 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4526 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4527 fi
a703a6ea
AM
4528
4529
252b5132
RH
4530
4531
5464f5a1
NN
4532
4533
4534host64=false
4535target64=false
4536bfd_default_target_size=32
4537
4538# host stuff:
4539
4540ac_ext=c
4541ac_cpp='$CPP $CPPFLAGS'
4542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545if test -n "$ac_tool_prefix"; then
4546 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4547set dummy ${ac_tool_prefix}gcc; ac_word=$2
4548echo "$as_me:$LINENO: checking for $ac_word" >&5
4549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550if test "${ac_cv_prog_CC+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4552else
5464f5a1
NN
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4555else
5464f5a1
NN
4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
6be7c12c 4566 fi
5464f5a1
NN
4567done
4568done
4569
252b5132 4570fi
b3baf5d0 4571fi
5464f5a1
NN
4572CC=$ac_cv_prog_CC
4573if test -n "$CC"; then
4574 echo "$as_me:$LINENO: result: $CC" >&5
4575echo "${ECHO_T}$CC" >&6
4576else
4577 echo "$as_me:$LINENO: result: no" >&5
4578echo "${ECHO_T}no" >&6
4579fi
252b5132 4580
5464f5a1
NN
4581fi
4582if test -z "$ac_cv_prog_CC"; then
4583 ac_ct_CC=$CC
4584 # Extract the first word of "gcc", so it can be a program name with args.
4585set dummy gcc; ac_word=$2
4586echo "$as_me:$LINENO: checking for $ac_word" >&5
4587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4588if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591 if test -n "$ac_ct_CC"; then
4592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4593else
4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595for as_dir in $PATH
4596do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4601 ac_cv_prog_ac_ct_CC="gcc"
4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4604 fi
4605done
4606done
252b5132 4607
5464f5a1
NN
4608fi
4609fi
4610ac_ct_CC=$ac_cv_prog_ac_ct_CC
4611if test -n "$ac_ct_CC"; then
4612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4613echo "${ECHO_T}$ac_ct_CC" >&6
4614else
4615 echo "$as_me:$LINENO: result: no" >&5
4616echo "${ECHO_T}no" >&6
4617fi
252b5132 4618
5464f5a1
NN
4619 CC=$ac_ct_CC
4620else
4621 CC="$ac_cv_prog_CC"
4622fi
252b5132 4623
5464f5a1
NN
4624if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4627set dummy ${ac_tool_prefix}cc; ac_word=$2
4628echo "$as_me:$LINENO: checking for $ac_word" >&5
4629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4630if test "${ac_cv_prog_CC+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4632else
4633 if test -n "$CC"; then
4634 ac_cv_prog_CC="$CC" # Let the user override the test.
4635else
4636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637for as_dir in $PATH
4638do
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4643 ac_cv_prog_CC="${ac_tool_prefix}cc"
4644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 break 2
4646 fi
4647done
4648done
6be7c12c 4649
5464f5a1
NN
4650fi
4651fi
4652CC=$ac_cv_prog_CC
4653if test -n "$CC"; then
4654 echo "$as_me:$LINENO: result: $CC" >&5
4655echo "${ECHO_T}$CC" >&6
4656else
4657 echo "$as_me:$LINENO: result: no" >&5
4658echo "${ECHO_T}no" >&6
4659fi
4660
4661fi
4662if test -z "$ac_cv_prog_CC"; then
4663 ac_ct_CC=$CC
4664 # Extract the first word of "cc", so it can be a program name with args.
4665set dummy cc; ac_word=$2
4666echo "$as_me:$LINENO: checking for $ac_word" >&5
4667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4668if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671 if test -n "$ac_ct_CC"; then
4672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4673else
4674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in $PATH
4676do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_ac_ct_CC="cc"
4682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685done
4686done
4687
4688fi
4689fi
4690ac_ct_CC=$ac_cv_prog_ac_ct_CC
4691if test -n "$ac_ct_CC"; then
4692 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4693echo "${ECHO_T}$ac_ct_CC" >&6
4694else
4695 echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6
4697fi
4698
4699 CC=$ac_ct_CC
4700else
4701 CC="$ac_cv_prog_CC"
4702fi
4703
4704fi
4705if test -z "$CC"; then
4706 # Extract the first word of "cc", so it can be a program name with args.
4707set dummy cc; ac_word=$2
4708echo "$as_me:$LINENO: checking for $ac_word" >&5
4709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710if test "${ac_cv_prog_CC+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4712else
4713 if test -n "$CC"; then
4714 ac_cv_prog_CC="$CC" # Let the user override the test.
4715else
5464f5a1
NN
4716 ac_prog_rejected=no
4717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4725 ac_prog_rejected=yes
4726 continue
4727 fi
4728 ac_cv_prog_CC="cc"
4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732done
4733done
4734
4735if test $ac_prog_rejected = yes; then
4736 # We found a bogon in the path, so make sure we never use it.
4737 set dummy $ac_cv_prog_CC
4738 shift
4739 if test $# != 0; then
4740 # We chose a different compiler from the bogus one.
4741 # However, it has the same basename, so the bogon will be chosen
4742 # first if we set CC to just the basename; use the full file name.
4743 shift
4744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4745 fi
4746fi
4747fi
4748fi
4749CC=$ac_cv_prog_CC
4750if test -n "$CC"; then
4751 echo "$as_me:$LINENO: result: $CC" >&5
4752echo "${ECHO_T}$CC" >&6
4753else
4754 echo "$as_me:$LINENO: result: no" >&5
4755echo "${ECHO_T}no" >&6
4756fi
4757
4758fi
4759if test -z "$CC"; then
4760 if test -n "$ac_tool_prefix"; then
4761 for ac_prog in cl
4762 do
4763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4764set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4765echo "$as_me:$LINENO: checking for $ac_word" >&5
4766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4767if test "${ac_cv_prog_CC+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4769else
4770 if test -n "$CC"; then
4771 ac_cv_prog_CC="$CC" # Let the user override the test.
4772else
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
4775do
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4783 fi
4784done
4785done
4786
4787fi
4788fi
4789CC=$ac_cv_prog_CC
4790if test -n "$CC"; then
4791 echo "$as_me:$LINENO: result: $CC" >&5
4792echo "${ECHO_T}$CC" >&6
4793else
4794 echo "$as_me:$LINENO: result: no" >&5
4795echo "${ECHO_T}no" >&6
4796fi
4797
4798 test -n "$CC" && break
6be7c12c 4799 done
252b5132 4800fi
5464f5a1
NN
4801if test -z "$CC"; then
4802 ac_ct_CC=$CC
4803 for ac_prog in cl
4804do
4805 # Extract the first word of "$ac_prog", so it can be a program name with args.
4806set dummy $ac_prog; ac_word=$2
4807echo "$as_me:$LINENO: checking for $ac_word" >&5
4808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4809if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812 if test -n "$ac_ct_CC"; then
4813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4814else
4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4822 ac_cv_prog_ac_ct_CC="$ac_prog"
4823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4825 fi
4826done
4827done
4828
4829fi
4830fi
4831ac_ct_CC=$ac_cv_prog_ac_ct_CC
4832if test -n "$ac_ct_CC"; then
4833 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4834echo "${ECHO_T}$ac_ct_CC" >&6
4835else
4836 echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
4838fi
4839
4840 test -n "$ac_ct_CC" && break
4841done
4842
4843 CC=$ac_ct_CC
4844fi
4845
4846fi
4847
4848
4849test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4850See \`config.log' for more details." >&5
4851echo "$as_me: error: no acceptable C compiler found in \$PATH
4852See \`config.log' for more details." >&2;}
4853 { (exit 1); exit 1; }; }
4854
4855# Provide some information about the compiler.
4856echo "$as_me:$LINENO:" \
4857 "checking for C compiler version" >&5
4858ac_compiler=`set X $ac_compile; echo $2`
4859{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4860 (eval $ac_compiler --version </dev/null >&5) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }
4864{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4865 (eval $ac_compiler -v </dev/null >&5) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }
4869{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4870 (eval $ac_compiler -V </dev/null >&5) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }
4874
4875echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4876echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4877if test "${ac_cv_c_compiler_gnu+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879else
4880 cat >conftest.$ac_ext <<_ACEOF
4881/* confdefs.h. */
4882_ACEOF
4883cat confdefs.h >>conftest.$ac_ext
4884cat >>conftest.$ac_ext <<_ACEOF
4885/* end confdefs.h. */
4886
4887int
4888main ()
4889{
4890#ifndef __GNUC__
4891 choke me
4892#endif
4893
4894 ;
4895 return 0;
4896}
4897_ACEOF
4898rm -f conftest.$ac_objext
4899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
49c96104
SE
4907 { ac_try='test -z "$ac_c_werror_flag"
4908 || test ! -s conftest.err'
5464f5a1
NN
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try='test -s conftest.$ac_objext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916 (eval $ac_try) 2>&5
4917 ac_status=$?
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_compiler_gnu=yes
4921else
4922 echo "$as_me: failed program was:" >&5
4923sed 's/^/| /' conftest.$ac_ext >&5
4924
4925ac_compiler_gnu=no
4926fi
4927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4928ac_cv_c_compiler_gnu=$ac_compiler_gnu
4929
4930fi
4931echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4932echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4933GCC=`test $ac_compiler_gnu = yes && echo yes`
4934ac_test_CFLAGS=${CFLAGS+set}
4935ac_save_CFLAGS=$CFLAGS
4936CFLAGS="-g"
4937echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4938echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4939if test "${ac_cv_prog_cc_g+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941else
4942 cat >conftest.$ac_ext <<_ACEOF
4943/* confdefs.h. */
4944_ACEOF
4945cat confdefs.h >>conftest.$ac_ext
4946cat >>conftest.$ac_ext <<_ACEOF
4947/* end confdefs.h. */
4948
4949int
4950main ()
4951{
4952
4953 ;
4954 return 0;
4955}
4956_ACEOF
4957rm -f conftest.$ac_objext
4958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>conftest.er1
4960 ac_status=$?
4961 grep -v '^ *+' conftest.er1 >conftest.err
4962 rm -f conftest.er1
4963 cat conftest.err >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
49c96104
SE
4966 { ac_try='test -z "$ac_c_werror_flag"
4967 || test ! -s conftest.err'
5464f5a1
NN
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 (eval $ac_try) 2>&5
4970 ac_status=$?
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; } &&
4973 { ac_try='test -s conftest.$ac_objext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 (eval $ac_try) 2>&5
4976 ac_status=$?
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4979 ac_cv_prog_cc_g=yes
4980else
4981 echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
4984ac_cv_prog_cc_g=no
4985fi
4986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4987fi
4988echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4989echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4990if test "$ac_test_CFLAGS" = set; then
4991 CFLAGS=$ac_save_CFLAGS
4992elif test $ac_cv_prog_cc_g = yes; then
4993 if test "$GCC" = yes; then
4994 CFLAGS="-g -O2"
4995 else
4996 CFLAGS="-g"
4997 fi
4998else
4999 if test "$GCC" = yes; then
5000 CFLAGS="-O2"
5001 else
5002 CFLAGS=
5003 fi
5004fi
5005echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5006echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5007if test "${ac_cv_prog_cc_stdc+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010 ac_cv_prog_cc_stdc=no
5011ac_save_CC=$CC
5012cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h. */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h. */
5018#include <stdarg.h>
5019#include <stdio.h>
5020#include <sys/types.h>
5021#include <sys/stat.h>
5022/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5023struct buf { int x; };
5024FILE * (*rcsopen) (struct buf *, struct stat *, int);
5025static char *e (p, i)
5026 char **p;
5027 int i;
5028{
5029 return p[i];
5030}
5031static char *f (char * (*g) (char **, int), char **p, ...)
5032{
5033 char *s;
5034 va_list v;
5035 va_start (v,p);
5036 s = g (p, va_arg (v,int));
5037 va_end (v);
5038 return s;
5039}
5040
5041/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5042 function prototypes and stuff, but not '\xHH' hex character constants.
5043 These don't provoke an error unfortunately, instead are silently treated
5044 as 'x'. The following induces an error, until -std1 is added to get
5045 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5046 array size at least. It's necessary to write '\x00'==0 to get something
5047 that's true only with -std1. */
5048int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5049
5050int test (int i, double x);
5051struct s1 {int (*f) (int a);};
5052struct s2 {int (*f) (double a);};
5053int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5054int argc;
5055char **argv;
5056int
5057main ()
5058{
5059return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5060 ;
5061 return 0;
5062}
5063_ACEOF
5064# Don't try gcc -ansi; that turns off useful extensions and
5065# breaks some systems' header files.
5066# AIX -qlanglvl=ansi
5067# Ultrix and OSF/1 -std1
5068# HP-UX 10.20 and later -Ae
5069# HP-UX older versions -Aa -D_HPUX_SOURCE
5070# SVR4 -Xc -D__EXTENSIONS__
5071for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5072do
5073 CC="$ac_save_CC $ac_arg"
5074 rm -f conftest.$ac_objext
5075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076 (eval $ac_compile) 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
49c96104
SE
5083 { ac_try='test -z "$ac_c_werror_flag"
5084 || test ! -s conftest.err'
5464f5a1
NN
5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086 (eval $ac_try) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }; } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 (eval $ac_try) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 ac_cv_prog_cc_stdc=$ac_arg
5097break
5098else
5099 echo "$as_me: failed program was:" >&5
5100sed 's/^/| /' conftest.$ac_ext >&5
5101
5102fi
5103rm -f conftest.err conftest.$ac_objext
5104done
5105rm -f conftest.$ac_ext conftest.$ac_objext
5106CC=$ac_save_CC
5107
5108fi
5109
5110case "x$ac_cv_prog_cc_stdc" in
5111 x|xno)
5112 echo "$as_me:$LINENO: result: none needed" >&5
5113echo "${ECHO_T}none needed" >&6 ;;
5114 *)
5115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5116echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5117 CC="$CC $ac_cv_prog_cc_stdc" ;;
5118esac
5119
5120# Some people use a C++ compiler to compile C. Since we use `exit',
5121# in C++ we need to declare it. In case someone uses the same compiler
5122# for both compiling C and C++ we need to have the C++ compiler decide
5123# the declaration of exit, since it's the most demanding environment.
5124cat >conftest.$ac_ext <<_ACEOF
5125#ifndef __cplusplus
5126 choke me
5127#endif
5128_ACEOF
5129rm -f conftest.$ac_objext
5130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5131 (eval $ac_compile) 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
49c96104
SE
5138 { ac_try='test -z "$ac_c_werror_flag"
5139 || test ! -s conftest.err'
5464f5a1
NN
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; } &&
5145 { ac_try='test -s conftest.$ac_objext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 for ac_declaration in \
5152 '' \
5153 'extern "C" void std::exit (int) throw (); using std::exit;' \
5154 'extern "C" void std::exit (int); using std::exit;' \
5155 'extern "C" void exit (int) throw ();' \
5156 'extern "C" void exit (int);' \
5157 'void exit (int);'
5158do
5159 cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h. */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h. */
5165$ac_declaration
5166#include <stdlib.h>
5167int
5168main ()
5169{
5170exit (42);
5171 ;
5172 return 0;
5173}
5174_ACEOF
5175rm -f conftest.$ac_objext
5176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5177 (eval $ac_compile) 2>conftest.er1
5178 ac_status=$?
5179 grep -v '^ *+' conftest.er1 >conftest.err
5180 rm -f conftest.er1
5181 cat conftest.err >&5
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); } &&
49c96104
SE
5184 { ac_try='test -z "$ac_c_werror_flag"
5185 || test ! -s conftest.err'
5464f5a1
NN
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5187 (eval $ac_try) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; } &&
5191 { ac_try='test -s conftest.$ac_objext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5197 :
5198else
5199 echo "$as_me: failed program was:" >&5
5200sed 's/^/| /' conftest.$ac_ext >&5
5201
5202continue
5203fi
5204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5205 cat >conftest.$ac_ext <<_ACEOF
5206/* confdefs.h. */
5207_ACEOF
5208cat confdefs.h >>conftest.$ac_ext
5209cat >>conftest.$ac_ext <<_ACEOF
5210/* end confdefs.h. */
5211$ac_declaration
5212int
5213main ()
5214{
5215exit (42);
5216 ;
5217 return 0;
5218}
5219_ACEOF
5220rm -f conftest.$ac_objext
5221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>conftest.er1
5223 ac_status=$?
5224 grep -v '^ *+' conftest.er1 >conftest.err
5225 rm -f conftest.er1
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } &&
49c96104
SE
5229 { ac_try='test -z "$ac_c_werror_flag"
5230 || test ! -s conftest.err'
5464f5a1
NN
5231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232 (eval $ac_try) 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 (eval $ac_try) 2>&5
5239 ac_status=$?
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 break
5243else
5244 echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247fi
5248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5249done
5250rm -f conftest*
5251if test -n "$ac_declaration"; then
5252 echo '#ifdef __cplusplus' >>confdefs.h
5253 echo $ac_declaration >>confdefs.h
5254 echo '#endif' >>confdefs.h
252b5132 5255fi
5464f5a1 5256
b3baf5d0 5257else
5464f5a1
NN
5258 echo "$as_me: failed program was:" >&5
5259sed 's/^/| /' conftest.$ac_ext >&5
5260
b3baf5d0 5261fi
5464f5a1
NN
5262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5263ac_ext=c
5264ac_cpp='$CPP $CPPFLAGS'
5265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5268
5464f5a1 5269
4a2a2686
HPN
5270cat >>confdefs.h <<\_ACEOF
5271#define _GNU_SOURCE 1
5272_ACEOF
5273
5274
5275
dcd4b381 5276ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5464f5a1
NN
5277if test -n "$ac_tool_prefix"; then
5278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5279set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5280echo "$as_me:$LINENO: checking for $ac_word" >&5
5281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5282if test "${ac_cv_prog_RANLIB+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5284else
5464f5a1
NN
5285 if test -n "$RANLIB"; then
5286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 5287else
5464f5a1
NN
5288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289for as_dir in $PATH
5290do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
252b5132 5298 fi
5464f5a1
NN
5299done
5300done
5301
252b5132
RH
5302fi
5303fi
5464f5a1
NN
5304RANLIB=$ac_cv_prog_RANLIB
5305if test -n "$RANLIB"; then
5306 echo "$as_me:$LINENO: result: $RANLIB" >&5
5307echo "${ECHO_T}$RANLIB" >&6
252b5132 5308else
5464f5a1
NN
5309 echo "$as_me:$LINENO: result: no" >&5
5310echo "${ECHO_T}no" >&6
252b5132
RH
5311fi
5312
5464f5a1
NN
5313fi
5314if test -z "$ac_cv_prog_RANLIB"; then
5315 ac_ct_RANLIB=$RANLIB
5316 # Extract the first word of "ranlib", so it can be a program name with args.
5317set dummy ranlib; ac_word=$2
5318echo "$as_me:$LINENO: checking for $ac_word" >&5
5319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5322else
5464f5a1
NN
5323 if test -n "$ac_ct_RANLIB"; then
5324 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 5325else
5464f5a1
NN
5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH
5328do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_ac_ct_RANLIB="ranlib"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5336 fi
5337done
5338done
5339
5340 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
5341fi
5342fi
5464f5a1
NN
5343ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5344if test -n "$ac_ct_RANLIB"; then
5345 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5346echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 5347else
5464f5a1
NN
5348 echo "$as_me:$LINENO: result: no" >&5
5349echo "${ECHO_T}no" >&6
b3baf5d0 5350fi
252b5132 5351
5464f5a1 5352 RANLIB=$ac_ct_RANLIB
6be7c12c 5353else
5464f5a1 5354 RANLIB="$ac_cv_prog_RANLIB"
252b5132 5355fi
5464f5a1 5356
6be7c12c 5357ac_ext=c
6be7c12c 5358ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
5359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5361ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5363echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5364# On Suns, sometimes $CPP names a directory.
5365if test -n "$CPP" && test -d "$CPP"; then
5366 CPP=
6be7c12c 5367fi
5464f5a1
NN
5368if test -z "$CPP"; then
5369 if test "${ac_cv_prog_CPP+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5371else
5464f5a1
NN
5372 # Double quotes because CPP needs to be expanded
5373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5374 do
5375 ac_preproc_ok=false
5376for ac_c_preproc_warn_flag in '' yes
5377do
5378 # Use a header file that comes with gcc, so configuring glibc
5379 # with a fresh cross-compiler works.
5380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5381 # <limits.h> exists even on freestanding compilers.
5382 # On the NeXT, cc -E runs the code through the compiler's parser,
5383 # not just through cpp. "Syntax error" is here to catch this case.
5384 cat >conftest.$ac_ext <<_ACEOF
5385/* confdefs.h. */
5386_ACEOF
5387cat confdefs.h >>conftest.$ac_ext
5388cat >>conftest.$ac_ext <<_ACEOF
5389/* end confdefs.h. */
5390#ifdef __STDC__
5391# include <limits.h>
5392#else
5393# include <assert.h>
252b5132 5394#endif
5464f5a1
NN
5395 Syntax error
5396_ACEOF
5397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } >/dev/null; then
5405 if test -s conftest.err; then
5406 ac_cpp_err=$ac_c_preproc_warn_flag
5407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5408 else
5409 ac_cpp_err=
5410 fi
6be7c12c 5411else
5464f5a1 5412 ac_cpp_err=yes
6be7c12c 5413fi
5464f5a1
NN
5414if test -z "$ac_cpp_err"; then
5415 :
6be7c12c 5416else
5464f5a1
NN
5417 echo "$as_me: failed program was:" >&5
5418sed 's/^/| /' conftest.$ac_ext >&5
5419
5420 # Broken: fails on valid input.
5421continue
5422fi
5423rm -f conftest.err conftest.$ac_ext
5424
5425 # OK, works on sane cases. Now check whether non-existent headers
5426 # can be detected and how.
5427 cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433#include <ac_nonexistent.h>
5434_ACEOF
5435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5437 ac_status=$?
5438 grep -v '^ *+' conftest.er1 >conftest.err
5439 rm -f conftest.er1
5440 cat conftest.err >&5
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } >/dev/null; then
5443 if test -s conftest.err; then
5444 ac_cpp_err=$ac_c_preproc_warn_flag
5445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5446 else
5447 ac_cpp_err=
5448 fi
252b5132 5449else
5464f5a1 5450 ac_cpp_err=yes
252b5132 5451fi
5464f5a1
NN
5452if test -z "$ac_cpp_err"; then
5453 # Broken: success on invalid input.
5454continue
5455else
5456 echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
6be7c12c 5458
5464f5a1
NN
5459 # Passes both tests.
5460ac_preproc_ok=:
5461break
252b5132 5462fi
5464f5a1 5463rm -f conftest.err conftest.$ac_ext
6be7c12c 5464
5464f5a1
NN
5465done
5466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5467rm -f conftest.err conftest.$ac_ext
5468if $ac_preproc_ok; then
5469 break
252b5132
RH
5470fi
5471
5464f5a1
NN
5472 done
5473 ac_cv_prog_CPP=$CPP
252b5132 5474
252b5132 5475fi
5464f5a1 5476 CPP=$ac_cv_prog_CPP
6be7c12c 5477else
5464f5a1
NN
5478 ac_cv_prog_CPP=$CPP
5479fi
5480echo "$as_me:$LINENO: result: $CPP" >&5
5481echo "${ECHO_T}$CPP" >&6
5482ac_preproc_ok=false
5483for ac_c_preproc_warn_flag in '' yes
5484do
5485 # Use a header file that comes with gcc, so configuring glibc
5486 # with a fresh cross-compiler works.
5487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5488 # <limits.h> exists even on freestanding compilers.
6be7c12c 5489 # On the NeXT, cc -E runs the code through the compiler's parser,
5464f5a1
NN
5490 # not just through cpp. "Syntax error" is here to catch this case.
5491 cat >conftest.$ac_ext <<_ACEOF
5492/* confdefs.h. */
5493_ACEOF
5494cat confdefs.h >>conftest.$ac_ext
5495cat >>conftest.$ac_ext <<_ACEOF
5496/* end confdefs.h. */
5497#ifdef __STDC__
5498# include <limits.h>
5499#else
5500# include <assert.h>
5501#endif
5502 Syntax error
5503_ACEOF
5504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } >/dev/null; then
5512 if test -s conftest.err; then
5513 ac_cpp_err=$ac_c_preproc_warn_flag
5514 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5515 else
5516 ac_cpp_err=
5517 fi
252b5132 5518else
5464f5a1
NN
5519 ac_cpp_err=yes
5520fi
5521if test -z "$ac_cpp_err"; then
6be7c12c 5522 :
252b5132 5523else
5464f5a1
NN
5524 echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
5526
5527 # Broken: fails on valid input.
5528continue
5529fi
5530rm -f conftest.err conftest.$ac_ext
5531
5532 # OK, works on sane cases. Now check whether non-existent headers
5533 # can be detected and how.
5534 cat >conftest.$ac_ext <<_ACEOF
5535/* confdefs.h. */
5536_ACEOF
5537cat confdefs.h >>conftest.$ac_ext
5538cat >>conftest.$ac_ext <<_ACEOF
5539/* end confdefs.h. */
5540#include <ac_nonexistent.h>
5541_ACEOF
5542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } >/dev/null; then
5550 if test -s conftest.err; then
5551 ac_cpp_err=$ac_c_preproc_warn_flag
5552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5553 else
5554 ac_cpp_err=
5555 fi
b3baf5d0 5556else
5464f5a1 5557 ac_cpp_err=yes
6be7c12c 5558fi
5464f5a1
NN
5559if test -z "$ac_cpp_err"; then
5560 # Broken: success on invalid input.
5561continue
ac48eca1 5562else
5464f5a1
NN
5563 echo "$as_me: failed program was:" >&5
5564sed 's/^/| /' conftest.$ac_ext >&5
5565
5566 # Passes both tests.
5567ac_preproc_ok=:
5568break
b3baf5d0 5569fi
5464f5a1 5570rm -f conftest.err conftest.$ac_ext
6be7c12c 5571
5464f5a1
NN
5572done
5573# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5574rm -f conftest.err conftest.$ac_ext
5575if $ac_preproc_ok; then
5576 :
6be7c12c 5577else
5464f5a1
NN
5578 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5579See \`config.log' for more details." >&5
5580echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5581See \`config.log' for more details." >&2;}
5582 { (exit 1); exit 1; }; }
ac48eca1 5583fi
5464f5a1
NN
5584
5585ac_ext=c
5586ac_cpp='$CPP $CPPFLAGS'
5587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589ac_compiler_gnu=$ac_cv_c_compiler_gnu
5590
5591
5592echo "$as_me:$LINENO: checking for egrep" >&5
5593echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5594if test "${ac_cv_prog_egrep+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5596else
5464f5a1
NN
5597 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5598 then ac_cv_prog_egrep='grep -E'
5599 else ac_cv_prog_egrep='egrep'
5600 fi
b3baf5d0 5601fi
5464f5a1
NN
5602echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5603echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5604 EGREP=$ac_cv_prog_egrep
5605
ac48eca1 5606
5464f5a1
NN
5607echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5608echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5609if test "${ac_cv_header_stdc+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5611else
5464f5a1
NN
5612 cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h. */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */
252b5132
RH
5618#include <stdlib.h>
5619#include <stdarg.h>
5620#include <string.h>
5621#include <float.h>
5464f5a1
NN
5622
5623int
5624main ()
5625{
5626
5627 ;
5628 return 0;
5629}
5630_ACEOF
5631rm -f conftest.$ac_objext
5632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
49c96104
SE
5640 { ac_try='test -z "$ac_c_werror_flag"
5641 || test ! -s conftest.err'
5464f5a1
NN
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
252b5132
RH
5653 ac_cv_header_stdc=yes
5654else
5464f5a1
NN
5655 echo "$as_me: failed program was:" >&5
5656sed 's/^/| /' conftest.$ac_ext >&5
5657
5658ac_cv_header_stdc=no
252b5132 5659fi
5464f5a1 5660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5661
5662if test $ac_cv_header_stdc = yes; then
5663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464f5a1
NN
5664 cat >conftest.$ac_ext <<_ACEOF
5665/* confdefs.h. */
5666_ACEOF
5667cat confdefs.h >>conftest.$ac_ext
5668cat >>conftest.$ac_ext <<_ACEOF
5669/* end confdefs.h. */
252b5132 5670#include <string.h>
5464f5a1
NN
5671
5672_ACEOF
252b5132 5673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5674 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5675 :
5676else
252b5132
RH
5677 ac_cv_header_stdc=no
5678fi
5679rm -f conftest*
5680
5681fi
5682
5683if test $ac_cv_header_stdc = yes; then
5684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464f5a1
NN
5685 cat >conftest.$ac_ext <<_ACEOF
5686/* confdefs.h. */
5687_ACEOF
5688cat confdefs.h >>conftest.$ac_ext
5689cat >>conftest.$ac_ext <<_ACEOF
5690/* end confdefs.h. */
252b5132 5691#include <stdlib.h>
5464f5a1
NN
5692
5693_ACEOF
252b5132 5694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5695 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5696 :
5697else
252b5132
RH
5698 ac_cv_header_stdc=no
5699fi
5700rm -f conftest*
5701
5702fi
5703
5704if test $ac_cv_header_stdc = yes; then
5705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464f5a1 5706 if test "$cross_compiling" = yes; then
252b5132
RH
5707 :
5708else
5464f5a1
NN
5709 cat >conftest.$ac_ext <<_ACEOF
5710/* confdefs.h. */
5711_ACEOF
5712cat confdefs.h >>conftest.$ac_ext
5713cat >>conftest.$ac_ext <<_ACEOF
5714/* end confdefs.h. */
252b5132 5715#include <ctype.h>
5464f5a1
NN
5716#if ((' ' & 0x0FF) == 0x020)
5717# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5718# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5719#else
5720# define ISLOWER(c) \
5721 (('a' <= (c) && (c) <= 'i') \
5722 || ('j' <= (c) && (c) <= 'r') \
5723 || ('s' <= (c) && (c) <= 'z'))
5724# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5725#endif
6be7c12c 5726
5464f5a1
NN
5727#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5728int
5729main ()
5730{
5731 int i;
5732 for (i = 0; i < 256; i++)
5733 if (XOR (islower (i), ISLOWER (i))
5734 || toupper (i) != TOUPPER (i))
5735 exit(2);
5736 exit (0);
5737}
5738_ACEOF
5739rm -f conftest$ac_exeext
5740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5742 ac_status=$?
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
252b5132
RH
5750 :
5751else
5464f5a1
NN
5752 echo "$as_me: program exited with status $ac_status" >&5
5753echo "$as_me: failed program was:" >&5
5754sed 's/^/| /' conftest.$ac_ext >&5
5755
5756( exit $ac_status )
5757ac_cv_header_stdc=no
252b5132 5758fi
5464f5a1 5759rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5760fi
252b5132
RH
5761fi
5762fi
5464f5a1
NN
5763echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5764echo "${ECHO_T}$ac_cv_header_stdc" >&6
6be7c12c 5765if test $ac_cv_header_stdc = yes; then
5464f5a1
NN
5766
5767cat >>confdefs.h <<\_ACEOF
252b5132 5768#define STDC_HEADERS 1
5464f5a1 5769_ACEOF
252b5132
RH
5770
5771fi
5772
5464f5a1
NN
5773echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5774echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5775if test "${ac_cv_c_const+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5777else
5464f5a1
NN
5778 cat >conftest.$ac_ext <<_ACEOF
5779/* confdefs.h. */
5780_ACEOF
5781cat confdefs.h >>conftest.$ac_ext
5782cat >>conftest.$ac_ext <<_ACEOF
5783/* end confdefs.h. */
6be7c12c 5784
5464f5a1
NN
5785int
5786main ()
5787{
5788/* FIXME: Include the comments suggested by Paul. */
5789#ifndef __cplusplus
5790 /* Ultrix mips cc rejects this. */
5791 typedef int charset[2];
5792 const charset x;
5793 /* SunOS 4.1.1 cc rejects this. */
5794 char const *const *ccp;
5795 char **p;
5796 /* NEC SVR4.0.2 mips cc rejects this. */
5797 struct point {int x, y;};
5798 static struct point const zero = {0,0};
5799 /* AIX XL C 1.02.0.0 rejects this.
5800 It does not let you subtract one const X* pointer from another in
5801 an arm of an if-expression whose if-part is not a constant
5802 expression */
5803 const char *g = "string";
5804 ccp = &g + (g ? g-g : 0);
5805 /* HPUX 7.0 cc rejects these. */
5806 ++ccp;
5807 p = (char**) ccp;
5808 ccp = (char const *const *) p;
5809 { /* SCO 3.2v4 cc rejects this. */
5810 char *t;
5811 char const *s = 0 ? (char *) 0 : (char const *) 0;
5812
5813 *t++ = 0;
5814 }
5815 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5816 int x[] = {25, 17};
5817 const int *foo = &x[0];
5818 ++foo;
5819 }
5820 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5821 typedef const int *iptr;
5822 iptr p = 0;
5823 ++p;
5824 }
5825 { /* AIX XL C 1.02.0.0 rejects this saying
5826 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5827 struct s { int j; const int *ap[3]; };
5828 struct s *b; b->j = 5;
5829 }
5830 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5831 const int foo = 10;
5832 }
5833#endif
6be7c12c 5834
5464f5a1
NN
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839rm -f conftest.$ac_objext
5840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
49c96104
SE
5848 { ac_try='test -z "$ac_c_werror_flag"
5849 || test ! -s conftest.err'
5464f5a1
NN
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 (eval $ac_try) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
252b5132
RH
5861 ac_cv_c_const=yes
5862else
5464f5a1
NN
5863 echo "$as_me: failed program was:" >&5
5864sed 's/^/| /' conftest.$ac_ext >&5
5865
5866ac_cv_c_const=no
252b5132 5867fi
5464f5a1 5868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5869fi
5464f5a1
NN
5870echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5871echo "${ECHO_T}$ac_cv_c_const" >&6
6be7c12c 5872if test $ac_cv_c_const = no; then
5464f5a1
NN
5873
5874cat >>confdefs.h <<\_ACEOF
5875#define const
5876_ACEOF
252b5132
RH
5877
5878fi
5879
5464f5a1
NN
5880echo "$as_me:$LINENO: checking for inline" >&5
5881echo $ECHO_N "checking for inline... $ECHO_C" >&6
5882if test "${ac_cv_c_inline+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5884else
5885 ac_cv_c_inline=no
5886for ac_kw in inline __inline__ __inline; do
5464f5a1
NN
5887 cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h. */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h. */
5893#ifndef __cplusplus
5894typedef int foo_t;
5895static $ac_kw foo_t static_foo () {return 0; }
5896$ac_kw foo_t foo () {return 0; }
5897#endif
252b5132 5898
5464f5a1
NN
5899_ACEOF
5900rm -f conftest.$ac_objext
5901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
49c96104
SE
5909 { ac_try='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5464f5a1
NN
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 (eval $ac_try) 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
252b5132
RH
5922 ac_cv_c_inline=$ac_kw; break
5923else
5464f5a1
NN
5924 echo "$as_me: failed program was:" >&5
5925sed 's/^/| /' conftest.$ac_ext >&5
5926
252b5132 5927fi
5464f5a1 5928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5929done
5930
5464f5a1
NN
5931fi
5932echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5933echo "${ECHO_T}$ac_cv_c_inline" >&6
5934
5935
5936case $ac_cv_c_inline in
5937 inline | yes) ;;
5938 *)
5939 case $ac_cv_c_inline in
5940 no) ac_val=;;
5941 *) ac_val=$ac_cv_c_inline;;
5942 esac
5943 cat >>confdefs.h <<_ACEOF
5944#ifndef __cplusplus
5945#define inline $ac_val
5946#endif
5947_ACEOF
5948 ;;
5949esac
5950
5951# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5962 inttypes.h stdint.h unistd.h
5963do
5964as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965echo "$as_me:$LINENO: checking for $ac_header" >&5
5966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5967if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970 cat >conftest.$ac_ext <<_ACEOF
5971/* confdefs.h. */
5972_ACEOF
5973cat confdefs.h >>conftest.$ac_ext
5974cat >>conftest.$ac_ext <<_ACEOF
5975/* end confdefs.h. */
5976$ac_includes_default
5977
5978#include <$ac_header>
5979_ACEOF
5980rm -f conftest.$ac_objext
5981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
49c96104
SE
5989 { ac_try='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5464f5a1
NN
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 eval "$as_ac_Header=yes"
6003else
6004 echo "$as_me: failed program was:" >&5
6005sed 's/^/| /' conftest.$ac_ext >&5
6006
6007eval "$as_ac_Header=no"
6008fi
6009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010fi
6011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6013if test `eval echo '${'$as_ac_Header'}'` = yes; then
6014 cat >>confdefs.h <<_ACEOF
6015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6016_ACEOF
6017
252b5132 6018fi
6be7c12c 6019
5464f5a1 6020done
252b5132 6021
5464f5a1
NN
6022
6023echo "$as_me:$LINENO: checking for off_t" >&5
6024echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6025if test "${ac_cv_type_off_t+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 6027else
5464f5a1
NN
6028 cat >conftest.$ac_ext <<_ACEOF
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
6033/* end confdefs.h. */
6034$ac_includes_default
6035int
6036main ()
6037{
6038if ((off_t *) 0)
6039 return 0;
6040if (sizeof (off_t))
6041 return 0;
6042 ;
6043 return 0;
6044}
6045_ACEOF
6046rm -f conftest.$ac_objext
6047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6048 (eval $ac_compile) 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
49c96104
SE
6055 { ac_try='test -z "$ac_c_werror_flag"
6056 || test ! -s conftest.err'
5464f5a1
NN
6057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 (eval $ac_try) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); }; } &&
6062 { ac_try='test -s conftest.$ac_objext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
653f71ca 6068 ac_cv_type_off_t=yes
252b5132 6069else
5464f5a1
NN
6070 echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 6072
5464f5a1 6073ac_cv_type_off_t=no
6be7c12c 6074fi
5464f5a1
NN
6075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6076fi
6077echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6078echo "${ECHO_T}$ac_cv_type_off_t" >&6
6079if test $ac_cv_type_off_t = yes; then
6080 :
6081else
6082
6083cat >>confdefs.h <<_ACEOF
252b5132 6084#define off_t long
5464f5a1 6085_ACEOF
252b5132
RH
6086
6087fi
6088
5464f5a1
NN
6089echo "$as_me:$LINENO: checking for size_t" >&5
6090echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6091if test "${ac_cv_type_size_t+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6093else
5464f5a1
NN
6094 cat >conftest.$ac_ext <<_ACEOF
6095/* confdefs.h. */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h. */
6100$ac_includes_default
6101int
6102main ()
6103{
6104if ((size_t *) 0)
6105 return 0;
6106if (sizeof (size_t))
6107 return 0;
6108 ;
6109 return 0;
6110}
6111_ACEOF
6112rm -f conftest.$ac_objext
6113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114 (eval $ac_compile) 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
49c96104
SE
6121 { ac_try='test -z "$ac_c_werror_flag"
6122 || test ! -s conftest.err'
5464f5a1
NN
6123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124 (eval $ac_try) 2>&5
6125 ac_status=$?
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); }; } &&
6128 { ac_try='test -s conftest.$ac_objext'
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; }; then
653f71ca 6134 ac_cv_type_size_t=yes
252b5132 6135else
5464f5a1
NN
6136 echo "$as_me: failed program was:" >&5
6137sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 6138
5464f5a1 6139ac_cv_type_size_t=no
6be7c12c 6140fi
5464f5a1
NN
6141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6142fi
6143echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6144echo "${ECHO_T}$ac_cv_type_size_t" >&6
6145if test $ac_cv_type_size_t = yes; then
6146 :
6147else
6148
6149cat >>confdefs.h <<_ACEOF
252b5132 6150#define size_t unsigned
5464f5a1 6151_ACEOF
252b5132
RH
6152
6153fi
6154
6155# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6156# for constant arguments. Useless!
5464f5a1
NN
6157echo "$as_me:$LINENO: checking for working alloca.h" >&5
6158echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6159if test "${ac_cv_working_alloca_h+set}" = set; then
6160 echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162 cat >conftest.$ac_ext <<_ACEOF
6163/* confdefs.h. */
6164_ACEOF
6165cat confdefs.h >>conftest.$ac_ext
6166cat >>conftest.$ac_ext <<_ACEOF
6167/* end confdefs.h. */
252b5132 6168#include <alloca.h>
5464f5a1
NN
6169int
6170main ()
6171{
6172char *p = (char *) alloca (2 * sizeof (int));
6173 ;
6174 return 0;
6175}
6176_ACEOF
6177rm -f conftest.$ac_objext conftest$ac_exeext
6178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
49c96104
SE
6186 { ac_try='test -z "$ac_c_werror_flag"
6187 || test ! -s conftest.err'
5464f5a1
NN
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest$ac_exeext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
6199 ac_cv_working_alloca_h=yes
6200else
6201 echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204ac_cv_working_alloca_h=no
6205fi
6206rm -f conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext conftest.$ac_ext
6208fi
6209echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6210echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6211if test $ac_cv_working_alloca_h = yes; then
6212
6213cat >>confdefs.h <<\_ACEOF
252b5132 6214#define HAVE_ALLOCA_H 1
5464f5a1 6215_ACEOF
252b5132
RH
6216
6217fi
6218
5464f5a1
NN
6219echo "$as_me:$LINENO: checking for alloca" >&5
6220echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6221if test "${ac_cv_func_alloca_works+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6223else
5464f5a1
NN
6224 cat >conftest.$ac_ext <<_ACEOF
6225/* confdefs.h. */
6226_ACEOF
6227cat confdefs.h >>conftest.$ac_ext
6228cat >>conftest.$ac_ext <<_ACEOF
6229/* end confdefs.h. */
252b5132
RH
6230#ifdef __GNUC__
6231# define alloca __builtin_alloca
6232#else
6233# ifdef _MSC_VER
6234# include <malloc.h>
6235# define alloca _alloca
6236# else
6237# if HAVE_ALLOCA_H
6238# include <alloca.h>
6239# else
6240# ifdef _AIX
6241 #pragma alloca
6242# else
6243# ifndef alloca /* predefined by HP cc +Olibcalls */
6244char *alloca ();
6245# endif
6246# endif
6247# endif
6248# endif
6249#endif
6250
5464f5a1
NN
6251int
6252main ()
6253{
6254char *p = (char *) alloca (1);
6255 ;
6256 return 0;
6257}
6258_ACEOF
6259rm -f conftest.$ac_objext conftest$ac_exeext
6260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6261 (eval $ac_link) 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
49c96104
SE
6268 { ac_try='test -z "$ac_c_werror_flag"
6269 || test ! -s conftest.err'
5464f5a1
NN
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; } &&
6275 { ac_try='test -s conftest$ac_exeext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
252b5132
RH
6281 ac_cv_func_alloca_works=yes
6282else
5464f5a1
NN
6283 echo "$as_me: failed program was:" >&5
6284sed 's/^/| /' conftest.$ac_ext >&5
6285
6286ac_cv_func_alloca_works=no
252b5132 6287fi
5464f5a1
NN
6288rm -f conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
252b5132 6290fi
5464f5a1
NN
6291echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6292echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6293
252b5132 6294if test $ac_cv_func_alloca_works = yes; then
252b5132 6295
5464f5a1
NN
6296cat >>confdefs.h <<\_ACEOF
6297#define HAVE_ALLOCA 1
6298_ACEOF
b3baf5d0 6299
5464f5a1 6300else
6be7c12c 6301 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5464f5a1
NN
6302# that cause trouble. Some versions do not even contain alloca or
6303# contain a buggy version. If you still want to use their alloca,
6304# use ar to extract alloca.o from them instead of compiling alloca.c.
6305
6306ALLOCA=alloca.$ac_objext
6307
6308cat >>confdefs.h <<\_ACEOF
252b5132 6309#define C_ALLOCA 1
5464f5a1 6310_ACEOF
252b5132 6311
6be7c12c 6312
5464f5a1
NN
6313echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6314echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6315if test "${ac_cv_os_cray+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6317else
5464f5a1
NN
6318 cat >conftest.$ac_ext <<_ACEOF
6319/* confdefs.h. */
6320_ACEOF
6321cat confdefs.h >>conftest.$ac_ext
6322cat >>conftest.$ac_ext <<_ACEOF
6323/* end confdefs.h. */
252b5132
RH
6324#if defined(CRAY) && ! defined(CRAY2)
6325webecray
6326#else
6327wenotbecray
6328#endif
6329
5464f5a1 6330_ACEOF
252b5132 6331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 6332 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6333 ac_cv_os_cray=yes
6334else
252b5132
RH
6335 ac_cv_os_cray=no
6336fi
6337rm -f conftest*
6338
6339fi
5464f5a1
NN
6340echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6341echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6342if test $ac_cv_os_cray = yes; then
5464f5a1
NN
6343 for ac_func in _getb67 GETB67 getb67; do
6344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6345echo "$as_me:$LINENO: checking for $ac_func" >&5
6346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6347if eval "test \"\${$as_ac_var+set}\" = set"; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350 cat >conftest.$ac_ext <<_ACEOF
6351/* confdefs.h. */
6352_ACEOF
6353cat confdefs.h >>conftest.$ac_ext
6354cat >>conftest.$ac_ext <<_ACEOF
6355/* end confdefs.h. */
6356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6358#define $ac_func innocuous_$ac_func
6359
252b5132 6360/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6361 which can conflict with char $ac_func (); below.
6362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6363 <limits.h> exists even on freestanding compilers. */
6364
6365#ifdef __STDC__
6366# include <limits.h>
6367#else
6368# include <assert.h>
6369#endif
6be7c12c 6370
5464f5a1 6371#undef $ac_func
252b5132 6372
5464f5a1
NN
6373/* Override any gcc2 internal prototype to avoid an error. */
6374#ifdef __cplusplus
6375extern "C"
6376{
6377#endif
6378/* We use char because int might match the return type of a gcc2
6379 builtin and then its argument prototype would still apply. */
6380char $ac_func ();
252b5132
RH
6381/* The GNU C library defines this for functions which it implements
6382 to always fail with ENOSYS. Some functions are actually named
6383 something starting with __ and the normal name is an alias. */
6384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6385choke me
6386#else
5464f5a1
NN
6387char (*f) () = $ac_func;
6388#endif
6389#ifdef __cplusplus
6390}
252b5132
RH
6391#endif
6392
5464f5a1
NN
6393int
6394main ()
6395{
6396return f != $ac_func;
6397 ;
6398 return 0;
6399}
6400_ACEOF
6401rm -f conftest.$ac_objext conftest$ac_exeext
6402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6403 (eval $ac_link) 2>conftest.er1
6404 ac_status=$?
6405 grep -v '^ *+' conftest.er1 >conftest.err
6406 rm -f conftest.er1
6407 cat conftest.err >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
49c96104
SE
6410 { ac_try='test -z "$ac_c_werror_flag"
6411 || test ! -s conftest.err'
5464f5a1
NN
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 (eval $ac_try) 2>&5
6414 ac_status=$?
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest$ac_exeext'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 eval "$as_ac_var=yes"
6424else
6425 echo "$as_me: failed program was:" >&5
6426sed 's/^/| /' conftest.$ac_ext >&5
6427
6428eval "$as_ac_var=no"
6429fi
6430rm -f conftest.err conftest.$ac_objext \
6431 conftest$ac_exeext conftest.$ac_ext
6432fi
6433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6435if test `eval echo '${'$as_ac_var'}'` = yes; then
6436
6437cat >>confdefs.h <<_ACEOF
252b5132 6438#define CRAY_STACKSEG_END $ac_func
5464f5a1 6439_ACEOF
252b5132 6440
5464f5a1 6441 break
252b5132
RH
6442fi
6443
5464f5a1 6444 done
252b5132
RH
6445fi
6446
5464f5a1
NN
6447echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6448echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6449if test "${ac_cv_c_stack_direction+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6451else
6452 if test "$cross_compiling" = yes; then
6453 ac_cv_c_stack_direction=0
6454else
5464f5a1
NN
6455 cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h. */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h. */
6461int
252b5132
RH
6462find_stack_direction ()
6463{
6464 static char *addr = 0;
6465 auto char dummy;
6466 if (addr == 0)
6467 {
6468 addr = &dummy;
6469 return find_stack_direction ();
6470 }
6471 else
6472 return (&dummy > addr) ? 1 : -1;
6473}
5464f5a1
NN
6474
6475int
252b5132
RH
6476main ()
6477{
5464f5a1 6478 exit (find_stack_direction () < 0);
252b5132 6479}
5464f5a1
NN
6480_ACEOF
6481rm -f conftest$ac_exeext
6482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6483 (eval $ac_link) 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
252b5132
RH
6492 ac_cv_c_stack_direction=1
6493else
5464f5a1
NN
6494 echo "$as_me: program exited with status $ac_status" >&5
6495echo "$as_me: failed program was:" >&5
6496sed 's/^/| /' conftest.$ac_ext >&5
6497
6498( exit $ac_status )
6499ac_cv_c_stack_direction=-1
252b5132 6500fi
5464f5a1 6501rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6502fi
252b5132 6503fi
5464f5a1
NN
6504echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6505echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6506
5464f5a1 6507cat >>confdefs.h <<_ACEOF
252b5132 6508#define STACK_DIRECTION $ac_cv_c_stack_direction
5464f5a1
NN
6509_ACEOF
6510
252b5132
RH
6511
6512fi
6513
5464f5a1
NN
6514
6515
6516for ac_header in stdlib.h unistd.h
252b5132 6517do
5464f5a1
NN
6518as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6519if eval "test \"\${$as_ac_Header+set}\" = set"; then
6520 echo "$as_me:$LINENO: checking for $ac_header" >&5
6521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6522if eval "test \"\${$as_ac_Header+set}\" = set"; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524fi
6525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6527else
6528 # Is the header compilable?
6529echo "$as_me:$LINENO: checking $ac_header usability" >&5
6530echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6531cat >conftest.$ac_ext <<_ACEOF
6532/* confdefs.h. */
6533_ACEOF
6534cat confdefs.h >>conftest.$ac_ext
6535cat >>conftest.$ac_ext <<_ACEOF
6536/* end confdefs.h. */
6537$ac_includes_default
6538#include <$ac_header>
6539_ACEOF
6540rm -f conftest.$ac_objext
6541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
49c96104
SE
6549 { ac_try='test -z "$ac_c_werror_flag"
6550 || test ! -s conftest.err'
5464f5a1
NN
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; } &&
6556 { ac_try='test -s conftest.$ac_objext'
6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 (eval $ac_try) 2>&5
6559 ac_status=$?
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); }; }; then
6562 ac_header_compiler=yes
6563else
6564 echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567ac_header_compiler=no
6568fi
6569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6570echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6571echo "${ECHO_T}$ac_header_compiler" >&6
6572
6573# Is the header present?
6574echo "$as_me:$LINENO: checking $ac_header presence" >&5
6575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6576cat >conftest.$ac_ext <<_ACEOF
6577/* confdefs.h. */
6578_ACEOF
6579cat confdefs.h >>conftest.$ac_ext
6580cat >>conftest.$ac_ext <<_ACEOF
6581/* end confdefs.h. */
6582#include <$ac_header>
6583_ACEOF
6584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } >/dev/null; then
6592 if test -s conftest.err; then
6593 ac_cpp_err=$ac_c_preproc_warn_flag
6594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6595 else
6596 ac_cpp_err=
6597 fi
252b5132 6598else
5464f5a1 6599 ac_cpp_err=yes
252b5132 6600fi
5464f5a1
NN
6601if test -z "$ac_cpp_err"; then
6602 ac_header_preproc=yes
6603else
6604 echo "$as_me: failed program was:" >&5
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
6607 ac_header_preproc=no
252b5132 6608fi
5464f5a1
NN
6609rm -f conftest.err conftest.$ac_ext
6610echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6611echo "${ECHO_T}$ac_header_preproc" >&6
6612
6613# So? What about this header?
6614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6615 yes:no: )
6616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6620 ac_header_preproc=yes
6621 ;;
6622 no:yes:* )
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6635 (
6636 cat <<\_ASBOX
6637## ------------------------------------------ ##
6638## Report this to the AC_PACKAGE_NAME lists. ##
6639## ------------------------------------------ ##
6640_ASBOX
6641 ) |
6642 sed "s/^/$as_me: WARNING: /" >&2
6643 ;;
6644esac
6645echo "$as_me:$LINENO: checking for $ac_header" >&5
6646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6647if eval "test \"\${$as_ac_Header+set}\" = set"; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6649else
5464f5a1
NN
6650 eval "$as_ac_Header=\$ac_header_preproc"
6651fi
6652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6654
252b5132 6655fi
5464f5a1
NN
6656if test `eval echo '${'$as_ac_Header'}'` = yes; then
6657 cat >>confdefs.h <<_ACEOF
6658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6659_ACEOF
6660
6661fi
6662
252b5132
RH
6663done
6664
5464f5a1 6665
252b5132
RH
6666for ac_func in getpagesize
6667do
5464f5a1
NN
6668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6669echo "$as_me:$LINENO: checking for $ac_func" >&5
6670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6671if eval "test \"\${$as_ac_var+set}\" = set"; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674 cat >conftest.$ac_ext <<_ACEOF
6675/* confdefs.h. */
6676_ACEOF
6677cat confdefs.h >>conftest.$ac_ext
6678cat >>conftest.$ac_ext <<_ACEOF
6679/* end confdefs.h. */
6680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6682#define $ac_func innocuous_$ac_func
6683
252b5132 6684/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6685 which can conflict with char $ac_func (); below.
6686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6687 <limits.h> exists even on freestanding compilers. */
6688
6689#ifdef __STDC__
6690# include <limits.h>
6691#else
6692# include <assert.h>
6693#endif
6be7c12c 6694
5464f5a1 6695#undef $ac_func
252b5132 6696
5464f5a1
NN
6697/* Override any gcc2 internal prototype to avoid an error. */
6698#ifdef __cplusplus
6699extern "C"
6700{
6701#endif
6702/* We use char because int might match the return type of a gcc2
6703 builtin and then its argument prototype would still apply. */
6704char $ac_func ();
252b5132
RH
6705/* The GNU C library defines this for functions which it implements
6706 to always fail with ENOSYS. Some functions are actually named
6707 something starting with __ and the normal name is an alias. */
6708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6709choke me
6710#else
5464f5a1
NN
6711char (*f) () = $ac_func;
6712#endif
6713#ifdef __cplusplus
6714}
252b5132
RH
6715#endif
6716
5464f5a1
NN
6717int
6718main ()
6719{
6720return f != $ac_func;
6721 ;
6722 return 0;
6723}
6724_ACEOF
6725rm -f conftest.$ac_objext conftest$ac_exeext
6726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6727 (eval $ac_link) 2>conftest.er1
6728 ac_status=$?
6729 grep -v '^ *+' conftest.er1 >conftest.err
6730 rm -f conftest.er1
6731 cat conftest.err >&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } &&
49c96104
SE
6734 { ac_try='test -z "$ac_c_werror_flag"
6735 || test ! -s conftest.err'
5464f5a1
NN
6736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 (eval $ac_try) 2>&5
6738 ac_status=$?
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); }; } &&
6741 { ac_try='test -s conftest$ac_exeext'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; }; then
6747 eval "$as_ac_var=yes"
6748else
6749 echo "$as_me: failed program was:" >&5
6750sed 's/^/| /' conftest.$ac_ext >&5
6751
6752eval "$as_ac_var=no"
6753fi
6754rm -f conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6756fi
6757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6759if test `eval echo '${'$as_ac_var'}'` = yes; then
6760 cat >>confdefs.h <<_ACEOF
6761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6762_ACEOF
252b5132 6763
252b5132
RH
6764fi
6765done
6766
5464f5a1
NN
6767echo "$as_me:$LINENO: checking for working mmap" >&5
6768echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6769if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6771else
6772 if test "$cross_compiling" = yes; then
6773 ac_cv_func_mmap_fixed_mapped=no
6774else
5464f5a1
NN
6775 cat >conftest.$ac_ext <<_ACEOF
6776/* confdefs.h. */
6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h. */
6781$ac_includes_default
6782/* malloc might have been renamed as rpl_malloc. */
6783#undef malloc
6be7c12c 6784
252b5132
RH
6785/* Thanks to Mike Haertel and Jim Avera for this test.
6786 Here is a matrix of mmap possibilities:
6787 mmap private not fixed
6788 mmap private fixed at somewhere currently unmapped
6789 mmap private fixed at somewhere already mapped
6790 mmap shared not fixed
6791 mmap shared fixed at somewhere currently unmapped
6792 mmap shared fixed at somewhere already mapped
6793 For private mappings, we should verify that changes cannot be read()
6794 back from the file, nor mmap's back from the file at a different
6795 address. (There have been systems where private was not correctly
6796 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 6797 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6798 like early versions of FreeBSD and possibly contemporary NetBSD.)
6799 For shared mappings, we should conversely verify that changes get
5464f5a1 6800 propagated back to all the places they're supposed to be.
252b5132
RH
6801
6802 Grep wants private fixed already mapped.
6803 The main things grep needs to know about mmap are:
6804 * does it exist and is it safe to write into the mmap'd area
6805 * how to use it (BSD variants) */
5464f5a1 6806
252b5132
RH
6807#include <fcntl.h>
6808#include <sys/mman.h>
6809
5464f5a1
NN
6810#if !STDC_HEADERS && !HAVE_STDLIB_H
6811char *malloc ();
6812#endif
6be7c12c 6813
5464f5a1
NN
6814/* This mess was copied from the GNU getpagesize.h. */
6815#if !HAVE_GETPAGESIZE
252b5132 6816/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 6817# if !HAVE_SYS_PARAM_H
252b5132
RH
6818# define HAVE_SYS_PARAM_H 1
6819# endif
6820
6821# ifdef _SC_PAGESIZE
6822# define getpagesize() sysconf(_SC_PAGESIZE)
6823# else /* no _SC_PAGESIZE */
5464f5a1 6824# if HAVE_SYS_PARAM_H
252b5132
RH
6825# include <sys/param.h>
6826# ifdef EXEC_PAGESIZE
6827# define getpagesize() EXEC_PAGESIZE
6828# else /* no EXEC_PAGESIZE */
6829# ifdef NBPG
6830# define getpagesize() NBPG * CLSIZE
6831# ifndef CLSIZE
6832# define CLSIZE 1
6833# endif /* no CLSIZE */
6834# else /* no NBPG */
6835# ifdef NBPC
6836# define getpagesize() NBPC
6837# else /* no NBPC */
6838# ifdef PAGESIZE
6839# define getpagesize() PAGESIZE
6840# endif /* PAGESIZE */
6841# endif /* no NBPC */
6842# endif /* no NBPG */
6843# endif /* no EXEC_PAGESIZE */
6844# else /* no HAVE_SYS_PARAM_H */
6845# define getpagesize() 8192 /* punt totally */
6846# endif /* no HAVE_SYS_PARAM_H */
6847# endif /* no _SC_PAGESIZE */
6848
6849#endif /* no HAVE_GETPAGESIZE */
6850
252b5132 6851int
5464f5a1 6852main ()
252b5132 6853{
5464f5a1
NN
6854 char *data, *data2, *data3;
6855 int i, pagesize;
6856 int fd;
6857
6858 pagesize = getpagesize ();
6859
6860 /* First, make a file with some known garbage in it. */
6861 data = (char *) malloc (pagesize);
6862 if (!data)
6863 exit (1);
6864 for (i = 0; i < pagesize; ++i)
6865 *(data + i) = rand ();
6866 umask (0);
6867 fd = creat ("conftest.mmap", 0600);
6868 if (fd < 0)
6869 exit (1);
6870 if (write (fd, data, pagesize) != pagesize)
6871 exit (1);
6872 close (fd);
6873
6874 /* Next, try to mmap the file at a fixed address which already has
6875 something else allocated at it. If we can, also make sure that
6876 we see the same garbage. */
6877 fd = open ("conftest.mmap", O_RDWR);
6878 if (fd < 0)
6879 exit (1);
6880 data2 = (char *) malloc (2 * pagesize);
6881 if (!data2)
6882 exit (1);
6883 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6884 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6885 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6886 exit (1);
6887 for (i = 0; i < pagesize; ++i)
6888 if (*(data + i) != *(data2 + i))
6889 exit (1);
6890
6891 /* Finally, make sure that changes to the mapped area do not
6892 percolate back to the file as seen by read(). (This is a bug on
6893 some variants of i386 svr4.0.) */
6894 for (i = 0; i < pagesize; ++i)
6895 *(data2 + i) = *(data2 + i) + 1;
6896 data3 = (char *) malloc (pagesize);
6897 if (!data3)
6898 exit (1);
6899 if (read (fd, data3, pagesize) != pagesize)
6900 exit (1);
6901 for (i = 0; i < pagesize; ++i)
6902 if (*(data + i) != *(data3 + i))
6903 exit (1);
6904 close (fd);
6905 exit (0);
252b5132 6906}
5464f5a1
NN
6907_ACEOF
6908rm -f conftest$ac_exeext
6909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910 (eval $ac_link) 2>&5
6911 ac_status=$?
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5
6916 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
252b5132
RH
6919 ac_cv_func_mmap_fixed_mapped=yes
6920else
5464f5a1
NN
6921 echo "$as_me: program exited with status $ac_status" >&5
6922echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5
6924
6925( exit $ac_status )
6926ac_cv_func_mmap_fixed_mapped=no
252b5132 6927fi
5464f5a1 6928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6929fi
252b5132 6930fi
5464f5a1
NN
6931echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6932echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6be7c12c 6933if test $ac_cv_func_mmap_fixed_mapped = yes; then
5464f5a1
NN
6934
6935cat >>confdefs.h <<\_ACEOF
252b5132 6936#define HAVE_MMAP 1
5464f5a1 6937_ACEOF
252b5132
RH
6938
6939fi
5464f5a1
NN
6940rm -f conftest.mmap
6941
6942
252b5132 6943
5464f5a1
NN
6944
6945
6946
6947
6948
6949
6950
6951
6952for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6953unistd.h values.h sys/param.h
6954do
5464f5a1
NN
6955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6956if eval "test \"\${$as_ac_Header+set}\" = set"; then
6957 echo "$as_me:$LINENO: checking for $ac_header" >&5
6958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6959if eval "test \"\${$as_ac_Header+set}\" = set"; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961fi
6962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6964else
6965 # Is the header compilable?
6966echo "$as_me:$LINENO: checking $ac_header usability" >&5
6967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6968cat >conftest.$ac_ext <<_ACEOF
6969/* confdefs.h. */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h. */
6974$ac_includes_default
6975#include <$ac_header>
6976_ACEOF
6977rm -f conftest.$ac_objext
6978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } &&
49c96104
SE
6986 { ac_try='test -z "$ac_c_werror_flag"
6987 || test ! -s conftest.err'
5464f5a1
NN
6988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 (eval $ac_try) 2>&5
6990 ac_status=$?
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); }; } &&
6993 { ac_try='test -s conftest.$ac_objext'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; }; then
6999 ac_header_compiler=yes
7000else
7001 echo "$as_me: failed program was:" >&5
7002sed 's/^/| /' conftest.$ac_ext >&5
7003
7004ac_header_compiler=no
7005fi
7006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7008echo "${ECHO_T}$ac_header_compiler" >&6
7009
7010# Is the header present?
7011echo "$as_me:$LINENO: checking $ac_header presence" >&5
7012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7013cat >conftest.$ac_ext <<_ACEOF
7014/* confdefs.h. */
7015_ACEOF
7016cat confdefs.h >>conftest.$ac_ext
7017cat >>conftest.$ac_ext <<_ACEOF
7018/* end confdefs.h. */
7019#include <$ac_header>
7020_ACEOF
7021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7023 ac_status=$?
7024 grep -v '^ *+' conftest.er1 >conftest.err
7025 rm -f conftest.er1
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } >/dev/null; then
7029 if test -s conftest.err; then
7030 ac_cpp_err=$ac_c_preproc_warn_flag
7031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7032 else
7033 ac_cpp_err=
7034 fi
252b5132 7035else
5464f5a1 7036 ac_cpp_err=yes
252b5132 7037fi
5464f5a1
NN
7038if test -z "$ac_cpp_err"; then
7039 ac_header_preproc=yes
7040else
7041 echo "$as_me: failed program was:" >&5
7042sed 's/^/| /' conftest.$ac_ext >&5
7043
7044 ac_header_preproc=no
252b5132 7045fi
5464f5a1
NN
7046rm -f conftest.err conftest.$ac_ext
7047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7048echo "${ECHO_T}$ac_header_preproc" >&6
7049
7050# So? What about this header?
7051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7052 yes:no: )
7053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7057 ac_header_preproc=yes
7058 ;;
7059 no:yes:* )
7060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7072 (
7073 cat <<\_ASBOX
7074## ------------------------------------------ ##
7075## Report this to the AC_PACKAGE_NAME lists. ##
7076## ------------------------------------------ ##
7077_ASBOX
7078 ) |
7079 sed "s/^/$as_me: WARNING: /" >&2
7080 ;;
7081esac
7082echo "$as_me:$LINENO: checking for $ac_header" >&5
7083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7084if eval "test \"\${$as_ac_Header+set}\" = set"; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 7086else
5464f5a1
NN
7087 eval "$as_ac_Header=\$ac_header_preproc"
7088fi
7089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7091
7092fi
7093if test `eval echo '${'$as_ac_Header'}'` = yes; then
7094 cat >>confdefs.h <<_ACEOF
7095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7096_ACEOF
7097
252b5132 7098fi
5464f5a1 7099
252b5132
RH
7100done
7101
5464f5a1
NN
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
7113__argz_count __argz_stringify __argz_next
7114do
5464f5a1
NN
7115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7116echo "$as_me:$LINENO: checking for $ac_func" >&5
7117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7118if eval "test \"\${$as_ac_var+set}\" = set"; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120else
7121 cat >conftest.$ac_ext <<_ACEOF
7122/* confdefs.h. */
7123_ACEOF
7124cat confdefs.h >>conftest.$ac_ext
7125cat >>conftest.$ac_ext <<_ACEOF
7126/* end confdefs.h. */
7127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7129#define $ac_func innocuous_$ac_func
7130
252b5132 7131/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7132 which can conflict with char $ac_func (); below.
7133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7134 <limits.h> exists even on freestanding compilers. */
7135
7136#ifdef __STDC__
7137# include <limits.h>
7138#else
7139# include <assert.h>
7140#endif
7141
7142#undef $ac_func
7143
252b5132 7144/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7145#ifdef __cplusplus
7146extern "C"
7147{
7148#endif
252b5132 7149/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7150 builtin and then its argument prototype would still apply. */
7151char $ac_func ();
252b5132
RH
7152/* The GNU C library defines this for functions which it implements
7153 to always fail with ENOSYS. Some functions are actually named
7154 something starting with __ and the normal name is an alias. */
7155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7156choke me
7157#else
5464f5a1
NN
7158char (*f) () = $ac_func;
7159#endif
7160#ifdef __cplusplus
7161}
252b5132
RH
7162#endif
7163
5464f5a1
NN
7164int
7165main ()
7166{
7167return f != $ac_func;
7168 ;
7169 return 0;
7170}
7171_ACEOF
7172rm -f conftest.$ac_objext conftest$ac_exeext
7173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7174 (eval $ac_link) 2>conftest.er1
7175 ac_status=$?
7176 grep -v '^ *+' conftest.er1 >conftest.err
7177 rm -f conftest.er1
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
49c96104
SE
7181 { ac_try='test -z "$ac_c_werror_flag"
7182 || test ! -s conftest.err'
5464f5a1
NN
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 (eval $ac_try) 2>&5
7185 ac_status=$?
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; } &&
7188 { ac_try='test -s conftest$ac_exeext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 (eval $ac_try) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 eval "$as_ac_var=yes"
7195else
7196 echo "$as_me: failed program was:" >&5
7197sed 's/^/| /' conftest.$ac_ext >&5
7198
7199eval "$as_ac_var=no"
7200fi
7201rm -f conftest.err conftest.$ac_objext \
7202 conftest$ac_exeext conftest.$ac_ext
7203fi
7204echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7205echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7206if test `eval echo '${'$as_ac_var'}'` = yes; then
7207 cat >>confdefs.h <<_ACEOF
7208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7209_ACEOF
252b5132 7210
252b5132
RH
7211fi
7212done
7213
b3baf5d0 7214
6be7c12c 7215 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5464f5a1
NN
7216
7217for ac_func in stpcpy
252b5132 7218do
5464f5a1
NN
7219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7220echo "$as_me:$LINENO: checking for $ac_func" >&5
7221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7222if eval "test \"\${$as_ac_var+set}\" = set"; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224else
7225 cat >conftest.$ac_ext <<_ACEOF
7226/* confdefs.h. */
7227_ACEOF
7228cat confdefs.h >>conftest.$ac_ext
7229cat >>conftest.$ac_ext <<_ACEOF
7230/* end confdefs.h. */
7231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7233#define $ac_func innocuous_$ac_func
7234
252b5132 7235/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7236 which can conflict with char $ac_func (); below.
7237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7238 <limits.h> exists even on freestanding compilers. */
7239
7240#ifdef __STDC__
7241# include <limits.h>
7242#else
7243# include <assert.h>
7244#endif
6be7c12c 7245
5464f5a1 7246#undef $ac_func
252b5132 7247
5464f5a1
NN
7248/* Override any gcc2 internal prototype to avoid an error. */
7249#ifdef __cplusplus
7250extern "C"
7251{
7252#endif
7253/* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7255char $ac_func ();
252b5132
RH
7256/* The GNU C library defines this for functions which it implements
7257 to always fail with ENOSYS. Some functions are actually named
7258 something starting with __ and the normal name is an alias. */
7259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7260choke me
7261#else
5464f5a1
NN
7262char (*f) () = $ac_func;
7263#endif
7264#ifdef __cplusplus
7265}
252b5132
RH
7266#endif
7267
5464f5a1
NN
7268int
7269main ()
7270{
7271return f != $ac_func;
7272 ;
7273 return 0;
7274}
7275_ACEOF
7276rm -f conftest.$ac_objext conftest$ac_exeext
7277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7278 (eval $ac_link) 2>conftest.er1
7279 ac_status=$?
7280 grep -v '^ *+' conftest.er1 >conftest.err
7281 rm -f conftest.er1
7282 cat conftest.err >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
49c96104
SE
7285 { ac_try='test -z "$ac_c_werror_flag"
7286 || test ! -s conftest.err'
5464f5a1
NN
7287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 (eval $ac_try) 2>&5
7289 ac_status=$?
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); }; } &&
7292 { ac_try='test -s conftest$ac_exeext'
7293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294 (eval $ac_try) 2>&5
7295 ac_status=$?
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7298 eval "$as_ac_var=yes"
7299else
7300 echo "$as_me: failed program was:" >&5
7301sed 's/^/| /' conftest.$ac_ext >&5
7302
7303eval "$as_ac_var=no"
7304fi
7305rm -f conftest.err conftest.$ac_objext \
7306 conftest$ac_exeext conftest.$ac_ext
7307fi
7308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7309echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7310if test `eval echo '${'$as_ac_var'}'` = yes; then
7311 cat >>confdefs.h <<_ACEOF
7312#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7313_ACEOF
252b5132 7314
252b5132
RH
7315fi
7316done
7317
7318 fi
7319 if test "${ac_cv_func_stpcpy}" = "yes"; then
5464f5a1
NN
7320
7321cat >>confdefs.h <<\_ACEOF
252b5132 7322#define HAVE_STPCPY 1
5464f5a1 7323_ACEOF
252b5132
RH
7324
7325 fi
7326
7327 if test $ac_cv_header_locale_h = yes; then
5464f5a1
NN
7328 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7329echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7330if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333 cat >conftest.$ac_ext <<_ACEOF
7334/* confdefs.h. */
7335_ACEOF
7336cat confdefs.h >>conftest.$ac_ext
7337cat >>conftest.$ac_ext <<_ACEOF
7338/* end confdefs.h. */
252b5132 7339#include <locale.h>
5464f5a1
NN
7340int
7341main ()
7342{
252b5132 7343return LC_MESSAGES
5464f5a1
NN
7344 ;
7345 return 0;
7346}
7347_ACEOF
7348rm -f conftest.$ac_objext conftest$ac_exeext
7349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7350 (eval $ac_link) 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
49c96104
SE
7357 { ac_try='test -z "$ac_c_werror_flag"
7358 || test ! -s conftest.err'
5464f5a1
NN
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 (eval $ac_try) 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; } &&
7364 { ac_try='test -s conftest$ac_exeext'
7365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366 (eval $ac_try) 2>&5
7367 ac_status=$?
7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369 (exit $ac_status); }; }; then
252b5132
RH
7370 am_cv_val_LC_MESSAGES=yes
7371else
5464f5a1
NN
7372 echo "$as_me: failed program was:" >&5
7373sed 's/^/| /' conftest.$ac_ext >&5
7374
7375am_cv_val_LC_MESSAGES=no
252b5132 7376fi
5464f5a1
NN
7377rm -f conftest.err conftest.$ac_objext \
7378 conftest$ac_exeext conftest.$ac_ext
252b5132 7379fi
5464f5a1
NN
7380echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7381echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6be7c12c 7382 if test $am_cv_val_LC_MESSAGES = yes; then
5464f5a1
NN
7383
7384cat >>confdefs.h <<\_ACEOF
252b5132 7385#define HAVE_LC_MESSAGES 1
5464f5a1 7386_ACEOF
252b5132
RH
7387
7388 fi
7389 fi
5464f5a1
NN
7390 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7391echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7392 # Check whether --enable-nls or --disable-nls was given.
7393if test "${enable_nls+set}" = set; then
7394 enableval="$enable_nls"
7395 USE_NLS=$enableval
7396else
7397 USE_NLS=yes
5464f5a1
NN
7398fi;
7399 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7400echo "${ECHO_T}$USE_NLS" >&6
6be7c12c 7401
252b5132
RH
7402
7403 USE_INCLUDED_LIBINTL=no
7404
7405 if test "$USE_NLS" = "yes"; then
5464f5a1
NN
7406 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7407echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7408
7409# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7410if test "${with_included_gettext+set}" = set; then
7411 withval="$with_included_gettext"
7412 nls_cv_force_use_gnu_gettext=$withval
7413else
7414 nls_cv_force_use_gnu_gettext=no
5464f5a1
NN
7415fi;
7416 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7417echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7418
7419 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7420 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7421 nls_cv_header_intl=
7422 nls_cv_header_libgt=
a53bf506 7423 CATOBJEXT=
252b5132 7424
5464f5a1
NN
7425 if test "${ac_cv_header_libintl_h+set}" = set; then
7426 echo "$as_me:$LINENO: checking for libintl.h" >&5
7427echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7428if test "${ac_cv_header_libintl_h+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7430fi
7431echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7432echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7433else
7434 # Is the header compilable?
7435echo "$as_me:$LINENO: checking libintl.h usability" >&5
7436echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7437cat >conftest.$ac_ext <<_ACEOF
7438/* confdefs.h. */
7439_ACEOF
7440cat confdefs.h >>conftest.$ac_ext
7441cat >>conftest.$ac_ext <<_ACEOF
7442/* end confdefs.h. */
7443$ac_includes_default
252b5132 7444#include <libintl.h>
5464f5a1
NN
7445_ACEOF
7446rm -f conftest.$ac_objext
7447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7448 (eval $ac_compile) 2>conftest.er1
7449 ac_status=$?
7450 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -f conftest.er1
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
49c96104
SE
7455 { ac_try='test -z "$ac_c_werror_flag"
7456 || test ! -s conftest.err'
5464f5a1
NN
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; } &&
7462 { ac_try='test -s conftest.$ac_objext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 ac_header_compiler=yes
7469else
7470 echo "$as_me: failed program was:" >&5
7471sed 's/^/| /' conftest.$ac_ext >&5
7472
7473ac_header_compiler=no
7474fi
7475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7476echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7477echo "${ECHO_T}$ac_header_compiler" >&6
7478
7479# Is the header present?
7480echo "$as_me:$LINENO: checking libintl.h presence" >&5
7481echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7482cat >conftest.$ac_ext <<_ACEOF
7483/* confdefs.h. */
7484_ACEOF
7485cat confdefs.h >>conftest.$ac_ext
7486cat >>conftest.$ac_ext <<_ACEOF
7487/* end confdefs.h. */
7488#include <libintl.h>
7489_ACEOF
7490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } >/dev/null; then
7498 if test -s conftest.err; then
7499 ac_cpp_err=$ac_c_preproc_warn_flag
7500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7501 else
7502 ac_cpp_err=
7503 fi
252b5132 7504else
5464f5a1 7505 ac_cpp_err=yes
252b5132 7506fi
5464f5a1
NN
7507if test -z "$ac_cpp_err"; then
7508 ac_header_preproc=yes
7509else
7510 echo "$as_me: failed program was:" >&5
7511sed 's/^/| /' conftest.$ac_ext >&5
7512
7513 ac_header_preproc=no
252b5132 7514fi
5464f5a1
NN
7515rm -f conftest.err conftest.$ac_ext
7516echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7517echo "${ECHO_T}$ac_header_preproc" >&6
7518
7519# So? What about this header?
7520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7521 yes:no: )
7522 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7523echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7524 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7525echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7526 ac_header_preproc=yes
7527 ;;
7528 no:yes:* )
7529 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7530echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7531 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7532echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7533 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7534echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7535 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7536echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7537 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7538echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7540echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7541 (
7542 cat <<\_ASBOX
7543## ------------------------------------------ ##
7544## Report this to the AC_PACKAGE_NAME lists. ##
7545## ------------------------------------------ ##
7546_ASBOX
7547 ) |
7548 sed "s/^/$as_me: WARNING: /" >&2
7549 ;;
7550esac
7551echo "$as_me:$LINENO: checking for libintl.h" >&5
7552echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7553if test "${ac_cv_header_libintl_h+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7555else
5464f5a1
NN
7556 ac_cv_header_libintl_h=$ac_header_preproc
7557fi
7558echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7559echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7560
7561fi
7562if test $ac_cv_header_libintl_h = yes; then
7563 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7564echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7565if test "${gt_cv_func_gettext_libc+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567else
7568 cat >conftest.$ac_ext <<_ACEOF
7569/* confdefs.h. */
7570_ACEOF
7571cat confdefs.h >>conftest.$ac_ext
7572cat >>conftest.$ac_ext <<_ACEOF
7573/* end confdefs.h. */
252b5132 7574#include <libintl.h>
5464f5a1
NN
7575int
7576main ()
7577{
252b5132 7578return (int) gettext ("")
5464f5a1
NN
7579 ;
7580 return 0;
7581}
7582_ACEOF
7583rm -f conftest.$ac_objext conftest$ac_exeext
7584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7585 (eval $ac_link) 2>conftest.er1
7586 ac_status=$?
7587 grep -v '^ *+' conftest.er1 >conftest.err
7588 rm -f conftest.er1
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
49c96104
SE
7592 { ac_try='test -z "$ac_c_werror_flag"
7593 || test ! -s conftest.err'
5464f5a1
NN
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 (eval $ac_try) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest$ac_exeext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
252b5132
RH
7605 gt_cv_func_gettext_libc=yes
7606else
5464f5a1
NN
7607 echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7610gt_cv_func_gettext_libc=no
252b5132 7611fi
5464f5a1
NN
7612rm -f conftest.err conftest.$ac_objext \
7613 conftest$ac_exeext conftest.$ac_ext
252b5132 7614fi
5464f5a1
NN
7615echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7616echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7617
7618 if test "$gt_cv_func_gettext_libc" != "yes"; then
5464f5a1
NN
7619 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7620echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7621if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7623else
5464f5a1 7624 ac_check_lib_save_LIBS=$LIBS
252b5132 7625LIBS="-lintl $LIBS"
5464f5a1
NN
7626cat >conftest.$ac_ext <<_ACEOF
7627/* confdefs.h. */
7628_ACEOF
7629cat confdefs.h >>conftest.$ac_ext
7630cat >>conftest.$ac_ext <<_ACEOF
7631/* end confdefs.h. */
7632
252b5132 7633/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7634#ifdef __cplusplus
7635extern "C"
7636#endif
252b5132 7637/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7638 builtin and then its argument prototype would still apply. */
7639char bindtextdomain ();
7640int
7641main ()
7642{
7643bindtextdomain ();
7644 ;
7645 return 0;
7646}
7647_ACEOF
7648rm -f conftest.$ac_objext conftest$ac_exeext
7649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7650 (eval $ac_link) 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
49c96104
SE
7657 { ac_try='test -z "$ac_c_werror_flag"
7658 || test ! -s conftest.err'
5464f5a1
NN
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 (eval $ac_try) 2>&5
7661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest$ac_exeext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666 (eval $ac_try) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7670 ac_cv_lib_intl_bindtextdomain=yes
7671else
7672 echo "$as_me: failed program was:" >&5
7673sed 's/^/| /' conftest.$ac_ext >&5
7674
7675ac_cv_lib_intl_bindtextdomain=no
7676fi
7677rm -f conftest.err conftest.$ac_objext \
7678 conftest$ac_exeext conftest.$ac_ext
7679LIBS=$ac_check_lib_save_LIBS
7680fi
7681echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7682echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7683if test $ac_cv_lib_intl_bindtextdomain = yes; then
7684 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7685echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7686if test "${gt_cv_func_gettext_libintl+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688else
7689 cat >conftest.$ac_ext <<_ACEOF
7690/* confdefs.h. */
7691_ACEOF
7692cat confdefs.h >>conftest.$ac_ext
7693cat >>conftest.$ac_ext <<_ACEOF
7694/* end confdefs.h. */
252b5132 7695
5464f5a1
NN
7696int
7697main ()
7698{
252b5132 7699return (int) gettext ("")
5464f5a1
NN
7700 ;
7701 return 0;
7702}
7703_ACEOF
7704rm -f conftest.$ac_objext conftest$ac_exeext
7705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
49c96104
SE
7713 { ac_try='test -z "$ac_c_werror_flag"
7714 || test ! -s conftest.err'
5464f5a1
NN
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
252b5132
RH
7726 gt_cv_func_gettext_libintl=yes
7727else
5464f5a1
NN
7728 echo "$as_me: failed program was:" >&5
7729sed 's/^/| /' conftest.$ac_ext >&5
7730
7731gt_cv_func_gettext_libintl=no
252b5132 7732fi
5464f5a1
NN
7733rm -f conftest.err conftest.$ac_objext \
7734 conftest$ac_exeext conftest.$ac_ext
252b5132 7735fi
5464f5a1
NN
7736echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7737echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7738fi
7739
7740 fi
7741
7742 if test "$gt_cv_func_gettext_libc" = "yes" \
7743 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5464f5a1
NN
7744
7745cat >>confdefs.h <<\_ACEOF
252b5132 7746#define HAVE_GETTEXT 1
5464f5a1 7747_ACEOF
252b5132
RH
7748
7749 # Extract the first word of "msgfmt", so it can be a program name with args.
7750set dummy msgfmt; ac_word=$2
5464f5a1
NN
7751echo "$as_me:$LINENO: checking for $ac_word" >&5
7752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7753if test "${ac_cv_path_MSGFMT+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7755else
7756 case "$MSGFMT" in
7757 /*)
7758 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7759 ;;
7760 *)
7761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7762 for ac_dir in $PATH; do
7763 test -z "$ac_dir" && ac_dir=.
7764 if test -f $ac_dir/$ac_word; then
7765 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7766 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7767 break
7768 fi
7769 fi
7770 done
7771 IFS="$ac_save_ifs"
7772 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7773 ;;
7774esac
7775fi
7776MSGFMT="$ac_cv_path_MSGFMT"
7777if test -n "$MSGFMT"; then
5464f5a1
NN
7778 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7779echo "${ECHO_T}$MSGFMT" >&6
252b5132 7780else
5464f5a1
NN
7781 echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6
252b5132
RH
7783fi
7784 if test "$MSGFMT" != "no"; then
5464f5a1
NN
7785
7786for ac_func in dcgettext
252b5132 7787do
5464f5a1
NN
7788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7789echo "$as_me:$LINENO: checking for $ac_func" >&5
7790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7791if eval "test \"\${$as_ac_var+set}\" = set"; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
7794 cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h. */
7796_ACEOF
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
7799/* end confdefs.h. */
7800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7802#define $ac_func innocuous_$ac_func
7803
252b5132 7804/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7805 which can conflict with char $ac_func (); below.
7806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7807 <limits.h> exists even on freestanding compilers. */
7808
7809#ifdef __STDC__
7810# include <limits.h>
7811#else
7812# include <assert.h>
7813#endif
6be7c12c 7814
5464f5a1 7815#undef $ac_func
252b5132 7816
5464f5a1
NN
7817/* Override any gcc2 internal prototype to avoid an error. */
7818#ifdef __cplusplus
7819extern "C"
7820{
7821#endif
7822/* We use char because int might match the return type of a gcc2
7823 builtin and then its argument prototype would still apply. */
7824char $ac_func ();
252b5132
RH
7825/* The GNU C library defines this for functions which it implements
7826 to always fail with ENOSYS. Some functions are actually named
7827 something starting with __ and the normal name is an alias. */
7828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7829choke me
7830#else
5464f5a1
NN
7831char (*f) () = $ac_func;
7832#endif
7833#ifdef __cplusplus
7834}
252b5132
RH
7835#endif
7836
5464f5a1
NN
7837int
7838main ()
7839{
7840return f != $ac_func;
7841 ;
7842 return 0;
7843}
7844_ACEOF
7845rm -f conftest.$ac_objext conftest$ac_exeext
7846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7847 (eval $ac_link) 2>conftest.er1
7848 ac_status=$?
7849 grep -v '^ *+' conftest.er1 >conftest.err
7850 rm -f conftest.er1
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
49c96104
SE
7854 { ac_try='test -z "$ac_c_werror_flag"
7855 || test ! -s conftest.err'
5464f5a1
NN
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 (eval $ac_try) 2>&5
7858 ac_status=$?
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; } &&
7861 { ac_try='test -s conftest$ac_exeext'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 (eval $ac_try) 2>&5
7864 ac_status=$?
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7867 eval "$as_ac_var=yes"
7868else
7869 echo "$as_me: failed program was:" >&5
7870sed 's/^/| /' conftest.$ac_ext >&5
7871
7872eval "$as_ac_var=no"
7873fi
7874rm -f conftest.err conftest.$ac_objext \
7875 conftest$ac_exeext conftest.$ac_ext
7876fi
7877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7879if test `eval echo '${'$as_ac_var'}'` = yes; then
7880 cat >>confdefs.h <<_ACEOF
7881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7882_ACEOF
252b5132 7883
252b5132
RH
7884fi
7885done
7886
7887 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7888set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7889echo "$as_me:$LINENO: checking for $ac_word" >&5
7890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7891if test "${ac_cv_path_GMSGFMT+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7893else
5464f5a1
NN
7894 case $GMSGFMT in
7895 [\\/]* | ?:[\\/]*)
252b5132
RH
7896 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7897 ;;
252b5132 7898 *)
5464f5a1
NN
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910done
7911done
7912
252b5132
RH
7913 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7914 ;;
7915esac
7916fi
5464f5a1
NN
7917GMSGFMT=$ac_cv_path_GMSGFMT
7918
252b5132 7919if test -n "$GMSGFMT"; then
5464f5a1
NN
7920 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7921echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7922else
5464f5a1
NN
7923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
252b5132
RH
7925fi
7926
7927 # Extract the first word of "xgettext", so it can be a program name with args.
7928set dummy xgettext; ac_word=$2
5464f5a1
NN
7929echo "$as_me:$LINENO: checking for $ac_word" >&5
7930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7931if test "${ac_cv_path_XGETTEXT+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7933else
7934 case "$XGETTEXT" in
7935 /*)
7936 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7937 ;;
7938 *)
7939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7940 for ac_dir in $PATH; do
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/$ac_word; then
7943 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7944 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7945 break
7946 fi
7947 fi
7948 done
7949 IFS="$ac_save_ifs"
7950 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7951 ;;
7952esac
7953fi
7954XGETTEXT="$ac_cv_path_XGETTEXT"
7955if test -n "$XGETTEXT"; then
5464f5a1
NN
7956 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7957echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7958else
5464f5a1
NN
7959 echo "$as_me:$LINENO: result: no" >&5
7960echo "${ECHO_T}no" >&6
252b5132
RH
7961fi
7962
5464f5a1
NN
7963 cat >conftest.$ac_ext <<_ACEOF
7964/* confdefs.h. */
7965_ACEOF
7966cat confdefs.h >>conftest.$ac_ext
7967cat >>conftest.$ac_ext <<_ACEOF
7968/* end confdefs.h. */
252b5132 7969
5464f5a1
NN
7970int
7971main ()
7972{
252b5132
RH
7973extern int _nl_msg_cat_cntr;
7974 return _nl_msg_cat_cntr
5464f5a1
NN
7975 ;
7976 return 0;
7977}
7978_ACEOF
7979rm -f conftest.$ac_objext conftest$ac_exeext
7980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981 (eval $ac_link) 2>conftest.er1
7982 ac_status=$?
7983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } &&
49c96104
SE
7988 { ac_try='test -z "$ac_c_werror_flag"
7989 || test ! -s conftest.err'
5464f5a1
NN
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 (eval $ac_try) 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; } &&
7995 { ac_try='test -s conftest$ac_exeext'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 (eval $ac_try) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; }; then
252b5132
RH
8001 CATOBJEXT=.gmo
8002 DATADIRNAME=share
8003else
5464f5a1
NN
8004 echo "$as_me: failed program was:" >&5
8005sed 's/^/| /' conftest.$ac_ext >&5
8006
8007CATOBJEXT=.mo
252b5132
RH
8008 DATADIRNAME=lib
8009fi
5464f5a1
NN
8010rm -f conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
8012 INSTOBJEXT=.mo
8013 fi
8014 fi
5464f5a1 8015
b3baf5d0 8016fi
252b5132 8017
6be7c12c 8018
5464f5a1
NN
8019
8020
a53bf506 8021 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
8022 # Neither gettext nor catgets in included in the C library.
8023 # Fall back on GNU gettext library (assuming it is present).
8024 nls_cv_use_gnu_gettext=yes
252b5132
RH
8025 fi
8026 fi
8027
8028 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8029 INTLOBJS="\$(GETTOBJS)"
8030 # Extract the first word of "msgfmt", so it can be a program name with args.
8031set dummy msgfmt; ac_word=$2
5464f5a1
NN
8032echo "$as_me:$LINENO: checking for $ac_word" >&5
8033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8034if test "${ac_cv_path_MSGFMT+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8036else
8037 case "$MSGFMT" in
8038 /*)
8039 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8040 ;;
8041 *)
8042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8043 for ac_dir in $PATH; do
8044 test -z "$ac_dir" && ac_dir=.
8045 if test -f $ac_dir/$ac_word; then
8046 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8047 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8048 break
8049 fi
8050 fi
8051 done
8052 IFS="$ac_save_ifs"
8053 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8054 ;;
8055esac
8056fi
8057MSGFMT="$ac_cv_path_MSGFMT"
8058if test -n "$MSGFMT"; then
5464f5a1
NN
8059 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8060echo "${ECHO_T}$MSGFMT" >&6
252b5132 8061else
5464f5a1
NN
8062 echo "$as_me:$LINENO: result: no" >&5
8063echo "${ECHO_T}no" >&6
252b5132
RH
8064fi
8065
8066 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8067set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
8068echo "$as_me:$LINENO: checking for $ac_word" >&5
8069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8070if test "${ac_cv_path_GMSGFMT+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8072else
5464f5a1
NN
8073 case $GMSGFMT in
8074 [\\/]* | ?:[\\/]*)
252b5132
RH
8075 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8076 ;;
252b5132 8077 *)
5464f5a1
NN
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8088 fi
8089done
8090done
8091
252b5132
RH
8092 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8093 ;;
8094esac
8095fi
5464f5a1
NN
8096GMSGFMT=$ac_cv_path_GMSGFMT
8097
252b5132 8098if test -n "$GMSGFMT"; then
5464f5a1
NN
8099 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8100echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8101else
5464f5a1
NN
8102 echo "$as_me:$LINENO: result: no" >&5
8103echo "${ECHO_T}no" >&6
252b5132
RH
8104fi
8105
8106 # Extract the first word of "xgettext", so it can be a program name with args.
8107set dummy xgettext; ac_word=$2
5464f5a1
NN
8108echo "$as_me:$LINENO: checking for $ac_word" >&5
8109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8110if test "${ac_cv_path_XGETTEXT+set}" = set; then
8111 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8112else
8113 case "$XGETTEXT" in
8114 /*)
8115 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8116 ;;
8117 *)
8118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8119 for ac_dir in $PATH; do
8120 test -z "$ac_dir" && ac_dir=.
8121 if test -f $ac_dir/$ac_word; then
8122 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8123 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8124 break
8125 fi
8126 fi
8127 done
8128 IFS="$ac_save_ifs"
8129 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8130 ;;
8131esac
8132fi
8133XGETTEXT="$ac_cv_path_XGETTEXT"
8134if test -n "$XGETTEXT"; then
5464f5a1
NN
8135 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8136echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8137else
5464f5a1
NN
8138 echo "$as_me:$LINENO: result: no" >&5
8139echo "${ECHO_T}no" >&6
252b5132
RH
8140fi
8141
5464f5a1 8142
252b5132
RH
8143 USE_INCLUDED_LIBINTL=yes
8144 CATOBJEXT=.gmo
8145 INSTOBJEXT=.mo
8146 DATADIRNAME=share
8147 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8148 INTLLIBS=$INTLDEPS
8149 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8150 nls_cv_header_intl=libintl.h
8151 nls_cv_header_libgt=libgettext.h
8152 fi
8153
8154 if test "$XGETTEXT" != ":"; then
8155 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8156 : ;
8157 else
5464f5a1
NN
8158 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8159echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
8160 XGETTEXT=":"
8161 fi
8162 fi
8163
8164 # We need to process the po/ directory.
8165 POSUB=po
8166 else
8167 DATADIRNAME=share
8168 nls_cv_header_intl=libintl.h
8169 nls_cv_header_libgt=libgettext.h
8170 fi
8171
8172 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8173 # because some of the sources are only built for this goal.
8174 if test "$PACKAGE" = gettext; then
8175 USE_NLS=yes
8176 USE_INCLUDED_LIBINTL=yes
8177 fi
8178
8179 for lang in $ALL_LINGUAS; do
8180 GMOFILES="$GMOFILES $lang.gmo"
8181 POFILES="$POFILES $lang.po"
8182 done
8183
5464f5a1
NN
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
c46f8c51
AC
8195 if test "x$CATOBJEXT" != "x"; then
8196
8197cat >>confdefs.h <<\_ACEOF
8198#define ENABLE_NLS 1
8199_ACEOF
8200
8201 fi
5464f5a1 8202
6be7c12c 8203
252b5132
RH
8204 if test "x$CATOBJEXT" != "x"; then
8205 if test "x$ALL_LINGUAS" = "x"; then
8206 LINGUAS=
8207 else
5464f5a1
NN
8208 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8209echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8210 NEW_LINGUAS=
8211 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8212 case "$ALL_LINGUAS" in
8213 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8214 esac
8215 done
8216 LINGUAS=$NEW_LINGUAS
5464f5a1
NN
8217 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8218echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8219 fi
8220
8221 if test -n "$LINGUAS"; then
8222 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8223 fi
8224 fi
8225
8226 if test $ac_cv_header_locale_h = yes; then
8227 INCLUDE_LOCALE_H="#include <locale.h>"
8228 else
8229 INCLUDE_LOCALE_H="\
8230/* The system does not provide the header <locale.h>. Take care yourself. */"
8231 fi
5464f5a1 8232
252b5132
RH
8233
8234 if test -f $srcdir/po2tbl.sed.in; then
8235 if test "$CATOBJEXT" = ".cat"; then
5464f5a1
NN
8236 if test "${ac_cv_header_linux_version_h+set}" = set; then
8237 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8238echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8239if test "${ac_cv_header_linux_version_h+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
8241fi
8242echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8243echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8244else
8245 # Is the header compilable?
8246echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8247echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8248cat >conftest.$ac_ext <<_ACEOF
8249/* confdefs.h. */
8250_ACEOF
8251cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF
8253/* end confdefs.h. */
8254$ac_includes_default
252b5132 8255#include <linux/version.h>
5464f5a1
NN
8256_ACEOF
8257rm -f conftest.$ac_objext
8258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8259 (eval $ac_compile) 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } &&
49c96104
SE
8266 { ac_try='test -z "$ac_c_werror_flag"
8267 || test ! -s conftest.err'
5464f5a1
NN
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 (eval $ac_try) 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest.$ac_objext'
8274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 (eval $ac_try) 2>&5
8276 ac_status=$?
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); }; }; then
8279 ac_header_compiler=yes
8280else
8281 echo "$as_me: failed program was:" >&5
8282sed 's/^/| /' conftest.$ac_ext >&5
8283
8284ac_header_compiler=no
8285fi
8286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8288echo "${ECHO_T}$ac_header_compiler" >&6
8289
8290# Is the header present?
8291echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8292echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8293cat >conftest.$ac_ext <<_ACEOF
8294/* confdefs.h. */
8295_ACEOF
8296cat confdefs.h >>conftest.$ac_ext
8297cat >>conftest.$ac_ext <<_ACEOF
8298/* end confdefs.h. */
8299#include <linux/version.h>
8300_ACEOF
8301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8303 ac_status=$?
8304 grep -v '^ *+' conftest.er1 >conftest.err
8305 rm -f conftest.er1
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } >/dev/null; then
8309 if test -s conftest.err; then
8310 ac_cpp_err=$ac_c_preproc_warn_flag
8311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8312 else
8313 ac_cpp_err=
8314 fi
252b5132 8315else
5464f5a1 8316 ac_cpp_err=yes
252b5132 8317fi
5464f5a1
NN
8318if test -z "$ac_cpp_err"; then
8319 ac_header_preproc=yes
8320else
8321 echo "$as_me: failed program was:" >&5
8322sed 's/^/| /' conftest.$ac_ext >&5
8323
8324 ac_header_preproc=no
8325fi
8326rm -f conftest.err conftest.$ac_ext
8327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8328echo "${ECHO_T}$ac_header_preproc" >&6
8329
8330# So? What about this header?
8331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8332 yes:no: )
8333 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8334echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8336echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8337 ac_header_preproc=yes
8338 ;;
8339 no:yes:* )
8340 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8341echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8342 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8343echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8344 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8345echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8347echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8348 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8349echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8350 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8351echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8352 (
8353 cat <<\_ASBOX
8354## ------------------------------------------ ##
8355## Report this to the AC_PACKAGE_NAME lists. ##
8356## ------------------------------------------ ##
8357_ASBOX
8358 ) |
8359 sed "s/^/$as_me: WARNING: /" >&2
8360 ;;
8361esac
8362echo "$as_me:$LINENO: checking for linux/version.h" >&5
8363echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8364if test "${ac_cv_header_linux_version_h+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366else
8367 ac_cv_header_linux_version_h=$ac_header_preproc
8368fi
8369echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8370echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8371
252b5132 8372fi
5464f5a1 8373if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8374 msgformat=linux
8375else
5464f5a1 8376 msgformat=xopen
252b5132
RH
8377fi
8378
6be7c12c 8379
5464f5a1 8380
252b5132
RH
8381 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8382 fi
8383 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8384 $srcdir/po2tbl.sed.in > po2tbl.sed
8385 fi
8386
8387 if test "$PACKAGE" = "gettext"; then
8388 GT_NO="#NO#"
8389 GT_YES=
8390 else
8391 GT_NO=
8392 GT_YES="#YES#"
8393 fi
5464f5a1
NN
8394
8395
252b5132
RH
8396
8397 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5464f5a1 8398
252b5132
RH
8399
8400 l=
5464f5a1 8401
252b5132 8402
3c3bdf30 8403 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8404 test -d po || mkdir po
8405 if test "x$srcdir" != "x."; then
8406 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8407 posrcprefix="$srcdir/"
8408 else
8409 posrcprefix="../$srcdir/"
8410 fi
8411 else
8412 posrcprefix="../"
8413 fi
8414 rm -f po/POTFILES
8415 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8416 < $srcdir/po/POTFILES.in > po/POTFILES
8417 fi
5464f5a1 8418
252b5132
RH
8419
8420# Permit host specific settings.
8421. ${srcdir}/configure.host
8422
6be7c12c 8423
252b5132
RH
8424# Find a good install program. We prefer a C program (faster),
8425# so one script is as good as another. But avoid the broken or
8426# incompatible versions:
8427# SysV /etc/install, /usr/sbin/install
8428# SunOS /usr/etc/install
8429# IRIX /sbin/install
8430# AIX /bin/install
5464f5a1 8431# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8432# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8433# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8434# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 8435# OS/2's system install, which has a completely different semantic
252b5132 8436# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
8437echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8438echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8439if test -z "$INSTALL"; then
5464f5a1
NN
8440if test "${ac_cv_path_install+set}" = set; then
8441 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8442else
5464f5a1
NN
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444for as_dir in $PATH
8445do
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 # Account for people who put trailing slashes in PATH elements.
8449case $as_dir/ in
8450 ./ | .// | /cC/* | \
8451 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8452 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8453 /usr/ucb/* ) ;;
8454 *)
8455 # OSF1 and SCO ODT 3.0 have their own names for install.
8456 # Don't use installbsd from OSF since it installs stuff as root
8457 # by default.
8458 for ac_prog in ginstall scoinst install; do
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8461 if test $ac_prog = install &&
5464f5a1 8462 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8463 # AIX install. It has an incompatible calling convention.
8464 :
5464f5a1
NN
8465 elif test $ac_prog = install &&
8466 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8467 # program-specific install script used by HP pwplus--don't use.
8468 :
252b5132 8469 else
5464f5a1
NN
8470 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8471 break 3
252b5132
RH
8472 fi
8473 fi
8474 done
5464f5a1
NN
8475 done
8476 ;;
8477esac
8478done
8479
252b5132
RH
8480
8481fi
8482 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 8483 INSTALL=$ac_cv_path_install
252b5132
RH
8484 else
8485 # As a last resort, use the slow shell script. We don't cache a
8486 # path for INSTALL within a source directory, because that will
8487 # break other packages using the cache if that directory is
8488 # removed, or if the path is relative.
5464f5a1 8489 INSTALL=$ac_install_sh
252b5132
RH
8490 fi
8491fi
5464f5a1
NN
8492echo "$as_me:$LINENO: result: $INSTALL" >&5
8493echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8494
8495# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8496# It thinks the first close brace ends the variable substitution.
8497test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8498
5464f5a1 8499test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8500
8501test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8502
6be7c12c 8503
252b5132 8504BFD_HOST_64BIT_LONG=0
ec317fb1 8505BFD_HOST_LONG_LONG=0
252b5132
RH
8506BFD_HOST_64_BIT_DEFINED=0
8507BFD_HOST_64_BIT=
8508BFD_HOST_U_64_BIT=
252b5132 8509
5464f5a1
NN
8510echo "$as_me:$LINENO: checking for long long" >&5
8511echo $ECHO_N "checking for long long... $ECHO_C" >&6
8512if test "${bfd_cv_has_long_long+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 8514else
5464f5a1
NN
8515 cat >conftest.$ac_ext <<_ACEOF
8516/* confdefs.h. */
8517_ACEOF
8518cat confdefs.h >>conftest.$ac_ext
8519cat >>conftest.$ac_ext <<_ACEOF
8520/* end confdefs.h. */
ec317fb1 8521
5464f5a1
NN
8522int
8523main ()
8524{
ec317fb1 8525unsigned long long ll = 18446744073709551615ULL;
5464f5a1
NN
8526 ;
8527 return 0;
8528}
8529_ACEOF
8530rm -f conftest.$ac_objext
8531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532 (eval $ac_compile) 2>conftest.er1
8533 ac_status=$?
8534 grep -v '^ *+' conftest.er1 >conftest.err
8535 rm -f conftest.er1
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
49c96104
SE
8539 { ac_try='test -z "$ac_c_werror_flag"
8540 || test ! -s conftest.err'
5464f5a1
NN
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 (eval $ac_try) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548 (eval $ac_try) 2>&5
8549 ac_status=$?
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
ec317fb1
ILT
8552 bfd_cv_has_long_long=yes
8553else
5464f5a1
NN
8554 echo "$as_me: failed program was:" >&5
8555sed 's/^/| /' conftest.$ac_ext >&5
8556
8557bfd_cv_has_long_long=no
ec317fb1 8558fi
5464f5a1 8559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ec317fb1
ILT
8560fi
8561
5464f5a1
NN
8562echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8563echo "${ECHO_T}$bfd_cv_has_long_long" >&6
ec317fb1
ILT
8564if test $bfd_cv_has_long_long = yes; then
8565 BFD_HOST_LONG_LONG=1
2ba49b59
KC
8566 echo "$as_me:$LINENO: checking for long long" >&5
8567echo $ECHO_N "checking for long long... $ECHO_C" >&6
8568if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 8569 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 8570else
5464f5a1
NN
8571 cat >conftest.$ac_ext <<_ACEOF
8572/* confdefs.h. */
8573_ACEOF
8574cat confdefs.h >>conftest.$ac_ext
8575cat >>conftest.$ac_ext <<_ACEOF
8576/* end confdefs.h. */
2ba49b59 8577$ac_includes_default
5464f5a1
NN
8578int
8579main ()
8580{
2ba49b59
KC
8581if ((long long *) 0)
8582 return 0;
8583if (sizeof (long long))
8584 return 0;
5464f5a1
NN
8585 ;
8586 return 0;
8587}
8588_ACEOF
8589rm -f conftest.$ac_objext
8590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8591 (eval $ac_compile) 2>conftest.er1
8592 ac_status=$?
8593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
49c96104
SE
8598 { ac_try='test -z "$ac_c_werror_flag"
8599 || test ! -s conftest.err'
5464f5a1
NN
8600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 (eval $ac_try) 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; } &&
8605 { ac_try='test -s conftest.$ac_objext'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 (eval $ac_try) 2>&5
8608 ac_status=$?
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; }; then
2ba49b59 8611 ac_cv_type_long_long=yes
6726e1ea 8612else
5464f5a1
NN
8613 echo "$as_me: failed program was:" >&5
8614sed 's/^/| /' conftest.$ac_ext >&5
8615
2ba49b59 8616ac_cv_type_long_long=no
6726e1ea 8617fi
5464f5a1 8618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 8619fi
2ba49b59
KC
8620echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8621echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 8622
2ba49b59
KC
8623echo "$as_me:$LINENO: checking size of long long" >&5
8624echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8625if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 8626 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 8627else
2ba49b59
KC
8628 if test "$ac_cv_type_long_long" = yes; then
8629 # The cast to unsigned long works around a bug in the HP C Compiler
8630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8632 # This bug is HP SR number 8606223364.
8633 if test "$cross_compiling" = yes; then
8634 # Depending upon the size, compute the lo and hi bounds.
8635cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8636/* confdefs.h. */
8637_ACEOF
8638cat confdefs.h >>conftest.$ac_ext
8639cat >>conftest.$ac_ext <<_ACEOF
8640/* end confdefs.h. */
2ba49b59
KC
8641$ac_includes_default
8642int
8643main ()
8644{
8645static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8646test_array [0] = 0
6726e1ea 8647
2ba49b59
KC
8648 ;
8649 return 0;
8650}
8651_ACEOF
8652rm -f conftest.$ac_objext
8653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8654 (eval $ac_compile) 2>conftest.er1
8655 ac_status=$?
8656 grep -v '^ *+' conftest.er1 >conftest.err
8657 rm -f conftest.er1
8658 cat conftest.err >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } &&
49c96104
SE
8661 { ac_try='test -z "$ac_c_werror_flag"
8662 || test ! -s conftest.err'
2ba49b59
KC
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5
8665 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } &&
8668 { ac_try='test -s conftest.$ac_objext'
8669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 (eval $ac_try) 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_lo=0 ac_mid=0
8675 while :; do
8676 cat >conftest.$ac_ext <<_ACEOF
8677/* confdefs.h. */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
8681/* end confdefs.h. */
8682$ac_includes_default
5464f5a1
NN
8683int
8684main ()
8685{
2ba49b59
KC
8686static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8687test_array [0] = 0
8688
5464f5a1
NN
8689 ;
8690 return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext
8694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8695 (eval $ac_compile) 2>conftest.er1
8696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
49c96104
SE
8702 { ac_try='test -z "$ac_c_werror_flag"
8703 || test ! -s conftest.err'
5464f5a1
NN
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 (eval $ac_try) 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; } &&
8709 { ac_try='test -s conftest.$ac_objext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 (eval $ac_try) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
2ba49b59 8715 ac_hi=$ac_mid; break
6726e1ea 8716else
5464f5a1
NN
8717 echo "$as_me: failed program was:" >&5
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
2ba49b59
KC
8720ac_lo=`expr $ac_mid + 1`
8721 if test $ac_lo -le $ac_mid; then
8722 ac_lo= ac_hi=
8723 break
8724 fi
8725 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 8726fi
5464f5a1 8727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 8728 done
252b5132 8729else
2ba49b59
KC
8730 echo "$as_me: failed program was:" >&5
8731sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 8732
5464f5a1
NN
8733cat >conftest.$ac_ext <<_ACEOF
8734/* confdefs.h. */
8735_ACEOF
8736cat confdefs.h >>conftest.$ac_ext
8737cat >>conftest.$ac_ext <<_ACEOF
8738/* end confdefs.h. */
8739$ac_includes_default
2ba49b59
KC
8740int
8741main ()
8742{
8743static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8744test_array [0] = 0
8745
8746 ;
8747 return 0;
8748}
5464f5a1
NN
8749_ACEOF
8750rm -f conftest.$ac_objext
8751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752 (eval $ac_compile) 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } &&
49c96104
SE
8759 { ac_try='test -z "$ac_c_werror_flag"
8760 || test ! -s conftest.err'
5464f5a1
NN
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest.$ac_objext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
2ba49b59
KC
8772 ac_hi=-1 ac_mid=-1
8773 while :; do
8774 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8775/* confdefs.h. */
8776_ACEOF
8777cat confdefs.h >>conftest.$ac_ext
8778cat >>conftest.$ac_ext <<_ACEOF
8779/* end confdefs.h. */
2ba49b59
KC
8780$ac_includes_default
8781int
8782main ()
8783{
8784static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8785test_array [0] = 0
8786
8787 ;
8788 return 0;
8789}
5464f5a1 8790_ACEOF
2ba49b59
KC
8791rm -f conftest.$ac_objext
8792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8793 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 8799 (exit $ac_status); } &&
49c96104
SE
8800 { ac_try='test -z "$ac_c_werror_flag"
8801 || test ! -s conftest.err'
2ba49b59
KC
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 (eval $ac_try) 2>&5
8804 ac_status=$?
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; } &&
8807 { ac_try='test -s conftest.$ac_objext'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; }; then
8813 ac_lo=$ac_mid; break
252b5132 8814else
2ba49b59
KC
8815 echo "$as_me: failed program was:" >&5
8816sed 's/^/| /' conftest.$ac_ext >&5
8817
8818ac_hi=`expr '(' $ac_mid ')' - 1`
8819 if test $ac_mid -le $ac_hi; then
8820 ac_lo= ac_hi=
8821 break
8822 fi
8823 ac_mid=`expr 2 '*' $ac_mid`
252b5132 8824fi
2ba49b59
KC
8825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8826 done
5464f5a1
NN
8827else
8828 echo "$as_me: failed program was:" >&5
8829sed 's/^/| /' conftest.$ac_ext >&5
8830
2ba49b59 8831ac_lo= ac_hi=
252b5132 8832fi
2ba49b59
KC
8833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8834fi
8835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8836# Binary search between lo and hi bounds.
8837while test "x$ac_lo" != "x$ac_hi"; do
8838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8839 cat >conftest.$ac_ext <<_ACEOF
8840/* confdefs.h. */
8841_ACEOF
8842cat confdefs.h >>conftest.$ac_ext
8843cat >>conftest.$ac_ext <<_ACEOF
8844/* end confdefs.h. */
8845$ac_includes_default
8846int
8847main ()
8848{
8849static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8850test_array [0] = 0
5464f5a1 8851
2ba49b59
KC
8852 ;
8853 return 0;
8854}
5464f5a1
NN
8855_ACEOF
8856rm -f conftest.$ac_objext
8857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8858 (eval $ac_compile) 2>conftest.er1
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
49c96104
SE
8865 { ac_try='test -z "$ac_c_werror_flag"
8866 || test ! -s conftest.err'
5464f5a1
NN
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; } &&
8872 { ac_try='test -s conftest.$ac_objext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 (eval $ac_try) 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
2ba49b59 8878 ac_hi=$ac_mid
5464f5a1
NN
8879else
8880 echo "$as_me: failed program was:" >&5
8881sed 's/^/| /' conftest.$ac_ext >&5
8882
2ba49b59 8883ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
8884fi
8885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
8886done
8887case $ac_lo in
8888?*) ac_cv_sizeof_long_long=$ac_lo;;
8889'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8890See \`config.log' for more details." >&5
8891echo "$as_me: error: cannot compute sizeof (long long), 77
8892See \`config.log' for more details." >&2;}
8893 { (exit 1); exit 1; }; } ;;
8894esac
8895else
8896 if test "$cross_compiling" = yes; then
49c96104
SE
8897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8898See \`config.log' for more details." >&5
8899echo "$as_me: error: cannot run test program while cross compiling
8900See \`config.log' for more details." >&2;}
2ba49b59
KC
8901 { (exit 1); exit 1; }; }
8902else
8903 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8904/* confdefs.h. */
8905_ACEOF
8906cat confdefs.h >>conftest.$ac_ext
8907cat >>conftest.$ac_ext <<_ACEOF
8908/* end confdefs.h. */
2ba49b59
KC
8909$ac_includes_default
8910long longval () { return (long) (sizeof (long long)); }
8911unsigned long ulongval () { return (long) (sizeof (long long)); }
8912#include <stdio.h>
8913#include <stdlib.h>
8914int
8915main ()
8916{
8917
8918 FILE *f = fopen ("conftest.val", "w");
8919 if (! f)
8920 exit (1);
8921 if (((long) (sizeof (long long))) < 0)
8922 {
8923 long i = longval ();
8924 if (i != ((long) (sizeof (long long))))
8925 exit (1);
8926 fprintf (f, "%ld\n", i);
8927 }
8928 else
8929 {
8930 unsigned long i = ulongval ();
8931 if (i != ((long) (sizeof (long long))))
8932 exit (1);
8933 fprintf (f, "%lu\n", i);
8934 }
8935 exit (ferror (f) || fclose (f) != 0);
8936
8937 ;
8938 return 0;
8939}
5464f5a1 8940_ACEOF
2ba49b59
KC
8941rm -f conftest$ac_exeext
8942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>&5
5464f5a1 8944 ac_status=$?
5464f5a1 8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
8946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 8953else
2ba49b59
KC
8954 echo "$as_me: program exited with status $ac_status" >&5
8955echo "$as_me: failed program was:" >&5
5464f5a1
NN
8956sed 's/^/| /' conftest.$ac_ext >&5
8957
2ba49b59
KC
8958( exit $ac_status )
8959{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8960See \`config.log' for more details." >&5
8961echo "$as_me: error: cannot compute sizeof (long long), 77
8962See \`config.log' for more details." >&2;}
8963 { (exit 1); exit 1; }; }
252b5132 8964fi
2ba49b59
KC
8965rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8966fi
8967fi
8968rm -f conftest.val
6be7c12c 8969else
2ba49b59 8970 ac_cv_sizeof_long_long=0
5464f5a1 8971fi
5464f5a1 8972fi
2ba49b59
KC
8973echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8974echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8975cat >>confdefs.h <<_ACEOF
8976#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
8977_ACEOF
8978
5464f5a1 8979
2ba49b59 8980fi
252b5132 8981
2ba49b59
KC
8982echo "$as_me:$LINENO: checking for long" >&5
8983echo $ECHO_N "checking for long... $ECHO_C" >&6
8984if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986else
8987 cat >conftest.$ac_ext <<_ACEOF
8988/* confdefs.h. */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
8992/* end confdefs.h. */
2ba49b59 8993$ac_includes_default
5464f5a1
NN
8994int
8995main ()
8996{
2ba49b59
KC
8997if ((long *) 0)
8998 return 0;
8999if (sizeof (long))
9000 return 0;
5464f5a1
NN
9001 ;
9002 return 0;
9003}
9004_ACEOF
9005rm -f conftest.$ac_objext
9006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>conftest.er1
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
49c96104
SE
9014 { ac_try='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
5464f5a1
NN
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest.$ac_objext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
2ba49b59 9027 ac_cv_type_long=yes
252b5132 9028else
5464f5a1
NN
9029 echo "$as_me: failed program was:" >&5
9030sed 's/^/| /' conftest.$ac_ext >&5
9031
2ba49b59 9032ac_cv_type_long=no
252b5132 9033fi
5464f5a1 9034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 9035fi
2ba49b59
KC
9036echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9037echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 9038
2ba49b59
KC
9039echo "$as_me:$LINENO: checking size of long" >&5
9040echo $ECHO_N "checking size of long... $ECHO_C" >&6
9041if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9043else
2ba49b59
KC
9044 if test "$ac_cv_type_long" = yes; then
9045 # The cast to unsigned long works around a bug in the HP C Compiler
9046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9048 # This bug is HP SR number 8606223364.
9049 if test "$cross_compiling" = yes; then
9050 # Depending upon the size, compute the lo and hi bounds.
9051cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
9052/* confdefs.h. */
9053_ACEOF
9054cat confdefs.h >>conftest.$ac_ext
9055cat >>conftest.$ac_ext <<_ACEOF
9056/* end confdefs.h. */
2ba49b59 9057$ac_includes_default
5464f5a1
NN
9058int
9059main ()
9060{
2ba49b59
KC
9061static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9062test_array [0] = 0
9063
5464f5a1
NN
9064 ;
9065 return 0;
9066}
9067_ACEOF
9068rm -f conftest.$ac_objext
9069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9070 (eval $ac_compile) 2>conftest.er1
9071 ac_status=$?
9072 grep -v '^ *+' conftest.er1 >conftest.err
9073 rm -f conftest.er1
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
49c96104
SE
9077 { ac_try='test -z "$ac_c_werror_flag"
9078 || test ! -s conftest.err'
5464f5a1
NN
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; } &&
9084 { ac_try='test -s conftest.$ac_objext'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 (eval $ac_try) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
2ba49b59
KC
9090 ac_lo=0 ac_mid=0
9091 while :; do
9092 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
9093/* confdefs.h. */
9094_ACEOF
9095cat confdefs.h >>conftest.$ac_ext
9096cat >>conftest.$ac_ext <<_ACEOF
9097/* end confdefs.h. */
2ba49b59 9098$ac_includes_default
5464f5a1
NN
9099int
9100main ()
9101{
2ba49b59
KC
9102static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9103test_array [0] = 0
9104
5464f5a1
NN
9105 ;
9106 return 0;
9107}
9108_ACEOF
2ba49b59
KC
9109rm -f conftest.$ac_objext
9110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9111 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
9112 ac_status=$?
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } &&
49c96104
SE
9118 { ac_try='test -z "$ac_c_werror_flag"
9119 || test ! -s conftest.err'
5464f5a1
NN
9120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9121 (eval $ac_try) 2>&5
9122 ac_status=$?
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); }; } &&
2ba49b59 9125 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
2ba49b59 9131 ac_hi=$ac_mid; break
5464f5a1
NN
9132else
9133 echo "$as_me: failed program was:" >&5
9134sed 's/^/| /' conftest.$ac_ext >&5
9135
2ba49b59
KC
9136ac_lo=`expr $ac_mid + 1`
9137 if test $ac_lo -le $ac_mid; then
9138 ac_lo= ac_hi=
9139 break
9140 fi
9141 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 9142fi
2ba49b59
KC
9143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9144 done
9145else
9146 echo "$as_me: failed program was:" >&5
9147sed 's/^/| /' conftest.$ac_ext >&5
9148
9149cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
9150/* confdefs.h. */
9151_ACEOF
9152cat confdefs.h >>conftest.$ac_ext
9153cat >>conftest.$ac_ext <<_ACEOF
9154/* end confdefs.h. */
2ba49b59 9155$ac_includes_default
5464f5a1
NN
9156int
9157main ()
9158{
2ba49b59
KC
9159static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9160test_array [0] = 0
9161
5464f5a1
NN
9162 ;
9163 return 0;
9164}
9165_ACEOF
2ba49b59
KC
9166rm -f conftest.$ac_objext
9167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9168 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
9169 ac_status=$?
9170 grep -v '^ *+' conftest.er1 >conftest.err
9171 rm -f conftest.er1
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
49c96104
SE
9175 { ac_try='test -z "$ac_c_werror_flag"
9176 || test ! -s conftest.err'
5464f5a1
NN
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
2ba49b59 9182 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
2ba49b59
KC
9188 ac_hi=-1 ac_mid=-1
9189 while :; do
9190 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
9191/* confdefs.h. */
9192_ACEOF
9193cat confdefs.h >>conftest.$ac_ext
9194cat >>conftest.$ac_ext <<_ACEOF
9195/* end confdefs.h. */
2ba49b59 9196$ac_includes_default
5464f5a1
NN
9197int
9198main ()
9199{
2ba49b59
KC
9200static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9201test_array [0] = 0
9202
5464f5a1
NN
9203 ;
9204 return 0;
9205}
9206_ACEOF
2ba49b59
KC
9207rm -f conftest.$ac_objext
9208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
49c96104
SE
9216 { ac_try='test -z "$ac_c_werror_flag"
9217 || test ! -s conftest.err'
5464f5a1
NN
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
2ba49b59 9223 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
2ba49b59 9229 ac_lo=$ac_mid; break
5464f5a1
NN
9230else
9231 echo "$as_me: failed program was:" >&5
9232sed 's/^/| /' conftest.$ac_ext >&5
9233
2ba49b59
KC
9234ac_hi=`expr '(' $ac_mid ')' - 1`
9235 if test $ac_mid -le $ac_hi; then
9236 ac_lo= ac_hi=
9237 break
9238 fi
9239 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 9240fi
2ba49b59
KC
9241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9242 done
9243else
9244 echo "$as_me: failed program was:" >&5
9245sed 's/^/| /' conftest.$ac_ext >&5
9246
9247ac_lo= ac_hi=
9248fi
9249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9250fi
9251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9252# Binary search between lo and hi bounds.
9253while test "x$ac_lo" != "x$ac_hi"; do
9254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9255 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
9256/* confdefs.h. */
9257_ACEOF
9258cat confdefs.h >>conftest.$ac_ext
9259cat >>conftest.$ac_ext <<_ACEOF
9260/* end confdefs.h. */
2ba49b59 9261$ac_includes_default
5464f5a1
NN
9262int
9263main ()
9264{
2ba49b59
KC
9265static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9266test_array [0] = 0
9267
5464f5a1
NN
9268 ;
9269 return 0;
9270}
9271_ACEOF
2ba49b59
KC
9272rm -f conftest.$ac_objext
9273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9274 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
49c96104
SE
9281 { ac_try='test -z "$ac_c_werror_flag"
9282 || test ! -s conftest.err'
5464f5a1
NN
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 (eval $ac_try) 2>&5
9285 ac_status=$?
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; } &&
2ba49b59 9288 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 (eval $ac_try) 2>&5
9291 ac_status=$?
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
2ba49b59 9294 ac_hi=$ac_mid
5464f5a1
NN
9295else
9296 echo "$as_me: failed program was:" >&5
9297sed 's/^/| /' conftest.$ac_ext >&5
9298
2ba49b59 9299ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 9300fi
2ba49b59
KC
9301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9302done
9303case $ac_lo in
9304?*) ac_cv_sizeof_long=$ac_lo;;
9305'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9306See \`config.log' for more details." >&5
9307echo "$as_me: error: cannot compute sizeof (long), 77
9308See \`config.log' for more details." >&2;}
9309 { (exit 1); exit 1; }; } ;;
9310esac
9311else
9312 if test "$cross_compiling" = yes; then
49c96104
SE
9313 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9314See \`config.log' for more details." >&5
9315echo "$as_me: error: cannot run test program while cross compiling
9316See \`config.log' for more details." >&2;}
2ba49b59 9317 { (exit 1); exit 1; }; }
2e0fbf77
JW
9318else
9319 cat >conftest.$ac_ext <<_ACEOF
9320/* confdefs.h. */
9321_ACEOF
9322cat confdefs.h >>conftest.$ac_ext
9323cat >>conftest.$ac_ext <<_ACEOF
9324/* end confdefs.h. */
2ba49b59
KC
9325$ac_includes_default
9326long longval () { return (long) (sizeof (long)); }
9327unsigned long ulongval () { return (long) (sizeof (long)); }
9328#include <stdio.h>
9329#include <stdlib.h>
2e0fbf77
JW
9330int
9331main ()
9332{
9333
2ba49b59
KC
9334 FILE *f = fopen ("conftest.val", "w");
9335 if (! f)
9336 exit (1);
9337 if (((long) (sizeof (long))) < 0)
9338 {
9339 long i = longval ();
9340 if (i != ((long) (sizeof (long))))
9341 exit (1);
9342 fprintf (f, "%ld\n", i);
9343 }
9344 else
9345 {
9346 unsigned long i = ulongval ();
9347 if (i != ((long) (sizeof (long))))
9348 exit (1);
9349 fprintf (f, "%lu\n", i);
9350 }
9351 exit (ferror (f) || fclose (f) != 0);
9352
2e0fbf77
JW
9353 ;
9354 return 0;
9355}
9356_ACEOF
2ba49b59
KC
9357rm -f conftest$ac_exeext
9358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359 (eval $ac_link) 2>&5
2e0fbf77
JW
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 9362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364 (eval $ac_try) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; }; then
2ba49b59 9368 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 9369else
2ba49b59
KC
9370 echo "$as_me: program exited with status $ac_status" >&5
9371echo "$as_me: failed program was:" >&5
2e0fbf77
JW
9372sed 's/^/| /' conftest.$ac_ext >&5
9373
2ba49b59
KC
9374( exit $ac_status )
9375{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9376See \`config.log' for more details." >&5
9377echo "$as_me: error: cannot compute sizeof (long), 77
9378See \`config.log' for more details." >&2;}
9379 { (exit 1); exit 1; }; }
2e0fbf77 9380fi
2ba49b59 9381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 9382fi
2ba49b59
KC
9383fi
9384rm -f conftest.val
9385else
9386 ac_cv_sizeof_long=0
9387fi
9388fi
9389echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9390echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9391cat >>confdefs.h <<_ACEOF
9392#define SIZEOF_LONG $ac_cv_sizeof_long
9393_ACEOF
9394
9395
9396if test "x${ac_cv_sizeof_long}" = "x8"; then
9397 host64=true
9398 BFD_HOST_64BIT_LONG=1
9399 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9400 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9401elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9402 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9403 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9404fi
9405
9406if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9407 BFD_HOST_64_BIT_DEFINED=1
9408 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9409 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9410fi
9411
9412
9413
9414
9415
9416
9417
9418# Put a plausible default for CC_FOR_BUILD in Makefile.
9419if test -z "$CC_FOR_BUILD"; then
9420 if test "x$cross_compiling" = "xno"; then
9421 CC_FOR_BUILD='$(CC)'
9422 else
9423 CC_FOR_BUILD=gcc
9424 fi
9425fi
9426
9427# Also set EXEEXT_FOR_BUILD.
9428if test "x$cross_compiling" = "xno"; then
9429 EXEEXT_FOR_BUILD='$(EXEEXT)'
9430else
9431 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9432echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9433if test "${bfd_cv_build_exeext+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9435else
9436 rm -f conftest*
9437 echo 'int main () { return 0; }' > conftest.c
9438 bfd_cv_build_exeext=
9439 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9440 for file in conftest.*; do
9441 case $file in
9442 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9443 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9444 esac
9445 done
9446 rm -f conftest*
9447 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9448fi
9449echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9450echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9451 EXEEXT_FOR_BUILD=""
9452 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9453fi
9454
9455
9456
9457
9458
9459
9460
9461
9462for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9463do
9464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9465if eval "test \"\${$as_ac_Header+set}\" = set"; then
9466 echo "$as_me:$LINENO: checking for $ac_header" >&5
9467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9468if eval "test \"\${$as_ac_Header+set}\" = set"; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470fi
9471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9473else
9474 # Is the header compilable?
9475echo "$as_me:$LINENO: checking $ac_header usability" >&5
9476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9477cat >conftest.$ac_ext <<_ACEOF
9478/* confdefs.h. */
9479_ACEOF
9480cat confdefs.h >>conftest.$ac_ext
9481cat >>conftest.$ac_ext <<_ACEOF
9482/* end confdefs.h. */
9483$ac_includes_default
9484#include <$ac_header>
9485_ACEOF
9486rm -f conftest.$ac_objext
9487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488 (eval $ac_compile) 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
49c96104
SE
9495 { ac_try='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
2ba49b59
KC
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest.$ac_objext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_header_compiler=yes
9509else
9510 echo "$as_me: failed program was:" >&5
9511sed 's/^/| /' conftest.$ac_ext >&5
9512
9513ac_header_compiler=no
9514fi
9515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9516echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9517echo "${ECHO_T}$ac_header_compiler" >&6
9518
9519# Is the header present?
9520echo "$as_me:$LINENO: checking $ac_header presence" >&5
9521echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9522cat >conftest.$ac_ext <<_ACEOF
9523/* confdefs.h. */
9524_ACEOF
9525cat confdefs.h >>conftest.$ac_ext
9526cat >>conftest.$ac_ext <<_ACEOF
9527/* end confdefs.h. */
9528#include <$ac_header>
9529_ACEOF
9530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } >/dev/null; then
9538 if test -s conftest.err; then
9539 ac_cpp_err=$ac_c_preproc_warn_flag
9540 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9541 else
9542 ac_cpp_err=
9543 fi
9544else
9545 ac_cpp_err=yes
9546fi
9547if test -z "$ac_cpp_err"; then
9548 ac_header_preproc=yes
9549else
9550 echo "$as_me: failed program was:" >&5
9551sed 's/^/| /' conftest.$ac_ext >&5
9552
9553 ac_header_preproc=no
9554fi
9555rm -f conftest.err conftest.$ac_ext
9556echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9557echo "${ECHO_T}$ac_header_preproc" >&6
9558
9559# So? What about this header?
9560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9561 yes:no: )
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9566 ac_header_preproc=yes
9567 ;;
9568 no:yes:* )
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9576echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9581 (
9582 cat <<\_ASBOX
9583## ------------------------------------------ ##
9584## Report this to the AC_PACKAGE_NAME lists. ##
9585## ------------------------------------------ ##
9586_ASBOX
9587 ) |
9588 sed "s/^/$as_me: WARNING: /" >&2
9589 ;;
9590esac
9591echo "$as_me:$LINENO: checking for $ac_header" >&5
9592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9593if eval "test \"\${$as_ac_Header+set}\" = set"; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595else
9596 eval "$as_ac_Header=\$ac_header_preproc"
9597fi
9598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9600
9601fi
9602if test `eval echo '${'$as_ac_Header'}'` = yes; then
9603 cat >>confdefs.h <<_ACEOF
9604#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9605_ACEOF
9606
9607fi
9608
9609done
9610
9611
9612
9613
9614for ac_header in fcntl.h sys/file.h sys/time.h
9615do
9616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9617if eval "test \"\${$as_ac_Header+set}\" = set"; then
9618 echo "$as_me:$LINENO: checking for $ac_header" >&5
9619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9620if eval "test \"\${$as_ac_Header+set}\" = set"; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622fi
9623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9625else
9626 # Is the header compilable?
9627echo "$as_me:$LINENO: checking $ac_header usability" >&5
9628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9629cat >conftest.$ac_ext <<_ACEOF
9630/* confdefs.h. */
9631_ACEOF
9632cat confdefs.h >>conftest.$ac_ext
9633cat >>conftest.$ac_ext <<_ACEOF
9634/* end confdefs.h. */
9635$ac_includes_default
9636#include <$ac_header>
9637_ACEOF
9638rm -f conftest.$ac_objext
9639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9640 (eval $ac_compile) 2>conftest.er1
9641 ac_status=$?
9642 grep -v '^ *+' conftest.er1 >conftest.err
9643 rm -f conftest.er1
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
49c96104
SE
9647 { ac_try='test -z "$ac_c_werror_flag"
9648 || test ! -s conftest.err'
2ba49b59
KC
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 (eval $ac_try) 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest.$ac_objext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 (eval $ac_try) 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660 ac_header_compiler=yes
9661else
9662 echo "$as_me: failed program was:" >&5
9663sed 's/^/| /' conftest.$ac_ext >&5
9664
9665ac_header_compiler=no
9666fi
9667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9669echo "${ECHO_T}$ac_header_compiler" >&6
9670
9671# Is the header present?
9672echo "$as_me:$LINENO: checking $ac_header presence" >&5
9673echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9674cat >conftest.$ac_ext <<_ACEOF
9675/* confdefs.h. */
9676_ACEOF
9677cat confdefs.h >>conftest.$ac_ext
9678cat >>conftest.$ac_ext <<_ACEOF
9679/* end confdefs.h. */
9680#include <$ac_header>
9681_ACEOF
9682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9684 ac_status=$?
9685 grep -v '^ *+' conftest.er1 >conftest.err
9686 rm -f conftest.er1
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } >/dev/null; then
9690 if test -s conftest.err; then
9691 ac_cpp_err=$ac_c_preproc_warn_flag
9692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9693 else
9694 ac_cpp_err=
9695 fi
9696else
9697 ac_cpp_err=yes
9698fi
9699if test -z "$ac_cpp_err"; then
9700 ac_header_preproc=yes
9701else
9702 echo "$as_me: failed program was:" >&5
9703sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 ac_header_preproc=no
9706fi
9707rm -f conftest.err conftest.$ac_ext
9708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9709echo "${ECHO_T}$ac_header_preproc" >&6
9710
9711# So? What about this header?
9712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9713 yes:no: )
9714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9715echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9717echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9718 ac_header_preproc=yes
9719 ;;
9720 no:yes:* )
9721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9722echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9724echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9726echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9728echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9732echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9733 (
9734 cat <<\_ASBOX
9735## ------------------------------------------ ##
9736## Report this to the AC_PACKAGE_NAME lists. ##
9737## ------------------------------------------ ##
9738_ASBOX
9739 ) |
9740 sed "s/^/$as_me: WARNING: /" >&2
9741 ;;
9742esac
9743echo "$as_me:$LINENO: checking for $ac_header" >&5
9744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9745if eval "test \"\${$as_ac_Header+set}\" = set"; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747else
9748 eval "$as_ac_Header=\$ac_header_preproc"
9749fi
9750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9752
9753fi
9754if test `eval echo '${'$as_ac_Header'}'` = yes; then
9755 cat >>confdefs.h <<_ACEOF
9756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9757_ACEOF
9758
9759fi
9760
9761done
9762
9763echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9764echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9765if test "${ac_cv_header_time+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767else
9768 cat >conftest.$ac_ext <<_ACEOF
9769/* confdefs.h. */
9770_ACEOF
9771cat confdefs.h >>conftest.$ac_ext
9772cat >>conftest.$ac_ext <<_ACEOF
9773/* end confdefs.h. */
9774#include <sys/types.h>
9775#include <sys/time.h>
9776#include <time.h>
9777
9778int
9779main ()
9780{
9781if ((struct tm *) 0)
9782return 0;
9783 ;
9784 return 0;
9785}
9786_ACEOF
9787rm -f conftest.$ac_objext
9788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>conftest.er1
9790 ac_status=$?
9791 grep -v '^ *+' conftest.er1 >conftest.err
9792 rm -f conftest.er1
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
49c96104
SE
9796 { ac_try='test -z "$ac_c_werror_flag"
9797 || test ! -s conftest.err'
2ba49b59
KC
9798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest.$ac_objext'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809 ac_cv_header_time=yes
9810else
9811 echo "$as_me: failed program was:" >&5
9812sed 's/^/| /' conftest.$ac_ext >&5
9813
9814ac_cv_header_time=no
9815fi
9816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9817fi
9818echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9819echo "${ECHO_T}$ac_cv_header_time" >&6
9820if test $ac_cv_header_time = yes; then
9821
9822cat >>confdefs.h <<\_ACEOF
9823#define TIME_WITH_SYS_TIME 1
9824_ACEOF
9825
9826fi
9827
9828
9829
9830
9831
9832
9833ac_header_dirent=no
9834for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9835 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9836echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9837echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9838if eval "test \"\${$as_ac_Header+set}\" = set"; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840else
9841 cat >conftest.$ac_ext <<_ACEOF
9842/* confdefs.h. */
9843_ACEOF
9844cat confdefs.h >>conftest.$ac_ext
9845cat >>conftest.$ac_ext <<_ACEOF
9846/* end confdefs.h. */
9847#include <sys/types.h>
9848#include <$ac_hdr>
9849
9850int
9851main ()
9852{
9853if ((DIR *) 0)
9854return 0;
9855 ;
9856 return 0;
9857}
9858_ACEOF
9859rm -f conftest.$ac_objext
9860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861 (eval $ac_compile) 2>conftest.er1
9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
49c96104
SE
9868 { ac_try='test -z "$ac_c_werror_flag"
9869 || test ! -s conftest.err'
2ba49b59
KC
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest.$ac_objext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 eval "$as_ac_Header=yes"
9882else
9883 echo "$as_me: failed program was:" >&5
9884sed 's/^/| /' conftest.$ac_ext >&5
9885
9886eval "$as_ac_Header=no"
9887fi
9888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9889fi
9890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9892if test `eval echo '${'$as_ac_Header'}'` = yes; then
9893 cat >>confdefs.h <<_ACEOF
9894#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9895_ACEOF
9896
9897ac_header_dirent=$ac_hdr; break
9898fi
9899
9900done
9901# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9902if test $ac_header_dirent = dirent.h; then
9903 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9904echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9905if test "${ac_cv_search_opendir+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907else
9908 ac_func_search_save_LIBS=$LIBS
9909ac_cv_search_opendir=no
9910cat >conftest.$ac_ext <<_ACEOF
9911/* confdefs.h. */
9912_ACEOF
9913cat confdefs.h >>conftest.$ac_ext
9914cat >>conftest.$ac_ext <<_ACEOF
9915/* end confdefs.h. */
9916
9917/* Override any gcc2 internal prototype to avoid an error. */
9918#ifdef __cplusplus
9919extern "C"
9920#endif
9921/* We use char because int might match the return type of a gcc2
9922 builtin and then its argument prototype would still apply. */
9923char opendir ();
9924int
9925main ()
9926{
9927opendir ();
9928 ;
9929 return 0;
9930}
9931_ACEOF
9932rm -f conftest.$ac_objext conftest$ac_exeext
9933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
49c96104
SE
9941 { ac_try='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
2ba49b59
KC
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 (eval $ac_try) 2>&5
9945 ac_status=$?
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try='test -s conftest$ac_exeext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 (eval $ac_try) 2>&5
9951 ac_status=$?
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 ac_cv_search_opendir="none required"
9955else
9956 echo "$as_me: failed program was:" >&5
9957sed 's/^/| /' conftest.$ac_ext >&5
9958
9959fi
9960rm -f conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962if test "$ac_cv_search_opendir" = no; then
9963 for ac_lib in dir; do
9964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9965 cat >conftest.$ac_ext <<_ACEOF
9966/* confdefs.h. */
9967_ACEOF
9968cat confdefs.h >>conftest.$ac_ext
9969cat >>conftest.$ac_ext <<_ACEOF
9970/* end confdefs.h. */
9971
9972/* Override any gcc2 internal prototype to avoid an error. */
9973#ifdef __cplusplus
9974extern "C"
9975#endif
9976/* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9978char opendir ();
9979int
9980main ()
9981{
9982opendir ();
9983 ;
9984 return 0;
9985}
9986_ACEOF
9987rm -f conftest.$ac_objext conftest$ac_exeext
9988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989 (eval $ac_link) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
49c96104
SE
9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
2ba49b59
KC
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest$ac_exeext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_search_opendir="-l$ac_lib"
10010break
10011else
10012 echo "$as_me: failed program was:" >&5
10013sed 's/^/| /' conftest.$ac_ext >&5
10014
10015fi
10016rm -f conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018 done
10019fi
10020LIBS=$ac_func_search_save_LIBS
10021fi
10022echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10023echo "${ECHO_T}$ac_cv_search_opendir" >&6
10024if test "$ac_cv_search_opendir" != no; then
10025 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10026
10027fi
10028
10029else
10030 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10031echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10032if test "${ac_cv_search_opendir+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034else
10035 ac_func_search_save_LIBS=$LIBS
10036ac_cv_search_opendir=no
10037cat >conftest.$ac_ext <<_ACEOF
10038/* confdefs.h. */
10039_ACEOF
10040cat confdefs.h >>conftest.$ac_ext
10041cat >>conftest.$ac_ext <<_ACEOF
10042/* end confdefs.h. */
10043
10044/* Override any gcc2 internal prototype to avoid an error. */
10045#ifdef __cplusplus
10046extern "C"
10047#endif
10048/* We use char because int might match the return type of a gcc2
10049 builtin and then its argument prototype would still apply. */
10050char opendir ();
10051int
10052main ()
10053{
10054opendir ();
10055 ;
10056 return 0;
10057}
10058_ACEOF
10059rm -f conftest.$ac_objext conftest$ac_exeext
10060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10061 (eval $ac_link) 2>conftest.er1
10062 ac_status=$?
10063 grep -v '^ *+' conftest.er1 >conftest.err
10064 rm -f conftest.er1
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
49c96104
SE
10068 { ac_try='test -z "$ac_c_werror_flag"
10069 || test ! -s conftest.err'
2ba49b59
KC
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest$ac_exeext'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_cv_search_opendir="none required"
10082else
10083 echo "$as_me: failed program was:" >&5
10084sed 's/^/| /' conftest.$ac_ext >&5
10085
10086fi
10087rm -f conftest.err conftest.$ac_objext \
10088 conftest$ac_exeext conftest.$ac_ext
10089if test "$ac_cv_search_opendir" = no; then
10090 for ac_lib in x; do
10091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10092 cat >conftest.$ac_ext <<_ACEOF
10093/* confdefs.h. */
10094_ACEOF
10095cat confdefs.h >>conftest.$ac_ext
10096cat >>conftest.$ac_ext <<_ACEOF
10097/* end confdefs.h. */
10098
10099/* Override any gcc2 internal prototype to avoid an error. */
10100#ifdef __cplusplus
10101extern "C"
10102#endif
10103/* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10105char opendir ();
10106int
10107main ()
10108{
10109opendir ();
10110 ;
10111 return 0;
10112}
10113_ACEOF
10114rm -f conftest.$ac_objext conftest$ac_exeext
10115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116 (eval $ac_link) 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
49c96104
SE
10123 { ac_try='test -z "$ac_c_werror_flag"
10124 || test ! -s conftest.err'
2ba49b59
KC
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_search_opendir="-l$ac_lib"
10137break
10138else
10139 echo "$as_me: failed program was:" >&5
10140sed 's/^/| /' conftest.$ac_ext >&5
10141
10142fi
10143rm -f conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 done
10146fi
10147LIBS=$ac_func_search_save_LIBS
10148fi
10149echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10150echo "${ECHO_T}$ac_cv_search_opendir" >&6
10151if test "$ac_cv_search_opendir" != no; then
10152 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10153
10154fi
10155
10156fi
10157
10158echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
10159echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
10160if test "${gcc_cv_header_string+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10162else
10163 cat >conftest.$ac_ext <<_ACEOF
10164/* confdefs.h. */
10165_ACEOF
10166cat confdefs.h >>conftest.$ac_ext
10167cat >>conftest.$ac_ext <<_ACEOF
10168/* end confdefs.h. */
10169#include <string.h>
10170#include <strings.h>
10171int
10172main ()
10173{
10174
10175 ;
10176 return 0;
10177}
10178_ACEOF
10179rm -f conftest.$ac_objext
10180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181 (eval $ac_compile) 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
49c96104
SE
10188 { ac_try='test -z "$ac_c_werror_flag"
10189 || test ! -s conftest.err'
2ba49b59
KC
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10192 ac_status=$?
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest.$ac_objext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 gcc_cv_header_string=yes
10202else
10203 echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206gcc_cv_header_string=no
10207fi
10208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10209fi
10210echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10211echo "${ECHO_T}$gcc_cv_header_string" >&6
10212if test $gcc_cv_header_string = yes; then
10213
10214cat >>confdefs.h <<\_ACEOF
10215#define STRING_WITH_STRINGS 1
10216_ACEOF
10217
2e0fbf77
JW
10218fi
10219
5464f5a1
NN
10220
10221
10222
10223
10224
10225
10226
633fd09f 10227for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 10228do
5464f5a1
NN
10229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10230echo "$as_me:$LINENO: checking for $ac_func" >&5
10231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10232if eval "test \"\${$as_ac_var+set}\" = set"; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234else
10235 cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h. */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h. */
10241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10243#define $ac_func innocuous_$ac_func
10244
252b5132 10245/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
10246 which can conflict with char $ac_func (); below.
10247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10248 <limits.h> exists even on freestanding compilers. */
10249
10250#ifdef __STDC__
10251# include <limits.h>
10252#else
10253# include <assert.h>
10254#endif
6be7c12c 10255
5464f5a1 10256#undef $ac_func
252b5132 10257
5464f5a1
NN
10258/* Override any gcc2 internal prototype to avoid an error. */
10259#ifdef __cplusplus
10260extern "C"
10261{
10262#endif
10263/* We use char because int might match the return type of a gcc2
10264 builtin and then its argument prototype would still apply. */
10265char $ac_func ();
252b5132
RH
10266/* The GNU C library defines this for functions which it implements
10267 to always fail with ENOSYS. Some functions are actually named
10268 something starting with __ and the normal name is an alias. */
10269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10270choke me
10271#else
5464f5a1
NN
10272char (*f) () = $ac_func;
10273#endif
10274#ifdef __cplusplus
10275}
252b5132
RH
10276#endif
10277
5464f5a1
NN
10278int
10279main ()
10280{
10281return f != $ac_func;
10282 ;
10283 return 0;
10284}
10285_ACEOF
10286rm -f conftest.$ac_objext conftest$ac_exeext
10287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } &&
49c96104
SE
10295 { ac_try='test -z "$ac_c_werror_flag"
10296 || test ! -s conftest.err'
5464f5a1
NN
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; } &&
10302 { ac_try='test -s conftest$ac_exeext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 eval "$as_ac_var=yes"
10309else
10310 echo "$as_me: failed program was:" >&5
10311sed 's/^/| /' conftest.$ac_ext >&5
10312
10313eval "$as_ac_var=no"
10314fi
10315rm -f conftest.err conftest.$ac_objext \
10316 conftest$ac_exeext conftest.$ac_ext
10317fi
10318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10320if test `eval echo '${'$as_ac_var'}'` = yes; then
10321 cat >>confdefs.h <<_ACEOF
10322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10323_ACEOF
252b5132 10324
252b5132
RH
10325fi
10326done
10327
5464f5a1 10328
49c97a80
ILT
10329for ac_func in strtoull
10330do
5464f5a1
NN
10331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10332echo "$as_me:$LINENO: checking for $ac_func" >&5
10333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10334if eval "test \"\${$as_ac_var+set}\" = set"; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336else
10337 cat >conftest.$ac_ext <<_ACEOF
10338/* confdefs.h. */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h. */
10343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10345#define $ac_func innocuous_$ac_func
10346
49c97a80 10347/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
10348 which can conflict with char $ac_func (); below.
10349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10350 <limits.h> exists even on freestanding compilers. */
10351
10352#ifdef __STDC__
10353# include <limits.h>
10354#else
10355# include <assert.h>
10356#endif
49c97a80 10357
5464f5a1 10358#undef $ac_func
49c97a80 10359
5464f5a1
NN
10360/* Override any gcc2 internal prototype to avoid an error. */
10361#ifdef __cplusplus
10362extern "C"
10363{
10364#endif
10365/* We use char because int might match the return type of a gcc2
10366 builtin and then its argument prototype would still apply. */
10367char $ac_func ();
49c97a80
ILT
10368/* The GNU C library defines this for functions which it implements
10369 to always fail with ENOSYS. Some functions are actually named
10370 something starting with __ and the normal name is an alias. */
10371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10372choke me
10373#else
5464f5a1
NN
10374char (*f) () = $ac_func;
10375#endif
10376#ifdef __cplusplus
10377}
49c97a80
ILT
10378#endif
10379
5464f5a1
NN
10380int
10381main ()
10382{
10383return f != $ac_func;
10384 ;
10385 return 0;
10386}
10387_ACEOF
10388rm -f conftest.$ac_objext conftest$ac_exeext
10389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390 (eval $ac_link) 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } &&
49c96104
SE
10397 { ac_try='test -z "$ac_c_werror_flag"
10398 || test ! -s conftest.err'
5464f5a1
NN
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; } &&
10404 { ac_try='test -s conftest$ac_exeext'
10405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406 (eval $ac_try) 2>&5
10407 ac_status=$?
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; }; then
10410 eval "$as_ac_var=yes"
10411else
10412 echo "$as_me: failed program was:" >&5
10413sed 's/^/| /' conftest.$ac_ext >&5
10414
10415eval "$as_ac_var=no"
10416fi
10417rm -f conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419fi
10420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10421echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10422if test `eval echo '${'$as_ac_var'}'` = yes; then
10423 cat >>confdefs.h <<_ACEOF
10424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10425_ACEOF
49c97a80 10426
49c97a80
ILT
10427fi
10428done
10429
6be7c12c 10430
2e9ebff5
JG
10431echo "$as_me:$LINENO: checking whether basename is declared" >&5
10432echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10433if test "${ac_cv_have_decl_basename+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435else
10436 cat >conftest.$ac_ext <<_ACEOF
10437/* confdefs.h. */
10438_ACEOF
10439cat confdefs.h >>conftest.$ac_ext
10440cat >>conftest.$ac_ext <<_ACEOF
10441/* end confdefs.h. */
ec7b76fe 10442$ac_includes_default
2e9ebff5
JG
10443int
10444main ()
10445{
10446#ifndef basename
10447 char *p = (char *) basename;
10448#endif
10449
10450 ;
10451 return 0;
10452}
10453_ACEOF
10454rm -f conftest.$ac_objext
10455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10456 (eval $ac_compile) 2>conftest.er1
10457 ac_status=$?
10458 grep -v '^ *+' conftest.er1 >conftest.err
10459 rm -f conftest.er1
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
49c96104
SE
10463 { ac_try='test -z "$ac_c_werror_flag"
10464 || test ! -s conftest.err'
2e9ebff5
JG
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10467 ac_status=$?
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; } &&
10470 { ac_try='test -s conftest.$ac_objext'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10476 ac_cv_have_decl_basename=yes
10477else
10478 echo "$as_me: failed program was:" >&5
10479sed 's/^/| /' conftest.$ac_ext >&5
10480
10481ac_cv_have_decl_basename=no
10482fi
10483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10484fi
10485echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10486echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10487if test $ac_cv_have_decl_basename = yes; then
10488
10489cat >>confdefs.h <<_ACEOF
10490#define HAVE_DECL_BASENAME 1
10491_ACEOF
10492
10493
10494else
10495 cat >>confdefs.h <<_ACEOF
10496#define HAVE_DECL_BASENAME 0
10497_ACEOF
10498
10499
10500fi
10501
10502
ec7b76fe
JG
10503echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10504echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10505if test "${ac_cv_have_decl_ftello+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507else
10508 cat >conftest.$ac_ext <<_ACEOF
10509/* confdefs.h. */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
10513/* end confdefs.h. */
10514$ac_includes_default
10515int
10516main ()
10517{
10518#ifndef ftello
10519 char *p = (char *) ftello;
10520#endif
10521
10522 ;
10523 return 0;
10524}
10525_ACEOF
10526rm -f conftest.$ac_objext
10527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10528 (eval $ac_compile) 2>conftest.er1
10529 ac_status=$?
10530 grep -v '^ *+' conftest.er1 >conftest.err
10531 rm -f conftest.er1
10532 cat conftest.err >&5
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
49c96104
SE
10535 { ac_try='test -z "$ac_c_werror_flag"
10536 || test ! -s conftest.err'
ec7b76fe
JG
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; } &&
10542 { ac_try='test -s conftest.$ac_objext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_cv_have_decl_ftello=yes
10549else
10550 echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
10552
10553ac_cv_have_decl_ftello=no
10554fi
10555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10556fi
10557echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10558echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10559if test $ac_cv_have_decl_ftello = yes; then
10560
10561cat >>confdefs.h <<_ACEOF
10562#define HAVE_DECL_FTELLO 1
10563_ACEOF
10564
10565
10566else
10567 cat >>confdefs.h <<_ACEOF
10568#define HAVE_DECL_FTELLO 0
10569_ACEOF
10570
10571
10572fi
10573
10574
10575echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10576echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10577if test "${ac_cv_have_decl_ftello64+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580 cat >conftest.$ac_ext <<_ACEOF
10581/* confdefs.h. */
10582_ACEOF
10583cat confdefs.h >>conftest.$ac_ext
10584cat >>conftest.$ac_ext <<_ACEOF
10585/* end confdefs.h. */
10586$ac_includes_default
10587int
10588main ()
10589{
10590#ifndef ftello64
10591 char *p = (char *) ftello64;
10592#endif
10593
10594 ;
10595 return 0;
10596}
10597_ACEOF
10598rm -f conftest.$ac_objext
10599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10600 (eval $ac_compile) 2>conftest.er1
10601 ac_status=$?
10602 grep -v '^ *+' conftest.er1 >conftest.err
10603 rm -f conftest.er1
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
49c96104
SE
10607 { ac_try='test -z "$ac_c_werror_flag"
10608 || test ! -s conftest.err'
ec7b76fe
JG
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; } &&
10614 { ac_try='test -s conftest.$ac_objext'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; }; then
10620 ac_cv_have_decl_ftello64=yes
10621else
10622 echo "$as_me: failed program was:" >&5
10623sed 's/^/| /' conftest.$ac_ext >&5
10624
10625ac_cv_have_decl_ftello64=no
10626fi
10627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10628fi
10629echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10630echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10631if test $ac_cv_have_decl_ftello64 = yes; then
10632
10633cat >>confdefs.h <<_ACEOF
10634#define HAVE_DECL_FTELLO64 1
10635_ACEOF
10636
10637
10638else
10639 cat >>confdefs.h <<_ACEOF
10640#define HAVE_DECL_FTELLO64 0
10641_ACEOF
10642
10643
10644fi
10645
10646
10647echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10648echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10649if test "${ac_cv_have_decl_fseeko+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651else
10652 cat >conftest.$ac_ext <<_ACEOF
10653/* confdefs.h. */
10654_ACEOF
10655cat confdefs.h >>conftest.$ac_ext
10656cat >>conftest.$ac_ext <<_ACEOF
10657/* end confdefs.h. */
10658$ac_includes_default
10659int
10660main ()
10661{
10662#ifndef fseeko
10663 char *p = (char *) fseeko;
10664#endif
10665
10666 ;
10667 return 0;
10668}
10669_ACEOF
10670rm -f conftest.$ac_objext
10671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10672 (eval $ac_compile) 2>conftest.er1
10673 ac_status=$?
10674 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
49c96104
SE
10679 { ac_try='test -z "$ac_c_werror_flag"
10680 || test ! -s conftest.err'
ec7b76fe
JG
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; } &&
10686 { ac_try='test -s conftest.$ac_objext'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 ac_cv_have_decl_fseeko=yes
10693else
10694 echo "$as_me: failed program was:" >&5
10695sed 's/^/| /' conftest.$ac_ext >&5
10696
10697ac_cv_have_decl_fseeko=no
10698fi
10699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10700fi
10701echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10702echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10703if test $ac_cv_have_decl_fseeko = yes; then
10704
10705cat >>confdefs.h <<_ACEOF
10706#define HAVE_DECL_FSEEKO 1
10707_ACEOF
10708
10709
10710else
10711 cat >>confdefs.h <<_ACEOF
10712#define HAVE_DECL_FSEEKO 0
10713_ACEOF
10714
10715
10716fi
10717
10718
10719echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10720echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10721if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724 cat >conftest.$ac_ext <<_ACEOF
10725/* confdefs.h. */
10726_ACEOF
10727cat confdefs.h >>conftest.$ac_ext
10728cat >>conftest.$ac_ext <<_ACEOF
10729/* end confdefs.h. */
10730$ac_includes_default
10731int
10732main ()
10733{
10734#ifndef fseeko64
10735 char *p = (char *) fseeko64;
10736#endif
10737
10738 ;
10739 return 0;
10740}
10741_ACEOF
10742rm -f conftest.$ac_objext
10743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744 (eval $ac_compile) 2>conftest.er1
10745 ac_status=$?
10746 grep -v '^ *+' conftest.er1 >conftest.err
10747 rm -f conftest.er1
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } &&
49c96104
SE
10751 { ac_try='test -z "$ac_c_werror_flag"
10752 || test ! -s conftest.err'
ec7b76fe
JG
10753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; } &&
10758 { ac_try='test -s conftest.$ac_objext'
10759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10760 (eval $ac_try) 2>&5
10761 ac_status=$?
10762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); }; }; then
10764 ac_cv_have_decl_fseeko64=yes
10765else
10766 echo "$as_me: failed program was:" >&5
10767sed 's/^/| /' conftest.$ac_ext >&5
10768
10769ac_cv_have_decl_fseeko64=no
10770fi
10771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10772fi
10773echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10774echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10775if test $ac_cv_have_decl_fseeko64 = yes; then
10776
10777cat >>confdefs.h <<_ACEOF
10778#define HAVE_DECL_FSEEKO64 1
10779_ACEOF
10780
10781
10782else
10783 cat >>confdefs.h <<_ACEOF
10784#define HAVE_DECL_FSEEKO64 0
10785_ACEOF
10786
10787
10788fi
10789
10790
2e9ebff5 10791
6be7c12c 10792
252b5132 10793case "${host}" in
855b0be7 10794*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
10795
10796cat >>confdefs.h <<\_ACEOF
252b5132 10797#define USE_BINARY_FOPEN 1
5464f5a1 10798_ACEOF
252b5132
RH
10799 ;;
10800esac
10801
d34a2b1d
JG
10802echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10803echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10804if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 10805 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10806else
5464f5a1
NN
10807 cat >conftest.$ac_ext <<_ACEOF
10808/* confdefs.h. */
10809_ACEOF
10810cat confdefs.h >>conftest.$ac_ext
10811cat >>conftest.$ac_ext <<_ACEOF
10812/* end confdefs.h. */
d34a2b1d 10813$ac_includes_default
5464f5a1
NN
10814int
10815main ()
10816{
d34a2b1d
JG
10817#ifndef ffs
10818 char *p = (char *) ffs;
10819#endif
10820
5464f5a1
NN
10821 ;
10822 return 0;
10823}
10824_ACEOF
10825rm -f conftest.$ac_objext
10826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827 (eval $ac_compile) 2>conftest.er1
10828 ac_status=$?
10829 grep -v '^ *+' conftest.er1 >conftest.err
10830 rm -f conftest.er1
10831 cat conftest.err >&5
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
49c96104
SE
10834 { ac_try='test -z "$ac_c_werror_flag"
10835 || test ! -s conftest.err'
5464f5a1
NN
10836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837 (eval $ac_try) 2>&5
10838 ac_status=$?
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); }; } &&
10841 { ac_try='test -s conftest.$ac_objext'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
d34a2b1d 10847 ac_cv_have_decl_ffs=yes
252b5132 10848else
5464f5a1
NN
10849 echo "$as_me: failed program was:" >&5
10850sed 's/^/| /' conftest.$ac_ext >&5
10851
d34a2b1d 10852ac_cv_have_decl_ffs=no
252b5132 10853fi
5464f5a1 10854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10855fi
d34a2b1d
JG
10856echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10857echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10858if test $ac_cv_have_decl_ffs = yes; then
252b5132 10859
d34a2b1d
JG
10860cat >>confdefs.h <<_ACEOF
10861#define HAVE_DECL_FFS 1
10862_ACEOF
5464f5a1 10863
d34a2b1d
JG
10864
10865else
10866 cat >>confdefs.h <<_ACEOF
10867#define HAVE_DECL_FFS 0
5464f5a1 10868_ACEOF
252b5132 10869
d34a2b1d 10870
252b5132
RH
10871fi
10872
d34a2b1d
JG
10873
10874echo "$as_me:$LINENO: checking whether free is declared" >&5
10875echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10876if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 10877 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10878else
5464f5a1
NN
10879 cat >conftest.$ac_ext <<_ACEOF
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h. */
d34a2b1d 10885$ac_includes_default
5464f5a1
NN
10886int
10887main ()
10888{
d34a2b1d
JG
10889#ifndef free
10890 char *p = (char *) free;
10891#endif
10892
5464f5a1
NN
10893 ;
10894 return 0;
10895}
10896_ACEOF
10897rm -f conftest.$ac_objext
10898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10899 (eval $ac_compile) 2>conftest.er1
10900 ac_status=$?
10901 grep -v '^ *+' conftest.er1 >conftest.err
10902 rm -f conftest.er1
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
49c96104
SE
10906 { ac_try='test -z "$ac_c_werror_flag"
10907 || test ! -s conftest.err'
5464f5a1
NN
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10910 ac_status=$?
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; } &&
10913 { ac_try='test -s conftest.$ac_objext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
d34a2b1d 10919 ac_cv_have_decl_free=yes
252b5132 10920else
5464f5a1
NN
10921 echo "$as_me: failed program was:" >&5
10922sed 's/^/| /' conftest.$ac_ext >&5
10923
d34a2b1d 10924ac_cv_have_decl_free=no
252b5132 10925fi
5464f5a1 10926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10927fi
d34a2b1d
JG
10928echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10929echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10930if test $ac_cv_have_decl_free = yes; then
10931
10932cat >>confdefs.h <<_ACEOF
10933#define HAVE_DECL_FREE 1
10934_ACEOF
252b5132 10935
5464f5a1 10936
d34a2b1d
JG
10937else
10938 cat >>confdefs.h <<_ACEOF
10939#define HAVE_DECL_FREE 0
5464f5a1 10940_ACEOF
252b5132 10941
d34a2b1d 10942
252b5132
RH
10943fi
10944
d34a2b1d
JG
10945
10946echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10947echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10948if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 10949 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10950else
5464f5a1
NN
10951 cat >conftest.$ac_ext <<_ACEOF
10952/* confdefs.h. */
10953_ACEOF
10954cat confdefs.h >>conftest.$ac_ext
10955cat >>conftest.$ac_ext <<_ACEOF
10956/* end confdefs.h. */
d34a2b1d 10957$ac_includes_default
5464f5a1
NN
10958int
10959main ()
10960{
d34a2b1d
JG
10961#ifndef getenv
10962 char *p = (char *) getenv;
10963#endif
10964
5464f5a1
NN
10965 ;
10966 return 0;
10967}
10968_ACEOF
10969rm -f conftest.$ac_objext
10970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10971 (eval $ac_compile) 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
49c96104
SE
10978 { ac_try='test -z "$ac_c_werror_flag"
10979 || test ! -s conftest.err'
5464f5a1
NN
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; } &&
10985 { ac_try='test -s conftest.$ac_objext'
10986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
d34a2b1d 10991 ac_cv_have_decl_getenv=yes
252b5132 10992else
5464f5a1
NN
10993 echo "$as_me: failed program was:" >&5
10994sed 's/^/| /' conftest.$ac_ext >&5
10995
d34a2b1d 10996ac_cv_have_decl_getenv=no
252b5132 10997fi
5464f5a1 10998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10999fi
d34a2b1d
JG
11000echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11001echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11002if test $ac_cv_have_decl_getenv = yes; then
252b5132 11003
d34a2b1d
JG
11004cat >>confdefs.h <<_ACEOF
11005#define HAVE_DECL_GETENV 1
11006_ACEOF
5464f5a1 11007
d34a2b1d
JG
11008
11009else
11010 cat >>confdefs.h <<_ACEOF
11011#define HAVE_DECL_GETENV 0
5464f5a1 11012_ACEOF
252b5132 11013
d34a2b1d 11014
252b5132
RH
11015fi
11016
d34a2b1d
JG
11017
11018echo "$as_me:$LINENO: checking whether malloc is declared" >&5
11019echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
11020if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 11021 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11022else
5464f5a1
NN
11023 cat >conftest.$ac_ext <<_ACEOF
11024/* confdefs.h. */
11025_ACEOF
11026cat confdefs.h >>conftest.$ac_ext
11027cat >>conftest.$ac_ext <<_ACEOF
11028/* end confdefs.h. */
d34a2b1d 11029$ac_includes_default
5464f5a1
NN
11030int
11031main ()
11032{
d34a2b1d
JG
11033#ifndef malloc
11034 char *p = (char *) malloc;
11035#endif
11036
5464f5a1
NN
11037 ;
11038 return 0;
11039}
11040_ACEOF
11041rm -f conftest.$ac_objext
11042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11043 (eval $ac_compile) 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
49c96104
SE
11050 { ac_try='test -z "$ac_c_werror_flag"
11051 || test ! -s conftest.err'
5464f5a1
NN
11052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11053 (eval $ac_try) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; } &&
11057 { ac_try='test -s conftest.$ac_objext'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
d34a2b1d 11063 ac_cv_have_decl_malloc=yes
252b5132 11064else
5464f5a1
NN
11065 echo "$as_me: failed program was:" >&5
11066sed 's/^/| /' conftest.$ac_ext >&5
11067
d34a2b1d 11068ac_cv_have_decl_malloc=no
252b5132 11069fi
5464f5a1 11070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11071fi
d34a2b1d
JG
11072echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
11073echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
11074if test $ac_cv_have_decl_malloc = yes; then
252b5132 11075
d34a2b1d
JG
11076cat >>confdefs.h <<_ACEOF
11077#define HAVE_DECL_MALLOC 1
11078_ACEOF
5464f5a1 11079
d34a2b1d
JG
11080
11081else
11082 cat >>confdefs.h <<_ACEOF
11083#define HAVE_DECL_MALLOC 0
5464f5a1 11084_ACEOF
252b5132 11085
d34a2b1d 11086
252b5132
RH
11087fi
11088
d34a2b1d
JG
11089
11090echo "$as_me:$LINENO: checking whether realloc is declared" >&5
11091echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
11092if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 11093 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11094else
5464f5a1
NN
11095 cat >conftest.$ac_ext <<_ACEOF
11096/* confdefs.h. */
11097_ACEOF
11098cat confdefs.h >>conftest.$ac_ext
11099cat >>conftest.$ac_ext <<_ACEOF
11100/* end confdefs.h. */
d34a2b1d 11101$ac_includes_default
5464f5a1
NN
11102int
11103main ()
11104{
d34a2b1d
JG
11105#ifndef realloc
11106 char *p = (char *) realloc;
11107#endif
11108
5464f5a1
NN
11109 ;
11110 return 0;
11111}
11112_ACEOF
11113rm -f conftest.$ac_objext
11114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115 (eval $ac_compile) 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } &&
49c96104
SE
11122 { ac_try='test -z "$ac_c_werror_flag"
11123 || test ! -s conftest.err'
5464f5a1
NN
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11126 ac_status=$?
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; } &&
11129 { ac_try='test -s conftest.$ac_objext'
11130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131 (eval $ac_try) 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
d34a2b1d 11135 ac_cv_have_decl_realloc=yes
252b5132 11136else
5464f5a1
NN
11137 echo "$as_me: failed program was:" >&5
11138sed 's/^/| /' conftest.$ac_ext >&5
11139
d34a2b1d 11140ac_cv_have_decl_realloc=no
252b5132 11141fi
5464f5a1 11142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 11143fi
d34a2b1d
JG
11144echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11145echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
11146if test $ac_cv_have_decl_realloc = yes; then
11147
11148cat >>confdefs.h <<_ACEOF
11149#define HAVE_DECL_REALLOC 1
11150_ACEOF
252b5132 11151
5464f5a1 11152
d34a2b1d
JG
11153else
11154 cat >>confdefs.h <<_ACEOF
11155#define HAVE_DECL_REALLOC 0
efa9bda4
AL
11156_ACEOF
11157
d34a2b1d 11158
efa9bda4
AL
11159fi
11160
d34a2b1d 11161
be5cacdb
L
11162echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11163echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11164if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11166else
11167 cat >conftest.$ac_ext <<_ACEOF
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
11173$ac_includes_default
11174int
11175main ()
11176{
11177#ifndef stpcpy
11178 char *p = (char *) stpcpy;
11179#endif
11180
11181 ;
11182 return 0;
11183}
11184_ACEOF
11185rm -f conftest.$ac_objext
11186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
49c96104
SE
11194 { ac_try='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
be5cacdb
L
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_have_decl_stpcpy=yes
11208else
11209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
11211
11212ac_cv_have_decl_stpcpy=no
11213fi
11214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11215fi
11216echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11217echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11218if test $ac_cv_have_decl_stpcpy = yes; then
11219
11220cat >>confdefs.h <<_ACEOF
11221#define HAVE_DECL_STPCPY 1
11222_ACEOF
11223
11224
11225else
11226 cat >>confdefs.h <<_ACEOF
11227#define HAVE_DECL_STPCPY 0
11228_ACEOF
11229
11230
11231fi
11232
11233
d34a2b1d
JG
11234echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11235echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11236if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238else
11239 cat >conftest.$ac_ext <<_ACEOF
11240/* confdefs.h. */
11241_ACEOF
11242cat confdefs.h >>conftest.$ac_ext
11243cat >>conftest.$ac_ext <<_ACEOF
11244/* end confdefs.h. */
d34a2b1d 11245$ac_includes_default
efa9bda4
AL
11246int
11247main ()
11248{
d34a2b1d
JG
11249#ifndef strstr
11250 char *p = (char *) strstr;
11251#endif
11252
efa9bda4
AL
11253 ;
11254 return 0;
11255}
11256_ACEOF
11257rm -f conftest.$ac_objext
11258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11259 (eval $ac_compile) 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
49c96104
SE
11266 { ac_try='test -z "$ac_c_werror_flag"
11267 || test ! -s conftest.err'
efa9bda4
AL
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
d34a2b1d 11279 ac_cv_have_decl_strstr=yes
efa9bda4
AL
11280else
11281 echo "$as_me: failed program was:" >&5
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
d34a2b1d 11284ac_cv_have_decl_strstr=no
efa9bda4
AL
11285fi
11286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11287fi
d34a2b1d
JG
11288echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11289echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11290if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 11291
d34a2b1d
JG
11292cat >>confdefs.h <<_ACEOF
11293#define HAVE_DECL_STRSTR 1
11294_ACEOF
efa9bda4 11295
d34a2b1d
JG
11296
11297else
11298 cat >>confdefs.h <<_ACEOF
11299#define HAVE_DECL_STRSTR 0
5464f5a1 11300_ACEOF
252b5132 11301
d34a2b1d 11302
252b5132
RH
11303fi
11304
6be7c12c 11305
36527912
AJ
11306echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11307echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11308if test "${ac_cv_have_decl_snprintf+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310else
11311 cat >conftest.$ac_ext <<_ACEOF
11312/* confdefs.h. */
11313_ACEOF
11314cat confdefs.h >>conftest.$ac_ext
11315cat >>conftest.$ac_ext <<_ACEOF
11316/* end confdefs.h. */
11317$ac_includes_default
11318int
11319main ()
11320{
11321#ifndef snprintf
11322 char *p = (char *) snprintf;
11323#endif
11324
11325 ;
11326 return 0;
11327}
11328_ACEOF
11329rm -f conftest.$ac_objext
11330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11331 (eval $ac_compile) 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
49c96104
SE
11338 { ac_try='test -z "$ac_c_werror_flag"
11339 || test ! -s conftest.err'
36527912
AJ
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; } &&
11345 { ac_try='test -s conftest.$ac_objext'
11346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347 (eval $ac_try) 2>&5
11348 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_cv_have_decl_snprintf=yes
11352else
11353 echo "$as_me: failed program was:" >&5
11354sed 's/^/| /' conftest.$ac_ext >&5
11355
11356ac_cv_have_decl_snprintf=no
11357fi
11358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11359fi
11360echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11361echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11362if test $ac_cv_have_decl_snprintf = yes; then
11363
11364cat >>confdefs.h <<_ACEOF
11365#define HAVE_DECL_SNPRINTF 1
11366_ACEOF
11367
11368
11369else
11370 cat >>confdefs.h <<_ACEOF
11371#define HAVE_DECL_SNPRINTF 0
11372_ACEOF
11373
11374
11375fi
11376
11377
11378echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11379echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11380if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11382else
11383 cat >conftest.$ac_ext <<_ACEOF
11384/* confdefs.h. */
11385_ACEOF
11386cat confdefs.h >>conftest.$ac_ext
11387cat >>conftest.$ac_ext <<_ACEOF
11388/* end confdefs.h. */
11389$ac_includes_default
11390int
11391main ()
11392{
11393#ifndef vsnprintf
11394 char *p = (char *) vsnprintf;
11395#endif
11396
11397 ;
11398 return 0;
11399}
11400_ACEOF
11401rm -f conftest.$ac_objext
11402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11403 (eval $ac_compile) 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
49c96104
SE
11410 { ac_try='test -z "$ac_c_werror_flag"
11411 || test ! -s conftest.err'
36527912
AJ
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try='test -s conftest.$ac_objext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_have_decl_vsnprintf=yes
11424else
11425 echo "$as_me: failed program was:" >&5
11426sed 's/^/| /' conftest.$ac_ext >&5
11427
11428ac_cv_have_decl_vsnprintf=no
11429fi
11430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11431fi
11432echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11433echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11434if test $ac_cv_have_decl_vsnprintf = yes; then
11435
11436cat >>confdefs.h <<_ACEOF
11437#define HAVE_DECL_VSNPRINTF 1
11438_ACEOF
11439
11440
11441else
11442 cat >>confdefs.h <<_ACEOF
11443#define HAVE_DECL_VSNPRINTF 0
11444_ACEOF
11445
11446
11447fi
11448
11449
d34a2b1d 11450
252b5132
RH
11451# If we are configured native, pick a core file support file.
11452COREFILE=
11453COREFLAG=
11454TRAD_HEADER=
11455if test "${target}" = "${host}"; then
11456 case "${host}" in
13dfd2d0 11457 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
11458 COREFILE=''
11459 ;;
ed84e695 11460 alpha*-*-linux-*)
252b5132
RH
11461 COREFILE=trad-core.lo
11462 TRAD_HEADER='"hosts/alphalinux.h"'
11463 ;;
690cc98b
NC
11464 alpha*-*-netbsd* | alpha*-*-openbsd*)
11465 COREFILE=netbsd-core.lo
11466 ;;
252b5132 11467 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
11468 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11469 COREFILE='' ;;
61d0bc33 11470 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
11471 arm-*-riscix) COREFILE=trad-core.lo ;;
11472 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
11473 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
11474 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
11475 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
11476 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
11477 hppa*-*-netbsd* | hppa*-*-openbsd*)
11478 COREFILE=netbsd-core.lo
11479 ;;
11480
dc810e39 11481 i370-*-*)
5b93d8bb
AM
11482 COREFILE=trad-core.lo
11483 TRAD_HEADER='"hosts/i370linux.h"'
11484 ;;
11485
80c7c40a 11486 i[3-7]86-sequent-bsd*)
5b93d8bb 11487 COREFILE=trad-core.lo
252b5132
RH
11488 TRAD_HEADER='"hosts/symmetry.h"'
11489 ;;
80c7c40a
NC
11490 i[3-7]86-sequent-sysv4*) ;;
11491 i[3-7]86-sequent-sysv*)
252b5132
RH
11492 COREFILE=trad-core.lo
11493 TRAD_HEADER='"hosts/symmetry.h"'
11494 ;;
80c7c40a 11495 i[3-7]86-*-bsdi)
7e3b3466
NC
11496 COREFILE=
11497 ;;
d2bef492 11498 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
11499 COREFILE=trad-core.lo
11500 TRAD_HEADER='"hosts/i386bsd.h"'
11501 ;;
13dfd2d0 11502 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
11503 COREFILE=''
11504 TRAD_HEADER='"hosts/i386bsd.h"'
11505 ;;
4615568e 11506 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
11507 COREFILE=netbsd-core.lo
11508 ;;
80c7c40a 11509 i[3-7]86-esix-sysv3*)
252b5132
RH
11510 COREFILE=trad-core.lo
11511 TRAD_HEADER='"hosts/esix.h"'
11512 ;;
80c7c40a 11513 i[3-7]86-*-sco3.2v5*)
252b5132
RH
11514 COREFILE=sco5-core.lo
11515 ;;
80c7c40a 11516 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
11517 COREFILE=trad-core.lo
11518 TRAD_HEADER='"hosts/i386sco.h"'
11519 ;;
80c7c40a 11520 i[3-7]86-*-mach3*)
252b5132
RH
11521 COREFILE=trad-core.lo
11522 TRAD_HEADER='"hosts/i386mach3.h"'
11523 ;;
ed84e695 11524 i[3-7]86-*-linux-*)
252b5132
RH
11525 COREFILE=trad-core.lo
11526 TRAD_HEADER='"hosts/i386linux.h"'
11527 ;;
80c7c40a
NC
11528 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
11529 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
11530 i860-*-mach3* | i860-*-osf1*)
11531 COREFILE=trad-core.lo
11532 TRAD_HEADER='"hosts/i860mach3.h"'
11533 ;;
252b5132
RH
11534 mips-*-netbsd* | mips*-*-openbsd*)
11535 COREFILE=netbsd-core.lo
11536 ;;
11537 mips-dec-*)
11538 COREFILE=trad-core.lo
11539 TRAD_HEADER='"hosts/decstation.h"'
11540 ;;
11541 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
11542 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
11543 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
11544 mips-*-sysv4*) ;;
11545 mips-*-sysv* | mips-*-riscos*)
11546 COREFILE=trad-core.lo
11547 TRAD_HEADER='"hosts/riscos.h"'
11548 ;;
11549 mips-sony-bsd*)
11550 COREFILE=trad-core.lo
11551 TRAD_HEADER='"hosts/news-mips.h"'
11552 ;;
11553 m68*-bull*-sysv*)
11554 COREFILE=trad-core.lo
11555 TRAD_HEADER='"hosts/dpx2.h"'
11556 ;;
11557 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
11558 m68*-hp-bsd*)
11559 COREFILE=trad-core.lo
11560 TRAD_HEADER='"hosts/hp300bsd.h"'
11561 ;;
ed84e695 11562 m68*-*-linux-*)
252b5132
RH
11563 COREFILE=trad-core.lo
11564 TRAD_HEADER='"hosts/m68klinux.h"'
11565 ;;
11566 m68*-motorola-sysv*)
11567 COREFILE=trad-core.lo
11568 TRAD_HEADER='"hosts/delta68.h"'
11569 ;;
11570 m68*-sony-*)
11571 COREFILE=trad-core.lo
11572 TRAD_HEADER='"hosts/news.h"'
11573 ;;
11574 m68*-*-netbsd* | m68*-*-openbsd*)
11575 COREFILE=netbsd-core.lo
11576 ;;
11577 m68*-apple-aux*)
11578 COREFILE=trad-core.lo
11579 TRAD_HEADER='"hosts/m68kaux.h"'
11580 ;;
eb1e0e80
NC
11581 m88*-*-sysv4*)
11582 ;;
11583 m88*-motorola-sysv*)
11584 COREFILE=ptrace-core.lo
11585 ;;
252b5132
RH
11586 m88*-*-mach3*)
11587 COREFILE=trad-core.lo
11588 TRAD_HEADER='"hosts/m88kmach3.h"'
11589 ;;
c6f8758f
NC
11590 m88*-*-openbsd*)
11591 COREFILE=netbsd-core.lo
11592 ;;
252b5132
RH
11593 ns32k-pc532-mach)
11594 COREFILE=trad-core.lo
11595 TRAD_HEADER='"hosts/pc532mach.h"'
11596 ;;
11597 ns32k-*-netbsd* | ns32k-*-openbsd*)
11598 COREFILE=netbsd-core.lo
11599 ;;
eb1e0e80
NC
11600 rs6000-*-lynx*)
11601 COREFILE=lynx-core.lo
11602 ;;
11603 rs6000-*-aix5.* | powerpc-*-aix5.*)
11604 COREFILE=rs6000-core.lo
11605 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11606 ;;
83954261 11607 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
11608 COREFILE=rs6000-core.lo
11609 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
11610 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11611 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
11612 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11613echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11614 cat >conftest.$ac_ext <<_ACEOF
11615/* confdefs.h. */
11616_ACEOF
11617cat confdefs.h >>conftest.$ac_ext
11618cat >>conftest.$ac_ext <<_ACEOF
11619/* end confdefs.h. */
83954261 11620#include <core.h>
5464f5a1
NN
11621int
11622main ()
11623{
83954261 11624struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
11625 ;
11626 return 0;
11627}
11628_ACEOF
11629rm -f conftest.$ac_objext
11630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11631 (eval $ac_compile) 2>conftest.er1
11632 ac_status=$?
11633 grep -v '^ *+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
49c96104
SE
11638 { ac_try='test -z "$ac_c_werror_flag"
11639 || test ! -s conftest.err'
5464f5a1
NN
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest.$ac_objext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651
11652cat >>confdefs.h <<\_ACEOF
83954261 11653#define HAVE_ST_C_IMPL 1
5464f5a1 11654_ACEOF
83954261 11655
5464f5a1
NN
11656 echo "$as_me:$LINENO: result: yes" >&5
11657echo "${ECHO_T}yes" >&6
83954261 11658else
5464f5a1
NN
11659 echo "$as_me: failed program was:" >&5
11660sed 's/^/| /' conftest.$ac_ext >&5
11661
11662echo "$as_me:$LINENO: result: no" >&5
11663echo "${ECHO_T}no" >&6
83954261 11664fi
5464f5a1 11665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 11666 ;;
252b5132
RH
11667 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
11668 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
11669 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
11670 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
11671 powerpc-*-beos*) ;;
13dfd2d0
NC
11672 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11673 COREFILE='' ;;
252b5132 11674 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 11675 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 11676 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 11677 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 11678 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
11679 COREFILE=netbsd-core.lo
11680 ;;
11681 tahoe-*-*)
11682 COREFILE=trad-core.lo
11683 TRAD_HEADER='"hosts/tahoe.h"'
11684 ;;
de6e5e1a
NC
11685 vax-*-netbsd* | vax-*-openbsd*)
11686 COREFILE=netbsd-core.lo
11687 ;;
252b5132
RH
11688 vax-*-ultrix2*)
11689 COREFILE=trad-core.lo
11690 TRAD_HEADER='"hosts/vaxult2.h"'
11691 ;;
11692 vax-*-ultrix*)
11693 COREFILE=trad-core.lo
11694 TRAD_HEADER='"hosts/vaxult2.h"'
11695 ;;
ed84e695 11696 vax-*-linux-*)
f8fc3443
NC
11697 COREFILE=trad-core.lo
11698 TRAD_HEADER='"hosts/vaxlinux.h"'
11699 ;;
252b5132
RH
11700 vax-*-*)
11701 COREFILE=trad-core.lo
11702 TRAD_HEADER='"hosts/vaxbsd.h"'
11703 ;;
85cfd8d3
MK
11704 x86_64-*-netbsd* | x86_64-*-openbsd*)
11705 COREFILE=netbsd-core.lo
11706 ;;
252b5132
RH
11707 esac
11708
11709 case "$COREFILE" in
11710 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
11711 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
11712 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
11713 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
11714 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
11715 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
11716 osf-core.lo) COREFLAG=-DOSF_CORE ;;
11717 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
11718 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
11719 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11720 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11721 esac
11722
11723 # ELF corefile support has several flavors, but all of
11724 # them use something called <sys/procfs.h>
5464f5a1
NN
11725
11726for ac_header in sys/procfs.h
252b5132 11727do
5464f5a1
NN
11728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729if eval "test \"\${$as_ac_Header+set}\" = set"; then
11730 echo "$as_me:$LINENO: checking for $ac_header" >&5
11731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11732if eval "test \"\${$as_ac_Header+set}\" = set"; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734fi
11735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11737else
11738 # Is the header compilable?
11739echo "$as_me:$LINENO: checking $ac_header usability" >&5
11740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11741cat >conftest.$ac_ext <<_ACEOF
11742/* confdefs.h. */
11743_ACEOF
11744cat confdefs.h >>conftest.$ac_ext
11745cat >>conftest.$ac_ext <<_ACEOF
11746/* end confdefs.h. */
11747$ac_includes_default
11748#include <$ac_header>
11749_ACEOF
11750rm -f conftest.$ac_objext
11751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
49c96104
SE
11759 { ac_try='test -z "$ac_c_werror_flag"
11760 || test ! -s conftest.err'
5464f5a1
NN
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest.$ac_objext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_header_compiler=yes
11773else
11774 echo "$as_me: failed program was:" >&5
11775sed 's/^/| /' conftest.$ac_ext >&5
11776
11777ac_header_compiler=no
11778fi
11779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781echo "${ECHO_T}$ac_header_compiler" >&6
11782
11783# Is the header present?
11784echo "$as_me:$LINENO: checking $ac_header presence" >&5
11785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11786cat >conftest.$ac_ext <<_ACEOF
11787/* confdefs.h. */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h. */
11792#include <$ac_header>
11793_ACEOF
11794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } >/dev/null; then
11802 if test -s conftest.err; then
11803 ac_cpp_err=$ac_c_preproc_warn_flag
11804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11805 else
11806 ac_cpp_err=
11807 fi
252b5132 11808else
5464f5a1 11809 ac_cpp_err=yes
252b5132 11810fi
5464f5a1
NN
11811if test -z "$ac_cpp_err"; then
11812 ac_header_preproc=yes
11813else
11814 echo "$as_me: failed program was:" >&5
11815sed 's/^/| /' conftest.$ac_ext >&5
11816
11817 ac_header_preproc=no
252b5132 11818fi
5464f5a1
NN
11819rm -f conftest.err conftest.$ac_ext
11820echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821echo "${ECHO_T}$ac_header_preproc" >&6
11822
11823# So? What about this header?
11824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11825 yes:no: )
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11830 ac_header_preproc=yes
11831 ;;
11832 no:yes:* )
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11836echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11840echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11845 (
11846 cat <<\_ASBOX
11847## ------------------------------------------ ##
11848## Report this to the AC_PACKAGE_NAME lists. ##
11849## ------------------------------------------ ##
11850_ASBOX
11851 ) |
11852 sed "s/^/$as_me: WARNING: /" >&2
11853 ;;
11854esac
11855echo "$as_me:$LINENO: checking for $ac_header" >&5
11856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11857if eval "test \"\${$as_ac_Header+set}\" = set"; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 11859else
5464f5a1
NN
11860 eval "$as_ac_Header=\$ac_header_preproc"
11861fi
11862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11864
252b5132 11865fi
5464f5a1
NN
11866if test `eval echo '${'$as_ac_Header'}'` = yes; then
11867 cat >>confdefs.h <<_ACEOF
11868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11869_ACEOF
11870
11871fi
11872
252b5132
RH
11873done
11874
11875 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
11876 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11877echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11878 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
7ee38065
MS
11887
11888#define _SYSCALL32
252b5132 11889#include <sys/procfs.h>
5464f5a1
NN
11890int
11891main ()
11892{
252b5132 11893prstatus_t avar
5464f5a1
NN
11894 ;
11895 return 0;
11896}
11897_ACEOF
11898rm -f conftest.$ac_objext
11899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11900 (eval $ac_compile) 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
49c96104
SE
11907 { ac_try='test -z "$ac_c_werror_flag"
11908 || test ! -s conftest.err'
5464f5a1
NN
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
252b5132
RH
11920 bfd_cv_have_sys_procfs_type_prstatus_t=yes
11921else
5464f5a1
NN
11922 echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
11925bfd_cv_have_sys_procfs_type_prstatus_t=no
11926
252b5132 11927fi
5464f5a1 11928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11929fi
11930
11931 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
11932
11933cat >>confdefs.h <<\_ACEOF
252b5132 11934#define HAVE_PRSTATUS_T 1
5464f5a1 11935_ACEOF
252b5132
RH
11936
11937 fi
5464f5a1
NN
11938 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11939echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 11940
5464f5a1
NN
11941 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11942echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11943 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 11945else
5464f5a1
NN
11946 cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
7ee38065
MS
11952
11953#define _SYSCALL32
11954#include <sys/procfs.h>
5464f5a1
NN
11955int
11956main ()
11957{
7ee38065 11958prstatus32_t avar
5464f5a1
NN
11959 ;
11960 return 0;
11961}
11962_ACEOF
11963rm -f conftest.$ac_objext
11964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965 (eval $ac_compile) 2>conftest.er1
11966 ac_status=$?
11967 grep -v '^ *+' conftest.er1 >conftest.err
11968 rm -f conftest.er1
11969 cat conftest.err >&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } &&
49c96104
SE
11972 { ac_try='test -z "$ac_c_werror_flag"
11973 || test ! -s conftest.err'
5464f5a1
NN
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
7ee38065
MS
11985 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
11986else
5464f5a1
NN
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990bfd_cv_have_sys_procfs_type_prstatus32_t=no
11991
7ee38065 11992fi
5464f5a1 11993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11994fi
11995
11996 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
11997
11998cat >>confdefs.h <<\_ACEOF
7ee38065 11999#define HAVE_PRSTATUS32_T 1
5464f5a1 12000_ACEOF
7ee38065
MS
12001
12002 fi
5464f5a1
NN
12003 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12004echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 12005
5464f5a1
NN
12006 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12007echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12008 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12010else
5464f5a1
NN
12011 cat >conftest.$ac_ext <<_ACEOF
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
7ee38065
MS
12017
12018#define _SYSCALL32
252b5132 12019#include <sys/procfs.h>
5464f5a1
NN
12020int
12021main ()
12022{
252b5132 12023prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
12024 ;
12025 return 0;
12026}
12027_ACEOF
12028rm -f conftest.$ac_objext
12029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
49c96104
SE
12037 { ac_try='test -z "$ac_c_werror_flag"
12038 || test ! -s conftest.err'
5464f5a1
NN
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest.$ac_objext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
252b5132
RH
12050 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
12051else
5464f5a1
NN
12052 echo "$as_me: failed program was:" >&5
12053sed 's/^/| /' conftest.$ac_ext >&5
12054
12055bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12056
252b5132 12057fi
5464f5a1 12058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12059fi
12060
12061 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
12062
12063cat >>confdefs.h <<\_ACEOF
252b5132 12064#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 12065_ACEOF
252b5132
RH
12066
12067 fi
5464f5a1
NN
12068 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12069echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 12070
5464f5a1
NN
12071 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12072echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12073 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 12075else
5464f5a1
NN
12076 cat >conftest.$ac_ext <<_ACEOF
12077/* confdefs.h. */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h. */
7ee38065
MS
12082
12083#define _SYSCALL32
12084#include <sys/procfs.h>
5464f5a1
NN
12085int
12086main ()
12087{
7ee38065 12088prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
12089 ;
12090 return 0;
12091}
12092_ACEOF
12093rm -f conftest.$ac_objext
12094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095 (eval $ac_compile) 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
49c96104
SE
12102 { ac_try='test -z "$ac_c_werror_flag"
12103 || test ! -s conftest.err'
5464f5a1
NN
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12106 ac_status=$?
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; } &&
12109 { ac_try='test -s conftest.$ac_objext'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
7ee38065
MS
12115 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12116else
5464f5a1
NN
12117 echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
12120bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12121
7ee38065 12122fi
5464f5a1 12123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12124fi
12125
12126 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
12127
12128cat >>confdefs.h <<\_ACEOF
7ee38065 12129#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 12130_ACEOF
7ee38065
MS
12131
12132 fi
5464f5a1
NN
12133 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12134echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 12135
5464f5a1
NN
12136 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12137echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12138 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12140else
5464f5a1
NN
12141 cat >conftest.$ac_ext <<_ACEOF
12142/* confdefs.h. */
12143_ACEOF
12144cat confdefs.h >>conftest.$ac_ext
12145cat >>conftest.$ac_ext <<_ACEOF
12146/* end confdefs.h. */
7ee38065
MS
12147
12148#define _SYSCALL32
252b5132 12149#include <sys/procfs.h>
5464f5a1
NN
12150int
12151main ()
12152{
252b5132 12153pstatus_t avar
5464f5a1
NN
12154 ;
12155 return 0;
12156}
12157_ACEOF
12158rm -f conftest.$ac_objext
12159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12160 (eval $ac_compile) 2>conftest.er1
12161 ac_status=$?
12162 grep -v '^ *+' conftest.er1 >conftest.err
12163 rm -f conftest.er1
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
49c96104
SE
12167 { ac_try='test -z "$ac_c_werror_flag"
12168 || test ! -s conftest.err'
5464f5a1
NN
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; } &&
12174 { ac_try='test -s conftest.$ac_objext'
12175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
252b5132
RH
12180 bfd_cv_have_sys_procfs_type_pstatus_t=yes
12181else
5464f5a1
NN
12182 echo "$as_me: failed program was:" >&5
12183sed 's/^/| /' conftest.$ac_ext >&5
12184
12185bfd_cv_have_sys_procfs_type_pstatus_t=no
12186
252b5132 12187fi
5464f5a1 12188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12189fi
12190
12191 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
12192
12193cat >>confdefs.h <<\_ACEOF
252b5132 12194#define HAVE_PSTATUS_T 1
5464f5a1 12195_ACEOF
252b5132
RH
12196
12197 fi
5464f5a1
NN
12198 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12199echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 12200
5464f5a1
NN
12201 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12202echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12203 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 12205else
5464f5a1
NN
12206 cat >conftest.$ac_ext <<_ACEOF
12207/* confdefs.h. */
12208_ACEOF
12209cat confdefs.h >>conftest.$ac_ext
12210cat >>conftest.$ac_ext <<_ACEOF
12211/* end confdefs.h. */
f572a39d
AM
12212
12213#define _SYSCALL32
12214#include <sys/procfs.h>
5464f5a1
NN
12215int
12216main ()
12217{
f572a39d 12218pxstatus_t avar
5464f5a1
NN
12219 ;
12220 return 0;
12221}
12222_ACEOF
12223rm -f conftest.$ac_objext
12224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12225 (eval $ac_compile) 2>conftest.er1
12226 ac_status=$?
12227 grep -v '^ *+' conftest.er1 >conftest.err
12228 rm -f conftest.er1
12229 cat conftest.err >&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
49c96104
SE
12232 { ac_try='test -z "$ac_c_werror_flag"
12233 || test ! -s conftest.err'
5464f5a1
NN
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } &&
12239 { ac_try='test -s conftest.$ac_objext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12242 ac_status=$?
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
f572a39d
AM
12245 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12246else
5464f5a1
NN
12247 echo "$as_me: failed program was:" >&5
12248sed 's/^/| /' conftest.$ac_ext >&5
12249
12250bfd_cv_have_sys_procfs_type_pxstatus_t=no
12251
f572a39d 12252fi
5464f5a1 12253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
12254fi
12255
12256 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
12257
12258cat >>confdefs.h <<\_ACEOF
f572a39d 12259#define HAVE_PXSTATUS_T 1
5464f5a1 12260_ACEOF
f572a39d
AM
12261
12262 fi
5464f5a1
NN
12263 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12264echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 12265
5464f5a1
NN
12266 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12267echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12268 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 12270else
5464f5a1
NN
12271 cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */
7ee38065
MS
12277
12278#define _SYSCALL32
12279#include <sys/procfs.h>
5464f5a1
NN
12280int
12281main ()
12282{
7ee38065 12283pstatus32_t avar
5464f5a1
NN
12284 ;
12285 return 0;
12286}
12287_ACEOF
12288rm -f conftest.$ac_objext
12289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12290 (eval $ac_compile) 2>conftest.er1
12291 ac_status=$?
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
49c96104
SE
12297 { ac_try='test -z "$ac_c_werror_flag"
12298 || test ! -s conftest.err'
5464f5a1
NN
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest.$ac_objext'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
7ee38065
MS
12310 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12311else
5464f5a1
NN
12312 echo "$as_me: failed program was:" >&5
12313sed 's/^/| /' conftest.$ac_ext >&5
12314
12315bfd_cv_have_sys_procfs_type_pstatus32_t=no
12316
7ee38065 12317fi
5464f5a1 12318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12319fi
12320
12321 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
12322
12323cat >>confdefs.h <<\_ACEOF
7ee38065 12324#define HAVE_PSTATUS32_T 1
5464f5a1 12325_ACEOF
7ee38065
MS
12326
12327 fi
5464f5a1
NN
12328 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12329echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 12330
5464f5a1
NN
12331 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12332echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12333 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12335else
5464f5a1
NN
12336 cat >conftest.$ac_ext <<_ACEOF
12337/* confdefs.h. */
12338_ACEOF
12339cat confdefs.h >>conftest.$ac_ext
12340cat >>conftest.$ac_ext <<_ACEOF
12341/* end confdefs.h. */
7ee38065
MS
12342
12343#define _SYSCALL32
252b5132 12344#include <sys/procfs.h>
5464f5a1
NN
12345int
12346main ()
12347{
252b5132 12348prpsinfo_t avar
5464f5a1
NN
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext
12354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
49c96104
SE
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
5464f5a1
NN
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
252b5132
RH
12375 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12376else
5464f5a1
NN
12377 echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
12380bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12381
252b5132 12382fi
5464f5a1 12383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12384fi
12385
12386 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
12387
12388cat >>confdefs.h <<\_ACEOF
252b5132 12389#define HAVE_PRPSINFO_T 1
5464f5a1 12390_ACEOF
252b5132
RH
12391
12392 fi
5464f5a1
NN
12393 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12394echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 12395
5464f5a1
NN
12396 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12397echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12398 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 12400else
5464f5a1
NN
12401 cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
7ee38065
MS
12407
12408#define _SYSCALL32
12409#include <sys/procfs.h>
5464f5a1
NN
12410int
12411main ()
12412{
7ee38065 12413prpsinfo32_t avar
5464f5a1
NN
12414 ;
12415 return 0;
12416}
12417_ACEOF
12418rm -f conftest.$ac_objext
12419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420 (eval $ac_compile) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
49c96104
SE
12427 { ac_try='test -z "$ac_c_werror_flag"
12428 || test ! -s conftest.err'
5464f5a1
NN
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest.$ac_objext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
7ee38065
MS
12440 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12441else
5464f5a1
NN
12442 echo "$as_me: failed program was:" >&5
12443sed 's/^/| /' conftest.$ac_ext >&5
12444
12445bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12446
7ee38065 12447fi
5464f5a1 12448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12449fi
12450
12451 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
12452
12453cat >>confdefs.h <<\_ACEOF
7ee38065 12454#define HAVE_PRPSINFO32_T 1
5464f5a1 12455_ACEOF
7ee38065
MS
12456
12457 fi
5464f5a1
NN
12458 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12459echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 12460
5464f5a1
NN
12461 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12462echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12463 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12465else
5464f5a1
NN
12466 cat >conftest.$ac_ext <<_ACEOF
12467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
7ee38065
MS
12472
12473#define _SYSCALL32
252b5132 12474#include <sys/procfs.h>
5464f5a1
NN
12475int
12476main ()
12477{
252b5132 12478psinfo_t avar
5464f5a1
NN
12479 ;
12480 return 0;
12481}
12482_ACEOF
12483rm -f conftest.$ac_objext
12484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>conftest.er1
12486 ac_status=$?
12487 grep -v '^ *+' conftest.er1 >conftest.err
12488 rm -f conftest.er1
12489 cat conftest.err >&5
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); } &&
49c96104
SE
12492 { ac_try='test -z "$ac_c_werror_flag"
12493 || test ! -s conftest.err'
5464f5a1
NN
12494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495 (eval $ac_try) 2>&5
12496 ac_status=$?
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); }; } &&
12499 { ac_try='test -s conftest.$ac_objext'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
252b5132
RH
12505 bfd_cv_have_sys_procfs_type_psinfo_t=yes
12506else
5464f5a1
NN
12507 echo "$as_me: failed program was:" >&5
12508sed 's/^/| /' conftest.$ac_ext >&5
12509
12510bfd_cv_have_sys_procfs_type_psinfo_t=no
12511
252b5132 12512fi
5464f5a1 12513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12514fi
12515
12516 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
12517
12518cat >>confdefs.h <<\_ACEOF
252b5132 12519#define HAVE_PSINFO_T 1
5464f5a1 12520_ACEOF
252b5132
RH
12521
12522 fi
5464f5a1
NN
12523 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12524echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 12525
5464f5a1
NN
12526 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12527echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12528 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 12530else
5464f5a1
NN
12531 cat >conftest.$ac_ext <<_ACEOF
12532/* confdefs.h. */
12533_ACEOF
12534cat confdefs.h >>conftest.$ac_ext
12535cat >>conftest.$ac_ext <<_ACEOF
12536/* end confdefs.h. */
7ee38065
MS
12537
12538#define _SYSCALL32
12539#include <sys/procfs.h>
5464f5a1
NN
12540int
12541main ()
12542{
7ee38065 12543psinfo32_t avar
5464f5a1
NN
12544 ;
12545 return 0;
12546}
12547_ACEOF
12548rm -f conftest.$ac_objext
12549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12550 (eval $ac_compile) 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
49c96104
SE
12557 { ac_try='test -z "$ac_c_werror_flag"
12558 || test ! -s conftest.err'
5464f5a1
NN
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; } &&
12564 { ac_try='test -s conftest.$ac_objext'
12565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566 (eval $ac_try) 2>&5
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); }; }; then
7ee38065
MS
12570 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12571else
5464f5a1
NN
12572 echo "$as_me: failed program was:" >&5
12573sed 's/^/| /' conftest.$ac_ext >&5
12574
12575bfd_cv_have_sys_procfs_type_psinfo32_t=no
12576
7ee38065 12577fi
5464f5a1 12578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12579fi
12580
12581 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
12582
12583cat >>confdefs.h <<\_ACEOF
7ee38065 12584#define HAVE_PSINFO32_T 1
5464f5a1 12585_ACEOF
7ee38065
MS
12586
12587 fi
5464f5a1
NN
12588 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12589echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 12590
5464f5a1
NN
12591 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12592echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12593 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12595else
5464f5a1
NN
12596 cat >conftest.$ac_ext <<_ACEOF
12597/* confdefs.h. */
12598_ACEOF
12599cat confdefs.h >>conftest.$ac_ext
12600cat >>conftest.$ac_ext <<_ACEOF
12601/* end confdefs.h. */
7ee38065
MS
12602
12603#define _SYSCALL32
252b5132 12604#include <sys/procfs.h>
5464f5a1
NN
12605int
12606main ()
12607{
252b5132 12608lwpstatus_t avar
5464f5a1
NN
12609 ;
12610 return 0;
12611}
12612_ACEOF
12613rm -f conftest.$ac_objext
12614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12615 (eval $ac_compile) 2>conftest.er1
12616 ac_status=$?
12617 grep -v '^ *+' conftest.er1 >conftest.err
12618 rm -f conftest.er1
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
49c96104
SE
12622 { ac_try='test -z "$ac_c_werror_flag"
12623 || test ! -s conftest.err'
5464f5a1
NN
12624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625 (eval $ac_try) 2>&5
12626 ac_status=$?
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); }; } &&
12629 { ac_try='test -s conftest.$ac_objext'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
252b5132
RH
12635 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12636else
5464f5a1
NN
12637 echo "$as_me: failed program was:" >&5
12638sed 's/^/| /' conftest.$ac_ext >&5
12639
12640bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12641
252b5132 12642fi
5464f5a1 12643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12644fi
12645
12646 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
12647
12648cat >>confdefs.h <<\_ACEOF
252b5132 12649#define HAVE_LWPSTATUS_T 1
5464f5a1 12650_ACEOF
252b5132
RH
12651
12652 fi
5464f5a1
NN
12653 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12654echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 12655
5464f5a1
NN
12656 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12657echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12658 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 12660else
5464f5a1
NN
12661 cat >conftest.$ac_ext <<_ACEOF
12662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
12666/* end confdefs.h. */
f572a39d
AM
12667
12668#define _SYSCALL32
12669#include <sys/procfs.h>
5464f5a1
NN
12670int
12671main ()
12672{
f572a39d 12673lwpxstatus_t avar
5464f5a1
NN
12674 ;
12675 return 0;
12676}
12677_ACEOF
12678rm -f conftest.$ac_objext
12679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680 (eval $ac_compile) 2>conftest.er1
12681 ac_status=$?
12682 grep -v '^ *+' conftest.er1 >conftest.err
12683 rm -f conftest.er1
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
49c96104
SE
12687 { ac_try='test -z "$ac_c_werror_flag"
12688 || test ! -s conftest.err'
5464f5a1
NN
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest.$ac_objext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
f572a39d
AM
12700 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12701else
5464f5a1
NN
12702 echo "$as_me: failed program was:" >&5
12703sed 's/^/| /' conftest.$ac_ext >&5
12704
12705bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12706
f572a39d 12707fi
5464f5a1 12708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
12709fi
12710
12711 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
12712
12713cat >>confdefs.h <<\_ACEOF
f572a39d 12714#define HAVE_LWPXSTATUS_T 1
5464f5a1 12715_ACEOF
f572a39d
AM
12716
12717 fi
5464f5a1
NN
12718 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12719echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 12720
5464f5a1
NN
12721 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12722echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12723 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12725else
5464f5a1
NN
12726 cat >conftest.$ac_ext <<_ACEOF
12727/* confdefs.h. */
12728_ACEOF
12729cat confdefs.h >>conftest.$ac_ext
12730cat >>conftest.$ac_ext <<_ACEOF
12731/* end confdefs.h. */
7ee38065
MS
12732
12733#define _SYSCALL32
252b5132 12734#include <sys/procfs.h>
5464f5a1
NN
12735int
12736main ()
12737{
252b5132 12738lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743rm -f conftest.$ac_objext
12744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
49c96104
SE
12752 { ac_try='test -z "$ac_c_werror_flag"
12753 || test ! -s conftest.err'
5464f5a1
NN
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12756 ac_status=$?
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; } &&
12759 { ac_try='test -s conftest.$ac_objext'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
252b5132
RH
12765 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12766else
5464f5a1
NN
12767 echo "$as_me: failed program was:" >&5
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
12770bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12771
252b5132 12772fi
5464f5a1 12773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12774fi
12775
12776 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
12777
12778cat >>confdefs.h <<\_ACEOF
252b5132 12779#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 12780_ACEOF
252b5132
RH
12781
12782 fi
5464f5a1
NN
12783 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12784echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 12785
5464f5a1
NN
12786 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12787echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12788 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12790else
5464f5a1
NN
12791 cat >conftest.$ac_ext <<_ACEOF
12792/* confdefs.h. */
12793_ACEOF
12794cat confdefs.h >>conftest.$ac_ext
12795cat >>conftest.$ac_ext <<_ACEOF
12796/* end confdefs.h. */
7ee38065
MS
12797
12798#define _SYSCALL32
252b5132 12799#include <sys/procfs.h>
5464f5a1
NN
12800int
12801main ()
12802{
252b5132 12803lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
12804 ;
12805 return 0;
12806}
12807_ACEOF
12808rm -f conftest.$ac_objext
12809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
49c96104
SE
12817 { ac_try='test -z "$ac_c_werror_flag"
12818 || test ! -s conftest.err'
5464f5a1
NN
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; } &&
12824 { ac_try='test -s conftest.$ac_objext'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; }; then
252b5132
RH
12830 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12831else
5464f5a1
NN
12832 echo "$as_me: failed program was:" >&5
12833sed 's/^/| /' conftest.$ac_ext >&5
12834
12835bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12836
252b5132 12837fi
5464f5a1 12838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12839fi
12840
12841 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
12842
12843cat >>confdefs.h <<\_ACEOF
252b5132 12844#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 12845_ACEOF
252b5132
RH
12846
12847 fi
5464f5a1
NN
12848 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12849echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 12850
5464f5a1
NN
12851 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12852echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12853 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 12855else
5464f5a1
NN
12856 cat >conftest.$ac_ext <<_ACEOF
12857/* confdefs.h. */
12858_ACEOF
12859cat confdefs.h >>conftest.$ac_ext
12860cat >>conftest.$ac_ext <<_ACEOF
12861/* end confdefs.h. */
7ee38065
MS
12862
12863#define _SYSCALL32
e3c976c4 12864#include <sys/procfs.h>
5464f5a1
NN
12865int
12866main ()
12867{
e3c976c4 12868win32_pstatus_t avar
5464f5a1
NN
12869 ;
12870 return 0;
12871}
12872_ACEOF
12873rm -f conftest.$ac_objext
12874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12875 (eval $ac_compile) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
49c96104
SE
12882 { ac_try='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
5464f5a1
NN
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12886 ac_status=$?
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try='test -s conftest.$ac_objext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
e3c976c4
ILT
12895 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12896else
5464f5a1
NN
12897 echo "$as_me: failed program was:" >&5
12898sed 's/^/| /' conftest.$ac_ext >&5
12899
12900bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12901
e3c976c4 12902fi
5464f5a1 12903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12904fi
12905
e3c976c4 12906 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
12907
12908cat >>confdefs.h <<\_ACEOF
e3c976c4 12909#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 12910_ACEOF
16e9c715
NC
12911
12912 fi
5464f5a1
NN
12913 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12914echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
12915
12916 fi
12917fi
16e9c715 12918
b3baf5d0 12919
6be7c12c 12920if test -n "$TRAD_HEADER"; then
5464f5a1
NN
12921
12922cat >>confdefs.h <<_ACEOF
252b5132 12923#define TRAD_HEADER $TRAD_HEADER
5464f5a1 12924_ACEOF
252b5132 12925
3f9b03b5 12926fi
252b5132
RH
12927
12928# Horrible hacks to build DLLs on Windows.
12929WIN32LDFLAGS=
12930WIN32LIBADD=
12931case "${host}" in
12932*-*-cygwin*)
12933 if test "$enable_shared" = "yes"; then
12934 WIN32LDFLAGS="-no-undefined"
12935 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12936 fi
12937 ;;
78be1d6e 12938*-*-linux*)
39691762
L
12939 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12940 # libiberty.a.
ca51bfff
L
12941 case "${host}" in
12942 mips*-*-linux*)
12943 # Linux/MIPS uses PIC by default.
12944 if test "$enable_shared" = "yes"; then
12945 WIN32LIBADD="-L../libiberty -liberty"
12946 fi
12947 ;;
12948 *)
66e25bab 12949 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 12950 if test -n "$x"; then
ca51bfff
L
12951 WIN32LIBADD="-L../libiberty/pic -liberty"
12952 fi
12953 ;;
12954 esac
39691762 12955 ;;
252b5132
RH
12956esac
12957
6be7c12c
AO
12958
12959
252b5132
RH
12960# target stuff:
12961
12962# Canonicalize the secondary target names.
12963if test -n "$enable_targets" ; then
12964 for targ in `echo $enable_targets | sed 's/,/ /g'`
12965 do
6d83c84b 12966 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
12967 if test -n "$result" ; then
12968 canon_targets="$canon_targets $result"
12969 else
12970 # Allow targets that config.sub doesn't recognize, like "all".
12971 canon_targets="$canon_targets $targ"
12972 fi
12973 done
12974fi
12975
12976all_targets=false
12977defvec=
12978selvecs=
08f74004 12979assocvecs=
252b5132
RH
12980selarchs=
12981TDEFINES=
12982for targ in $target $canon_targets
12983do
12984 if test "x$targ" = "xall"; then
12985 all_targets=true
08f74004 12986 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
12987 else
12988 . $srcdir/config.bfd
12989 if test "x$targ" = "x$target"; then
12990 defvec=$targ_defvec
12991 fi
12992 selvecs="$selvecs $targ_defvec $targ_selvecs"
12993 selarchs="$selarchs $targ_archs"
12994 TDEFINES="$TDEFINES $targ_cflags"
12995 fi
12996done
12997
6be7c12c 12998
252b5132
RH
12999# This processing still needs to be done if we're to decide properly whether
13000# 64-bit support needs to be compiled in. Currently, it will be included if
13001# the default or any other explicitly requested target requires it; it
13002# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 13003# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
13004# used.
13005
13006# uniq the default and selected vectors in all the configured targets.
13007f=""
13008for i in $selvecs ; do
13009 case " $f " in
13010 *" $i "*) ;;
13011 *) f="$f $i" ;;
13012 esac
13013done
13014selvecs="$f"
13015
6be7c12c 13016
08f74004
AM
13017# uniq the associated vectors in all the configured targets.
13018f=""
13019for i in $assocvecs ; do
13020 case " $f " in
13021 *" $i "*) ;;
13022 *) f="$f $i" ;;
13023 esac
13024done
13025assocvecs="$f"
13026
13027
252b5132
RH
13028# uniq the architectures in all the configured targets.
13029f=""
13030for i in $selarchs ; do
13031 case " $f " in
13032 *" $i "*) ;;
13033 *) f="$f $i" ;;
13034 esac
13035done
13036selarchs="$f"
13037
13038# Target backend .o files.
13039tb=
13040
65765700 13041elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
13042
13043for vec in $selvecs
13044do
69263e90 13045 target_size=32
252b5132
RH
13046 case "$vec" in
13047 # This list is alphabetized to make it easy to compare
dc810e39
AM
13048 # with the two vector lists in targets.c. For the same reason,
13049 # use one entry per line, even though this leads to long lines.
252b5132 13050 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 13051 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
13052 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
13053 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13054 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 13055 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
13056 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13057 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13058 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13059 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13060 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13061 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13062 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
13063 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13064 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13065 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13066 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
13067 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
13068 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 13069 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 13070 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 13071 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 13072 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 13073 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 13074 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 13075 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 13076 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 13077 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 13078 bfd_elf32_bigarm_symbian_vec)
00a97672 13079 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 13080 bfd_elf32_bigarm_vxworks_vec)
00a97672 13081 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
13082 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13083 bfd_elf32_bigmips_vxworks_vec)
13084 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 13085 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 13086 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 13087 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
13088 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
13089 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 13090 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 13091 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 13092 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 13093 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 13094 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 13095 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 13096 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 13097 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 13098 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
13099 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13100 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13101 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 13102 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 13103 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 13104 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 13105 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 13106 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 13107 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 13108 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 13109 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 13110 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 13111 bfd_elf32_littlearm_symbian_vec)
00a97672 13112 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 13113 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
13114 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13115 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
13116 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13117 bfd_elf32_littlemips_vxworks_vec)
13118 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 13119 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 13120 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
13121 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13122 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13123 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
13124 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13125 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
13126 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
13127 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
13128 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13129 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13130 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
13131 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 13132 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 13133 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
13134 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13135 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13136 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13137 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 13138 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 13139 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
13140 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13141 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
13142 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13143 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13144 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 13145 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
eb1e0e80
NC
13146 # FIXME: We include cofflink.lo not because it's needed for
13147 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
13148 # which needs it but does not list it. Should be fixed in right place.
9cba27b2
JT
13149 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13150 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
2bc3c89a
AM
13151 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13152 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13153 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13154 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
b6821651
AM
13155 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13156 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13157 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
85fbca6a 13158 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
b6821651
AM
13159 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13160 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13161 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
910600e9
RS
13162 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13163 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
0a44bf69
RS
13164 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13165 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 13166 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 13167 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 13168 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 13169 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 13170 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
13171 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13172 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 13173 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
13174 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13175 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 13176 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
13177 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13178 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 13179 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 13180 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
13181 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13182 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 13183 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 13184 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
13185 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13186 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13187 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
13188 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13189 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
13190 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13191 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13192 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13193 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 13194 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
13195 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13196 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39 13197 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 13198 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
13199 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13200 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13201 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13202 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 13203 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 13204 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 13205 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 13206 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
13207 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13208 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
13209 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
13210 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
13211 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
13212 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
13213 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13214 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13215 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13216 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13217 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13218 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
13219 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13220 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
13221 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13222 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13223 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13224 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 13225 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
13226 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13227 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
13228 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13229 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
13230 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13231 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13232 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13233 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
13234 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13235 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
13236 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13237 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13238 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 13239 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
13240 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13241 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 13242 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 13243 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 13244 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
13245 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13246 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13247 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
13248 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13249 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13250 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13251 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
13252 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13253 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 13254 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 13255 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 13256 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 13257 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 13258 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 13259 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 13260 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 13261 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
13262 pef_vec) tb="$tb pef.lo" ;;
13263 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 13264 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 13265 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 13266 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 13267 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 13268 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 13269 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 13270 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 13271 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 13272 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 13273 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
13274 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13275 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 13276 som_vec) tb="$tb som.lo" ;;
dc810e39 13277 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
13278 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13279 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13280 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13281 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13282 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 13283 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 13284 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
13285 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13286 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
13287 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13288 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13289 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13290 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13291 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13292 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 13293 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 13294 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 13295 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 13296 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 13297 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 13298 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 13299 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 13300 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 13301 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 13302 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 13303 versados_vec) tb="$tb versados.lo" ;;
dc810e39 13304 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
13305 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13306 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13307 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 13308 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 13309 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 13310
341ca622
AM
13311 # These appear out of order in targets.c
13312 srec_vec) tb="$tb srec.lo" ;;
13313 symbolsrec_vec) tb="$tb srec.lo" ;;
13314 tekhex_vec) tb="$tb tekhex.lo" ;;
13315 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13316 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13317
252b5132 13318 "") ;;
5464f5a1
NN
13319 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13320echo "$as_me: error: *** unknown target vector $vec" >&2;}
13321 { (exit 1); exit 1; }; } ;;
252b5132 13322 esac
69263e90
AM
13323
13324 if test ${target_size} = 64; then
13325 target64=true
13326 fi
13327 if test x"${vec}" = x"${defvec}"; then
13328 bfd_default_target_size=${target_size}
13329 fi
252b5132
RH
13330done
13331
13332# Target architecture .o files.
13333# A couple of CPUs use shorter file names to avoid problems on DOS
13334# filesystems.
d031aafb 13335ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
13336
13337# Weed out duplicate .o files.
13338f=""
13339for i in $tb ; do
13340 case " $f " in
13341 *" $i "*) ;;
13342 *) f="$f $i" ;;
13343 esac
13344done
13345tb="$f"
13346
13347f=""
13348for i in $ta ; do
13349 case " $f " in
13350 *" $i "*) ;;
13351 *) f="$f $i" ;;
13352 esac
13353done
13354ta="$f"
13355
13356bfd_backends="$tb"
13357bfd_machines="$ta"
13358
13359if test x${all_targets} = xtrue ; then
13360 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13361 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13362 selvecs=
13363 havevecs=
13364 selarchs=
08f74004
AM
13365 test -n "$assocvecs" &&
13366 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
13367else # all_targets is true
13368 # Only set these if they will be nonempty, for the clever echo.
13369 havevecs=
08f74004 13370 assocvecs=
252b5132
RH
13371 test -n "$selvecs" &&
13372 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13373 test -n "$selvecs" &&
13374 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13375 test -n "$selarchs" &&
13376 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13377fi # all_targets is true
13378
13379case ${host64}-${target64}-${want64} in
13380 *true*)
13381 wordsize=64
2858ef35 13382 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 13383 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 13384 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
13385 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13386echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13387 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13388echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 13389 fi
966abd70
HPN
13390 if test -n "$GCC" ; then
13391 bad_64bit_gcc=no;
5464f5a1
NN
13392 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13393echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 13394 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
13395 cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
966abd70 13401:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 13402_ACEOF
966abd70 13403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 13404 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 13405 bad_64bit_gcc=yes;
5464f5a1
NN
13406 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13407echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 13408else
5464f5a1
NN
13409 echo "$as_me:$LINENO: result: no" >&5
13410echo "${ECHO_T}no" >&6
966abd70
HPN
13411fi
13412rm -f conftest*
13413
13414 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
13415 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13416echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13417 { (exit 1); exit 1; }; }
966abd70
HPN
13418 fi
13419 fi
252b5132
RH
13420 ;;
13421 false-false-false)
13422 wordsize=32
2858ef35 13423 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
13424 all_backends='$(BFD32_BACKENDS)'
13425 ;;
13426esac
13427
6be7c12c
AO
13428
13429
13430
13431
13432
69263e90 13433
2858ef35 13434
1012372a
AC
13435# Determine the host dependant file_ptr a.k.a. off_t type. In order
13436# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13437# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
13438# Hopefully a reasonable assumption since fseeko et.al. should be
13439# upward compatible.
5464f5a1
NN
13440
13441
13442
13443
2e6f4fae
DJ
13444
13445for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 13446do
5464f5a1
NN
13447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13448echo "$as_me:$LINENO: checking for $ac_func" >&5
13449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13450if eval "test \"\${$as_ac_var+set}\" = set"; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13452else
2ba49b59
KC
13453 cat >conftest.$ac_ext <<_ACEOF
13454/* confdefs.h. */
13455_ACEOF
13456cat confdefs.h >>conftest.$ac_ext
13457cat >>conftest.$ac_ext <<_ACEOF
13458/* end confdefs.h. */
13459/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13461#define $ac_func innocuous_$ac_func
13462
13463/* System header to define __stub macros and hopefully few prototypes,
13464 which can conflict with char $ac_func (); below.
13465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13466 <limits.h> exists even on freestanding compilers. */
13467
13468#ifdef __STDC__
13469# include <limits.h>
13470#else
13471# include <assert.h>
13472#endif
13473
13474#undef $ac_func
13475
13476/* Override any gcc2 internal prototype to avoid an error. */
13477#ifdef __cplusplus
13478extern "C"
13479{
13480#endif
13481/* We use char because int might match the return type of a gcc2
13482 builtin and then its argument prototype would still apply. */
13483char $ac_func ();
13484/* The GNU C library defines this for functions which it implements
13485 to always fail with ENOSYS. Some functions are actually named
13486 something starting with __ and the normal name is an alias. */
13487#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13488choke me
13489#else
13490char (*f) () = $ac_func;
13491#endif
13492#ifdef __cplusplus
13493}
13494#endif
13495
13496int
13497main ()
13498{
13499return f != $ac_func;
13500 ;
13501 return 0;
13502}
13503_ACEOF
13504rm -f conftest.$ac_objext conftest$ac_exeext
13505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13506 (eval $ac_link) 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
49c96104
SE
13513 { ac_try='test -z "$ac_c_werror_flag"
13514 || test ! -s conftest.err'
2ba49b59
KC
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest$ac_exeext'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13526 eval "$as_ac_var=yes"
13527else
13528 echo "$as_me: failed program was:" >&5
13529sed 's/^/| /' conftest.$ac_ext >&5
13530
13531eval "$as_ac_var=no"
13532fi
13533rm -f conftest.err conftest.$ac_objext \
13534 conftest$ac_exeext conftest.$ac_ext
13535fi
13536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13537echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13538if test `eval echo '${'$as_ac_var'}'` = yes; then
13539 cat >>confdefs.h <<_ACEOF
13540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13541_ACEOF
13542
13543fi
13544done
13545
13546if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13547 echo "$as_me:$LINENO: checking for off_t" >&5
13548echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13549if test "${ac_cv_type_off_t+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551else
13552 cat >conftest.$ac_ext <<_ACEOF
13553/* confdefs.h. */
13554_ACEOF
13555cat confdefs.h >>conftest.$ac_ext
13556cat >>conftest.$ac_ext <<_ACEOF
13557/* end confdefs.h. */
13558$ac_includes_default
13559int
13560main ()
13561{
13562if ((off_t *) 0)
13563 return 0;
13564if (sizeof (off_t))
13565 return 0;
13566 ;
13567 return 0;
13568}
13569_ACEOF
13570rm -f conftest.$ac_objext
13571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } &&
49c96104
SE
13579 { ac_try='test -z "$ac_c_werror_flag"
13580 || test ! -s conftest.err'
2ba49b59
KC
13581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13583 ac_status=$?
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; } &&
13586 { ac_try='test -s conftest.$ac_objext'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_cv_type_off_t=yes
13593else
13594 echo "$as_me: failed program was:" >&5
13595sed 's/^/| /' conftest.$ac_ext >&5
13596
13597ac_cv_type_off_t=no
13598fi
13599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13600fi
13601echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13602echo "${ECHO_T}$ac_cv_type_off_t" >&6
13603
13604echo "$as_me:$LINENO: checking size of off_t" >&5
13605echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13606if test "${ac_cv_sizeof_off_t+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608else
13609 if test "$ac_cv_type_off_t" = yes; then
13610 # The cast to unsigned long works around a bug in the HP C Compiler
13611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13613 # This bug is HP SR number 8606223364.
13614 if test "$cross_compiling" = yes; then
13615 # Depending upon the size, compute the lo and hi bounds.
13616cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13617/* confdefs.h. */
13618_ACEOF
13619cat confdefs.h >>conftest.$ac_ext
13620cat >>conftest.$ac_ext <<_ACEOF
13621/* end confdefs.h. */
2ba49b59
KC
13622$ac_includes_default
13623int
13624main ()
13625{
13626static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13627test_array [0] = 0
5464f5a1 13628
2ba49b59
KC
13629 ;
13630 return 0;
13631}
13632_ACEOF
13633rm -f conftest.$ac_objext
13634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13635 (eval $ac_compile) 2>conftest.er1
13636 ac_status=$?
13637 grep -v '^ *+' conftest.er1 >conftest.err
13638 rm -f conftest.er1
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
49c96104
SE
13642 { ac_try='test -z "$ac_c_werror_flag"
13643 || test ! -s conftest.err'
2ba49b59
KC
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; } &&
13649 { ac_try='test -s conftest.$ac_objext'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 ac_lo=0 ac_mid=0
13656 while :; do
13657 cat >conftest.$ac_ext <<_ACEOF
13658/* confdefs.h. */
13659_ACEOF
13660cat confdefs.h >>conftest.$ac_ext
13661cat >>conftest.$ac_ext <<_ACEOF
13662/* end confdefs.h. */
13663$ac_includes_default
13664int
13665main ()
13666{
13667static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13668test_array [0] = 0
5464f5a1 13669
2ba49b59
KC
13670 ;
13671 return 0;
13672}
13673_ACEOF
13674rm -f conftest.$ac_objext
13675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676 (eval $ac_compile) 2>conftest.er1
13677 ac_status=$?
13678 grep -v '^ *+' conftest.er1 >conftest.err
13679 rm -f conftest.er1
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
49c96104
SE
13683 { ac_try='test -z "$ac_c_werror_flag"
13684 || test ! -s conftest.err'
2ba49b59
KC
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest.$ac_objext'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 ac_hi=$ac_mid; break
13697else
13698 echo "$as_me: failed program was:" >&5
13699sed 's/^/| /' conftest.$ac_ext >&5
1012372a 13700
2ba49b59
KC
13701ac_lo=`expr $ac_mid + 1`
13702 if test $ac_lo -le $ac_mid; then
13703 ac_lo= ac_hi=
13704 break
13705 fi
13706 ac_mid=`expr 2 '*' $ac_mid + 1`
13707fi
13708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13709 done
13710else
13711 echo "$as_me: failed program was:" >&5
13712sed 's/^/| /' conftest.$ac_ext >&5
1012372a 13713
2ba49b59
KC
13714cat >conftest.$ac_ext <<_ACEOF
13715/* confdefs.h. */
13716_ACEOF
13717cat confdefs.h >>conftest.$ac_ext
13718cat >>conftest.$ac_ext <<_ACEOF
13719/* end confdefs.h. */
13720$ac_includes_default
13721int
13722main ()
5464f5a1 13723{
2ba49b59
KC
13724static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13725test_array [0] = 0
1012372a 13726
2ba49b59
KC
13727 ;
13728 return 0;
13729}
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
49c96104
SE
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
2ba49b59
KC
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_hi=-1 ac_mid=-1
13754 while :; do
13755 cat >conftest.$ac_ext <<_ACEOF
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
13761$ac_includes_default
5464f5a1
NN
13762int
13763main ()
13764{
2ba49b59
KC
13765static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13766test_array [0] = 0
13767
5464f5a1
NN
13768 ;
13769 return 0;
13770}
13771_ACEOF
2ba49b59
KC
13772rm -f conftest.$ac_objext
13773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13774 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
49c96104
SE
13781 { ac_try='test -z "$ac_c_werror_flag"
13782 || test ! -s conftest.err'
5464f5a1
NN
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
2ba49b59 13788 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
2ba49b59 13794 ac_lo=$ac_mid; break
5464f5a1
NN
13795else
13796 echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
2ba49b59
KC
13799ac_hi=`expr '(' $ac_mid ')' - 1`
13800 if test $ac_mid -le $ac_hi; then
13801 ac_lo= ac_hi=
13802 break
13803 fi
13804 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 13805fi
2ba49b59
KC
13806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13807 done
13808else
13809 echo "$as_me: failed program was:" >&5
13810sed 's/^/| /' conftest.$ac_ext >&5
1012372a 13811
2ba49b59 13812ac_lo= ac_hi=
1012372a 13813fi
2ba49b59
KC
13814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13815fi
13816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13817# Binary search between lo and hi bounds.
13818while test "x$ac_lo" != "x$ac_hi"; do
13819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
13820 cat >conftest.$ac_ext <<_ACEOF
13821/* confdefs.h. */
13822_ACEOF
13823cat confdefs.h >>conftest.$ac_ext
13824cat >>conftest.$ac_ext <<_ACEOF
13825/* end confdefs.h. */
2ba49b59 13826$ac_includes_default
5464f5a1
NN
13827int
13828main ()
13829{
2ba49b59
KC
13830static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13831test_array [0] = 0
13832
5464f5a1
NN
13833 ;
13834 return 0;
13835}
13836_ACEOF
13837rm -f conftest.$ac_objext
13838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13839 (eval $ac_compile) 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
49c96104
SE
13846 { ac_try='test -z "$ac_c_werror_flag"
13847 || test ! -s conftest.err'
5464f5a1
NN
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } &&
13853 { ac_try='test -s conftest.$ac_objext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
2ba49b59 13859 ac_hi=$ac_mid
1012372a 13860else
5464f5a1
NN
13861 echo "$as_me: failed program was:" >&5
13862sed 's/^/| /' conftest.$ac_ext >&5
13863
2ba49b59 13864ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 13865fi
5464f5a1 13866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 13867done
2ba49b59
KC
13868case $ac_lo in
13869?*) ac_cv_sizeof_off_t=$ac_lo;;
13870'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13871See \`config.log' for more details." >&5
13872echo "$as_me: error: cannot compute sizeof (off_t), 77
13873See \`config.log' for more details." >&2;}
13874 { (exit 1); exit 1; }; } ;;
13875esac
13876else
13877 if test "$cross_compiling" = yes; then
49c96104
SE
13878 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13879See \`config.log' for more details." >&5
13880echo "$as_me: error: cannot run test program while cross compiling
13881See \`config.log' for more details." >&2;}
2ba49b59
KC
13882 { (exit 1); exit 1; }; }
13883else
13884 cat >conftest.$ac_ext <<_ACEOF
13885/* confdefs.h. */
13886_ACEOF
13887cat confdefs.h >>conftest.$ac_ext
13888cat >>conftest.$ac_ext <<_ACEOF
13889/* end confdefs.h. */
13890$ac_includes_default
13891long longval () { return (long) (sizeof (off_t)); }
13892unsigned long ulongval () { return (long) (sizeof (off_t)); }
13893#include <stdio.h>
13894#include <stdlib.h>
13895int
13896main ()
13897{
1012372a 13898
2ba49b59
KC
13899 FILE *f = fopen ("conftest.val", "w");
13900 if (! f)
13901 exit (1);
13902 if (((long) (sizeof (off_t))) < 0)
13903 {
13904 long i = longval ();
13905 if (i != ((long) (sizeof (off_t))))
13906 exit (1);
13907 fprintf (f, "%ld\n", i);
13908 }
13909 else
13910 {
13911 unsigned long i = ulongval ();
13912 if (i != ((long) (sizeof (off_t))))
13913 exit (1);
13914 fprintf (f, "%lu\n", i);
13915 }
13916 exit (ferror (f) || fclose (f) != 0);
13917
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922rm -f conftest$ac_exeext
13923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13924 (eval $ac_link) 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_sizeof_off_t=`cat conftest.val`
13934else
13935 echo "$as_me: program exited with status $ac_status" >&5
13936echo "$as_me: failed program was:" >&5
13937sed 's/^/| /' conftest.$ac_ext >&5
1012372a 13938
2ba49b59
KC
13939( exit $ac_status )
13940{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13941See \`config.log' for more details." >&5
13942echo "$as_me: error: cannot compute sizeof (off_t), 77
13943See \`config.log' for more details." >&2;}
5464f5a1 13944 { (exit 1); exit 1; }; }
1012372a 13945fi
2ba49b59
KC
13946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13947fi
13948fi
13949rm -f conftest.val
13950else
13951 ac_cv_sizeof_off_t=0
13952fi
13953fi
5464f5a1
NN
13954echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13955echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 13956cat >>confdefs.h <<_ACEOF
1012372a 13957#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 13958_ACEOF
1012372a
AC
13959
13960
1012372a 13961fi
5464f5a1
NN
13962echo "$as_me:$LINENO: checking file_ptr type" >&5
13963echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
13964bfd_file_ptr="long"
13965bfd_ufile_ptr="unsigned long"
13966if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
13967 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
13968 bfd_file_ptr=BFD_HOST_64_BIT
13969 bfd_ufile_ptr=BFD_HOST_U_64_BIT
13970fi
5464f5a1
NN
13971echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
13972echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
13973
13974
13975
13976
252b5132
RH
13977tdefaults=""
13978test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13979test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 13980test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
13981test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
13982test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
13983
6be7c12c 13984
5464f5a1
NN
13985
13986
13987for ac_header in stdlib.h unistd.h
252b5132 13988do
5464f5a1
NN
13989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13990if eval "test \"\${$as_ac_Header+set}\" = set"; then
13991 echo "$as_me:$LINENO: checking for $ac_header" >&5
13992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13993if eval "test \"\${$as_ac_Header+set}\" = set"; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13995fi
13996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13998else
13999 # Is the header compilable?
14000echo "$as_me:$LINENO: checking $ac_header usability" >&5
14001echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14002cat >conftest.$ac_ext <<_ACEOF
14003/* confdefs.h. */
14004_ACEOF
14005cat confdefs.h >>conftest.$ac_ext
14006cat >>conftest.$ac_ext <<_ACEOF
14007/* end confdefs.h. */
14008$ac_includes_default
14009#include <$ac_header>
14010_ACEOF
14011rm -f conftest.$ac_objext
14012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>conftest.er1
14014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); } &&
49c96104
SE
14020 { ac_try='test -z "$ac_c_werror_flag"
14021 || test ! -s conftest.err'
5464f5a1
NN
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; } &&
14027 { ac_try='test -s conftest.$ac_objext'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
14033 ac_header_compiler=yes
14034else
14035 echo "$as_me: failed program was:" >&5
14036sed 's/^/| /' conftest.$ac_ext >&5
14037
14038ac_header_compiler=no
14039fi
14040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14042echo "${ECHO_T}$ac_header_compiler" >&6
14043
14044# Is the header present?
14045echo "$as_me:$LINENO: checking $ac_header presence" >&5
14046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14047cat >conftest.$ac_ext <<_ACEOF
14048/* confdefs.h. */
14049_ACEOF
14050cat confdefs.h >>conftest.$ac_ext
14051cat >>conftest.$ac_ext <<_ACEOF
14052/* end confdefs.h. */
14053#include <$ac_header>
14054_ACEOF
14055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14057 ac_status=$?
14058 grep -v '^ *+' conftest.er1 >conftest.err
14059 rm -f conftest.er1
14060 cat conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); } >/dev/null; then
14063 if test -s conftest.err; then
14064 ac_cpp_err=$ac_c_preproc_warn_flag
14065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14066 else
14067 ac_cpp_err=
14068 fi
252b5132 14069else
5464f5a1 14070 ac_cpp_err=yes
252b5132 14071fi
5464f5a1
NN
14072if test -z "$ac_cpp_err"; then
14073 ac_header_preproc=yes
14074else
14075 echo "$as_me: failed program was:" >&5
14076sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 ac_header_preproc=no
252b5132 14079fi
5464f5a1
NN
14080rm -f conftest.err conftest.$ac_ext
14081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14082echo "${ECHO_T}$ac_header_preproc" >&6
14083
14084# So? What about this header?
14085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14086 yes:no: )
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14088echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14090echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14091 ac_header_preproc=yes
14092 ;;
14093 no:yes:* )
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14095echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14097echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14099echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14101echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14103echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14105echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14106 (
14107 cat <<\_ASBOX
14108## ------------------------------------------ ##
14109## Report this to the AC_PACKAGE_NAME lists. ##
14110## ------------------------------------------ ##
14111_ASBOX
14112 ) |
14113 sed "s/^/$as_me: WARNING: /" >&2
14114 ;;
14115esac
14116echo "$as_me:$LINENO: checking for $ac_header" >&5
14117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14118if eval "test \"\${$as_ac_Header+set}\" = set"; then
14119 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 14120else
5464f5a1
NN
14121 eval "$as_ac_Header=\$ac_header_preproc"
14122fi
14123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14125
14126fi
14127if test `eval echo '${'$as_ac_Header'}'` = yes; then
14128 cat >>confdefs.h <<_ACEOF
14129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14130_ACEOF
14131
252b5132 14132fi
5464f5a1 14133
252b5132
RH
14134done
14135
5464f5a1 14136
252b5132
RH
14137for ac_func in getpagesize
14138do
5464f5a1
NN
14139as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14140echo "$as_me:$LINENO: checking for $ac_func" >&5
14141echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14142if eval "test \"\${$as_ac_var+set}\" = set"; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144else
14145 cat >conftest.$ac_ext <<_ACEOF
14146/* confdefs.h. */
14147_ACEOF
14148cat confdefs.h >>conftest.$ac_ext
14149cat >>conftest.$ac_ext <<_ACEOF
14150/* end confdefs.h. */
14151/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14153#define $ac_func innocuous_$ac_func
14154
252b5132 14155/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
14156 which can conflict with char $ac_func (); below.
14157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14158 <limits.h> exists even on freestanding compilers. */
14159
14160#ifdef __STDC__
14161# include <limits.h>
14162#else
14163# include <assert.h>
14164#endif
6be7c12c 14165
5464f5a1 14166#undef $ac_func
252b5132 14167
5464f5a1
NN
14168/* Override any gcc2 internal prototype to avoid an error. */
14169#ifdef __cplusplus
14170extern "C"
14171{
14172#endif
14173/* We use char because int might match the return type of a gcc2
14174 builtin and then its argument prototype would still apply. */
14175char $ac_func ();
252b5132
RH
14176/* The GNU C library defines this for functions which it implements
14177 to always fail with ENOSYS. Some functions are actually named
14178 something starting with __ and the normal name is an alias. */
14179#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14180choke me
14181#else
5464f5a1
NN
14182char (*f) () = $ac_func;
14183#endif
14184#ifdef __cplusplus
14185}
252b5132
RH
14186#endif
14187
5464f5a1
NN
14188int
14189main ()
14190{
14191return f != $ac_func;
14192 ;
14193 return 0;
14194}
14195_ACEOF
14196rm -f conftest.$ac_objext conftest$ac_exeext
14197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14198 (eval $ac_link) 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
49c96104
SE
14205 { ac_try='test -z "$ac_c_werror_flag"
14206 || test ! -s conftest.err'
5464f5a1
NN
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try='test -s conftest$ac_exeext'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 eval "$as_ac_var=yes"
14219else
14220 echo "$as_me: failed program was:" >&5
14221sed 's/^/| /' conftest.$ac_ext >&5
14222
14223eval "$as_ac_var=no"
14224fi
14225rm -f conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
14227fi
14228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14229echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14230if test `eval echo '${'$as_ac_var'}'` = yes; then
14231 cat >>confdefs.h <<_ACEOF
14232#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14233_ACEOF
252b5132 14234
252b5132
RH
14235fi
14236done
14237
5464f5a1
NN
14238echo "$as_me:$LINENO: checking for working mmap" >&5
14239echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14240if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
14242else
14243 if test "$cross_compiling" = yes; then
14244 ac_cv_func_mmap_fixed_mapped=no
14245else
5464f5a1
NN
14246 cat >conftest.$ac_ext <<_ACEOF
14247/* confdefs.h. */
14248_ACEOF
14249cat confdefs.h >>conftest.$ac_ext
14250cat >>conftest.$ac_ext <<_ACEOF
14251/* end confdefs.h. */
14252$ac_includes_default
14253/* malloc might have been renamed as rpl_malloc. */
14254#undef malloc
6be7c12c 14255
252b5132
RH
14256/* Thanks to Mike Haertel and Jim Avera for this test.
14257 Here is a matrix of mmap possibilities:
14258 mmap private not fixed
14259 mmap private fixed at somewhere currently unmapped
14260 mmap private fixed at somewhere already mapped
14261 mmap shared not fixed
14262 mmap shared fixed at somewhere currently unmapped
14263 mmap shared fixed at somewhere already mapped
14264 For private mappings, we should verify that changes cannot be read()
14265 back from the file, nor mmap's back from the file at a different
14266 address. (There have been systems where private was not correctly
14267 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 14268 VM page cache was not coherent with the file system buffer cache
252b5132
RH
14269 like early versions of FreeBSD and possibly contemporary NetBSD.)
14270 For shared mappings, we should conversely verify that changes get
5464f5a1 14271 propagated back to all the places they're supposed to be.
252b5132
RH
14272
14273 Grep wants private fixed already mapped.
14274 The main things grep needs to know about mmap are:
14275 * does it exist and is it safe to write into the mmap'd area
14276 * how to use it (BSD variants) */
5464f5a1 14277
252b5132
RH
14278#include <fcntl.h>
14279#include <sys/mman.h>
14280
5464f5a1
NN
14281#if !STDC_HEADERS && !HAVE_STDLIB_H
14282char *malloc ();
14283#endif
6be7c12c 14284
5464f5a1
NN
14285/* This mess was copied from the GNU getpagesize.h. */
14286#if !HAVE_GETPAGESIZE
252b5132 14287/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 14288# if !HAVE_SYS_PARAM_H
252b5132
RH
14289# define HAVE_SYS_PARAM_H 1
14290# endif
14291
14292# ifdef _SC_PAGESIZE
14293# define getpagesize() sysconf(_SC_PAGESIZE)
14294# else /* no _SC_PAGESIZE */
5464f5a1 14295# if HAVE_SYS_PARAM_H
252b5132
RH
14296# include <sys/param.h>
14297# ifdef EXEC_PAGESIZE
14298# define getpagesize() EXEC_PAGESIZE
14299# else /* no EXEC_PAGESIZE */
14300# ifdef NBPG
14301# define getpagesize() NBPG * CLSIZE
14302# ifndef CLSIZE
14303# define CLSIZE 1
14304# endif /* no CLSIZE */
14305# else /* no NBPG */
14306# ifdef NBPC
14307# define getpagesize() NBPC
14308# else /* no NBPC */
14309# ifdef PAGESIZE
14310# define getpagesize() PAGESIZE
14311# endif /* PAGESIZE */
14312# endif /* no NBPC */
14313# endif /* no NBPG */
14314# endif /* no EXEC_PAGESIZE */
14315# else /* no HAVE_SYS_PARAM_H */
14316# define getpagesize() 8192 /* punt totally */
14317# endif /* no HAVE_SYS_PARAM_H */
14318# endif /* no _SC_PAGESIZE */
14319
5464f5a1
NN
14320#endif /* no HAVE_GETPAGESIZE */
14321
14322int
14323main ()
14324{
14325 char *data, *data2, *data3;
14326 int i, pagesize;
14327 int fd;
14328
14329 pagesize = getpagesize ();
14330
14331 /* First, make a file with some known garbage in it. */
14332 data = (char *) malloc (pagesize);
14333 if (!data)
14334 exit (1);
14335 for (i = 0; i < pagesize; ++i)
14336 *(data + i) = rand ();
14337 umask (0);
14338 fd = creat ("conftest.mmap", 0600);
14339 if (fd < 0)
14340 exit (1);
14341 if (write (fd, data, pagesize) != pagesize)
14342 exit (1);
14343 close (fd);
14344
14345 /* Next, try to mmap the file at a fixed address which already has
14346 something else allocated at it. If we can, also make sure that
14347 we see the same garbage. */
14348 fd = open ("conftest.mmap", O_RDWR);
14349 if (fd < 0)
14350 exit (1);
14351 data2 = (char *) malloc (2 * pagesize);
14352 if (!data2)
14353 exit (1);
14354 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14355 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14356 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14357 exit (1);
14358 for (i = 0; i < pagesize; ++i)
14359 if (*(data + i) != *(data2 + i))
14360 exit (1);
14361
14362 /* Finally, make sure that changes to the mapped area do not
14363 percolate back to the file as seen by read(). (This is a bug on
14364 some variants of i386 svr4.0.) */
14365 for (i = 0; i < pagesize; ++i)
14366 *(data2 + i) = *(data2 + i) + 1;
14367 data3 = (char *) malloc (pagesize);
14368 if (!data3)
14369 exit (1);
14370 if (read (fd, data3, pagesize) != pagesize)
14371 exit (1);
14372 for (i = 0; i < pagesize; ++i)
14373 if (*(data + i) != *(data3 + i))
14374 exit (1);
14375 close (fd);
14376 exit (0);
14377}
14378_ACEOF
14379rm -f conftest$ac_exeext
14380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14381 (eval $ac_link) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_func_mmap_fixed_mapped=yes
14391else
14392 echo "$as_me: program exited with status $ac_status" >&5
14393echo "$as_me: failed program was:" >&5
14394sed 's/^/| /' conftest.$ac_ext >&5
14395
14396( exit $ac_status )
14397ac_cv_func_mmap_fixed_mapped=no
14398fi
14399rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14400fi
14401fi
14402echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14403echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14404if test $ac_cv_func_mmap_fixed_mapped = yes; then
14405
14406cat >>confdefs.h <<\_ACEOF
14407#define HAVE_MMAP 1
14408_ACEOF
14409
14410fi
14411rm -f conftest.mmap
14412
14413
14414
14415for ac_func in madvise mprotect
14416do
14417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14418echo "$as_me:$LINENO: checking for $ac_func" >&5
14419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14420if eval "test \"\${$as_ac_var+set}\" = set"; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422else
14423 cat >conftest.$ac_ext <<_ACEOF
14424/* confdefs.h. */
14425_ACEOF
14426cat confdefs.h >>conftest.$ac_ext
14427cat >>conftest.$ac_ext <<_ACEOF
14428/* end confdefs.h. */
14429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14431#define $ac_func innocuous_$ac_func
14432
14433/* System header to define __stub macros and hopefully few prototypes,
14434 which can conflict with char $ac_func (); below.
14435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14436 <limits.h> exists even on freestanding compilers. */
14437
14438#ifdef __STDC__
14439# include <limits.h>
14440#else
14441# include <assert.h>
14442#endif
14443
14444#undef $ac_func
14445
14446/* Override any gcc2 internal prototype to avoid an error. */
14447#ifdef __cplusplus
14448extern "C"
14449{
14450#endif
14451/* We use char because int might match the return type of a gcc2
14452 builtin and then its argument prototype would still apply. */
14453char $ac_func ();
14454/* The GNU C library defines this for functions which it implements
14455 to always fail with ENOSYS. Some functions are actually named
14456 something starting with __ and the normal name is an alias. */
14457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14458choke me
14459#else
14460char (*f) () = $ac_func;
14461#endif
14462#ifdef __cplusplus
14463}
14464#endif
14465
14466int
14467main ()
14468{
14469return f != $ac_func;
14470 ;
14471 return 0;
14472}
14473_ACEOF
14474rm -f conftest.$ac_objext conftest$ac_exeext
14475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14476 (eval $ac_link) 2>conftest.er1
14477 ac_status=$?
14478 grep -v '^ *+' conftest.er1 >conftest.err
14479 rm -f conftest.er1
14480 cat conftest.err >&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
49c96104
SE
14483 { ac_try='test -z "$ac_c_werror_flag"
14484 || test ! -s conftest.err'
5464f5a1
NN
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14487 ac_status=$?
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; } &&
14490 { ac_try='test -s conftest$ac_exeext'
14491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492 (eval $ac_try) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); }; }; then
14496 eval "$as_ac_var=yes"
14497else
14498 echo "$as_me: failed program was:" >&5
14499sed 's/^/| /' conftest.$ac_ext >&5
14500
14501eval "$as_ac_var=no"
14502fi
14503rm -f conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext conftest.$ac_ext
14505fi
14506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14508if test `eval echo '${'$as_ac_var'}'` = yes; then
14509 cat >>confdefs.h <<_ACEOF
14510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14511_ACEOF
14512
14513fi
14514done
14515
14516case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14517 true+yes )
14518cat >>confdefs.h <<\_ACEOF
14519#define USE_MMAP 1
14520_ACEOF
14521 ;;
14522esac
14523
14524rm -f doc/config.status
14525 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14526
14527 ac_config_commands="$ac_config_commands default"
14528
108a6f8e
CD
14529
14530
14531
14532
14533
5464f5a1
NN
14534cat >confcache <<\_ACEOF
14535# This file is a shell script that caches the results of configure
14536# tests run on this system so they can be shared between configure
14537# scripts and configure runs, see configure's option --config-cache.
14538# It is not useful on other systems. If it contains results you don't
14539# want to keep, you may remove or edit it.
14540#
14541# config.status only pays attention to the cache file if you give it
14542# the --recheck option to rerun configure.
14543#
14544# `ac_cv_env_foo' variables (set or unset) will be overridden when
14545# loading this file, other *unset* `ac_cv_foo' will be assigned the
14546# following values.
14547
14548_ACEOF
14549
14550# The following way of writing the cache mishandles newlines in values,
14551# but we know of no workaround that is simple, portable, and efficient.
14552# So, don't put newlines in cache variables' values.
14553# Ultrix sh set writes to stderr and can't be redirected directly,
14554# and sets the high bit in the cache file unless we assign to the vars.
14555{
14556 (set) 2>&1 |
14557 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14558 *ac_space=\ *)
14559 # `set' does not quote correctly, so add quotes (double-quote
14560 # substitution turns \\\\ into \\, and sed turns \\ into \).
14561 sed -n \
14562 "s/'/'\\\\''/g;
14563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14564 ;;
14565 *)
14566 # `set' quotes correctly as required by POSIX, so do not add quotes.
14567 sed -n \
14568 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14569 ;;
14570 esac;
14571} |
14572 sed '
14573 t clear
14574 : clear
14575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14576 t end
14577 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14578 : end' >>confcache
14579if diff $cache_file confcache >/dev/null 2>&1; then :; else
14580 if test -w $cache_file; then
14581 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14582 cat confcache >$cache_file
14583 else
14584 echo "not updating unwritable cache $cache_file"
14585 fi
14586fi
14587rm -f confcache
14588
14589test "x$prefix" = xNONE && prefix=$ac_default_prefix
14590# Let make expand exec_prefix.
14591test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14592
14593# VPATH may cause trouble with some makes, so we remove $(srcdir),
14594# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14595# trailing colons and then remove the whole line if VPATH becomes empty
14596# (actually we leave an empty line to preserve line numbers).
14597if test "x$srcdir" = x.; then
14598 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14599s/:*\$(srcdir):*/:/;
14600s/:*\${srcdir}:*/:/;
14601s/:*@srcdir@:*/:/;
14602s/^\([^=]*=[ ]*\):*/\1/;
14603s/:*$//;
14604s/^[^=]*=[ ]*$//;
14605}'
14606fi
14607
14608DEFS=-DHAVE_CONFIG_H
14609
14610ac_libobjs=
14611ac_ltlibobjs=
14612for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14613 # 1. Remove the extension, and $U if already installed.
14614 ac_i=`echo "$ac_i" |
14615 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14616 # 2. Add them.
14617 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14618 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14619done
14620LIBOBJS=$ac_libobjs
14621
14622LTLIBOBJS=$ac_ltlibobjs
14623
14624
f5385ebf
AM
14625if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14626 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14627Usually this means the macro was only invoked conditionally." >&5
14628echo "$as_me: error: conditional \"AMDEP\" was never defined.
14629Usually this means the macro was only invoked conditionally." >&2;}
14630 { (exit 1); exit 1; }; }
14631fi
14632if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14633 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14634Usually this means the macro was only invoked conditionally." >&5
14635echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14636Usually this means the macro was only invoked conditionally." >&2;}
14637 { (exit 1); exit 1; }; }
14638fi
14639if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14640 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14641Usually this means the macro was only invoked conditionally." >&5
14642echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14643Usually this means the macro was only invoked conditionally." >&2;}
14644 { (exit 1); exit 1; }; }
14645fi
14646if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14647 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14648Usually this means the macro was only invoked conditionally." >&5
14649echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14650Usually this means the macro was only invoked conditionally." >&2;}
14651 { (exit 1); exit 1; }; }
14652fi
5464f5a1
NN
14653
14654: ${CONFIG_STATUS=./config.status}
14655ac_clean_files_save=$ac_clean_files
14656ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14657{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14658echo "$as_me: creating $CONFIG_STATUS" >&6;}
14659cat >$CONFIG_STATUS <<_ACEOF
14660#! $SHELL
14661# Generated by $as_me.
14662# Run this file to recreate the current configuration.
14663# Compiler output produced by configure, useful for debugging
14664# configure, is in config.log if it exists.
14665
14666debug=false
14667ac_cs_recheck=false
14668ac_cs_silent=false
14669SHELL=\${CONFIG_SHELL-$SHELL}
14670_ACEOF
14671
14672cat >>$CONFIG_STATUS <<\_ACEOF
14673## --------------------- ##
14674## M4sh Initialization. ##
14675## --------------------- ##
14676
14677# Be Bourne compatible
14678if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14679 emulate sh
14680 NULLCMD=:
14681 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14682 # is contrary to our usage. Disable this feature.
14683 alias -g '${1+"$@"}'='"$@"'
14684elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14685 set -o posix
14686fi
14687DUALCASE=1; export DUALCASE # for MKS sh
14688
14689# Support unset when possible.
14690if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14691 as_unset=unset
14692else
14693 as_unset=false
14694fi
14695
14696
14697# Work around bugs in pre-3.0 UWIN ksh.
14698$as_unset ENV MAIL MAILPATH
14699PS1='$ '
14700PS2='> '
14701PS4='+ '
14702
14703# NLS nuisances.
14704for as_var in \
14705 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14706 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14707 LC_TELEPHONE LC_TIME
14708do
14709 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14710 eval $as_var=C; export $as_var
14711 else
14712 $as_unset $as_var
14713 fi
14714done
14715
14716# Required to use basename.
14717if expr a : '\(a\)' >/dev/null 2>&1; then
14718 as_expr=expr
14719else
14720 as_expr=false
14721fi
14722
14723if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14724 as_basename=basename
14725else
14726 as_basename=false
14727fi
252b5132 14728
6be7c12c 14729
5464f5a1
NN
14730# Name of the executable.
14731as_me=`$as_basename "$0" ||
14732$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14733 X"$0" : 'X\(//\)$' \| \
14734 X"$0" : 'X\(/\)$' \| \
14735 . : '\(.\)' 2>/dev/null ||
14736echo X/"$0" |
14737 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14738 /^X\/\(\/\/\)$/{ s//\1/; q; }
14739 /^X\/\(\/\).*/{ s//\1/; q; }
14740 s/.*/./; q'`
14741
14742
14743# PATH needs CR, and LINENO needs CR and PATH.
14744# Avoid depending upon Character Ranges.
14745as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14746as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14747as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14748as_cr_digits='0123456789'
14749as_cr_alnum=$as_cr_Letters$as_cr_digits
14750
14751# The user is always right.
14752if test "${PATH_SEPARATOR+set}" != set; then
14753 echo "#! /bin/sh" >conf$$.sh
14754 echo "exit 0" >>conf$$.sh
14755 chmod +x conf$$.sh
14756 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14757 PATH_SEPARATOR=';'
14758 else
14759 PATH_SEPARATOR=:
14760 fi
14761 rm -f conf$$.sh
14762fi
14763
14764
14765 as_lineno_1=$LINENO
14766 as_lineno_2=$LINENO
14767 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14768 test "x$as_lineno_1" != "x$as_lineno_2" &&
14769 test "x$as_lineno_3" = "x$as_lineno_2" || {
14770 # Find who we are. Look in the path if we contain no path at all
14771 # relative or not.
14772 case $0 in
14773 *[\\/]* ) as_myself=$0 ;;
14774 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14775for as_dir in $PATH
14776do
14777 IFS=$as_save_IFS
14778 test -z "$as_dir" && as_dir=.
14779 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14780done
14781
14782 ;;
14783 esac
14784 # We did not find ourselves, most probably we were run as `sh COMMAND'
14785 # in which case we are not to be found in the path.
14786 if test "x$as_myself" = x; then
14787 as_myself=$0
14788 fi
14789 if test ! -f "$as_myself"; then
14790 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14791echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14792 { (exit 1); exit 1; }; }
14793 fi
14794 case $CONFIG_SHELL in
14795 '')
14796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14798do
14799 IFS=$as_save_IFS
14800 test -z "$as_dir" && as_dir=.
14801 for as_base in sh bash ksh sh5; do
14802 case $as_dir in
14803 /*)
14804 if ("$as_dir/$as_base" -c '
14805 as_lineno_1=$LINENO
14806 as_lineno_2=$LINENO
14807 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14808 test "x$as_lineno_1" != "x$as_lineno_2" &&
14809 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14810 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14811 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14812 CONFIG_SHELL=$as_dir/$as_base
14813 export CONFIG_SHELL
14814 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14815 fi;;
14816 esac
14817 done
14818done
14819;;
14820 esac
14821
14822 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14823 # uniformly replaced by the line number. The first 'sed' inserts a
14824 # line-number line before each line; the second 'sed' does the real
14825 # work. The second script uses 'N' to pair each line-number line
14826 # with the numbered line, and appends trailing '-' during
14827 # substitution so that $LINENO is not a special case at line end.
14828 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14829 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14830 sed '=' <$as_myself |
14831 sed '
14832 N
14833 s,$,-,
14834 : loop
14835 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14836 t loop
14837 s,-$,,
14838 s,^['$as_cr_digits']*\n,,
14839 ' >$as_me.lineno &&
14840 chmod +x $as_me.lineno ||
14841 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14842echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14843 { (exit 1); exit 1; }; }
14844
14845 # Don't try to exec as it changes $[0], causing all sort of problems
14846 # (the dirname of $[0] is not the place where we might find the
14847 # original and so on. Autoconf is especially sensible to this).
14848 . ./$as_me.lineno
14849 # Exit status is that of the last command.
14850 exit
252b5132 14851}
6be7c12c 14852
5464f5a1
NN
14853
14854case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14855 *c*,-n*) ECHO_N= ECHO_C='
14856' ECHO_T=' ' ;;
14857 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14858 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14859esac
14860
14861if expr a : '\(a\)' >/dev/null 2>&1; then
14862 as_expr=expr
252b5132 14863else
5464f5a1 14864 as_expr=false
252b5132 14865fi
5464f5a1
NN
14866
14867rm -f conf$$ conf$$.exe conf$$.file
14868echo >conf$$.file
14869if ln -s conf$$.file conf$$ 2>/dev/null; then
14870 # We could just check for DJGPP; but this test a) works b) is more generic
14871 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14872 if test -f conf$$.exe; then
14873 # Don't use ln at all; we don't have any links
14874 as_ln_s='cp -p'
14875 else
14876 as_ln_s='ln -s'
14877 fi
14878elif ln conf$$.file conf$$ 2>/dev/null; then
14879 as_ln_s=ln
14880else
14881 as_ln_s='cp -p'
252b5132 14882fi
5464f5a1 14883rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 14884
5464f5a1
NN
14885if mkdir -p . 2>/dev/null; then
14886 as_mkdir_p=:
14887else
14888 test -d ./-p && rmdir ./-p
14889 as_mkdir_p=false
252b5132 14890fi
b3baf5d0 14891
5464f5a1 14892as_executable_p="test -f"
252b5132 14893
5464f5a1
NN
14894# Sed expression to map a string onto a valid CPP name.
14895as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14896
5464f5a1
NN
14897# Sed expression to map a string onto a valid variable name.
14898as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 14899
252b5132 14900
5464f5a1
NN
14901# IFS
14902# We need space, tab and new line, in precisely that order.
14903as_nl='
14904'
14905IFS=" $as_nl"
252b5132 14906
5464f5a1
NN
14907# CDPATH.
14908$as_unset CDPATH
14909
14910exec 6>&1
14911
14912# Open the log real soon, to keep \$[0] and so on meaningful, and to
14913# report actual input values of CONFIG_FILES etc. instead of their
14914# values after options handling. Logging --version etc. is OK.
14915exec 5>>config.log
14916{
14917 echo
14918 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14919## Running $as_me. ##
14920_ASBOX
14921} >&5
14922cat >&5 <<_CSEOF
14923
14924This file was extended by $as_me, which was
14925generated by GNU Autoconf 2.59. Invocation command line was
14926
14927 CONFIG_FILES = $CONFIG_FILES
14928 CONFIG_HEADERS = $CONFIG_HEADERS
14929 CONFIG_LINKS = $CONFIG_LINKS
14930 CONFIG_COMMANDS = $CONFIG_COMMANDS
14931 $ $0 $@
14932
14933_CSEOF
14934echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14935echo >&5
14936_ACEOF
14937
14938# Files that config.status was made for.
14939if test -n "$ac_config_files"; then
14940 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 14941fi
5464f5a1
NN
14942
14943if test -n "$ac_config_headers"; then
14944 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 14945fi
252b5132 14946
5464f5a1
NN
14947if test -n "$ac_config_links"; then
14948 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 14949fi
252b5132 14950
5464f5a1
NN
14951if test -n "$ac_config_commands"; then
14952 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14953fi
252b5132 14954
5464f5a1
NN
14955cat >>$CONFIG_STATUS <<\_ACEOF
14956
14957ac_cs_usage="\
14958\`$as_me' instantiates files from templates according to the
14959current configuration.
14960
14961Usage: $0 [OPTIONS] [FILE]...
14962
14963 -h, --help print this help, then exit
14964 -V, --version print version number, then exit
14965 -q, --quiet do not print progress messages
14966 -d, --debug don't remove temporary files
14967 --recheck update $as_me by reconfiguring in the same conditions
14968 --file=FILE[:TEMPLATE]
14969 instantiate the configuration file FILE
14970 --header=FILE[:TEMPLATE]
14971 instantiate the configuration header FILE
14972
14973Configuration files:
14974$config_files
14975
14976Configuration headers:
14977$config_headers
14978
14979Configuration commands:
14980$config_commands
14981
14982Report bugs to <bug-autoconf@gnu.org>."
14983_ACEOF
14984
14985cat >>$CONFIG_STATUS <<_ACEOF
14986ac_cs_version="\\
14987config.status
14988configured by $0, generated by GNU Autoconf 2.59,
14989 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14990
14991Copyright (C) 2003 Free Software Foundation, Inc.
14992This config.status script is free software; the Free Software Foundation
14993gives unlimited permission to copy, distribute and modify it."
14994srcdir=$srcdir
14995INSTALL="$INSTALL"
14996_ACEOF
14997
14998cat >>$CONFIG_STATUS <<\_ACEOF
14999# If no file are specified by the user, then we need to provide default
15000# value. By we need to know if files were specified by the user.
15001ac_need_defaults=:
15002while test $# != 0
15003do
15004 case $1 in
15005 --*=*)
15006 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15007 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15008 ac_shift=:
6be7c12c 15009 ;;
5464f5a1
NN
15010 -*)
15011 ac_option=$1
15012 ac_optarg=$2
15013 ac_shift=shift
6be7c12c 15014 ;;
5464f5a1
NN
15015 *) # This is not an option, so the user has probably given explicit
15016 # arguments.
15017 ac_option=$1
15018 ac_need_defaults=false;;
15019 esac
252b5132 15020
5464f5a1
NN
15021 case $ac_option in
15022 # Handling of the options.
15023_ACEOF
15024cat >>$CONFIG_STATUS <<\_ACEOF
15025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15026 ac_cs_recheck=: ;;
15027 --version | --vers* | -V )
15028 echo "$ac_cs_version"; exit 0 ;;
15029 --he | --h)
15030 # Conflict between --help and --header
15031 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15032Try \`$0 --help' for more information." >&5
15033echo "$as_me: error: ambiguous option: $1
15034Try \`$0 --help' for more information." >&2;}
15035 { (exit 1); exit 1; }; };;
15036 --help | --hel | -h )
15037 echo "$ac_cs_usage"; exit 0 ;;
15038 --debug | --d* | -d )
15039 debug=: ;;
15040 --file | --fil | --fi | --f )
15041 $ac_shift
15042 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15043 ac_need_defaults=false;;
15044 --header | --heade | --head | --hea )
15045 $ac_shift
15046 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15047 ac_need_defaults=false;;
15048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15049 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15050 ac_cs_silent=: ;;
6be7c12c 15051
5464f5a1
NN
15052 # This is an error.
15053 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15054Try \`$0 --help' for more information." >&5
15055echo "$as_me: error: unrecognized option: $1
15056Try \`$0 --help' for more information." >&2;}
15057 { (exit 1); exit 1; }; } ;;
252b5132 15058
5464f5a1 15059 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 15060
5464f5a1
NN
15061 esac
15062 shift
15063done
6be7c12c 15064
5464f5a1 15065ac_configure_extra_args=
252b5132 15066
5464f5a1
NN
15067if $ac_cs_silent; then
15068 exec 6>/dev/null
15069 ac_configure_extra_args="$ac_configure_extra_args --silent"
15070fi
6be7c12c 15071
5464f5a1
NN
15072_ACEOF
15073cat >>$CONFIG_STATUS <<_ACEOF
15074if \$ac_cs_recheck; then
15075 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15076 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15077fi
15078
15079_ACEOF
15080
15081cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 15082#
5464f5a1 15083# INIT-COMMANDS section.
6be7c12c 15084#
b3baf5d0 15085
f5385ebf 15086AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5464f5a1
NN
15087
15088
15089_ACEOF
15090
15091
15092
15093cat >>$CONFIG_STATUS <<\_ACEOF
15094for ac_config_target in $ac_config_targets
252b5132 15095do
5464f5a1
NN
15096 case "$ac_config_target" in
15097 # Handling of arguments.
15098 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15099 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15100 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15101 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 15102 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5464f5a1
NN
15103 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15104 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15105 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15106echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15107 { (exit 1); exit 1; }; };;
252b5132
RH
15108 esac
15109done
15110
5464f5a1
NN
15111# If the user did not use the arguments to specify the items to instantiate,
15112# then the envvar interface is used. Set only those that are not.
15113# We use the long form for the default assignment because of an extremely
15114# bizarre bug on SunOS 4.1.3.
15115if $ac_need_defaults; then
15116 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15117 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15118 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15119fi
15120
15121# Have a temporary directory for convenience. Make it in the build tree
15122# simply because there is no reason to put it here, and in addition,
15123# creating and moving files from /tmp can sometimes cause problems.
15124# Create a temporary directory, and hook for its removal unless debugging.
15125$debug ||
15126{
15127 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15128 trap '{ (exit 1); exit 1; }' 1 2 13 15
15129}
b3baf5d0 15130
5464f5a1 15131# Create a (secure) tmp directory for tmp files.
b3baf5d0 15132
5464f5a1
NN
15133{
15134 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15135 test -n "$tmp" && test -d "$tmp"
15136} ||
15137{
15138 tmp=./confstat$$-$RANDOM
15139 (umask 077 && mkdir $tmp)
15140} ||
15141{
15142 echo "$me: cannot create a temporary directory in ." >&2
15143 { (exit 1); exit 1; }
15144}
15145
15146_ACEOF
15147
15148cat >>$CONFIG_STATUS <<_ACEOF
15149
15150#
15151# CONFIG_FILES section.
15152#
b3baf5d0 15153
5464f5a1
NN
15154# No need to generate the scripts if there are no CONFIG_FILES.
15155# This happens for instance when ./config.status config.h
15156if test -n "\$CONFIG_FILES"; then
15157 # Protect against being on the right side of a sed subst in config.status.
15158 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15159 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15160s,@SHELL@,$SHELL,;t t
15161s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15162s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15163s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15164s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15165s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15166s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15167s,@exec_prefix@,$exec_prefix,;t t
15168s,@prefix@,$prefix,;t t
15169s,@program_transform_name@,$program_transform_name,;t t
15170s,@bindir@,$bindir,;t t
15171s,@sbindir@,$sbindir,;t t
15172s,@libexecdir@,$libexecdir,;t t
15173s,@datadir@,$datadir,;t t
15174s,@sysconfdir@,$sysconfdir,;t t
15175s,@sharedstatedir@,$sharedstatedir,;t t
15176s,@localstatedir@,$localstatedir,;t t
15177s,@libdir@,$libdir,;t t
15178s,@includedir@,$includedir,;t t
15179s,@oldincludedir@,$oldincludedir,;t t
15180s,@infodir@,$infodir,;t t
15181s,@mandir@,$mandir,;t t
15182s,@build_alias@,$build_alias,;t t
15183s,@host_alias@,$host_alias,;t t
15184s,@target_alias@,$target_alias,;t t
15185s,@DEFS@,$DEFS,;t t
15186s,@ECHO_C@,$ECHO_C,;t t
15187s,@ECHO_N@,$ECHO_N,;t t
15188s,@ECHO_T@,$ECHO_T,;t t
15189s,@LIBS@,$LIBS,;t t
15190s,@build@,$build,;t t
15191s,@build_cpu@,$build_cpu,;t t
15192s,@build_vendor@,$build_vendor,;t t
15193s,@build_os@,$build_os,;t t
15194s,@host@,$host,;t t
15195s,@host_cpu@,$host_cpu,;t t
15196s,@host_vendor@,$host_vendor,;t t
15197s,@host_os@,$host_os,;t t
15198s,@target@,$target,;t t
15199s,@target_cpu@,$target_cpu,;t t
15200s,@target_vendor@,$target_vendor,;t t
15201s,@target_os@,$target_os,;t t
15202s,@CC@,$CC,;t t
15203s,@CFLAGS@,$CFLAGS,;t t
15204s,@LDFLAGS@,$LDFLAGS,;t t
15205s,@CPPFLAGS@,$CPPFLAGS,;t t
15206s,@ac_ct_CC@,$ac_ct_CC,;t t
15207s,@EXEEXT@,$EXEEXT,;t t
15208s,@OBJEXT@,$OBJEXT,;t t
15209s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15210s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15211s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 15212s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
15213s,@PACKAGE@,$PACKAGE,;t t
15214s,@VERSION@,$VERSION,;t t
15215s,@ACLOCAL@,$ACLOCAL,;t t
15216s,@AUTOCONF@,$AUTOCONF,;t t
15217s,@AUTOMAKE@,$AUTOMAKE,;t t
15218s,@AUTOHEADER@,$AUTOHEADER,;t t
15219s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
15220s,@install_sh@,$install_sh,;t t
15221s,@STRIP@,$STRIP,;t t
15222s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15223s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15224s,@mkdir_p@,$mkdir_p,;t t
15225s,@AWK@,$AWK,;t t
5464f5a1 15226s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
15227s,@am__leading_dot@,$am__leading_dot,;t t
15228s,@AMTAR@,$AMTAR,;t t
15229s,@am__tar@,$am__tar,;t t
15230s,@am__untar@,$am__untar,;t t
15231s,@DEPDIR@,$DEPDIR,;t t
15232s,@am__include@,$am__include,;t t
15233s,@am__quote@,$am__quote,;t t
15234s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15235s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15236s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15237s,@CCDEPMODE@,$CCDEPMODE,;t t
15238s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15239s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
15240s,@AR@,$AR,;t t
15241s,@ac_ct_AR@,$ac_ct_AR,;t t
15242s,@RANLIB@,$RANLIB,;t t
15243s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15244s,@LN_S@,$LN_S,;t t
5464f5a1
NN
15245s,@LIBTOOL@,$LIBTOOL,;t t
15246s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 15247s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
15248s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15249s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15250s,@MAINT@,$MAINT,;t t
15251s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15252s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
15253s,@host_noncanonical@,$host_noncanonical,;t t
15254s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
15255s,@bfdlibdir@,$bfdlibdir,;t t
15256s,@bfdincludedir@,$bfdincludedir,;t t
15257s,@CPP@,$CPP,;t t
15258s,@EGREP@,$EGREP,;t t
15259s,@ALLOCA@,$ALLOCA,;t t
15260s,@USE_NLS@,$USE_NLS,;t t
15261s,@MSGFMT@,$MSGFMT,;t t
15262s,@GMSGFMT@,$GMSGFMT,;t t
15263s,@XGETTEXT@,$XGETTEXT,;t t
15264s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15265s,@CATALOGS@,$CATALOGS,;t t
15266s,@CATOBJEXT@,$CATOBJEXT,;t t
15267s,@DATADIRNAME@,$DATADIRNAME,;t t
15268s,@GMOFILES@,$GMOFILES,;t t
15269s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15270s,@INTLDEPS@,$INTLDEPS,;t t
15271s,@INTLLIBS@,$INTLLIBS,;t t
15272s,@INTLOBJS@,$INTLOBJS,;t t
15273s,@POFILES@,$POFILES,;t t
15274s,@POSUB@,$POSUB,;t t
15275s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15276s,@GT_NO@,$GT_NO,;t t
15277s,@GT_YES@,$GT_YES,;t t
15278s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15279s,@l@,$l,;t t
15280s,@HDEFINES@,$HDEFINES,;t t
15281s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15282s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15283s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15284s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15285s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15286s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15287s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15288s,@COREFILE@,$COREFILE,;t t
15289s,@COREFLAG@,$COREFLAG,;t t
15290s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15291s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15292s,@TDEFINES@,$TDEFINES,;t t
15293s,@wordsize@,$wordsize,;t t
15294s,@bfd_libs@,$bfd_libs,;t t
15295s,@all_backends@,$all_backends,;t t
15296s,@bfd_backends@,$bfd_backends,;t t
15297s,@bfd_machines@,$bfd_machines,;t t
15298s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15299s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15300s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15301s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
15302s,@datarootdir@,$datarootdir,;t t
15303s,@docdir@,$docdir,;t t
15304s,@htmldir@,$htmldir,;t t
5464f5a1
NN
15305s,@LIBOBJS@,$LIBOBJS,;t t
15306s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 15307CEOF
252b5132 15308
5464f5a1
NN
15309_ACEOF
15310
15311 cat >>$CONFIG_STATUS <<\_ACEOF
15312 # Split the substitutions into bite-sized pieces for seds with
15313 # small command number limits, like on Digital OSF/1 and HP-UX.
15314 ac_max_sed_lines=48
15315 ac_sed_frag=1 # Number of current file.
15316 ac_beg=1 # First line for current file.
15317 ac_end=$ac_max_sed_lines # Line after last line for current file.
15318 ac_more_lines=:
15319 ac_sed_cmds=
15320 while $ac_more_lines; do
15321 if test $ac_beg -gt 1; then
15322 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 15323 else
5464f5a1
NN
15324 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15325 fi
15326 if test ! -s $tmp/subs.frag; then
15327 ac_more_lines=false
15328 else
15329 # The purpose of the label and of the branching condition is to
15330 # speed up the sed processing (if there are no `@' at all, there
15331 # is no need to browse any of the substitutions).
15332 # These are the two extra sed commands mentioned above.
15333 (echo ':t
15334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15335 if test -z "$ac_sed_cmds"; then
15336 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15337 else
15338 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15339 fi
15340 ac_sed_frag=`expr $ac_sed_frag + 1`
15341 ac_beg=$ac_end
15342 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 15343 fi
5464f5a1
NN
15344 done
15345 if test -z "$ac_sed_cmds"; then
15346 ac_sed_cmds=cat
252b5132 15347 fi
5464f5a1 15348fi # test -n "$CONFIG_FILES"
6be7c12c 15349
5464f5a1
NN
15350_ACEOF
15351cat >>$CONFIG_STATUS <<\_ACEOF
15352for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 15353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
15354 case $ac_file in
15355 - | *:- | *:-:* ) # input from stdin
15356 cat >$tmp/stdin
15357 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15358 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15359 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15360 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15361 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15362 esac
15363
5464f5a1
NN
15364 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15365 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15366$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15367 X"$ac_file" : 'X\(//\)[^/]' \| \
15368 X"$ac_file" : 'X\(//\)$' \| \
15369 X"$ac_file" : 'X\(/\)' \| \
15370 . : '\(.\)' 2>/dev/null ||
15371echo X"$ac_file" |
15372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15374 /^X\(\/\/\)$/{ s//\1/; q; }
15375 /^X\(\/\).*/{ s//\1/; q; }
15376 s/.*/./; q'`
15377 { if $as_mkdir_p; then
15378 mkdir -p "$ac_dir"
252b5132 15379 else
5464f5a1
NN
15380 as_dir="$ac_dir"
15381 as_dirs=
15382 while test ! -d "$as_dir"; do
15383 as_dirs="$as_dir $as_dirs"
15384 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15385$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15386 X"$as_dir" : 'X\(//\)[^/]' \| \
15387 X"$as_dir" : 'X\(//\)$' \| \
15388 X"$as_dir" : 'X\(/\)' \| \
15389 . : '\(.\)' 2>/dev/null ||
15390echo X"$as_dir" |
15391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15392 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15393 /^X\(\/\/\)$/{ s//\1/; q; }
15394 /^X\(\/\).*/{ s//\1/; q; }
15395 s/.*/./; q'`
15396 done
15397 test ! -n "$as_dirs" || mkdir $as_dirs
15398 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15399echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15400 { (exit 1); exit 1; }; }; }
15401
15402 ac_builddir=.
15403
15404if test "$ac_dir" != .; then
15405 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15406 # A "../" for each directory in $ac_dir_suffix.
15407 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15408else
15409 ac_dir_suffix= ac_top_builddir=
15410fi
252b5132 15411
5464f5a1
NN
15412case $srcdir in
15413 .) # No --srcdir option. We are building in place.
15414 ac_srcdir=.
15415 if test -z "$ac_top_builddir"; then
15416 ac_top_srcdir=.
15417 else
15418 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15419 fi ;;
15420 [\\/]* | ?:[\\/]* ) # Absolute path.
15421 ac_srcdir=$srcdir$ac_dir_suffix;
15422 ac_top_srcdir=$srcdir ;;
252b5132 15423 *) # Relative path.
5464f5a1
NN
15424 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15425 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15426esac
252b5132 15427
5464f5a1
NN
15428# Do not use `cd foo && pwd` to compute absolute paths, because
15429# the directories may not exist.
15430case `pwd` in
15431.) ac_abs_builddir="$ac_dir";;
15432*)
15433 case "$ac_dir" in
15434 .) ac_abs_builddir=`pwd`;;
15435 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15436 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15437 esac;;
15438esac
15439case $ac_abs_builddir in
15440.) ac_abs_top_builddir=${ac_top_builddir}.;;
15441*)
15442 case ${ac_top_builddir}. in
15443 .) ac_abs_top_builddir=$ac_abs_builddir;;
15444 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15445 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15446 esac;;
15447esac
15448case $ac_abs_builddir in
15449.) ac_abs_srcdir=$ac_srcdir;;
15450*)
15451 case $ac_srcdir in
15452 .) ac_abs_srcdir=$ac_abs_builddir;;
15453 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15454 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15455 esac;;
15456esac
15457case $ac_abs_builddir in
15458.) ac_abs_top_srcdir=$ac_top_srcdir;;
15459*)
15460 case $ac_top_srcdir in
15461 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15462 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15463 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15464 esac;;
15465esac
252b5132 15466
5464f5a1
NN
15467
15468 case $INSTALL in
15469 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15470 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 15471 esac
252b5132 15472
49c96104
SE
15473 if test x"$ac_file" != x-; then
15474 { echo "$as_me:$LINENO: creating $ac_file" >&5
15475echo "$as_me: creating $ac_file" >&6;}
15476 rm -f "$ac_file"
15477 fi
5464f5a1
NN
15478 # Let's still pretend it is `configure' which instantiates (i.e., don't
15479 # use $as_me), people would be surprised to read:
15480 # /* config.h. Generated by config.status. */
15481 if test x"$ac_file" = x-; then
15482 configure_input=
15483 else
15484 configure_input="$ac_file. "
15485 fi
15486 configure_input=$configure_input"Generated from `echo $ac_file_in |
15487 sed 's,.*/,,'` by configure."
15488
15489 # First look for the input files in the build tree, otherwise in the
15490 # src tree.
15491 ac_file_inputs=`IFS=:
15492 for f in $ac_file_in; do
15493 case $f in
15494 -) echo $tmp/stdin ;;
15495 [\\/$]*)
15496 # Absolute (can't be DOS-style, as IFS=:)
15497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15498echo "$as_me: error: cannot find input file: $f" >&2;}
15499 { (exit 1); exit 1; }; }
15500 echo "$f";;
15501 *) # Relative
15502 if test -f "$f"; then
15503 # Build tree
15504 echo "$f"
15505 elif test -f "$srcdir/$f"; then
15506 # Source tree
15507 echo "$srcdir/$f"
15508 else
15509 # /dev/null tree
15510 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15511echo "$as_me: error: cannot find input file: $f" >&2;}
15512 { (exit 1); exit 1; }; }
15513 fi;;
15514 esac
15515 done` || { (exit 1); exit 1; }
5464f5a1
NN
15516_ACEOF
15517cat >>$CONFIG_STATUS <<_ACEOF
15518 sed "$ac_vpsub
15519$extrasub
15520_ACEOF
15521cat >>$CONFIG_STATUS <<\_ACEOF
15522:t
15523/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15524s,@configure_input@,$configure_input,;t t
15525s,@srcdir@,$ac_srcdir,;t t
15526s,@abs_srcdir@,$ac_abs_srcdir,;t t
15527s,@top_srcdir@,$ac_top_srcdir,;t t
15528s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15529s,@builddir@,$ac_builddir,;t t
15530s,@abs_builddir@,$ac_abs_builddir,;t t
15531s,@top_builddir@,$ac_top_builddir,;t t
15532s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15533s,@INSTALL@,$ac_INSTALL,;t t
15534" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15535 rm -f $tmp/stdin
15536 if test x"$ac_file" != x-; then
15537 mv $tmp/out $ac_file
15538 else
15539 cat $tmp/out
15540 rm -f $tmp/out
15541 fi
15542
15543done
15544_ACEOF
15545cat >>$CONFIG_STATUS <<\_ACEOF
15546
15547#
15548# CONFIG_HEADER section.
15549#
252b5132
RH
15550
15551# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15552# NAME is the cpp macro being defined and VALUE is the value it is being given.
15553#
15554# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
15555ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15556ac_dB='[ ].*$,\1#\2'
15557ac_dC=' '
15558ac_dD=',;t'
15559# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15560ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15561ac_uB='$,\1#\2define\3'
252b5132 15562ac_uC=' '
5464f5a1
NN
15563ac_uD=',;t'
15564
15565for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15566 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
15567 case $ac_file in
15568 - | *:- | *:-:* ) # input from stdin
15569 cat >$tmp/stdin
15570 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15572 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15573 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15574 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15575 esac
15576
5464f5a1
NN
15577 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15578echo "$as_me: creating $ac_file" >&6;}
15579
15580 # First look for the input files in the build tree, otherwise in the
15581 # src tree.
15582 ac_file_inputs=`IFS=:
15583 for f in $ac_file_in; do
15584 case $f in
15585 -) echo $tmp/stdin ;;
15586 [\\/$]*)
15587 # Absolute (can't be DOS-style, as IFS=:)
15588 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15589echo "$as_me: error: cannot find input file: $f" >&2;}
15590 { (exit 1); exit 1; }; }
15591 # Do quote $f, to prevent DOS paths from being IFS'd.
15592 echo "$f";;
15593 *) # Relative
15594 if test -f "$f"; then
15595 # Build tree
15596 echo "$f"
15597 elif test -f "$srcdir/$f"; then
15598 # Source tree
15599 echo "$srcdir/$f"
15600 else
15601 # /dev/null tree
15602 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15603echo "$as_me: error: cannot find input file: $f" >&2;}
15604 { (exit 1); exit 1; }; }
15605 fi;;
15606 esac
15607 done` || { (exit 1); exit 1; }
15608 # Remove the trailing spaces.
15609 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15610
15611_ACEOF
15612
15613# Transform confdefs.h into two sed scripts, `conftest.defines' and
15614# `conftest.undefs', that substitutes the proper values into
15615# config.h.in to produce config.h. The first handles `#define'
15616# templates, and the second `#undef' templates.
15617# And first: Protect against being on the right side of a sed subst in
15618# config.status. Protect against being in an unquoted here document
15619# in config.status.
15620rm -f conftest.defines conftest.undefs
15621# Using a here document instead of a string reduces the quoting nightmare.
15622# Putting comments in sed scripts is not portable.
15623#
15624# `end' is used to avoid that the second main sed command (meant for
15625# 0-ary CPP macros) applies to n-ary macro definitions.
15626# See the Autoconf documentation for `clear'.
15627cat >confdef2sed.sed <<\_ACEOF
15628s/[\\&,]/\\&/g
15629s,[\\$`],\\&,g
15630t clear
15631: clear
15632s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15633t end
15634s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15635: end
15636_ACEOF
15637# If some macros were called several times there might be several times
15638# the same #defines, which is useless. Nevertheless, we may not want to
15639# sort them, since we want the *last* AC-DEFINE to be honored.
15640uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15641sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15642rm -f confdef2sed.sed
252b5132
RH
15643
15644# This sed command replaces #undef with comments. This is necessary, for
15645# example, in the case of _POSIX_SOURCE, which is predefined and required
15646# on some systems where configure will not decide to define it.
5464f5a1
NN
15647cat >>conftest.undefs <<\_ACEOF
15648s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15649_ACEOF
15650
15651# Break up conftest.defines because some shells have a limit on the size
15652# of here documents, and old seds have small limits too (100 cmds).
15653echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15654echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15655echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15656echo ' :' >>$CONFIG_STATUS
15657rm -f conftest.tail
15658while grep . conftest.defines >/dev/null
15659do
15660 # Write a limited-size here document to $tmp/defines.sed.
15661 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15662 # Speed up: don't consider the non `#define' lines.
15663 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15664 # Work around the forget-to-reset-the-flag bug.
15665 echo 't clr' >>$CONFIG_STATUS
15666 echo ': clr' >>$CONFIG_STATUS
15667 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15668 echo 'CEOF
15669 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15670 rm -f $tmp/in
15671 mv $tmp/out $tmp/in
15672' >>$CONFIG_STATUS
15673 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15674 rm -f conftest.defines
15675 mv conftest.tail conftest.defines
15676done
15677rm -f conftest.defines
15678echo ' fi # grep' >>$CONFIG_STATUS
15679echo >>$CONFIG_STATUS
252b5132 15680
5464f5a1
NN
15681# Break up conftest.undefs because some shells have a limit on the size
15682# of here documents, and old seds have small limits too (100 cmds).
15683echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 15684rm -f conftest.tail
5464f5a1 15685while grep . conftest.undefs >/dev/null
252b5132 15686do
5464f5a1
NN
15687 # Write a limited-size here document to $tmp/undefs.sed.
15688 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15689 # Speed up: don't consider the non `#undef'
15690 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15691 # Work around the forget-to-reset-the-flag bug.
15692 echo 't clr' >>$CONFIG_STATUS
15693 echo ': clr' >>$CONFIG_STATUS
15694 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 15695 echo 'CEOF
5464f5a1
NN
15696 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15697 rm -f $tmp/in
15698 mv $tmp/out $tmp/in
15699' >>$CONFIG_STATUS
15700 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15701 rm -f conftest.undefs
15702 mv conftest.tail conftest.undefs
252b5132 15703done
5464f5a1
NN
15704rm -f conftest.undefs
15705
15706cat >>$CONFIG_STATUS <<\_ACEOF
15707 # Let's still pretend it is `configure' which instantiates (i.e., don't
15708 # use $as_me), people would be surprised to read:
15709 # /* config.h. Generated by config.status. */
15710 if test x"$ac_file" = x-; then
15711 echo "/* Generated by configure. */" >$tmp/config.h
15712 else
15713 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15714 fi
15715 cat $tmp/in >>$tmp/config.h
15716 rm -f $tmp/in
15717 if test x"$ac_file" != x-; then
15718 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15719 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15720echo "$as_me: $ac_file is unchanged" >&6;}
15721 else
15722 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15723$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15724 X"$ac_file" : 'X\(//\)[^/]' \| \
15725 X"$ac_file" : 'X\(//\)$' \| \
15726 X"$ac_file" : 'X\(/\)' \| \
15727 . : '\(.\)' 2>/dev/null ||
15728echo X"$ac_file" |
15729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15731 /^X\(\/\/\)$/{ s//\1/; q; }
15732 /^X\(\/\).*/{ s//\1/; q; }
15733 s/.*/./; q'`
15734 { if $as_mkdir_p; then
15735 mkdir -p "$ac_dir"
252b5132 15736 else
5464f5a1
NN
15737 as_dir="$ac_dir"
15738 as_dirs=
15739 while test ! -d "$as_dir"; do
15740 as_dirs="$as_dir $as_dirs"
15741 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15742$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15743 X"$as_dir" : 'X\(//\)[^/]' \| \
15744 X"$as_dir" : 'X\(//\)$' \| \
15745 X"$as_dir" : 'X\(/\)' \| \
15746 . : '\(.\)' 2>/dev/null ||
15747echo X"$as_dir" |
15748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15750 /^X\(\/\/\)$/{ s//\1/; q; }
15751 /^X\(\/\).*/{ s//\1/; q; }
15752 s/.*/./; q'`
15753 done
15754 test ! -n "$as_dirs" || mkdir $as_dirs
15755 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15756echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15757 { (exit 1); exit 1; }; }; }
15758
15759 rm -f $ac_file
15760 mv $tmp/config.h $ac_file
252b5132 15761 fi
5464f5a1
NN
15762 else
15763 cat $tmp/config.h
15764 rm -f $tmp/config.h
252b5132 15765 fi
f5385ebf
AM
15766# Compute $ac_file's index in $config_headers.
15767_am_stamp_count=1
15768for _am_header in $config_headers :; do
15769 case $_am_header in
15770 $ac_file | $ac_file:* )
15771 break ;;
15772 * )
15773 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15774 esac
15775done
15776echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15777$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15778 X$ac_file : 'X\(//\)[^/]' \| \
15779 X$ac_file : 'X\(//\)$' \| \
15780 X$ac_file : 'X\(/\)' \| \
15781 . : '\(.\)' 2>/dev/null ||
15782echo X$ac_file |
15783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15785 /^X\(\/\/\)$/{ s//\1/; q; }
15786 /^X\(\/\).*/{ s//\1/; q; }
15787 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
15788done
15789_ACEOF
15790cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 15791
5464f5a1
NN
15792#
15793# CONFIG_COMMANDS section.
15794#
15795for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15796 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15797 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15798 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15799$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15800 X"$ac_dest" : 'X\(//\)[^/]' \| \
15801 X"$ac_dest" : 'X\(//\)$' \| \
15802 X"$ac_dest" : 'X\(/\)' \| \
15803 . : '\(.\)' 2>/dev/null ||
15804echo X"$ac_dest" |
15805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15806 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15807 /^X\(\/\/\)$/{ s//\1/; q; }
15808 /^X\(\/\).*/{ s//\1/; q; }
15809 s/.*/./; q'`
15810 { if $as_mkdir_p; then
15811 mkdir -p "$ac_dir"
15812 else
15813 as_dir="$ac_dir"
15814 as_dirs=
15815 while test ! -d "$as_dir"; do
15816 as_dirs="$as_dir $as_dirs"
15817 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15818$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15819 X"$as_dir" : 'X\(//\)[^/]' \| \
15820 X"$as_dir" : 'X\(//\)$' \| \
15821 X"$as_dir" : 'X\(/\)' \| \
15822 . : '\(.\)' 2>/dev/null ||
15823echo X"$as_dir" |
15824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15826 /^X\(\/\/\)$/{ s//\1/; q; }
15827 /^X\(\/\).*/{ s//\1/; q; }
15828 s/.*/./; q'`
15829 done
15830 test ! -n "$as_dirs" || mkdir $as_dirs
15831 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15832echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15833 { (exit 1); exit 1; }; }; }
b3baf5d0 15834
5464f5a1 15835 ac_builddir=.
b3baf5d0 15836
5464f5a1
NN
15837if test "$ac_dir" != .; then
15838 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15839 # A "../" for each directory in $ac_dir_suffix.
15840 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15841else
15842 ac_dir_suffix= ac_top_builddir=
15843fi
15844
15845case $srcdir in
15846 .) # No --srcdir option. We are building in place.
15847 ac_srcdir=.
15848 if test -z "$ac_top_builddir"; then
15849 ac_top_srcdir=.
15850 else
15851 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15852 fi ;;
15853 [\\/]* | ?:[\\/]* ) # Absolute path.
15854 ac_srcdir=$srcdir$ac_dir_suffix;
15855 ac_top_srcdir=$srcdir ;;
15856 *) # Relative path.
15857 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15858 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15859esac
15860
15861# Do not use `cd foo && pwd` to compute absolute paths, because
15862# the directories may not exist.
15863case `pwd` in
15864.) ac_abs_builddir="$ac_dir";;
15865*)
15866 case "$ac_dir" in
15867 .) ac_abs_builddir=`pwd`;;
15868 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15869 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15870 esac;;
15871esac
15872case $ac_abs_builddir in
15873.) ac_abs_top_builddir=${ac_top_builddir}.;;
15874*)
15875 case ${ac_top_builddir}. in
15876 .) ac_abs_top_builddir=$ac_abs_builddir;;
15877 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15878 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15879 esac;;
15880esac
15881case $ac_abs_builddir in
15882.) ac_abs_srcdir=$ac_srcdir;;
15883*)
15884 case $ac_srcdir in
15885 .) ac_abs_srcdir=$ac_abs_builddir;;
15886 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15887 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15888 esac;;
15889esac
15890case $ac_abs_builddir in
15891.) ac_abs_top_srcdir=$ac_top_srcdir;;
15892*)
15893 case $ac_top_srcdir in
15894 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15895 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15896 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15897 esac;;
15898esac
15899
15900
15901 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15902echo "$as_me: executing $ac_dest commands" >&6;}
15903 case $ac_dest in
f5385ebf
AM
15904 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15905 # Strip MF so we end up with the name of the file.
15906 mf=`echo "$mf" | sed -e 's/:.*$//'`
15907 # Check whether this is an Automake generated Makefile or not.
15908 # We used to match only the files named `Makefile.in', but
15909 # some people rename them; so instead we look at the file content.
15910 # Grep'ing the first line is not enough: some people post-process
15911 # each Makefile.in and add a new line on top of each file to say so.
15912 # So let's grep whole file.
15913 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15914 dirpart=`(dirname "$mf") 2>/dev/null ||
15915$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15916 X"$mf" : 'X\(//\)[^/]' \| \
15917 X"$mf" : 'X\(//\)$' \| \
15918 X"$mf" : 'X\(/\)' \| \
15919 . : '\(.\)' 2>/dev/null ||
15920echo X"$mf" |
15921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15922 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15923 /^X\(\/\/\)$/{ s//\1/; q; }
15924 /^X\(\/\).*/{ s//\1/; q; }
15925 s/.*/./; q'`
15926 else
15927 continue
15928 fi
15929 # Extract the definition of DEPDIR, am__include, and am__quote
15930 # from the Makefile without running `make'.
15931 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15932 test -z "$DEPDIR" && continue
15933 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15934 test -z "am__include" && continue
15935 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15936 # When using ansi2knr, U may be empty or an underscore; expand it
15937 U=`sed -n 's/^U = //p' < "$mf"`
15938 # Find all dependency output files, they are included files with
15939 # $(DEPDIR) in their names. We invoke sed twice because it is the
15940 # simplest approach to changing $(DEPDIR) to its actual value in the
15941 # expansion.
15942 for file in `sed -n "
15943 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15944 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15945 # Make sure the directory exists.
15946 test -f "$dirpart/$file" && continue
15947 fdir=`(dirname "$file") 2>/dev/null ||
15948$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15949 X"$file" : 'X\(//\)[^/]' \| \
15950 X"$file" : 'X\(//\)$' \| \
15951 X"$file" : 'X\(/\)' \| \
15952 . : '\(.\)' 2>/dev/null ||
15953echo X"$file" |
15954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15955 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15956 /^X\(\/\/\)$/{ s//\1/; q; }
15957 /^X\(\/\).*/{ s//\1/; q; }
15958 s/.*/./; q'`
15959 { if $as_mkdir_p; then
15960 mkdir -p $dirpart/$fdir
15961 else
15962 as_dir=$dirpart/$fdir
15963 as_dirs=
15964 while test ! -d "$as_dir"; do
15965 as_dirs="$as_dir $as_dirs"
15966 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15967$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15968 X"$as_dir" : 'X\(//\)[^/]' \| \
15969 X"$as_dir" : 'X\(//\)$' \| \
15970 X"$as_dir" : 'X\(/\)' \| \
15971 . : '\(.\)' 2>/dev/null ||
15972echo X"$as_dir" |
15973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15974 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15975 /^X\(\/\/\)$/{ s//\1/; q; }
15976 /^X\(\/\).*/{ s//\1/; q; }
15977 s/.*/./; q'`
15978 done
15979 test ! -n "$as_dirs" || mkdir $as_dirs
15980 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15981echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15982 { (exit 1); exit 1; }; }; }
15983
15984 # echo "creating $dirpart/$file"
15985 echo '# dummy' > "$dirpart/$file"
15986 done
15987done
15988 ;;
5464f5a1
NN
15989 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
15990 esac
15991done
15992_ACEOF
15993
15994cat >>$CONFIG_STATUS <<\_ACEOF
15995
15996{ (exit 0); exit 0; }
15997_ACEOF
252b5132 15998chmod +x $CONFIG_STATUS
5464f5a1
NN
15999ac_clean_files=$ac_clean_files_save
16000
16001
16002# configure is writing to config.log, and then calls config.status.
16003# config.status does its own redirection, appending to config.log.
16004# Unfortunately, on DOS this fails, as config.log is still kept open
16005# by configure, so config.status won't be able to write to it; its
16006# output is simply discarded. So we exec the FD to /dev/null,
16007# effectively closing config.log, so it can be properly (re)opened and
16008# appended to by config.status. When coming back to configure, we
16009# need to make the FD available again.
16010if test "$no_create" != yes; then
16011 ac_cs_success=:
16012 ac_config_status_args=
16013 test "$silent" = yes &&
16014 ac_config_status_args="$ac_config_status_args --quiet"
16015 exec 5>/dev/null
16016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16017 exec 5>>config.log
16018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16019 # would make configure fail if this is the last instruction.
16020 $ac_cs_success || { (exit 1); exit 1; }
16021fi
252b5132 16022
55c80943 16023
This page took 1.968832 seconds and 4 git commands to generate.