2004-09-11 Andrew Cagney <cagney@gnu.org>
[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
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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S STRIP ac_ct_STRIP LIBTOOL WARN_CFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS'
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]
853 --enable-shared=PKGS build shared libraries default=no
854 --enable-static=PKGS build static libraries default=yes
855 --enable-fast-install=PKGS optimize for fast installation default=yes
856 --disable-libtool-lock avoid locking (might break parallel builds)
857 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
858 --enable-targets alternative target configurations
859 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
860 --enable-build-warnings Enable build-time compiler warnings if gcc is used
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863 --enable-install-libbfd controls installation of libbfd and related headers
864 --disable-nls do not use Native Language Support
865
866Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
871 --with-mmap try using mmap for BFD input files if available
872 --with-included-gettext use the GNU gettext library included here
873
874Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
882
883Use these variables to override the choices made by `configure' or to help
884it to find libraries and programs with nonstandard names/locations.
885
886_ACEOF
887fi
888
889if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
895
896if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900else
901 ac_dir_suffix= ac_top_builddir=
902fi
903
904case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
918esac
919
5464f5a1
NN
920# Do not use `cd foo && pwd` to compute absolute paths, because
921# the directories may not exist.
922case `pwd` in
923.) ac_abs_builddir="$ac_dir";;
924*)
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
930esac
931case $ac_abs_builddir in
932.) ac_abs_top_builddir=${ac_top_builddir}.;;
933*)
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_srcdir=$ac_srcdir;;
942*)
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_top_srcdir=$ac_top_srcdir;;
951*)
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
957esac
6be7c12c 958
5464f5a1
NN
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 fi
e5a52504 974 cd $ac_popdir
5464f5a1 975 done
6be7c12c
AO
976fi
977
5464f5a1
NN
978test -n "$ac_init_help" && exit 0
979if $ac_init_version; then
980 cat <<\_ACEOF
6be7c12c 981
5464f5a1
NN
982Copyright (C) 2003 Free Software Foundation, Inc.
983This configure script is free software; the Free Software Foundation
984gives unlimited permission to copy, distribute and modify it.
985_ACEOF
986 exit 0
987fi
988exec 5>config.log
989cat >&5 <<_ACEOF
990This file contains any messages produced by compilers while
991running configure, to aid debugging if configure makes a mistake.
6be7c12c 992
5464f5a1
NN
993It was created by $as_me, which was
994generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 995
5464f5a1 996 $ $0 $@
6be7c12c 997
5464f5a1
NN
998_ACEOF
999{
1000cat <<_ASUNAME
1001## --------- ##
1002## Platform. ##
1003## --------- ##
1004
1005hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1013
1014/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1021
1022_ASUNAME
1023
1024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025for as_dir in $PATH
1026do
1027 IFS=$as_save_IFS
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1030done
6be7c12c 1031
5464f5a1 1032} >&5
66e25bab 1033
5464f5a1 1034cat >&5 <<_ACEOF
b3baf5d0 1035
6be7c12c 1036
5464f5a1
NN
1037## ----------- ##
1038## Core tests. ##
1039## ----------- ##
252b5132 1040
5464f5a1 1041_ACEOF
c5d1701e 1042
6be7c12c 1043
5464f5a1
NN
1044# Keep a trace of the command line.
1045# Strip out --no-create and --no-recursion so they do not pile up.
1046# Strip out --silent because we don't want to record it for future runs.
1047# Also quote any args containing shell meta-characters.
1048# Make two passes to allow for proper duplicate-argument suppression.
1049ac_configure_args=
1050ac_configure_args0=
1051ac_configure_args1=
1052ac_sep=
1053ac_must_keep_next=false
1054for ac_pass in 1 2
1055do
1056 for ac_arg
1057 do
1058 case $ac_arg in
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 continue ;;
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065 esac
1066 case $ac_pass in
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068 2)
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1072 else
1073 case $ac_arg in
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 esac
1081 ;;
1082 -* ) ac_must_keep_next=true ;;
1083 esac
1084 fi
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
1088 ;;
1089 esac
1090 done
1091done
1092$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095# When interrupted or exit'd, cleanup temporary files, and complete
1096# config.log. We remove comments because anyway the quotes in there
1097# would cause problems or look ugly.
1098# WARNING: Be sure not to use single quotes in there, as some shells,
1099# such as our DU 5.0 friend, will then `close' the trap.
1100trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1102 {
1103 echo
1104
1105 cat <<\_ASBOX
1106## ---------------- ##
1107## Cache variables. ##
1108## ---------------- ##
1109_ASBOX
1110 echo
1111 # The following way of writing the cache mishandles newlines in values,
1112{
1113 (set) 2>&1 |
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 *ac_space=\ *)
1116 sed -n \
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119 ;;
1120 *)
1121 sed -n \
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123 ;;
1124 esac;
1125}
1126 echo
1127
1128 cat <<\_ASBOX
1129## ----------------- ##
1130## Output variables. ##
1131## ----------------- ##
1132_ASBOX
1133 echo
1134 for ac_var in $ac_subst_vars
1135 do
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1140
1141 if test -n "$ac_subst_files"; then
1142 cat <<\_ASBOX
1143## ------------- ##
1144## Output files. ##
1145## ------------- ##
1146_ASBOX
1147 echo
1148 for ac_var in $ac_subst_files
1149 do
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1154 fi
1155
1156 if test -s confdefs.h; then
1157 cat <<\_ASBOX
1158## ----------- ##
1159## confdefs.h. ##
1160## ----------- ##
1161_ASBOX
1162 echo
1163 sed "/^$/d" confdefs.h | sort
1164 echo
1165 fi
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1169 } >&5
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172 exit $exit_status
1173 ' 0
1174for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176done
1177ac_signal=0
1178
1179# confdefs.h avoids OS command line length limits that DEFS can exceed.
1180rm -rf conftest* confdefs.h
1181# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182echo >confdefs.h
1183
1184# Predefined preprocessor variables.
1185
1186cat >>confdefs.h <<_ACEOF
1187#define PACKAGE_NAME "$PACKAGE_NAME"
1188_ACEOF
1189
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_VERSION "$PACKAGE_VERSION"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_STRING "$PACKAGE_STRING"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208_ACEOF
1209
1210
1211# Let the site file select an alternate cache file if it wants to.
1212# Prefer explicitly selected file to automatically selected ones.
1213if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 else
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218 fi
1219fi
1220for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1225 . "$ac_site_file"
1226 fi
1227done
1228
1229if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234echo "$as_me: loading cache $cache_file" >&6;}
1235 case $cache_file in
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1238 esac
1239 fi
1240else
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242echo "$as_me: creating cache $cache_file" >&6;}
1243 >$cache_file
1244fi
1245
1246# Check that the precious variables saved in the cache have kept the same
1247# value.
1248ac_cache_corrupted=false
1249for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1265 *)
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1287 fi
1288done
1289if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1295fi
1296
1297ac_ext=c
1298ac_cpp='$CPP $CPPFLAGS'
1299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323ac_aux_dir=
1324for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1325 if test -f $ac_dir/install-sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 break
1329 elif 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/shtool; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 break
1337 fi
1338done
1339if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1341echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1342 { (exit 1); exit 1; }; }
1343fi
1344ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347
1348# Make sure we can run config.sub.
1349$ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1353
1354echo "$as_me:$LINENO: checking build system type" >&5
1355echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358else
1359 ac_cv_build_alias=$build_alias
1360test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369 { (exit 1); exit 1; }; }
1370
1371fi
1372echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373echo "${ECHO_T}$ac_cv_build" >&6
1374build=$ac_cv_build
1375build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378
1379
1380echo "$as_me:$LINENO: checking host system type" >&5
1381echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382if test "${ac_cv_host+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384else
1385 ac_cv_host_alias=$host_alias
1386test -z "$ac_cv_host_alias" &&
1387 ac_cv_host_alias=$ac_cv_build_alias
1388ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391 { (exit 1); exit 1; }; }
1392
1393fi
1394echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395echo "${ECHO_T}$ac_cv_host" >&6
1396host=$ac_cv_host
1397host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400
1401
1402echo "$as_me:$LINENO: checking target system type" >&5
1403echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404if test "${ac_cv_target+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406else
1407 ac_cv_target_alias=$target_alias
1408test "x$ac_cv_target_alias" = "x" &&
1409 ac_cv_target_alias=$ac_cv_host_alias
1410ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1414
1415fi
1416echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417echo "${ECHO_T}$ac_cv_target" >&6
1418target=$ac_cv_target
1419target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422
1423
1424# The aliases save the names the user supplied, while $host etc.
1425# will get canonicalized.
1426test -n "$target_alias" &&
1427 test "$program_prefix$program_suffix$program_transform_name" = \
1428 NONENONEs,x,x, &&
1429 program_prefix=${target_alias}-
1430ac_ext=c
1431ac_cpp='$CPP $CPPFLAGS'
1432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438echo "$as_me:$LINENO: checking for $ac_word" >&5
1439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445else
1446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447for as_dir in $PATH
1448do
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1456 fi
1457done
1458done
1459
1460fi
1461fi
1462CC=$ac_cv_prog_CC
1463if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465echo "${ECHO_T}$CC" >&6
1466else
1467 echo "$as_me:$LINENO: result: no" >&5
1468echo "${ECHO_T}no" >&6
1469fi
1470
1471fi
1472if test -z "$ac_cv_prog_CC"; then
1473 ac_ct_CC=$CC
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475set dummy gcc; ac_word=$2
1476echo "$as_me:$LINENO: checking for $ac_word" >&5
1477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480else
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483else
1484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485for as_dir in $PATH
1486do
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1494 fi
1495done
1496done
1497
1498fi
1499fi
1500ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503echo "${ECHO_T}$ac_ct_CC" >&6
1504else
1505 echo "$as_me:$LINENO: result: no" >&5
1506echo "${ECHO_T}no" >&6
1507fi
1508
1509 CC=$ac_ct_CC
1510else
1511 CC="$ac_cv_prog_CC"
1512fi
1513
1514if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517set dummy ${ac_tool_prefix}cc; ac_word=$2
1518echo "$as_me:$LINENO: checking for $ac_word" >&5
1519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525else
1526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527for as_dir in $PATH
1528do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537done
1538done
1539
1540fi
1541fi
1542CC=$ac_cv_prog_CC
1543if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545echo "${ECHO_T}$CC" >&6
1546else
1547 echo "$as_me:$LINENO: result: no" >&5
1548echo "${ECHO_T}no" >&6
1549fi
1550
1551fi
1552if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "cc", so it can be a program name with args.
1555set dummy cc; ac_word=$2
1556echo "$as_me:$LINENO: checking for $ac_word" >&5
1557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563else
1564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565for as_dir in $PATH
1566do
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1574 fi
1575done
1576done
1577
1578fi
1579fi
1580ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583echo "${ECHO_T}$ac_ct_CC" >&6
1584else
1585 echo "$as_me:$LINENO: result: no" >&5
1586echo "${ECHO_T}no" >&6
1587fi
1588
1589 CC=$ac_ct_CC
1590else
1591 CC="$ac_cv_prog_CC"
1592fi
1593
1594fi
1595if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597set dummy cc; ac_word=$2
1598echo "$as_me:$LINENO: checking for $ac_word" >&5
1599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605else
1606 ac_prog_rejected=no
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1616 continue
1617 fi
1618 ac_cv_prog_CC="cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1621 fi
1622done
1623done
1624
1625if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1628 shift
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1633 shift
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1635 fi
1636fi
1637fi
1638fi
1639CC=$ac_cv_prog_CC
1640if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642echo "${ECHO_T}$CC" >&6
1643else
1644 echo "$as_me:$LINENO: result: no" >&5
1645echo "${ECHO_T}no" >&6
1646fi
1647
1648fi
1649if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1651 for ac_prog in cl
1652 do
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655echo "$as_me:$LINENO: checking for $ac_word" >&5
1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1662else
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674done
1675done
1676
1677fi
1678fi
1679CC=$ac_cv_prog_CC
1680if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682echo "${ECHO_T}$CC" >&6
1683else
1684 echo "$as_me:$LINENO: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
1687
1688 test -n "$CC" && break
1689 done
1690fi
1691if test -z "$CC"; then
1692 ac_ct_CC=$CC
1693 for ac_prog in cl
1694do
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696set dummy $ac_prog; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704else
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
1719fi
1720fi
1721ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724echo "${ECHO_T}$ac_ct_CC" >&6
1725else
1726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730 test -n "$ac_ct_CC" && break
1731done
1732
1733 CC=$ac_ct_CC
1734fi
1735
1736fi
1737
1738
1739test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740See \`config.log' for more details." >&5
1741echo "$as_me: error: no acceptable C compiler found in \$PATH
1742See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1744
1745# Provide some information about the compiler.
1746echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748ac_compiler=`set X $ac_compile; echo $2`
1749{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1764
1765cat >conftest.$ac_ext <<_ACEOF
1766/* confdefs.h. */
1767_ACEOF
1768cat confdefs.h >>conftest.$ac_ext
1769cat >>conftest.$ac_ext <<_ACEOF
1770/* end confdefs.h. */
1771
1772int
1773main ()
1774{
1775
1776 ;
1777 return 0;
1778}
1779_ACEOF
1780ac_clean_files_save=$ac_clean_files
1781ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782# Try to create an executable without -o first, disregard a.out.
1783# It will help us diagnose broken compilers, and finding out an intuition
1784# of exeext.
1785echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1787ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795# resort.
1796
1797# Be careful to initialize this variable, since it used to be cached.
1798# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799ac_cv_exeext=
1800# b.out is created by i960 compilers.
1801for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802do
1803 test -f "$ac_file" || continue
1804 case $ac_file in
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1806 ;;
1807 conftest.$ac_ext )
1808 # This is the source file.
1809 ;;
1810 [ab].out )
1811 # We found the default executable, but exeext='' is most
1812 # certainly right.
1813 break;;
1814 *.* )
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1819 export ac_cv_exeext
1820 break;;
1821 * )
1822 break;;
1823 esac
1824done
1825else
1826 echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830See \`config.log' for more details." >&5
1831echo "$as_me: error: C compiler cannot create executables
1832See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1834fi
1835
1836ac_exeext=$ac_cv_exeext
1837echo "$as_me:$LINENO: result: $ac_file" >&5
1838echo "${ECHO_T}$ac_file" >&6
1839
1840# Check the compiler produces executables we can run. If not, either
1841# the compiler is broken, or we cross compile.
1842echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845# If not cross compiling, check that we can run a simple program.
1846if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 (eval $ac_try) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1853 cross_compiling=no
1854 else
1855 if test "$cross_compiling" = maybe; then
1856 cross_compiling=yes
1857 else
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859If you meant to cross compile, use \`--host'.
1860See \`config.log' for more details." >&5
1861echo "$as_me: error: cannot run C compiled programs.
1862If you meant to cross compile, use \`--host'.
1863See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1865 fi
1866 fi
1867fi
1868echo "$as_me:$LINENO: result: yes" >&5
1869echo "${ECHO_T}yes" >&6
1870
1871rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872ac_clean_files=$ac_clean_files_save
1873# Check the compiler produces executables we can run. If not, either
1874# the compiler is broken, or we cross compile.
1875echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878echo "${ECHO_T}$cross_compiling" >&6
1879
1880echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889# work properly (i.e., refer to `conftest.exe'), while it won't with
1890# `rm'.
1891for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 export ac_cv_exeext
1897 break;;
1898 * ) break;;
1899 esac
1900done
1901else
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903See \`config.log' for more details." >&5
1904echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1907fi
1908
1909rm -f conftest$ac_cv_exeext
1910echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911echo "${ECHO_T}$ac_cv_exeext" >&6
1912
1913rm -f conftest.$ac_ext
1914EXEEXT=$ac_cv_exeext
1915ac_exeext=$EXEEXT
1916echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920else
1921 cat >conftest.$ac_ext <<_ACEOF
1922/* confdefs.h. */
1923_ACEOF
1924cat confdefs.h >>conftest.$ac_ext
1925cat >>conftest.$ac_ext <<_ACEOF
1926/* end confdefs.h. */
1927
1928int
1929main ()
1930{
1931
1932 ;
1933 return 0;
1934}
1935_ACEOF
1936rm -f conftest.o conftest.obj
1937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946 break;;
1947 esac
1948done
1949else
1950 echo "$as_me: failed program was:" >&5
1951sed 's/^/| /' conftest.$ac_ext >&5
1952
1953{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954See \`config.log' for more details." >&5
1955echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1958fi
1959
1960rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961fi
1962echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963echo "${ECHO_T}$ac_cv_objext" >&6
1964OBJEXT=$ac_cv_objext
1965ac_objext=$OBJEXT
1966echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971 cat >conftest.$ac_ext <<_ACEOF
1972/* confdefs.h. */
1973_ACEOF
1974cat confdefs.h >>conftest.$ac_ext
1975cat >>conftest.$ac_ext <<_ACEOF
1976/* end confdefs.h. */
1977
1978int
1979main ()
1980{
1981#ifndef __GNUC__
1982 choke me
1983#endif
1984
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989rm -f conftest.$ac_objext
1990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>conftest.er1
1992 ac_status=$?
1993 grep -v '^ *+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
e5a52504
MM
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
5464f5a1
NN
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_compiler_gnu=yes
2012else
2013 echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016ac_compiler_gnu=no
2017fi
2018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020
2021fi
2022echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024GCC=`test $ac_compiler_gnu = yes && echo yes`
2025ac_test_CFLAGS=${CFLAGS+set}
2026ac_save_CFLAGS=$CFLAGS
2027CFLAGS="-g"
2028echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033 cat >conftest.$ac_ext <<_ACEOF
2034/* confdefs.h. */
2035_ACEOF
2036cat confdefs.h >>conftest.$ac_ext
2037cat >>conftest.$ac_ext <<_ACEOF
2038/* end confdefs.h. */
2039
2040int
2041main ()
2042{
2043
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048rm -f conftest.$ac_objext
2049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2051 ac_status=$?
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
e5a52504
MM
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
5464f5a1
NN
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071else
2072 echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075ac_cv_prog_cc_g=no
2076fi
2077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078fi
2079echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2088 fi
2089else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2094 fi
2095fi
2096echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101 ac_cv_prog_cc_stdc=no
2102ac_save_CC=$CC
2103cat >conftest.$ac_ext <<_ACEOF
2104/* confdefs.h. */
2105_ACEOF
2106cat confdefs.h >>conftest.$ac_ext
2107cat >>conftest.$ac_ext <<_ACEOF
2108/* end confdefs.h. */
2109#include <stdarg.h>
2110#include <stdio.h>
2111#include <sys/types.h>
2112#include <sys/stat.h>
2113/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114struct buf { int x; };
2115FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116static char *e (p, i)
2117 char **p;
2118 int i;
2119{
2120 return p[i];
2121}
2122static char *f (char * (*g) (char **, int), char **p, ...)
2123{
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2130}
2131
2132/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140
2141int test (int i, double x);
2142struct s1 {int (*f) (int a);};
2143struct s2 {int (*f) (double a);};
2144int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145int argc;
2146char **argv;
2147int
2148main ()
2149{
2150return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 ;
2152 return 0;
2153}
2154_ACEOF
2155# Don't try gcc -ansi; that turns off useful extensions and
2156# breaks some systems' header files.
2157# AIX -qlanglvl=ansi
2158# Ultrix and OSF/1 -std1
2159# HP-UX 10.20 and later -Ae
2160# HP-UX older versions -Aa -D_HPUX_SOURCE
2161# SVR4 -Xc -D__EXTENSIONS__
2162for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163do
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
e5a52504
MM
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
5464f5a1
NN
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188break
2189else
2190 echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193fi
2194rm -f conftest.err conftest.$ac_objext
2195done
2196rm -f conftest.$ac_ext conftest.$ac_objext
2197CC=$ac_save_CC
2198
2199fi
2200
2201case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204echo "${ECHO_T}none needed" >&6 ;;
2205 *)
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209esac
2210
2211# Some people use a C++ compiler to compile C. Since we use `exit',
2212# in C++ we need to declare it. In case someone uses the same compiler
2213# for both compiling C and C++ we need to have the C++ compiler decide
2214# the declaration of exit, since it's the most demanding environment.
2215cat >conftest.$ac_ext <<_ACEOF
2216#ifndef __cplusplus
2217 choke me
2218#endif
2219_ACEOF
2220rm -f conftest.$ac_objext
2221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
e5a52504
MM
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
5464f5a1
NN
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
2243 '' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2249do
2250 cat >conftest.$ac_ext <<_ACEOF
2251/* confdefs.h. */
2252_ACEOF
2253cat confdefs.h >>conftest.$ac_ext
2254cat >>conftest.$ac_ext <<_ACEOF
2255/* end confdefs.h. */
2256$ac_declaration
2257#include <stdlib.h>
2258int
2259main ()
2260{
2261exit (42);
2262 ;
2263 return 0;
2264}
2265_ACEOF
2266rm -f conftest.$ac_objext
2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
e5a52504
MM
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
5464f5a1
NN
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2288 :
2289else
2290 echo "$as_me: failed program was:" >&5
2291sed 's/^/| /' conftest.$ac_ext >&5
2292
2293continue
2294fi
2295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 cat >conftest.$ac_ext <<_ACEOF
2297/* confdefs.h. */
2298_ACEOF
2299cat confdefs.h >>conftest.$ac_ext
2300cat >>conftest.$ac_ext <<_ACEOF
2301/* end confdefs.h. */
2302$ac_declaration
2303int
2304main ()
2305{
2306exit (42);
2307 ;
2308 return 0;
2309}
2310_ACEOF
2311rm -f conftest.$ac_objext
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
e5a52504
MM
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
5464f5a1
NN
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 break
2334else
2335 echo "$as_me: failed program was:" >&5
2336sed 's/^/| /' conftest.$ac_ext >&5
2337
2338fi
2339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340done
2341rm -f conftest*
2342if test -n "$ac_declaration"; then
2343 echo '#ifdef __cplusplus' >>confdefs.h
2344 echo $ac_declaration >>confdefs.h
2345 echo '#endif' >>confdefs.h
2346fi
2347
2348else
2349 echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352fi
2353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354ac_ext=c
2355ac_cpp='$CPP $CPPFLAGS'
2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359
2360
2361
2362 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2363echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2364if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367 ac_check_lib_save_LIBS=$LIBS
2368LIBS="-lcposix $LIBS"
2369cat >conftest.$ac_ext <<_ACEOF
2370/* confdefs.h. */
2371_ACEOF
2372cat confdefs.h >>conftest.$ac_ext
2373cat >>conftest.$ac_ext <<_ACEOF
2374/* end confdefs.h. */
2375
2376/* Override any gcc2 internal prototype to avoid an error. */
2377#ifdef __cplusplus
2378extern "C"
2379#endif
2380/* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382char strerror ();
2383int
2384main ()
2385{
2386strerror ();
2387 ;
2388 return 0;
2389}
2390_ACEOF
2391rm -f conftest.$ac_objext conftest$ac_exeext
2392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2393 (eval $ac_link) 2>conftest.er1
2394 ac_status=$?
2395 grep -v '^ *+' conftest.er1 >conftest.err
2396 rm -f conftest.er1
2397 cat conftest.err >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); } &&
e5a52504
MM
2400 { ac_try='test -z "$ac_c_werror_flag"
2401 || test ! -s conftest.err'
5464f5a1
NN
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; } &&
2407 { ac_try='test -s conftest$ac_exeext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 (eval $ac_try) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2413 ac_cv_lib_cposix_strerror=yes
2414else
2415 echo "$as_me: failed program was:" >&5
2416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418ac_cv_lib_cposix_strerror=no
2419fi
2420rm -f conftest.err conftest.$ac_objext \
2421 conftest$ac_exeext conftest.$ac_ext
2422LIBS=$ac_check_lib_save_LIBS
2423fi
2424echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2425echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2426if test $ac_cv_lib_cposix_strerror = yes; then
2427 LIBS="$LIBS -lcposix"
2428fi
2429
2430
2431
2432
2433am__api_version="1.4"
2434# Find a good install program. We prefer a C program (faster),
2435# so one script is as good as another. But avoid the broken or
2436# incompatible versions:
2437# SysV /etc/install, /usr/sbin/install
2438# SunOS /usr/etc/install
2439# IRIX /sbin/install
2440# AIX /bin/install
2441# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2442# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2443# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2444# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2445# OS/2's system install, which has a completely different semantic
252b5132 2446# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2447echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2448echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2449if test -z "$INSTALL"; then
5464f5a1
NN
2450if test "${ac_cv_path_install+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2452else
5464f5a1
NN
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 # Account for people who put trailing slashes in PATH elements.
2459case $as_dir/ in
2460 ./ | .// | /cC/* | \
2461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2462 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2463 /usr/ucb/* ) ;;
2464 *)
2465 # OSF1 and SCO ODT 3.0 have their own names for install.
2466 # Don't use installbsd from OSF since it installs stuff as root
2467 # by default.
2468 for ac_prog in ginstall scoinst install; do
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2471 if test $ac_prog = install &&
5464f5a1 2472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2473 # AIX install. It has an incompatible calling convention.
2474 :
5464f5a1
NN
2475 elif test $ac_prog = install &&
2476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477 # program-specific install script used by HP pwplus--don't use.
2478 :
252b5132 2479 else
5464f5a1
NN
2480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2481 break 3
252b5132
RH
2482 fi
2483 fi
2484 done
5464f5a1
NN
2485 done
2486 ;;
2487esac
2488done
2489
252b5132
RH
2490
2491fi
2492 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2493 INSTALL=$ac_cv_path_install
252b5132
RH
2494 else
2495 # As a last resort, use the slow shell script. We don't cache a
2496 # path for INSTALL within a source directory, because that will
2497 # break other packages using the cache if that directory is
2498 # removed, or if the path is relative.
5464f5a1 2499 INSTALL=$ac_install_sh
252b5132
RH
2500 fi
2501fi
5464f5a1
NN
2502echo "$as_me:$LINENO: result: $INSTALL" >&5
2503echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2504
2505# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2506# It thinks the first close brace ends the variable substitution.
2507test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2508
5464f5a1 2509test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2510
2511test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2512
5464f5a1
NN
2513echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2514echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2515# Just in case
2516sleep 1
2517echo timestamp > conftestfile
2518# Do `set' in a subshell so we don't clobber the current shell's
2519# arguments. Must try -L first in case configure is actually a
2520# symlink; some systems play weird games with the mod time of symlinks
2521# (eg FreeBSD returns the mod time of the symlink's containing
2522# directory).
2523if (
2524 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2525 if test "$*" = "X"; then
2526 # -L didn't work.
2527 set X `ls -t $srcdir/configure conftestfile`
2528 fi
2529 if test "$*" != "X $srcdir/configure conftestfile" \
2530 && test "$*" != "X conftestfile $srcdir/configure"; then
2531
2532 # If neither matched, then we have a broken ls. This can happen
2533 # if, for instance, CONFIG_SHELL is bash and it inherits a
2534 # broken ls alias from the environment. This has actually
2535 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2536 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2537alias in your environment" >&5
2538echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2539alias in your environment" >&2;}
2540 { (exit 1); exit 1; }; }
252b5132
RH
2541 fi
2542
2543 test "$2" = conftestfile
2544 )
2545then
2546 # Ok.
2547 :
2548else
5464f5a1
NN
2549 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2550Check your system clock" >&5
2551echo "$as_me: error: newly created file is older than distributed files!
2552Check your system clock" >&2;}
2553 { (exit 1); exit 1; }; }
252b5132
RH
2554fi
2555rm -f conftest*
5464f5a1
NN
2556echo "$as_me:$LINENO: result: yes" >&5
2557echo "${ECHO_T}yes" >&6
252b5132 2558test "$program_prefix" != NONE &&
5464f5a1 2559 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2560# Use a double $ so make ignores it.
2561test "$program_suffix" != NONE &&
5464f5a1
NN
2562 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2563# Double any \ or $. echo might interpret backslashes.
2564# By default was `s,x,x', remove it if useless.
2565cat <<\_ACEOF >conftest.sed
2566s/[\\$]/&&/g;s/;s,x,x,$//
2567_ACEOF
2568program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2569rm conftest.sed
2570
2571echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2572echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2573set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2574if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2576else
2577 cat >conftest.make <<\_ACEOF
252b5132 2578all:
5464f5a1
NN
2579 @echo 'ac_maketemp="$(MAKE)"'
2580_ACEOF
252b5132 2581# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2582eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2583if test -n "$ac_maketemp"; then
2584 eval ac_cv_prog_make_${ac_make}_set=yes
2585else
2586 eval ac_cv_prog_make_${ac_make}_set=no
2587fi
5464f5a1 2588rm -f conftest.make
252b5132
RH
2589fi
2590if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2591 echo "$as_me:$LINENO: result: yes" >&5
2592echo "${ECHO_T}yes" >&6
252b5132
RH
2593 SET_MAKE=
2594else
5464f5a1
NN
2595 echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6
252b5132
RH
2597 SET_MAKE="MAKE=${MAKE-make}"
2598fi
2599
6be7c12c 2600
252b5132
RH
2601PACKAGE=bfd
2602
7dfb3b6b 2603VERSION=2.15.91
252b5132
RH
2604
2605if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
5464f5a1
NN
2606 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2607echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2608 { (exit 1); exit 1; }; }
252b5132 2609fi
5464f5a1
NN
2610
2611cat >>confdefs.h <<_ACEOF
252b5132 2612#define PACKAGE "$PACKAGE"
5464f5a1 2613_ACEOF
252b5132 2614
5464f5a1
NN
2615
2616cat >>confdefs.h <<_ACEOF
252b5132 2617#define VERSION "$VERSION"
5464f5a1 2618_ACEOF
252b5132 2619
6be7c12c
AO
2620
2621
252b5132 2622missing_dir=`cd $ac_aux_dir && pwd`
5464f5a1
NN
2623echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
2624echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
252b5132
RH
2625# Run test in a subshell; some versions of sh will print an error if
2626# an executable is not found, even if stderr is redirected.
2627# Redirect stdin to placate older versions of autoconf. Sigh.
6726e1ea
L
2628if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2629 ACLOCAL=aclocal-${am__api_version}
5464f5a1
NN
2630 echo "$as_me:$LINENO: result: found" >&5
2631echo "${ECHO_T}found" >&6
252b5132 2632else
6726e1ea 2633 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
5464f5a1
NN
2634 echo "$as_me:$LINENO: result: missing" >&5
2635echo "${ECHO_T}missing" >&6
252b5132
RH
2636fi
2637
5464f5a1
NN
2638echo "$as_me:$LINENO: checking for working autoconf" >&5
2639echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
252b5132
RH
2640# Run test in a subshell; some versions of sh will print an error if
2641# an executable is not found, even if stderr is redirected.
2642# Redirect stdin to placate older versions of autoconf. Sigh.
2643if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2644 AUTOCONF=autoconf
5464f5a1
NN
2645 echo "$as_me:$LINENO: result: found" >&5
2646echo "${ECHO_T}found" >&6
252b5132
RH
2647else
2648 AUTOCONF="$missing_dir/missing autoconf"
5464f5a1
NN
2649 echo "$as_me:$LINENO: result: missing" >&5
2650echo "${ECHO_T}missing" >&6
252b5132
RH
2651fi
2652
5464f5a1
NN
2653echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
2654echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
252b5132
RH
2655# Run test in a subshell; some versions of sh will print an error if
2656# an executable is not found, even if stderr is redirected.
2657# Redirect stdin to placate older versions of autoconf. Sigh.
6726e1ea
L
2658if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2659 AUTOMAKE=automake-${am__api_version}
5464f5a1
NN
2660 echo "$as_me:$LINENO: result: found" >&5
2661echo "${ECHO_T}found" >&6
252b5132 2662else
6726e1ea 2663 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
5464f5a1
NN
2664 echo "$as_me:$LINENO: result: missing" >&5
2665echo "${ECHO_T}missing" >&6
252b5132
RH
2666fi
2667
5464f5a1
NN
2668echo "$as_me:$LINENO: checking for working autoheader" >&5
2669echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
252b5132
RH
2670# Run test in a subshell; some versions of sh will print an error if
2671# an executable is not found, even if stderr is redirected.
2672# Redirect stdin to placate older versions of autoconf. Sigh.
2673if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2674 AUTOHEADER=autoheader
5464f5a1
NN
2675 echo "$as_me:$LINENO: result: found" >&5
2676echo "${ECHO_T}found" >&6
252b5132
RH
2677else
2678 AUTOHEADER="$missing_dir/missing autoheader"
5464f5a1
NN
2679 echo "$as_me:$LINENO: result: missing" >&5
2680echo "${ECHO_T}missing" >&6
252b5132
RH
2681fi
2682
5464f5a1
NN
2683echo "$as_me:$LINENO: checking for working makeinfo" >&5
2684echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
252b5132
RH
2685# Run test in a subshell; some versions of sh will print an error if
2686# an executable is not found, even if stderr is redirected.
2687# Redirect stdin to placate older versions of autoconf. Sigh.
2688if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2689 MAKEINFO=makeinfo
5464f5a1
NN
2690 echo "$as_me:$LINENO: result: found" >&5
2691echo "${ECHO_T}found" >&6
252b5132
RH
2692else
2693 MAKEINFO="$missing_dir/missing makeinfo"
5464f5a1
NN
2694 echo "$as_me:$LINENO: result: missing" >&5
2695echo "${ECHO_T}missing" >&6
252b5132
RH
2696fi
2697
6be7c12c 2698
e43d48cc 2699
5464f5a1
NN
2700if test -n "$ac_tool_prefix"; then
2701 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 2702set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
2703echo "$as_me:$LINENO: checking for $ac_word" >&5
2704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2705if test "${ac_cv_prog_AR+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2707else
2708 if test -n "$AR"; then
2709 ac_cv_prog_AR="$AR" # Let the user override the test.
2710else
5464f5a1
NN
2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2718 ac_cv_prog_AR="${ac_tool_prefix}ar"
2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722done
2723done
2724
252b5132
RH
2725fi
2726fi
5464f5a1 2727AR=$ac_cv_prog_AR
252b5132 2728if test -n "$AR"; then
5464f5a1
NN
2729 echo "$as_me:$LINENO: result: $AR" >&5
2730echo "${ECHO_T}$AR" >&6
252b5132 2731else
5464f5a1
NN
2732 echo "$as_me:$LINENO: result: no" >&5
2733echo "${ECHO_T}no" >&6
2734fi
2735
252b5132 2736fi
5464f5a1
NN
2737if test -z "$ac_cv_prog_AR"; then
2738 ac_ct_AR=$AR
2739 # Extract the first word of "ar", so it can be a program name with args.
2740set dummy ar; ac_word=$2
2741echo "$as_me:$LINENO: checking for $ac_word" >&5
2742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2743if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745else
2746 if test -n "$ac_ct_AR"; then
2747 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_ac_ct_AR="ar"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760done
2761done
252b5132 2762
5464f5a1
NN
2763fi
2764fi
2765ac_ct_AR=$ac_cv_prog_ac_ct_AR
2766if test -n "$ac_ct_AR"; then
2767 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2768echo "${ECHO_T}$ac_ct_AR" >&6
2769else
2770 echo "$as_me:$LINENO: result: no" >&5
2771echo "${ECHO_T}no" >&6
2772fi
252b5132 2773
5464f5a1
NN
2774 AR=$ac_ct_AR
2775else
2776 AR="$ac_cv_prog_AR"
2777fi
6be7c12c 2778
5464f5a1
NN
2779if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 2781set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
2782echo "$as_me:$LINENO: checking for $ac_word" >&5
2783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2784if test "${ac_cv_prog_RANLIB+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2786else
2787 if test -n "$RANLIB"; then
2788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2789else
5464f5a1
NN
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801done
2802done
2803
252b5132
RH
2804fi
2805fi
5464f5a1 2806RANLIB=$ac_cv_prog_RANLIB
252b5132 2807if test -n "$RANLIB"; then
5464f5a1
NN
2808 echo "$as_me:$LINENO: result: $RANLIB" >&5
2809echo "${ECHO_T}$RANLIB" >&6
252b5132 2810else
5464f5a1
NN
2811 echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6
252b5132
RH
2813fi
2814
5464f5a1 2815fi
252b5132 2816if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 2817 ac_ct_RANLIB=$RANLIB
252b5132
RH
2818 # Extract the first word of "ranlib", so it can be a program name with args.
2819set dummy ranlib; ac_word=$2
5464f5a1
NN
2820echo "$as_me:$LINENO: checking for $ac_word" >&5
2821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 2824else
5464f5a1
NN
2825 if test -n "$ac_ct_RANLIB"; then
2826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 2827else
5464f5a1
NN
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_RANLIB="ranlib"
2836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839done
2840done
2841
2842 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
2843fi
2844fi
5464f5a1
NN
2845ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2846if test -n "$ac_ct_RANLIB"; then
2847 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2848echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 2849else
5464f5a1
NN
2850 echo "$as_me:$LINENO: result: no" >&5
2851echo "${ECHO_T}no" >&6
252b5132
RH
2852fi
2853
5464f5a1 2854 RANLIB=$ac_ct_RANLIB
252b5132 2855else
5464f5a1 2856 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
2857fi
2858
252b5132
RH
2859
2860# Check whether --enable-shared or --disable-shared was given.
2861if test "${enable_shared+set}" = set; then
2862 enableval="$enable_shared"
2863 p=${PACKAGE-default}
55c80943 2864case $enableval in
252b5132
RH
2865yes) enable_shared=yes ;;
2866no) enable_shared=no ;;
2867*)
2868 enable_shared=no
2869 # Look at the argument we got. We use all the common list separators.
2870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2871 for pkg in $enableval; do
2872 if test "X$pkg" = "X$p"; then
2873 enable_shared=yes
2874 fi
2875 done
2876 IFS="$ac_save_ifs"
2877 ;;
2878esac
2879else
2880 enable_shared=no
5464f5a1 2881fi;
252b5132
RH
2882
2883# Check whether --enable-static or --disable-static was given.
2884if test "${enable_static+set}" = set; then
2885 enableval="$enable_static"
2886 p=${PACKAGE-default}
55c80943 2887case $enableval in
252b5132
RH
2888yes) enable_static=yes ;;
2889no) enable_static=no ;;
2890*)
2891 enable_static=no
2892 # Look at the argument we got. We use all the common list separators.
2893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2894 for pkg in $enableval; do
2895 if test "X$pkg" = "X$p"; then
2896 enable_static=yes
2897 fi
2898 done
2899 IFS="$ac_save_ifs"
2900 ;;
2901esac
2902else
2903 enable_static=yes
5464f5a1 2904fi;
b2ef150d
ILT
2905# Check whether --enable-fast-install or --disable-fast-install was given.
2906if test "${enable_fast_install+set}" = set; then
2907 enableval="$enable_fast_install"
2908 p=${PACKAGE-default}
55c80943 2909case $enableval in
b2ef150d
ILT
2910yes) enable_fast_install=yes ;;
2911no) enable_fast_install=no ;;
2912*)
2913 enable_fast_install=no
2914 # Look at the argument we got. We use all the common list separators.
2915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2916 for pkg in $enableval; do
2917 if test "X$pkg" = "X$p"; then
2918 enable_fast_install=yes
2919 fi
2920 done
2921 IFS="$ac_save_ifs"
2922 ;;
2923esac
2924else
2925 enable_fast_install=yes
5464f5a1 2926fi;
c5d1701e 2927
252b5132
RH
2928# Check whether --with-gnu-ld or --without-gnu-ld was given.
2929if test "${with_gnu_ld+set}" = set; then
2930 withval="$with_gnu_ld"
2931 test "$withval" = no || with_gnu_ld=yes
2932else
2933 with_gnu_ld=no
5464f5a1 2934fi;
252b5132 2935ac_prog=ld
55c80943 2936if test "$GCC" = yes; then
252b5132 2937 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
2938 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2939echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
2940 case $host in
2941 *-*-mingw*)
2942 # gcc leaves a trailing carriage return which upsets mingw
2943 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2944 *)
2945 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2946 esac
55c80943 2947 case $ac_prog in
b2ef150d 2948 # Accept absolute paths.
a74801ba 2949 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
2950 re_direlt='/[^/][^/]*/\.\./'
2951 # Canonicalize the path of ld
2952 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2953 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2954 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2955 done
2956 test -z "$LD" && LD="$ac_prog"
2957 ;;
252b5132
RH
2958 "")
2959 # If it fails, then pretend we aren't using GCC.
2960 ac_prog=ld
2961 ;;
2962 *)
2963 # If it is relative, then search for the first ld in PATH.
2964 with_gnu_ld=unknown
2965 ;;
2966 esac
2967elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
2968 echo "$as_me:$LINENO: checking for GNU ld" >&5
2969echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 2970else
5464f5a1
NN
2971 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2972echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 2973fi
5464f5a1
NN
2974if test "${lt_cv_path_LD+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2976else
2977 if test -z "$LD"; then
a74801ba 2978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
2979 for ac_dir in $PATH; do
2980 test -z "$ac_dir" && ac_dir=.
a74801ba 2981 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 2982 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
2983 # Check to see if the program is GNU ld. I'd rather use --version,
2984 # but apparently some GNU ld's only accept -v.
2985 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 2986 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
2987 test "$with_gnu_ld" != no && break
2988 else
b2ef150d 2989 test "$with_gnu_ld" != yes && break
252b5132
RH
2990 fi
2991 fi
2992 done
2993 IFS="$ac_save_ifs"
2994else
55c80943 2995 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
2996fi
2997fi
2998
55c80943 2999LD="$lt_cv_path_LD"
252b5132 3000if test -n "$LD"; then
5464f5a1
NN
3001 echo "$as_me:$LINENO: result: $LD" >&5
3002echo "${ECHO_T}$LD" >&6
252b5132 3003else
5464f5a1
NN
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
252b5132 3006fi
5464f5a1
NN
3007test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3008echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3009 { (exit 1); exit 1; }; }
3010echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3011echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3012if test "${lt_cv_prog_gnu_ld+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3014else
3015 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3016if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3017 lt_cv_prog_gnu_ld=yes
252b5132 3018else
55c80943 3019 lt_cv_prog_gnu_ld=no
252b5132
RH
3020fi
3021fi
5464f5a1
NN
3022echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3023echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3024with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3025
6be7c12c 3026
5464f5a1
NN
3027echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3028echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3029if test "${lt_cv_ld_reload_flag+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3031else
3032 lt_cv_ld_reload_flag='-r'
3033fi
5464f5a1
NN
3034echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3035echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3036reload_flag=$lt_cv_ld_reload_flag
3037test -n "$reload_flag" && reload_flag=" $reload_flag"
3038
5464f5a1
NN
3039echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3040echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3041if test "${lt_cv_path_NM+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3043else
3044 if test -n "$NM"; then
3045 # Let the user override the test.
55c80943 3046 lt_cv_path_NM="$NM"
252b5132 3047else
a74801ba 3048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3049 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3050 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3051 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3052 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3053 # Check to see if the nm accepts a BSD-compat flag.
3054 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3055 # nm: unknown option "B" ignored
90f2472a
AO
3056 # Tru64's nm complains that /dev/null is an invalid object file
3057 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3058 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3059 break
ac48eca1 3060 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3061 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3062 break
252b5132 3063 else
55c80943 3064 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3065 continue # so that we can try to find one that supports BSD flags
252b5132 3066 fi
252b5132
RH
3067 fi
3068 done
3069 IFS="$ac_save_ifs"
55c80943 3070 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3071fi
3072fi
3073
55c80943 3074NM="$lt_cv_path_NM"
5464f5a1
NN
3075echo "$as_me:$LINENO: result: $NM" >&5
3076echo "${ECHO_T}$NM" >&6
252b5132 3077
5464f5a1
NN
3078echo "$as_me:$LINENO: checking whether ln -s works" >&5
3079echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3080LN_S=$as_ln_s
3081if test "$LN_S" = "ln -s"; then
3082 echo "$as_me:$LINENO: result: yes" >&5
3083echo "${ECHO_T}yes" >&6
6be7c12c 3084else
5464f5a1
NN
3085 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3086echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3087fi
3088
5464f5a1
NN
3089echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3090echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3091if test "${lt_cv_deplibs_check_method+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3093else
d64552c5 3094 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3095lt_cv_file_magic_test_file=
3096lt_cv_deplibs_check_method='unknown'
3097# Need to set the preceding variable on all platforms that support
3098# interlibrary dependencies.
3099# 'none' -- dependencies not supported.
3100# `unknown' -- same as none, but documents that we really don't know.
3101# 'pass_all' -- all dependencies passed with no checks.
3102# 'test_compile' -- check by making test program.
3103# 'file_magic [regex]' -- check by looking for files in library path
3104# which responds to the $file_magic_cmd with a given egrep regex.
3105# If you have `file' or equivalent on your system and you're not sure
3106# whether `pass_all' will *always* work, you probably want this one.
3107
55c80943
NC
3108case $host_os in
3109aix*)
ac48eca1
AO
3110 lt_cv_deplibs_check_method=pass_all
3111 ;;
3112
3113beos*)
3114 lt_cv_deplibs_check_method=pass_all
3115 ;;
3116
3117bsdi4*)
55c80943
NC
3118 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3119 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3120 lt_cv_file_magic_test_file=/shlib/libc.so
3121 ;;
3122
d64552c5 3123cygwin* | mingw* |pw32*)
ac48eca1 3124 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3125 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3126 ;;
3127
55c80943
NC
3128darwin* | rhapsody*)
3129 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3130 lt_cv_file_magic_cmd='/usr/bin/file -L'
3131 case "$host_os" in
3132 rhapsody* | darwin1.012)
3133 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3134 ;;
3135 *) # Darwin 1.3 on
3136 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3137 ;;
3138 esac
55c80943
NC
3139 ;;
3140
5464f5a1 3141freebsd* | kfreebsd*-gnu)
ac48eca1 3142 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3143 case $host_cpu in
ac48eca1 3144 i*86 )
90f2472a
AO
3145 # Not sure whether the presence of OpenBSD here was a mistake.
3146 # Let's accept both of them until this is cleared up.
55c80943
NC
3147 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3148 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3150 ;;
3151 esac
3152 else
3153 lt_cv_deplibs_check_method=pass_all
3154 fi
3155 ;;
3156
3157gnu*)
3158 lt_cv_deplibs_check_method=pass_all
3159 ;;
3160
55c80943 3161hpux10.20*|hpux11*)
4867be41
DJ
3162 case $host_cpu in
3163 hppa*)
3164 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3165 lt_cv_file_magic_cmd=/usr/bin/file
3166 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3167 ;;
3168 ia64*)
3169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3170 lt_cv_file_magic_cmd=/usr/bin/file
3171 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3172 ;;
3173 esac
ac48eca1
AO
3174 ;;
3175
3176irix5* | irix6*)
55c80943 3177 case $host_os in
ac48eca1
AO
3178 irix5*)
3179 # this will be overridden with pass_all, but let us keep it just in case
3180 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3181 ;;
3182 *)
55c80943 3183 case $LD in
ac48eca1
AO
3184 *-32|*"-32 ") libmagic=32-bit;;
3185 *-n32|*"-n32 ") libmagic=N32;;
3186 *-64|*"-64 ") libmagic=64-bit;;
3187 *) libmagic=never-match;;
3188 esac
3189 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3190 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3191 ;;
ac48eca1
AO
3192 esac
3193 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3194 lt_cv_deplibs_check_method=pass_all
3195 ;;
3196
3197# This must be Linux ELF.
90f2472a 3198linux-gnu*)
55c80943 3199 case $host_cpu in
c5d1701e 3200 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3201 lt_cv_deplibs_check_method=pass_all ;;
3202 *)
3203 # glibc up to 2.1.1 does not perform some relocations on ARM
55c80943
NC
3204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3205 esac
ac48eca1
AO
3206 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3207 ;;
3208
5464f5a1 3209netbsd* | knetbsd*-gnu)
55c80943 3210 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3211 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3212 else
b3baf5d0 3213 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3214 fi
55c80943
NC
3215 ;;
3216
3217newsos6)
3218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3219 lt_cv_file_magic_cmd=/usr/bin/file
3220 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3221 ;;
3222
3223osf3* | osf4* | osf5*)
3224 # this will be overridden with pass_all, but let us keep it just in case
3225 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3226 lt_cv_file_magic_test_file=/shlib/libc.so
3227 lt_cv_deplibs_check_method=pass_all
3228 ;;
3229
3230sco3.2v5*)
3231 lt_cv_deplibs_check_method=pass_all
3232 ;;
3233
3234solaris*)
3235 lt_cv_deplibs_check_method=pass_all
3236 lt_cv_file_magic_test_file=/lib/libc.so
3237 ;;
3238
6be7c12c
AO
3239sysv5uw[78]* | sysv4*uw2*)
3240 lt_cv_deplibs_check_method=pass_all
3241 ;;
3242
ac48eca1 3243sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3244 case $host_vendor in
ac48eca1
AO
3245 ncr)
3246 lt_cv_deplibs_check_method=pass_all
3247 ;;
3248 motorola)
55c80943
NC
3249 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]'
3250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3251 ;;
3252 esac
3253 ;;
3254esac
3255
3256fi
5464f5a1
NN
3257echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3258echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3259file_magic_cmd=$lt_cv_file_magic_cmd
3260deplibs_check_method=$lt_cv_deplibs_check_method
3261
6be7c12c
AO
3262
3263
6be7c12c
AO
3264
3265# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3266
3267# Only perform the check for file, if the check method requires it
3268case $deplibs_check_method in
3269file_magic*)
3270 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3271 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3272echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3273if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3275else
3276 case $MAGIC_CMD in
3277 /*)
3278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3279 ;;
3280 ?:/*)
3281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3282 ;;
3283 *)
d64552c5 3284 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3286 ac_dummy="/usr/bin:$PATH"
3287 for ac_dir in $ac_dummy; do
3288 test -z "$ac_dir" && ac_dir=.
3289 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3290 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3291 if test -n "$file_magic_test_file"; then
55c80943 3292 case $deplibs_check_method in
ac48eca1
AO
3293 "file_magic "*)
3294 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3297 egrep "$file_magic_regex" > /dev/null; then
3298 :
3299 else
3300 cat <<EOF 1>&2
3301
3302*** Warning: the command libtool uses to detect shared libraries,
3303*** $file_magic_cmd, produces output that libtool cannot recognize.
3304*** The result is that libtool may fail to recognize shared libraries
3305*** as such. This will affect the creation of libtool libraries that
3306*** depend on shared libraries, but programs linked with such libtool
3307*** libraries will work regardless of this problem. Nevertheless, you
3308*** may want to report the problem to your system manager and/or to
3309*** bug-libtool@gnu.org
3310
3311EOF
3312 fi ;;
3313 esac
3314 fi
3315 break
3316 fi
3317 done
3318 IFS="$ac_save_ifs"
d64552c5 3319 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3320 ;;
3321esac
3322fi
3323
d64552c5
AO
3324MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3325if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3326 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3327echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3328else
5464f5a1
NN
3329 echo "$as_me:$LINENO: result: no" >&5
3330echo "${ECHO_T}no" >&6
ac48eca1
AO
3331fi
3332
d64552c5 3333if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3334 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3335 echo "$as_me:$LINENO: checking for file" >&5
3336echo $ECHO_N "checking for file... $ECHO_C" >&6
3337if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3339else
55c80943 3340 case $MAGIC_CMD in
ac48eca1 3341 /*)
d64552c5 3342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3343 ;;
3344 ?:/*)
d64552c5 3345 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3346 ;;
3347 *)
d64552c5 3348 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3350 ac_dummy="/usr/bin:$PATH"
3351 for ac_dir in $ac_dummy; do
3352 test -z "$ac_dir" && ac_dir=.
3353 if test -f $ac_dir/file; then
d64552c5 3354 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3355 if test -n "$file_magic_test_file"; then
55c80943 3356 case $deplibs_check_method in
ac48eca1
AO
3357 "file_magic "*)
3358 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3360 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3361 egrep "$file_magic_regex" > /dev/null; then
3362 :
3363 else
3364 cat <<EOF 1>&2
3365
3366*** Warning: the command libtool uses to detect shared libraries,
3367*** $file_magic_cmd, produces output that libtool cannot recognize.
3368*** The result is that libtool may fail to recognize shared libraries
3369*** as such. This will affect the creation of libtool libraries that
3370*** depend on shared libraries, but programs linked with such libtool
3371*** libraries will work regardless of this problem. Nevertheless, you
3372*** may want to report the problem to your system manager and/or to
3373*** bug-libtool@gnu.org
3374
3375EOF
3376 fi ;;
3377 esac
3378 fi
3379 break
3380 fi
3381 done
3382 IFS="$ac_save_ifs"
d64552c5 3383 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3384 ;;
3385esac
3386fi
3387
d64552c5
AO
3388MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3389if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3390 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3391echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3392else
5464f5a1
NN
3393 echo "$as_me:$LINENO: result: no" >&5
3394echo "${ECHO_T}no" >&6
ac48eca1
AO
3395fi
3396
3397 else
d64552c5 3398 MAGIC_CMD=:
ac48eca1
AO
3399 fi
3400fi
3401
3402 fi
3403 ;;
3404esac
3405
5464f5a1
NN
3406if test -n "$ac_tool_prefix"; then
3407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3408set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3409echo "$as_me:$LINENO: checking for $ac_word" >&5
3410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411if test "${ac_cv_prog_RANLIB+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3413else
3414 if test -n "$RANLIB"; then
3415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3416else
5464f5a1
NN
3417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418for as_dir in $PATH
3419do
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428done
3429done
3430
ac48eca1
AO
3431fi
3432fi
5464f5a1 3433RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3434if test -n "$RANLIB"; then
5464f5a1
NN
3435 echo "$as_me:$LINENO: result: $RANLIB" >&5
3436echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3437else
5464f5a1
NN
3438 echo "$as_me:$LINENO: result: no" >&5
3439echo "${ECHO_T}no" >&6
ac48eca1
AO
3440fi
3441
5464f5a1 3442fi
ac48eca1 3443if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3444 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3445 # Extract the first word of "ranlib", so it can be a program name with args.
3446set dummy ranlib; ac_word=$2
5464f5a1
NN
3447echo "$as_me:$LINENO: checking for $ac_word" >&5
3448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3451else
5464f5a1
NN
3452 if test -n "$ac_ct_RANLIB"; then
3453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3454else
5464f5a1
NN
3455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456for as_dir in $PATH
3457do
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_ac_ct_RANLIB="ranlib"
3463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 break 2
3465 fi
3466done
3467done
3468
3469 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3470fi
3471fi
5464f5a1
NN
3472ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3473if test -n "$ac_ct_RANLIB"; then
3474 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3475echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3476else
5464f5a1
NN
3477 echo "$as_me:$LINENO: result: no" >&5
3478echo "${ECHO_T}no" >&6
ac48eca1
AO
3479fi
3480
5464f5a1 3481 RANLIB=$ac_ct_RANLIB
ac48eca1 3482else
5464f5a1 3483 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3484fi
3485
5464f5a1
NN
3486if test -n "$ac_tool_prefix"; then
3487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3488set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3489echo "$as_me:$LINENO: checking for $ac_word" >&5
3490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3491if test "${ac_cv_prog_STRIP+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3493else
3494 if test -n "$STRIP"; then
3495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3496else
5464f5a1
NN
3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498for as_dir in $PATH
3499do
3500 IFS=$as_save_IFS
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 break 2
3507 fi
3508done
3509done
3510
ac48eca1
AO
3511fi
3512fi
5464f5a1 3513STRIP=$ac_cv_prog_STRIP
ac48eca1 3514if test -n "$STRIP"; then
5464f5a1
NN
3515 echo "$as_me:$LINENO: result: $STRIP" >&5
3516echo "${ECHO_T}$STRIP" >&6
ac48eca1 3517else
5464f5a1
NN
3518 echo "$as_me:$LINENO: result: no" >&5
3519echo "${ECHO_T}no" >&6
ac48eca1
AO
3520fi
3521
5464f5a1 3522fi
ac48eca1 3523if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3524 ac_ct_STRIP=$STRIP
ac48eca1
AO
3525 # Extract the first word of "strip", so it can be a program name with args.
3526set dummy strip; ac_word=$2
5464f5a1
NN
3527echo "$as_me:$LINENO: checking for $ac_word" >&5
3528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3529if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3531else
5464f5a1
NN
3532 if test -n "$ac_ct_STRIP"; then
3533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3534else
5464f5a1
NN
3535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536for as_dir in $PATH
3537do
3538 IFS=$as_save_IFS
3539 test -z "$as_dir" && as_dir=.
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542 ac_cv_prog_ac_ct_STRIP="strip"
3543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3544 break 2
3545 fi
3546done
3547done
3548
3549 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3550fi
3551fi
5464f5a1
NN
3552ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3553if test -n "$ac_ct_STRIP"; then
3554 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3555echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3556else
5464f5a1
NN
3557 echo "$as_me:$LINENO: result: no" >&5
3558echo "${ECHO_T}no" >&6
ac48eca1
AO
3559fi
3560
5464f5a1 3561 STRIP=$ac_ct_STRIP
ac48eca1 3562else
5464f5a1 3563 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3564fi
252b5132 3565
6be7c12c 3566
252b5132 3567# Check for any special flags to pass to ltconfig.
b2ef150d 3568libtool_flags="--cache-file=$cache_file"
252b5132
RH
3569test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3570test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 3571test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
3572test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3573test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3574
6be7c12c 3575
a74801ba
ILT
3576# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3577if test "${enable_libtool_lock+set}" = set; then
3578 enableval="$enable_libtool_lock"
a74801ba 3579
5464f5a1 3580fi;
a74801ba
ILT
3581test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3582test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3583
5464f5a1 3584
ac48eca1
AO
3585# Check whether --with-pic or --without-pic was given.
3586if test "${with_pic+set}" = set; then
3587 withval="$with_pic"
3588 pic_mode="$withval"
3589else
5464f5a1
NN
3590 pic_mode=default
3591fi;
ac48eca1
AO
3592test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3593test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3594
252b5132
RH
3595# Some flags need to be propagated to the compiler or linker for good
3596# libtool support.
55c80943 3597case $host in
252b5132
RH
3598*-*-irix6*)
3599 # Find out which ABI we are using.
e5a52504 3600 echo '#line 3600 "configure"' > conftest.$ac_ext
5464f5a1
NN
3601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3602 (eval $ac_compile) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; then
6a457e5c
NC
3606 if test "$lt_cv_prog_gnu_ld" = yes; then
3607 case `/usr/bin/file conftest.$ac_objext` in
3608 *32-bit*)
3609 LD="${LD-ld} -melf32bsmip"
3610 ;;
3611 *N32*)
3612 LD="${LD-ld} -melf32bmipn32"
3613 ;;
3614 *64-bit*)
3615 LD="${LD-ld} -melf64bmip"
3616 ;;
3617 esac
3618 else
55c80943 3619 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3620 *32-bit*)
3621 LD="${LD-ld} -32"
3622 ;;
3623 *N32*)
3624 LD="${LD-ld} -n32"
3625 ;;
3626 *64-bit*)
3627 LD="${LD-ld} -64"
3628 ;;
3629 esac
6a457e5c 3630 fi
252b5132
RH
3631 fi
3632 rm -rf conftest*
3633 ;;
3634
4867be41
DJ
3635ia64-*-hpux*)
3636 # Find out which ABI we are using.
3637 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; then
4867be41
DJ
3643 case "`/usr/bin/file conftest.o`" in
3644 *ELF-32*)
3645 HPUX_IA64_MODE="32"
3646 ;;
3647 *ELF-64*)
3648 HPUX_IA64_MODE="64"
3649 ;;
3650 esac
3651 fi
3652 rm -rf conftest*
3653 ;;
3654
252b5132
RH
3655*-*-sco3.2v5*)
3656 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 3657 SAVE_CFLAGS="$CFLAGS"
252b5132 3658 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
3659 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3660echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3661if test "${lt_cv_cc_needs_belf+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 3663else
5464f5a1
NN
3664
3665
ac48eca1 3666 ac_ext=c
ac48eca1 3667ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
3668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3671
5464f5a1
NN
3672 cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h. */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h. */
b2ef150d 3678
5464f5a1
NN
3679int
3680main ()
3681{
b2ef150d 3682
5464f5a1
NN
3683 ;
3684 return 0;
3685}
3686_ACEOF
3687rm -f conftest.$ac_objext conftest$ac_exeext
3688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689 (eval $ac_link) 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } &&
e5a52504
MM
3696 { ac_try='test -z "$ac_c_werror_flag"
3697 || test ! -s conftest.err'
5464f5a1
NN
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } &&
3703 { ac_try='test -s conftest$ac_exeext'
3704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705 (eval $ac_try) 2>&5
3706 ac_status=$?
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; }; then
b2ef150d
ILT
3709 lt_cv_cc_needs_belf=yes
3710else
5464f5a1
NN
3711 echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714lt_cv_cc_needs_belf=no
b2ef150d 3715fi
5464f5a1
NN
3716rm -f conftest.err conftest.$ac_objext \
3717 conftest$ac_exeext conftest.$ac_ext
ac48eca1 3718 ac_ext=c
ac48eca1 3719ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
3720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3723
b2ef150d 3724fi
5464f5a1
NN
3725echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3726echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
3727 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3728 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3729 CFLAGS="$SAVE_CFLAGS"
3730 fi
252b5132
RH
3731 ;;
3732
6be7c12c 3733
252b5132
RH
3734esac
3735
6be7c12c 3736
b2ef150d 3737# Save cache, so that ltconfig can load it
5464f5a1 3738cat >confcache <<\_ACEOF
b2ef150d
ILT
3739# This file is a shell script that caches the results of configure
3740# tests run on this system so they can be shared between configure
5464f5a1
NN
3741# scripts and configure runs, see configure's option --config-cache.
3742# It is not useful on other systems. If it contains results you don't
3743# want to keep, you may remove or edit it.
b2ef150d 3744#
5464f5a1
NN
3745# config.status only pays attention to the cache file if you give it
3746# the --recheck option to rerun configure.
b2ef150d 3747#
5464f5a1
NN
3748# `ac_cv_env_foo' variables (set or unset) will be overridden when
3749# loading this file, other *unset* `ac_cv_foo' will be assigned the
3750# following values.
3751
3752_ACEOF
3753
b2ef150d
ILT
3754# The following way of writing the cache mishandles newlines in values,
3755# but we know of no workaround that is simple, portable, and efficient.
3756# So, don't put newlines in cache variables' values.
3757# Ultrix sh set writes to stderr and can't be redirected directly,
3758# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
3759{
3760 (set) 2>&1 |
3761 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3762 *ac_space=\ *)
3763 # `set' does not quote correctly, so add quotes (double-quote
3764 # substitution turns \\\\ into \\, and sed turns \\ into \).
3765 sed -n \
3766 "s/'/'\\\\''/g;
3767 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3768 ;;
3769 *)
3770 # `set' quotes correctly as required by POSIX, so do not add quotes.
3771 sed -n \
3772 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3773 ;;
3774 esac;
3775} |
3776 sed '
3777 t clear
3778 : clear
3779 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3780 t end
3781 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3782 : end' >>confcache
3783if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 3784 if test -w $cache_file; then
5464f5a1
NN
3785 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3786 cat confcache >$cache_file
b2ef150d
ILT
3787 else
3788 echo "not updating unwritable cache $cache_file"
3789 fi
3790fi
3791rm -f confcache
3792
252b5132 3793# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 3794AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 3795MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
3796LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3797AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3798objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3799deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 3800${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 3801$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
3802|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3803echo "$as_me: error: libtool configure failed" >&2;}
3804 { (exit 1); exit 1; }; }
252b5132 3805
b2ef150d
ILT
3806# Reload cache, that may have been modified by ltconfig
3807if test -r "$cache_file"; then
5464f5a1
NN
3808 # Some versions of bash will fail to source /dev/null (special
3809 # files actually), so we avoid doing that.
3810 if test -f "$cache_file"; then
3811 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3812echo "$as_me: loading cache $cache_file" >&6;}
3813 case $cache_file in
3814 [\\/]* | ?:[\\/]* ) . $cache_file;;
3815 *) . ./$cache_file;;
3816 esac
3817 fi
b2ef150d 3818else
5464f5a1
NN
3819 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3820echo "$as_me: creating cache $cache_file" >&6;}
3821 >$cache_file
b2ef150d
ILT
3822fi
3823
6be7c12c 3824
b2ef150d 3825# This can be used to rebuild libtool when needed
ac48eca1 3826LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
3827
3828# Always use our own libtool.
3829LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3830
252b5132
RH
3831# Redirect the config.log output again, so that the ltconfig log is not
3832# clobbered by the next message.
3833exec 5>>./config.log
3834
6be7c12c 3835
5464f5a1
NN
3836
3837
3838
3839
6be7c12c 3840
252b5132
RH
3841# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3842if test "${enable_64_bit_bfd+set}" = set; then
3843 enableval="$enable_64_bit_bfd"
3844 case "${enableval}" in
3845 yes) want64=true ;;
3846 no) want64=false ;;
5464f5a1
NN
3847 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3848echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3849 { (exit 1); exit 1; }; } ;;
252b5132
RH
3850esac
3851else
3852 want64=false
5464f5a1 3853fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
3854if test "${enable_targets+set}" = set; then
3855 enableval="$enable_targets"
3856 case "${enableval}" in
5464f5a1
NN
3857 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3858echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3859 { (exit 1); exit 1; }; }
252b5132
RH
3860 ;;
3861 no) enable_targets= ;;
3862 *) enable_targets=$enableval ;;
3863esac
5464f5a1 3864fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
3865if test "${enable_commonbfdlib+set}" = set; then
3866 enableval="$enable_commonbfdlib"
3867 case "${enableval}" in
3868 yes) commonbfdlib=true ;;
3869 no) commonbfdlib=false ;;
5464f5a1
NN
3870 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3871echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3872 { (exit 1); exit 1; }; } ;;
252b5132 3873esac
5464f5a1 3874fi;
252b5132
RH
3875# Check whether --with-mmap or --without-mmap was given.
3876if test "${with_mmap+set}" = set; then
3877 withval="$with_mmap"
3878 case "${withval}" in
3879 yes) want_mmap=true ;;
3880 no) want_mmap=false ;;
5464f5a1
NN
3881 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
3882echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
3883 { (exit 1); exit 1; }; } ;;
252b5132
RH
3884esac
3885else
3886 want_mmap=false
5464f5a1 3887fi;
0218d1e4 3888build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
3889# Check whether --enable-build-warnings or --disable-build-warnings was given.
3890if test "${enable_build_warnings+set}" = set; then
3891 enableval="$enable_build_warnings"
3892 case "${enableval}" in
3893 yes) ;;
3894 no) build_warnings="-w";;
3895 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3896 build_warnings="${build_warnings} ${t}";;
3897 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3898 build_warnings="${t} ${build_warnings}";;
3899 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3900esac
3901if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3902 echo "Setting warning flags = $build_warnings" 6>&1
3903fi
5464f5a1 3904fi; WARN_CFLAGS=""
66e25bab 3905if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
a2d91340
AC
3906 WARN_CFLAGS="${build_warnings}"
3907fi
3908
3909
6be7c12c 3910
5464f5a1 3911 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 3912
5464f5a1 3913 ac_config_commands="$ac_config_commands default-1"
6be7c12c 3914
252b5132
RH
3915
3916if test -z "$target" ; then
5464f5a1
NN
3917 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3918echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3919 { (exit 1); exit 1; }; }
252b5132 3920fi
252b5132 3921
5464f5a1
NN
3922echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3923echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
3924 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3925if test "${enable_maintainer_mode+set}" = set; then
3926 enableval="$enable_maintainer_mode"
3927 USE_MAINTAINER_MODE=$enableval
3928else
3929 USE_MAINTAINER_MODE=no
5464f5a1
NN
3930fi;
3931 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3932echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 3933
252b5132
RH
3934
3935if test $USE_MAINTAINER_MODE = yes; then
3936 MAINTAINER_MODE_TRUE=
3937 MAINTAINER_MODE_FALSE='#'
3938else
3939 MAINTAINER_MODE_TRUE='#'
3940 MAINTAINER_MODE_FALSE=
3941fi
3942 MAINT=$MAINTAINER_MODE_TRUE
252b5132 3943
5464f5a1
NN
3944
3945echo "$as_me:$LINENO: checking whether to install libbfd" >&5
3946echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
3947 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
3948if test "${enable_install_libbfd+set}" = set; then
3949 enableval="$enable_install_libbfd"
3950 install_libbfd_p=$enableval
3951else
66e25bab 3952 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
3953 install_libbfd_p=yes
3954 else
3955 install_libbfd_p=no
3956 fi
5464f5a1
NN
3957fi;
3958 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
3959echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 3960
a703a6ea
AM
3961
3962if test $install_libbfd_p = yes; then
3963 INSTALL_LIBBFD_TRUE=
3964 INSTALL_LIBBFD_FALSE='#'
3965else
3966 INSTALL_LIBBFD_TRUE='#'
3967 INSTALL_LIBBFD_FALSE=
3968fi
5464f5a1
NN
3969 # Need _noncanonical variables for this.
3970 ACX_HOST_NONCANONICAL
3971 ACX_TARGET_NONCANONICAL
a703a6ea
AM
3972 # libbfd.a is a host library containing target dependent code
3973 bfdlibdir='$(libdir)'
3974 bfdincludedir='$(includedir)'
3975 if test "${host}" != "${target}"; then
5464f5a1
NN
3976 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
3977 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 3978 fi
a703a6ea
AM
3979
3980
252b5132
RH
3981
3982
5464f5a1
NN
3983
3984
3985host64=false
3986target64=false
3987bfd_default_target_size=32
3988
3989# host stuff:
3990
3991ac_ext=c
3992ac_cpp='$CPP $CPPFLAGS'
3993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3998set dummy ${ac_tool_prefix}gcc; ac_word=$2
3999echo "$as_me:$LINENO: checking for $ac_word" >&5
4000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4001if test "${ac_cv_prog_CC+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4003else
5464f5a1
NN
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4006else
5464f5a1
NN
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 break 2
6be7c12c 4017 fi
5464f5a1
NN
4018done
4019done
4020
252b5132 4021fi
b3baf5d0 4022fi
5464f5a1
NN
4023CC=$ac_cv_prog_CC
4024if test -n "$CC"; then
4025 echo "$as_me:$LINENO: result: $CC" >&5
4026echo "${ECHO_T}$CC" >&6
4027else
4028 echo "$as_me:$LINENO: result: no" >&5
4029echo "${ECHO_T}no" >&6
4030fi
252b5132 4031
5464f5a1
NN
4032fi
4033if test -z "$ac_cv_prog_CC"; then
4034 ac_ct_CC=$CC
4035 # Extract the first word of "gcc", so it can be a program name with args.
4036set dummy gcc; ac_word=$2
4037echo "$as_me:$LINENO: checking for $ac_word" >&5
4038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4039if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042 if test -n "$ac_ct_CC"; then
4043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4044else
4045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4052 ac_cv_prog_ac_ct_CC="gcc"
4053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056done
4057done
252b5132 4058
5464f5a1
NN
4059fi
4060fi
4061ac_ct_CC=$ac_cv_prog_ac_ct_CC
4062if test -n "$ac_ct_CC"; then
4063 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4064echo "${ECHO_T}$ac_ct_CC" >&6
4065else
4066 echo "$as_me:$LINENO: result: no" >&5
4067echo "${ECHO_T}no" >&6
4068fi
252b5132 4069
5464f5a1
NN
4070 CC=$ac_ct_CC
4071else
4072 CC="$ac_cv_prog_CC"
4073fi
252b5132 4074
5464f5a1
NN
4075if test -z "$CC"; then
4076 if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4078set dummy ${ac_tool_prefix}cc; ac_word=$2
4079echo "$as_me:$LINENO: checking for $ac_word" >&5
4080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081if test "${ac_cv_prog_CC+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084 if test -n "$CC"; then
4085 ac_cv_prog_CC="$CC" # Let the user override the test.
4086else
4087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH
4089do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_CC="${ac_tool_prefix}cc"
4095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4097 fi
4098done
4099done
6be7c12c 4100
5464f5a1
NN
4101fi
4102fi
4103CC=$ac_cv_prog_CC
4104if test -n "$CC"; then
4105 echo "$as_me:$LINENO: result: $CC" >&5
4106echo "${ECHO_T}$CC" >&6
4107else
4108 echo "$as_me:$LINENO: result: no" >&5
4109echo "${ECHO_T}no" >&6
4110fi
4111
4112fi
4113if test -z "$ac_cv_prog_CC"; then
4114 ac_ct_CC=$CC
4115 # Extract the first word of "cc", so it can be a program name with args.
4116set dummy cc; ac_word=$2
4117echo "$as_me:$LINENO: checking for $ac_word" >&5
4118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122 if test -n "$ac_ct_CC"; then
4123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4124else
4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_ac_ct_CC="cc"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4135 fi
4136done
4137done
4138
4139fi
4140fi
4141ac_ct_CC=$ac_cv_prog_ac_ct_CC
4142if test -n "$ac_ct_CC"; then
4143 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4144echo "${ECHO_T}$ac_ct_CC" >&6
4145else
4146 echo "$as_me:$LINENO: result: no" >&5
4147echo "${ECHO_T}no" >&6
4148fi
4149
4150 CC=$ac_ct_CC
4151else
4152 CC="$ac_cv_prog_CC"
4153fi
4154
4155fi
4156if test -z "$CC"; then
4157 # Extract the first word of "cc", so it can be a program name with args.
4158set dummy cc; ac_word=$2
4159echo "$as_me:$LINENO: checking for $ac_word" >&5
4160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161if test "${ac_cv_prog_CC+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4163else
4164 if test -n "$CC"; then
4165 ac_cv_prog_CC="$CC" # Let the user override the test.
4166else
5464f5a1
NN
4167 ac_prog_rejected=no
4168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH
4170do
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4176 ac_prog_rejected=yes
4177 continue
4178 fi
4179 ac_cv_prog_CC="cc"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4182 fi
4183done
4184done
4185
4186if test $ac_prog_rejected = yes; then
4187 # We found a bogon in the path, so make sure we never use it.
4188 set dummy $ac_cv_prog_CC
4189 shift
4190 if test $# != 0; then
4191 # We chose a different compiler from the bogus one.
4192 # However, it has the same basename, so the bogon will be chosen
4193 # first if we set CC to just the basename; use the full file name.
4194 shift
4195 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4196 fi
4197fi
4198fi
4199fi
4200CC=$ac_cv_prog_CC
4201if test -n "$CC"; then
4202 echo "$as_me:$LINENO: result: $CC" >&5
4203echo "${ECHO_T}$CC" >&6
4204else
4205 echo "$as_me:$LINENO: result: no" >&5
4206echo "${ECHO_T}no" >&6
4207fi
4208
4209fi
4210if test -z "$CC"; then
4211 if test -n "$ac_tool_prefix"; then
4212 for ac_prog in cl
4213 do
4214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216echo "$as_me:$LINENO: checking for $ac_word" >&5
4217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218if test "${ac_cv_prog_CC+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221 if test -n "$CC"; then
4222 ac_cv_prog_CC="$CC" # Let the user override the test.
4223else
4224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225for as_dir in $PATH
4226do
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4234 fi
4235done
4236done
4237
4238fi
4239fi
4240CC=$ac_cv_prog_CC
4241if test -n "$CC"; then
4242 echo "$as_me:$LINENO: result: $CC" >&5
4243echo "${ECHO_T}$CC" >&6
4244else
4245 echo "$as_me:$LINENO: result: no" >&5
4246echo "${ECHO_T}no" >&6
4247fi
4248
4249 test -n "$CC" && break
6be7c12c 4250 done
252b5132 4251fi
5464f5a1
NN
4252if test -z "$CC"; then
4253 ac_ct_CC=$CC
4254 for ac_prog in cl
4255do
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257set dummy $ac_prog; ac_word=$2
4258echo "$as_me:$LINENO: checking for $ac_word" >&5
4259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4262else
4263 if test -n "$ac_ct_CC"; then
4264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4265else
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_ac_ct_CC="$ac_prog"
4274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277done
4278done
4279
4280fi
4281fi
4282ac_ct_CC=$ac_cv_prog_ac_ct_CC
4283if test -n "$ac_ct_CC"; then
4284 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4285echo "${ECHO_T}$ac_ct_CC" >&6
4286else
4287 echo "$as_me:$LINENO: result: no" >&5
4288echo "${ECHO_T}no" >&6
4289fi
4290
4291 test -n "$ac_ct_CC" && break
4292done
4293
4294 CC=$ac_ct_CC
4295fi
4296
4297fi
4298
4299
4300test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4301See \`config.log' for more details." >&5
4302echo "$as_me: error: no acceptable C compiler found in \$PATH
4303See \`config.log' for more details." >&2;}
4304 { (exit 1); exit 1; }; }
4305
4306# Provide some information about the compiler.
4307echo "$as_me:$LINENO:" \
4308 "checking for C compiler version" >&5
4309ac_compiler=`set X $ac_compile; echo $2`
4310{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4311 (eval $ac_compiler --version </dev/null >&5) 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }
4315{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4316 (eval $ac_compiler -v </dev/null >&5) 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }
4320{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4321 (eval $ac_compiler -V </dev/null >&5) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }
4325
4326echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4327echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4328if test "${ac_cv_c_compiler_gnu+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330else
4331 cat >conftest.$ac_ext <<_ACEOF
4332/* confdefs.h. */
4333_ACEOF
4334cat confdefs.h >>conftest.$ac_ext
4335cat >>conftest.$ac_ext <<_ACEOF
4336/* end confdefs.h. */
4337
4338int
4339main ()
4340{
4341#ifndef __GNUC__
4342 choke me
4343#endif
4344
4345 ;
4346 return 0;
4347}
4348_ACEOF
4349rm -f conftest.$ac_objext
4350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4351 (eval $ac_compile) 2>conftest.er1
4352 ac_status=$?
4353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } &&
e5a52504
MM
4358 { ac_try='test -z "$ac_c_werror_flag"
4359 || test ! -s conftest.err'
5464f5a1
NN
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest.$ac_objext'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; }; then
4371 ac_compiler_gnu=yes
4372else
4373 echo "$as_me: failed program was:" >&5
4374sed 's/^/| /' conftest.$ac_ext >&5
4375
4376ac_compiler_gnu=no
4377fi
4378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4379ac_cv_c_compiler_gnu=$ac_compiler_gnu
4380
4381fi
4382echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4383echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4384GCC=`test $ac_compiler_gnu = yes && echo yes`
4385ac_test_CFLAGS=${CFLAGS+set}
4386ac_save_CFLAGS=$CFLAGS
4387CFLAGS="-g"
4388echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4389echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4390if test "${ac_cv_prog_cc_g+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393 cat >conftest.$ac_ext <<_ACEOF
4394/* confdefs.h. */
4395_ACEOF
4396cat confdefs.h >>conftest.$ac_ext
4397cat >>conftest.$ac_ext <<_ACEOF
4398/* end confdefs.h. */
4399
4400int
4401main ()
4402{
4403
4404 ;
4405 return 0;
4406}
4407_ACEOF
4408rm -f conftest.$ac_objext
4409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>conftest.er1
4411 ac_status=$?
4412 grep -v '^ *+' conftest.er1 >conftest.err
4413 rm -f conftest.er1
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
e5a52504
MM
4417 { ac_try='test -z "$ac_c_werror_flag"
4418 || test ! -s conftest.err'
5464f5a1
NN
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 (eval $ac_try) 2>&5
4421 ac_status=$?
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 (eval $ac_try) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 ac_cv_prog_cc_g=yes
4431else
4432 echo "$as_me: failed program was:" >&5
4433sed 's/^/| /' conftest.$ac_ext >&5
4434
4435ac_cv_prog_cc_g=no
4436fi
4437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4438fi
4439echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4440echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4441if test "$ac_test_CFLAGS" = set; then
4442 CFLAGS=$ac_save_CFLAGS
4443elif test $ac_cv_prog_cc_g = yes; then
4444 if test "$GCC" = yes; then
4445 CFLAGS="-g -O2"
4446 else
4447 CFLAGS="-g"
4448 fi
4449else
4450 if test "$GCC" = yes; then
4451 CFLAGS="-O2"
4452 else
4453 CFLAGS=
4454 fi
4455fi
4456echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4457echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4458if test "${ac_cv_prog_cc_stdc+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4460else
4461 ac_cv_prog_cc_stdc=no
4462ac_save_CC=$CC
4463cat >conftest.$ac_ext <<_ACEOF
4464/* confdefs.h. */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h. */
4469#include <stdarg.h>
4470#include <stdio.h>
4471#include <sys/types.h>
4472#include <sys/stat.h>
4473/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4474struct buf { int x; };
4475FILE * (*rcsopen) (struct buf *, struct stat *, int);
4476static char *e (p, i)
4477 char **p;
4478 int i;
4479{
4480 return p[i];
4481}
4482static char *f (char * (*g) (char **, int), char **p, ...)
4483{
4484 char *s;
4485 va_list v;
4486 va_start (v,p);
4487 s = g (p, va_arg (v,int));
4488 va_end (v);
4489 return s;
4490}
4491
4492/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4493 function prototypes and stuff, but not '\xHH' hex character constants.
4494 These don't provoke an error unfortunately, instead are silently treated
4495 as 'x'. The following induces an error, until -std1 is added to get
4496 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4497 array size at least. It's necessary to write '\x00'==0 to get something
4498 that's true only with -std1. */
4499int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4500
4501int test (int i, double x);
4502struct s1 {int (*f) (int a);};
4503struct s2 {int (*f) (double a);};
4504int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4505int argc;
4506char **argv;
4507int
4508main ()
4509{
4510return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4511 ;
4512 return 0;
4513}
4514_ACEOF
4515# Don't try gcc -ansi; that turns off useful extensions and
4516# breaks some systems' header files.
4517# AIX -qlanglvl=ansi
4518# Ultrix and OSF/1 -std1
4519# HP-UX 10.20 and later -Ae
4520# HP-UX older versions -Aa -D_HPUX_SOURCE
4521# SVR4 -Xc -D__EXTENSIONS__
4522for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4523do
4524 CC="$ac_save_CC $ac_arg"
4525 rm -f conftest.$ac_objext
4526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>conftest.er1
4528 ac_status=$?
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
e5a52504
MM
4534 { ac_try='test -z "$ac_c_werror_flag"
4535 || test ! -s conftest.err'
5464f5a1
NN
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; } &&
4541 { ac_try='test -s conftest.$ac_objext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 ac_cv_prog_cc_stdc=$ac_arg
4548break
4549else
4550 echo "$as_me: failed program was:" >&5
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553fi
4554rm -f conftest.err conftest.$ac_objext
4555done
4556rm -f conftest.$ac_ext conftest.$ac_objext
4557CC=$ac_save_CC
4558
4559fi
4560
4561case "x$ac_cv_prog_cc_stdc" in
4562 x|xno)
4563 echo "$as_me:$LINENO: result: none needed" >&5
4564echo "${ECHO_T}none needed" >&6 ;;
4565 *)
4566 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4567echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4568 CC="$CC $ac_cv_prog_cc_stdc" ;;
4569esac
4570
4571# Some people use a C++ compiler to compile C. Since we use `exit',
4572# in C++ we need to declare it. In case someone uses the same compiler
4573# for both compiling C and C++ we need to have the C++ compiler decide
4574# the declaration of exit, since it's the most demanding environment.
4575cat >conftest.$ac_ext <<_ACEOF
4576#ifndef __cplusplus
4577 choke me
4578#endif
4579_ACEOF
4580rm -f conftest.$ac_objext
4581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
e5a52504
MM
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
5464f5a1
NN
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 for ac_declaration in \
4603 '' \
4604 'extern "C" void std::exit (int) throw (); using std::exit;' \
4605 'extern "C" void std::exit (int); using std::exit;' \
4606 'extern "C" void exit (int) throw ();' \
4607 'extern "C" void exit (int);' \
4608 'void exit (int);'
4609do
4610 cat >conftest.$ac_ext <<_ACEOF
4611/* confdefs.h. */
4612_ACEOF
4613cat confdefs.h >>conftest.$ac_ext
4614cat >>conftest.$ac_ext <<_ACEOF
4615/* end confdefs.h. */
4616$ac_declaration
4617#include <stdlib.h>
4618int
4619main ()
4620{
4621exit (42);
4622 ;
4623 return 0;
4624}
4625_ACEOF
4626rm -f conftest.$ac_objext
4627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628 (eval $ac_compile) 2>conftest.er1
4629 ac_status=$?
4630 grep -v '^ *+' conftest.er1 >conftest.err
4631 rm -f conftest.er1
4632 cat conftest.err >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } &&
e5a52504
MM
4635 { ac_try='test -z "$ac_c_werror_flag"
4636 || test ! -s conftest.err'
5464f5a1
NN
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 (eval $ac_try) 2>&5
4639 ac_status=$?
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; } &&
4642 { ac_try='test -s conftest.$ac_objext'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 (eval $ac_try) 2>&5
4645 ac_status=$?
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4648 :
4649else
4650 echo "$as_me: failed program was:" >&5
4651sed 's/^/| /' conftest.$ac_ext >&5
4652
4653continue
4654fi
4655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4656 cat >conftest.$ac_ext <<_ACEOF
4657/* confdefs.h. */
4658_ACEOF
4659cat confdefs.h >>conftest.$ac_ext
4660cat >>conftest.$ac_ext <<_ACEOF
4661/* end confdefs.h. */
4662$ac_declaration
4663int
4664main ()
4665{
4666exit (42);
4667 ;
4668 return 0;
4669}
4670_ACEOF
4671rm -f conftest.$ac_objext
4672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4673 (eval $ac_compile) 2>conftest.er1
4674 ac_status=$?
4675 grep -v '^ *+' conftest.er1 >conftest.err
4676 rm -f conftest.er1
4677 cat conftest.err >&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); } &&
e5a52504
MM
4680 { ac_try='test -z "$ac_c_werror_flag"
4681 || test ! -s conftest.err'
5464f5a1
NN
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest.$ac_objext'
4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 (eval $ac_try) 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 break
4694else
4695 echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698fi
4699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700done
4701rm -f conftest*
4702if test -n "$ac_declaration"; then
4703 echo '#ifdef __cplusplus' >>confdefs.h
4704 echo $ac_declaration >>confdefs.h
4705 echo '#endif' >>confdefs.h
252b5132 4706fi
5464f5a1 4707
b3baf5d0 4708else
5464f5a1
NN
4709 echo "$as_me: failed program was:" >&5
4710sed 's/^/| /' conftest.$ac_ext >&5
4711
b3baf5d0 4712fi
5464f5a1
NN
4713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714ac_ext=c
4715ac_cpp='$CPP $CPPFLAGS'
4716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 4719
5464f5a1
NN
4720
4721ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
4722if test -n "$ac_tool_prefix"; then
4723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4724set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4725echo "$as_me:$LINENO: checking for $ac_word" >&5
4726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4727if test "${ac_cv_prog_RANLIB+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4729else
5464f5a1
NN
4730 if test -n "$RANLIB"; then
4731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 4732else
5464f5a1
NN
4733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 break 2
252b5132 4743 fi
5464f5a1
NN
4744done
4745done
4746
252b5132
RH
4747fi
4748fi
5464f5a1
NN
4749RANLIB=$ac_cv_prog_RANLIB
4750if test -n "$RANLIB"; then
4751 echo "$as_me:$LINENO: result: $RANLIB" >&5
4752echo "${ECHO_T}$RANLIB" >&6
252b5132 4753else
5464f5a1
NN
4754 echo "$as_me:$LINENO: result: no" >&5
4755echo "${ECHO_T}no" >&6
252b5132
RH
4756fi
4757
5464f5a1
NN
4758fi
4759if test -z "$ac_cv_prog_RANLIB"; then
4760 ac_ct_RANLIB=$RANLIB
4761 # Extract the first word of "ranlib", so it can be a program name with args.
4762set dummy ranlib; ac_word=$2
4763echo "$as_me:$LINENO: checking for $ac_word" >&5
4764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4765if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4767else
5464f5a1
NN
4768 if test -n "$ac_ct_RANLIB"; then
4769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 4770else
5464f5a1
NN
4771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778 ac_cv_prog_ac_ct_RANLIB="ranlib"
4779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4781 fi
4782done
4783done
4784
4785 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
4786fi
4787fi
5464f5a1
NN
4788ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4789if test -n "$ac_ct_RANLIB"; then
4790 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4791echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 4792else
5464f5a1
NN
4793 echo "$as_me:$LINENO: result: no" >&5
4794echo "${ECHO_T}no" >&6
b3baf5d0 4795fi
252b5132 4796
5464f5a1 4797 RANLIB=$ac_ct_RANLIB
6be7c12c 4798else
5464f5a1 4799 RANLIB="$ac_cv_prog_RANLIB"
252b5132 4800fi
5464f5a1 4801
6be7c12c 4802ac_ext=c
6be7c12c 4803ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4808echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4809# On Suns, sometimes $CPP names a directory.
4810if test -n "$CPP" && test -d "$CPP"; then
4811 CPP=
6be7c12c 4812fi
5464f5a1
NN
4813if test -z "$CPP"; then
4814 if test "${ac_cv_prog_CPP+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4816else
5464f5a1
NN
4817 # Double quotes because CPP needs to be expanded
4818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4819 do
4820 ac_preproc_ok=false
4821for ac_c_preproc_warn_flag in '' yes
4822do
4823 # Use a header file that comes with gcc, so configuring glibc
4824 # with a fresh cross-compiler works.
4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 # <limits.h> exists even on freestanding compilers.
4827 # On the NeXT, cc -E runs the code through the compiler's parser,
4828 # not just through cpp. "Syntax error" is here to catch this case.
4829 cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h. */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h. */
4835#ifdef __STDC__
4836# include <limits.h>
4837#else
4838# include <assert.h>
252b5132 4839#endif
5464f5a1
NN
4840 Syntax error
4841_ACEOF
4842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null; then
4850 if test -s conftest.err; then
4851 ac_cpp_err=$ac_c_preproc_warn_flag
4852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4853 else
4854 ac_cpp_err=
4855 fi
6be7c12c 4856else
5464f5a1 4857 ac_cpp_err=yes
6be7c12c 4858fi
5464f5a1
NN
4859if test -z "$ac_cpp_err"; then
4860 :
6be7c12c 4861else
5464f5a1
NN
4862 echo "$as_me: failed program was:" >&5
4863sed 's/^/| /' conftest.$ac_ext >&5
4864
4865 # Broken: fails on valid input.
4866continue
4867fi
4868rm -f conftest.err conftest.$ac_ext
4869
4870 # OK, works on sane cases. Now check whether non-existent headers
4871 # can be detected and how.
4872 cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h. */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h. */
4878#include <ac_nonexistent.h>
4879_ACEOF
4880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } >/dev/null; then
4888 if test -s conftest.err; then
4889 ac_cpp_err=$ac_c_preproc_warn_flag
4890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4891 else
4892 ac_cpp_err=
4893 fi
252b5132 4894else
5464f5a1 4895 ac_cpp_err=yes
252b5132 4896fi
5464f5a1
NN
4897if test -z "$ac_cpp_err"; then
4898 # Broken: success on invalid input.
4899continue
4900else
4901 echo "$as_me: failed program was:" >&5
4902sed 's/^/| /' conftest.$ac_ext >&5
6be7c12c 4903
5464f5a1
NN
4904 # Passes both tests.
4905ac_preproc_ok=:
4906break
252b5132 4907fi
5464f5a1 4908rm -f conftest.err conftest.$ac_ext
6be7c12c 4909
5464f5a1
NN
4910done
4911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4912rm -f conftest.err conftest.$ac_ext
4913if $ac_preproc_ok; then
4914 break
252b5132
RH
4915fi
4916
5464f5a1
NN
4917 done
4918 ac_cv_prog_CPP=$CPP
252b5132 4919
252b5132 4920fi
5464f5a1 4921 CPP=$ac_cv_prog_CPP
6be7c12c 4922else
5464f5a1
NN
4923 ac_cv_prog_CPP=$CPP
4924fi
4925echo "$as_me:$LINENO: result: $CPP" >&5
4926echo "${ECHO_T}$CPP" >&6
4927ac_preproc_ok=false
4928for ac_c_preproc_warn_flag in '' yes
4929do
4930 # Use a header file that comes with gcc, so configuring glibc
4931 # with a fresh cross-compiler works.
4932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933 # <limits.h> exists even on freestanding compilers.
6be7c12c 4934 # On the NeXT, cc -E runs the code through the compiler's parser,
5464f5a1
NN
4935 # not just through cpp. "Syntax error" is here to catch this case.
4936 cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h. */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h. */
4942#ifdef __STDC__
4943# include <limits.h>
4944#else
4945# include <assert.h>
4946#endif
4947 Syntax error
4948_ACEOF
4949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null; then
4957 if test -s conftest.err; then
4958 ac_cpp_err=$ac_c_preproc_warn_flag
4959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4960 else
4961 ac_cpp_err=
4962 fi
252b5132 4963else
5464f5a1
NN
4964 ac_cpp_err=yes
4965fi
4966if test -z "$ac_cpp_err"; then
6be7c12c 4967 :
252b5132 4968else
5464f5a1
NN
4969 echo "$as_me: failed program was:" >&5
4970sed 's/^/| /' conftest.$ac_ext >&5
4971
4972 # Broken: fails on valid input.
4973continue
4974fi
4975rm -f conftest.err conftest.$ac_ext
4976
4977 # OK, works on sane cases. Now check whether non-existent headers
4978 # can be detected and how.
4979 cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#include <ac_nonexistent.h>
4986_ACEOF
4987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null; then
4995 if test -s conftest.err; then
4996 ac_cpp_err=$ac_c_preproc_warn_flag
4997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4998 else
4999 ac_cpp_err=
5000 fi
b3baf5d0 5001else
5464f5a1 5002 ac_cpp_err=yes
6be7c12c 5003fi
5464f5a1
NN
5004if test -z "$ac_cpp_err"; then
5005 # Broken: success on invalid input.
5006continue
ac48eca1 5007else
5464f5a1
NN
5008 echo "$as_me: failed program was:" >&5
5009sed 's/^/| /' conftest.$ac_ext >&5
5010
5011 # Passes both tests.
5012ac_preproc_ok=:
5013break
b3baf5d0 5014fi
5464f5a1 5015rm -f conftest.err conftest.$ac_ext
6be7c12c 5016
5464f5a1
NN
5017done
5018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019rm -f conftest.err conftest.$ac_ext
5020if $ac_preproc_ok; then
5021 :
6be7c12c 5022else
5464f5a1
NN
5023 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5024See \`config.log' for more details." >&5
5025echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5026See \`config.log' for more details." >&2;}
5027 { (exit 1); exit 1; }; }
ac48eca1 5028fi
5464f5a1
NN
5029
5030ac_ext=c
5031ac_cpp='$CPP $CPPFLAGS'
5032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035
5036
5037echo "$as_me:$LINENO: checking for egrep" >&5
5038echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5039if test "${ac_cv_prog_egrep+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5041else
5464f5a1
NN
5042 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5043 then ac_cv_prog_egrep='grep -E'
5044 else ac_cv_prog_egrep='egrep'
5045 fi
b3baf5d0 5046fi
5464f5a1
NN
5047echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5048echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5049 EGREP=$ac_cv_prog_egrep
5050
ac48eca1 5051
5464f5a1
NN
5052echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5053echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5054if test "${ac_cv_header_stdc+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5056else
5464f5a1
NN
5057 cat >conftest.$ac_ext <<_ACEOF
5058/* confdefs.h. */
5059_ACEOF
5060cat confdefs.h >>conftest.$ac_ext
5061cat >>conftest.$ac_ext <<_ACEOF
5062/* end confdefs.h. */
252b5132
RH
5063#include <stdlib.h>
5064#include <stdarg.h>
5065#include <string.h>
5066#include <float.h>
5464f5a1
NN
5067
5068int
5069main ()
5070{
5071
5072 ;
5073 return 0;
5074}
5075_ACEOF
5076rm -f conftest.$ac_objext
5077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078 (eval $ac_compile) 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } &&
e5a52504
MM
5085 { ac_try='test -z "$ac_c_werror_flag"
5086 || test ! -s conftest.err'
5464f5a1
NN
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5088 (eval $ac_try) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094 (eval $ac_try) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
252b5132
RH
5098 ac_cv_header_stdc=yes
5099else
5464f5a1
NN
5100 echo "$as_me: failed program was:" >&5
5101sed 's/^/| /' conftest.$ac_ext >&5
5102
5103ac_cv_header_stdc=no
252b5132 5104fi
5464f5a1 5105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5106
5107if test $ac_cv_header_stdc = yes; then
5108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464f5a1
NN
5109 cat >conftest.$ac_ext <<_ACEOF
5110/* confdefs.h. */
5111_ACEOF
5112cat confdefs.h >>conftest.$ac_ext
5113cat >>conftest.$ac_ext <<_ACEOF
5114/* end confdefs.h. */
252b5132 5115#include <string.h>
5464f5a1
NN
5116
5117_ACEOF
252b5132 5118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5119 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5120 :
5121else
252b5132
RH
5122 ac_cv_header_stdc=no
5123fi
5124rm -f conftest*
5125
5126fi
5127
5128if test $ac_cv_header_stdc = yes; then
5129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464f5a1
NN
5130 cat >conftest.$ac_ext <<_ACEOF
5131/* confdefs.h. */
5132_ACEOF
5133cat confdefs.h >>conftest.$ac_ext
5134cat >>conftest.$ac_ext <<_ACEOF
5135/* end confdefs.h. */
252b5132 5136#include <stdlib.h>
5464f5a1
NN
5137
5138_ACEOF
252b5132 5139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5140 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5141 :
5142else
252b5132
RH
5143 ac_cv_header_stdc=no
5144fi
5145rm -f conftest*
5146
5147fi
5148
5149if test $ac_cv_header_stdc = yes; then
5150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464f5a1 5151 if test "$cross_compiling" = yes; then
252b5132
RH
5152 :
5153else
5464f5a1
NN
5154 cat >conftest.$ac_ext <<_ACEOF
5155/* confdefs.h. */
5156_ACEOF
5157cat confdefs.h >>conftest.$ac_ext
5158cat >>conftest.$ac_ext <<_ACEOF
5159/* end confdefs.h. */
252b5132 5160#include <ctype.h>
5464f5a1
NN
5161#if ((' ' & 0x0FF) == 0x020)
5162# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5163# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5164#else
5165# define ISLOWER(c) \
5166 (('a' <= (c) && (c) <= 'i') \
5167 || ('j' <= (c) && (c) <= 'r') \
5168 || ('s' <= (c) && (c) <= 'z'))
5169# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5170#endif
6be7c12c 5171
5464f5a1
NN
5172#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5173int
5174main ()
5175{
5176 int i;
5177 for (i = 0; i < 256; i++)
5178 if (XOR (islower (i), ISLOWER (i))
5179 || toupper (i) != TOUPPER (i))
5180 exit(2);
5181 exit (0);
5182}
5183_ACEOF
5184rm -f conftest$ac_exeext
5185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5186 (eval $ac_link) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; }; then
252b5132
RH
5195 :
5196else
5464f5a1
NN
5197 echo "$as_me: program exited with status $ac_status" >&5
5198echo "$as_me: failed program was:" >&5
5199sed 's/^/| /' conftest.$ac_ext >&5
5200
5201( exit $ac_status )
5202ac_cv_header_stdc=no
252b5132 5203fi
5464f5a1 5204rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5205fi
252b5132
RH
5206fi
5207fi
5464f5a1
NN
5208echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5209echo "${ECHO_T}$ac_cv_header_stdc" >&6
6be7c12c 5210if test $ac_cv_header_stdc = yes; then
5464f5a1
NN
5211
5212cat >>confdefs.h <<\_ACEOF
252b5132 5213#define STDC_HEADERS 1
5464f5a1 5214_ACEOF
252b5132
RH
5215
5216fi
5217
5464f5a1
NN
5218echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5219echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5220if test "${ac_cv_c_const+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5222else
5464f5a1
NN
5223 cat >conftest.$ac_ext <<_ACEOF
5224/* confdefs.h. */
5225_ACEOF
5226cat confdefs.h >>conftest.$ac_ext
5227cat >>conftest.$ac_ext <<_ACEOF
5228/* end confdefs.h. */
6be7c12c 5229
5464f5a1
NN
5230int
5231main ()
5232{
5233/* FIXME: Include the comments suggested by Paul. */
5234#ifndef __cplusplus
5235 /* Ultrix mips cc rejects this. */
5236 typedef int charset[2];
5237 const charset x;
5238 /* SunOS 4.1.1 cc rejects this. */
5239 char const *const *ccp;
5240 char **p;
5241 /* NEC SVR4.0.2 mips cc rejects this. */
5242 struct point {int x, y;};
5243 static struct point const zero = {0,0};
5244 /* AIX XL C 1.02.0.0 rejects this.
5245 It does not let you subtract one const X* pointer from another in
5246 an arm of an if-expression whose if-part is not a constant
5247 expression */
5248 const char *g = "string";
5249 ccp = &g + (g ? g-g : 0);
5250 /* HPUX 7.0 cc rejects these. */
5251 ++ccp;
5252 p = (char**) ccp;
5253 ccp = (char const *const *) p;
5254 { /* SCO 3.2v4 cc rejects this. */
5255 char *t;
5256 char const *s = 0 ? (char *) 0 : (char const *) 0;
5257
5258 *t++ = 0;
5259 }
5260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5261 int x[] = {25, 17};
5262 const int *foo = &x[0];
5263 ++foo;
5264 }
5265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5266 typedef const int *iptr;
5267 iptr p = 0;
5268 ++p;
5269 }
5270 { /* AIX XL C 1.02.0.0 rejects this saying
5271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5272 struct s { int j; const int *ap[3]; };
5273 struct s *b; b->j = 5;
5274 }
5275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5276 const int foo = 10;
5277 }
5278#endif
6be7c12c 5279
5464f5a1
NN
5280 ;
5281 return 0;
5282}
5283_ACEOF
5284rm -f conftest.$ac_objext
5285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286 (eval $ac_compile) 2>conftest.er1
5287 ac_status=$?
5288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); } &&
e5a52504
MM
5293 { ac_try='test -z "$ac_c_werror_flag"
5294 || test ! -s conftest.err'
5464f5a1
NN
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 (eval $ac_try) 2>&5
5297 ac_status=$?
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; } &&
5300 { ac_try='test -s conftest.$ac_objext'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 (eval $ac_try) 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; }; then
252b5132
RH
5306 ac_cv_c_const=yes
5307else
5464f5a1
NN
5308 echo "$as_me: failed program was:" >&5
5309sed 's/^/| /' conftest.$ac_ext >&5
5310
5311ac_cv_c_const=no
252b5132 5312fi
5464f5a1 5313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5314fi
5464f5a1
NN
5315echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5316echo "${ECHO_T}$ac_cv_c_const" >&6
6be7c12c 5317if test $ac_cv_c_const = no; then
5464f5a1
NN
5318
5319cat >>confdefs.h <<\_ACEOF
5320#define const
5321_ACEOF
252b5132
RH
5322
5323fi
5324
5464f5a1
NN
5325echo "$as_me:$LINENO: checking for inline" >&5
5326echo $ECHO_N "checking for inline... $ECHO_C" >&6
5327if test "${ac_cv_c_inline+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5329else
5330 ac_cv_c_inline=no
5331for ac_kw in inline __inline__ __inline; do
5464f5a1
NN
5332 cat >conftest.$ac_ext <<_ACEOF
5333/* confdefs.h. */
5334_ACEOF
5335cat confdefs.h >>conftest.$ac_ext
5336cat >>conftest.$ac_ext <<_ACEOF
5337/* end confdefs.h. */
5338#ifndef __cplusplus
5339typedef int foo_t;
5340static $ac_kw foo_t static_foo () {return 0; }
5341$ac_kw foo_t foo () {return 0; }
5342#endif
252b5132 5343
5464f5a1
NN
5344_ACEOF
5345rm -f conftest.$ac_objext
5346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5347 (eval $ac_compile) 2>conftest.er1
5348 ac_status=$?
5349 grep -v '^ *+' conftest.er1 >conftest.err
5350 rm -f conftest.er1
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } &&
e5a52504
MM
5354 { ac_try='test -z "$ac_c_werror_flag"
5355 || test ! -s conftest.err'
5464f5a1
NN
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 (eval $ac_try) 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; } &&
5361 { ac_try='test -s conftest.$ac_objext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
252b5132
RH
5367 ac_cv_c_inline=$ac_kw; break
5368else
5464f5a1
NN
5369 echo "$as_me: failed program was:" >&5
5370sed 's/^/| /' conftest.$ac_ext >&5
5371
252b5132 5372fi
5464f5a1 5373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5374done
5375
5464f5a1
NN
5376fi
5377echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5378echo "${ECHO_T}$ac_cv_c_inline" >&6
5379
5380
5381case $ac_cv_c_inline in
5382 inline | yes) ;;
5383 *)
5384 case $ac_cv_c_inline in
5385 no) ac_val=;;
5386 *) ac_val=$ac_cv_c_inline;;
5387 esac
5388 cat >>confdefs.h <<_ACEOF
5389#ifndef __cplusplus
5390#define inline $ac_val
5391#endif
5392_ACEOF
5393 ;;
5394esac
5395
5396# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5407 inttypes.h stdint.h unistd.h
5408do
5409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5410echo "$as_me:$LINENO: checking for $ac_header" >&5
5411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5412if eval "test \"\${$as_ac_Header+set}\" = set"; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414else
5415 cat >conftest.$ac_ext <<_ACEOF
5416/* confdefs.h. */
5417_ACEOF
5418cat confdefs.h >>conftest.$ac_ext
5419cat >>conftest.$ac_ext <<_ACEOF
5420/* end confdefs.h. */
5421$ac_includes_default
5422
5423#include <$ac_header>
5424_ACEOF
5425rm -f conftest.$ac_objext
5426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5427 (eval $ac_compile) 2>conftest.er1
5428 ac_status=$?
5429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); } &&
e5a52504
MM
5434 { ac_try='test -z "$ac_c_werror_flag"
5435 || test ! -s conftest.err'
5464f5a1
NN
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 (eval $ac_try) 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; } &&
5441 { ac_try='test -s conftest.$ac_objext'
5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 (eval $ac_try) 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; }; then
5447 eval "$as_ac_Header=yes"
5448else
5449 echo "$as_me: failed program was:" >&5
5450sed 's/^/| /' conftest.$ac_ext >&5
5451
5452eval "$as_ac_Header=no"
5453fi
5454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5455fi
5456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5458if test `eval echo '${'$as_ac_Header'}'` = yes; then
5459 cat >>confdefs.h <<_ACEOF
5460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5461_ACEOF
5462
252b5132 5463fi
6be7c12c 5464
5464f5a1 5465done
252b5132 5466
5464f5a1
NN
5467
5468echo "$as_me:$LINENO: checking for off_t" >&5
5469echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5470if test "${ac_cv_type_off_t+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 5472else
5464f5a1
NN
5473 cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479$ac_includes_default
5480int
5481main ()
5482{
5483if ((off_t *) 0)
5484 return 0;
5485if (sizeof (off_t))
5486 return 0;
5487 ;
5488 return 0;
5489}
5490_ACEOF
5491rm -f conftest.$ac_objext
5492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493 (eval $ac_compile) 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
e5a52504
MM
5500 { ac_try='test -z "$ac_c_werror_flag"
5501 || test ! -s conftest.err'
5464f5a1
NN
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; } &&
5507 { ac_try='test -s conftest.$ac_objext'
5508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509 (eval $ac_try) 2>&5
5510 ac_status=$?
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); }; }; then
653f71ca 5513 ac_cv_type_off_t=yes
252b5132 5514else
5464f5a1
NN
5515 echo "$as_me: failed program was:" >&5
5516sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5517
5464f5a1 5518ac_cv_type_off_t=no
6be7c12c 5519fi
5464f5a1
NN
5520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5521fi
5522echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5523echo "${ECHO_T}$ac_cv_type_off_t" >&6
5524if test $ac_cv_type_off_t = yes; then
5525 :
5526else
5527
5528cat >>confdefs.h <<_ACEOF
252b5132 5529#define off_t long
5464f5a1 5530_ACEOF
252b5132
RH
5531
5532fi
5533
5464f5a1
NN
5534echo "$as_me:$LINENO: checking for size_t" >&5
5535echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5536if test "${ac_cv_type_size_t+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5538else
5464f5a1
NN
5539 cat >conftest.$ac_ext <<_ACEOF
5540/* confdefs.h. */
5541_ACEOF
5542cat confdefs.h >>conftest.$ac_ext
5543cat >>conftest.$ac_ext <<_ACEOF
5544/* end confdefs.h. */
5545$ac_includes_default
5546int
5547main ()
5548{
5549if ((size_t *) 0)
5550 return 0;
5551if (sizeof (size_t))
5552 return 0;
5553 ;
5554 return 0;
5555}
5556_ACEOF
5557rm -f conftest.$ac_objext
5558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
e5a52504
MM
5566 { ac_try='test -z "$ac_c_werror_flag"
5567 || test ! -s conftest.err'
5464f5a1
NN
5568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 (eval $ac_try) 2>&5
5570 ac_status=$?
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; } &&
5573 { ac_try='test -s conftest.$ac_objext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
653f71ca 5579 ac_cv_type_size_t=yes
252b5132 5580else
5464f5a1
NN
5581 echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5583
5464f5a1 5584ac_cv_type_size_t=no
6be7c12c 5585fi
5464f5a1
NN
5586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5587fi
5588echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5589echo "${ECHO_T}$ac_cv_type_size_t" >&6
5590if test $ac_cv_type_size_t = yes; then
5591 :
5592else
5593
5594cat >>confdefs.h <<_ACEOF
252b5132 5595#define size_t unsigned
5464f5a1 5596_ACEOF
252b5132
RH
5597
5598fi
5599
5600# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5601# for constant arguments. Useless!
5464f5a1
NN
5602echo "$as_me:$LINENO: checking for working alloca.h" >&5
5603echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5604if test "${ac_cv_working_alloca_h+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607 cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
252b5132 5613#include <alloca.h>
5464f5a1
NN
5614int
5615main ()
5616{
5617char *p = (char *) alloca (2 * sizeof (int));
5618 ;
5619 return 0;
5620}
5621_ACEOF
5622rm -f conftest.$ac_objext conftest$ac_exeext
5623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5624 (eval $ac_link) 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
e5a52504
MM
5631 { ac_try='test -z "$ac_c_werror_flag"
5632 || test ! -s conftest.err'
5464f5a1
NN
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; } &&
5638 { ac_try='test -s conftest$ac_exeext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 ac_cv_working_alloca_h=yes
5645else
5646 echo "$as_me: failed program was:" >&5
5647sed 's/^/| /' conftest.$ac_ext >&5
5648
5649ac_cv_working_alloca_h=no
5650fi
5651rm -f conftest.err conftest.$ac_objext \
5652 conftest$ac_exeext conftest.$ac_ext
5653fi
5654echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5655echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5656if test $ac_cv_working_alloca_h = yes; then
5657
5658cat >>confdefs.h <<\_ACEOF
252b5132 5659#define HAVE_ALLOCA_H 1
5464f5a1 5660_ACEOF
252b5132
RH
5661
5662fi
5663
5464f5a1
NN
5664echo "$as_me:$LINENO: checking for alloca" >&5
5665echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5666if test "${ac_cv_func_alloca_works+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5668else
5464f5a1
NN
5669 cat >conftest.$ac_ext <<_ACEOF
5670/* confdefs.h. */
5671_ACEOF
5672cat confdefs.h >>conftest.$ac_ext
5673cat >>conftest.$ac_ext <<_ACEOF
5674/* end confdefs.h. */
252b5132
RH
5675#ifdef __GNUC__
5676# define alloca __builtin_alloca
5677#else
5678# ifdef _MSC_VER
5679# include <malloc.h>
5680# define alloca _alloca
5681# else
5682# if HAVE_ALLOCA_H
5683# include <alloca.h>
5684# else
5685# ifdef _AIX
5686 #pragma alloca
5687# else
5688# ifndef alloca /* predefined by HP cc +Olibcalls */
5689char *alloca ();
5690# endif
5691# endif
5692# endif
5693# endif
5694#endif
5695
5464f5a1
NN
5696int
5697main ()
5698{
5699char *p = (char *) alloca (1);
5700 ;
5701 return 0;
5702}
5703_ACEOF
5704rm -f conftest.$ac_objext conftest$ac_exeext
5705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5706 (eval $ac_link) 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
e5a52504
MM
5713 { ac_try='test -z "$ac_c_werror_flag"
5714 || test ! -s conftest.err'
5464f5a1
NN
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; } &&
5720 { ac_try='test -s conftest$ac_exeext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722 (eval $ac_try) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
252b5132
RH
5726 ac_cv_func_alloca_works=yes
5727else
5464f5a1
NN
5728 echo "$as_me: failed program was:" >&5
5729sed 's/^/| /' conftest.$ac_ext >&5
5730
5731ac_cv_func_alloca_works=no
252b5132 5732fi
5464f5a1
NN
5733rm -f conftest.err conftest.$ac_objext \
5734 conftest$ac_exeext conftest.$ac_ext
252b5132 5735fi
5464f5a1
NN
5736echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5737echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 5738
252b5132 5739if test $ac_cv_func_alloca_works = yes; then
252b5132 5740
5464f5a1
NN
5741cat >>confdefs.h <<\_ACEOF
5742#define HAVE_ALLOCA 1
5743_ACEOF
b3baf5d0 5744
5464f5a1 5745else
6be7c12c 5746 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5464f5a1
NN
5747# that cause trouble. Some versions do not even contain alloca or
5748# contain a buggy version. If you still want to use their alloca,
5749# use ar to extract alloca.o from them instead of compiling alloca.c.
5750
5751ALLOCA=alloca.$ac_objext
5752
5753cat >>confdefs.h <<\_ACEOF
252b5132 5754#define C_ALLOCA 1
5464f5a1 5755_ACEOF
252b5132 5756
6be7c12c 5757
5464f5a1
NN
5758echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5759echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5760if test "${ac_cv_os_cray+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5762else
5464f5a1
NN
5763 cat >conftest.$ac_ext <<_ACEOF
5764/* confdefs.h. */
5765_ACEOF
5766cat confdefs.h >>conftest.$ac_ext
5767cat >>conftest.$ac_ext <<_ACEOF
5768/* end confdefs.h. */
252b5132
RH
5769#if defined(CRAY) && ! defined(CRAY2)
5770webecray
5771#else
5772wenotbecray
5773#endif
5774
5464f5a1 5775_ACEOF
252b5132 5776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5777 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
5778 ac_cv_os_cray=yes
5779else
252b5132
RH
5780 ac_cv_os_cray=no
5781fi
5782rm -f conftest*
5783
5784fi
5464f5a1
NN
5785echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5786echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 5787if test $ac_cv_os_cray = yes; then
5464f5a1
NN
5788 for ac_func in _getb67 GETB67 getb67; do
5789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5790echo "$as_me:$LINENO: checking for $ac_func" >&5
5791echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5792if eval "test \"\${$as_ac_var+set}\" = set"; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794else
5795 cat >conftest.$ac_ext <<_ACEOF
5796/* confdefs.h. */
5797_ACEOF
5798cat confdefs.h >>conftest.$ac_ext
5799cat >>conftest.$ac_ext <<_ACEOF
5800/* end confdefs.h. */
5801/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5803#define $ac_func innocuous_$ac_func
5804
252b5132 5805/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
5806 which can conflict with char $ac_func (); below.
5807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5808 <limits.h> exists even on freestanding compilers. */
5809
5810#ifdef __STDC__
5811# include <limits.h>
5812#else
5813# include <assert.h>
5814#endif
6be7c12c 5815
5464f5a1 5816#undef $ac_func
252b5132 5817
5464f5a1
NN
5818/* Override any gcc2 internal prototype to avoid an error. */
5819#ifdef __cplusplus
5820extern "C"
5821{
5822#endif
5823/* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5825char $ac_func ();
252b5132
RH
5826/* The GNU C library defines this for functions which it implements
5827 to always fail with ENOSYS. Some functions are actually named
5828 something starting with __ and the normal name is an alias. */
5829#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5830choke me
5831#else
5464f5a1
NN
5832char (*f) () = $ac_func;
5833#endif
5834#ifdef __cplusplus
5835}
252b5132
RH
5836#endif
5837
5464f5a1
NN
5838int
5839main ()
5840{
5841return f != $ac_func;
5842 ;
5843 return 0;
5844}
5845_ACEOF
5846rm -f conftest.$ac_objext conftest$ac_exeext
5847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848 (eval $ac_link) 2>conftest.er1
5849 ac_status=$?
5850 grep -v '^ *+' conftest.er1 >conftest.err
5851 rm -f conftest.er1
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
e5a52504
MM
5855 { ac_try='test -z "$ac_c_werror_flag"
5856 || test ! -s conftest.err'
5464f5a1
NN
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try='test -s conftest$ac_exeext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5864 (eval $ac_try) 2>&5
5865 ac_status=$?
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 eval "$as_ac_var=yes"
5869else
5870 echo "$as_me: failed program was:" >&5
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
5873eval "$as_ac_var=no"
5874fi
5875rm -f conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5877fi
5878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5879echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5880if test `eval echo '${'$as_ac_var'}'` = yes; then
5881
5882cat >>confdefs.h <<_ACEOF
252b5132 5883#define CRAY_STACKSEG_END $ac_func
5464f5a1 5884_ACEOF
252b5132 5885
5464f5a1 5886 break
252b5132
RH
5887fi
5888
5464f5a1 5889 done
252b5132
RH
5890fi
5891
5464f5a1
NN
5892echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5893echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5894if test "${ac_cv_c_stack_direction+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5896else
5897 if test "$cross_compiling" = yes; then
5898 ac_cv_c_stack_direction=0
5899else
5464f5a1
NN
5900 cat >conftest.$ac_ext <<_ACEOF
5901/* confdefs.h. */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
5905/* end confdefs.h. */
5906int
252b5132
RH
5907find_stack_direction ()
5908{
5909 static char *addr = 0;
5910 auto char dummy;
5911 if (addr == 0)
5912 {
5913 addr = &dummy;
5914 return find_stack_direction ();
5915 }
5916 else
5917 return (&dummy > addr) ? 1 : -1;
5918}
5464f5a1
NN
5919
5920int
252b5132
RH
5921main ()
5922{
5464f5a1 5923 exit (find_stack_direction () < 0);
252b5132 5924}
5464f5a1
NN
5925_ACEOF
5926rm -f conftest$ac_exeext
5927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5928 (eval $ac_link) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
252b5132
RH
5937 ac_cv_c_stack_direction=1
5938else
5464f5a1
NN
5939 echo "$as_me: program exited with status $ac_status" >&5
5940echo "$as_me: failed program was:" >&5
5941sed 's/^/| /' conftest.$ac_ext >&5
5942
5943( exit $ac_status )
5944ac_cv_c_stack_direction=-1
252b5132 5945fi
5464f5a1 5946rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5947fi
252b5132 5948fi
5464f5a1
NN
5949echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5950echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 5951
5464f5a1 5952cat >>confdefs.h <<_ACEOF
252b5132 5953#define STACK_DIRECTION $ac_cv_c_stack_direction
5464f5a1
NN
5954_ACEOF
5955
252b5132
RH
5956
5957fi
5958
5464f5a1
NN
5959
5960
5961for ac_header in stdlib.h unistd.h
252b5132 5962do
5464f5a1
NN
5963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5964if eval "test \"\${$as_ac_Header+set}\" = set"; then
5965 echo "$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
5969fi
5970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5972else
5973 # Is the header compilable?
5974echo "$as_me:$LINENO: checking $ac_header usability" >&5
5975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5976cat >conftest.$ac_ext <<_ACEOF
5977/* confdefs.h. */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5981/* end confdefs.h. */
5982$ac_includes_default
5983#include <$ac_header>
5984_ACEOF
5985rm -f conftest.$ac_objext
5986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
e5a52504
MM
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5464f5a1
NN
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_header_compiler=yes
6008else
6009 echo "$as_me: failed program was:" >&5
6010sed 's/^/| /' conftest.$ac_ext >&5
6011
6012ac_header_compiler=no
6013fi
6014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6016echo "${ECHO_T}$ac_header_compiler" >&6
6017
6018# Is the header present?
6019echo "$as_me:$LINENO: checking $ac_header presence" >&5
6020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6021cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h. */
6027#include <$ac_header>
6028_ACEOF
6029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } >/dev/null; then
6037 if test -s conftest.err; then
6038 ac_cpp_err=$ac_c_preproc_warn_flag
6039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6040 else
6041 ac_cpp_err=
6042 fi
252b5132 6043else
5464f5a1 6044 ac_cpp_err=yes
252b5132 6045fi
5464f5a1
NN
6046if test -z "$ac_cpp_err"; then
6047 ac_header_preproc=yes
6048else
6049 echo "$as_me: failed program was:" >&5
6050sed 's/^/| /' conftest.$ac_ext >&5
6051
6052 ac_header_preproc=no
252b5132 6053fi
5464f5a1
NN
6054rm -f conftest.err conftest.$ac_ext
6055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6056echo "${ECHO_T}$ac_header_preproc" >&6
6057
6058# So? What about this header?
6059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6060 yes:no: )
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6065 ac_header_preproc=yes
6066 ;;
6067 no:yes:* )
6068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6080 (
6081 cat <<\_ASBOX
6082## ------------------------------------------ ##
6083## Report this to the AC_PACKAGE_NAME lists. ##
6084## ------------------------------------------ ##
6085_ASBOX
6086 ) |
6087 sed "s/^/$as_me: WARNING: /" >&2
6088 ;;
6089esac
6090echo "$as_me:$LINENO: checking for $ac_header" >&5
6091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6092if eval "test \"\${$as_ac_Header+set}\" = set"; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6094else
5464f5a1
NN
6095 eval "$as_ac_Header=\$ac_header_preproc"
6096fi
6097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6099
252b5132 6100fi
5464f5a1
NN
6101if test `eval echo '${'$as_ac_Header'}'` = yes; then
6102 cat >>confdefs.h <<_ACEOF
6103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6104_ACEOF
6105
6106fi
6107
252b5132
RH
6108done
6109
5464f5a1 6110
252b5132
RH
6111for ac_func in getpagesize
6112do
5464f5a1
NN
6113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6114echo "$as_me:$LINENO: checking for $ac_func" >&5
6115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6116if eval "test \"\${$as_ac_var+set}\" = set"; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119 cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h. */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h. */
6125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6127#define $ac_func innocuous_$ac_func
6128
252b5132 6129/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6130 which can conflict with char $ac_func (); below.
6131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6132 <limits.h> exists even on freestanding compilers. */
6133
6134#ifdef __STDC__
6135# include <limits.h>
6136#else
6137# include <assert.h>
6138#endif
6be7c12c 6139
5464f5a1 6140#undef $ac_func
252b5132 6141
5464f5a1
NN
6142/* Override any gcc2 internal prototype to avoid an error. */
6143#ifdef __cplusplus
6144extern "C"
6145{
6146#endif
6147/* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6149char $ac_func ();
252b5132
RH
6150/* The GNU C library defines this for functions which it implements
6151 to always fail with ENOSYS. Some functions are actually named
6152 something starting with __ and the normal name is an alias. */
6153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6154choke me
6155#else
5464f5a1
NN
6156char (*f) () = $ac_func;
6157#endif
6158#ifdef __cplusplus
6159}
252b5132
RH
6160#endif
6161
5464f5a1
NN
6162int
6163main ()
6164{
6165return f != $ac_func;
6166 ;
6167 return 0;
6168}
6169_ACEOF
6170rm -f conftest.$ac_objext conftest$ac_exeext
6171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
e5a52504
MM
6179 { ac_try='test -z "$ac_c_werror_flag"
6180 || test ! -s conftest.err'
5464f5a1
NN
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182 (eval $ac_try) 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest$ac_exeext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 eval "$as_ac_var=yes"
6193else
6194 echo "$as_me: failed program was:" >&5
6195sed 's/^/| /' conftest.$ac_ext >&5
6196
6197eval "$as_ac_var=no"
6198fi
6199rm -f conftest.err conftest.$ac_objext \
6200 conftest$ac_exeext conftest.$ac_ext
6201fi
6202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6204if test `eval echo '${'$as_ac_var'}'` = yes; then
6205 cat >>confdefs.h <<_ACEOF
6206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6207_ACEOF
252b5132 6208
252b5132
RH
6209fi
6210done
6211
5464f5a1
NN
6212echo "$as_me:$LINENO: checking for working mmap" >&5
6213echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6214if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6216else
6217 if test "$cross_compiling" = yes; then
6218 ac_cv_func_mmap_fixed_mapped=no
6219else
5464f5a1
NN
6220 cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226$ac_includes_default
6227/* malloc might have been renamed as rpl_malloc. */
6228#undef malloc
6be7c12c 6229
252b5132
RH
6230/* Thanks to Mike Haertel and Jim Avera for this test.
6231 Here is a matrix of mmap possibilities:
6232 mmap private not fixed
6233 mmap private fixed at somewhere currently unmapped
6234 mmap private fixed at somewhere already mapped
6235 mmap shared not fixed
6236 mmap shared fixed at somewhere currently unmapped
6237 mmap shared fixed at somewhere already mapped
6238 For private mappings, we should verify that changes cannot be read()
6239 back from the file, nor mmap's back from the file at a different
6240 address. (There have been systems where private was not correctly
6241 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 6242 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6243 like early versions of FreeBSD and possibly contemporary NetBSD.)
6244 For shared mappings, we should conversely verify that changes get
5464f5a1 6245 propagated back to all the places they're supposed to be.
252b5132
RH
6246
6247 Grep wants private fixed already mapped.
6248 The main things grep needs to know about mmap are:
6249 * does it exist and is it safe to write into the mmap'd area
6250 * how to use it (BSD variants) */
5464f5a1 6251
252b5132
RH
6252#include <fcntl.h>
6253#include <sys/mman.h>
6254
5464f5a1
NN
6255#if !STDC_HEADERS && !HAVE_STDLIB_H
6256char *malloc ();
6257#endif
6be7c12c 6258
5464f5a1
NN
6259/* This mess was copied from the GNU getpagesize.h. */
6260#if !HAVE_GETPAGESIZE
252b5132 6261/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 6262# if !HAVE_SYS_PARAM_H
252b5132
RH
6263# define HAVE_SYS_PARAM_H 1
6264# endif
6265
6266# ifdef _SC_PAGESIZE
6267# define getpagesize() sysconf(_SC_PAGESIZE)
6268# else /* no _SC_PAGESIZE */
5464f5a1 6269# if HAVE_SYS_PARAM_H
252b5132
RH
6270# include <sys/param.h>
6271# ifdef EXEC_PAGESIZE
6272# define getpagesize() EXEC_PAGESIZE
6273# else /* no EXEC_PAGESIZE */
6274# ifdef NBPG
6275# define getpagesize() NBPG * CLSIZE
6276# ifndef CLSIZE
6277# define CLSIZE 1
6278# endif /* no CLSIZE */
6279# else /* no NBPG */
6280# ifdef NBPC
6281# define getpagesize() NBPC
6282# else /* no NBPC */
6283# ifdef PAGESIZE
6284# define getpagesize() PAGESIZE
6285# endif /* PAGESIZE */
6286# endif /* no NBPC */
6287# endif /* no NBPG */
6288# endif /* no EXEC_PAGESIZE */
6289# else /* no HAVE_SYS_PARAM_H */
6290# define getpagesize() 8192 /* punt totally */
6291# endif /* no HAVE_SYS_PARAM_H */
6292# endif /* no _SC_PAGESIZE */
6293
6294#endif /* no HAVE_GETPAGESIZE */
6295
252b5132 6296int
5464f5a1 6297main ()
252b5132 6298{
5464f5a1
NN
6299 char *data, *data2, *data3;
6300 int i, pagesize;
6301 int fd;
6302
6303 pagesize = getpagesize ();
6304
6305 /* First, make a file with some known garbage in it. */
6306 data = (char *) malloc (pagesize);
6307 if (!data)
6308 exit (1);
6309 for (i = 0; i < pagesize; ++i)
6310 *(data + i) = rand ();
6311 umask (0);
6312 fd = creat ("conftest.mmap", 0600);
6313 if (fd < 0)
6314 exit (1);
6315 if (write (fd, data, pagesize) != pagesize)
6316 exit (1);
6317 close (fd);
6318
6319 /* Next, try to mmap the file at a fixed address which already has
6320 something else allocated at it. If we can, also make sure that
6321 we see the same garbage. */
6322 fd = open ("conftest.mmap", O_RDWR);
6323 if (fd < 0)
6324 exit (1);
6325 data2 = (char *) malloc (2 * pagesize);
6326 if (!data2)
6327 exit (1);
6328 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6329 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6330 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6331 exit (1);
6332 for (i = 0; i < pagesize; ++i)
6333 if (*(data + i) != *(data2 + i))
6334 exit (1);
6335
6336 /* Finally, make sure that changes to the mapped area do not
6337 percolate back to the file as seen by read(). (This is a bug on
6338 some variants of i386 svr4.0.) */
6339 for (i = 0; i < pagesize; ++i)
6340 *(data2 + i) = *(data2 + i) + 1;
6341 data3 = (char *) malloc (pagesize);
6342 if (!data3)
6343 exit (1);
6344 if (read (fd, data3, pagesize) != pagesize)
6345 exit (1);
6346 for (i = 0; i < pagesize; ++i)
6347 if (*(data + i) != *(data3 + i))
6348 exit (1);
6349 close (fd);
6350 exit (0);
252b5132 6351}
5464f5a1
NN
6352_ACEOF
6353rm -f conftest$ac_exeext
6354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6355 (eval $ac_link) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
252b5132
RH
6364 ac_cv_func_mmap_fixed_mapped=yes
6365else
5464f5a1
NN
6366 echo "$as_me: program exited with status $ac_status" >&5
6367echo "$as_me: failed program was:" >&5
6368sed 's/^/| /' conftest.$ac_ext >&5
6369
6370( exit $ac_status )
6371ac_cv_func_mmap_fixed_mapped=no
252b5132 6372fi
5464f5a1 6373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6374fi
252b5132 6375fi
5464f5a1
NN
6376echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6377echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6be7c12c 6378if test $ac_cv_func_mmap_fixed_mapped = yes; then
5464f5a1
NN
6379
6380cat >>confdefs.h <<\_ACEOF
252b5132 6381#define HAVE_MMAP 1
5464f5a1 6382_ACEOF
252b5132
RH
6383
6384fi
5464f5a1
NN
6385rm -f conftest.mmap
6386
6387
252b5132 6388
5464f5a1
NN
6389
6390
6391
6392
6393
6394
6395
6396
6397for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6398unistd.h values.h sys/param.h
6399do
5464f5a1
NN
6400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401if eval "test \"\${$as_ac_Header+set}\" = set"; then
6402 echo "$as_me:$LINENO: checking for $ac_header" >&5
6403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6404if eval "test \"\${$as_ac_Header+set}\" = set"; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406fi
6407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6409else
6410 # Is the header compilable?
6411echo "$as_me:$LINENO: checking $ac_header usability" >&5
6412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6413cat >conftest.$ac_ext <<_ACEOF
6414/* confdefs.h. */
6415_ACEOF
6416cat confdefs.h >>conftest.$ac_ext
6417cat >>conftest.$ac_ext <<_ACEOF
6418/* end confdefs.h. */
6419$ac_includes_default
6420#include <$ac_header>
6421_ACEOF
6422rm -f conftest.$ac_objext
6423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
e5a52504
MM
6431 { ac_try='test -z "$ac_c_werror_flag"
6432 || test ! -s conftest.err'
5464f5a1
NN
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_header_compiler=yes
6445else
6446 echo "$as_me: failed program was:" >&5
6447sed 's/^/| /' conftest.$ac_ext >&5
6448
6449ac_header_compiler=no
6450fi
6451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453echo "${ECHO_T}$ac_header_compiler" >&6
6454
6455# Is the header present?
6456echo "$as_me:$LINENO: checking $ac_header presence" >&5
6457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6458cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h. */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h. */
6464#include <$ac_header>
6465_ACEOF
6466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } >/dev/null; then
6474 if test -s conftest.err; then
6475 ac_cpp_err=$ac_c_preproc_warn_flag
6476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6477 else
6478 ac_cpp_err=
6479 fi
252b5132 6480else
5464f5a1 6481 ac_cpp_err=yes
252b5132 6482fi
5464f5a1
NN
6483if test -z "$ac_cpp_err"; then
6484 ac_header_preproc=yes
6485else
6486 echo "$as_me: failed program was:" >&5
6487sed 's/^/| /' conftest.$ac_ext >&5
6488
6489 ac_header_preproc=no
252b5132 6490fi
5464f5a1
NN
6491rm -f conftest.err conftest.$ac_ext
6492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493echo "${ECHO_T}$ac_header_preproc" >&6
6494
6495# So? What about this header?
6496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6497 yes:no: )
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6502 ac_header_preproc=yes
6503 ;;
6504 no:yes:* )
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6517 (
6518 cat <<\_ASBOX
6519## ------------------------------------------ ##
6520## Report this to the AC_PACKAGE_NAME lists. ##
6521## ------------------------------------------ ##
6522_ASBOX
6523 ) |
6524 sed "s/^/$as_me: WARNING: /" >&2
6525 ;;
6526esac
6527echo "$as_me:$LINENO: checking for $ac_header" >&5
6528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6531else
5464f5a1
NN
6532 eval "$as_ac_Header=\$ac_header_preproc"
6533fi
6534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6536
6537fi
6538if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539 cat >>confdefs.h <<_ACEOF
6540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541_ACEOF
6542
252b5132 6543fi
5464f5a1 6544
252b5132
RH
6545done
6546
5464f5a1
NN
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6558__argz_count __argz_stringify __argz_next
6559do
5464f5a1
NN
6560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6561echo "$as_me:$LINENO: checking for $ac_func" >&5
6562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6563if eval "test \"\${$as_ac_var+set}\" = set"; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566 cat >conftest.$ac_ext <<_ACEOF
6567/* confdefs.h. */
6568_ACEOF
6569cat confdefs.h >>conftest.$ac_ext
6570cat >>conftest.$ac_ext <<_ACEOF
6571/* end confdefs.h. */
6572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6574#define $ac_func innocuous_$ac_func
6575
252b5132 6576/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6577 which can conflict with char $ac_func (); below.
6578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6579 <limits.h> exists even on freestanding compilers. */
6580
6581#ifdef __STDC__
6582# include <limits.h>
6583#else
6584# include <assert.h>
6585#endif
6586
6587#undef $ac_func
6588
252b5132 6589/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
6590#ifdef __cplusplus
6591extern "C"
6592{
6593#endif
252b5132 6594/* We use char because int might match the return type of a gcc2
5464f5a1
NN
6595 builtin and then its argument prototype would still apply. */
6596char $ac_func ();
252b5132
RH
6597/* The GNU C library defines this for functions which it implements
6598 to always fail with ENOSYS. Some functions are actually named
6599 something starting with __ and the normal name is an alias. */
6600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6601choke me
6602#else
5464f5a1
NN
6603char (*f) () = $ac_func;
6604#endif
6605#ifdef __cplusplus
6606}
252b5132
RH
6607#endif
6608
5464f5a1
NN
6609int
6610main ()
6611{
6612return f != $ac_func;
6613 ;
6614 return 0;
6615}
6616_ACEOF
6617rm -f conftest.$ac_objext conftest$ac_exeext
6618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6619 (eval $ac_link) 2>conftest.er1
6620 ac_status=$?
6621 grep -v '^ *+' conftest.er1 >conftest.err
6622 rm -f conftest.er1
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } &&
e5a52504
MM
6626 { ac_try='test -z "$ac_c_werror_flag"
6627 || test ! -s conftest.err'
5464f5a1
NN
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 (eval $ac_try) 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; } &&
6633 { ac_try='test -s conftest$ac_exeext'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635 (eval $ac_try) 2>&5
6636 ac_status=$?
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; }; then
6639 eval "$as_ac_var=yes"
6640else
6641 echo "$as_me: failed program was:" >&5
6642sed 's/^/| /' conftest.$ac_ext >&5
6643
6644eval "$as_ac_var=no"
6645fi
6646rm -f conftest.err conftest.$ac_objext \
6647 conftest$ac_exeext conftest.$ac_ext
6648fi
6649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6650echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6651if test `eval echo '${'$as_ac_var'}'` = yes; then
6652 cat >>confdefs.h <<_ACEOF
6653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6654_ACEOF
252b5132 6655
252b5132
RH
6656fi
6657done
6658
b3baf5d0 6659
6be7c12c 6660 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5464f5a1
NN
6661
6662for ac_func in stpcpy
252b5132 6663do
5464f5a1
NN
6664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6665echo "$as_me:$LINENO: checking for $ac_func" >&5
6666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6667if eval "test \"\${$as_ac_var+set}\" = set"; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670 cat >conftest.$ac_ext <<_ACEOF
6671/* confdefs.h. */
6672_ACEOF
6673cat confdefs.h >>conftest.$ac_ext
6674cat >>conftest.$ac_ext <<_ACEOF
6675/* end confdefs.h. */
6676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6678#define $ac_func innocuous_$ac_func
6679
252b5132 6680/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6681 which can conflict with char $ac_func (); below.
6682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6683 <limits.h> exists even on freestanding compilers. */
6684
6685#ifdef __STDC__
6686# include <limits.h>
6687#else
6688# include <assert.h>
6689#endif
6be7c12c 6690
5464f5a1 6691#undef $ac_func
252b5132 6692
5464f5a1
NN
6693/* Override any gcc2 internal prototype to avoid an error. */
6694#ifdef __cplusplus
6695extern "C"
6696{
6697#endif
6698/* We use char because int might match the return type of a gcc2
6699 builtin and then its argument prototype would still apply. */
6700char $ac_func ();
252b5132
RH
6701/* The GNU C library defines this for functions which it implements
6702 to always fail with ENOSYS. Some functions are actually named
6703 something starting with __ and the normal name is an alias. */
6704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6705choke me
6706#else
5464f5a1
NN
6707char (*f) () = $ac_func;
6708#endif
6709#ifdef __cplusplus
6710}
252b5132
RH
6711#endif
6712
5464f5a1
NN
6713int
6714main ()
6715{
6716return f != $ac_func;
6717 ;
6718 return 0;
6719}
6720_ACEOF
6721rm -f conftest.$ac_objext conftest$ac_exeext
6722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>conftest.er1
6724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } &&
e5a52504
MM
6730 { ac_try='test -z "$ac_c_werror_flag"
6731 || test ! -s conftest.err'
5464f5a1
NN
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6733 (eval $ac_try) 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; } &&
6737 { ac_try='test -s conftest$ac_exeext'
6738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739 (eval $ac_try) 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; }; then
6743 eval "$as_ac_var=yes"
6744else
6745 echo "$as_me: failed program was:" >&5
6746sed 's/^/| /' conftest.$ac_ext >&5
6747
6748eval "$as_ac_var=no"
6749fi
6750rm -f conftest.err conftest.$ac_objext \
6751 conftest$ac_exeext conftest.$ac_ext
6752fi
6753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6755if test `eval echo '${'$as_ac_var'}'` = yes; then
6756 cat >>confdefs.h <<_ACEOF
6757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6758_ACEOF
252b5132 6759
252b5132
RH
6760fi
6761done
6762
6763 fi
6764 if test "${ac_cv_func_stpcpy}" = "yes"; then
5464f5a1
NN
6765
6766cat >>confdefs.h <<\_ACEOF
252b5132 6767#define HAVE_STPCPY 1
5464f5a1 6768_ACEOF
252b5132
RH
6769
6770 fi
6771
6772 if test $ac_cv_header_locale_h = yes; then
5464f5a1
NN
6773 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6774echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6775if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6777else
6778 cat >conftest.$ac_ext <<_ACEOF
6779/* confdefs.h. */
6780_ACEOF
6781cat confdefs.h >>conftest.$ac_ext
6782cat >>conftest.$ac_ext <<_ACEOF
6783/* end confdefs.h. */
252b5132 6784#include <locale.h>
5464f5a1
NN
6785int
6786main ()
6787{
252b5132 6788return LC_MESSAGES
5464f5a1
NN
6789 ;
6790 return 0;
6791}
6792_ACEOF
6793rm -f conftest.$ac_objext conftest$ac_exeext
6794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
e5a52504
MM
6802 { ac_try='test -z "$ac_c_werror_flag"
6803 || test ! -s conftest.err'
5464f5a1
NN
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; } &&
6809 { ac_try='test -s conftest$ac_exeext'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 (eval $ac_try) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
252b5132
RH
6815 am_cv_val_LC_MESSAGES=yes
6816else
5464f5a1
NN
6817 echo "$as_me: failed program was:" >&5
6818sed 's/^/| /' conftest.$ac_ext >&5
6819
6820am_cv_val_LC_MESSAGES=no
252b5132 6821fi
5464f5a1
NN
6822rm -f conftest.err conftest.$ac_objext \
6823 conftest$ac_exeext conftest.$ac_ext
252b5132 6824fi
5464f5a1
NN
6825echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6826echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6be7c12c 6827 if test $am_cv_val_LC_MESSAGES = yes; then
5464f5a1
NN
6828
6829cat >>confdefs.h <<\_ACEOF
252b5132 6830#define HAVE_LC_MESSAGES 1
5464f5a1 6831_ACEOF
252b5132
RH
6832
6833 fi
6834 fi
5464f5a1
NN
6835 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6836echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
6837 # Check whether --enable-nls or --disable-nls was given.
6838if test "${enable_nls+set}" = set; then
6839 enableval="$enable_nls"
6840 USE_NLS=$enableval
6841else
6842 USE_NLS=yes
5464f5a1
NN
6843fi;
6844 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6845echo "${ECHO_T}$USE_NLS" >&6
6be7c12c 6846
252b5132
RH
6847
6848 USE_INCLUDED_LIBINTL=no
6849
6850 if test "$USE_NLS" = "yes"; then
5464f5a1
NN
6851
6852cat >>confdefs.h <<\_ACEOF
252b5132 6853#define ENABLE_NLS 1
5464f5a1 6854_ACEOF
252b5132 6855
5464f5a1
NN
6856 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6857echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6858
6859# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
6860if test "${with_included_gettext+set}" = set; then
6861 withval="$with_included_gettext"
6862 nls_cv_force_use_gnu_gettext=$withval
6863else
6864 nls_cv_force_use_gnu_gettext=no
5464f5a1
NN
6865fi;
6866 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6867echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
6868
6869 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6870 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6871 nls_cv_header_intl=
6872 nls_cv_header_libgt=
6873 CATOBJEXT=NONE
6874
5464f5a1
NN
6875 if test "${ac_cv_header_libintl_h+set}" = set; then
6876 echo "$as_me:$LINENO: checking for libintl.h" >&5
6877echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6878if test "${ac_cv_header_libintl_h+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880fi
6881echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6882echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6883else
6884 # Is the header compilable?
6885echo "$as_me:$LINENO: checking libintl.h usability" >&5
6886echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6887cat >conftest.$ac_ext <<_ACEOF
6888/* confdefs.h. */
6889_ACEOF
6890cat confdefs.h >>conftest.$ac_ext
6891cat >>conftest.$ac_ext <<_ACEOF
6892/* end confdefs.h. */
6893$ac_includes_default
252b5132 6894#include <libintl.h>
5464f5a1
NN
6895_ACEOF
6896rm -f conftest.$ac_objext
6897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898 (eval $ac_compile) 2>conftest.er1
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
e5a52504
MM
6905 { ac_try='test -z "$ac_c_werror_flag"
6906 || test ! -s conftest.err'
5464f5a1
NN
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; } &&
6912 { ac_try='test -s conftest.$ac_objext'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
6918 ac_header_compiler=yes
6919else
6920 echo "$as_me: failed program was:" >&5
6921sed 's/^/| /' conftest.$ac_ext >&5
6922
6923ac_header_compiler=no
6924fi
6925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6926echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6927echo "${ECHO_T}$ac_header_compiler" >&6
6928
6929# Is the header present?
6930echo "$as_me:$LINENO: checking libintl.h presence" >&5
6931echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
6932cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938#include <libintl.h>
6939_ACEOF
6940if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6941 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6942 ac_status=$?
6943 grep -v '^ *+' conftest.er1 >conftest.err
6944 rm -f conftest.er1
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } >/dev/null; then
6948 if test -s conftest.err; then
6949 ac_cpp_err=$ac_c_preproc_warn_flag
6950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6951 else
6952 ac_cpp_err=
6953 fi
252b5132 6954else
5464f5a1 6955 ac_cpp_err=yes
252b5132 6956fi
5464f5a1
NN
6957if test -z "$ac_cpp_err"; then
6958 ac_header_preproc=yes
6959else
6960 echo "$as_me: failed program was:" >&5
6961sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 ac_header_preproc=no
252b5132 6964fi
5464f5a1
NN
6965rm -f conftest.err conftest.$ac_ext
6966echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6967echo "${ECHO_T}$ac_header_preproc" >&6
6968
6969# So? What about this header?
6970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6971 yes:no: )
6972 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6973echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6975echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6976 ac_header_preproc=yes
6977 ;;
6978 no:yes:* )
6979 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6980echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6981 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6982echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6983 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6984echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6985 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6986echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6987 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6988echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6989 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6990echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6991 (
6992 cat <<\_ASBOX
6993## ------------------------------------------ ##
6994## Report this to the AC_PACKAGE_NAME lists. ##
6995## ------------------------------------------ ##
6996_ASBOX
6997 ) |
6998 sed "s/^/$as_me: WARNING: /" >&2
6999 ;;
7000esac
7001echo "$as_me:$LINENO: checking for libintl.h" >&5
7002echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7003if test "${ac_cv_header_libintl_h+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7005else
5464f5a1
NN
7006 ac_cv_header_libintl_h=$ac_header_preproc
7007fi
7008echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7009echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7010
7011fi
7012if test $ac_cv_header_libintl_h = yes; then
7013 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7014echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7015if test "${gt_cv_func_gettext_libc+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018 cat >conftest.$ac_ext <<_ACEOF
7019/* confdefs.h. */
7020_ACEOF
7021cat confdefs.h >>conftest.$ac_ext
7022cat >>conftest.$ac_ext <<_ACEOF
7023/* end confdefs.h. */
252b5132 7024#include <libintl.h>
5464f5a1
NN
7025int
7026main ()
7027{
252b5132 7028return (int) gettext ("")
5464f5a1
NN
7029 ;
7030 return 0;
7031}
7032_ACEOF
7033rm -f conftest.$ac_objext conftest$ac_exeext
7034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035 (eval $ac_link) 2>conftest.er1
7036 ac_status=$?
7037 grep -v '^ *+' conftest.er1 >conftest.err
7038 rm -f conftest.er1
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
e5a52504
MM
7042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
5464f5a1
NN
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest$ac_exeext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
252b5132
RH
7055 gt_cv_func_gettext_libc=yes
7056else
5464f5a1
NN
7057 echo "$as_me: failed program was:" >&5
7058sed 's/^/| /' conftest.$ac_ext >&5
7059
7060gt_cv_func_gettext_libc=no
252b5132 7061fi
5464f5a1
NN
7062rm -f conftest.err conftest.$ac_objext \
7063 conftest$ac_exeext conftest.$ac_ext
252b5132 7064fi
5464f5a1
NN
7065echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7066echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7067
7068 if test "$gt_cv_func_gettext_libc" != "yes"; then
5464f5a1
NN
7069 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7070echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7071if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7073else
5464f5a1 7074 ac_check_lib_save_LIBS=$LIBS
252b5132 7075LIBS="-lintl $LIBS"
5464f5a1
NN
7076cat >conftest.$ac_ext <<_ACEOF
7077/* confdefs.h. */
7078_ACEOF
7079cat confdefs.h >>conftest.$ac_ext
7080cat >>conftest.$ac_ext <<_ACEOF
7081/* end confdefs.h. */
7082
252b5132 7083/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7084#ifdef __cplusplus
7085extern "C"
7086#endif
252b5132 7087/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7088 builtin and then its argument prototype would still apply. */
7089char bindtextdomain ();
7090int
7091main ()
7092{
7093bindtextdomain ();
7094 ;
7095 return 0;
7096}
7097_ACEOF
7098rm -f conftest.$ac_objext conftest$ac_exeext
7099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7100 (eval $ac_link) 2>conftest.er1
7101 ac_status=$?
7102 grep -v '^ *+' conftest.er1 >conftest.err
7103 rm -f conftest.er1
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } &&
e5a52504
MM
7107 { ac_try='test -z "$ac_c_werror_flag"
7108 || test ! -s conftest.err'
5464f5a1
NN
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; } &&
7114 { ac_try='test -s conftest$ac_exeext'
7115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116 (eval $ac_try) 2>&5
7117 ac_status=$?
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); }; }; then
7120 ac_cv_lib_intl_bindtextdomain=yes
7121else
7122 echo "$as_me: failed program was:" >&5
7123sed 's/^/| /' conftest.$ac_ext >&5
7124
7125ac_cv_lib_intl_bindtextdomain=no
7126fi
7127rm -f conftest.err conftest.$ac_objext \
7128 conftest$ac_exeext conftest.$ac_ext
7129LIBS=$ac_check_lib_save_LIBS
7130fi
7131echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7132echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7133if test $ac_cv_lib_intl_bindtextdomain = yes; then
7134 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7135echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7136if test "${gt_cv_func_gettext_libintl+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138else
7139 cat >conftest.$ac_ext <<_ACEOF
7140/* confdefs.h. */
7141_ACEOF
7142cat confdefs.h >>conftest.$ac_ext
7143cat >>conftest.$ac_ext <<_ACEOF
7144/* end confdefs.h. */
252b5132 7145
5464f5a1
NN
7146int
7147main ()
7148{
252b5132 7149return (int) gettext ("")
5464f5a1
NN
7150 ;
7151 return 0;
7152}
7153_ACEOF
7154rm -f conftest.$ac_objext conftest$ac_exeext
7155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7156 (eval $ac_link) 2>conftest.er1
7157 ac_status=$?
7158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
e5a52504
MM
7163 { ac_try='test -z "$ac_c_werror_flag"
7164 || test ! -s conftest.err'
5464f5a1
NN
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try='test -s conftest$ac_exeext'
7171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7172 (eval $ac_try) 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
252b5132
RH
7176 gt_cv_func_gettext_libintl=yes
7177else
5464f5a1
NN
7178 echo "$as_me: failed program was:" >&5
7179sed 's/^/| /' conftest.$ac_ext >&5
7180
7181gt_cv_func_gettext_libintl=no
252b5132 7182fi
5464f5a1
NN
7183rm -f conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
252b5132 7185fi
5464f5a1
NN
7186echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7187echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7188fi
7189
7190 fi
7191
7192 if test "$gt_cv_func_gettext_libc" = "yes" \
7193 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5464f5a1
NN
7194
7195cat >>confdefs.h <<\_ACEOF
252b5132 7196#define HAVE_GETTEXT 1
5464f5a1 7197_ACEOF
252b5132
RH
7198
7199 # Extract the first word of "msgfmt", so it can be a program name with args.
7200set dummy msgfmt; ac_word=$2
5464f5a1
NN
7201echo "$as_me:$LINENO: checking for $ac_word" >&5
7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203if test "${ac_cv_path_MSGFMT+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7205else
7206 case "$MSGFMT" in
7207 /*)
7208 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7209 ;;
7210 *)
7211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7212 for ac_dir in $PATH; do
7213 test -z "$ac_dir" && ac_dir=.
7214 if test -f $ac_dir/$ac_word; then
7215 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7216 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7217 break
7218 fi
7219 fi
7220 done
7221 IFS="$ac_save_ifs"
7222 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7223 ;;
7224esac
7225fi
7226MSGFMT="$ac_cv_path_MSGFMT"
7227if test -n "$MSGFMT"; then
5464f5a1
NN
7228 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7229echo "${ECHO_T}$MSGFMT" >&6
252b5132 7230else
5464f5a1
NN
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
252b5132
RH
7233fi
7234 if test "$MSGFMT" != "no"; then
5464f5a1
NN
7235
7236for ac_func in dcgettext
252b5132 7237do
5464f5a1
NN
7238as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7239echo "$as_me:$LINENO: checking for $ac_func" >&5
7240echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7241if eval "test \"\${$as_ac_var+set}\" = set"; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243else
7244 cat >conftest.$ac_ext <<_ACEOF
7245/* confdefs.h. */
7246_ACEOF
7247cat confdefs.h >>conftest.$ac_ext
7248cat >>conftest.$ac_ext <<_ACEOF
7249/* end confdefs.h. */
7250/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7252#define $ac_func innocuous_$ac_func
7253
252b5132 7254/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7255 which can conflict with char $ac_func (); below.
7256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7257 <limits.h> exists even on freestanding compilers. */
7258
7259#ifdef __STDC__
7260# include <limits.h>
7261#else
7262# include <assert.h>
7263#endif
6be7c12c 7264
5464f5a1 7265#undef $ac_func
252b5132 7266
5464f5a1
NN
7267/* Override any gcc2 internal prototype to avoid an error. */
7268#ifdef __cplusplus
7269extern "C"
7270{
7271#endif
7272/* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */
7274char $ac_func ();
252b5132
RH
7275/* The GNU C library defines this for functions which it implements
7276 to always fail with ENOSYS. Some functions are actually named
7277 something starting with __ and the normal name is an alias. */
7278#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7279choke me
7280#else
5464f5a1
NN
7281char (*f) () = $ac_func;
7282#endif
7283#ifdef __cplusplus
7284}
252b5132
RH
7285#endif
7286
5464f5a1
NN
7287int
7288main ()
7289{
7290return f != $ac_func;
7291 ;
7292 return 0;
7293}
7294_ACEOF
7295rm -f conftest.$ac_objext conftest$ac_exeext
7296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7297 (eval $ac_link) 2>conftest.er1
7298 ac_status=$?
7299 grep -v '^ *+' conftest.er1 >conftest.err
7300 rm -f conftest.er1
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
e5a52504
MM
7304 { ac_try='test -z "$ac_c_werror_flag"
7305 || test ! -s conftest.err'
5464f5a1
NN
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest$ac_exeext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 (eval $ac_try) 2>&5
7314 ac_status=$?
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 eval "$as_ac_var=yes"
7318else
7319 echo "$as_me: failed program was:" >&5
7320sed 's/^/| /' conftest.$ac_ext >&5
7321
7322eval "$as_ac_var=no"
7323fi
7324rm -f conftest.err conftest.$ac_objext \
7325 conftest$ac_exeext conftest.$ac_ext
7326fi
7327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7328echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7329if test `eval echo '${'$as_ac_var'}'` = yes; then
7330 cat >>confdefs.h <<_ACEOF
7331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7332_ACEOF
252b5132 7333
252b5132
RH
7334fi
7335done
7336
7337 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7338set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7339echo "$as_me:$LINENO: checking for $ac_word" >&5
7340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7341if test "${ac_cv_path_GMSGFMT+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7343else
5464f5a1
NN
7344 case $GMSGFMT in
7345 [\\/]* | ?:[\\/]*)
252b5132
RH
7346 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7347 ;;
252b5132 7348 *)
5464f5a1
NN
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350for as_dir in $PATH
7351do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360done
7361done
7362
252b5132
RH
7363 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7364 ;;
7365esac
7366fi
5464f5a1
NN
7367GMSGFMT=$ac_cv_path_GMSGFMT
7368
252b5132 7369if test -n "$GMSGFMT"; then
5464f5a1
NN
7370 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7371echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7372else
5464f5a1
NN
7373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
252b5132
RH
7375fi
7376
7377 # Extract the first word of "xgettext", so it can be a program name with args.
7378set dummy xgettext; ac_word=$2
5464f5a1
NN
7379echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7381if test "${ac_cv_path_XGETTEXT+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7383else
7384 case "$XGETTEXT" in
7385 /*)
7386 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7387 ;;
7388 *)
7389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7390 for ac_dir in $PATH; do
7391 test -z "$ac_dir" && ac_dir=.
7392 if test -f $ac_dir/$ac_word; then
7393 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7394 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7395 break
7396 fi
7397 fi
7398 done
7399 IFS="$ac_save_ifs"
7400 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7401 ;;
7402esac
7403fi
7404XGETTEXT="$ac_cv_path_XGETTEXT"
7405if test -n "$XGETTEXT"; then
5464f5a1
NN
7406 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7407echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7408else
5464f5a1
NN
7409 echo "$as_me:$LINENO: result: no" >&5
7410echo "${ECHO_T}no" >&6
252b5132
RH
7411fi
7412
5464f5a1
NN
7413 cat >conftest.$ac_ext <<_ACEOF
7414/* confdefs.h. */
7415_ACEOF
7416cat confdefs.h >>conftest.$ac_ext
7417cat >>conftest.$ac_ext <<_ACEOF
7418/* end confdefs.h. */
252b5132 7419
5464f5a1
NN
7420int
7421main ()
7422{
252b5132
RH
7423extern int _nl_msg_cat_cntr;
7424 return _nl_msg_cat_cntr
5464f5a1
NN
7425 ;
7426 return 0;
7427}
7428_ACEOF
7429rm -f conftest.$ac_objext conftest$ac_exeext
7430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431 (eval $ac_link) 2>conftest.er1
7432 ac_status=$?
7433 grep -v '^ *+' conftest.er1 >conftest.err
7434 rm -f conftest.er1
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
e5a52504
MM
7438 { ac_try='test -z "$ac_c_werror_flag"
7439 || test ! -s conftest.err'
5464f5a1
NN
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441 (eval $ac_try) 2>&5
7442 ac_status=$?
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; } &&
7445 { ac_try='test -s conftest$ac_exeext'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 (eval $ac_try) 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
252b5132
RH
7451 CATOBJEXT=.gmo
7452 DATADIRNAME=share
7453else
5464f5a1
NN
7454 echo "$as_me: failed program was:" >&5
7455sed 's/^/| /' conftest.$ac_ext >&5
7456
7457CATOBJEXT=.mo
252b5132
RH
7458 DATADIRNAME=lib
7459fi
5464f5a1
NN
7460rm -f conftest.err conftest.$ac_objext \
7461 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7462 INSTOBJEXT=.mo
7463 fi
7464 fi
5464f5a1 7465
b3baf5d0 7466fi
252b5132 7467
6be7c12c 7468
5464f5a1
NN
7469
7470
252b5132
RH
7471 if test "$CATOBJEXT" = "NONE"; then
7472 nls_cv_use_gnu_gettext=yes
7473 fi
7474 fi
7475
7476 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7477 INTLOBJS="\$(GETTOBJS)"
7478 # Extract the first word of "msgfmt", so it can be a program name with args.
7479set dummy msgfmt; ac_word=$2
5464f5a1
NN
7480echo "$as_me:$LINENO: checking for $ac_word" >&5
7481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7482if test "${ac_cv_path_MSGFMT+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7484else
7485 case "$MSGFMT" in
7486 /*)
7487 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7488 ;;
7489 *)
7490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7491 for ac_dir in $PATH; do
7492 test -z "$ac_dir" && ac_dir=.
7493 if test -f $ac_dir/$ac_word; then
7494 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7495 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7496 break
7497 fi
7498 fi
7499 done
7500 IFS="$ac_save_ifs"
7501 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7502 ;;
7503esac
7504fi
7505MSGFMT="$ac_cv_path_MSGFMT"
7506if test -n "$MSGFMT"; then
5464f5a1
NN
7507 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7508echo "${ECHO_T}$MSGFMT" >&6
252b5132 7509else
5464f5a1
NN
7510 echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6
252b5132
RH
7512fi
7513
7514 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7515set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7516echo "$as_me:$LINENO: checking for $ac_word" >&5
7517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7518if test "${ac_cv_path_GMSGFMT+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7520else
5464f5a1
NN
7521 case $GMSGFMT in
7522 [\\/]* | ?:[\\/]*)
252b5132
RH
7523 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7524 ;;
252b5132 7525 *)
5464f5a1
NN
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527for as_dir in $PATH
7528do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7536 fi
7537done
7538done
7539
252b5132
RH
7540 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7541 ;;
7542esac
7543fi
5464f5a1
NN
7544GMSGFMT=$ac_cv_path_GMSGFMT
7545
252b5132 7546if test -n "$GMSGFMT"; then
5464f5a1
NN
7547 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7548echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7549else
5464f5a1
NN
7550 echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6
252b5132
RH
7552fi
7553
7554 # Extract the first word of "xgettext", so it can be a program name with args.
7555set dummy xgettext; ac_word=$2
5464f5a1
NN
7556echo "$as_me:$LINENO: checking for $ac_word" >&5
7557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7558if test "${ac_cv_path_XGETTEXT+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7560else
7561 case "$XGETTEXT" in
7562 /*)
7563 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7564 ;;
7565 *)
7566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7567 for ac_dir in $PATH; do
7568 test -z "$ac_dir" && ac_dir=.
7569 if test -f $ac_dir/$ac_word; then
7570 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7571 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7572 break
7573 fi
7574 fi
7575 done
7576 IFS="$ac_save_ifs"
7577 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7578 ;;
7579esac
7580fi
7581XGETTEXT="$ac_cv_path_XGETTEXT"
7582if test -n "$XGETTEXT"; then
5464f5a1
NN
7583 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7584echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7585else
5464f5a1
NN
7586 echo "$as_me:$LINENO: result: no" >&5
7587echo "${ECHO_T}no" >&6
252b5132
RH
7588fi
7589
5464f5a1 7590
252b5132
RH
7591 USE_INCLUDED_LIBINTL=yes
7592 CATOBJEXT=.gmo
7593 INSTOBJEXT=.mo
7594 DATADIRNAME=share
7595 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7596 INTLLIBS=$INTLDEPS
7597 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7598 nls_cv_header_intl=libintl.h
7599 nls_cv_header_libgt=libgettext.h
7600 fi
7601
7602 if test "$XGETTEXT" != ":"; then
7603 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7604 : ;
7605 else
5464f5a1
NN
7606 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7607echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
7608 XGETTEXT=":"
7609 fi
7610 fi
7611
7612 # We need to process the po/ directory.
7613 POSUB=po
7614 else
7615 DATADIRNAME=share
7616 nls_cv_header_intl=libintl.h
7617 nls_cv_header_libgt=libgettext.h
7618 fi
7619
7620 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7621 # because some of the sources are only built for this goal.
7622 if test "$PACKAGE" = gettext; then
7623 USE_NLS=yes
7624 USE_INCLUDED_LIBINTL=yes
7625 fi
7626
7627 for lang in $ALL_LINGUAS; do
7628 GMOFILES="$GMOFILES $lang.gmo"
7629 POFILES="$POFILES $lang.po"
7630 done
7631
5464f5a1
NN
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
6be7c12c 7644
252b5132
RH
7645 if test "x$CATOBJEXT" != "x"; then
7646 if test "x$ALL_LINGUAS" = "x"; then
7647 LINGUAS=
7648 else
5464f5a1
NN
7649 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7650echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
7651 NEW_LINGUAS=
7652 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7653 case "$ALL_LINGUAS" in
7654 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7655 esac
7656 done
7657 LINGUAS=$NEW_LINGUAS
5464f5a1
NN
7658 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7659echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
7660 fi
7661
7662 if test -n "$LINGUAS"; then
7663 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7664 fi
7665 fi
7666
7667 if test $ac_cv_header_locale_h = yes; then
7668 INCLUDE_LOCALE_H="#include <locale.h>"
7669 else
7670 INCLUDE_LOCALE_H="\
7671/* The system does not provide the header <locale.h>. Take care yourself. */"
7672 fi
5464f5a1 7673
252b5132
RH
7674
7675 if test -f $srcdir/po2tbl.sed.in; then
7676 if test "$CATOBJEXT" = ".cat"; then
5464f5a1
NN
7677 if test "${ac_cv_header_linux_version_h+set}" = set; then
7678 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7679echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7680if test "${ac_cv_header_linux_version_h+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7682fi
7683echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7684echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7685else
7686 # Is the header compilable?
7687echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7688echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7689cat >conftest.$ac_ext <<_ACEOF
7690/* confdefs.h. */
7691_ACEOF
7692cat confdefs.h >>conftest.$ac_ext
7693cat >>conftest.$ac_ext <<_ACEOF
7694/* end confdefs.h. */
7695$ac_includes_default
252b5132 7696#include <linux/version.h>
5464f5a1
NN
7697_ACEOF
7698rm -f conftest.$ac_objext
7699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>conftest.er1
7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } &&
e5a52504
MM
7707 { ac_try='test -z "$ac_c_werror_flag"
7708 || test ! -s conftest.err'
5464f5a1
NN
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; } &&
7714 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7720 ac_header_compiler=yes
7721else
7722 echo "$as_me: failed program was:" >&5
7723sed 's/^/| /' conftest.$ac_ext >&5
7724
7725ac_header_compiler=no
7726fi
7727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7728echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7729echo "${ECHO_T}$ac_header_compiler" >&6
7730
7731# Is the header present?
7732echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7733echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7734cat >conftest.$ac_ext <<_ACEOF
7735/* confdefs.h. */
7736_ACEOF
7737cat confdefs.h >>conftest.$ac_ext
7738cat >>conftest.$ac_ext <<_ACEOF
7739/* end confdefs.h. */
7740#include <linux/version.h>
7741_ACEOF
7742if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } >/dev/null; then
7750 if test -s conftest.err; then
7751 ac_cpp_err=$ac_c_preproc_warn_flag
7752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7753 else
7754 ac_cpp_err=
7755 fi
252b5132 7756else
5464f5a1 7757 ac_cpp_err=yes
252b5132 7758fi
5464f5a1
NN
7759if test -z "$ac_cpp_err"; then
7760 ac_header_preproc=yes
7761else
7762 echo "$as_me: failed program was:" >&5
7763sed 's/^/| /' conftest.$ac_ext >&5
7764
7765 ac_header_preproc=no
7766fi
7767rm -f conftest.err conftest.$ac_ext
7768echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7769echo "${ECHO_T}$ac_header_preproc" >&6
7770
7771# So? What about this header?
7772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7773 yes:no: )
7774 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7775echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7776 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7777echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7778 ac_header_preproc=yes
7779 ;;
7780 no:yes:* )
7781 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7782echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7784echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
7785 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7786echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7787 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
7788echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7789 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7790echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
7791 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
7792echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
7793 (
7794 cat <<\_ASBOX
7795## ------------------------------------------ ##
7796## Report this to the AC_PACKAGE_NAME lists. ##
7797## ------------------------------------------ ##
7798_ASBOX
7799 ) |
7800 sed "s/^/$as_me: WARNING: /" >&2
7801 ;;
7802esac
7803echo "$as_me:$LINENO: checking for linux/version.h" >&5
7804echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7805if test "${ac_cv_header_linux_version_h+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808 ac_cv_header_linux_version_h=$ac_header_preproc
7809fi
7810echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7811echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7812
252b5132 7813fi
5464f5a1 7814if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
7815 msgformat=linux
7816else
5464f5a1 7817 msgformat=xopen
252b5132
RH
7818fi
7819
6be7c12c 7820
5464f5a1 7821
252b5132
RH
7822 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
7823 fi
7824 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7825 $srcdir/po2tbl.sed.in > po2tbl.sed
7826 fi
7827
7828 if test "$PACKAGE" = "gettext"; then
7829 GT_NO="#NO#"
7830 GT_YES=
7831 else
7832 GT_NO=
7833 GT_YES="#YES#"
7834 fi
5464f5a1
NN
7835
7836
252b5132
RH
7837
7838 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5464f5a1 7839
252b5132
RH
7840
7841 l=
5464f5a1 7842
252b5132 7843
3c3bdf30 7844 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
7845 test -d po || mkdir po
7846 if test "x$srcdir" != "x."; then
7847 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7848 posrcprefix="$srcdir/"
7849 else
7850 posrcprefix="../$srcdir/"
7851 fi
7852 else
7853 posrcprefix="../"
7854 fi
7855 rm -f po/POTFILES
7856 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7857 < $srcdir/po/POTFILES.in > po/POTFILES
7858 fi
5464f5a1 7859
252b5132
RH
7860
7861# Permit host specific settings.
7862. ${srcdir}/configure.host
7863
6be7c12c 7864
252b5132
RH
7865# Find a good install program. We prefer a C program (faster),
7866# so one script is as good as another. But avoid the broken or
7867# incompatible versions:
7868# SysV /etc/install, /usr/sbin/install
7869# SunOS /usr/etc/install
7870# IRIX /sbin/install
7871# AIX /bin/install
5464f5a1 7872# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
7873# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7874# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7875# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 7876# OS/2's system install, which has a completely different semantic
252b5132 7877# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
7878echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7879echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 7880if test -z "$INSTALL"; then
5464f5a1
NN
7881if test "${ac_cv_path_install+set}" = set; then
7882 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7883else
5464f5a1
NN
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 # Account for people who put trailing slashes in PATH elements.
7890case $as_dir/ in
7891 ./ | .// | /cC/* | \
7892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7893 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7894 /usr/ucb/* ) ;;
7895 *)
7896 # OSF1 and SCO ODT 3.0 have their own names for install.
7897 # Don't use installbsd from OSF since it installs stuff as root
7898 # by default.
7899 for ac_prog in ginstall scoinst install; do
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 7902 if test $ac_prog = install &&
5464f5a1 7903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
7904 # AIX install. It has an incompatible calling convention.
7905 :
5464f5a1
NN
7906 elif test $ac_prog = install &&
7907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7908 # program-specific install script used by HP pwplus--don't use.
7909 :
252b5132 7910 else
5464f5a1
NN
7911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7912 break 3
252b5132
RH
7913 fi
7914 fi
7915 done
5464f5a1
NN
7916 done
7917 ;;
7918esac
7919done
7920
252b5132
RH
7921
7922fi
7923 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 7924 INSTALL=$ac_cv_path_install
252b5132
RH
7925 else
7926 # As a last resort, use the slow shell script. We don't cache a
7927 # path for INSTALL within a source directory, because that will
7928 # break other packages using the cache if that directory is
7929 # removed, or if the path is relative.
5464f5a1 7930 INSTALL=$ac_install_sh
252b5132
RH
7931 fi
7932fi
5464f5a1
NN
7933echo "$as_me:$LINENO: result: $INSTALL" >&5
7934echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
7935
7936# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7937# It thinks the first close brace ends the variable substitution.
7938test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7939
5464f5a1 7940test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
7941
7942test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7943
6be7c12c 7944
252b5132 7945BFD_HOST_64BIT_LONG=0
ec317fb1 7946BFD_HOST_LONG_LONG=0
252b5132
RH
7947BFD_HOST_64_BIT_DEFINED=0
7948BFD_HOST_64_BIT=
7949BFD_HOST_U_64_BIT=
252b5132 7950
5464f5a1
NN
7951echo "$as_me:$LINENO: checking for long long" >&5
7952echo $ECHO_N "checking for long long... $ECHO_C" >&6
7953if test "${bfd_cv_has_long_long+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 7955else
5464f5a1
NN
7956 cat >conftest.$ac_ext <<_ACEOF
7957/* confdefs.h. */
7958_ACEOF
7959cat confdefs.h >>conftest.$ac_ext
7960cat >>conftest.$ac_ext <<_ACEOF
7961/* end confdefs.h. */
ec317fb1 7962
5464f5a1
NN
7963int
7964main ()
7965{
ec317fb1 7966unsigned long long ll = 18446744073709551615ULL;
5464f5a1
NN
7967 ;
7968 return 0;
7969}
7970_ACEOF
7971rm -f conftest.$ac_objext
7972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973 (eval $ac_compile) 2>conftest.er1
7974 ac_status=$?
7975 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -f conftest.er1
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
e5a52504
MM
7980 { ac_try='test -z "$ac_c_werror_flag"
7981 || test ! -s conftest.err'
5464f5a1
NN
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; } &&
7987 { ac_try='test -s conftest.$ac_objext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 (eval $ac_try) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
ec317fb1
ILT
7993 bfd_cv_has_long_long=yes
7994else
5464f5a1
NN
7995 echo "$as_me: failed program was:" >&5
7996sed 's/^/| /' conftest.$ac_ext >&5
7997
7998bfd_cv_has_long_long=no
ec317fb1 7999fi
5464f5a1 8000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ec317fb1
ILT
8001fi
8002
5464f5a1
NN
8003echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8004echo "${ECHO_T}$bfd_cv_has_long_long" >&6
ec317fb1
ILT
8005if test $bfd_cv_has_long_long = yes; then
8006 BFD_HOST_LONG_LONG=1
5464f5a1
NN
8007 echo "$as_me:$LINENO: checking size of long long" >&5
8008echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8009if test "${ac_cv_sizeof_long_long+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8011else
8012 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8013 cat >conftest.$ac_ext <<_ACEOF
8014/* confdefs.h. */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h. */
6726e1ea
L
8019#include "confdefs.h"
8020#include <sys/types.h>
8021
8022
5464f5a1
NN
8023int
8024main ()
8025{
6726e1ea 8026switch (0) case 0: case (sizeof (long long) == $ac_size):;
5464f5a1
NN
8027 ;
8028 return 0;
8029}
8030_ACEOF
8031rm -f conftest.$ac_objext
8032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033 (eval $ac_compile) 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
e5a52504
MM
8040 { ac_try='test -z "$ac_c_werror_flag"
8041 || test ! -s conftest.err'
5464f5a1
NN
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; } &&
8047 { ac_try='test -s conftest.$ac_objext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 (eval $ac_try) 2>&5
8050 ac_status=$?
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
6726e1ea
L
8053 ac_cv_sizeof_long_long=$ac_size
8054else
5464f5a1
NN
8055 echo "$as_me: failed program was:" >&5
8056sed 's/^/| /' conftest.$ac_ext >&5
8057
6726e1ea 8058fi
5464f5a1 8059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8060 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8061done
8062
8063fi
8064
8065if test x$ac_cv_sizeof_long_long = x ; then
5464f5a1
NN
8066 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8067echo "$as_me: error: cannot determine a size for long long" >&2;}
8068 { (exit 1); exit 1; }; }
6726e1ea 8069fi
5464f5a1
NN
8070echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8071echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8072
8073cat >>confdefs.h <<_ACEOF
6726e1ea 8074#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 8075_ACEOF
6726e1ea
L
8076
8077
8078fi
8079
5464f5a1
NN
8080echo "$as_me:$LINENO: checking size of long" >&5
8081echo $ECHO_N "checking size of long... $ECHO_C" >&6
8082if test "${ac_cv_sizeof_long+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8084else
8085 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8086 cat >conftest.$ac_ext <<_ACEOF
8087/* confdefs.h. */
8088_ACEOF
8089cat confdefs.h >>conftest.$ac_ext
8090cat >>conftest.$ac_ext <<_ACEOF
8091/* end confdefs.h. */
6726e1ea
L
8092#include "confdefs.h"
8093#include <sys/types.h>
8094
8095
5464f5a1
NN
8096int
8097main ()
8098{
6726e1ea 8099switch (0) case 0: case (sizeof (long) == $ac_size):;
5464f5a1
NN
8100 ;
8101 return 0;
8102}
8103_ACEOF
8104rm -f conftest.$ac_objext
8105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8106 (eval $ac_compile) 2>conftest.er1
8107 ac_status=$?
8108 grep -v '^ *+' conftest.er1 >conftest.err
8109 rm -f conftest.er1
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } &&
e5a52504
MM
8113 { ac_try='test -z "$ac_c_werror_flag"
8114 || test ! -s conftest.err'
5464f5a1
NN
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 (eval $ac_try) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; } &&
8120 { ac_try='test -s conftest.$ac_objext'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 (eval $ac_try) 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; }; then
6726e1ea
L
8126 ac_cv_sizeof_long=$ac_size
8127else
5464f5a1
NN
8128 echo "$as_me: failed program was:" >&5
8129sed 's/^/| /' conftest.$ac_ext >&5
8130
6726e1ea 8131fi
5464f5a1 8132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8133 if test x$ac_cv_sizeof_long != x ; then break; fi
8134done
8135
8136fi
8137
8138if test x$ac_cv_sizeof_long = x ; then
5464f5a1
NN
8139 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8140echo "$as_me: error: cannot determine a size for long" >&2;}
8141 { (exit 1); exit 1; }; }
6726e1ea 8142fi
5464f5a1
NN
8143echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8144echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8145
8146cat >>confdefs.h <<_ACEOF
6726e1ea 8147#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 8148_ACEOF
6726e1ea
L
8149
8150
8151if test "x${ac_cv_sizeof_long}" = "x8"; then
8152 host64=true
ccba357f
AM
8153 BFD_HOST_64BIT_LONG=1
8154 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8155 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
6726e1ea 8156elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
ccba357f
AM
8157 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8158 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
6726e1ea
L
8159fi
8160
ccba357f 8161if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
6726e1ea 8162 BFD_HOST_64_BIT_DEFINED=1
ccba357f
AM
8163 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8164 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
ec317fb1
ILT
8165fi
8166
8167
8168
6be7c12c
AO
8169
8170
8171
8172
252b5132
RH
8173# Put a plausible default for CC_FOR_BUILD in Makefile.
8174if test -z "$CC_FOR_BUILD"; then
8175 if test "x$cross_compiling" = "xno"; then
8176 CC_FOR_BUILD='$(CC)'
8177 else
8178 CC_FOR_BUILD=gcc
8179 fi
8180fi
8181
8182# Also set EXEEXT_FOR_BUILD.
8183if test "x$cross_compiling" = "xno"; then
8184 EXEEXT_FOR_BUILD='$(EXEEXT)'
8185else
5464f5a1
NN
8186 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8187echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8188if test "${bfd_cv_build_exeext+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8190else
aab08431
ILT
8191 rm -f conftest*
8192 echo 'int main () { return 0; }' > conftest.c
8193 bfd_cv_build_exeext=
8194 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8195 for file in conftest.*; do
8196 case $file in
8197 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8198 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8199 esac
8200 done
8201 rm -f conftest*
8202 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 8203fi
5464f5a1
NN
8204echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8205echo "${ECHO_T}$bfd_cv_build_exeext" >&6
252b5132
RH
8206 EXEEXT_FOR_BUILD=""
8207 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8208fi
8209
6be7c12c 8210
5464f5a1
NN
8211
8212
8213
8214
8215
8216
8217for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
252b5132 8218do
5464f5a1
NN
8219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8220if eval "test \"\${$as_ac_Header+set}\" = set"; then
8221 echo "$as_me:$LINENO: checking for $ac_header" >&5
8222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8223if eval "test \"\${$as_ac_Header+set}\" = set"; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225fi
8226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8228else
8229 # Is the header compilable?
8230echo "$as_me:$LINENO: checking $ac_header usability" >&5
8231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8232cat >conftest.$ac_ext <<_ACEOF
8233/* confdefs.h. */
8234_ACEOF
8235cat confdefs.h >>conftest.$ac_ext
8236cat >>conftest.$ac_ext <<_ACEOF
8237/* end confdefs.h. */
8238$ac_includes_default
8239#include <$ac_header>
8240_ACEOF
8241rm -f conftest.$ac_objext
8242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8243 (eval $ac_compile) 2>conftest.er1
8244 ac_status=$?
8245 grep -v '^ *+' conftest.er1 >conftest.err
8246 rm -f conftest.er1
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } &&
e5a52504
MM
8250 { ac_try='test -z "$ac_c_werror_flag"
8251 || test ! -s conftest.err'
5464f5a1
NN
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 (eval $ac_try) 2>&5
8254 ac_status=$?
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; } &&
8257 { ac_try='test -s conftest.$ac_objext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8263 ac_header_compiler=yes
8264else
8265 echo "$as_me: failed program was:" >&5
8266sed 's/^/| /' conftest.$ac_ext >&5
8267
8268ac_header_compiler=no
8269fi
8270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8272echo "${ECHO_T}$ac_header_compiler" >&6
8273
8274# Is the header present?
8275echo "$as_me:$LINENO: checking $ac_header presence" >&5
8276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8277cat >conftest.$ac_ext <<_ACEOF
8278/* confdefs.h. */
8279_ACEOF
8280cat confdefs.h >>conftest.$ac_ext
8281cat >>conftest.$ac_ext <<_ACEOF
8282/* end confdefs.h. */
8283#include <$ac_header>
8284_ACEOF
8285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } >/dev/null; then
8293 if test -s conftest.err; then
8294 ac_cpp_err=$ac_c_preproc_warn_flag
8295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8296 else
8297 ac_cpp_err=
8298 fi
252b5132 8299else
5464f5a1 8300 ac_cpp_err=yes
252b5132 8301fi
5464f5a1
NN
8302if test -z "$ac_cpp_err"; then
8303 ac_header_preproc=yes
8304else
8305 echo "$as_me: failed program was:" >&5
8306sed 's/^/| /' conftest.$ac_ext >&5
8307
8308 ac_header_preproc=no
252b5132 8309fi
5464f5a1
NN
8310rm -f conftest.err conftest.$ac_ext
8311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8312echo "${ECHO_T}$ac_header_preproc" >&6
8313
8314# So? What about this header?
8315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8316 yes:no: )
8317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8321 ac_header_preproc=yes
8322 ;;
8323 no:yes:* )
8324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8327echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8331echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8336 (
8337 cat <<\_ASBOX
8338## ------------------------------------------ ##
8339## Report this to the AC_PACKAGE_NAME lists. ##
8340## ------------------------------------------ ##
8341_ASBOX
8342 ) |
8343 sed "s/^/$as_me: WARNING: /" >&2
8344 ;;
8345esac
8346echo "$as_me:$LINENO: checking for $ac_header" >&5
8347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8348if eval "test \"\${$as_ac_Header+set}\" = set"; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8350else
5464f5a1
NN
8351 eval "$as_ac_Header=\$ac_header_preproc"
8352fi
8353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8355
252b5132 8356fi
5464f5a1
NN
8357if test `eval echo '${'$as_ac_Header'}'` = yes; then
8358 cat >>confdefs.h <<_ACEOF
8359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8360_ACEOF
8361
8362fi
8363
252b5132
RH
8364done
8365
5464f5a1
NN
8366
8367
8368
8369for ac_header in fcntl.h sys/file.h sys/time.h
252b5132 8370do
5464f5a1
NN
8371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8372if eval "test \"\${$as_ac_Header+set}\" = set"; then
8373 echo "$as_me:$LINENO: checking for $ac_header" >&5
8374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8375if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377fi
8378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8380else
8381 # Is the header compilable?
8382echo "$as_me:$LINENO: checking $ac_header usability" >&5
8383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8384cat >conftest.$ac_ext <<_ACEOF
8385/* confdefs.h. */
8386_ACEOF
8387cat confdefs.h >>conftest.$ac_ext
8388cat >>conftest.$ac_ext <<_ACEOF
8389/* end confdefs.h. */
8390$ac_includes_default
8391#include <$ac_header>
8392_ACEOF
8393rm -f conftest.$ac_objext
8394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8395 (eval $ac_compile) 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } &&
e5a52504
MM
8402 { ac_try='test -z "$ac_c_werror_flag"
8403 || test ! -s conftest.err'
5464f5a1
NN
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 (eval $ac_try) 2>&5
8406 ac_status=$?
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest.$ac_objext'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 ac_header_compiler=yes
8416else
8417 echo "$as_me: failed program was:" >&5
8418sed 's/^/| /' conftest.$ac_ext >&5
8419
8420ac_header_compiler=no
8421fi
8422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8423echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8424echo "${ECHO_T}$ac_header_compiler" >&6
8425
8426# Is the header present?
8427echo "$as_me:$LINENO: checking $ac_header presence" >&5
8428echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8429cat >conftest.$ac_ext <<_ACEOF
8430/* confdefs.h. */
8431_ACEOF
8432cat confdefs.h >>conftest.$ac_ext
8433cat >>conftest.$ac_ext <<_ACEOF
8434/* end confdefs.h. */
8435#include <$ac_header>
8436_ACEOF
8437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8439 ac_status=$?
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } >/dev/null; then
8445 if test -s conftest.err; then
8446 ac_cpp_err=$ac_c_preproc_warn_flag
8447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8448 else
8449 ac_cpp_err=
8450 fi
252b5132 8451else
5464f5a1 8452 ac_cpp_err=yes
252b5132 8453fi
5464f5a1
NN
8454if test -z "$ac_cpp_err"; then
8455 ac_header_preproc=yes
8456else
8457 echo "$as_me: failed program was:" >&5
8458sed 's/^/| /' conftest.$ac_ext >&5
8459
8460 ac_header_preproc=no
252b5132 8461fi
5464f5a1
NN
8462rm -f conftest.err conftest.$ac_ext
8463echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8464echo "${ECHO_T}$ac_header_preproc" >&6
8465
8466# So? What about this header?
8467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8468 yes:no: )
8469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8470echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8472echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8473 ac_header_preproc=yes
8474 ;;
8475 no:yes:* )
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8479echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8481echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8483echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8487echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8488 (
8489 cat <<\_ASBOX
8490## ------------------------------------------ ##
8491## Report this to the AC_PACKAGE_NAME lists. ##
8492## ------------------------------------------ ##
8493_ASBOX
8494 ) |
8495 sed "s/^/$as_me: WARNING: /" >&2
8496 ;;
8497esac
8498echo "$as_me:$LINENO: checking for $ac_header" >&5
8499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8500if eval "test \"\${$as_ac_Header+set}\" = set"; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8502else
5464f5a1
NN
8503 eval "$as_ac_Header=\$ac_header_preproc"
8504fi
8505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8507
8508fi
8509if test `eval echo '${'$as_ac_Header'}'` = yes; then
8510 cat >>confdefs.h <<_ACEOF
8511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8512_ACEOF
8513
252b5132 8514fi
5464f5a1 8515
252b5132
RH
8516done
8517
5464f5a1
NN
8518echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8519echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8520if test "${ac_cv_header_time+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8522else
8523 cat >conftest.$ac_ext <<_ACEOF
8524/* confdefs.h. */
8525_ACEOF
8526cat confdefs.h >>conftest.$ac_ext
8527cat >>conftest.$ac_ext <<_ACEOF
8528/* end confdefs.h. */
252b5132
RH
8529#include <sys/types.h>
8530#include <sys/time.h>
8531#include <time.h>
5464f5a1
NN
8532
8533int
8534main ()
8535{
8536if ((struct tm *) 0)
8537return 0;
8538 ;
8539 return 0;
8540}
8541_ACEOF
8542rm -f conftest.$ac_objext
8543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8544 (eval $ac_compile) 2>conftest.er1
8545 ac_status=$?
8546 grep -v '^ *+' conftest.er1 >conftest.err
8547 rm -f conftest.er1
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
e5a52504
MM
8551 { ac_try='test -z "$ac_c_werror_flag"
8552 || test ! -s conftest.err'
5464f5a1
NN
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; } &&
8558 { ac_try='test -s conftest.$ac_objext'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; }; then
252b5132
RH
8564 ac_cv_header_time=yes
8565else
5464f5a1
NN
8566 echo "$as_me: failed program was:" >&5
8567sed 's/^/| /' conftest.$ac_ext >&5
8568
8569ac_cv_header_time=no
252b5132 8570fi
5464f5a1 8571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8572fi
5464f5a1
NN
8573echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8574echo "${ECHO_T}$ac_cv_header_time" >&6
6be7c12c 8575if test $ac_cv_header_time = yes; then
5464f5a1
NN
8576
8577cat >>confdefs.h <<\_ACEOF
252b5132 8578#define TIME_WITH_SYS_TIME 1
5464f5a1 8579_ACEOF
252b5132
RH
8580
8581fi
8582
5464f5a1
NN
8583
8584
8585
8586
8587
252b5132 8588ac_header_dirent=no
5464f5a1
NN
8589for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8590 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8591echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8592echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8593if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595else
8596 cat >conftest.$ac_ext <<_ACEOF
8597/* confdefs.h. */
8598_ACEOF
8599cat confdefs.h >>conftest.$ac_ext
8600cat >>conftest.$ac_ext <<_ACEOF
8601/* end confdefs.h. */
252b5132
RH
8602#include <sys/types.h>
8603#include <$ac_hdr>
5464f5a1
NN
8604
8605int
8606main ()
8607{
8608if ((DIR *) 0)
8609return 0;
8610 ;
8611 return 0;
8612}
8613_ACEOF
8614rm -f conftest.$ac_objext
8615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8616 (eval $ac_compile) 2>conftest.er1
8617 ac_status=$?
8618 grep -v '^ *+' conftest.er1 >conftest.err
8619 rm -f conftest.er1
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
e5a52504
MM
8623 { ac_try='test -z "$ac_c_werror_flag"
8624 || test ! -s conftest.err'
5464f5a1
NN
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; } &&
8630 { ac_try='test -s conftest.$ac_objext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 eval "$as_ac_Header=yes"
8637else
8638 echo "$as_me: failed program was:" >&5
8639sed 's/^/| /' conftest.$ac_ext >&5
8640
8641eval "$as_ac_Header=no"
8642fi
8643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8644fi
8645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8647if test `eval echo '${'$as_ac_Header'}'` = yes; then
8648 cat >>confdefs.h <<_ACEOF
8649#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8650_ACEOF
8651
8652ac_header_dirent=$ac_hdr; break
252b5132 8653fi
5464f5a1 8654
252b5132
RH
8655done
8656# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8657if test $ac_header_dirent = dirent.h; then
5464f5a1
NN
8658 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8659echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8660if test "${ac_cv_search_opendir+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662else
8663 ac_func_search_save_LIBS=$LIBS
8664ac_cv_search_opendir=no
8665cat >conftest.$ac_ext <<_ACEOF
8666/* confdefs.h. */
8667_ACEOF
8668cat confdefs.h >>conftest.$ac_ext
8669cat >>conftest.$ac_ext <<_ACEOF
8670/* end confdefs.h. */
8671
252b5132 8672/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
8673#ifdef __cplusplus
8674extern "C"
8675#endif
252b5132 8676/* We use char because int might match the return type of a gcc2
5464f5a1
NN
8677 builtin and then its argument prototype would still apply. */
8678char opendir ();
8679int
8680main ()
8681{
8682opendir ();
8683 ;
8684 return 0;
8685}
8686_ACEOF
8687rm -f conftest.$ac_objext conftest$ac_exeext
8688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8689 (eval $ac_link) 2>conftest.er1
8690 ac_status=$?
8691 grep -v '^ *+' conftest.er1 >conftest.err
8692 rm -f conftest.er1
8693 cat conftest.err >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
e5a52504
MM
8696 { ac_try='test -z "$ac_c_werror_flag"
8697 || test ! -s conftest.err'
5464f5a1
NN
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 (eval $ac_try) 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8709 ac_cv_search_opendir="none required"
8710else
8711 echo "$as_me: failed program was:" >&5
8712sed 's/^/| /' conftest.$ac_ext >&5
8713
8714fi
8715rm -f conftest.err conftest.$ac_objext \
8716 conftest$ac_exeext conftest.$ac_ext
8717if test "$ac_cv_search_opendir" = no; then
8718 for ac_lib in dir; do
8719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8720 cat >conftest.$ac_ext <<_ACEOF
8721/* confdefs.h. */
8722_ACEOF
8723cat confdefs.h >>conftest.$ac_ext
8724cat >>conftest.$ac_ext <<_ACEOF
8725/* end confdefs.h. */
6be7c12c 8726
5464f5a1
NN
8727/* Override any gcc2 internal prototype to avoid an error. */
8728#ifdef __cplusplus
8729extern "C"
8730#endif
8731/* We use char because int might match the return type of a gcc2
8732 builtin and then its argument prototype would still apply. */
8733char opendir ();
8734int
8735main ()
8736{
8737opendir ();
8738 ;
8739 return 0;
8740}
8741_ACEOF
8742rm -f conftest.$ac_objext conftest$ac_exeext
8743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>conftest.er1
8745 ac_status=$?
8746 grep -v '^ *+' conftest.er1 >conftest.err
8747 rm -f conftest.er1
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
e5a52504
MM
8751 { ac_try='test -z "$ac_c_werror_flag"
8752 || test ! -s conftest.err'
5464f5a1
NN
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 (eval $ac_try) 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_cv_search_opendir="-l$ac_lib"
8765break
8766else
8767 echo "$as_me: failed program was:" >&5
8768sed 's/^/| /' conftest.$ac_ext >&5
8769
8770fi
8771rm -f conftest.err conftest.$ac_objext \
8772 conftest$ac_exeext conftest.$ac_ext
8773 done
6be7c12c 8774fi
5464f5a1 8775LIBS=$ac_func_search_save_LIBS
6be7c12c 8776fi
5464f5a1
NN
8777echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8778echo "${ECHO_T}$ac_cv_search_opendir" >&6
8779if test "$ac_cv_search_opendir" != no; then
8780 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8781
252b5132
RH
8782fi
8783
8784else
5464f5a1
NN
8785 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8786echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8787if test "${ac_cv_search_opendir+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 8789else
5464f5a1
NN
8790 ac_func_search_save_LIBS=$LIBS
8791ac_cv_search_opendir=no
8792cat >conftest.$ac_ext <<_ACEOF
8793/* confdefs.h. */
8794_ACEOF
8795cat confdefs.h >>conftest.$ac_ext
8796cat >>conftest.$ac_ext <<_ACEOF
8797/* end confdefs.h. */
8798
6be7c12c 8799/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
8800#ifdef __cplusplus
8801extern "C"
8802#endif
6be7c12c 8803/* We use char because int might match the return type of a gcc2
5464f5a1
NN
8804 builtin and then its argument prototype would still apply. */
8805char opendir ();
8806int
8807main ()
8808{
8809opendir ();
8810 ;
8811 return 0;
8812}
8813_ACEOF
8814rm -f conftest.$ac_objext conftest$ac_exeext
8815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
e5a52504
MM
8823 { ac_try='test -z "$ac_c_werror_flag"
8824 || test ! -s conftest.err'
5464f5a1
NN
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 (eval $ac_try) 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try='test -s conftest$ac_exeext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 (eval $ac_try) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_cv_search_opendir="none required"
8837else
8838 echo "$as_me: failed program was:" >&5
8839sed 's/^/| /' conftest.$ac_ext >&5
8840
8841fi
8842rm -f conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844if test "$ac_cv_search_opendir" = no; then
8845 for ac_lib in x; do
8846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8847 cat >conftest.$ac_ext <<_ACEOF
8848/* confdefs.h. */
8849_ACEOF
8850cat confdefs.h >>conftest.$ac_ext
8851cat >>conftest.$ac_ext <<_ACEOF
8852/* end confdefs.h. */
6be7c12c 8853
5464f5a1
NN
8854/* Override any gcc2 internal prototype to avoid an error. */
8855#ifdef __cplusplus
8856extern "C"
8857#endif
8858/* We use char because int might match the return type of a gcc2
8859 builtin and then its argument prototype would still apply. */
8860char opendir ();
8861int
8862main ()
8863{
8864opendir ();
8865 ;
8866 return 0;
8867}
8868_ACEOF
8869rm -f conftest.$ac_objext conftest$ac_exeext
8870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>conftest.er1
8872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
e5a52504
MM
8878 { ac_try='test -z "$ac_c_werror_flag"
8879 || test ! -s conftest.err'
5464f5a1
NN
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 (eval $ac_try) 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest$ac_exeext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 ac_cv_search_opendir="-l$ac_lib"
8892break
8893else
8894 echo "$as_me: failed program was:" >&5
8895sed 's/^/| /' conftest.$ac_ext >&5
8896
8897fi
8898rm -f conftest.err conftest.$ac_objext \
8899 conftest$ac_exeext conftest.$ac_ext
8900 done
6be7c12c 8901fi
5464f5a1 8902LIBS=$ac_func_search_save_LIBS
6be7c12c 8903fi
5464f5a1
NN
8904echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8905echo "${ECHO_T}$ac_cv_search_opendir" >&6
8906if test "$ac_cv_search_opendir" != no; then
8907 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8908
252b5132
RH
8909fi
8910
8911fi
8912
5464f5a1
NN
8913
8914
8915
8916
8917
8918
8919
633fd09f 8920for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 8921do
5464f5a1
NN
8922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8923echo "$as_me:$LINENO: checking for $ac_func" >&5
8924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8925if eval "test \"\${$as_ac_var+set}\" = set"; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927else
8928 cat >conftest.$ac_ext <<_ACEOF
8929/* confdefs.h. */
8930_ACEOF
8931cat confdefs.h >>conftest.$ac_ext
8932cat >>conftest.$ac_ext <<_ACEOF
8933/* end confdefs.h. */
8934/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8936#define $ac_func innocuous_$ac_func
8937
252b5132 8938/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
8939 which can conflict with char $ac_func (); below.
8940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8941 <limits.h> exists even on freestanding compilers. */
8942
8943#ifdef __STDC__
8944# include <limits.h>
8945#else
8946# include <assert.h>
8947#endif
6be7c12c 8948
5464f5a1 8949#undef $ac_func
252b5132 8950
5464f5a1
NN
8951/* Override any gcc2 internal prototype to avoid an error. */
8952#ifdef __cplusplus
8953extern "C"
8954{
8955#endif
8956/* We use char because int might match the return type of a gcc2
8957 builtin and then its argument prototype would still apply. */
8958char $ac_func ();
252b5132
RH
8959/* The GNU C library defines this for functions which it implements
8960 to always fail with ENOSYS. Some functions are actually named
8961 something starting with __ and the normal name is an alias. */
8962#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8963choke me
8964#else
5464f5a1
NN
8965char (*f) () = $ac_func;
8966#endif
8967#ifdef __cplusplus
8968}
252b5132
RH
8969#endif
8970
5464f5a1
NN
8971int
8972main ()
8973{
8974return f != $ac_func;
8975 ;
8976 return 0;
8977}
8978_ACEOF
8979rm -f conftest.$ac_objext conftest$ac_exeext
8980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981 (eval $ac_link) 2>conftest.er1
8982 ac_status=$?
8983 grep -v '^ *+' conftest.er1 >conftest.err
8984 rm -f conftest.er1
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
e5a52504
MM
8988 { ac_try='test -z "$ac_c_werror_flag"
8989 || test ! -s conftest.err'
5464f5a1
NN
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; } &&
8995 { ac_try='test -s conftest$ac_exeext'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; }; then
9001 eval "$as_ac_var=yes"
9002else
9003 echo "$as_me: failed program was:" >&5
9004sed 's/^/| /' conftest.$ac_ext >&5
9005
9006eval "$as_ac_var=no"
9007fi
9008rm -f conftest.err conftest.$ac_objext \
9009 conftest$ac_exeext conftest.$ac_ext
9010fi
9011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9012echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9013if test `eval echo '${'$as_ac_var'}'` = yes; then
9014 cat >>confdefs.h <<_ACEOF
9015#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9016_ACEOF
252b5132 9017
252b5132
RH
9018fi
9019done
9020
5464f5a1 9021
49c97a80
ILT
9022for ac_func in strtoull
9023do
5464f5a1
NN
9024as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9025echo "$as_me:$LINENO: checking for $ac_func" >&5
9026echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9027if eval "test \"\${$as_ac_var+set}\" = set"; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9029else
9030 cat >conftest.$ac_ext <<_ACEOF
9031/* confdefs.h. */
9032_ACEOF
9033cat confdefs.h >>conftest.$ac_ext
9034cat >>conftest.$ac_ext <<_ACEOF
9035/* end confdefs.h. */
9036/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9038#define $ac_func innocuous_$ac_func
9039
49c97a80 9040/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
9041 which can conflict with char $ac_func (); below.
9042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9043 <limits.h> exists even on freestanding compilers. */
9044
9045#ifdef __STDC__
9046# include <limits.h>
9047#else
9048# include <assert.h>
9049#endif
49c97a80 9050
5464f5a1 9051#undef $ac_func
49c97a80 9052
5464f5a1
NN
9053/* Override any gcc2 internal prototype to avoid an error. */
9054#ifdef __cplusplus
9055extern "C"
9056{
9057#endif
9058/* We use char because int might match the return type of a gcc2
9059 builtin and then its argument prototype would still apply. */
9060char $ac_func ();
49c97a80
ILT
9061/* The GNU C library defines this for functions which it implements
9062 to always fail with ENOSYS. Some functions are actually named
9063 something starting with __ and the normal name is an alias. */
9064#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9065choke me
9066#else
5464f5a1
NN
9067char (*f) () = $ac_func;
9068#endif
9069#ifdef __cplusplus
9070}
49c97a80
ILT
9071#endif
9072
5464f5a1
NN
9073int
9074main ()
9075{
9076return f != $ac_func;
9077 ;
9078 return 0;
9079}
9080_ACEOF
9081rm -f conftest.$ac_objext conftest$ac_exeext
9082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9083 (eval $ac_link) 2>conftest.er1
9084 ac_status=$?
9085 grep -v '^ *+' conftest.er1 >conftest.err
9086 rm -f conftest.er1
9087 cat conftest.err >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); } &&
e5a52504
MM
9090 { ac_try='test -z "$ac_c_werror_flag"
9091 || test ! -s conftest.err'
5464f5a1
NN
9092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093 (eval $ac_try) 2>&5
9094 ac_status=$?
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; } &&
9097 { ac_try='test -s conftest$ac_exeext'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099 (eval $ac_try) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
9103 eval "$as_ac_var=yes"
9104else
9105 echo "$as_me: failed program was:" >&5
9106sed 's/^/| /' conftest.$ac_ext >&5
9107
9108eval "$as_ac_var=no"
9109fi
9110rm -f conftest.err conftest.$ac_objext \
9111 conftest$ac_exeext conftest.$ac_ext
9112fi
9113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9114echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9115if test `eval echo '${'$as_ac_var'}'` = yes; then
9116 cat >>confdefs.h <<_ACEOF
9117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9118_ACEOF
49c97a80 9119
49c97a80
ILT
9120fi
9121done
9122
6be7c12c
AO
9123
9124
252b5132 9125case "${host}" in
855b0be7 9126*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
9127
9128cat >>confdefs.h <<\_ACEOF
252b5132 9129#define USE_BINARY_FOPEN 1
5464f5a1 9130_ACEOF
252b5132
RH
9131 ;;
9132esac
9133
5464f5a1
NN
9134echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9135echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9136if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9138else
5464f5a1
NN
9139 cat >conftest.$ac_ext <<_ACEOF
9140/* confdefs.h. */
9141_ACEOF
9142cat confdefs.h >>conftest.$ac_ext
9143cat >>conftest.$ac_ext <<_ACEOF
9144/* end confdefs.h. */
252b5132
RH
9145
9146#include <stdio.h>
9147#ifdef HAVE_STRING_H
9148#include <string.h>
9149#else
9150#ifdef HAVE_STRINGS_H
9151#include <strings.h>
9152#endif
9153#endif
9154#ifdef HAVE_STDLIB_H
9155#include <stdlib.h>
9156#endif
9157#ifdef HAVE_UNISTD_H
9158#include <unistd.h>
9159#endif
5464f5a1
NN
9160int
9161main ()
9162{
252b5132 9163char *(*pfn) = (char *(*)) strstr
5464f5a1
NN
9164 ;
9165 return 0;
9166}
9167_ACEOF
9168rm -f conftest.$ac_objext
9169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9170 (eval $ac_compile) 2>conftest.er1
9171 ac_status=$?
9172 grep -v '^ *+' conftest.er1 >conftest.err
9173 rm -f conftest.er1
9174 cat conftest.err >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } &&
e5a52504
MM
9177 { ac_try='test -z "$ac_c_werror_flag"
9178 || test ! -s conftest.err'
5464f5a1
NN
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 (eval $ac_try) 2>&5
9181 ac_status=$?
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; } &&
9184 { ac_try='test -s conftest.$ac_objext'
9185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 (eval $ac_try) 2>&5
9187 ac_status=$?
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); }; }; then
252b5132
RH
9190 bfd_cv_decl_needed_strstr=no
9191else
5464f5a1
NN
9192 echo "$as_me: failed program was:" >&5
9193sed 's/^/| /' conftest.$ac_ext >&5
9194
9195bfd_cv_decl_needed_strstr=yes
252b5132 9196fi
5464f5a1 9197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9198fi
9199
5464f5a1
NN
9200echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9201echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
252b5132 9202if test $bfd_cv_decl_needed_strstr = yes; then
5464f5a1
NN
9203
9204cat >>confdefs.h <<\_ACEOF
252b5132 9205#define NEED_DECLARATION_STRSTR 1
5464f5a1 9206_ACEOF
252b5132
RH
9207
9208fi
9209
5464f5a1
NN
9210echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
9211echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
9212if test "${bfd_cv_decl_needed_malloc+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9214else
5464f5a1
NN
9215 cat >conftest.$ac_ext <<_ACEOF
9216/* confdefs.h. */
9217_ACEOF
9218cat confdefs.h >>conftest.$ac_ext
9219cat >>conftest.$ac_ext <<_ACEOF
9220/* end confdefs.h. */
252b5132
RH
9221
9222#include <stdio.h>
9223#ifdef HAVE_STRING_H
9224#include <string.h>
9225#else
9226#ifdef HAVE_STRINGS_H
9227#include <strings.h>
9228#endif
9229#endif
9230#ifdef HAVE_STDLIB_H
9231#include <stdlib.h>
9232#endif
9233#ifdef HAVE_UNISTD_H
9234#include <unistd.h>
9235#endif
5464f5a1
NN
9236int
9237main ()
9238{
9239char *(*pfn) = (char *(*)) malloc
9240 ;
9241 return 0;
9242}
9243_ACEOF
9244rm -f conftest.$ac_objext
9245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246 (eval $ac_compile) 2>conftest.er1
9247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } &&
e5a52504
MM
9253 { ac_try='test -z "$ac_c_werror_flag"
9254 || test ! -s conftest.err'
5464f5a1
NN
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 (eval $ac_try) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; } &&
9260 { ac_try='test -s conftest.$ac_objext'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; }; then
252b5132
RH
9266 bfd_cv_decl_needed_malloc=no
9267else
5464f5a1
NN
9268 echo "$as_me: failed program was:" >&5
9269sed 's/^/| /' conftest.$ac_ext >&5
9270
9271bfd_cv_decl_needed_malloc=yes
252b5132 9272fi
5464f5a1 9273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9274fi
9275
5464f5a1
NN
9276echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
9277echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
252b5132 9278if test $bfd_cv_decl_needed_malloc = yes; then
5464f5a1
NN
9279
9280cat >>confdefs.h <<\_ACEOF
252b5132 9281#define NEED_DECLARATION_MALLOC 1
5464f5a1 9282_ACEOF
252b5132
RH
9283
9284fi
9285
5464f5a1
NN
9286echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
9287echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
9288if test "${bfd_cv_decl_needed_realloc+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9290else
5464f5a1
NN
9291 cat >conftest.$ac_ext <<_ACEOF
9292/* confdefs.h. */
9293_ACEOF
9294cat confdefs.h >>conftest.$ac_ext
9295cat >>conftest.$ac_ext <<_ACEOF
9296/* end confdefs.h. */
252b5132
RH
9297
9298#include <stdio.h>
9299#ifdef HAVE_STRING_H
9300#include <string.h>
9301#else
9302#ifdef HAVE_STRINGS_H
9303#include <strings.h>
9304#endif
9305#endif
9306#ifdef HAVE_STDLIB_H
9307#include <stdlib.h>
9308#endif
9309#ifdef HAVE_UNISTD_H
9310#include <unistd.h>
9311#endif
5464f5a1
NN
9312int
9313main ()
9314{
252b5132 9315char *(*pfn) = (char *(*)) realloc
5464f5a1
NN
9316 ;
9317 return 0;
9318}
9319_ACEOF
9320rm -f conftest.$ac_objext
9321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322 (eval $ac_compile) 2>conftest.er1
9323 ac_status=$?
9324 grep -v '^ *+' conftest.er1 >conftest.err
9325 rm -f conftest.er1
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
e5a52504
MM
9329 { ac_try='test -z "$ac_c_werror_flag"
9330 || test ! -s conftest.err'
5464f5a1
NN
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 (eval $ac_try) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; } &&
9336 { ac_try='test -s conftest.$ac_objext'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
252b5132
RH
9342 bfd_cv_decl_needed_realloc=no
9343else
5464f5a1
NN
9344 echo "$as_me: failed program was:" >&5
9345sed 's/^/| /' conftest.$ac_ext >&5
9346
9347bfd_cv_decl_needed_realloc=yes
252b5132 9348fi
5464f5a1 9349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9350fi
9351
5464f5a1
NN
9352echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
9353echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
252b5132 9354if test $bfd_cv_decl_needed_realloc = yes; then
5464f5a1
NN
9355
9356cat >>confdefs.h <<\_ACEOF
252b5132 9357#define NEED_DECLARATION_REALLOC 1
5464f5a1 9358_ACEOF
252b5132
RH
9359
9360fi
9361
5464f5a1
NN
9362echo "$as_me:$LINENO: checking whether free must be declared" >&5
9363echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9364if test "${bfd_cv_decl_needed_free+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9366else
5464f5a1
NN
9367 cat >conftest.$ac_ext <<_ACEOF
9368/* confdefs.h. */
9369_ACEOF
9370cat confdefs.h >>conftest.$ac_ext
9371cat >>conftest.$ac_ext <<_ACEOF
9372/* end confdefs.h. */
252b5132
RH
9373
9374#include <stdio.h>
9375#ifdef HAVE_STRING_H
9376#include <string.h>
9377#else
9378#ifdef HAVE_STRINGS_H
9379#include <strings.h>
9380#endif
9381#endif
9382#ifdef HAVE_STDLIB_H
9383#include <stdlib.h>
9384#endif
9385#ifdef HAVE_UNISTD_H
9386#include <unistd.h>
9387#endif
5464f5a1
NN
9388int
9389main ()
9390{
252b5132 9391char *(*pfn) = (char *(*)) free
5464f5a1
NN
9392 ;
9393 return 0;
9394}
9395_ACEOF
9396rm -f conftest.$ac_objext
9397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9398 (eval $ac_compile) 2>conftest.er1
9399 ac_status=$?
9400 grep -v '^ *+' conftest.er1 >conftest.err
9401 rm -f conftest.er1
9402 cat conftest.err >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
e5a52504
MM
9405 { ac_try='test -z "$ac_c_werror_flag"
9406 || test ! -s conftest.err'
5464f5a1
NN
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 (eval $ac_try) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; } &&
9412 { ac_try='test -s conftest.$ac_objext'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9414 (eval $ac_try) 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
252b5132
RH
9418 bfd_cv_decl_needed_free=no
9419else
5464f5a1
NN
9420 echo "$as_me: failed program was:" >&5
9421sed 's/^/| /' conftest.$ac_ext >&5
9422
9423bfd_cv_decl_needed_free=yes
252b5132 9424fi
5464f5a1 9425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9426fi
9427
5464f5a1
NN
9428echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9429echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
252b5132 9430if test $bfd_cv_decl_needed_free = yes; then
5464f5a1
NN
9431
9432cat >>confdefs.h <<\_ACEOF
252b5132 9433#define NEED_DECLARATION_FREE 1
5464f5a1 9434_ACEOF
252b5132
RH
9435
9436fi
9437
5464f5a1
NN
9438echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9439echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9440if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9442else
5464f5a1
NN
9443 cat >conftest.$ac_ext <<_ACEOF
9444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
252b5132
RH
9449
9450#include <stdio.h>
9451#ifdef HAVE_STRING_H
9452#include <string.h>
9453#else
9454#ifdef HAVE_STRINGS_H
9455#include <strings.h>
9456#endif
9457#endif
9458#ifdef HAVE_STDLIB_H
9459#include <stdlib.h>
9460#endif
9461#ifdef HAVE_UNISTD_H
9462#include <unistd.h>
9463#endif
5464f5a1
NN
9464int
9465main ()
9466{
252b5132 9467char *(*pfn) = (char *(*)) getenv
5464f5a1
NN
9468 ;
9469 return 0;
9470}
9471_ACEOF
9472rm -f conftest.$ac_objext
9473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9474 (eval $ac_compile) 2>conftest.er1
9475 ac_status=$?
9476 grep -v '^ *+' conftest.er1 >conftest.err
9477 rm -f conftest.er1
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
e5a52504
MM
9481 { ac_try='test -z "$ac_c_werror_flag"
9482 || test ! -s conftest.err'
5464f5a1
NN
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 (eval $ac_try) 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try='test -s conftest.$ac_objext'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 (eval $ac_try) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; }; then
252b5132
RH
9494 bfd_cv_decl_needed_getenv=no
9495else
5464f5a1
NN
9496 echo "$as_me: failed program was:" >&5
9497sed 's/^/| /' conftest.$ac_ext >&5
9498
9499bfd_cv_decl_needed_getenv=yes
252b5132 9500fi
5464f5a1 9501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9502fi
9503
5464f5a1
NN
9504echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9505echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
252b5132 9506if test $bfd_cv_decl_needed_getenv = yes; then
5464f5a1
NN
9507
9508cat >>confdefs.h <<\_ACEOF
252b5132 9509#define NEED_DECLARATION_GETENV 1
5464f5a1 9510_ACEOF
252b5132
RH
9511
9512fi
9513
6be7c12c 9514
252b5132
RH
9515# If we are configured native, pick a core file support file.
9516COREFILE=
9517COREFLAG=
9518TRAD_HEADER=
9519if test "${target}" = "${host}"; then
9520 case "${host}" in
13dfd2d0 9521 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
9522 COREFILE=''
9523 ;;
252b5132
RH
9524 alpha*-*-linux-gnu*)
9525 COREFILE=trad-core.lo
9526 TRAD_HEADER='"hosts/alphalinux.h"'
9527 ;;
690cc98b
NC
9528 alpha*-*-netbsd* | alpha*-*-openbsd*)
9529 COREFILE=netbsd-core.lo
9530 ;;
252b5132 9531 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
9532 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9533 COREFILE='' ;;
61d0bc33 9534 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
9535 arm-*-riscix) COREFILE=trad-core.lo ;;
9536 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9537 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9538 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9539 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9540 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
9541 hppa*-*-netbsd* | hppa*-*-openbsd*)
9542 COREFILE=netbsd-core.lo
9543 ;;
9544
dc810e39 9545 i370-*-*)
5b93d8bb
AM
9546 COREFILE=trad-core.lo
9547 TRAD_HEADER='"hosts/i370linux.h"'
9548 ;;
9549
80c7c40a 9550 i[3-7]86-sequent-bsd*)
5b93d8bb 9551 COREFILE=trad-core.lo
252b5132
RH
9552 TRAD_HEADER='"hosts/symmetry.h"'
9553 ;;
80c7c40a
NC
9554 i[3-7]86-sequent-sysv4*) ;;
9555 i[3-7]86-sequent-sysv*)
252b5132
RH
9556 COREFILE=trad-core.lo
9557 TRAD_HEADER='"hosts/symmetry.h"'
9558 ;;
80c7c40a 9559 i[3-7]86-*-bsdi)
7e3b3466
NC
9560 COREFILE=
9561 ;;
d2bef492 9562 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
9563 COREFILE=trad-core.lo
9564 TRAD_HEADER='"hosts/i386bsd.h"'
9565 ;;
13dfd2d0 9566 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
9567 COREFILE=''
9568 TRAD_HEADER='"hosts/i386bsd.h"'
9569 ;;
4615568e 9570 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
9571 COREFILE=netbsd-core.lo
9572 ;;
80c7c40a 9573 i[3-7]86-esix-sysv3*)
252b5132
RH
9574 COREFILE=trad-core.lo
9575 TRAD_HEADER='"hosts/esix.h"'
9576 ;;
80c7c40a 9577 i[3-7]86-*-sco3.2v5*)
252b5132
RH
9578 COREFILE=sco5-core.lo
9579 ;;
80c7c40a 9580 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
9581 COREFILE=trad-core.lo
9582 TRAD_HEADER='"hosts/i386sco.h"'
9583 ;;
80c7c40a 9584 i[3-7]86-*-mach3*)
252b5132
RH
9585 COREFILE=trad-core.lo
9586 TRAD_HEADER='"hosts/i386mach3.h"'
9587 ;;
80c7c40a 9588 i[3-7]86-*-linux-gnu*)
252b5132
RH
9589 COREFILE=trad-core.lo
9590 TRAD_HEADER='"hosts/i386linux.h"'
9591 ;;
80c7c40a
NC
9592 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9593 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
9594 i860-*-mach3* | i860-*-osf1*)
9595 COREFILE=trad-core.lo
9596 TRAD_HEADER='"hosts/i860mach3.h"'
9597 ;;
252b5132
RH
9598 mips-*-netbsd* | mips*-*-openbsd*)
9599 COREFILE=netbsd-core.lo
9600 ;;
9601 mips-dec-*)
9602 COREFILE=trad-core.lo
9603 TRAD_HEADER='"hosts/decstation.h"'
9604 ;;
9605 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9606 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9607 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
9608 mips-*-sysv4*) ;;
9609 mips-*-sysv* | mips-*-riscos*)
9610 COREFILE=trad-core.lo
9611 TRAD_HEADER='"hosts/riscos.h"'
9612 ;;
9613 mips-sony-bsd*)
9614 COREFILE=trad-core.lo
9615 TRAD_HEADER='"hosts/news-mips.h"'
9616 ;;
9617 m68*-bull*-sysv*)
9618 COREFILE=trad-core.lo
9619 TRAD_HEADER='"hosts/dpx2.h"'
9620 ;;
9621 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9622 m68*-hp-bsd*)
9623 COREFILE=trad-core.lo
9624 TRAD_HEADER='"hosts/hp300bsd.h"'
9625 ;;
9626 m68*-*-linux-gnu*)
9627 COREFILE=trad-core.lo
9628 TRAD_HEADER='"hosts/m68klinux.h"'
9629 ;;
9630 m68*-motorola-sysv*)
9631 COREFILE=trad-core.lo
9632 TRAD_HEADER='"hosts/delta68.h"'
9633 ;;
9634 m68*-sony-*)
9635 COREFILE=trad-core.lo
9636 TRAD_HEADER='"hosts/news.h"'
9637 ;;
9638 m68*-*-netbsd* | m68*-*-openbsd*)
9639 COREFILE=netbsd-core.lo
9640 ;;
9641 m68*-apple-aux*)
9642 COREFILE=trad-core.lo
9643 TRAD_HEADER='"hosts/m68kaux.h"'
9644 ;;
eb1e0e80
NC
9645 m88*-*-sysv4*)
9646 ;;
9647 m88*-motorola-sysv*)
9648 COREFILE=ptrace-core.lo
9649 ;;
252b5132
RH
9650 m88*-*-mach3*)
9651 COREFILE=trad-core.lo
9652 TRAD_HEADER='"hosts/m88kmach3.h"'
9653 ;;
c6f8758f
NC
9654 m88*-*-openbsd*)
9655 COREFILE=netbsd-core.lo
9656 ;;
252b5132
RH
9657 ns32k-pc532-mach)
9658 COREFILE=trad-core.lo
9659 TRAD_HEADER='"hosts/pc532mach.h"'
9660 ;;
9661 ns32k-*-netbsd* | ns32k-*-openbsd*)
9662 COREFILE=netbsd-core.lo
9663 ;;
eb1e0e80
NC
9664 rs6000-*-lynx*)
9665 COREFILE=lynx-core.lo
9666 ;;
9667 rs6000-*-aix5.* | powerpc-*-aix5.*)
9668 COREFILE=rs6000-core.lo
9669 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9670 ;;
83954261 9671 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
9672 COREFILE=rs6000-core.lo
9673 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
9674 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9675 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
9676 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9677echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9678 cat >conftest.$ac_ext <<_ACEOF
9679/* confdefs.h. */
9680_ACEOF
9681cat confdefs.h >>conftest.$ac_ext
9682cat >>conftest.$ac_ext <<_ACEOF
9683/* end confdefs.h. */
83954261 9684#include <core.h>
5464f5a1
NN
9685int
9686main ()
9687{
83954261 9688struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
9689 ;
9690 return 0;
9691}
9692_ACEOF
9693rm -f conftest.$ac_objext
9694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9695 (eval $ac_compile) 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
e5a52504
MM
9702 { ac_try='test -z "$ac_c_werror_flag"
9703 || test ! -s conftest.err'
5464f5a1
NN
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest.$ac_objext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715
9716cat >>confdefs.h <<\_ACEOF
83954261 9717#define HAVE_ST_C_IMPL 1
5464f5a1 9718_ACEOF
83954261 9719
5464f5a1
NN
9720 echo "$as_me:$LINENO: result: yes" >&5
9721echo "${ECHO_T}yes" >&6
83954261 9722else
5464f5a1
NN
9723 echo "$as_me: failed program was:" >&5
9724sed 's/^/| /' conftest.$ac_ext >&5
9725
9726echo "$as_me:$LINENO: result: no" >&5
9727echo "${ECHO_T}no" >&6
83954261 9728fi
5464f5a1 9729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 9730 ;;
252b5132
RH
9731 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9732 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
9733 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9734 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9735 powerpc-*-beos*) ;;
13dfd2d0
NC
9736 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9737 COREFILE='' ;;
252b5132 9738 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 9739 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 9740 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 9741 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 9742 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
9743 COREFILE=netbsd-core.lo
9744 ;;
9745 tahoe-*-*)
9746 COREFILE=trad-core.lo
9747 TRAD_HEADER='"hosts/tahoe.h"'
9748 ;;
de6e5e1a
NC
9749 vax-*-netbsd* | vax-*-openbsd*)
9750 COREFILE=netbsd-core.lo
9751 ;;
252b5132
RH
9752 vax-*-ultrix2*)
9753 COREFILE=trad-core.lo
9754 TRAD_HEADER='"hosts/vaxult2.h"'
9755 ;;
9756 vax-*-ultrix*)
9757 COREFILE=trad-core.lo
9758 TRAD_HEADER='"hosts/vaxult2.h"'
9759 ;;
f8fc3443
NC
9760 vax-*-linux-gnu*)
9761 COREFILE=trad-core.lo
9762 TRAD_HEADER='"hosts/vaxlinux.h"'
9763 ;;
252b5132
RH
9764 vax-*-*)
9765 COREFILE=trad-core.lo
9766 TRAD_HEADER='"hosts/vaxbsd.h"'
9767 ;;
85cfd8d3
MK
9768 x86_64-*-netbsd* | x86_64-*-openbsd*)
9769 COREFILE=netbsd-core.lo
9770 ;;
252b5132
RH
9771 esac
9772
9773 case "$COREFILE" in
9774 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9775 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9776 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9777 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9778 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9779 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9780 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9781 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9782 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9783 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9784 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9785 esac
9786
9787 # ELF corefile support has several flavors, but all of
9788 # them use something called <sys/procfs.h>
5464f5a1
NN
9789
9790for ac_header in sys/procfs.h
252b5132 9791do
5464f5a1
NN
9792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9793if eval "test \"\${$as_ac_Header+set}\" = set"; then
9794 echo "$as_me:$LINENO: checking for $ac_header" >&5
9795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9796if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9798fi
9799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9801else
9802 # Is the header compilable?
9803echo "$as_me:$LINENO: checking $ac_header usability" >&5
9804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9805cat >conftest.$ac_ext <<_ACEOF
9806/* confdefs.h. */
9807_ACEOF
9808cat confdefs.h >>conftest.$ac_ext
9809cat >>conftest.$ac_ext <<_ACEOF
9810/* end confdefs.h. */
9811$ac_includes_default
9812#include <$ac_header>
9813_ACEOF
9814rm -f conftest.$ac_objext
9815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
e5a52504
MM
9823 { ac_try='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
5464f5a1
NN
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 (eval $ac_try) 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest.$ac_objext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 (eval $ac_try) 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_header_compiler=yes
9837else
9838 echo "$as_me: failed program was:" >&5
9839sed 's/^/| /' conftest.$ac_ext >&5
9840
9841ac_header_compiler=no
9842fi
9843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9845echo "${ECHO_T}$ac_header_compiler" >&6
9846
9847# Is the header present?
9848echo "$as_me:$LINENO: checking $ac_header presence" >&5
9849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9850cat >conftest.$ac_ext <<_ACEOF
9851/* confdefs.h. */
9852_ACEOF
9853cat confdefs.h >>conftest.$ac_ext
9854cat >>conftest.$ac_ext <<_ACEOF
9855/* end confdefs.h. */
9856#include <$ac_header>
9857_ACEOF
9858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } >/dev/null; then
9866 if test -s conftest.err; then
9867 ac_cpp_err=$ac_c_preproc_warn_flag
9868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9869 else
9870 ac_cpp_err=
9871 fi
252b5132 9872else
5464f5a1 9873 ac_cpp_err=yes
252b5132 9874fi
5464f5a1
NN
9875if test -z "$ac_cpp_err"; then
9876 ac_header_preproc=yes
9877else
9878 echo "$as_me: failed program was:" >&5
9879sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 ac_header_preproc=no
252b5132 9882fi
5464f5a1
NN
9883rm -f conftest.err conftest.$ac_ext
9884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9885echo "${ECHO_T}$ac_header_preproc" >&6
9886
9887# So? What about this header?
9888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9889 yes:no: )
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9894 ac_header_preproc=yes
9895 ;;
9896 no:yes:* )
9897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9909 (
9910 cat <<\_ASBOX
9911## ------------------------------------------ ##
9912## Report this to the AC_PACKAGE_NAME lists. ##
9913## ------------------------------------------ ##
9914_ASBOX
9915 ) |
9916 sed "s/^/$as_me: WARNING: /" >&2
9917 ;;
9918esac
9919echo "$as_me:$LINENO: checking for $ac_header" >&5
9920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9921if eval "test \"\${$as_ac_Header+set}\" = set"; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 9923else
5464f5a1
NN
9924 eval "$as_ac_Header=\$ac_header_preproc"
9925fi
9926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9928
252b5132 9929fi
5464f5a1
NN
9930if test `eval echo '${'$as_ac_Header'}'` = yes; then
9931 cat >>confdefs.h <<_ACEOF
9932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9933_ACEOF
9934
9935fi
9936
252b5132
RH
9937done
9938
9939 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
9940 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9941echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9942 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944else
9945 cat >conftest.$ac_ext <<_ACEOF
9946/* confdefs.h. */
9947_ACEOF
9948cat confdefs.h >>conftest.$ac_ext
9949cat >>conftest.$ac_ext <<_ACEOF
9950/* end confdefs.h. */
7ee38065
MS
9951
9952#define _SYSCALL32
252b5132 9953#include <sys/procfs.h>
5464f5a1
NN
9954int
9955main ()
9956{
252b5132 9957prstatus_t avar
5464f5a1
NN
9958 ;
9959 return 0;
9960}
9961_ACEOF
9962rm -f conftest.$ac_objext
9963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9964 (eval $ac_compile) 2>conftest.er1
9965 ac_status=$?
9966 grep -v '^ *+' conftest.er1 >conftest.err
9967 rm -f conftest.er1
9968 cat conftest.err >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } &&
e5a52504
MM
9971 { ac_try='test -z "$ac_c_werror_flag"
9972 || test ! -s conftest.err'
5464f5a1
NN
9973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 (eval $ac_try) 2>&5
9975 ac_status=$?
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; } &&
9978 { ac_try='test -s conftest.$ac_objext'
9979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 (eval $ac_try) 2>&5
9981 ac_status=$?
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); }; }; then
252b5132
RH
9984 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9985else
5464f5a1
NN
9986 echo "$as_me: failed program was:" >&5
9987sed 's/^/| /' conftest.$ac_ext >&5
9988
9989bfd_cv_have_sys_procfs_type_prstatus_t=no
9990
252b5132 9991fi
5464f5a1 9992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9993fi
9994
9995 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
9996
9997cat >>confdefs.h <<\_ACEOF
252b5132 9998#define HAVE_PRSTATUS_T 1
5464f5a1 9999_ACEOF
252b5132
RH
10000
10001 fi
5464f5a1
NN
10002 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10003echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 10004
5464f5a1
NN
10005 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10006echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10007 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10009else
5464f5a1
NN
10010 cat >conftest.$ac_ext <<_ACEOF
10011/* confdefs.h. */
10012_ACEOF
10013cat confdefs.h >>conftest.$ac_ext
10014cat >>conftest.$ac_ext <<_ACEOF
10015/* end confdefs.h. */
7ee38065
MS
10016
10017#define _SYSCALL32
10018#include <sys/procfs.h>
5464f5a1
NN
10019int
10020main ()
10021{
7ee38065 10022prstatus32_t avar
5464f5a1
NN
10023 ;
10024 return 0;
10025}
10026_ACEOF
10027rm -f conftest.$ac_objext
10028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10029 (eval $ac_compile) 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
e5a52504
MM
10036 { ac_try='test -z "$ac_c_werror_flag"
10037 || test ! -s conftest.err'
5464f5a1
NN
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try='test -s conftest.$ac_objext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
7ee38065
MS
10049 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10050else
5464f5a1
NN
10051 echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
10053
10054bfd_cv_have_sys_procfs_type_prstatus32_t=no
10055
7ee38065 10056fi
5464f5a1 10057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10058fi
10059
10060 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
10061
10062cat >>confdefs.h <<\_ACEOF
7ee38065 10063#define HAVE_PRSTATUS32_T 1
5464f5a1 10064_ACEOF
7ee38065
MS
10065
10066 fi
5464f5a1
NN
10067 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10068echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 10069
5464f5a1
NN
10070 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10071echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10072 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10074else
5464f5a1
NN
10075 cat >conftest.$ac_ext <<_ACEOF
10076/* confdefs.h. */
10077_ACEOF
10078cat confdefs.h >>conftest.$ac_ext
10079cat >>conftest.$ac_ext <<_ACEOF
10080/* end confdefs.h. */
7ee38065
MS
10081
10082#define _SYSCALL32
252b5132 10083#include <sys/procfs.h>
5464f5a1
NN
10084int
10085main ()
10086{
252b5132 10087prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
10088 ;
10089 return 0;
10090}
10091_ACEOF
10092rm -f conftest.$ac_objext
10093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10094 (eval $ac_compile) 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } &&
e5a52504
MM
10101 { ac_try='test -z "$ac_c_werror_flag"
10102 || test ! -s conftest.err'
5464f5a1
NN
10103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104 (eval $ac_try) 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest.$ac_objext'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; }; then
252b5132
RH
10114 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10115else
5464f5a1
NN
10116 echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
10119bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10120
252b5132 10121fi
5464f5a1 10122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10123fi
10124
10125 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
10126
10127cat >>confdefs.h <<\_ACEOF
252b5132 10128#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 10129_ACEOF
252b5132
RH
10130
10131 fi
5464f5a1
NN
10132 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10133echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 10134
5464f5a1
NN
10135 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10136echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10137 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10139else
5464f5a1
NN
10140 cat >conftest.$ac_ext <<_ACEOF
10141/* confdefs.h. */
10142_ACEOF
10143cat confdefs.h >>conftest.$ac_ext
10144cat >>conftest.$ac_ext <<_ACEOF
10145/* end confdefs.h. */
7ee38065
MS
10146
10147#define _SYSCALL32
10148#include <sys/procfs.h>
5464f5a1
NN
10149int
10150main ()
10151{
7ee38065 10152prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
10153 ;
10154 return 0;
10155}
10156_ACEOF
10157rm -f conftest.$ac_objext
10158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10159 (eval $ac_compile) 2>conftest.er1
10160 ac_status=$?
10161 grep -v '^ *+' conftest.er1 >conftest.err
10162 rm -f conftest.er1
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } &&
e5a52504
MM
10166 { ac_try='test -z "$ac_c_werror_flag"
10167 || test ! -s conftest.err'
5464f5a1
NN
10168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169 (eval $ac_try) 2>&5
10170 ac_status=$?
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); }; } &&
10173 { ac_try='test -s conftest.$ac_objext'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
7ee38065
MS
10179 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
10180else
5464f5a1
NN
10181 echo "$as_me: failed program was:" >&5
10182sed 's/^/| /' conftest.$ac_ext >&5
10183
10184bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
10185
7ee38065 10186fi
5464f5a1 10187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10188fi
10189
10190 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
10191
10192cat >>confdefs.h <<\_ACEOF
7ee38065 10193#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 10194_ACEOF
7ee38065
MS
10195
10196 fi
5464f5a1
NN
10197 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
10198echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 10199
5464f5a1
NN
10200 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
10201echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
10202 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10204else
5464f5a1
NN
10205 cat >conftest.$ac_ext <<_ACEOF
10206/* confdefs.h. */
10207_ACEOF
10208cat confdefs.h >>conftest.$ac_ext
10209cat >>conftest.$ac_ext <<_ACEOF
10210/* end confdefs.h. */
7ee38065
MS
10211
10212#define _SYSCALL32
252b5132 10213#include <sys/procfs.h>
5464f5a1
NN
10214int
10215main ()
10216{
252b5132 10217pstatus_t avar
5464f5a1
NN
10218 ;
10219 return 0;
10220}
10221_ACEOF
10222rm -f conftest.$ac_objext
10223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10224 (eval $ac_compile) 2>conftest.er1
10225 ac_status=$?
10226 grep -v '^ *+' conftest.er1 >conftest.err
10227 rm -f conftest.er1
10228 cat conftest.err >&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } &&
e5a52504
MM
10231 { ac_try='test -z "$ac_c_werror_flag"
10232 || test ! -s conftest.err'
5464f5a1
NN
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10235 ac_status=$?
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; } &&
10238 { ac_try='test -s conftest.$ac_objext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
252b5132
RH
10244 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10245else
5464f5a1
NN
10246 echo "$as_me: failed program was:" >&5
10247sed 's/^/| /' conftest.$ac_ext >&5
10248
10249bfd_cv_have_sys_procfs_type_pstatus_t=no
10250
252b5132 10251fi
5464f5a1 10252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10253fi
10254
10255 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
10256
10257cat >>confdefs.h <<\_ACEOF
252b5132 10258#define HAVE_PSTATUS_T 1
5464f5a1 10259_ACEOF
252b5132
RH
10260
10261 fi
5464f5a1
NN
10262 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10263echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 10264
5464f5a1
NN
10265 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
10266echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
10267 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10269else
5464f5a1
NN
10270 cat >conftest.$ac_ext <<_ACEOF
10271/* confdefs.h. */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h. */
f572a39d
AM
10276
10277#define _SYSCALL32
10278#include <sys/procfs.h>
5464f5a1
NN
10279int
10280main ()
10281{
f572a39d 10282pxstatus_t avar
5464f5a1
NN
10283 ;
10284 return 0;
10285}
10286_ACEOF
10287rm -f conftest.$ac_objext
10288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10289 (eval $ac_compile) 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
e5a52504
MM
10296 { ac_try='test -z "$ac_c_werror_flag"
10297 || test ! -s conftest.err'
5464f5a1
NN
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try='test -s conftest.$ac_objext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
f572a39d
AM
10309 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10310else
5464f5a1
NN
10311 echo "$as_me: failed program was:" >&5
10312sed 's/^/| /' conftest.$ac_ext >&5
10313
10314bfd_cv_have_sys_procfs_type_pxstatus_t=no
10315
f572a39d 10316fi
5464f5a1 10317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10318fi
10319
10320 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
10321
10322cat >>confdefs.h <<\_ACEOF
f572a39d 10323#define HAVE_PXSTATUS_T 1
5464f5a1 10324_ACEOF
f572a39d
AM
10325
10326 fi
5464f5a1
NN
10327 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10328echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 10329
5464f5a1
NN
10330 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10331echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10332 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10334else
5464f5a1
NN
10335 cat >conftest.$ac_ext <<_ACEOF
10336/* confdefs.h. */
10337_ACEOF
10338cat confdefs.h >>conftest.$ac_ext
10339cat >>conftest.$ac_ext <<_ACEOF
10340/* end confdefs.h. */
7ee38065
MS
10341
10342#define _SYSCALL32
10343#include <sys/procfs.h>
5464f5a1
NN
10344int
10345main ()
10346{
7ee38065 10347pstatus32_t avar
5464f5a1
NN
10348 ;
10349 return 0;
10350}
10351_ACEOF
10352rm -f conftest.$ac_objext
10353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
e5a52504
MM
10361 { ac_try='test -z "$ac_c_werror_flag"
10362 || test ! -s conftest.err'
5464f5a1
NN
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10365 ac_status=$?
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; } &&
10368 { ac_try='test -s conftest.$ac_objext'
10369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
7ee38065
MS
10374 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10375else
5464f5a1
NN
10376 echo "$as_me: failed program was:" >&5
10377sed 's/^/| /' conftest.$ac_ext >&5
10378
10379bfd_cv_have_sys_procfs_type_pstatus32_t=no
10380
7ee38065 10381fi
5464f5a1 10382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10383fi
10384
10385 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
10386
10387cat >>confdefs.h <<\_ACEOF
7ee38065 10388#define HAVE_PSTATUS32_T 1
5464f5a1 10389_ACEOF
7ee38065
MS
10390
10391 fi
5464f5a1
NN
10392 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10393echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 10394
5464f5a1
NN
10395 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10396echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10397 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10399else
5464f5a1
NN
10400 cat >conftest.$ac_ext <<_ACEOF
10401/* confdefs.h. */
10402_ACEOF
10403cat confdefs.h >>conftest.$ac_ext
10404cat >>conftest.$ac_ext <<_ACEOF
10405/* end confdefs.h. */
7ee38065
MS
10406
10407#define _SYSCALL32
252b5132 10408#include <sys/procfs.h>
5464f5a1
NN
10409int
10410main ()
10411{
252b5132 10412prpsinfo_t avar
5464f5a1
NN
10413 ;
10414 return 0;
10415}
10416_ACEOF
10417rm -f conftest.$ac_objext
10418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10419 (eval $ac_compile) 2>conftest.er1
10420 ac_status=$?
10421 grep -v '^ *+' conftest.er1 >conftest.err
10422 rm -f conftest.er1
10423 cat conftest.err >&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } &&
e5a52504
MM
10426 { ac_try='test -z "$ac_c_werror_flag"
10427 || test ! -s conftest.err'
5464f5a1
NN
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest.$ac_objext'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
252b5132
RH
10439 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10440else
5464f5a1
NN
10441 echo "$as_me: failed program was:" >&5
10442sed 's/^/| /' conftest.$ac_ext >&5
10443
10444bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10445
252b5132 10446fi
5464f5a1 10447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10448fi
10449
10450 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
10451
10452cat >>confdefs.h <<\_ACEOF
252b5132 10453#define HAVE_PRPSINFO_T 1
5464f5a1 10454_ACEOF
252b5132
RH
10455
10456 fi
5464f5a1
NN
10457 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10458echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 10459
5464f5a1
NN
10460 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10461echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10462 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10464else
5464f5a1
NN
10465 cat >conftest.$ac_ext <<_ACEOF
10466/* confdefs.h. */
10467_ACEOF
10468cat confdefs.h >>conftest.$ac_ext
10469cat >>conftest.$ac_ext <<_ACEOF
10470/* end confdefs.h. */
7ee38065
MS
10471
10472#define _SYSCALL32
10473#include <sys/procfs.h>
5464f5a1
NN
10474int
10475main ()
10476{
7ee38065 10477prpsinfo32_t avar
5464f5a1
NN
10478 ;
10479 return 0;
10480}
10481_ACEOF
10482rm -f conftest.$ac_objext
10483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10484 (eval $ac_compile) 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
e5a52504
MM
10491 { ac_try='test -z "$ac_c_werror_flag"
10492 || test ! -s conftest.err'
5464f5a1
NN
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest.$ac_objext'
10499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; }; then
7ee38065
MS
10504 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10505else
5464f5a1
NN
10506 echo "$as_me: failed program was:" >&5
10507sed 's/^/| /' conftest.$ac_ext >&5
10508
10509bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10510
7ee38065 10511fi
5464f5a1 10512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10513fi
10514
10515 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
10516
10517cat >>confdefs.h <<\_ACEOF
7ee38065 10518#define HAVE_PRPSINFO32_T 1
5464f5a1 10519_ACEOF
7ee38065
MS
10520
10521 fi
5464f5a1
NN
10522 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10523echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 10524
5464f5a1
NN
10525 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10526echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10527 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10529else
5464f5a1
NN
10530 cat >conftest.$ac_ext <<_ACEOF
10531/* confdefs.h. */
10532_ACEOF
10533cat confdefs.h >>conftest.$ac_ext
10534cat >>conftest.$ac_ext <<_ACEOF
10535/* end confdefs.h. */
7ee38065
MS
10536
10537#define _SYSCALL32
252b5132 10538#include <sys/procfs.h>
5464f5a1
NN
10539int
10540main ()
10541{
252b5132 10542psinfo_t avar
5464f5a1
NN
10543 ;
10544 return 0;
10545}
10546_ACEOF
10547rm -f conftest.$ac_objext
10548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10549 (eval $ac_compile) 2>conftest.er1
10550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
e5a52504
MM
10556 { ac_try='test -z "$ac_c_werror_flag"
10557 || test ! -s conftest.err'
5464f5a1
NN
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; } &&
10563 { ac_try='test -s conftest.$ac_objext'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
252b5132
RH
10569 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10570else
5464f5a1
NN
10571 echo "$as_me: failed program was:" >&5
10572sed 's/^/| /' conftest.$ac_ext >&5
10573
10574bfd_cv_have_sys_procfs_type_psinfo_t=no
10575
252b5132 10576fi
5464f5a1 10577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10578fi
10579
10580 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
10581
10582cat >>confdefs.h <<\_ACEOF
252b5132 10583#define HAVE_PSINFO_T 1
5464f5a1 10584_ACEOF
252b5132
RH
10585
10586 fi
5464f5a1
NN
10587 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10588echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 10589
5464f5a1
NN
10590 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10591echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10592 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10594else
5464f5a1
NN
10595 cat >conftest.$ac_ext <<_ACEOF
10596/* confdefs.h. */
10597_ACEOF
10598cat confdefs.h >>conftest.$ac_ext
10599cat >>conftest.$ac_ext <<_ACEOF
10600/* end confdefs.h. */
7ee38065
MS
10601
10602#define _SYSCALL32
10603#include <sys/procfs.h>
5464f5a1
NN
10604int
10605main ()
10606{
7ee38065 10607psinfo32_t avar
5464f5a1
NN
10608 ;
10609 return 0;
10610}
10611_ACEOF
10612rm -f conftest.$ac_objext
10613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10614 (eval $ac_compile) 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } &&
e5a52504
MM
10621 { ac_try='test -z "$ac_c_werror_flag"
10622 || test ! -s conftest.err'
5464f5a1
NN
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10625 ac_status=$?
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; } &&
10628 { ac_try='test -s conftest.$ac_objext'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }; then
7ee38065
MS
10634 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10635else
5464f5a1
NN
10636 echo "$as_me: failed program was:" >&5
10637sed 's/^/| /' conftest.$ac_ext >&5
10638
10639bfd_cv_have_sys_procfs_type_psinfo32_t=no
10640
7ee38065 10641fi
5464f5a1 10642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10643fi
10644
10645 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
10646
10647cat >>confdefs.h <<\_ACEOF
7ee38065 10648#define HAVE_PSINFO32_T 1
5464f5a1 10649_ACEOF
7ee38065
MS
10650
10651 fi
5464f5a1
NN
10652 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10653echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 10654
5464f5a1
NN
10655 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10656echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10657 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10659else
5464f5a1
NN
10660 cat >conftest.$ac_ext <<_ACEOF
10661/* confdefs.h. */
10662_ACEOF
10663cat confdefs.h >>conftest.$ac_ext
10664cat >>conftest.$ac_ext <<_ACEOF
10665/* end confdefs.h. */
7ee38065
MS
10666
10667#define _SYSCALL32
252b5132 10668#include <sys/procfs.h>
5464f5a1
NN
10669int
10670main ()
10671{
252b5132 10672lwpstatus_t avar
5464f5a1
NN
10673 ;
10674 return 0;
10675}
10676_ACEOF
10677rm -f conftest.$ac_objext
10678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10679 (eval $ac_compile) 2>conftest.er1
10680 ac_status=$?
10681 grep -v '^ *+' conftest.er1 >conftest.err
10682 rm -f conftest.er1
10683 cat conftest.err >&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } &&
e5a52504
MM
10686 { ac_try='test -z "$ac_c_werror_flag"
10687 || test ! -s conftest.err'
5464f5a1
NN
10688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; } &&
10693 { ac_try='test -s conftest.$ac_objext'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
252b5132
RH
10699 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10700else
5464f5a1
NN
10701 echo "$as_me: failed program was:" >&5
10702sed 's/^/| /' conftest.$ac_ext >&5
10703
10704bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10705
252b5132 10706fi
5464f5a1 10707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10708fi
10709
10710 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
10711
10712cat >>confdefs.h <<\_ACEOF
252b5132 10713#define HAVE_LWPSTATUS_T 1
5464f5a1 10714_ACEOF
252b5132
RH
10715
10716 fi
5464f5a1
NN
10717 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10718echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 10719
5464f5a1
NN
10720 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10721echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10722 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10724else
5464f5a1
NN
10725 cat >conftest.$ac_ext <<_ACEOF
10726/* confdefs.h. */
10727_ACEOF
10728cat confdefs.h >>conftest.$ac_ext
10729cat >>conftest.$ac_ext <<_ACEOF
10730/* end confdefs.h. */
f572a39d
AM
10731
10732#define _SYSCALL32
10733#include <sys/procfs.h>
5464f5a1
NN
10734int
10735main ()
10736{
f572a39d 10737lwpxstatus_t avar
5464f5a1
NN
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); } &&
e5a52504
MM
10751 { ac_try='test -z "$ac_c_werror_flag"
10752 || test ! -s conftest.err'
5464f5a1
NN
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
f572a39d
AM
10764 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10765else
5464f5a1
NN
10766 echo "$as_me: failed program was:" >&5
10767sed 's/^/| /' conftest.$ac_ext >&5
10768
10769bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10770
f572a39d 10771fi
5464f5a1 10772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10773fi
10774
10775 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
10776
10777cat >>confdefs.h <<\_ACEOF
f572a39d 10778#define HAVE_LWPXSTATUS_T 1
5464f5a1 10779_ACEOF
f572a39d
AM
10780
10781 fi
5464f5a1
NN
10782 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10783echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 10784
5464f5a1
NN
10785 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10786echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10787 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10789else
5464f5a1
NN
10790 cat >conftest.$ac_ext <<_ACEOF
10791/* confdefs.h. */
10792_ACEOF
10793cat confdefs.h >>conftest.$ac_ext
10794cat >>conftest.$ac_ext <<_ACEOF
10795/* end confdefs.h. */
7ee38065
MS
10796
10797#define _SYSCALL32
252b5132 10798#include <sys/procfs.h>
5464f5a1
NN
10799int
10800main ()
10801{
252b5132 10802lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
10803 ;
10804 return 0;
10805}
10806_ACEOF
10807rm -f conftest.$ac_objext
10808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10809 (eval $ac_compile) 2>conftest.er1
10810 ac_status=$?
10811 grep -v '^ *+' conftest.er1 >conftest.err
10812 rm -f conftest.er1
10813 cat conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
e5a52504
MM
10816 { ac_try='test -z "$ac_c_werror_flag"
10817 || test ! -s conftest.err'
5464f5a1
NN
10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819 (eval $ac_try) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); }; } &&
10823 { ac_try='test -s conftest.$ac_objext'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; }; then
252b5132
RH
10829 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10830else
5464f5a1
NN
10831 echo "$as_me: failed program was:" >&5
10832sed 's/^/| /' conftest.$ac_ext >&5
10833
10834bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10835
252b5132 10836fi
5464f5a1 10837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10838fi
10839
10840 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
10841
10842cat >>confdefs.h <<\_ACEOF
252b5132 10843#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 10844_ACEOF
252b5132
RH
10845
10846 fi
5464f5a1
NN
10847 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10848echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 10849
5464f5a1
NN
10850 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10851echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10852 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10854else
5464f5a1
NN
10855 cat >conftest.$ac_ext <<_ACEOF
10856/* confdefs.h. */
10857_ACEOF
10858cat confdefs.h >>conftest.$ac_ext
10859cat >>conftest.$ac_ext <<_ACEOF
10860/* end confdefs.h. */
7ee38065
MS
10861
10862#define _SYSCALL32
252b5132 10863#include <sys/procfs.h>
5464f5a1
NN
10864int
10865main ()
10866{
252b5132 10867lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
10868 ;
10869 return 0;
10870}
10871_ACEOF
10872rm -f conftest.$ac_objext
10873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10874 (eval $ac_compile) 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } &&
e5a52504
MM
10881 { ac_try='test -z "$ac_c_werror_flag"
10882 || test ! -s conftest.err'
5464f5a1
NN
10883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10884 (eval $ac_try) 2>&5
10885 ac_status=$?
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); }; } &&
10888 { ac_try='test -s conftest.$ac_objext'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; }; then
252b5132
RH
10894 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10895else
5464f5a1
NN
10896 echo "$as_me: failed program was:" >&5
10897sed 's/^/| /' conftest.$ac_ext >&5
10898
10899bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10900
252b5132 10901fi
5464f5a1 10902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10903fi
10904
10905 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
10906
10907cat >>confdefs.h <<\_ACEOF
252b5132 10908#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 10909_ACEOF
252b5132
RH
10910
10911 fi
5464f5a1
NN
10912 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10913echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 10914
5464f5a1
NN
10915 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10916echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10917 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 10919else
5464f5a1
NN
10920 cat >conftest.$ac_ext <<_ACEOF
10921/* confdefs.h. */
10922_ACEOF
10923cat confdefs.h >>conftest.$ac_ext
10924cat >>conftest.$ac_ext <<_ACEOF
10925/* end confdefs.h. */
7ee38065
MS
10926
10927#define _SYSCALL32
e3c976c4 10928#include <sys/procfs.h>
5464f5a1
NN
10929int
10930main ()
10931{
e3c976c4 10932win32_pstatus_t avar
5464f5a1
NN
10933 ;
10934 return 0;
10935}
10936_ACEOF
10937rm -f conftest.$ac_objext
10938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10939 (eval $ac_compile) 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } &&
e5a52504
MM
10946 { ac_try='test -z "$ac_c_werror_flag"
10947 || test ! -s conftest.err'
5464f5a1
NN
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
e3c976c4
ILT
10959 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10960else
5464f5a1
NN
10961 echo "$as_me: failed program was:" >&5
10962sed 's/^/| /' conftest.$ac_ext >&5
10963
10964bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10965
e3c976c4 10966fi
5464f5a1 10967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10968fi
10969
e3c976c4 10970 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
10971
10972cat >>confdefs.h <<\_ACEOF
e3c976c4 10973#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 10974_ACEOF
16e9c715
NC
10975
10976 fi
5464f5a1
NN
10977 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10978echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
10979
10980 fi
10981fi
16e9c715 10982
b3baf5d0 10983
6be7c12c 10984if test -n "$TRAD_HEADER"; then
5464f5a1
NN
10985
10986cat >>confdefs.h <<_ACEOF
252b5132 10987#define TRAD_HEADER $TRAD_HEADER
5464f5a1 10988_ACEOF
252b5132 10989
3f9b03b5 10990fi
252b5132
RH
10991
10992# Horrible hacks to build DLLs on Windows.
10993WIN32LDFLAGS=
10994WIN32LIBADD=
10995case "${host}" in
10996*-*-cygwin*)
10997 if test "$enable_shared" = "yes"; then
10998 WIN32LDFLAGS="-no-undefined"
10999 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11000 fi
11001 ;;
78be1d6e 11002*-*-linux*)
39691762
L
11003 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11004 # libiberty.a.
ca51bfff
L
11005 case "${host}" in
11006 mips*-*-linux*)
11007 # Linux/MIPS uses PIC by default.
11008 if test "$enable_shared" = "yes"; then
11009 WIN32LIBADD="-L../libiberty -liberty"
11010 fi
11011 ;;
11012 *)
66e25bab 11013 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 11014 if test -n "$x"; then
ca51bfff
L
11015 WIN32LIBADD="-L../libiberty/pic -liberty"
11016 fi
11017 ;;
11018 esac
39691762 11019 ;;
252b5132
RH
11020esac
11021
6be7c12c
AO
11022
11023
252b5132
RH
11024# target stuff:
11025
11026# Canonicalize the secondary target names.
11027if test -n "$enable_targets" ; then
11028 for targ in `echo $enable_targets | sed 's/,/ /g'`
11029 do
6d83c84b 11030 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
11031 if test -n "$result" ; then
11032 canon_targets="$canon_targets $result"
11033 else
11034 # Allow targets that config.sub doesn't recognize, like "all".
11035 canon_targets="$canon_targets $targ"
11036 fi
11037 done
11038fi
11039
11040all_targets=false
11041defvec=
11042selvecs=
08f74004 11043assocvecs=
252b5132
RH
11044selarchs=
11045TDEFINES=
11046for targ in $target $canon_targets
11047do
11048 if test "x$targ" = "xall"; then
11049 all_targets=true
08f74004 11050 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
11051 else
11052 . $srcdir/config.bfd
11053 if test "x$targ" = "x$target"; then
11054 defvec=$targ_defvec
11055 fi
11056 selvecs="$selvecs $targ_defvec $targ_selvecs"
11057 selarchs="$selarchs $targ_archs"
11058 TDEFINES="$TDEFINES $targ_cflags"
11059 fi
11060done
11061
6be7c12c 11062
252b5132
RH
11063# This processing still needs to be done if we're to decide properly whether
11064# 64-bit support needs to be compiled in. Currently, it will be included if
11065# the default or any other explicitly requested target requires it; it
11066# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 11067# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
11068# used.
11069
11070# uniq the default and selected vectors in all the configured targets.
11071f=""
11072for i in $selvecs ; do
11073 case " $f " in
11074 *" $i "*) ;;
11075 *) f="$f $i" ;;
11076 esac
11077done
11078selvecs="$f"
11079
6be7c12c 11080
08f74004
AM
11081# uniq the associated vectors in all the configured targets.
11082f=""
11083for i in $assocvecs ; do
11084 case " $f " in
11085 *" $i "*) ;;
11086 *) f="$f $i" ;;
11087 esac
11088done
11089assocvecs="$f"
11090
11091
252b5132
RH
11092# uniq the architectures in all the configured targets.
11093f=""
11094for i in $selarchs ; do
11095 case " $f " in
11096 *" $i "*) ;;
11097 *) f="$f $i" ;;
11098 esac
11099done
11100selarchs="$f"
11101
11102# Target backend .o files.
11103tb=
11104
65765700 11105elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
11106
11107for vec in $selvecs
11108do
69263e90 11109 target_size=32
252b5132
RH
11110 case "$vec" in
11111 # This list is alphabetized to make it easy to compare
dc810e39
AM
11112 # with the two vector lists in targets.c. For the same reason,
11113 # use one entry per line, even though this leads to long lines.
252b5132
RH
11114 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
11115 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 11116 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
11117 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
11118 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11119 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 11120 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
11121 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11122 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11123 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11124 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11125 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11126 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11127 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
11128 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11129 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11130 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11131 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
11132 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
11133 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 11134 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 11135 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 11136 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 11137 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
dc810e39 11138 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 11139 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
252b5132 11140 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
b6821651 11141 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
e5a52504
MM
11142 bfd_elf32_bigarm_symbian_vec)
11143 tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
c6e90b02 11144 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 11145 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 11146 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 11147 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
11148 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11149 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 11150 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 11151 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 11152 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 11153 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 11154 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 11155 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 11156 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 11157 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 11158 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
b6821651
AM
11159 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11160 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
9d751335 11161 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 11162 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 11163 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 11164 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 11165 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 11166 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 11167 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 11168 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39
AM
11169 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11170 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
e5a52504
MM
11171 bfd_elf32_littlearm_symbian_vec)
11172 tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
b6821651 11173 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
c6e90b02 11174 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
252b5132 11175 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
11176 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11177 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11178 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
11179 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11180 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
11181 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
11182 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
11183 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11184 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11185 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
11186 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
2469cfa2 11187 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
8a397dad
TS
11188 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11189 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11190 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11191 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 11192 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 11193 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
11194 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11195 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
b6821651
AM
11196 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11197 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
a85d7ed0 11198 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
eb1e0e80
NC
11199 # FIXME: We include cofflink.lo not because it's needed for
11200 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
11201 # which needs it but does not list it. Should be fixed in right place.
9cba27b2
JT
11202 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11203 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
2bc3c89a
AM
11204 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11205 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11206 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11207 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
b6821651
AM
11208 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11209 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11210 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
85fbca6a 11211 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
b6821651
AM
11212 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11213 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11214 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
252b5132 11215 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
c6e90b02
TS
11216 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11217 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 11218 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 11219 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 11220 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 11221 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
e0001a05
NC
11222 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11223 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 11224 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
11225 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11226 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 11227 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
11228 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11229 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 11230 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 11231 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
11232 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11233 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 11234 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 11235 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
11236 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11237 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
11238 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
11239 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11240 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
11241 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11242 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11243 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11244 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
dc810e39 11245 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02
TS
11246 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11247 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39 11248 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 11249 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
11250 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11251 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11252 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11253 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 11254 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 11255 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 11256 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 11257 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
11258 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11259 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
11260 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11261 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11262 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11263 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11264 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11265 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11266 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11267 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11268 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11269 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
11270 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11271 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
11272 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11273 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11274 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11275 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 11276 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
11277 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11278 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
11279 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11280 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
11281 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11282 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11283 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11284 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
11285 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11286 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
11287 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11288 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11289 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11290 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
11291 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
11292 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
11293 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11294 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 11295 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 11296 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
93509525
KD
11297 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11298 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11299 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
11300 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11301 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11302 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11303 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
11304 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11305 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 11306 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 11307 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 11308 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 11309 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 11310 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 11311 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 11312 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 11313 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
11314 pef_vec) tb="$tb pef.lo" ;;
11315 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 11316 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 11317 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11318 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 11319 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 11320 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 11321 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11322 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11323 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 11324 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11325 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
11326 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11327 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 11328 som_vec) tb="$tb som.lo" ;;
dc810e39 11329 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
11330 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11331 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11332 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11333 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11334 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 11335 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 11336 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
11337 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11338 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
11339 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11340 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11341 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11342 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11343 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11344 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 11345 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11346 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11347 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11348 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11349 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11350 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 11351 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 11352 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 11353 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 11354 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 11355 versados_vec) tb="$tb versados.lo" ;;
dc810e39 11356 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
11357 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11358 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11359 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11360 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
11361
341ca622
AM
11362 # These appear out of order in targets.c
11363 srec_vec) tb="$tb srec.lo" ;;
11364 symbolsrec_vec) tb="$tb srec.lo" ;;
11365 tekhex_vec) tb="$tb tekhex.lo" ;;
11366 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11367 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11368
252b5132 11369 "") ;;
5464f5a1
NN
11370 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11371echo "$as_me: error: *** unknown target vector $vec" >&2;}
11372 { (exit 1); exit 1; }; } ;;
252b5132 11373 esac
69263e90
AM
11374
11375 if test ${target_size} = 64; then
11376 target64=true
11377 fi
11378 if test x"${vec}" = x"${defvec}"; then
11379 bfd_default_target_size=${target_size}
11380 fi
252b5132
RH
11381done
11382
11383# Target architecture .o files.
11384# A couple of CPUs use shorter file names to avoid problems on DOS
11385# filesystems.
11386ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11387
11388# Weed out duplicate .o files.
11389f=""
11390for i in $tb ; do
11391 case " $f " in
11392 *" $i "*) ;;
11393 *) f="$f $i" ;;
11394 esac
11395done
11396tb="$f"
11397
11398f=""
11399for i in $ta ; do
11400 case " $f " in
11401 *" $i "*) ;;
11402 *) f="$f $i" ;;
11403 esac
11404done
11405ta="$f"
11406
11407bfd_backends="$tb"
11408bfd_machines="$ta"
11409
11410if test x${all_targets} = xtrue ; then
11411 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11412 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11413 selvecs=
11414 havevecs=
11415 selarchs=
08f74004
AM
11416 test -n "$assocvecs" &&
11417 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
11418else # all_targets is true
11419 # Only set these if they will be nonempty, for the clever echo.
11420 havevecs=
08f74004 11421 assocvecs=
252b5132
RH
11422 test -n "$selvecs" &&
11423 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11424 test -n "$selvecs" &&
11425 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11426 test -n "$selarchs" &&
11427 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11428fi # all_targets is true
11429
11430case ${host64}-${target64}-${want64} in
11431 *true*)
11432 wordsize=64
2858ef35 11433 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 11434 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 11435 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
11436 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11437echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11439echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 11440 fi
966abd70
HPN
11441 if test -n "$GCC" ; then
11442 bad_64bit_gcc=no;
5464f5a1
NN
11443 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11444echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 11445 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
11446 cat >conftest.$ac_ext <<_ACEOF
11447/* confdefs.h. */
11448_ACEOF
11449cat confdefs.h >>conftest.$ac_ext
11450cat >>conftest.$ac_ext <<_ACEOF
11451/* end confdefs.h. */
966abd70 11452:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 11453_ACEOF
966abd70 11454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 11455 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 11456 bad_64bit_gcc=yes;
5464f5a1
NN
11457 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11458echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 11459else
5464f5a1
NN
11460 echo "$as_me:$LINENO: result: no" >&5
11461echo "${ECHO_T}no" >&6
966abd70
HPN
11462fi
11463rm -f conftest*
11464
11465 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
11466 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11467echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11468 { (exit 1); exit 1; }; }
966abd70
HPN
11469 fi
11470 fi
252b5132
RH
11471 ;;
11472 false-false-false)
11473 wordsize=32
2858ef35 11474 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
11475 all_backends='$(BFD32_BACKENDS)'
11476 ;;
11477esac
11478
6be7c12c
AO
11479
11480
11481
11482
11483
69263e90 11484
2858ef35 11485
1012372a
AC
11486# Determine the host dependant file_ptr a.k.a. off_t type. In order
11487# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11488# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11489# Hopefully a reasonable assumption since fseeko et.al. should be
11490# upward compatible.
5464f5a1
NN
11491
11492
11493
11494
1012372a
AC
11495for ac_func in ftello ftello64 fseeko fseeko64
11496do
5464f5a1
NN
11497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498echo "$as_me:$LINENO: checking for $ac_func" >&5
11499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11500if eval "test \"\${$as_ac_var+set}\" = set"; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11502else
11503 cat >conftest.$ac_ext <<_ACEOF
11504/* confdefs.h. */
11505_ACEOF
11506cat confdefs.h >>conftest.$ac_ext
11507cat >>conftest.$ac_ext <<_ACEOF
11508/* end confdefs.h. */
11509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11511#define $ac_func innocuous_$ac_func
11512
1012372a 11513/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11514 which can conflict with char $ac_func (); below.
11515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11516 <limits.h> exists even on freestanding compilers. */
11517
11518#ifdef __STDC__
11519# include <limits.h>
11520#else
11521# include <assert.h>
11522#endif
1012372a 11523
5464f5a1 11524#undef $ac_func
1012372a 11525
5464f5a1
NN
11526/* Override any gcc2 internal prototype to avoid an error. */
11527#ifdef __cplusplus
11528extern "C"
11529{
11530#endif
11531/* We use char because int might match the return type of a gcc2
11532 builtin and then its argument prototype would still apply. */
11533char $ac_func ();
1012372a
AC
11534/* The GNU C library defines this for functions which it implements
11535 to always fail with ENOSYS. Some functions are actually named
11536 something starting with __ and the normal name is an alias. */
11537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11538choke me
11539#else
5464f5a1
NN
11540char (*f) () = $ac_func;
11541#endif
11542#ifdef __cplusplus
11543}
1012372a
AC
11544#endif
11545
5464f5a1
NN
11546int
11547main ()
11548{
11549return f != $ac_func;
11550 ;
11551 return 0;
11552}
11553_ACEOF
11554rm -f conftest.$ac_objext conftest$ac_exeext
11555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11556 (eval $ac_link) 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
e5a52504
MM
11563 { ac_try='test -z "$ac_c_werror_flag"
11564 || test ! -s conftest.err'
5464f5a1
NN
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest$ac_exeext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 eval "$as_ac_var=yes"
11577else
11578 echo "$as_me: failed program was:" >&5
11579sed 's/^/| /' conftest.$ac_ext >&5
11580
11581eval "$as_ac_var=no"
11582fi
11583rm -f conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext conftest.$ac_ext
11585fi
11586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11588if test `eval echo '${'$as_ac_var'}'` = yes; then
11589 cat >>confdefs.h <<_ACEOF
11590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11591_ACEOF
1012372a 11592
1012372a
AC
11593fi
11594done
11595
1012372a 11596if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
5464f5a1
NN
11597 echo "$as_me:$LINENO: checking size of off_t" >&5
11598echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11599if test "${ac_cv_sizeof_off_t+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
1012372a
AC
11601else
11602 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
11603 cat >conftest.$ac_ext <<_ACEOF
11604/* confdefs.h. */
11605_ACEOF
11606cat confdefs.h >>conftest.$ac_ext
11607cat >>conftest.$ac_ext <<_ACEOF
11608/* end confdefs.h. */
1012372a
AC
11609#include "confdefs.h"
11610#include <sys/types.h>
11611
11612
5464f5a1
NN
11613int
11614main ()
11615{
1012372a 11616switch (0) case 0: case (sizeof (off_t) == $ac_size):;
5464f5a1
NN
11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext
11622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
e5a52504
MM
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
5464f5a1
NN
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
1012372a
AC
11643 ac_cv_sizeof_off_t=$ac_size
11644else
5464f5a1
NN
11645 echo "$as_me: failed program was:" >&5
11646sed 's/^/| /' conftest.$ac_ext >&5
11647
1012372a 11648fi
5464f5a1 11649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a
AC
11650 if test x$ac_cv_sizeof_off_t != x ; then break; fi
11651done
11652
11653fi
11654
11655if test x$ac_cv_sizeof_off_t = x ; then
5464f5a1
NN
11656 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
11657echo "$as_me: error: cannot determine a size for off_t" >&2;}
11658 { (exit 1); exit 1; }; }
1012372a 11659fi
5464f5a1
NN
11660echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11661echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11662
11663cat >>confdefs.h <<_ACEOF
1012372a 11664#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 11665_ACEOF
1012372a
AC
11666
11667
1012372a 11668fi
5464f5a1
NN
11669echo "$as_me:$LINENO: checking file_ptr type" >&5
11670echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
11671bfd_file_ptr="long"
11672bfd_ufile_ptr="unsigned long"
11673if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11674 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
11675 bfd_file_ptr=BFD_HOST_64_BIT
11676 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11677fi
5464f5a1
NN
11678echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11679echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
11680
11681
11682
11683
252b5132
RH
11684tdefaults=""
11685test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11686test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 11687test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
11688test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11689test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11690
6be7c12c 11691
5464f5a1
NN
11692
11693
11694for ac_header in stdlib.h unistd.h
252b5132 11695do
5464f5a1
NN
11696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11697if eval "test \"\${$as_ac_Header+set}\" = set"; then
11698 echo "$as_me:$LINENO: checking for $ac_header" >&5
11699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11700if eval "test \"\${$as_ac_Header+set}\" = set"; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702fi
11703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11705else
11706 # Is the header compilable?
11707echo "$as_me:$LINENO: checking $ac_header usability" >&5
11708echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11709cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715$ac_includes_default
11716#include <$ac_header>
11717_ACEOF
11718rm -f conftest.$ac_objext
11719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11720 (eval $ac_compile) 2>conftest.er1
11721 ac_status=$?
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
e5a52504
MM
11727 { ac_try='test -z "$ac_c_werror_flag"
11728 || test ! -s conftest.err'
5464f5a1
NN
11729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730 (eval $ac_try) 2>&5
11731 ac_status=$?
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); }; } &&
11734 { ac_try='test -s conftest.$ac_objext'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 ac_header_compiler=yes
11741else
11742 echo "$as_me: failed program was:" >&5
11743sed 's/^/| /' conftest.$ac_ext >&5
11744
11745ac_header_compiler=no
11746fi
11747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11748echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11749echo "${ECHO_T}$ac_header_compiler" >&6
11750
11751# Is the header present?
11752echo "$as_me:$LINENO: checking $ac_header presence" >&5
11753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11754cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h. */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h. */
11760#include <$ac_header>
11761_ACEOF
11762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } >/dev/null; then
11770 if test -s conftest.err; then
11771 ac_cpp_err=$ac_c_preproc_warn_flag
11772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11773 else
11774 ac_cpp_err=
11775 fi
252b5132 11776else
5464f5a1 11777 ac_cpp_err=yes
252b5132 11778fi
5464f5a1
NN
11779if test -z "$ac_cpp_err"; then
11780 ac_header_preproc=yes
11781else
11782 echo "$as_me: failed program was:" >&5
11783sed 's/^/| /' conftest.$ac_ext >&5
11784
11785 ac_header_preproc=no
252b5132 11786fi
5464f5a1
NN
11787rm -f conftest.err conftest.$ac_ext
11788echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11789echo "${ECHO_T}$ac_header_preproc" >&6
11790
11791# So? What about this header?
11792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11793 yes:no: )
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11798 ac_header_preproc=yes
11799 ;;
11800 no:yes:* )
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11804echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11808echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11813 (
11814 cat <<\_ASBOX
11815## ------------------------------------------ ##
11816## Report this to the AC_PACKAGE_NAME lists. ##
11817## ------------------------------------------ ##
11818_ASBOX
11819 ) |
11820 sed "s/^/$as_me: WARNING: /" >&2
11821 ;;
11822esac
11823echo "$as_me:$LINENO: checking for $ac_header" >&5
11824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11825if eval "test \"\${$as_ac_Header+set}\" = set"; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 11827else
5464f5a1
NN
11828 eval "$as_ac_Header=\$ac_header_preproc"
11829fi
11830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11832
11833fi
11834if test `eval echo '${'$as_ac_Header'}'` = yes; then
11835 cat >>confdefs.h <<_ACEOF
11836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11837_ACEOF
11838
252b5132 11839fi
5464f5a1 11840
252b5132
RH
11841done
11842
5464f5a1 11843
252b5132
RH
11844for ac_func in getpagesize
11845do
5464f5a1
NN
11846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11847echo "$as_me:$LINENO: checking for $ac_func" >&5
11848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11849if eval "test \"\${$as_ac_var+set}\" = set"; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851else
11852 cat >conftest.$ac_ext <<_ACEOF
11853/* confdefs.h. */
11854_ACEOF
11855cat confdefs.h >>conftest.$ac_ext
11856cat >>conftest.$ac_ext <<_ACEOF
11857/* end confdefs.h. */
11858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11860#define $ac_func innocuous_$ac_func
11861
252b5132 11862/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11863 which can conflict with char $ac_func (); below.
11864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11865 <limits.h> exists even on freestanding compilers. */
11866
11867#ifdef __STDC__
11868# include <limits.h>
11869#else
11870# include <assert.h>
11871#endif
6be7c12c 11872
5464f5a1 11873#undef $ac_func
252b5132 11874
5464f5a1
NN
11875/* Override any gcc2 internal prototype to avoid an error. */
11876#ifdef __cplusplus
11877extern "C"
11878{
11879#endif
11880/* We use char because int might match the return type of a gcc2
11881 builtin and then its argument prototype would still apply. */
11882char $ac_func ();
252b5132
RH
11883/* The GNU C library defines this for functions which it implements
11884 to always fail with ENOSYS. Some functions are actually named
11885 something starting with __ and the normal name is an alias. */
11886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11887choke me
11888#else
5464f5a1
NN
11889char (*f) () = $ac_func;
11890#endif
11891#ifdef __cplusplus
11892}
252b5132
RH
11893#endif
11894
5464f5a1
NN
11895int
11896main ()
11897{
11898return f != $ac_func;
11899 ;
11900 return 0;
11901}
11902_ACEOF
11903rm -f conftest.$ac_objext conftest$ac_exeext
11904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11905 (eval $ac_link) 2>conftest.er1
11906 ac_status=$?
11907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
e5a52504
MM
11912 { ac_try='test -z "$ac_c_werror_flag"
11913 || test ! -s conftest.err'
5464f5a1
NN
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; } &&
11919 { ac_try='test -s conftest$ac_exeext'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 eval "$as_ac_var=yes"
11926else
11927 echo "$as_me: failed program was:" >&5
11928sed 's/^/| /' conftest.$ac_ext >&5
11929
11930eval "$as_ac_var=no"
11931fi
11932rm -f conftest.err conftest.$ac_objext \
11933 conftest$ac_exeext conftest.$ac_ext
11934fi
11935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11936echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11937if test `eval echo '${'$as_ac_var'}'` = yes; then
11938 cat >>confdefs.h <<_ACEOF
11939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11940_ACEOF
252b5132 11941
252b5132
RH
11942fi
11943done
11944
5464f5a1
NN
11945echo "$as_me:$LINENO: checking for working mmap" >&5
11946echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11947if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
11949else
11950 if test "$cross_compiling" = yes; then
11951 ac_cv_func_mmap_fixed_mapped=no
11952else
5464f5a1
NN
11953 cat >conftest.$ac_ext <<_ACEOF
11954/* confdefs.h. */
11955_ACEOF
11956cat confdefs.h >>conftest.$ac_ext
11957cat >>conftest.$ac_ext <<_ACEOF
11958/* end confdefs.h. */
11959$ac_includes_default
11960/* malloc might have been renamed as rpl_malloc. */
11961#undef malloc
6be7c12c 11962
252b5132
RH
11963/* Thanks to Mike Haertel and Jim Avera for this test.
11964 Here is a matrix of mmap possibilities:
11965 mmap private not fixed
11966 mmap private fixed at somewhere currently unmapped
11967 mmap private fixed at somewhere already mapped
11968 mmap shared not fixed
11969 mmap shared fixed at somewhere currently unmapped
11970 mmap shared fixed at somewhere already mapped
11971 For private mappings, we should verify that changes cannot be read()
11972 back from the file, nor mmap's back from the file at a different
11973 address. (There have been systems where private was not correctly
11974 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 11975 VM page cache was not coherent with the file system buffer cache
252b5132
RH
11976 like early versions of FreeBSD and possibly contemporary NetBSD.)
11977 For shared mappings, we should conversely verify that changes get
5464f5a1 11978 propagated back to all the places they're supposed to be.
252b5132
RH
11979
11980 Grep wants private fixed already mapped.
11981 The main things grep needs to know about mmap are:
11982 * does it exist and is it safe to write into the mmap'd area
11983 * how to use it (BSD variants) */
5464f5a1 11984
252b5132
RH
11985#include <fcntl.h>
11986#include <sys/mman.h>
11987
5464f5a1
NN
11988#if !STDC_HEADERS && !HAVE_STDLIB_H
11989char *malloc ();
11990#endif
6be7c12c 11991
5464f5a1
NN
11992/* This mess was copied from the GNU getpagesize.h. */
11993#if !HAVE_GETPAGESIZE
252b5132 11994/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 11995# if !HAVE_SYS_PARAM_H
252b5132
RH
11996# define HAVE_SYS_PARAM_H 1
11997# endif
11998
11999# ifdef _SC_PAGESIZE
12000# define getpagesize() sysconf(_SC_PAGESIZE)
12001# else /* no _SC_PAGESIZE */
5464f5a1 12002# if HAVE_SYS_PARAM_H
252b5132
RH
12003# include <sys/param.h>
12004# ifdef EXEC_PAGESIZE
12005# define getpagesize() EXEC_PAGESIZE
12006# else /* no EXEC_PAGESIZE */
12007# ifdef NBPG
12008# define getpagesize() NBPG * CLSIZE
12009# ifndef CLSIZE
12010# define CLSIZE 1
12011# endif /* no CLSIZE */
12012# else /* no NBPG */
12013# ifdef NBPC
12014# define getpagesize() NBPC
12015# else /* no NBPC */
12016# ifdef PAGESIZE
12017# define getpagesize() PAGESIZE
12018# endif /* PAGESIZE */
12019# endif /* no NBPC */
12020# endif /* no NBPG */
12021# endif /* no EXEC_PAGESIZE */
12022# else /* no HAVE_SYS_PARAM_H */
12023# define getpagesize() 8192 /* punt totally */
12024# endif /* no HAVE_SYS_PARAM_H */
12025# endif /* no _SC_PAGESIZE */
12026
5464f5a1
NN
12027#endif /* no HAVE_GETPAGESIZE */
12028
12029int
12030main ()
12031{
12032 char *data, *data2, *data3;
12033 int i, pagesize;
12034 int fd;
12035
12036 pagesize = getpagesize ();
12037
12038 /* First, make a file with some known garbage in it. */
12039 data = (char *) malloc (pagesize);
12040 if (!data)
12041 exit (1);
12042 for (i = 0; i < pagesize; ++i)
12043 *(data + i) = rand ();
12044 umask (0);
12045 fd = creat ("conftest.mmap", 0600);
12046 if (fd < 0)
12047 exit (1);
12048 if (write (fd, data, pagesize) != pagesize)
12049 exit (1);
12050 close (fd);
12051
12052 /* Next, try to mmap the file at a fixed address which already has
12053 something else allocated at it. If we can, also make sure that
12054 we see the same garbage. */
12055 fd = open ("conftest.mmap", O_RDWR);
12056 if (fd < 0)
12057 exit (1);
12058 data2 = (char *) malloc (2 * pagesize);
12059 if (!data2)
12060 exit (1);
12061 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12062 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12063 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12064 exit (1);
12065 for (i = 0; i < pagesize; ++i)
12066 if (*(data + i) != *(data2 + i))
12067 exit (1);
12068
12069 /* Finally, make sure that changes to the mapped area do not
12070 percolate back to the file as seen by read(). (This is a bug on
12071 some variants of i386 svr4.0.) */
12072 for (i = 0; i < pagesize; ++i)
12073 *(data2 + i) = *(data2 + i) + 1;
12074 data3 = (char *) malloc (pagesize);
12075 if (!data3)
12076 exit (1);
12077 if (read (fd, data3, pagesize) != pagesize)
12078 exit (1);
12079 for (i = 0; i < pagesize; ++i)
12080 if (*(data + i) != *(data3 + i))
12081 exit (1);
12082 close (fd);
12083 exit (0);
12084}
12085_ACEOF
12086rm -f conftest$ac_exeext
12087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12088 (eval $ac_link) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 ac_cv_func_mmap_fixed_mapped=yes
12098else
12099 echo "$as_me: program exited with status $ac_status" >&5
12100echo "$as_me: failed program was:" >&5
12101sed 's/^/| /' conftest.$ac_ext >&5
12102
12103( exit $ac_status )
12104ac_cv_func_mmap_fixed_mapped=no
12105fi
12106rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12107fi
12108fi
12109echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12110echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12111if test $ac_cv_func_mmap_fixed_mapped = yes; then
12112
12113cat >>confdefs.h <<\_ACEOF
12114#define HAVE_MMAP 1
12115_ACEOF
12116
12117fi
12118rm -f conftest.mmap
12119
12120
12121
12122for ac_func in madvise mprotect
12123do
12124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12125echo "$as_me:$LINENO: checking for $ac_func" >&5
12126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12127if eval "test \"\${$as_ac_var+set}\" = set"; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12129else
12130 cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h. */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h. */
12136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12138#define $ac_func innocuous_$ac_func
12139
12140/* System header to define __stub macros and hopefully few prototypes,
12141 which can conflict with char $ac_func (); below.
12142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12143 <limits.h> exists even on freestanding compilers. */
12144
12145#ifdef __STDC__
12146# include <limits.h>
12147#else
12148# include <assert.h>
12149#endif
12150
12151#undef $ac_func
12152
12153/* Override any gcc2 internal prototype to avoid an error. */
12154#ifdef __cplusplus
12155extern "C"
12156{
12157#endif
12158/* We use char because int might match the return type of a gcc2
12159 builtin and then its argument prototype would still apply. */
12160char $ac_func ();
12161/* The GNU C library defines this for functions which it implements
12162 to always fail with ENOSYS. Some functions are actually named
12163 something starting with __ and the normal name is an alias. */
12164#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12165choke me
12166#else
12167char (*f) () = $ac_func;
12168#endif
12169#ifdef __cplusplus
12170}
12171#endif
12172
12173int
12174main ()
12175{
12176return f != $ac_func;
12177 ;
12178 return 0;
12179}
12180_ACEOF
12181rm -f conftest.$ac_objext conftest$ac_exeext
12182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12183 (eval $ac_link) 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
e5a52504
MM
12190 { ac_try='test -z "$ac_c_werror_flag"
12191 || test ! -s conftest.err'
5464f5a1
NN
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; } &&
12197 { ac_try='test -s conftest$ac_exeext'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 eval "$as_ac_var=yes"
12204else
12205 echo "$as_me: failed program was:" >&5
12206sed 's/^/| /' conftest.$ac_ext >&5
12207
12208eval "$as_ac_var=no"
12209fi
12210rm -f conftest.err conftest.$ac_objext \
12211 conftest$ac_exeext conftest.$ac_ext
12212fi
12213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12214echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12215if test `eval echo '${'$as_ac_var'}'` = yes; then
12216 cat >>confdefs.h <<_ACEOF
12217#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12218_ACEOF
12219
12220fi
12221done
12222
12223case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12224 true+yes )
12225cat >>confdefs.h <<\_ACEOF
12226#define USE_MMAP 1
12227_ACEOF
12228 ;;
12229esac
12230
12231rm -f doc/config.status
12232 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12233
12234 ac_config_commands="$ac_config_commands default"
12235
12236cat >confcache <<\_ACEOF
12237# This file is a shell script that caches the results of configure
12238# tests run on this system so they can be shared between configure
12239# scripts and configure runs, see configure's option --config-cache.
12240# It is not useful on other systems. If it contains results you don't
12241# want to keep, you may remove or edit it.
12242#
12243# config.status only pays attention to the cache file if you give it
12244# the --recheck option to rerun configure.
12245#
12246# `ac_cv_env_foo' variables (set or unset) will be overridden when
12247# loading this file, other *unset* `ac_cv_foo' will be assigned the
12248# following values.
12249
12250_ACEOF
12251
12252# The following way of writing the cache mishandles newlines in values,
12253# but we know of no workaround that is simple, portable, and efficient.
12254# So, don't put newlines in cache variables' values.
12255# Ultrix sh set writes to stderr and can't be redirected directly,
12256# and sets the high bit in the cache file unless we assign to the vars.
12257{
12258 (set) 2>&1 |
12259 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12260 *ac_space=\ *)
12261 # `set' does not quote correctly, so add quotes (double-quote
12262 # substitution turns \\\\ into \\, and sed turns \\ into \).
12263 sed -n \
12264 "s/'/'\\\\''/g;
12265 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12266 ;;
12267 *)
12268 # `set' quotes correctly as required by POSIX, so do not add quotes.
12269 sed -n \
12270 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12271 ;;
12272 esac;
12273} |
12274 sed '
12275 t clear
12276 : clear
12277 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12278 t end
12279 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12280 : end' >>confcache
12281if diff $cache_file confcache >/dev/null 2>&1; then :; else
12282 if test -w $cache_file; then
12283 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12284 cat confcache >$cache_file
12285 else
12286 echo "not updating unwritable cache $cache_file"
12287 fi
12288fi
12289rm -f confcache
12290
12291test "x$prefix" = xNONE && prefix=$ac_default_prefix
12292# Let make expand exec_prefix.
12293test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12294
12295# VPATH may cause trouble with some makes, so we remove $(srcdir),
12296# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12297# trailing colons and then remove the whole line if VPATH becomes empty
12298# (actually we leave an empty line to preserve line numbers).
12299if test "x$srcdir" = x.; then
12300 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12301s/:*\$(srcdir):*/:/;
12302s/:*\${srcdir}:*/:/;
12303s/:*@srcdir@:*/:/;
12304s/^\([^=]*=[ ]*\):*/\1/;
12305s/:*$//;
12306s/^[^=]*=[ ]*$//;
12307}'
12308fi
12309
12310DEFS=-DHAVE_CONFIG_H
12311
12312ac_libobjs=
12313ac_ltlibobjs=
12314for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12315 # 1. Remove the extension, and $U if already installed.
12316 ac_i=`echo "$ac_i" |
12317 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12318 # 2. Add them.
12319 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12320 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12321done
12322LIBOBJS=$ac_libobjs
12323
12324LTLIBOBJS=$ac_ltlibobjs
12325
12326
12327
12328: ${CONFIG_STATUS=./config.status}
12329ac_clean_files_save=$ac_clean_files
12330ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12331{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12332echo "$as_me: creating $CONFIG_STATUS" >&6;}
12333cat >$CONFIG_STATUS <<_ACEOF
12334#! $SHELL
12335# Generated by $as_me.
12336# Run this file to recreate the current configuration.
12337# Compiler output produced by configure, useful for debugging
12338# configure, is in config.log if it exists.
12339
12340debug=false
12341ac_cs_recheck=false
12342ac_cs_silent=false
12343SHELL=\${CONFIG_SHELL-$SHELL}
12344_ACEOF
12345
12346cat >>$CONFIG_STATUS <<\_ACEOF
12347## --------------------- ##
12348## M4sh Initialization. ##
12349## --------------------- ##
12350
12351# Be Bourne compatible
12352if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12353 emulate sh
12354 NULLCMD=:
12355 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12356 # is contrary to our usage. Disable this feature.
12357 alias -g '${1+"$@"}'='"$@"'
12358elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12359 set -o posix
12360fi
12361DUALCASE=1; export DUALCASE # for MKS sh
12362
12363# Support unset when possible.
12364if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12365 as_unset=unset
12366else
12367 as_unset=false
12368fi
12369
12370
12371# Work around bugs in pre-3.0 UWIN ksh.
12372$as_unset ENV MAIL MAILPATH
12373PS1='$ '
12374PS2='> '
12375PS4='+ '
12376
12377# NLS nuisances.
12378for as_var in \
12379 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12380 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12381 LC_TELEPHONE LC_TIME
12382do
12383 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12384 eval $as_var=C; export $as_var
12385 else
12386 $as_unset $as_var
12387 fi
12388done
12389
12390# Required to use basename.
12391if expr a : '\(a\)' >/dev/null 2>&1; then
12392 as_expr=expr
12393else
12394 as_expr=false
12395fi
12396
12397if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12398 as_basename=basename
12399else
12400 as_basename=false
12401fi
252b5132 12402
6be7c12c 12403
5464f5a1
NN
12404# Name of the executable.
12405as_me=`$as_basename "$0" ||
12406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12407 X"$0" : 'X\(//\)$' \| \
12408 X"$0" : 'X\(/\)$' \| \
12409 . : '\(.\)' 2>/dev/null ||
12410echo X/"$0" |
12411 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12412 /^X\/\(\/\/\)$/{ s//\1/; q; }
12413 /^X\/\(\/\).*/{ s//\1/; q; }
12414 s/.*/./; q'`
12415
12416
12417# PATH needs CR, and LINENO needs CR and PATH.
12418# Avoid depending upon Character Ranges.
12419as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12420as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12421as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12422as_cr_digits='0123456789'
12423as_cr_alnum=$as_cr_Letters$as_cr_digits
12424
12425# The user is always right.
12426if test "${PATH_SEPARATOR+set}" != set; then
12427 echo "#! /bin/sh" >conf$$.sh
12428 echo "exit 0" >>conf$$.sh
12429 chmod +x conf$$.sh
12430 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12431 PATH_SEPARATOR=';'
12432 else
12433 PATH_SEPARATOR=:
12434 fi
12435 rm -f conf$$.sh
12436fi
12437
12438
12439 as_lineno_1=$LINENO
12440 as_lineno_2=$LINENO
12441 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12442 test "x$as_lineno_1" != "x$as_lineno_2" &&
12443 test "x$as_lineno_3" = "x$as_lineno_2" || {
12444 # Find who we are. Look in the path if we contain no path at all
12445 # relative or not.
12446 case $0 in
12447 *[\\/]* ) as_myself=$0 ;;
12448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12449for as_dir in $PATH
12450do
12451 IFS=$as_save_IFS
12452 test -z "$as_dir" && as_dir=.
12453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12454done
12455
12456 ;;
12457 esac
12458 # We did not find ourselves, most probably we were run as `sh COMMAND'
12459 # in which case we are not to be found in the path.
12460 if test "x$as_myself" = x; then
12461 as_myself=$0
12462 fi
12463 if test ! -f "$as_myself"; then
12464 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12465echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12466 { (exit 1); exit 1; }; }
12467 fi
12468 case $CONFIG_SHELL in
12469 '')
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12472do
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for as_base in sh bash ksh sh5; do
12476 case $as_dir in
12477 /*)
12478 if ("$as_dir/$as_base" -c '
12479 as_lineno_1=$LINENO
12480 as_lineno_2=$LINENO
12481 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12482 test "x$as_lineno_1" != "x$as_lineno_2" &&
12483 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12484 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12485 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12486 CONFIG_SHELL=$as_dir/$as_base
12487 export CONFIG_SHELL
12488 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12489 fi;;
12490 esac
12491 done
12492done
12493;;
12494 esac
12495
12496 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12497 # uniformly replaced by the line number. The first 'sed' inserts a
12498 # line-number line before each line; the second 'sed' does the real
12499 # work. The second script uses 'N' to pair each line-number line
12500 # with the numbered line, and appends trailing '-' during
12501 # substitution so that $LINENO is not a special case at line end.
12502 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12503 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12504 sed '=' <$as_myself |
12505 sed '
12506 N
12507 s,$,-,
12508 : loop
12509 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12510 t loop
12511 s,-$,,
12512 s,^['$as_cr_digits']*\n,,
12513 ' >$as_me.lineno &&
12514 chmod +x $as_me.lineno ||
12515 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12516echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12517 { (exit 1); exit 1; }; }
12518
12519 # Don't try to exec as it changes $[0], causing all sort of problems
12520 # (the dirname of $[0] is not the place where we might find the
12521 # original and so on. Autoconf is especially sensible to this).
12522 . ./$as_me.lineno
12523 # Exit status is that of the last command.
12524 exit
252b5132 12525}
6be7c12c 12526
5464f5a1
NN
12527
12528case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12529 *c*,-n*) ECHO_N= ECHO_C='
12530' ECHO_T=' ' ;;
12531 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12532 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12533esac
12534
12535if expr a : '\(a\)' >/dev/null 2>&1; then
12536 as_expr=expr
252b5132 12537else
5464f5a1 12538 as_expr=false
252b5132 12539fi
5464f5a1
NN
12540
12541rm -f conf$$ conf$$.exe conf$$.file
12542echo >conf$$.file
12543if ln -s conf$$.file conf$$ 2>/dev/null; then
12544 # We could just check for DJGPP; but this test a) works b) is more generic
12545 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12546 if test -f conf$$.exe; then
12547 # Don't use ln at all; we don't have any links
12548 as_ln_s='cp -p'
12549 else
12550 as_ln_s='ln -s'
12551 fi
12552elif ln conf$$.file conf$$ 2>/dev/null; then
12553 as_ln_s=ln
12554else
12555 as_ln_s='cp -p'
252b5132 12556fi
5464f5a1 12557rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 12558
5464f5a1
NN
12559if mkdir -p . 2>/dev/null; then
12560 as_mkdir_p=:
12561else
12562 test -d ./-p && rmdir ./-p
12563 as_mkdir_p=false
252b5132 12564fi
b3baf5d0 12565
5464f5a1 12566as_executable_p="test -f"
252b5132 12567
5464f5a1
NN
12568# Sed expression to map a string onto a valid CPP name.
12569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 12570
5464f5a1
NN
12571# Sed expression to map a string onto a valid variable name.
12572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 12573
252b5132 12574
5464f5a1
NN
12575# IFS
12576# We need space, tab and new line, in precisely that order.
12577as_nl='
12578'
12579IFS=" $as_nl"
252b5132 12580
5464f5a1
NN
12581# CDPATH.
12582$as_unset CDPATH
12583
12584exec 6>&1
12585
12586# Open the log real soon, to keep \$[0] and so on meaningful, and to
12587# report actual input values of CONFIG_FILES etc. instead of their
12588# values after options handling. Logging --version etc. is OK.
12589exec 5>>config.log
12590{
12591 echo
12592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12593## Running $as_me. ##
12594_ASBOX
12595} >&5
12596cat >&5 <<_CSEOF
12597
12598This file was extended by $as_me, which was
12599generated by GNU Autoconf 2.59. Invocation command line was
12600
12601 CONFIG_FILES = $CONFIG_FILES
12602 CONFIG_HEADERS = $CONFIG_HEADERS
12603 CONFIG_LINKS = $CONFIG_LINKS
12604 CONFIG_COMMANDS = $CONFIG_COMMANDS
12605 $ $0 $@
12606
12607_CSEOF
12608echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12609echo >&5
12610_ACEOF
12611
12612# Files that config.status was made for.
12613if test -n "$ac_config_files"; then
12614 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 12615fi
5464f5a1
NN
12616
12617if test -n "$ac_config_headers"; then
12618 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 12619fi
252b5132 12620
5464f5a1
NN
12621if test -n "$ac_config_links"; then
12622 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 12623fi
252b5132 12624
5464f5a1
NN
12625if test -n "$ac_config_commands"; then
12626 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12627fi
252b5132 12628
5464f5a1
NN
12629cat >>$CONFIG_STATUS <<\_ACEOF
12630
12631ac_cs_usage="\
12632\`$as_me' instantiates files from templates according to the
12633current configuration.
12634
12635Usage: $0 [OPTIONS] [FILE]...
12636
12637 -h, --help print this help, then exit
12638 -V, --version print version number, then exit
12639 -q, --quiet do not print progress messages
12640 -d, --debug don't remove temporary files
12641 --recheck update $as_me by reconfiguring in the same conditions
12642 --file=FILE[:TEMPLATE]
12643 instantiate the configuration file FILE
12644 --header=FILE[:TEMPLATE]
12645 instantiate the configuration header FILE
12646
12647Configuration files:
12648$config_files
12649
12650Configuration headers:
12651$config_headers
12652
12653Configuration commands:
12654$config_commands
12655
12656Report bugs to <bug-autoconf@gnu.org>."
12657_ACEOF
12658
12659cat >>$CONFIG_STATUS <<_ACEOF
12660ac_cs_version="\\
12661config.status
12662configured by $0, generated by GNU Autoconf 2.59,
12663 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12664
12665Copyright (C) 2003 Free Software Foundation, Inc.
12666This config.status script is free software; the Free Software Foundation
12667gives unlimited permission to copy, distribute and modify it."
12668srcdir=$srcdir
12669INSTALL="$INSTALL"
12670_ACEOF
12671
12672cat >>$CONFIG_STATUS <<\_ACEOF
12673# If no file are specified by the user, then we need to provide default
12674# value. By we need to know if files were specified by the user.
12675ac_need_defaults=:
12676while test $# != 0
12677do
12678 case $1 in
12679 --*=*)
12680 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12681 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12682 ac_shift=:
6be7c12c 12683 ;;
5464f5a1
NN
12684 -*)
12685 ac_option=$1
12686 ac_optarg=$2
12687 ac_shift=shift
6be7c12c 12688 ;;
5464f5a1
NN
12689 *) # This is not an option, so the user has probably given explicit
12690 # arguments.
12691 ac_option=$1
12692 ac_need_defaults=false;;
12693 esac
252b5132 12694
5464f5a1
NN
12695 case $ac_option in
12696 # Handling of the options.
12697_ACEOF
12698cat >>$CONFIG_STATUS <<\_ACEOF
12699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12700 ac_cs_recheck=: ;;
12701 --version | --vers* | -V )
12702 echo "$ac_cs_version"; exit 0 ;;
12703 --he | --h)
12704 # Conflict between --help and --header
12705 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12706Try \`$0 --help' for more information." >&5
12707echo "$as_me: error: ambiguous option: $1
12708Try \`$0 --help' for more information." >&2;}
12709 { (exit 1); exit 1; }; };;
12710 --help | --hel | -h )
12711 echo "$ac_cs_usage"; exit 0 ;;
12712 --debug | --d* | -d )
12713 debug=: ;;
12714 --file | --fil | --fi | --f )
12715 $ac_shift
12716 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12717 ac_need_defaults=false;;
12718 --header | --heade | --head | --hea )
12719 $ac_shift
12720 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12721 ac_need_defaults=false;;
12722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12723 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12724 ac_cs_silent=: ;;
6be7c12c 12725
5464f5a1
NN
12726 # This is an error.
12727 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12728Try \`$0 --help' for more information." >&5
12729echo "$as_me: error: unrecognized option: $1
12730Try \`$0 --help' for more information." >&2;}
12731 { (exit 1); exit 1; }; } ;;
252b5132 12732
5464f5a1 12733 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 12734
5464f5a1
NN
12735 esac
12736 shift
12737done
6be7c12c 12738
5464f5a1 12739ac_configure_extra_args=
252b5132 12740
5464f5a1
NN
12741if $ac_cs_silent; then
12742 exec 6>/dev/null
12743 ac_configure_extra_args="$ac_configure_extra_args --silent"
12744fi
6be7c12c 12745
5464f5a1
NN
12746_ACEOF
12747cat >>$CONFIG_STATUS <<_ACEOF
12748if \$ac_cs_recheck; then
12749 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12750 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12751fi
12752
12753_ACEOF
12754
12755cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 12756#
5464f5a1 12757# INIT-COMMANDS section.
6be7c12c 12758#
b3baf5d0 12759
5464f5a1
NN
12760
12761
12762
12763_ACEOF
12764
12765
12766
12767cat >>$CONFIG_STATUS <<\_ACEOF
12768for ac_config_target in $ac_config_targets
252b5132 12769do
5464f5a1
NN
12770 case "$ac_config_target" in
12771 # Handling of arguments.
12772 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12773 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12774 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12775 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12776 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12777 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12778 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12779 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12780echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12781 { (exit 1); exit 1; }; };;
252b5132
RH
12782 esac
12783done
12784
5464f5a1
NN
12785# If the user did not use the arguments to specify the items to instantiate,
12786# then the envvar interface is used. Set only those that are not.
12787# We use the long form for the default assignment because of an extremely
12788# bizarre bug on SunOS 4.1.3.
12789if $ac_need_defaults; then
12790 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12791 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12792 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12793fi
12794
12795# Have a temporary directory for convenience. Make it in the build tree
12796# simply because there is no reason to put it here, and in addition,
12797# creating and moving files from /tmp can sometimes cause problems.
12798# Create a temporary directory, and hook for its removal unless debugging.
12799$debug ||
12800{
12801 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12802 trap '{ (exit 1); exit 1; }' 1 2 13 15
12803}
b3baf5d0 12804
5464f5a1 12805# Create a (secure) tmp directory for tmp files.
b3baf5d0 12806
5464f5a1
NN
12807{
12808 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12809 test -n "$tmp" && test -d "$tmp"
12810} ||
12811{
12812 tmp=./confstat$$-$RANDOM
12813 (umask 077 && mkdir $tmp)
12814} ||
12815{
12816 echo "$me: cannot create a temporary directory in ." >&2
12817 { (exit 1); exit 1; }
12818}
12819
12820_ACEOF
12821
12822cat >>$CONFIG_STATUS <<_ACEOF
12823
12824#
12825# CONFIG_FILES section.
12826#
b3baf5d0 12827
5464f5a1
NN
12828# No need to generate the scripts if there are no CONFIG_FILES.
12829# This happens for instance when ./config.status config.h
12830if test -n "\$CONFIG_FILES"; then
12831 # Protect against being on the right side of a sed subst in config.status.
12832 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12833 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12834s,@SHELL@,$SHELL,;t t
12835s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12836s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12837s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12838s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12839s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12840s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12841s,@exec_prefix@,$exec_prefix,;t t
12842s,@prefix@,$prefix,;t t
12843s,@program_transform_name@,$program_transform_name,;t t
12844s,@bindir@,$bindir,;t t
12845s,@sbindir@,$sbindir,;t t
12846s,@libexecdir@,$libexecdir,;t t
12847s,@datadir@,$datadir,;t t
12848s,@sysconfdir@,$sysconfdir,;t t
12849s,@sharedstatedir@,$sharedstatedir,;t t
12850s,@localstatedir@,$localstatedir,;t t
12851s,@libdir@,$libdir,;t t
12852s,@includedir@,$includedir,;t t
12853s,@oldincludedir@,$oldincludedir,;t t
12854s,@infodir@,$infodir,;t t
12855s,@mandir@,$mandir,;t t
12856s,@build_alias@,$build_alias,;t t
12857s,@host_alias@,$host_alias,;t t
12858s,@target_alias@,$target_alias,;t t
12859s,@DEFS@,$DEFS,;t t
12860s,@ECHO_C@,$ECHO_C,;t t
12861s,@ECHO_N@,$ECHO_N,;t t
12862s,@ECHO_T@,$ECHO_T,;t t
12863s,@LIBS@,$LIBS,;t t
12864s,@build@,$build,;t t
12865s,@build_cpu@,$build_cpu,;t t
12866s,@build_vendor@,$build_vendor,;t t
12867s,@build_os@,$build_os,;t t
12868s,@host@,$host,;t t
12869s,@host_cpu@,$host_cpu,;t t
12870s,@host_vendor@,$host_vendor,;t t
12871s,@host_os@,$host_os,;t t
12872s,@target@,$target,;t t
12873s,@target_cpu@,$target_cpu,;t t
12874s,@target_vendor@,$target_vendor,;t t
12875s,@target_os@,$target_os,;t t
12876s,@CC@,$CC,;t t
12877s,@CFLAGS@,$CFLAGS,;t t
12878s,@LDFLAGS@,$LDFLAGS,;t t
12879s,@CPPFLAGS@,$CPPFLAGS,;t t
12880s,@ac_ct_CC@,$ac_ct_CC,;t t
12881s,@EXEEXT@,$EXEEXT,;t t
12882s,@OBJEXT@,$OBJEXT,;t t
12883s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12884s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12885s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12886s,@PACKAGE@,$PACKAGE,;t t
12887s,@VERSION@,$VERSION,;t t
12888s,@ACLOCAL@,$ACLOCAL,;t t
12889s,@AUTOCONF@,$AUTOCONF,;t t
12890s,@AUTOMAKE@,$AUTOMAKE,;t t
12891s,@AUTOHEADER@,$AUTOHEADER,;t t
12892s,@MAKEINFO@,$MAKEINFO,;t t
12893s,@SET_MAKE@,$SET_MAKE,;t t
12894s,@AR@,$AR,;t t
12895s,@ac_ct_AR@,$ac_ct_AR,;t t
12896s,@RANLIB@,$RANLIB,;t t
12897s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12898s,@LN_S@,$LN_S,;t t
12899s,@STRIP@,$STRIP,;t t
12900s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12901s,@LIBTOOL@,$LIBTOOL,;t t
12902s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12903s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12904s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12905s,@MAINT@,$MAINT,;t t
12906s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12907s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
12908s,@bfdlibdir@,$bfdlibdir,;t t
12909s,@bfdincludedir@,$bfdincludedir,;t t
12910s,@CPP@,$CPP,;t t
12911s,@EGREP@,$EGREP,;t t
12912s,@ALLOCA@,$ALLOCA,;t t
12913s,@USE_NLS@,$USE_NLS,;t t
12914s,@MSGFMT@,$MSGFMT,;t t
12915s,@GMSGFMT@,$GMSGFMT,;t t
12916s,@XGETTEXT@,$XGETTEXT,;t t
12917s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12918s,@CATALOGS@,$CATALOGS,;t t
12919s,@CATOBJEXT@,$CATOBJEXT,;t t
12920s,@DATADIRNAME@,$DATADIRNAME,;t t
12921s,@GMOFILES@,$GMOFILES,;t t
12922s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12923s,@INTLDEPS@,$INTLDEPS,;t t
12924s,@INTLLIBS@,$INTLLIBS,;t t
12925s,@INTLOBJS@,$INTLOBJS,;t t
12926s,@POFILES@,$POFILES,;t t
12927s,@POSUB@,$POSUB,;t t
12928s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
12929s,@GT_NO@,$GT_NO,;t t
12930s,@GT_YES@,$GT_YES,;t t
12931s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12932s,@l@,$l,;t t
12933s,@HDEFINES@,$HDEFINES,;t t
12934s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
12935s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
12936s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
12937s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
12938s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
12939s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12940s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12941s,@COREFILE@,$COREFILE,;t t
12942s,@COREFLAG@,$COREFLAG,;t t
12943s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
12944s,@WIN32LIBADD@,$WIN32LIBADD,;t t
12945s,@TDEFINES@,$TDEFINES,;t t
12946s,@wordsize@,$wordsize,;t t
12947s,@bfd_libs@,$bfd_libs,;t t
12948s,@all_backends@,$all_backends,;t t
12949s,@bfd_backends@,$bfd_backends,;t t
12950s,@bfd_machines@,$bfd_machines,;t t
12951s,@bfd_default_target_size@,$bfd_default_target_size,;t t
12952s,@bfd_file_ptr@,$bfd_file_ptr,;t t
12953s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
12954s,@tdefaults@,$tdefaults,;t t
12955s,@LIBOBJS@,$LIBOBJS,;t t
12956s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 12957CEOF
252b5132 12958
5464f5a1
NN
12959_ACEOF
12960
12961 cat >>$CONFIG_STATUS <<\_ACEOF
12962 # Split the substitutions into bite-sized pieces for seds with
12963 # small command number limits, like on Digital OSF/1 and HP-UX.
12964 ac_max_sed_lines=48
12965 ac_sed_frag=1 # Number of current file.
12966 ac_beg=1 # First line for current file.
12967 ac_end=$ac_max_sed_lines # Line after last line for current file.
12968 ac_more_lines=:
12969 ac_sed_cmds=
12970 while $ac_more_lines; do
12971 if test $ac_beg -gt 1; then
12972 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 12973 else
5464f5a1
NN
12974 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12975 fi
12976 if test ! -s $tmp/subs.frag; then
12977 ac_more_lines=false
12978 else
12979 # The purpose of the label and of the branching condition is to
12980 # speed up the sed processing (if there are no `@' at all, there
12981 # is no need to browse any of the substitutions).
12982 # These are the two extra sed commands mentioned above.
12983 (echo ':t
12984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12985 if test -z "$ac_sed_cmds"; then
12986 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12987 else
12988 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12989 fi
12990 ac_sed_frag=`expr $ac_sed_frag + 1`
12991 ac_beg=$ac_end
12992 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 12993 fi
5464f5a1
NN
12994 done
12995 if test -z "$ac_sed_cmds"; then
12996 ac_sed_cmds=cat
252b5132 12997 fi
5464f5a1 12998fi # test -n "$CONFIG_FILES"
6be7c12c 12999
5464f5a1
NN
13000_ACEOF
13001cat >>$CONFIG_STATUS <<\_ACEOF
13002for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13004 case $ac_file in
13005 - | *:- | *:-:* ) # input from stdin
13006 cat >$tmp/stdin
13007 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13008 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13009 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13010 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13011 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13012 esac
13013
5464f5a1
NN
13014 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13015 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13016$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13017 X"$ac_file" : 'X\(//\)[^/]' \| \
13018 X"$ac_file" : 'X\(//\)$' \| \
13019 X"$ac_file" : 'X\(/\)' \| \
13020 . : '\(.\)' 2>/dev/null ||
13021echo X"$ac_file" |
13022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13024 /^X\(\/\/\)$/{ s//\1/; q; }
13025 /^X\(\/\).*/{ s//\1/; q; }
13026 s/.*/./; q'`
13027 { if $as_mkdir_p; then
13028 mkdir -p "$ac_dir"
252b5132 13029 else
5464f5a1
NN
13030 as_dir="$ac_dir"
13031 as_dirs=
13032 while test ! -d "$as_dir"; do
13033 as_dirs="$as_dir $as_dirs"
13034 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13035$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13036 X"$as_dir" : 'X\(//\)[^/]' \| \
13037 X"$as_dir" : 'X\(//\)$' \| \
13038 X"$as_dir" : 'X\(/\)' \| \
13039 . : '\(.\)' 2>/dev/null ||
13040echo X"$as_dir" |
13041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13043 /^X\(\/\/\)$/{ s//\1/; q; }
13044 /^X\(\/\).*/{ s//\1/; q; }
13045 s/.*/./; q'`
13046 done
13047 test ! -n "$as_dirs" || mkdir $as_dirs
13048 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13049echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13050 { (exit 1); exit 1; }; }; }
13051
13052 ac_builddir=.
13053
13054if test "$ac_dir" != .; then
13055 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13056 # A "../" for each directory in $ac_dir_suffix.
13057 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13058else
13059 ac_dir_suffix= ac_top_builddir=
13060fi
252b5132 13061
5464f5a1
NN
13062case $srcdir in
13063 .) # No --srcdir option. We are building in place.
13064 ac_srcdir=.
13065 if test -z "$ac_top_builddir"; then
13066 ac_top_srcdir=.
13067 else
13068 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13069 fi ;;
13070 [\\/]* | ?:[\\/]* ) # Absolute path.
13071 ac_srcdir=$srcdir$ac_dir_suffix;
13072 ac_top_srcdir=$srcdir ;;
252b5132 13073 *) # Relative path.
5464f5a1
NN
13074 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13075 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13076esac
252b5132 13077
5464f5a1
NN
13078# Do not use `cd foo && pwd` to compute absolute paths, because
13079# the directories may not exist.
13080case `pwd` in
13081.) ac_abs_builddir="$ac_dir";;
13082*)
13083 case "$ac_dir" in
13084 .) ac_abs_builddir=`pwd`;;
13085 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13086 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13087 esac;;
13088esac
13089case $ac_abs_builddir in
13090.) ac_abs_top_builddir=${ac_top_builddir}.;;
13091*)
13092 case ${ac_top_builddir}. in
13093 .) ac_abs_top_builddir=$ac_abs_builddir;;
13094 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13095 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13096 esac;;
13097esac
13098case $ac_abs_builddir in
13099.) ac_abs_srcdir=$ac_srcdir;;
13100*)
13101 case $ac_srcdir in
13102 .) ac_abs_srcdir=$ac_abs_builddir;;
13103 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13104 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13105 esac;;
13106esac
13107case $ac_abs_builddir in
13108.) ac_abs_top_srcdir=$ac_top_srcdir;;
13109*)
13110 case $ac_top_srcdir in
13111 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13112 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13113 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13114 esac;;
13115esac
252b5132 13116
5464f5a1
NN
13117
13118 case $INSTALL in
13119 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13120 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 13121 esac
252b5132 13122
e5a52504
MM
13123 if test x"$ac_file" != x-; then
13124 { echo "$as_me:$LINENO: creating $ac_file" >&5
13125echo "$as_me: creating $ac_file" >&6;}
13126 rm -f "$ac_file"
13127 fi
5464f5a1
NN
13128 # Let's still pretend it is `configure' which instantiates (i.e., don't
13129 # use $as_me), people would be surprised to read:
13130 # /* config.h. Generated by config.status. */
13131 if test x"$ac_file" = x-; then
13132 configure_input=
13133 else
13134 configure_input="$ac_file. "
13135 fi
13136 configure_input=$configure_input"Generated from `echo $ac_file_in |
13137 sed 's,.*/,,'` by configure."
13138
13139 # First look for the input files in the build tree, otherwise in the
13140 # src tree.
13141 ac_file_inputs=`IFS=:
13142 for f in $ac_file_in; do
13143 case $f in
13144 -) echo $tmp/stdin ;;
13145 [\\/$]*)
13146 # Absolute (can't be DOS-style, as IFS=:)
13147 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13148echo "$as_me: error: cannot find input file: $f" >&2;}
13149 { (exit 1); exit 1; }; }
13150 echo "$f";;
13151 *) # Relative
13152 if test -f "$f"; then
13153 # Build tree
13154 echo "$f"
13155 elif test -f "$srcdir/$f"; then
13156 # Source tree
13157 echo "$srcdir/$f"
13158 else
13159 # /dev/null tree
13160 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13161echo "$as_me: error: cannot find input file: $f" >&2;}
13162 { (exit 1); exit 1; }; }
13163 fi;;
13164 esac
13165 done` || { (exit 1); exit 1; }
5464f5a1
NN
13166_ACEOF
13167cat >>$CONFIG_STATUS <<_ACEOF
13168 sed "$ac_vpsub
13169$extrasub
13170_ACEOF
13171cat >>$CONFIG_STATUS <<\_ACEOF
13172:t
13173/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13174s,@configure_input@,$configure_input,;t t
13175s,@srcdir@,$ac_srcdir,;t t
13176s,@abs_srcdir@,$ac_abs_srcdir,;t t
13177s,@top_srcdir@,$ac_top_srcdir,;t t
13178s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13179s,@builddir@,$ac_builddir,;t t
13180s,@abs_builddir@,$ac_abs_builddir,;t t
13181s,@top_builddir@,$ac_top_builddir,;t t
13182s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13183s,@INSTALL@,$ac_INSTALL,;t t
13184" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13185 rm -f $tmp/stdin
13186 if test x"$ac_file" != x-; then
13187 mv $tmp/out $ac_file
13188 else
13189 cat $tmp/out
13190 rm -f $tmp/out
13191 fi
13192
13193done
13194_ACEOF
13195cat >>$CONFIG_STATUS <<\_ACEOF
13196
13197#
13198# CONFIG_HEADER section.
13199#
252b5132
RH
13200
13201# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13202# NAME is the cpp macro being defined and VALUE is the value it is being given.
13203#
13204# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
13205ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13206ac_dB='[ ].*$,\1#\2'
13207ac_dC=' '
13208ac_dD=',;t'
13209# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13210ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13211ac_uB='$,\1#\2define\3'
252b5132 13212ac_uC=' '
5464f5a1
NN
13213ac_uD=',;t'
13214
13215for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 13216 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13217 case $ac_file in
13218 - | *:- | *:-:* ) # input from stdin
13219 cat >$tmp/stdin
13220 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13221 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13222 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13223 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13224 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13225 esac
13226
5464f5a1
NN
13227 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13228echo "$as_me: creating $ac_file" >&6;}
13229
13230 # First look for the input files in the build tree, otherwise in the
13231 # src tree.
13232 ac_file_inputs=`IFS=:
13233 for f in $ac_file_in; do
13234 case $f in
13235 -) echo $tmp/stdin ;;
13236 [\\/$]*)
13237 # Absolute (can't be DOS-style, as IFS=:)
13238 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13239echo "$as_me: error: cannot find input file: $f" >&2;}
13240 { (exit 1); exit 1; }; }
13241 # Do quote $f, to prevent DOS paths from being IFS'd.
13242 echo "$f";;
13243 *) # Relative
13244 if test -f "$f"; then
13245 # Build tree
13246 echo "$f"
13247 elif test -f "$srcdir/$f"; then
13248 # Source tree
13249 echo "$srcdir/$f"
13250 else
13251 # /dev/null tree
13252 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13253echo "$as_me: error: cannot find input file: $f" >&2;}
13254 { (exit 1); exit 1; }; }
13255 fi;;
13256 esac
13257 done` || { (exit 1); exit 1; }
13258 # Remove the trailing spaces.
13259 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13260
13261_ACEOF
13262
13263# Transform confdefs.h into two sed scripts, `conftest.defines' and
13264# `conftest.undefs', that substitutes the proper values into
13265# config.h.in to produce config.h. The first handles `#define'
13266# templates, and the second `#undef' templates.
13267# And first: Protect against being on the right side of a sed subst in
13268# config.status. Protect against being in an unquoted here document
13269# in config.status.
13270rm -f conftest.defines conftest.undefs
13271# Using a here document instead of a string reduces the quoting nightmare.
13272# Putting comments in sed scripts is not portable.
13273#
13274# `end' is used to avoid that the second main sed command (meant for
13275# 0-ary CPP macros) applies to n-ary macro definitions.
13276# See the Autoconf documentation for `clear'.
13277cat >confdef2sed.sed <<\_ACEOF
13278s/[\\&,]/\\&/g
13279s,[\\$`],\\&,g
13280t clear
13281: clear
13282s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13283t end
13284s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13285: end
13286_ACEOF
13287# If some macros were called several times there might be several times
13288# the same #defines, which is useless. Nevertheless, we may not want to
13289# sort them, since we want the *last* AC-DEFINE to be honored.
13290uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13291sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13292rm -f confdef2sed.sed
252b5132
RH
13293
13294# This sed command replaces #undef with comments. This is necessary, for
13295# example, in the case of _POSIX_SOURCE, which is predefined and required
13296# on some systems where configure will not decide to define it.
5464f5a1
NN
13297cat >>conftest.undefs <<\_ACEOF
13298s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13299_ACEOF
13300
13301# Break up conftest.defines because some shells have a limit on the size
13302# of here documents, and old seds have small limits too (100 cmds).
13303echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13304echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13305echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13306echo ' :' >>$CONFIG_STATUS
13307rm -f conftest.tail
13308while grep . conftest.defines >/dev/null
13309do
13310 # Write a limited-size here document to $tmp/defines.sed.
13311 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13312 # Speed up: don't consider the non `#define' lines.
13313 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13314 # Work around the forget-to-reset-the-flag bug.
13315 echo 't clr' >>$CONFIG_STATUS
13316 echo ': clr' >>$CONFIG_STATUS
13317 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13318 echo 'CEOF
13319 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13320 rm -f $tmp/in
13321 mv $tmp/out $tmp/in
13322' >>$CONFIG_STATUS
13323 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13324 rm -f conftest.defines
13325 mv conftest.tail conftest.defines
13326done
13327rm -f conftest.defines
13328echo ' fi # grep' >>$CONFIG_STATUS
13329echo >>$CONFIG_STATUS
252b5132 13330
5464f5a1
NN
13331# Break up conftest.undefs because some shells have a limit on the size
13332# of here documents, and old seds have small limits too (100 cmds).
13333echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13334rm -f conftest.tail
5464f5a1 13335while grep . conftest.undefs >/dev/null
252b5132 13336do
5464f5a1
NN
13337 # Write a limited-size here document to $tmp/undefs.sed.
13338 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13339 # Speed up: don't consider the non `#undef'
13340 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13341 # Work around the forget-to-reset-the-flag bug.
13342 echo 't clr' >>$CONFIG_STATUS
13343 echo ': clr' >>$CONFIG_STATUS
13344 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13345 echo 'CEOF
5464f5a1
NN
13346 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13347 rm -f $tmp/in
13348 mv $tmp/out $tmp/in
13349' >>$CONFIG_STATUS
13350 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13351 rm -f conftest.undefs
13352 mv conftest.tail conftest.undefs
252b5132 13353done
5464f5a1
NN
13354rm -f conftest.undefs
13355
13356cat >>$CONFIG_STATUS <<\_ACEOF
13357 # Let's still pretend it is `configure' which instantiates (i.e., don't
13358 # use $as_me), people would be surprised to read:
13359 # /* config.h. Generated by config.status. */
13360 if test x"$ac_file" = x-; then
13361 echo "/* Generated by configure. */" >$tmp/config.h
13362 else
13363 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13364 fi
13365 cat $tmp/in >>$tmp/config.h
13366 rm -f $tmp/in
13367 if test x"$ac_file" != x-; then
13368 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13369 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13370echo "$as_me: $ac_file is unchanged" >&6;}
13371 else
13372 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13373$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13374 X"$ac_file" : 'X\(//\)[^/]' \| \
13375 X"$ac_file" : 'X\(//\)$' \| \
13376 X"$ac_file" : 'X\(/\)' \| \
13377 . : '\(.\)' 2>/dev/null ||
13378echo X"$ac_file" |
13379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13381 /^X\(\/\/\)$/{ s//\1/; q; }
13382 /^X\(\/\).*/{ s//\1/; q; }
13383 s/.*/./; q'`
13384 { if $as_mkdir_p; then
13385 mkdir -p "$ac_dir"
252b5132 13386 else
5464f5a1
NN
13387 as_dir="$ac_dir"
13388 as_dirs=
13389 while test ! -d "$as_dir"; do
13390 as_dirs="$as_dir $as_dirs"
13391 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13392$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13393 X"$as_dir" : 'X\(//\)[^/]' \| \
13394 X"$as_dir" : 'X\(//\)$' \| \
13395 X"$as_dir" : 'X\(/\)' \| \
13396 . : '\(.\)' 2>/dev/null ||
13397echo X"$as_dir" |
13398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13399 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13400 /^X\(\/\/\)$/{ s//\1/; q; }
13401 /^X\(\/\).*/{ s//\1/; q; }
13402 s/.*/./; q'`
13403 done
13404 test ! -n "$as_dirs" || mkdir $as_dirs
13405 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13406echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13407 { (exit 1); exit 1; }; }; }
13408
13409 rm -f $ac_file
13410 mv $tmp/config.h $ac_file
252b5132 13411 fi
5464f5a1
NN
13412 else
13413 cat $tmp/config.h
13414 rm -f $tmp/config.h
252b5132 13415 fi
5464f5a1
NN
13416done
13417_ACEOF
13418cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13419
5464f5a1
NN
13420#
13421# CONFIG_COMMANDS section.
13422#
13423for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13424 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13425 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13426 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13427$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13428 X"$ac_dest" : 'X\(//\)[^/]' \| \
13429 X"$ac_dest" : 'X\(//\)$' \| \
13430 X"$ac_dest" : 'X\(/\)' \| \
13431 . : '\(.\)' 2>/dev/null ||
13432echo X"$ac_dest" |
13433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13435 /^X\(\/\/\)$/{ s//\1/; q; }
13436 /^X\(\/\).*/{ s//\1/; q; }
13437 s/.*/./; q'`
13438 { if $as_mkdir_p; then
13439 mkdir -p "$ac_dir"
13440 else
13441 as_dir="$ac_dir"
13442 as_dirs=
13443 while test ! -d "$as_dir"; do
13444 as_dirs="$as_dir $as_dirs"
13445 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13446$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13447 X"$as_dir" : 'X\(//\)[^/]' \| \
13448 X"$as_dir" : 'X\(//\)$' \| \
13449 X"$as_dir" : 'X\(/\)' \| \
13450 . : '\(.\)' 2>/dev/null ||
13451echo X"$as_dir" |
13452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13454 /^X\(\/\/\)$/{ s//\1/; q; }
13455 /^X\(\/\).*/{ s//\1/; q; }
13456 s/.*/./; q'`
13457 done
13458 test ! -n "$as_dirs" || mkdir $as_dirs
13459 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13460echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13461 { (exit 1); exit 1; }; }; }
b3baf5d0 13462
5464f5a1 13463 ac_builddir=.
b3baf5d0 13464
5464f5a1
NN
13465if test "$ac_dir" != .; then
13466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13467 # A "../" for each directory in $ac_dir_suffix.
13468 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13469else
13470 ac_dir_suffix= ac_top_builddir=
13471fi
13472
13473case $srcdir in
13474 .) # No --srcdir option. We are building in place.
13475 ac_srcdir=.
13476 if test -z "$ac_top_builddir"; then
13477 ac_top_srcdir=.
13478 else
13479 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13480 fi ;;
13481 [\\/]* | ?:[\\/]* ) # Absolute path.
13482 ac_srcdir=$srcdir$ac_dir_suffix;
13483 ac_top_srcdir=$srcdir ;;
13484 *) # Relative path.
13485 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13486 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13487esac
13488
13489# Do not use `cd foo && pwd` to compute absolute paths, because
13490# the directories may not exist.
13491case `pwd` in
13492.) ac_abs_builddir="$ac_dir";;
13493*)
13494 case "$ac_dir" in
13495 .) ac_abs_builddir=`pwd`;;
13496 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13497 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13498 esac;;
13499esac
13500case $ac_abs_builddir in
13501.) ac_abs_top_builddir=${ac_top_builddir}.;;
13502*)
13503 case ${ac_top_builddir}. in
13504 .) ac_abs_top_builddir=$ac_abs_builddir;;
13505 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13506 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13507 esac;;
13508esac
13509case $ac_abs_builddir in
13510.) ac_abs_srcdir=$ac_srcdir;;
13511*)
13512 case $ac_srcdir in
13513 .) ac_abs_srcdir=$ac_abs_builddir;;
13514 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13515 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13516 esac;;
13517esac
13518case $ac_abs_builddir in
13519.) ac_abs_top_srcdir=$ac_top_srcdir;;
13520*)
13521 case $ac_top_srcdir in
13522 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13523 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13524 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13525 esac;;
13526esac
13527
13528
13529 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13530echo "$as_me: executing $ac_dest commands" >&6;}
13531 case $ac_dest in
13532 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
13533 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
13534 esac
13535done
13536_ACEOF
13537
13538cat >>$CONFIG_STATUS <<\_ACEOF
13539
13540{ (exit 0); exit 0; }
13541_ACEOF
252b5132 13542chmod +x $CONFIG_STATUS
5464f5a1
NN
13543ac_clean_files=$ac_clean_files_save
13544
13545
13546# configure is writing to config.log, and then calls config.status.
13547# config.status does its own redirection, appending to config.log.
13548# Unfortunately, on DOS this fails, as config.log is still kept open
13549# by configure, so config.status won't be able to write to it; its
13550# output is simply discarded. So we exec the FD to /dev/null,
13551# effectively closing config.log, so it can be properly (re)opened and
13552# appended to by config.status. When coming back to configure, we
13553# need to make the FD available again.
13554if test "$no_create" != yes; then
13555 ac_cs_success=:
13556 ac_config_status_args=
13557 test "$silent" = yes &&
13558 ac_config_status_args="$ac_config_status_args --quiet"
13559 exec 5>/dev/null
13560 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13561 exec 5>>config.log
13562 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13563 # would make configure fail if this is the last instruction.
13564 $ac_cs_success || { (exit 1); exit 1; }
13565fi
252b5132 13566
55c80943 13567
This page took 1.268625 seconds and 4 git commands to generate.