Index: ChangeLog
[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
974 cd "$ac_popdir"
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); } &&
1998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2010 ac_compiler_gnu=yes
2011else
2012 echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015ac_compiler_gnu=no
2016fi
2017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018ac_cv_c_compiler_gnu=$ac_compiler_gnu
2019
2020fi
2021echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023GCC=`test $ac_compiler_gnu = yes && echo yes`
2024ac_test_CFLAGS=${CFLAGS+set}
2025ac_save_CFLAGS=$CFLAGS
2026CFLAGS="-g"
2027echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029if test "${ac_cv_prog_cc_g+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032 cat >conftest.$ac_ext <<_ACEOF
2033/* confdefs.h. */
2034_ACEOF
2035cat confdefs.h >>conftest.$ac_ext
2036cat >>conftest.$ac_ext <<_ACEOF
2037/* end confdefs.h. */
2038
2039int
2040main ()
2041{
2042
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047rm -f conftest.$ac_objext
2048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>conftest.er1
2050 ac_status=$?
2051 grep -v '^ *+' conftest.er1 >conftest.err
2052 rm -f conftest.er1
2053 cat conftest.err >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
2056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058 (eval $ac_try) 2>&5
2059 ac_status=$?
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); }; } &&
2062 { ac_try='test -s conftest.$ac_objext'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; }; then
2068 ac_cv_prog_cc_g=yes
2069else
2070 echo "$as_me: failed program was:" >&5
2071sed 's/^/| /' conftest.$ac_ext >&5
2072
2073ac_cv_prog_cc_g=no
2074fi
2075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2076fi
2077echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2078echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2079if test "$ac_test_CFLAGS" = set; then
2080 CFLAGS=$ac_save_CFLAGS
2081elif test $ac_cv_prog_cc_g = yes; then
2082 if test "$GCC" = yes; then
2083 CFLAGS="-g -O2"
2084 else
2085 CFLAGS="-g"
2086 fi
2087else
2088 if test "$GCC" = yes; then
2089 CFLAGS="-O2"
2090 else
2091 CFLAGS=
2092 fi
2093fi
2094echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2095echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099 ac_cv_prog_cc_stdc=no
2100ac_save_CC=$CC
2101cat >conftest.$ac_ext <<_ACEOF
2102/* confdefs.h. */
2103_ACEOF
2104cat confdefs.h >>conftest.$ac_ext
2105cat >>conftest.$ac_ext <<_ACEOF
2106/* end confdefs.h. */
2107#include <stdarg.h>
2108#include <stdio.h>
2109#include <sys/types.h>
2110#include <sys/stat.h>
2111/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2112struct buf { int x; };
2113FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114static char *e (p, i)
2115 char **p;
2116 int i;
2117{
2118 return p[i];
2119}
2120static char *f (char * (*g) (char **, int), char **p, ...)
2121{
2122 char *s;
2123 va_list v;
2124 va_start (v,p);
2125 s = g (p, va_arg (v,int));
2126 va_end (v);
2127 return s;
2128}
2129
2130/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2131 function prototypes and stuff, but not '\xHH' hex character constants.
2132 These don't provoke an error unfortunately, instead are silently treated
2133 as 'x'. The following induces an error, until -std1 is added to get
2134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2135 array size at least. It's necessary to write '\x00'==0 to get something
2136 that's true only with -std1. */
2137int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138
2139int test (int i, double x);
2140struct s1 {int (*f) (int a);};
2141struct s2 {int (*f) (double a);};
2142int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2143int argc;
2144char **argv;
2145int
2146main ()
2147{
2148return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153# Don't try gcc -ansi; that turns off useful extensions and
2154# breaks some systems' header files.
2155# AIX -qlanglvl=ansi
2156# Ultrix and OSF/1 -std1
2157# HP-UX 10.20 and later -Ae
2158# HP-UX older versions -Aa -D_HPUX_SOURCE
2159# SVR4 -Xc -D__EXTENSIONS__
2160for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161do
2162 CC="$ac_save_CC $ac_arg"
2163 rm -f conftest.$ac_objext
2164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165 (eval $ac_compile) 2>conftest.er1
2166 ac_status=$?
2167 grep -v '^ *+' conftest.er1 >conftest.err
2168 rm -f conftest.er1
2169 cat conftest.err >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
2172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; } &&
2178 { ac_try='test -s conftest.$ac_objext'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2184 ac_cv_prog_cc_stdc=$ac_arg
2185break
2186else
2187 echo "$as_me: failed program was:" >&5
2188sed 's/^/| /' conftest.$ac_ext >&5
2189
2190fi
2191rm -f conftest.err conftest.$ac_objext
2192done
2193rm -f conftest.$ac_ext conftest.$ac_objext
2194CC=$ac_save_CC
2195
2196fi
2197
2198case "x$ac_cv_prog_cc_stdc" in
2199 x|xno)
2200 echo "$as_me:$LINENO: result: none needed" >&5
2201echo "${ECHO_T}none needed" >&6 ;;
2202 *)
2203 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2204echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2205 CC="$CC $ac_cv_prog_cc_stdc" ;;
2206esac
2207
2208# Some people use a C++ compiler to compile C. Since we use `exit',
2209# in C++ we need to declare it. In case someone uses the same compiler
2210# for both compiling C and C++ we need to have the C++ compiler decide
2211# the declaration of exit, since it's the most demanding environment.
2212cat >conftest.$ac_ext <<_ACEOF
2213#ifndef __cplusplus
2214 choke me
2215#endif
2216_ACEOF
2217rm -f conftest.$ac_objext
2218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2219 (eval $ac_compile) 2>conftest.er1
2220 ac_status=$?
2221 grep -v '^ *+' conftest.er1 >conftest.err
2222 rm -f conftest.er1
2223 cat conftest.err >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); } &&
2226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 for ac_declaration in \
2239 '' \
2240 'extern "C" void std::exit (int) throw (); using std::exit;' \
2241 'extern "C" void std::exit (int); using std::exit;' \
2242 'extern "C" void exit (int) throw ();' \
2243 'extern "C" void exit (int);' \
2244 'void exit (int);'
2245do
2246 cat >conftest.$ac_ext <<_ACEOF
2247/* confdefs.h. */
2248_ACEOF
2249cat confdefs.h >>conftest.$ac_ext
2250cat >>conftest.$ac_ext <<_ACEOF
2251/* end confdefs.h. */
2252$ac_declaration
2253#include <stdlib.h>
2254int
2255main ()
2256{
2257exit (42);
2258 ;
2259 return 0;
2260}
2261_ACEOF
2262rm -f conftest.$ac_objext
2263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>conftest.er1
2265 ac_status=$?
2266 grep -v '^ *+' conftest.er1 >conftest.err
2267 rm -f conftest.er1
2268 cat conftest.err >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 (eval $ac_try) 2>&5
2274 ac_status=$?
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 (eval $ac_try) 2>&5
2280 ac_status=$?
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2283 :
2284else
2285 echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288continue
2289fi
2290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291 cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h. */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h. */
2297$ac_declaration
2298int
2299main ()
2300{
2301exit (42);
2302 ;
2303 return 0;
2304}
2305_ACEOF
2306rm -f conftest.$ac_objext
2307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308 (eval $ac_compile) 2>conftest.er1
2309 ac_status=$?
2310 grep -v '^ *+' conftest.er1 >conftest.err
2311 rm -f conftest.er1
2312 cat conftest.err >&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2327 break
2328else
2329 echo "$as_me: failed program was:" >&5
2330sed 's/^/| /' conftest.$ac_ext >&5
2331
2332fi
2333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334done
2335rm -f conftest*
2336if test -n "$ac_declaration"; then
2337 echo '#ifdef __cplusplus' >>confdefs.h
2338 echo $ac_declaration >>confdefs.h
2339 echo '#endif' >>confdefs.h
2340fi
2341
2342else
2343 echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346fi
2347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348ac_ext=c
2349ac_cpp='$CPP $CPPFLAGS'
2350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353
2354
2355
2356 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2357echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2358if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2360else
2361 ac_check_lib_save_LIBS=$LIBS
2362LIBS="-lcposix $LIBS"
2363cat >conftest.$ac_ext <<_ACEOF
2364/* confdefs.h. */
2365_ACEOF
2366cat confdefs.h >>conftest.$ac_ext
2367cat >>conftest.$ac_ext <<_ACEOF
2368/* end confdefs.h. */
2369
2370/* Override any gcc2 internal prototype to avoid an error. */
2371#ifdef __cplusplus
2372extern "C"
2373#endif
2374/* We use char because int might match the return type of a gcc2
2375 builtin and then its argument prototype would still apply. */
2376char strerror ();
2377int
2378main ()
2379{
2380strerror ();
2381 ;
2382 return 0;
2383}
2384_ACEOF
2385rm -f conftest.$ac_objext conftest$ac_exeext
2386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2387 (eval $ac_link) 2>conftest.er1
2388 ac_status=$?
2389 grep -v '^ *+' conftest.er1 >conftest.err
2390 rm -f conftest.er1
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest$ac_exeext'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2406 ac_cv_lib_cposix_strerror=yes
2407else
2408 echo "$as_me: failed program was:" >&5
2409sed 's/^/| /' conftest.$ac_ext >&5
2410
2411ac_cv_lib_cposix_strerror=no
2412fi
2413rm -f conftest.err conftest.$ac_objext \
2414 conftest$ac_exeext conftest.$ac_ext
2415LIBS=$ac_check_lib_save_LIBS
2416fi
2417echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2418echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2419if test $ac_cv_lib_cposix_strerror = yes; then
2420 LIBS="$LIBS -lcposix"
2421fi
2422
2423
2424
2425
2426am__api_version="1.4"
2427# Find a good install program. We prefer a C program (faster),
2428# so one script is as good as another. But avoid the broken or
2429# incompatible versions:
2430# SysV /etc/install, /usr/sbin/install
2431# SunOS /usr/etc/install
2432# IRIX /sbin/install
2433# AIX /bin/install
2434# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2435# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2436# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2437# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2438# OS/2's system install, which has a completely different semantic
252b5132 2439# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2440echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2441echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2442if test -z "$INSTALL"; then
5464f5a1
NN
2443if test "${ac_cv_path_install+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2445else
5464f5a1
NN
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447for as_dir in $PATH
2448do
2449 IFS=$as_save_IFS
2450 test -z "$as_dir" && as_dir=.
2451 # Account for people who put trailing slashes in PATH elements.
2452case $as_dir/ in
2453 ./ | .// | /cC/* | \
2454 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2455 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2456 /usr/ucb/* ) ;;
2457 *)
2458 # OSF1 and SCO ODT 3.0 have their own names for install.
2459 # Don't use installbsd from OSF since it installs stuff as root
2460 # by default.
2461 for ac_prog in ginstall scoinst install; do
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2464 if test $ac_prog = install &&
5464f5a1 2465 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2466 # AIX install. It has an incompatible calling convention.
2467 :
5464f5a1
NN
2468 elif test $ac_prog = install &&
2469 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470 # program-specific install script used by HP pwplus--don't use.
2471 :
252b5132 2472 else
5464f5a1
NN
2473 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474 break 3
252b5132
RH
2475 fi
2476 fi
2477 done
5464f5a1
NN
2478 done
2479 ;;
2480esac
2481done
2482
252b5132
RH
2483
2484fi
2485 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2486 INSTALL=$ac_cv_path_install
252b5132
RH
2487 else
2488 # As a last resort, use the slow shell script. We don't cache a
2489 # path for INSTALL within a source directory, because that will
2490 # break other packages using the cache if that directory is
2491 # removed, or if the path is relative.
5464f5a1 2492 INSTALL=$ac_install_sh
252b5132
RH
2493 fi
2494fi
5464f5a1
NN
2495echo "$as_me:$LINENO: result: $INSTALL" >&5
2496echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2497
2498# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499# It thinks the first close brace ends the variable substitution.
2500test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501
5464f5a1 2502test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2503
2504test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2505
5464f5a1
NN
2506echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2507echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2508# Just in case
2509sleep 1
2510echo timestamp > conftestfile
2511# Do `set' in a subshell so we don't clobber the current shell's
2512# arguments. Must try -L first in case configure is actually a
2513# symlink; some systems play weird games with the mod time of symlinks
2514# (eg FreeBSD returns the mod time of the symlink's containing
2515# directory).
2516if (
2517 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2518 if test "$*" = "X"; then
2519 # -L didn't work.
2520 set X `ls -t $srcdir/configure conftestfile`
2521 fi
2522 if test "$*" != "X $srcdir/configure conftestfile" \
2523 && test "$*" != "X conftestfile $srcdir/configure"; then
2524
2525 # If neither matched, then we have a broken ls. This can happen
2526 # if, for instance, CONFIG_SHELL is bash and it inherits a
2527 # broken ls alias from the environment. This has actually
2528 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2529 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2530alias in your environment" >&5
2531echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2532alias in your environment" >&2;}
2533 { (exit 1); exit 1; }; }
252b5132
RH
2534 fi
2535
2536 test "$2" = conftestfile
2537 )
2538then
2539 # Ok.
2540 :
2541else
5464f5a1
NN
2542 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2543Check your system clock" >&5
2544echo "$as_me: error: newly created file is older than distributed files!
2545Check your system clock" >&2;}
2546 { (exit 1); exit 1; }; }
252b5132
RH
2547fi
2548rm -f conftest*
5464f5a1
NN
2549echo "$as_me:$LINENO: result: yes" >&5
2550echo "${ECHO_T}yes" >&6
252b5132 2551test "$program_prefix" != NONE &&
5464f5a1 2552 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2553# Use a double $ so make ignores it.
2554test "$program_suffix" != NONE &&
5464f5a1
NN
2555 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2556# Double any \ or $. echo might interpret backslashes.
2557# By default was `s,x,x', remove it if useless.
2558cat <<\_ACEOF >conftest.sed
2559s/[\\$]/&&/g;s/;s,x,x,$//
2560_ACEOF
2561program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2562rm conftest.sed
2563
2564echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2565echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2566set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2567if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570 cat >conftest.make <<\_ACEOF
252b5132 2571all:
5464f5a1
NN
2572 @echo 'ac_maketemp="$(MAKE)"'
2573_ACEOF
252b5132 2574# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2575eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2576if test -n "$ac_maketemp"; then
2577 eval ac_cv_prog_make_${ac_make}_set=yes
2578else
2579 eval ac_cv_prog_make_${ac_make}_set=no
2580fi
5464f5a1 2581rm -f conftest.make
252b5132
RH
2582fi
2583if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2584 echo "$as_me:$LINENO: result: yes" >&5
2585echo "${ECHO_T}yes" >&6
252b5132
RH
2586 SET_MAKE=
2587else
5464f5a1
NN
2588 echo "$as_me:$LINENO: result: no" >&5
2589echo "${ECHO_T}no" >&6
252b5132
RH
2590 SET_MAKE="MAKE=${MAKE-make}"
2591fi
2592
6be7c12c 2593
252b5132
RH
2594PACKAGE=bfd
2595
7dfb3b6b 2596VERSION=2.15.91
252b5132
RH
2597
2598if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
5464f5a1
NN
2599 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2600echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2601 { (exit 1); exit 1; }; }
252b5132 2602fi
5464f5a1
NN
2603
2604cat >>confdefs.h <<_ACEOF
252b5132 2605#define PACKAGE "$PACKAGE"
5464f5a1 2606_ACEOF
252b5132 2607
5464f5a1
NN
2608
2609cat >>confdefs.h <<_ACEOF
252b5132 2610#define VERSION "$VERSION"
5464f5a1 2611_ACEOF
252b5132 2612
6be7c12c
AO
2613
2614
252b5132 2615missing_dir=`cd $ac_aux_dir && pwd`
5464f5a1
NN
2616echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
2617echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
252b5132
RH
2618# Run test in a subshell; some versions of sh will print an error if
2619# an executable is not found, even if stderr is redirected.
2620# Redirect stdin to placate older versions of autoconf. Sigh.
6726e1ea
L
2621if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2622 ACLOCAL=aclocal-${am__api_version}
5464f5a1
NN
2623 echo "$as_me:$LINENO: result: found" >&5
2624echo "${ECHO_T}found" >&6
252b5132 2625else
6726e1ea 2626 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
5464f5a1
NN
2627 echo "$as_me:$LINENO: result: missing" >&5
2628echo "${ECHO_T}missing" >&6
252b5132
RH
2629fi
2630
5464f5a1
NN
2631echo "$as_me:$LINENO: checking for working autoconf" >&5
2632echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
252b5132
RH
2633# Run test in a subshell; some versions of sh will print an error if
2634# an executable is not found, even if stderr is redirected.
2635# Redirect stdin to placate older versions of autoconf. Sigh.
2636if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2637 AUTOCONF=autoconf
5464f5a1
NN
2638 echo "$as_me:$LINENO: result: found" >&5
2639echo "${ECHO_T}found" >&6
252b5132
RH
2640else
2641 AUTOCONF="$missing_dir/missing autoconf"
5464f5a1
NN
2642 echo "$as_me:$LINENO: result: missing" >&5
2643echo "${ECHO_T}missing" >&6
252b5132
RH
2644fi
2645
5464f5a1
NN
2646echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
2647echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
252b5132
RH
2648# Run test in a subshell; some versions of sh will print an error if
2649# an executable is not found, even if stderr is redirected.
2650# Redirect stdin to placate older versions of autoconf. Sigh.
6726e1ea
L
2651if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2652 AUTOMAKE=automake-${am__api_version}
5464f5a1
NN
2653 echo "$as_me:$LINENO: result: found" >&5
2654echo "${ECHO_T}found" >&6
252b5132 2655else
6726e1ea 2656 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
5464f5a1
NN
2657 echo "$as_me:$LINENO: result: missing" >&5
2658echo "${ECHO_T}missing" >&6
252b5132
RH
2659fi
2660
5464f5a1
NN
2661echo "$as_me:$LINENO: checking for working autoheader" >&5
2662echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
252b5132
RH
2663# Run test in a subshell; some versions of sh will print an error if
2664# an executable is not found, even if stderr is redirected.
2665# Redirect stdin to placate older versions of autoconf. Sigh.
2666if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2667 AUTOHEADER=autoheader
5464f5a1
NN
2668 echo "$as_me:$LINENO: result: found" >&5
2669echo "${ECHO_T}found" >&6
252b5132
RH
2670else
2671 AUTOHEADER="$missing_dir/missing autoheader"
5464f5a1
NN
2672 echo "$as_me:$LINENO: result: missing" >&5
2673echo "${ECHO_T}missing" >&6
252b5132
RH
2674fi
2675
5464f5a1
NN
2676echo "$as_me:$LINENO: checking for working makeinfo" >&5
2677echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
252b5132
RH
2678# Run test in a subshell; some versions of sh will print an error if
2679# an executable is not found, even if stderr is redirected.
2680# Redirect stdin to placate older versions of autoconf. Sigh.
2681if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2682 MAKEINFO=makeinfo
5464f5a1
NN
2683 echo "$as_me:$LINENO: result: found" >&5
2684echo "${ECHO_T}found" >&6
252b5132
RH
2685else
2686 MAKEINFO="$missing_dir/missing makeinfo"
5464f5a1
NN
2687 echo "$as_me:$LINENO: result: missing" >&5
2688echo "${ECHO_T}missing" >&6
252b5132
RH
2689fi
2690
6be7c12c 2691
e43d48cc 2692
5464f5a1
NN
2693if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 2695set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
2696echo "$as_me:$LINENO: checking for $ac_word" >&5
2697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2698if test "${ac_cv_prog_AR+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2700else
2701 if test -n "$AR"; then
2702 ac_cv_prog_AR="$AR" # Let the user override the test.
2703else
5464f5a1
NN
2704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705for as_dir in $PATH
2706do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_AR="${ac_tool_prefix}ar"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715done
2716done
2717
252b5132
RH
2718fi
2719fi
5464f5a1 2720AR=$ac_cv_prog_AR
252b5132 2721if test -n "$AR"; then
5464f5a1
NN
2722 echo "$as_me:$LINENO: result: $AR" >&5
2723echo "${ECHO_T}$AR" >&6
252b5132 2724else
5464f5a1
NN
2725 echo "$as_me:$LINENO: result: no" >&5
2726echo "${ECHO_T}no" >&6
2727fi
2728
252b5132 2729fi
5464f5a1
NN
2730if test -z "$ac_cv_prog_AR"; then
2731 ac_ct_AR=$AR
2732 # Extract the first word of "ar", so it can be a program name with args.
2733set dummy ar; ac_word=$2
2734echo "$as_me:$LINENO: checking for $ac_word" >&5
2735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738else
2739 if test -n "$ac_ct_AR"; then
2740 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2741else
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_ac_ct_AR="ar"
2750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753done
2754done
252b5132 2755
5464f5a1
NN
2756fi
2757fi
2758ac_ct_AR=$ac_cv_prog_ac_ct_AR
2759if test -n "$ac_ct_AR"; then
2760 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2761echo "${ECHO_T}$ac_ct_AR" >&6
2762else
2763 echo "$as_me:$LINENO: result: no" >&5
2764echo "${ECHO_T}no" >&6
2765fi
252b5132 2766
5464f5a1
NN
2767 AR=$ac_ct_AR
2768else
2769 AR="$ac_cv_prog_AR"
2770fi
6be7c12c 2771
5464f5a1
NN
2772if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 2774set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
2775echo "$as_me:$LINENO: checking for $ac_word" >&5
2776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777if test "${ac_cv_prog_RANLIB+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2779else
2780 if test -n "$RANLIB"; then
2781 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2782else
5464f5a1
NN
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794done
2795done
2796
252b5132
RH
2797fi
2798fi
5464f5a1 2799RANLIB=$ac_cv_prog_RANLIB
252b5132 2800if test -n "$RANLIB"; then
5464f5a1
NN
2801 echo "$as_me:$LINENO: result: $RANLIB" >&5
2802echo "${ECHO_T}$RANLIB" >&6
252b5132 2803else
5464f5a1
NN
2804 echo "$as_me:$LINENO: result: no" >&5
2805echo "${ECHO_T}no" >&6
252b5132
RH
2806fi
2807
5464f5a1 2808fi
252b5132 2809if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 2810 ac_ct_RANLIB=$RANLIB
252b5132
RH
2811 # Extract the first word of "ranlib", so it can be a program name with args.
2812set dummy ranlib; ac_word=$2
5464f5a1
NN
2813echo "$as_me:$LINENO: checking for $ac_word" >&5
2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 2817else
5464f5a1
NN
2818 if test -n "$ac_ct_RANLIB"; then
2819 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 2820else
5464f5a1
NN
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_ac_ct_RANLIB="ranlib"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
2833done
2834
2835 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
2836fi
2837fi
5464f5a1
NN
2838ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2839if test -n "$ac_ct_RANLIB"; then
2840 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2841echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 2842else
5464f5a1
NN
2843 echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6
252b5132
RH
2845fi
2846
5464f5a1 2847 RANLIB=$ac_ct_RANLIB
252b5132 2848else
5464f5a1 2849 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
2850fi
2851
252b5132
RH
2852
2853# Check whether --enable-shared or --disable-shared was given.
2854if test "${enable_shared+set}" = set; then
2855 enableval="$enable_shared"
2856 p=${PACKAGE-default}
55c80943 2857case $enableval in
252b5132
RH
2858yes) enable_shared=yes ;;
2859no) enable_shared=no ;;
2860*)
2861 enable_shared=no
2862 # Look at the argument we got. We use all the common list separators.
2863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2864 for pkg in $enableval; do
2865 if test "X$pkg" = "X$p"; then
2866 enable_shared=yes
2867 fi
2868 done
2869 IFS="$ac_save_ifs"
2870 ;;
2871esac
2872else
2873 enable_shared=no
5464f5a1 2874fi;
252b5132
RH
2875
2876# Check whether --enable-static or --disable-static was given.
2877if test "${enable_static+set}" = set; then
2878 enableval="$enable_static"
2879 p=${PACKAGE-default}
55c80943 2880case $enableval in
252b5132
RH
2881yes) enable_static=yes ;;
2882no) enable_static=no ;;
2883*)
2884 enable_static=no
2885 # Look at the argument we got. We use all the common list separators.
2886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2887 for pkg in $enableval; do
2888 if test "X$pkg" = "X$p"; then
2889 enable_static=yes
2890 fi
2891 done
2892 IFS="$ac_save_ifs"
2893 ;;
2894esac
2895else
2896 enable_static=yes
5464f5a1 2897fi;
b2ef150d
ILT
2898# Check whether --enable-fast-install or --disable-fast-install was given.
2899if test "${enable_fast_install+set}" = set; then
2900 enableval="$enable_fast_install"
2901 p=${PACKAGE-default}
55c80943 2902case $enableval in
b2ef150d
ILT
2903yes) enable_fast_install=yes ;;
2904no) enable_fast_install=no ;;
2905*)
2906 enable_fast_install=no
2907 # Look at the argument we got. We use all the common list separators.
2908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2909 for pkg in $enableval; do
2910 if test "X$pkg" = "X$p"; then
2911 enable_fast_install=yes
2912 fi
2913 done
2914 IFS="$ac_save_ifs"
2915 ;;
2916esac
2917else
2918 enable_fast_install=yes
5464f5a1 2919fi;
c5d1701e 2920
252b5132
RH
2921# Check whether --with-gnu-ld or --without-gnu-ld was given.
2922if test "${with_gnu_ld+set}" = set; then
2923 withval="$with_gnu_ld"
2924 test "$withval" = no || with_gnu_ld=yes
2925else
2926 with_gnu_ld=no
5464f5a1 2927fi;
252b5132 2928ac_prog=ld
55c80943 2929if test "$GCC" = yes; then
252b5132 2930 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
2931 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2932echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
2933 case $host in
2934 *-*-mingw*)
2935 # gcc leaves a trailing carriage return which upsets mingw
2936 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2937 *)
2938 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2939 esac
55c80943 2940 case $ac_prog in
b2ef150d 2941 # Accept absolute paths.
a74801ba 2942 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
2943 re_direlt='/[^/][^/]*/\.\./'
2944 # Canonicalize the path of ld
2945 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2946 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2947 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2948 done
2949 test -z "$LD" && LD="$ac_prog"
2950 ;;
252b5132
RH
2951 "")
2952 # If it fails, then pretend we aren't using GCC.
2953 ac_prog=ld
2954 ;;
2955 *)
2956 # If it is relative, then search for the first ld in PATH.
2957 with_gnu_ld=unknown
2958 ;;
2959 esac
2960elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
2961 echo "$as_me:$LINENO: checking for GNU ld" >&5
2962echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 2963else
5464f5a1
NN
2964 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2965echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 2966fi
5464f5a1
NN
2967if test "${lt_cv_path_LD+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2969else
2970 if test -z "$LD"; then
a74801ba 2971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
2972 for ac_dir in $PATH; do
2973 test -z "$ac_dir" && ac_dir=.
a74801ba 2974 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 2975 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
2976 # Check to see if the program is GNU ld. I'd rather use --version,
2977 # but apparently some GNU ld's only accept -v.
2978 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 2979 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
2980 test "$with_gnu_ld" != no && break
2981 else
b2ef150d 2982 test "$with_gnu_ld" != yes && break
252b5132
RH
2983 fi
2984 fi
2985 done
2986 IFS="$ac_save_ifs"
2987else
55c80943 2988 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
2989fi
2990fi
2991
55c80943 2992LD="$lt_cv_path_LD"
252b5132 2993if test -n "$LD"; then
5464f5a1
NN
2994 echo "$as_me:$LINENO: result: $LD" >&5
2995echo "${ECHO_T}$LD" >&6
252b5132 2996else
5464f5a1
NN
2997 echo "$as_me:$LINENO: result: no" >&5
2998echo "${ECHO_T}no" >&6
252b5132 2999fi
5464f5a1
NN
3000test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3001echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3002 { (exit 1); exit 1; }; }
3003echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3004echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3005if test "${lt_cv_prog_gnu_ld+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3007else
3008 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3009if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3010 lt_cv_prog_gnu_ld=yes
252b5132 3011else
55c80943 3012 lt_cv_prog_gnu_ld=no
252b5132
RH
3013fi
3014fi
5464f5a1
NN
3015echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3016echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3017with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3018
6be7c12c 3019
5464f5a1
NN
3020echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3021echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3022if test "${lt_cv_ld_reload_flag+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3024else
3025 lt_cv_ld_reload_flag='-r'
3026fi
5464f5a1
NN
3027echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3028echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3029reload_flag=$lt_cv_ld_reload_flag
3030test -n "$reload_flag" && reload_flag=" $reload_flag"
3031
5464f5a1
NN
3032echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3033echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3034if test "${lt_cv_path_NM+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3036else
3037 if test -n "$NM"; then
3038 # Let the user override the test.
55c80943 3039 lt_cv_path_NM="$NM"
252b5132 3040else
a74801ba 3041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3042 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3043 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3044 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3045 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3046 # Check to see if the nm accepts a BSD-compat flag.
3047 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3048 # nm: unknown option "B" ignored
90f2472a
AO
3049 # Tru64's nm complains that /dev/null is an invalid object file
3050 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3051 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3052 break
ac48eca1 3053 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3054 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3055 break
252b5132 3056 else
55c80943 3057 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3058 continue # so that we can try to find one that supports BSD flags
252b5132 3059 fi
252b5132
RH
3060 fi
3061 done
3062 IFS="$ac_save_ifs"
55c80943 3063 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3064fi
3065fi
3066
55c80943 3067NM="$lt_cv_path_NM"
5464f5a1
NN
3068echo "$as_me:$LINENO: result: $NM" >&5
3069echo "${ECHO_T}$NM" >&6
252b5132 3070
5464f5a1
NN
3071echo "$as_me:$LINENO: checking whether ln -s works" >&5
3072echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3073LN_S=$as_ln_s
3074if test "$LN_S" = "ln -s"; then
3075 echo "$as_me:$LINENO: result: yes" >&5
3076echo "${ECHO_T}yes" >&6
6be7c12c 3077else
5464f5a1
NN
3078 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3079echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3080fi
3081
5464f5a1
NN
3082echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3083echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3084if test "${lt_cv_deplibs_check_method+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3086else
d64552c5 3087 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3088lt_cv_file_magic_test_file=
3089lt_cv_deplibs_check_method='unknown'
3090# Need to set the preceding variable on all platforms that support
3091# interlibrary dependencies.
3092# 'none' -- dependencies not supported.
3093# `unknown' -- same as none, but documents that we really don't know.
3094# 'pass_all' -- all dependencies passed with no checks.
3095# 'test_compile' -- check by making test program.
3096# 'file_magic [regex]' -- check by looking for files in library path
3097# which responds to the $file_magic_cmd with a given egrep regex.
3098# If you have `file' or equivalent on your system and you're not sure
3099# whether `pass_all' will *always* work, you probably want this one.
3100
55c80943
NC
3101case $host_os in
3102aix*)
ac48eca1
AO
3103 lt_cv_deplibs_check_method=pass_all
3104 ;;
3105
3106beos*)
3107 lt_cv_deplibs_check_method=pass_all
3108 ;;
3109
3110bsdi4*)
55c80943
NC
3111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3112 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3113 lt_cv_file_magic_test_file=/shlib/libc.so
3114 ;;
3115
d64552c5 3116cygwin* | mingw* |pw32*)
ac48eca1 3117 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3118 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3119 ;;
3120
55c80943
NC
3121darwin* | rhapsody*)
3122 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3123 lt_cv_file_magic_cmd='/usr/bin/file -L'
3124 case "$host_os" in
3125 rhapsody* | darwin1.012)
3126 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3127 ;;
3128 *) # Darwin 1.3 on
3129 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3130 ;;
3131 esac
55c80943
NC
3132 ;;
3133
5464f5a1 3134freebsd* | kfreebsd*-gnu)
ac48eca1 3135 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3136 case $host_cpu in
ac48eca1 3137 i*86 )
90f2472a
AO
3138 # Not sure whether the presence of OpenBSD here was a mistake.
3139 # Let's accept both of them until this is cleared up.
55c80943
NC
3140 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3141 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3142 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3143 ;;
3144 esac
3145 else
3146 lt_cv_deplibs_check_method=pass_all
3147 fi
3148 ;;
3149
3150gnu*)
3151 lt_cv_deplibs_check_method=pass_all
3152 ;;
3153
55c80943 3154hpux10.20*|hpux11*)
4867be41
DJ
3155 case $host_cpu in
3156 hppa*)
3157 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3158 lt_cv_file_magic_cmd=/usr/bin/file
3159 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3160 ;;
3161 ia64*)
3162 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3163 lt_cv_file_magic_cmd=/usr/bin/file
3164 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3165 ;;
3166 esac
ac48eca1
AO
3167 ;;
3168
3169irix5* | irix6*)
55c80943 3170 case $host_os in
ac48eca1
AO
3171 irix5*)
3172 # this will be overridden with pass_all, but let us keep it just in case
3173 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3174 ;;
3175 *)
55c80943 3176 case $LD in
ac48eca1
AO
3177 *-32|*"-32 ") libmagic=32-bit;;
3178 *-n32|*"-n32 ") libmagic=N32;;
3179 *-64|*"-64 ") libmagic=64-bit;;
3180 *) libmagic=never-match;;
3181 esac
3182 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3183 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3184 ;;
ac48eca1
AO
3185 esac
3186 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3187 lt_cv_deplibs_check_method=pass_all
3188 ;;
3189
3190# This must be Linux ELF.
90f2472a 3191linux-gnu*)
55c80943 3192 case $host_cpu in
c5d1701e 3193 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3194 lt_cv_deplibs_check_method=pass_all ;;
3195 *)
3196 # glibc up to 2.1.1 does not perform some relocations on ARM
55c80943
NC
3197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3198 esac
ac48eca1
AO
3199 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3200 ;;
3201
5464f5a1 3202netbsd* | knetbsd*-gnu)
55c80943 3203 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3204 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3205 else
b3baf5d0 3206 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3207 fi
55c80943
NC
3208 ;;
3209
3210newsos6)
3211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3212 lt_cv_file_magic_cmd=/usr/bin/file
3213 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3214 ;;
3215
3216osf3* | osf4* | osf5*)
3217 # this will be overridden with pass_all, but let us keep it just in case
3218 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3219 lt_cv_file_magic_test_file=/shlib/libc.so
3220 lt_cv_deplibs_check_method=pass_all
3221 ;;
3222
3223sco3.2v5*)
3224 lt_cv_deplibs_check_method=pass_all
3225 ;;
3226
3227solaris*)
3228 lt_cv_deplibs_check_method=pass_all
3229 lt_cv_file_magic_test_file=/lib/libc.so
3230 ;;
3231
6be7c12c
AO
3232sysv5uw[78]* | sysv4*uw2*)
3233 lt_cv_deplibs_check_method=pass_all
3234 ;;
3235
ac48eca1 3236sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3237 case $host_vendor in
ac48eca1
AO
3238 ncr)
3239 lt_cv_deplibs_check_method=pass_all
3240 ;;
3241 motorola)
55c80943
NC
3242 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]'
3243 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3244 ;;
3245 esac
3246 ;;
3247esac
3248
3249fi
5464f5a1
NN
3250echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3251echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3252file_magic_cmd=$lt_cv_file_magic_cmd
3253deplibs_check_method=$lt_cv_deplibs_check_method
3254
6be7c12c
AO
3255
3256
6be7c12c
AO
3257
3258# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3259
3260# Only perform the check for file, if the check method requires it
3261case $deplibs_check_method in
3262file_magic*)
3263 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3264 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3265echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3266if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3268else
3269 case $MAGIC_CMD in
3270 /*)
3271 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3272 ;;
3273 ?:/*)
3274 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3275 ;;
3276 *)
d64552c5 3277 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3279 ac_dummy="/usr/bin:$PATH"
3280 for ac_dir in $ac_dummy; do
3281 test -z "$ac_dir" && ac_dir=.
3282 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3283 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3284 if test -n "$file_magic_test_file"; then
55c80943 3285 case $deplibs_check_method in
ac48eca1
AO
3286 "file_magic "*)
3287 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3289 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3290 egrep "$file_magic_regex" > /dev/null; then
3291 :
3292 else
3293 cat <<EOF 1>&2
3294
3295*** Warning: the command libtool uses to detect shared libraries,
3296*** $file_magic_cmd, produces output that libtool cannot recognize.
3297*** The result is that libtool may fail to recognize shared libraries
3298*** as such. This will affect the creation of libtool libraries that
3299*** depend on shared libraries, but programs linked with such libtool
3300*** libraries will work regardless of this problem. Nevertheless, you
3301*** may want to report the problem to your system manager and/or to
3302*** bug-libtool@gnu.org
3303
3304EOF
3305 fi ;;
3306 esac
3307 fi
3308 break
3309 fi
3310 done
3311 IFS="$ac_save_ifs"
d64552c5 3312 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3313 ;;
3314esac
3315fi
3316
d64552c5
AO
3317MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3318if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3319 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3320echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3321else
5464f5a1
NN
3322 echo "$as_me:$LINENO: result: no" >&5
3323echo "${ECHO_T}no" >&6
ac48eca1
AO
3324fi
3325
d64552c5 3326if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3327 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3328 echo "$as_me:$LINENO: checking for file" >&5
3329echo $ECHO_N "checking for file... $ECHO_C" >&6
3330if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3332else
55c80943 3333 case $MAGIC_CMD in
ac48eca1 3334 /*)
d64552c5 3335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3336 ;;
3337 ?:/*)
d64552c5 3338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3339 ;;
3340 *)
d64552c5 3341 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3343 ac_dummy="/usr/bin:$PATH"
3344 for ac_dir in $ac_dummy; do
3345 test -z "$ac_dir" && ac_dir=.
3346 if test -f $ac_dir/file; then
d64552c5 3347 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3348 if test -n "$file_magic_test_file"; then
55c80943 3349 case $deplibs_check_method in
ac48eca1
AO
3350 "file_magic "*)
3351 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3353 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3354 egrep "$file_magic_regex" > /dev/null; then
3355 :
3356 else
3357 cat <<EOF 1>&2
3358
3359*** Warning: the command libtool uses to detect shared libraries,
3360*** $file_magic_cmd, produces output that libtool cannot recognize.
3361*** The result is that libtool may fail to recognize shared libraries
3362*** as such. This will affect the creation of libtool libraries that
3363*** depend on shared libraries, but programs linked with such libtool
3364*** libraries will work regardless of this problem. Nevertheless, you
3365*** may want to report the problem to your system manager and/or to
3366*** bug-libtool@gnu.org
3367
3368EOF
3369 fi ;;
3370 esac
3371 fi
3372 break
3373 fi
3374 done
3375 IFS="$ac_save_ifs"
d64552c5 3376 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3377 ;;
3378esac
3379fi
3380
d64552c5
AO
3381MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3382if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3383 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3384echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3385else
5464f5a1
NN
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
ac48eca1
AO
3388fi
3389
3390 else
d64552c5 3391 MAGIC_CMD=:
ac48eca1
AO
3392 fi
3393fi
3394
3395 fi
3396 ;;
3397esac
3398
5464f5a1
NN
3399if test -n "$ac_tool_prefix"; then
3400 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3401set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3402echo "$as_me:$LINENO: checking for $ac_word" >&5
3403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3404if test "${ac_cv_prog_RANLIB+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3406else
3407 if test -n "$RANLIB"; then
3408 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3409else
5464f5a1
NN
3410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411for as_dir in $PATH
3412do
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3420 fi
3421done
3422done
3423
ac48eca1
AO
3424fi
3425fi
5464f5a1 3426RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3427if test -n "$RANLIB"; then
5464f5a1
NN
3428 echo "$as_me:$LINENO: result: $RANLIB" >&5
3429echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3430else
5464f5a1
NN
3431 echo "$as_me:$LINENO: result: no" >&5
3432echo "${ECHO_T}no" >&6
ac48eca1
AO
3433fi
3434
5464f5a1 3435fi
ac48eca1 3436if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3437 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3438 # Extract the first word of "ranlib", so it can be a program name with args.
3439set dummy ranlib; ac_word=$2
5464f5a1
NN
3440echo "$as_me:$LINENO: checking for $ac_word" >&5
3441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3442if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3444else
5464f5a1
NN
3445 if test -n "$ac_ct_RANLIB"; then
3446 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3447else
5464f5a1
NN
3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449for as_dir in $PATH
3450do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 ac_cv_prog_ac_ct_RANLIB="ranlib"
3456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459done
3460done
3461
3462 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3463fi
3464fi
5464f5a1
NN
3465ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3466if test -n "$ac_ct_RANLIB"; then
3467 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3468echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3469else
5464f5a1
NN
3470 echo "$as_me:$LINENO: result: no" >&5
3471echo "${ECHO_T}no" >&6
ac48eca1
AO
3472fi
3473
5464f5a1 3474 RANLIB=$ac_ct_RANLIB
ac48eca1 3475else
5464f5a1 3476 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3477fi
3478
5464f5a1
NN
3479if test -n "$ac_tool_prefix"; then
3480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3481set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3482echo "$as_me:$LINENO: checking for $ac_word" >&5
3483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3484if test "${ac_cv_prog_STRIP+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3486else
3487 if test -n "$STRIP"; then
3488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3489else
5464f5a1
NN
3490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491for as_dir in $PATH
3492do
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3500 fi
3501done
3502done
3503
ac48eca1
AO
3504fi
3505fi
5464f5a1 3506STRIP=$ac_cv_prog_STRIP
ac48eca1 3507if test -n "$STRIP"; then
5464f5a1
NN
3508 echo "$as_me:$LINENO: result: $STRIP" >&5
3509echo "${ECHO_T}$STRIP" >&6
ac48eca1 3510else
5464f5a1
NN
3511 echo "$as_me:$LINENO: result: no" >&5
3512echo "${ECHO_T}no" >&6
ac48eca1
AO
3513fi
3514
5464f5a1 3515fi
ac48eca1 3516if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3517 ac_ct_STRIP=$STRIP
ac48eca1
AO
3518 # Extract the first word of "strip", so it can be a program name with args.
3519set dummy strip; ac_word=$2
5464f5a1
NN
3520echo "$as_me:$LINENO: checking for $ac_word" >&5
3521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3522if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3524else
5464f5a1
NN
3525 if test -n "$ac_ct_STRIP"; then
3526 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3527else
5464f5a1
NN
3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529for as_dir in $PATH
3530do
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535 ac_cv_prog_ac_ct_STRIP="strip"
3536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3538 fi
3539done
3540done
3541
3542 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3543fi
3544fi
5464f5a1
NN
3545ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3546if test -n "$ac_ct_STRIP"; then
3547 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3548echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3549else
5464f5a1
NN
3550 echo "$as_me:$LINENO: result: no" >&5
3551echo "${ECHO_T}no" >&6
ac48eca1
AO
3552fi
3553
5464f5a1 3554 STRIP=$ac_ct_STRIP
ac48eca1 3555else
5464f5a1 3556 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3557fi
252b5132 3558
6be7c12c 3559
252b5132 3560# Check for any special flags to pass to ltconfig.
b2ef150d 3561libtool_flags="--cache-file=$cache_file"
252b5132
RH
3562test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3563test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 3564test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
3565test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3566test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3567
6be7c12c 3568
a74801ba
ILT
3569# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3570if test "${enable_libtool_lock+set}" = set; then
3571 enableval="$enable_libtool_lock"
a74801ba 3572
5464f5a1 3573fi;
a74801ba
ILT
3574test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3575test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3576
5464f5a1 3577
ac48eca1
AO
3578# Check whether --with-pic or --without-pic was given.
3579if test "${with_pic+set}" = set; then
3580 withval="$with_pic"
3581 pic_mode="$withval"
3582else
5464f5a1
NN
3583 pic_mode=default
3584fi;
ac48eca1
AO
3585test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3586test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3587
252b5132
RH
3588# Some flags need to be propagated to the compiler or linker for good
3589# libtool support.
55c80943 3590case $host in
252b5132
RH
3591*-*-irix6*)
3592 # Find out which ABI we are using.
5464f5a1
NN
3593 echo '#line 3593 "configure"' > conftest.$ac_ext
3594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3595 (eval $ac_compile) 2>&5
3596 ac_status=$?
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; then
6a457e5c
NC
3599 if test "$lt_cv_prog_gnu_ld" = yes; then
3600 case `/usr/bin/file conftest.$ac_objext` in
3601 *32-bit*)
3602 LD="${LD-ld} -melf32bsmip"
3603 ;;
3604 *N32*)
3605 LD="${LD-ld} -melf32bmipn32"
3606 ;;
3607 *64-bit*)
3608 LD="${LD-ld} -melf64bmip"
3609 ;;
3610 esac
3611 else
55c80943 3612 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3613 *32-bit*)
3614 LD="${LD-ld} -32"
3615 ;;
3616 *N32*)
3617 LD="${LD-ld} -n32"
3618 ;;
3619 *64-bit*)
3620 LD="${LD-ld} -64"
3621 ;;
3622 esac
6a457e5c 3623 fi
252b5132
RH
3624 fi
3625 rm -rf conftest*
3626 ;;
3627
4867be41
DJ
3628ia64-*-hpux*)
3629 # Find out which ABI we are using.
3630 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; then
4867be41
DJ
3636 case "`/usr/bin/file conftest.o`" in
3637 *ELF-32*)
3638 HPUX_IA64_MODE="32"
3639 ;;
3640 *ELF-64*)
3641 HPUX_IA64_MODE="64"
3642 ;;
3643 esac
3644 fi
3645 rm -rf conftest*
3646 ;;
3647
252b5132
RH
3648*-*-sco3.2v5*)
3649 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 3650 SAVE_CFLAGS="$CFLAGS"
252b5132 3651 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
3652 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3653echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3654if test "${lt_cv_cc_needs_belf+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 3656else
5464f5a1
NN
3657
3658
ac48eca1 3659 ac_ext=c
ac48eca1 3660ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
3661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3664
5464f5a1
NN
3665 cat >conftest.$ac_ext <<_ACEOF
3666/* confdefs.h. */
3667_ACEOF
3668cat confdefs.h >>conftest.$ac_ext
3669cat >>conftest.$ac_ext <<_ACEOF
3670/* end confdefs.h. */
b2ef150d 3671
5464f5a1
NN
3672int
3673main ()
3674{
b2ef150d 3675
5464f5a1
NN
3676 ;
3677 return 0;
3678}
3679_ACEOF
3680rm -f conftest.$ac_objext conftest$ac_exeext
3681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3682 (eval $ac_link) 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } &&
3689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest$ac_exeext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
b2ef150d
ILT
3701 lt_cv_cc_needs_belf=yes
3702else
5464f5a1
NN
3703 echo "$as_me: failed program was:" >&5
3704sed 's/^/| /' conftest.$ac_ext >&5
3705
3706lt_cv_cc_needs_belf=no
b2ef150d 3707fi
5464f5a1
NN
3708rm -f conftest.err conftest.$ac_objext \
3709 conftest$ac_exeext conftest.$ac_ext
ac48eca1 3710 ac_ext=c
ac48eca1 3711ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
3712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3715
b2ef150d 3716fi
5464f5a1
NN
3717echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3718echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
3719 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3720 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3721 CFLAGS="$SAVE_CFLAGS"
3722 fi
252b5132
RH
3723 ;;
3724
6be7c12c 3725
252b5132
RH
3726esac
3727
6be7c12c 3728
b2ef150d 3729# Save cache, so that ltconfig can load it
5464f5a1 3730cat >confcache <<\_ACEOF
b2ef150d
ILT
3731# This file is a shell script that caches the results of configure
3732# tests run on this system so they can be shared between configure
5464f5a1
NN
3733# scripts and configure runs, see configure's option --config-cache.
3734# It is not useful on other systems. If it contains results you don't
3735# want to keep, you may remove or edit it.
b2ef150d 3736#
5464f5a1
NN
3737# config.status only pays attention to the cache file if you give it
3738# the --recheck option to rerun configure.
b2ef150d 3739#
5464f5a1
NN
3740# `ac_cv_env_foo' variables (set or unset) will be overridden when
3741# loading this file, other *unset* `ac_cv_foo' will be assigned the
3742# following values.
3743
3744_ACEOF
3745
b2ef150d
ILT
3746# The following way of writing the cache mishandles newlines in values,
3747# but we know of no workaround that is simple, portable, and efficient.
3748# So, don't put newlines in cache variables' values.
3749# Ultrix sh set writes to stderr and can't be redirected directly,
3750# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
3751{
3752 (set) 2>&1 |
3753 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3754 *ac_space=\ *)
3755 # `set' does not quote correctly, so add quotes (double-quote
3756 # substitution turns \\\\ into \\, and sed turns \\ into \).
3757 sed -n \
3758 "s/'/'\\\\''/g;
3759 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3760 ;;
3761 *)
3762 # `set' quotes correctly as required by POSIX, so do not add quotes.
3763 sed -n \
3764 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3765 ;;
3766 esac;
3767} |
3768 sed '
3769 t clear
3770 : clear
3771 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3772 t end
3773 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3774 : end' >>confcache
3775if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 3776 if test -w $cache_file; then
5464f5a1
NN
3777 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3778 cat confcache >$cache_file
b2ef150d
ILT
3779 else
3780 echo "not updating unwritable cache $cache_file"
3781 fi
3782fi
3783rm -f confcache
3784
252b5132 3785# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 3786AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 3787MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
3788LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3789AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3790objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3791deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 3792${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 3793$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
3794|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3795echo "$as_me: error: libtool configure failed" >&2;}
3796 { (exit 1); exit 1; }; }
252b5132 3797
b2ef150d
ILT
3798# Reload cache, that may have been modified by ltconfig
3799if test -r "$cache_file"; then
5464f5a1
NN
3800 # Some versions of bash will fail to source /dev/null (special
3801 # files actually), so we avoid doing that.
3802 if test -f "$cache_file"; then
3803 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3804echo "$as_me: loading cache $cache_file" >&6;}
3805 case $cache_file in
3806 [\\/]* | ?:[\\/]* ) . $cache_file;;
3807 *) . ./$cache_file;;
3808 esac
3809 fi
b2ef150d 3810else
5464f5a1
NN
3811 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3812echo "$as_me: creating cache $cache_file" >&6;}
3813 >$cache_file
b2ef150d
ILT
3814fi
3815
6be7c12c 3816
b2ef150d 3817# This can be used to rebuild libtool when needed
ac48eca1 3818LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
3819
3820# Always use our own libtool.
3821LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3822
252b5132
RH
3823# Redirect the config.log output again, so that the ltconfig log is not
3824# clobbered by the next message.
3825exec 5>>./config.log
3826
6be7c12c 3827
5464f5a1
NN
3828
3829
3830
3831
6be7c12c 3832
252b5132
RH
3833# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3834if test "${enable_64_bit_bfd+set}" = set; then
3835 enableval="$enable_64_bit_bfd"
3836 case "${enableval}" in
3837 yes) want64=true ;;
3838 no) want64=false ;;
5464f5a1
NN
3839 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3840echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3841 { (exit 1); exit 1; }; } ;;
252b5132
RH
3842esac
3843else
3844 want64=false
5464f5a1 3845fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
3846if test "${enable_targets+set}" = set; then
3847 enableval="$enable_targets"
3848 case "${enableval}" in
5464f5a1
NN
3849 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3850echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3851 { (exit 1); exit 1; }; }
252b5132
RH
3852 ;;
3853 no) enable_targets= ;;
3854 *) enable_targets=$enableval ;;
3855esac
5464f5a1 3856fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
3857if test "${enable_commonbfdlib+set}" = set; then
3858 enableval="$enable_commonbfdlib"
3859 case "${enableval}" in
3860 yes) commonbfdlib=true ;;
3861 no) commonbfdlib=false ;;
5464f5a1
NN
3862 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3863echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3864 { (exit 1); exit 1; }; } ;;
252b5132 3865esac
5464f5a1 3866fi;
252b5132
RH
3867# Check whether --with-mmap or --without-mmap was given.
3868if test "${with_mmap+set}" = set; then
3869 withval="$with_mmap"
3870 case "${withval}" in
3871 yes) want_mmap=true ;;
3872 no) want_mmap=false ;;
5464f5a1
NN
3873 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
3874echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
3875 { (exit 1); exit 1; }; } ;;
252b5132
RH
3876esac
3877else
3878 want_mmap=false
5464f5a1 3879fi;
0218d1e4 3880build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
3881# Check whether --enable-build-warnings or --disable-build-warnings was given.
3882if test "${enable_build_warnings+set}" = set; then
3883 enableval="$enable_build_warnings"
3884 case "${enableval}" in
3885 yes) ;;
3886 no) build_warnings="-w";;
3887 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3888 build_warnings="${build_warnings} ${t}";;
3889 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3890 build_warnings="${t} ${build_warnings}";;
3891 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3892esac
3893if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3894 echo "Setting warning flags = $build_warnings" 6>&1
3895fi
5464f5a1 3896fi; WARN_CFLAGS=""
66e25bab 3897if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
a2d91340
AC
3898 WARN_CFLAGS="${build_warnings}"
3899fi
3900
3901
6be7c12c 3902
5464f5a1 3903 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 3904
5464f5a1 3905 ac_config_commands="$ac_config_commands default-1"
6be7c12c 3906
252b5132
RH
3907
3908if test -z "$target" ; then
5464f5a1
NN
3909 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3910echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3911 { (exit 1); exit 1; }; }
252b5132 3912fi
252b5132 3913
5464f5a1
NN
3914echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3915echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
3916 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3917if test "${enable_maintainer_mode+set}" = set; then
3918 enableval="$enable_maintainer_mode"
3919 USE_MAINTAINER_MODE=$enableval
3920else
3921 USE_MAINTAINER_MODE=no
5464f5a1
NN
3922fi;
3923 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3924echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 3925
252b5132
RH
3926
3927if test $USE_MAINTAINER_MODE = yes; then
3928 MAINTAINER_MODE_TRUE=
3929 MAINTAINER_MODE_FALSE='#'
3930else
3931 MAINTAINER_MODE_TRUE='#'
3932 MAINTAINER_MODE_FALSE=
3933fi
3934 MAINT=$MAINTAINER_MODE_TRUE
252b5132 3935
5464f5a1
NN
3936
3937echo "$as_me:$LINENO: checking whether to install libbfd" >&5
3938echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
3939 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
3940if test "${enable_install_libbfd+set}" = set; then
3941 enableval="$enable_install_libbfd"
3942 install_libbfd_p=$enableval
3943else
66e25bab 3944 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
3945 install_libbfd_p=yes
3946 else
3947 install_libbfd_p=no
3948 fi
5464f5a1
NN
3949fi;
3950 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
3951echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 3952
a703a6ea
AM
3953
3954if test $install_libbfd_p = yes; then
3955 INSTALL_LIBBFD_TRUE=
3956 INSTALL_LIBBFD_FALSE='#'
3957else
3958 INSTALL_LIBBFD_TRUE='#'
3959 INSTALL_LIBBFD_FALSE=
3960fi
5464f5a1
NN
3961 # Need _noncanonical variables for this.
3962 ACX_HOST_NONCANONICAL
3963 ACX_TARGET_NONCANONICAL
a703a6ea
AM
3964 # libbfd.a is a host library containing target dependent code
3965 bfdlibdir='$(libdir)'
3966 bfdincludedir='$(includedir)'
3967 if test "${host}" != "${target}"; then
5464f5a1
NN
3968 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
3969 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 3970 fi
a703a6ea
AM
3971
3972
252b5132
RH
3973
3974
5464f5a1
NN
3975
3976
3977host64=false
3978target64=false
3979bfd_default_target_size=32
3980
3981# host stuff:
3982
3983ac_ext=c
3984ac_cpp='$CPP $CPPFLAGS'
3985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988if test -n "$ac_tool_prefix"; then
3989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3990set dummy ${ac_tool_prefix}gcc; ac_word=$2
3991echo "$as_me:$LINENO: checking for $ac_word" >&5
3992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993if test "${ac_cv_prog_CC+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3995else
5464f5a1
NN
3996 if test -n "$CC"; then
3997 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3998else
5464f5a1
NN
3999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000for as_dir in $PATH
4001do
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
6be7c12c 4009 fi
5464f5a1
NN
4010done
4011done
4012
252b5132 4013fi
b3baf5d0 4014fi
5464f5a1
NN
4015CC=$ac_cv_prog_CC
4016if test -n "$CC"; then
4017 echo "$as_me:$LINENO: result: $CC" >&5
4018echo "${ECHO_T}$CC" >&6
4019else
4020 echo "$as_me:$LINENO: result: no" >&5
4021echo "${ECHO_T}no" >&6
4022fi
252b5132 4023
5464f5a1
NN
4024fi
4025if test -z "$ac_cv_prog_CC"; then
4026 ac_ct_CC=$CC
4027 # Extract the first word of "gcc", so it can be a program name with args.
4028set dummy gcc; ac_word=$2
4029echo "$as_me:$LINENO: checking for $ac_word" >&5
4030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4031if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4033else
4034 if test -n "$ac_ct_CC"; then
4035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4036else
4037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038for as_dir in $PATH
4039do
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044 ac_cv_prog_ac_ct_CC="gcc"
4045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 break 2
4047 fi
4048done
4049done
252b5132 4050
5464f5a1
NN
4051fi
4052fi
4053ac_ct_CC=$ac_cv_prog_ac_ct_CC
4054if test -n "$ac_ct_CC"; then
4055 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4056echo "${ECHO_T}$ac_ct_CC" >&6
4057else
4058 echo "$as_me:$LINENO: result: no" >&5
4059echo "${ECHO_T}no" >&6
4060fi
252b5132 4061
5464f5a1
NN
4062 CC=$ac_ct_CC
4063else
4064 CC="$ac_cv_prog_CC"
4065fi
252b5132 4066
5464f5a1
NN
4067if test -z "$CC"; then
4068 if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4070set dummy ${ac_tool_prefix}cc; ac_word=$2
4071echo "$as_me:$LINENO: checking for $ac_word" >&5
4072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073if test "${ac_cv_prog_CC+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076 if test -n "$CC"; then
4077 ac_cv_prog_CC="$CC" # Let the user override the test.
4078else
4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH
4081do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_CC="${ac_tool_prefix}cc"
4087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088 break 2
4089 fi
4090done
4091done
6be7c12c 4092
5464f5a1
NN
4093fi
4094fi
4095CC=$ac_cv_prog_CC
4096if test -n "$CC"; then
4097 echo "$as_me:$LINENO: result: $CC" >&5
4098echo "${ECHO_T}$CC" >&6
4099else
4100 echo "$as_me:$LINENO: result: no" >&5
4101echo "${ECHO_T}no" >&6
4102fi
4103
4104fi
4105if test -z "$ac_cv_prog_CC"; then
4106 ac_ct_CC=$CC
4107 # Extract the first word of "cc", so it can be a program name with args.
4108set dummy cc; ac_word=$2
4109echo "$as_me:$LINENO: checking for $ac_word" >&5
4110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114 if test -n "$ac_ct_CC"; then
4115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4116else
4117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118for as_dir in $PATH
4119do
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124 ac_cv_prog_ac_ct_CC="cc"
4125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126 break 2
4127 fi
4128done
4129done
4130
4131fi
4132fi
4133ac_ct_CC=$ac_cv_prog_ac_ct_CC
4134if test -n "$ac_ct_CC"; then
4135 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4136echo "${ECHO_T}$ac_ct_CC" >&6
4137else
4138 echo "$as_me:$LINENO: result: no" >&5
4139echo "${ECHO_T}no" >&6
4140fi
4141
4142 CC=$ac_ct_CC
4143else
4144 CC="$ac_cv_prog_CC"
4145fi
4146
4147fi
4148if test -z "$CC"; then
4149 # Extract the first word of "cc", so it can be a program name with args.
4150set dummy cc; ac_word=$2
4151echo "$as_me:$LINENO: checking for $ac_word" >&5
4152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4153if test "${ac_cv_prog_CC+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4155else
4156 if test -n "$CC"; then
4157 ac_cv_prog_CC="$CC" # Let the user override the test.
4158else
5464f5a1
NN
4159 ac_prog_rejected=no
4160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH
4162do
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4168 ac_prog_rejected=yes
4169 continue
4170 fi
4171 ac_cv_prog_CC="cc"
4172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 break 2
4174 fi
4175done
4176done
4177
4178if test $ac_prog_rejected = yes; then
4179 # We found a bogon in the path, so make sure we never use it.
4180 set dummy $ac_cv_prog_CC
4181 shift
4182 if test $# != 0; then
4183 # We chose a different compiler from the bogus one.
4184 # However, it has the same basename, so the bogon will be chosen
4185 # first if we set CC to just the basename; use the full file name.
4186 shift
4187 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4188 fi
4189fi
4190fi
4191fi
4192CC=$ac_cv_prog_CC
4193if test -n "$CC"; then
4194 echo "$as_me:$LINENO: result: $CC" >&5
4195echo "${ECHO_T}$CC" >&6
4196else
4197 echo "$as_me:$LINENO: result: no" >&5
4198echo "${ECHO_T}no" >&6
4199fi
4200
4201fi
4202if test -z "$CC"; then
4203 if test -n "$ac_tool_prefix"; then
4204 for ac_prog in cl
4205 do
4206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4208echo "$as_me:$LINENO: checking for $ac_word" >&5
4209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4210if test "${ac_cv_prog_CC+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212else
4213 if test -n "$CC"; then
4214 ac_cv_prog_CC="$CC" # Let the user override the test.
4215else
4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH
4218do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4226 fi
4227done
4228done
4229
4230fi
4231fi
4232CC=$ac_cv_prog_CC
4233if test -n "$CC"; then
4234 echo "$as_me:$LINENO: result: $CC" >&5
4235echo "${ECHO_T}$CC" >&6
4236else
4237 echo "$as_me:$LINENO: result: no" >&5
4238echo "${ECHO_T}no" >&6
4239fi
4240
4241 test -n "$CC" && break
6be7c12c 4242 done
252b5132 4243fi
5464f5a1
NN
4244if test -z "$CC"; then
4245 ac_ct_CC=$CC
4246 for ac_prog in cl
4247do
4248 # Extract the first word of "$ac_prog", so it can be a program name with args.
4249set dummy $ac_prog; ac_word=$2
4250echo "$as_me:$LINENO: checking for $ac_word" >&5
4251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4252if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254else
4255 if test -n "$ac_ct_CC"; then
4256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4257else
4258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH
4260do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265 ac_cv_prog_ac_ct_CC="$ac_prog"
4266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 break 2
4268 fi
4269done
4270done
4271
4272fi
4273fi
4274ac_ct_CC=$ac_cv_prog_ac_ct_CC
4275if test -n "$ac_ct_CC"; then
4276 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4277echo "${ECHO_T}$ac_ct_CC" >&6
4278else
4279 echo "$as_me:$LINENO: result: no" >&5
4280echo "${ECHO_T}no" >&6
4281fi
4282
4283 test -n "$ac_ct_CC" && break
4284done
4285
4286 CC=$ac_ct_CC
4287fi
4288
4289fi
4290
4291
4292test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4293See \`config.log' for more details." >&5
4294echo "$as_me: error: no acceptable C compiler found in \$PATH
4295See \`config.log' for more details." >&2;}
4296 { (exit 1); exit 1; }; }
4297
4298# Provide some information about the compiler.
4299echo "$as_me:$LINENO:" \
4300 "checking for C compiler version" >&5
4301ac_compiler=`set X $ac_compile; echo $2`
4302{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4303 (eval $ac_compiler --version </dev/null >&5) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }
4307{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4308 (eval $ac_compiler -v </dev/null >&5) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }
4312{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4313 (eval $ac_compiler -V </dev/null >&5) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }
4317
4318echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4319echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4320if test "${ac_cv_c_compiler_gnu+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323 cat >conftest.$ac_ext <<_ACEOF
4324/* confdefs.h. */
4325_ACEOF
4326cat confdefs.h >>conftest.$ac_ext
4327cat >>conftest.$ac_ext <<_ACEOF
4328/* end confdefs.h. */
4329
4330int
4331main ()
4332{
4333#ifndef __GNUC__
4334 choke me
4335#endif
4336
4337 ;
4338 return 0;
4339}
4340_ACEOF
4341rm -f conftest.$ac_objext
4342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343 (eval $ac_compile) 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 (eval $ac_try) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; } &&
4356 { ac_try='test -s conftest.$ac_objext'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 ac_compiler_gnu=yes
4363else
4364 echo "$as_me: failed program was:" >&5
4365sed 's/^/| /' conftest.$ac_ext >&5
4366
4367ac_compiler_gnu=no
4368fi
4369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4370ac_cv_c_compiler_gnu=$ac_compiler_gnu
4371
4372fi
4373echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4374echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4375GCC=`test $ac_compiler_gnu = yes && echo yes`
4376ac_test_CFLAGS=${CFLAGS+set}
4377ac_save_CFLAGS=$CFLAGS
4378CFLAGS="-g"
4379echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4380echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4381if test "${ac_cv_prog_cc_g+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384 cat >conftest.$ac_ext <<_ACEOF
4385/* confdefs.h. */
4386_ACEOF
4387cat confdefs.h >>conftest.$ac_ext
4388cat >>conftest.$ac_ext <<_ACEOF
4389/* end confdefs.h. */
4390
4391int
4392main ()
4393{
4394
4395 ;
4396 return 0;
4397}
4398_ACEOF
4399rm -f conftest.$ac_objext
4400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401 (eval $ac_compile) 2>conftest.er1
4402 ac_status=$?
4403 grep -v '^ *+' conftest.er1 >conftest.err
4404 rm -f conftest.er1
4405 cat conftest.err >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); } &&
4408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410 (eval $ac_try) 2>&5
4411 ac_status=$?
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; } &&
4414 { ac_try='test -s conftest.$ac_objext'
4415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416 (eval $ac_try) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; }; then
4420 ac_cv_prog_cc_g=yes
4421else
4422 echo "$as_me: failed program was:" >&5
4423sed 's/^/| /' conftest.$ac_ext >&5
4424
4425ac_cv_prog_cc_g=no
4426fi
4427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4428fi
4429echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4430echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4431if test "$ac_test_CFLAGS" = set; then
4432 CFLAGS=$ac_save_CFLAGS
4433elif test $ac_cv_prog_cc_g = yes; then
4434 if test "$GCC" = yes; then
4435 CFLAGS="-g -O2"
4436 else
4437 CFLAGS="-g"
4438 fi
4439else
4440 if test "$GCC" = yes; then
4441 CFLAGS="-O2"
4442 else
4443 CFLAGS=
4444 fi
4445fi
4446echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4447echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4448if test "${ac_cv_prog_cc_stdc+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450else
4451 ac_cv_prog_cc_stdc=no
4452ac_save_CC=$CC
4453cat >conftest.$ac_ext <<_ACEOF
4454/* confdefs.h. */
4455_ACEOF
4456cat confdefs.h >>conftest.$ac_ext
4457cat >>conftest.$ac_ext <<_ACEOF
4458/* end confdefs.h. */
4459#include <stdarg.h>
4460#include <stdio.h>
4461#include <sys/types.h>
4462#include <sys/stat.h>
4463/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4464struct buf { int x; };
4465FILE * (*rcsopen) (struct buf *, struct stat *, int);
4466static char *e (p, i)
4467 char **p;
4468 int i;
4469{
4470 return p[i];
4471}
4472static char *f (char * (*g) (char **, int), char **p, ...)
4473{
4474 char *s;
4475 va_list v;
4476 va_start (v,p);
4477 s = g (p, va_arg (v,int));
4478 va_end (v);
4479 return s;
4480}
4481
4482/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4483 function prototypes and stuff, but not '\xHH' hex character constants.
4484 These don't provoke an error unfortunately, instead are silently treated
4485 as 'x'. The following induces an error, until -std1 is added to get
4486 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4487 array size at least. It's necessary to write '\x00'==0 to get something
4488 that's true only with -std1. */
4489int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4490
4491int test (int i, double x);
4492struct s1 {int (*f) (int a);};
4493struct s2 {int (*f) (double a);};
4494int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4495int argc;
4496char **argv;
4497int
4498main ()
4499{
4500return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4501 ;
4502 return 0;
4503}
4504_ACEOF
4505# Don't try gcc -ansi; that turns off useful extensions and
4506# breaks some systems' header files.
4507# AIX -qlanglvl=ansi
4508# Ultrix and OSF/1 -std1
4509# HP-UX 10.20 and later -Ae
4510# HP-UX older versions -Aa -D_HPUX_SOURCE
4511# SVR4 -Xc -D__EXTENSIONS__
4512for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4513do
4514 CC="$ac_save_CC $ac_arg"
4515 rm -f conftest.$ac_objext
4516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517 (eval $ac_compile) 2>conftest.er1
4518 ac_status=$?
4519 grep -v '^ *+' conftest.er1 >conftest.err
4520 rm -f conftest.er1
4521 cat conftest.err >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } &&
4524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 (eval $ac_try) 2>&5
4527 ac_status=$?
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; } &&
4530 { ac_try='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 (eval $ac_try) 2>&5
4533 ac_status=$?
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 ac_cv_prog_cc_stdc=$ac_arg
4537break
4538else
4539 echo "$as_me: failed program was:" >&5
4540sed 's/^/| /' conftest.$ac_ext >&5
4541
4542fi
4543rm -f conftest.err conftest.$ac_objext
4544done
4545rm -f conftest.$ac_ext conftest.$ac_objext
4546CC=$ac_save_CC
4547
4548fi
4549
4550case "x$ac_cv_prog_cc_stdc" in
4551 x|xno)
4552 echo "$as_me:$LINENO: result: none needed" >&5
4553echo "${ECHO_T}none needed" >&6 ;;
4554 *)
4555 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4556echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4557 CC="$CC $ac_cv_prog_cc_stdc" ;;
4558esac
4559
4560# Some people use a C++ compiler to compile C. Since we use `exit',
4561# in C++ we need to declare it. In case someone uses the same compiler
4562# for both compiling C and C++ we need to have the C++ compiler decide
4563# the declaration of exit, since it's the most demanding environment.
4564cat >conftest.$ac_ext <<_ACEOF
4565#ifndef __cplusplus
4566 choke me
4567#endif
4568_ACEOF
4569rm -f conftest.$ac_objext
4570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571 (eval $ac_compile) 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; } &&
4584 { ac_try='test -s conftest.$ac_objext'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586 (eval $ac_try) 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; }; then
4590 for ac_declaration in \
4591 '' \
4592 'extern "C" void std::exit (int) throw (); using std::exit;' \
4593 'extern "C" void std::exit (int); using std::exit;' \
4594 'extern "C" void exit (int) throw ();' \
4595 'extern "C" void exit (int);' \
4596 'void exit (int);'
4597do
4598 cat >conftest.$ac_ext <<_ACEOF
4599/* confdefs.h. */
4600_ACEOF
4601cat confdefs.h >>conftest.$ac_ext
4602cat >>conftest.$ac_ext <<_ACEOF
4603/* end confdefs.h. */
4604$ac_declaration
4605#include <stdlib.h>
4606int
4607main ()
4608{
4609exit (42);
4610 ;
4611 return 0;
4612}
4613_ACEOF
4614rm -f conftest.$ac_objext
4615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } &&
4623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625 (eval $ac_try) 2>&5
4626 ac_status=$?
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); }; } &&
4629 { ac_try='test -s conftest.$ac_objext'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 (eval $ac_try) 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 :
4636else
4637 echo "$as_me: failed program was:" >&5
4638sed 's/^/| /' conftest.$ac_ext >&5
4639
4640continue
4641fi
4642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4643 cat >conftest.$ac_ext <<_ACEOF
4644/* confdefs.h. */
4645_ACEOF
4646cat confdefs.h >>conftest.$ac_ext
4647cat >>conftest.$ac_ext <<_ACEOF
4648/* end confdefs.h. */
4649$ac_declaration
4650int
4651main ()
4652{
4653exit (42);
4654 ;
4655 return 0;
4656}
4657_ACEOF
4658rm -f conftest.$ac_objext
4659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4660 (eval $ac_compile) 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; } &&
4673 { ac_try='test -s conftest.$ac_objext'
4674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 break
4680else
4681 echo "$as_me: failed program was:" >&5
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
4684fi
4685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686done
4687rm -f conftest*
4688if test -n "$ac_declaration"; then
4689 echo '#ifdef __cplusplus' >>confdefs.h
4690 echo $ac_declaration >>confdefs.h
4691 echo '#endif' >>confdefs.h
252b5132 4692fi
5464f5a1 4693
b3baf5d0 4694else
5464f5a1
NN
4695 echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
b3baf5d0 4698fi
5464f5a1
NN
4699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700ac_ext=c
4701ac_cpp='$CPP $CPPFLAGS'
4702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 4705
5464f5a1
NN
4706
4707ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
4708if test -n "$ac_tool_prefix"; then
4709 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4710set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4711echo "$as_me:$LINENO: checking for $ac_word" >&5
4712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4713if test "${ac_cv_prog_RANLIB+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4715else
5464f5a1
NN
4716 if test -n "$RANLIB"; then
4717 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 4718else
5464f5a1
NN
4719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720for as_dir in $PATH
4721do
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728 break 2
252b5132 4729 fi
5464f5a1
NN
4730done
4731done
4732
252b5132
RH
4733fi
4734fi
5464f5a1
NN
4735RANLIB=$ac_cv_prog_RANLIB
4736if test -n "$RANLIB"; then
4737 echo "$as_me:$LINENO: result: $RANLIB" >&5
4738echo "${ECHO_T}$RANLIB" >&6
252b5132 4739else
5464f5a1
NN
4740 echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6
252b5132
RH
4742fi
4743
5464f5a1
NN
4744fi
4745if test -z "$ac_cv_prog_RANLIB"; then
4746 ac_ct_RANLIB=$RANLIB
4747 # Extract the first word of "ranlib", so it can be a program name with args.
4748set dummy ranlib; ac_word=$2
4749echo "$as_me:$LINENO: checking for $ac_word" >&5
4750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4751if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4753else
5464f5a1
NN
4754 if test -n "$ac_ct_RANLIB"; then
4755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 4756else
5464f5a1
NN
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764 ac_cv_prog_ac_ct_RANLIB="ranlib"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4767 fi
4768done
4769done
4770
4771 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
4772fi
4773fi
5464f5a1
NN
4774ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4775if test -n "$ac_ct_RANLIB"; then
4776 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4777echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 4778else
5464f5a1
NN
4779 echo "$as_me:$LINENO: result: no" >&5
4780echo "${ECHO_T}no" >&6
b3baf5d0 4781fi
252b5132 4782
5464f5a1 4783 RANLIB=$ac_ct_RANLIB
6be7c12c 4784else
5464f5a1 4785 RANLIB="$ac_cv_prog_RANLIB"
252b5132 4786fi
5464f5a1 4787
6be7c12c 4788ac_ext=c
6be7c12c 4789ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4794echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4795# On Suns, sometimes $CPP names a directory.
4796if test -n "$CPP" && test -d "$CPP"; then
4797 CPP=
6be7c12c 4798fi
5464f5a1
NN
4799if test -z "$CPP"; then
4800 if test "${ac_cv_prog_CPP+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4802else
5464f5a1
NN
4803 # Double quotes because CPP needs to be expanded
4804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4805 do
4806 ac_preproc_ok=false
4807for ac_c_preproc_warn_flag in '' yes
4808do
4809 # Use a header file that comes with gcc, so configuring glibc
4810 # with a fresh cross-compiler works.
4811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4812 # <limits.h> exists even on freestanding compilers.
4813 # On the NeXT, cc -E runs the code through the compiler's parser,
4814 # not just through cpp. "Syntax error" is here to catch this case.
4815 cat >conftest.$ac_ext <<_ACEOF
4816/* confdefs.h. */
4817_ACEOF
4818cat confdefs.h >>conftest.$ac_ext
4819cat >>conftest.$ac_ext <<_ACEOF
4820/* end confdefs.h. */
4821#ifdef __STDC__
4822# include <limits.h>
4823#else
4824# include <assert.h>
252b5132 4825#endif
5464f5a1
NN
4826 Syntax error
4827_ACEOF
4828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } >/dev/null; then
4836 if test -s conftest.err; then
4837 ac_cpp_err=$ac_c_preproc_warn_flag
4838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4839 else
4840 ac_cpp_err=
4841 fi
6be7c12c 4842else
5464f5a1 4843 ac_cpp_err=yes
6be7c12c 4844fi
5464f5a1
NN
4845if test -z "$ac_cpp_err"; then
4846 :
6be7c12c 4847else
5464f5a1
NN
4848 echo "$as_me: failed program was:" >&5
4849sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 # Broken: fails on valid input.
4852continue
4853fi
4854rm -f conftest.err conftest.$ac_ext
4855
4856 # OK, works on sane cases. Now check whether non-existent headers
4857 # can be detected and how.
4858 cat >conftest.$ac_ext <<_ACEOF
4859/* confdefs.h. */
4860_ACEOF
4861cat confdefs.h >>conftest.$ac_ext
4862cat >>conftest.$ac_ext <<_ACEOF
4863/* end confdefs.h. */
4864#include <ac_nonexistent.h>
4865_ACEOF
4866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } >/dev/null; then
4874 if test -s conftest.err; then
4875 ac_cpp_err=$ac_c_preproc_warn_flag
4876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4877 else
4878 ac_cpp_err=
4879 fi
252b5132 4880else
5464f5a1 4881 ac_cpp_err=yes
252b5132 4882fi
5464f5a1
NN
4883if test -z "$ac_cpp_err"; then
4884 # Broken: success on invalid input.
4885continue
4886else
4887 echo "$as_me: failed program was:" >&5
4888sed 's/^/| /' conftest.$ac_ext >&5
6be7c12c 4889
5464f5a1
NN
4890 # Passes both tests.
4891ac_preproc_ok=:
4892break
252b5132 4893fi
5464f5a1 4894rm -f conftest.err conftest.$ac_ext
6be7c12c 4895
5464f5a1
NN
4896done
4897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4898rm -f conftest.err conftest.$ac_ext
4899if $ac_preproc_ok; then
4900 break
252b5132
RH
4901fi
4902
5464f5a1
NN
4903 done
4904 ac_cv_prog_CPP=$CPP
252b5132 4905
252b5132 4906fi
5464f5a1 4907 CPP=$ac_cv_prog_CPP
6be7c12c 4908else
5464f5a1
NN
4909 ac_cv_prog_CPP=$CPP
4910fi
4911echo "$as_me:$LINENO: result: $CPP" >&5
4912echo "${ECHO_T}$CPP" >&6
4913ac_preproc_ok=false
4914for ac_c_preproc_warn_flag in '' yes
4915do
4916 # Use a header file that comes with gcc, so configuring glibc
4917 # with a fresh cross-compiler works.
4918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919 # <limits.h> exists even on freestanding compilers.
6be7c12c 4920 # On the NeXT, cc -E runs the code through the compiler's parser,
5464f5a1
NN
4921 # not just through cpp. "Syntax error" is here to catch this case.
4922 cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928#ifdef __STDC__
4929# include <limits.h>
4930#else
4931# include <assert.h>
4932#endif
4933 Syntax error
4934_ACEOF
4935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4937 ac_status=$?
4938 grep -v '^ *+' conftest.er1 >conftest.err
4939 rm -f conftest.er1
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } >/dev/null; then
4943 if test -s conftest.err; then
4944 ac_cpp_err=$ac_c_preproc_warn_flag
4945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4946 else
4947 ac_cpp_err=
4948 fi
252b5132 4949else
5464f5a1
NN
4950 ac_cpp_err=yes
4951fi
4952if test -z "$ac_cpp_err"; then
6be7c12c 4953 :
252b5132 4954else
5464f5a1
NN
4955 echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 # Broken: fails on valid input.
4959continue
4960fi
4961rm -f conftest.err conftest.$ac_ext
4962
4963 # OK, works on sane cases. Now check whether non-existent headers
4964 # can be detected and how.
4965 cat >conftest.$ac_ext <<_ACEOF
4966/* confdefs.h. */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h. */
4971#include <ac_nonexistent.h>
4972_ACEOF
4973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4975 ac_status=$?
4976 grep -v '^ *+' conftest.er1 >conftest.err
4977 rm -f conftest.er1
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } >/dev/null; then
4981 if test -s conftest.err; then
4982 ac_cpp_err=$ac_c_preproc_warn_flag
4983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4984 else
4985 ac_cpp_err=
4986 fi
b3baf5d0 4987else
5464f5a1 4988 ac_cpp_err=yes
6be7c12c 4989fi
5464f5a1
NN
4990if test -z "$ac_cpp_err"; then
4991 # Broken: success on invalid input.
4992continue
ac48eca1 4993else
5464f5a1
NN
4994 echo "$as_me: failed program was:" >&5
4995sed 's/^/| /' conftest.$ac_ext >&5
4996
4997 # Passes both tests.
4998ac_preproc_ok=:
4999break
b3baf5d0 5000fi
5464f5a1 5001rm -f conftest.err conftest.$ac_ext
6be7c12c 5002
5464f5a1
NN
5003done
5004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005rm -f conftest.err conftest.$ac_ext
5006if $ac_preproc_ok; then
5007 :
6be7c12c 5008else
5464f5a1
NN
5009 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5010See \`config.log' for more details." >&5
5011echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5012See \`config.log' for more details." >&2;}
5013 { (exit 1); exit 1; }; }
ac48eca1 5014fi
5464f5a1
NN
5015
5016ac_ext=c
5017ac_cpp='$CPP $CPPFLAGS'
5018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021
5022
5023echo "$as_me:$LINENO: checking for egrep" >&5
5024echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5025if test "${ac_cv_prog_egrep+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5027else
5464f5a1
NN
5028 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5029 then ac_cv_prog_egrep='grep -E'
5030 else ac_cv_prog_egrep='egrep'
5031 fi
b3baf5d0 5032fi
5464f5a1
NN
5033echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5034echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5035 EGREP=$ac_cv_prog_egrep
5036
ac48eca1 5037
5464f5a1
NN
5038echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5039echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5040if test "${ac_cv_header_stdc+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5042else
5464f5a1
NN
5043 cat >conftest.$ac_ext <<_ACEOF
5044/* confdefs.h. */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h. */
252b5132
RH
5049#include <stdlib.h>
5050#include <stdarg.h>
5051#include <string.h>
5052#include <float.h>
5464f5a1
NN
5053
5054int
5055main ()
5056{
5057
5058 ;
5059 return 0;
5060}
5061_ACEOF
5062rm -f conftest.$ac_objext
5063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>conftest.er1
5065 ac_status=$?
5066 grep -v '^ *+' conftest.er1 >conftest.err
5067 rm -f conftest.er1
5068 cat conftest.err >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); } &&
5071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try='test -s conftest.$ac_objext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 (eval $ac_try) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
252b5132
RH
5083 ac_cv_header_stdc=yes
5084else
5464f5a1
NN
5085 echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
5088ac_cv_header_stdc=no
252b5132 5089fi
5464f5a1 5090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5091
5092if test $ac_cv_header_stdc = yes; then
5093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464f5a1
NN
5094 cat >conftest.$ac_ext <<_ACEOF
5095/* confdefs.h. */
5096_ACEOF
5097cat confdefs.h >>conftest.$ac_ext
5098cat >>conftest.$ac_ext <<_ACEOF
5099/* end confdefs.h. */
252b5132 5100#include <string.h>
5464f5a1
NN
5101
5102_ACEOF
252b5132 5103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5104 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5105 :
5106else
252b5132
RH
5107 ac_cv_header_stdc=no
5108fi
5109rm -f conftest*
5110
5111fi
5112
5113if test $ac_cv_header_stdc = yes; then
5114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464f5a1
NN
5115 cat >conftest.$ac_ext <<_ACEOF
5116/* confdefs.h. */
5117_ACEOF
5118cat confdefs.h >>conftest.$ac_ext
5119cat >>conftest.$ac_ext <<_ACEOF
5120/* end confdefs.h. */
252b5132 5121#include <stdlib.h>
5464f5a1
NN
5122
5123_ACEOF
252b5132 5124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5125 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5126 :
5127else
252b5132
RH
5128 ac_cv_header_stdc=no
5129fi
5130rm -f conftest*
5131
5132fi
5133
5134if test $ac_cv_header_stdc = yes; then
5135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464f5a1 5136 if test "$cross_compiling" = yes; then
252b5132
RH
5137 :
5138else
5464f5a1
NN
5139 cat >conftest.$ac_ext <<_ACEOF
5140/* confdefs.h. */
5141_ACEOF
5142cat confdefs.h >>conftest.$ac_ext
5143cat >>conftest.$ac_ext <<_ACEOF
5144/* end confdefs.h. */
252b5132 5145#include <ctype.h>
5464f5a1
NN
5146#if ((' ' & 0x0FF) == 0x020)
5147# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5148# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5149#else
5150# define ISLOWER(c) \
5151 (('a' <= (c) && (c) <= 'i') \
5152 || ('j' <= (c) && (c) <= 'r') \
5153 || ('s' <= (c) && (c) <= 'z'))
5154# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5155#endif
6be7c12c 5156
5464f5a1
NN
5157#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5158int
5159main ()
5160{
5161 int i;
5162 for (i = 0; i < 256; i++)
5163 if (XOR (islower (i), ISLOWER (i))
5164 || toupper (i) != TOUPPER (i))
5165 exit(2);
5166 exit (0);
5167}
5168_ACEOF
5169rm -f conftest$ac_exeext
5170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5171 (eval $ac_link) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 (eval $ac_try) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
252b5132
RH
5180 :
5181else
5464f5a1
NN
5182 echo "$as_me: program exited with status $ac_status" >&5
5183echo "$as_me: failed program was:" >&5
5184sed 's/^/| /' conftest.$ac_ext >&5
5185
5186( exit $ac_status )
5187ac_cv_header_stdc=no
252b5132 5188fi
5464f5a1 5189rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5190fi
252b5132
RH
5191fi
5192fi
5464f5a1
NN
5193echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5194echo "${ECHO_T}$ac_cv_header_stdc" >&6
6be7c12c 5195if test $ac_cv_header_stdc = yes; then
5464f5a1
NN
5196
5197cat >>confdefs.h <<\_ACEOF
252b5132 5198#define STDC_HEADERS 1
5464f5a1 5199_ACEOF
252b5132
RH
5200
5201fi
5202
5464f5a1
NN
5203echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5204echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5205if test "${ac_cv_c_const+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5207else
5464f5a1
NN
5208 cat >conftest.$ac_ext <<_ACEOF
5209/* confdefs.h. */
5210_ACEOF
5211cat confdefs.h >>conftest.$ac_ext
5212cat >>conftest.$ac_ext <<_ACEOF
5213/* end confdefs.h. */
6be7c12c 5214
5464f5a1
NN
5215int
5216main ()
5217{
5218/* FIXME: Include the comments suggested by Paul. */
5219#ifndef __cplusplus
5220 /* Ultrix mips cc rejects this. */
5221 typedef int charset[2];
5222 const charset x;
5223 /* SunOS 4.1.1 cc rejects this. */
5224 char const *const *ccp;
5225 char **p;
5226 /* NEC SVR4.0.2 mips cc rejects this. */
5227 struct point {int x, y;};
5228 static struct point const zero = {0,0};
5229 /* AIX XL C 1.02.0.0 rejects this.
5230 It does not let you subtract one const X* pointer from another in
5231 an arm of an if-expression whose if-part is not a constant
5232 expression */
5233 const char *g = "string";
5234 ccp = &g + (g ? g-g : 0);
5235 /* HPUX 7.0 cc rejects these. */
5236 ++ccp;
5237 p = (char**) ccp;
5238 ccp = (char const *const *) p;
5239 { /* SCO 3.2v4 cc rejects this. */
5240 char *t;
5241 char const *s = 0 ? (char *) 0 : (char const *) 0;
5242
5243 *t++ = 0;
5244 }
5245 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5246 int x[] = {25, 17};
5247 const int *foo = &x[0];
5248 ++foo;
5249 }
5250 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5251 typedef const int *iptr;
5252 iptr p = 0;
5253 ++p;
5254 }
5255 { /* AIX XL C 1.02.0.0 rejects this saying
5256 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5257 struct s { int j; const int *ap[3]; };
5258 struct s *b; b->j = 5;
5259 }
5260 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5261 const int foo = 10;
5262 }
5263#endif
6be7c12c 5264
5464f5a1
NN
5265 ;
5266 return 0;
5267}
5268_ACEOF
5269rm -f conftest.$ac_objext
5270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5271 (eval $ac_compile) 2>conftest.er1
5272 ac_status=$?
5273 grep -v '^ *+' conftest.er1 >conftest.err
5274 rm -f conftest.er1
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } &&
5278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; } &&
5284 { ac_try='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 (eval $ac_try) 2>&5
5287 ac_status=$?
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
252b5132
RH
5290 ac_cv_c_const=yes
5291else
5464f5a1
NN
5292 echo "$as_me: failed program was:" >&5
5293sed 's/^/| /' conftest.$ac_ext >&5
5294
5295ac_cv_c_const=no
252b5132 5296fi
5464f5a1 5297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5298fi
5464f5a1
NN
5299echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5300echo "${ECHO_T}$ac_cv_c_const" >&6
6be7c12c 5301if test $ac_cv_c_const = no; then
5464f5a1
NN
5302
5303cat >>confdefs.h <<\_ACEOF
5304#define const
5305_ACEOF
252b5132
RH
5306
5307fi
5308
5464f5a1
NN
5309echo "$as_me:$LINENO: checking for inline" >&5
5310echo $ECHO_N "checking for inline... $ECHO_C" >&6
5311if test "${ac_cv_c_inline+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5313else
5314 ac_cv_c_inline=no
5315for ac_kw in inline __inline__ __inline; do
5464f5a1
NN
5316 cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */
5322#ifndef __cplusplus
5323typedef int foo_t;
5324static $ac_kw foo_t static_foo () {return 0; }
5325$ac_kw foo_t foo () {return 0; }
5326#endif
252b5132 5327
5464f5a1
NN
5328_ACEOF
5329rm -f conftest.$ac_objext
5330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest.$ac_objext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
252b5132
RH
5350 ac_cv_c_inline=$ac_kw; break
5351else
5464f5a1
NN
5352 echo "$as_me: failed program was:" >&5
5353sed 's/^/| /' conftest.$ac_ext >&5
5354
252b5132 5355fi
5464f5a1 5356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5357done
5358
5464f5a1
NN
5359fi
5360echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5361echo "${ECHO_T}$ac_cv_c_inline" >&6
5362
5363
5364case $ac_cv_c_inline in
5365 inline | yes) ;;
5366 *)
5367 case $ac_cv_c_inline in
5368 no) ac_val=;;
5369 *) ac_val=$ac_cv_c_inline;;
5370 esac
5371 cat >>confdefs.h <<_ACEOF
5372#ifndef __cplusplus
5373#define inline $ac_val
5374#endif
5375_ACEOF
5376 ;;
5377esac
5378
5379# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5390 inttypes.h stdint.h unistd.h
5391do
5392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5393echo "$as_me:$LINENO: checking for $ac_header" >&5
5394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5395if eval "test \"\${$as_ac_Header+set}\" = set"; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397else
5398 cat >conftest.$ac_ext <<_ACEOF
5399/* confdefs.h. */
5400_ACEOF
5401cat confdefs.h >>conftest.$ac_ext
5402cat >>conftest.$ac_ext <<_ACEOF
5403/* end confdefs.h. */
5404$ac_includes_default
5405
5406#include <$ac_header>
5407_ACEOF
5408rm -f conftest.$ac_objext
5409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5410 (eval $ac_compile) 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; } &&
5423 { ac_try='test -s conftest.$ac_objext'
5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425 (eval $ac_try) 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5429 eval "$as_ac_Header=yes"
5430else
5431 echo "$as_me: failed program was:" >&5
5432sed 's/^/| /' conftest.$ac_ext >&5
5433
5434eval "$as_ac_Header=no"
5435fi
5436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5437fi
5438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5440if test `eval echo '${'$as_ac_Header'}'` = yes; then
5441 cat >>confdefs.h <<_ACEOF
5442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5443_ACEOF
5444
252b5132 5445fi
6be7c12c 5446
5464f5a1 5447done
252b5132 5448
5464f5a1
NN
5449
5450echo "$as_me:$LINENO: checking for off_t" >&5
5451echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5452if test "${ac_cv_type_off_t+set}" = set; then
5453 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 5454else
5464f5a1
NN
5455 cat >conftest.$ac_ext <<_ACEOF
5456/* confdefs.h. */
5457_ACEOF
5458cat confdefs.h >>conftest.$ac_ext
5459cat >>conftest.$ac_ext <<_ACEOF
5460/* end confdefs.h. */
5461$ac_includes_default
5462int
5463main ()
5464{
5465if ((off_t *) 0)
5466 return 0;
5467if (sizeof (off_t))
5468 return 0;
5469 ;
5470 return 0;
5471}
5472_ACEOF
5473rm -f conftest.$ac_objext
5474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5475 (eval $ac_compile) 2>conftest.er1
5476 ac_status=$?
5477 grep -v '^ *+' conftest.er1 >conftest.err
5478 rm -f conftest.er1
5479 cat conftest.err >&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } &&
5482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 (eval $ac_try) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; } &&
5488 { ac_try='test -s conftest.$ac_objext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 (eval $ac_try) 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
653f71ca 5494 ac_cv_type_off_t=yes
252b5132 5495else
5464f5a1
NN
5496 echo "$as_me: failed program was:" >&5
5497sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5498
5464f5a1 5499ac_cv_type_off_t=no
6be7c12c 5500fi
5464f5a1
NN
5501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5502fi
5503echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5504echo "${ECHO_T}$ac_cv_type_off_t" >&6
5505if test $ac_cv_type_off_t = yes; then
5506 :
5507else
5508
5509cat >>confdefs.h <<_ACEOF
252b5132 5510#define off_t long
5464f5a1 5511_ACEOF
252b5132
RH
5512
5513fi
5514
5464f5a1
NN
5515echo "$as_me:$LINENO: checking for size_t" >&5
5516echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5517if test "${ac_cv_type_size_t+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5519else
5464f5a1
NN
5520 cat >conftest.$ac_ext <<_ACEOF
5521/* confdefs.h. */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
5525/* end confdefs.h. */
5526$ac_includes_default
5527int
5528main ()
5529{
5530if ((size_t *) 0)
5531 return 0;
5532if (sizeof (size_t))
5533 return 0;
5534 ;
5535 return 0;
5536}
5537_ACEOF
5538rm -f conftest.$ac_objext
5539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540 (eval $ac_compile) 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } &&
5547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try='test -s conftest.$ac_objext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
653f71ca 5559 ac_cv_type_size_t=yes
252b5132 5560else
5464f5a1
NN
5561 echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5563
5464f5a1 5564ac_cv_type_size_t=no
6be7c12c 5565fi
5464f5a1
NN
5566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5567fi
5568echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5569echo "${ECHO_T}$ac_cv_type_size_t" >&6
5570if test $ac_cv_type_size_t = yes; then
5571 :
5572else
5573
5574cat >>confdefs.h <<_ACEOF
252b5132 5575#define size_t unsigned
5464f5a1 5576_ACEOF
252b5132
RH
5577
5578fi
5579
5580# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5581# for constant arguments. Useless!
5464f5a1
NN
5582echo "$as_me:$LINENO: checking for working alloca.h" >&5
5583echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5584if test "${ac_cv_working_alloca_h+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587 cat >conftest.$ac_ext <<_ACEOF
5588/* confdefs.h. */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
5592/* end confdefs.h. */
252b5132 5593#include <alloca.h>
5464f5a1
NN
5594int
5595main ()
5596{
5597char *p = (char *) alloca (2 * sizeof (int));
5598 ;
5599 return 0;
5600}
5601_ACEOF
5602rm -f conftest.$ac_objext conftest$ac_exeext
5603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604 (eval $ac_link) 2>conftest.er1
5605 ac_status=$?
5606 grep -v '^ *+' conftest.er1 >conftest.err
5607 rm -f conftest.er1
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } &&
5611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 (eval $ac_try) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; } &&
5617 { ac_try='test -s conftest$ac_exeext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 (eval $ac_try) 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_cv_working_alloca_h=yes
5624else
5625 echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628ac_cv_working_alloca_h=no
5629fi
5630rm -f conftest.err conftest.$ac_objext \
5631 conftest$ac_exeext conftest.$ac_ext
5632fi
5633echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5634echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5635if test $ac_cv_working_alloca_h = yes; then
5636
5637cat >>confdefs.h <<\_ACEOF
252b5132 5638#define HAVE_ALLOCA_H 1
5464f5a1 5639_ACEOF
252b5132
RH
5640
5641fi
5642
5464f5a1
NN
5643echo "$as_me:$LINENO: checking for alloca" >&5
5644echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5645if test "${ac_cv_func_alloca_works+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5647else
5464f5a1
NN
5648 cat >conftest.$ac_ext <<_ACEOF
5649/* confdefs.h. */
5650_ACEOF
5651cat confdefs.h >>conftest.$ac_ext
5652cat >>conftest.$ac_ext <<_ACEOF
5653/* end confdefs.h. */
252b5132
RH
5654#ifdef __GNUC__
5655# define alloca __builtin_alloca
5656#else
5657# ifdef _MSC_VER
5658# include <malloc.h>
5659# define alloca _alloca
5660# else
5661# if HAVE_ALLOCA_H
5662# include <alloca.h>
5663# else
5664# ifdef _AIX
5665 #pragma alloca
5666# else
5667# ifndef alloca /* predefined by HP cc +Olibcalls */
5668char *alloca ();
5669# endif
5670# endif
5671# endif
5672# endif
5673#endif
5674
5464f5a1
NN
5675int
5676main ()
5677{
5678char *p = (char *) alloca (1);
5679 ;
5680 return 0;
5681}
5682_ACEOF
5683rm -f conftest.$ac_objext conftest$ac_exeext
5684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685 (eval $ac_link) 2>conftest.er1
5686 ac_status=$?
5687 grep -v '^ *+' conftest.er1 >conftest.err
5688 rm -f conftest.er1
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; } &&
5698 { ac_try='test -s conftest$ac_exeext'
5699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 (eval $ac_try) 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }; }; then
252b5132
RH
5704 ac_cv_func_alloca_works=yes
5705else
5464f5a1
NN
5706 echo "$as_me: failed program was:" >&5
5707sed 's/^/| /' conftest.$ac_ext >&5
5708
5709ac_cv_func_alloca_works=no
252b5132 5710fi
5464f5a1
NN
5711rm -f conftest.err conftest.$ac_objext \
5712 conftest$ac_exeext conftest.$ac_ext
252b5132 5713fi
5464f5a1
NN
5714echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5715echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 5716
252b5132 5717if test $ac_cv_func_alloca_works = yes; then
252b5132 5718
5464f5a1
NN
5719cat >>confdefs.h <<\_ACEOF
5720#define HAVE_ALLOCA 1
5721_ACEOF
b3baf5d0 5722
5464f5a1 5723else
6be7c12c 5724 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5464f5a1
NN
5725# that cause trouble. Some versions do not even contain alloca or
5726# contain a buggy version. If you still want to use their alloca,
5727# use ar to extract alloca.o from them instead of compiling alloca.c.
5728
5729ALLOCA=alloca.$ac_objext
5730
5731cat >>confdefs.h <<\_ACEOF
252b5132 5732#define C_ALLOCA 1
5464f5a1 5733_ACEOF
252b5132 5734
6be7c12c 5735
5464f5a1
NN
5736echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5737echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5738if test "${ac_cv_os_cray+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5740else
5464f5a1
NN
5741 cat >conftest.$ac_ext <<_ACEOF
5742/* confdefs.h. */
5743_ACEOF
5744cat confdefs.h >>conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h. */
252b5132
RH
5747#if defined(CRAY) && ! defined(CRAY2)
5748webecray
5749#else
5750wenotbecray
5751#endif
5752
5464f5a1 5753_ACEOF
252b5132 5754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5755 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
5756 ac_cv_os_cray=yes
5757else
252b5132
RH
5758 ac_cv_os_cray=no
5759fi
5760rm -f conftest*
5761
5762fi
5464f5a1
NN
5763echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5764echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 5765if test $ac_cv_os_cray = yes; then
5464f5a1
NN
5766 for ac_func in _getb67 GETB67 getb67; do
5767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5768echo "$as_me:$LINENO: checking for $ac_func" >&5
5769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5770if eval "test \"\${$as_ac_var+set}\" = set"; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773 cat >conftest.$ac_ext <<_ACEOF
5774/* confdefs.h. */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h. */
5779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5781#define $ac_func innocuous_$ac_func
5782
252b5132 5783/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
5784 which can conflict with char $ac_func (); below.
5785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786 <limits.h> exists even on freestanding compilers. */
5787
5788#ifdef __STDC__
5789# include <limits.h>
5790#else
5791# include <assert.h>
5792#endif
6be7c12c 5793
5464f5a1 5794#undef $ac_func
252b5132 5795
5464f5a1
NN
5796/* Override any gcc2 internal prototype to avoid an error. */
5797#ifdef __cplusplus
5798extern "C"
5799{
5800#endif
5801/* We use char because int might match the return type of a gcc2
5802 builtin and then its argument prototype would still apply. */
5803char $ac_func ();
252b5132
RH
5804/* The GNU C library defines this for functions which it implements
5805 to always fail with ENOSYS. Some functions are actually named
5806 something starting with __ and the normal name is an alias. */
5807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5808choke me
5809#else
5464f5a1
NN
5810char (*f) () = $ac_func;
5811#endif
5812#ifdef __cplusplus
5813}
252b5132
RH
5814#endif
5815
5464f5a1
NN
5816int
5817main ()
5818{
5819return f != $ac_func;
5820 ;
5821 return 0;
5822}
5823_ACEOF
5824rm -f conftest.$ac_objext conftest$ac_exeext
5825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5826 (eval $ac_link) 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835 (eval $ac_try) 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; } &&
5839 { ac_try='test -s conftest$ac_exeext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 eval "$as_ac_var=yes"
5846else
5847 echo "$as_me: failed program was:" >&5
5848sed 's/^/| /' conftest.$ac_ext >&5
5849
5850eval "$as_ac_var=no"
5851fi
5852rm -f conftest.err conftest.$ac_objext \
5853 conftest$ac_exeext conftest.$ac_ext
5854fi
5855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5856echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5857if test `eval echo '${'$as_ac_var'}'` = yes; then
5858
5859cat >>confdefs.h <<_ACEOF
252b5132 5860#define CRAY_STACKSEG_END $ac_func
5464f5a1 5861_ACEOF
252b5132 5862
5464f5a1 5863 break
252b5132
RH
5864fi
5865
5464f5a1 5866 done
252b5132
RH
5867fi
5868
5464f5a1
NN
5869echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5870echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5871if test "${ac_cv_c_stack_direction+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5873else
5874 if test "$cross_compiling" = yes; then
5875 ac_cv_c_stack_direction=0
5876else
5464f5a1
NN
5877 cat >conftest.$ac_ext <<_ACEOF
5878/* confdefs.h. */
5879_ACEOF
5880cat confdefs.h >>conftest.$ac_ext
5881cat >>conftest.$ac_ext <<_ACEOF
5882/* end confdefs.h. */
5883int
252b5132
RH
5884find_stack_direction ()
5885{
5886 static char *addr = 0;
5887 auto char dummy;
5888 if (addr == 0)
5889 {
5890 addr = &dummy;
5891 return find_stack_direction ();
5892 }
5893 else
5894 return (&dummy > addr) ? 1 : -1;
5895}
5464f5a1
NN
5896
5897int
252b5132
RH
5898main ()
5899{
5464f5a1 5900 exit (find_stack_direction () < 0);
252b5132 5901}
5464f5a1
NN
5902_ACEOF
5903rm -f conftest$ac_exeext
5904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>&5
5906 ac_status=$?
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; }; then
252b5132
RH
5914 ac_cv_c_stack_direction=1
5915else
5464f5a1
NN
5916 echo "$as_me: program exited with status $ac_status" >&5
5917echo "$as_me: failed program was:" >&5
5918sed 's/^/| /' conftest.$ac_ext >&5
5919
5920( exit $ac_status )
5921ac_cv_c_stack_direction=-1
252b5132 5922fi
5464f5a1 5923rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5924fi
252b5132 5925fi
5464f5a1
NN
5926echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5927echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 5928
5464f5a1 5929cat >>confdefs.h <<_ACEOF
252b5132 5930#define STACK_DIRECTION $ac_cv_c_stack_direction
5464f5a1
NN
5931_ACEOF
5932
252b5132
RH
5933
5934fi
5935
5464f5a1
NN
5936
5937
5938for ac_header in stdlib.h unistd.h
252b5132 5939do
5464f5a1
NN
5940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5941if eval "test \"\${$as_ac_Header+set}\" = set"; then
5942 echo "$as_me:$LINENO: checking for $ac_header" >&5
5943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5944if eval "test \"\${$as_ac_Header+set}\" = set"; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946fi
5947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5949else
5950 # Is the header compilable?
5951echo "$as_me:$LINENO: checking $ac_header usability" >&5
5952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5953cat >conftest.$ac_ext <<_ACEOF
5954/* confdefs.h. */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h. */
5959$ac_includes_default
5960#include <$ac_header>
5961_ACEOF
5962rm -f conftest.$ac_objext
5963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>conftest.er1
5965 ac_status=$?
5966 grep -v '^ *+' conftest.er1 >conftest.err
5967 rm -f conftest.er1
5968 cat conftest.err >&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } &&
5971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973 (eval $ac_try) 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_header_compiler=yes
5984else
5985 echo "$as_me: failed program was:" >&5
5986sed 's/^/| /' conftest.$ac_ext >&5
5987
5988ac_header_compiler=no
5989fi
5990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5991echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5992echo "${ECHO_T}$ac_header_compiler" >&6
5993
5994# Is the header present?
5995echo "$as_me:$LINENO: checking $ac_header presence" >&5
5996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5997cat >conftest.$ac_ext <<_ACEOF
5998/* confdefs.h. */
5999_ACEOF
6000cat confdefs.h >>conftest.$ac_ext
6001cat >>conftest.$ac_ext <<_ACEOF
6002/* end confdefs.h. */
6003#include <$ac_header>
6004_ACEOF
6005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6007 ac_status=$?
6008 grep -v '^ *+' conftest.er1 >conftest.err
6009 rm -f conftest.er1
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } >/dev/null; then
6013 if test -s conftest.err; then
6014 ac_cpp_err=$ac_c_preproc_warn_flag
6015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6016 else
6017 ac_cpp_err=
6018 fi
252b5132 6019else
5464f5a1 6020 ac_cpp_err=yes
252b5132 6021fi
5464f5a1
NN
6022if test -z "$ac_cpp_err"; then
6023 ac_header_preproc=yes
6024else
6025 echo "$as_me: failed program was:" >&5
6026sed 's/^/| /' conftest.$ac_ext >&5
6027
6028 ac_header_preproc=no
252b5132 6029fi
5464f5a1
NN
6030rm -f conftest.err conftest.$ac_ext
6031echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6032echo "${ECHO_T}$ac_header_preproc" >&6
6033
6034# So? What about this header?
6035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6036 yes:no: )
6037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6038echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6040echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6041 ac_header_preproc=yes
6042 ;;
6043 no:yes:* )
6044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6045echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6047echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6049echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6051echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6053echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6055echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6056 (
6057 cat <<\_ASBOX
6058## ------------------------------------------ ##
6059## Report this to the AC_PACKAGE_NAME lists. ##
6060## ------------------------------------------ ##
6061_ASBOX
6062 ) |
6063 sed "s/^/$as_me: WARNING: /" >&2
6064 ;;
6065esac
6066echo "$as_me:$LINENO: checking for $ac_header" >&5
6067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6068if eval "test \"\${$as_ac_Header+set}\" = set"; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6070else
5464f5a1
NN
6071 eval "$as_ac_Header=\$ac_header_preproc"
6072fi
6073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6075
252b5132 6076fi
5464f5a1
NN
6077if test `eval echo '${'$as_ac_Header'}'` = yes; then
6078 cat >>confdefs.h <<_ACEOF
6079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6080_ACEOF
6081
6082fi
6083
252b5132
RH
6084done
6085
5464f5a1 6086
252b5132
RH
6087for ac_func in getpagesize
6088do
5464f5a1
NN
6089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6090echo "$as_me:$LINENO: checking for $ac_func" >&5
6091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6092if eval "test \"\${$as_ac_var+set}\" = set"; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094else
6095 cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h. */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h. */
6101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6103#define $ac_func innocuous_$ac_func
6104
252b5132 6105/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6106 which can conflict with char $ac_func (); below.
6107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6108 <limits.h> exists even on freestanding compilers. */
6109
6110#ifdef __STDC__
6111# include <limits.h>
6112#else
6113# include <assert.h>
6114#endif
6be7c12c 6115
5464f5a1 6116#undef $ac_func
252b5132 6117
5464f5a1
NN
6118/* Override any gcc2 internal prototype to avoid an error. */
6119#ifdef __cplusplus
6120extern "C"
6121{
6122#endif
6123/* We use char because int might match the return type of a gcc2
6124 builtin and then its argument prototype would still apply. */
6125char $ac_func ();
252b5132
RH
6126/* The GNU C library defines this for functions which it implements
6127 to always fail with ENOSYS. Some functions are actually named
6128 something starting with __ and the normal name is an alias. */
6129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6130choke me
6131#else
5464f5a1
NN
6132char (*f) () = $ac_func;
6133#endif
6134#ifdef __cplusplus
6135}
252b5132
RH
6136#endif
6137
5464f5a1
NN
6138int
6139main ()
6140{
6141return f != $ac_func;
6142 ;
6143 return 0;
6144}
6145_ACEOF
6146rm -f conftest.$ac_objext conftest$ac_exeext
6147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6148 (eval $ac_link) 2>conftest.er1
6149 ac_status=$?
6150 grep -v '^ *+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try='test -s conftest$ac_exeext'
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 (eval $ac_try) 2>&5
6164 ac_status=$?
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; }; then
6167 eval "$as_ac_var=yes"
6168else
6169 echo "$as_me: failed program was:" >&5
6170sed 's/^/| /' conftest.$ac_ext >&5
6171
6172eval "$as_ac_var=no"
6173fi
6174rm -f conftest.err conftest.$ac_objext \
6175 conftest$ac_exeext conftest.$ac_ext
6176fi
6177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6178echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6179if test `eval echo '${'$as_ac_var'}'` = yes; then
6180 cat >>confdefs.h <<_ACEOF
6181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6182_ACEOF
252b5132 6183
252b5132
RH
6184fi
6185done
6186
5464f5a1
NN
6187echo "$as_me:$LINENO: checking for working mmap" >&5
6188echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6189if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6191else
6192 if test "$cross_compiling" = yes; then
6193 ac_cv_func_mmap_fixed_mapped=no
6194else
5464f5a1
NN
6195 cat >conftest.$ac_ext <<_ACEOF
6196/* confdefs.h. */
6197_ACEOF
6198cat confdefs.h >>conftest.$ac_ext
6199cat >>conftest.$ac_ext <<_ACEOF
6200/* end confdefs.h. */
6201$ac_includes_default
6202/* malloc might have been renamed as rpl_malloc. */
6203#undef malloc
6be7c12c 6204
252b5132
RH
6205/* Thanks to Mike Haertel and Jim Avera for this test.
6206 Here is a matrix of mmap possibilities:
6207 mmap private not fixed
6208 mmap private fixed at somewhere currently unmapped
6209 mmap private fixed at somewhere already mapped
6210 mmap shared not fixed
6211 mmap shared fixed at somewhere currently unmapped
6212 mmap shared fixed at somewhere already mapped
6213 For private mappings, we should verify that changes cannot be read()
6214 back from the file, nor mmap's back from the file at a different
6215 address. (There have been systems where private was not correctly
6216 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 6217 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6218 like early versions of FreeBSD and possibly contemporary NetBSD.)
6219 For shared mappings, we should conversely verify that changes get
5464f5a1 6220 propagated back to all the places they're supposed to be.
252b5132
RH
6221
6222 Grep wants private fixed already mapped.
6223 The main things grep needs to know about mmap are:
6224 * does it exist and is it safe to write into the mmap'd area
6225 * how to use it (BSD variants) */
5464f5a1 6226
252b5132
RH
6227#include <fcntl.h>
6228#include <sys/mman.h>
6229
5464f5a1
NN
6230#if !STDC_HEADERS && !HAVE_STDLIB_H
6231char *malloc ();
6232#endif
6be7c12c 6233
5464f5a1
NN
6234/* This mess was copied from the GNU getpagesize.h. */
6235#if !HAVE_GETPAGESIZE
252b5132 6236/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 6237# if !HAVE_SYS_PARAM_H
252b5132
RH
6238# define HAVE_SYS_PARAM_H 1
6239# endif
6240
6241# ifdef _SC_PAGESIZE
6242# define getpagesize() sysconf(_SC_PAGESIZE)
6243# else /* no _SC_PAGESIZE */
5464f5a1 6244# if HAVE_SYS_PARAM_H
252b5132
RH
6245# include <sys/param.h>
6246# ifdef EXEC_PAGESIZE
6247# define getpagesize() EXEC_PAGESIZE
6248# else /* no EXEC_PAGESIZE */
6249# ifdef NBPG
6250# define getpagesize() NBPG * CLSIZE
6251# ifndef CLSIZE
6252# define CLSIZE 1
6253# endif /* no CLSIZE */
6254# else /* no NBPG */
6255# ifdef NBPC
6256# define getpagesize() NBPC
6257# else /* no NBPC */
6258# ifdef PAGESIZE
6259# define getpagesize() PAGESIZE
6260# endif /* PAGESIZE */
6261# endif /* no NBPC */
6262# endif /* no NBPG */
6263# endif /* no EXEC_PAGESIZE */
6264# else /* no HAVE_SYS_PARAM_H */
6265# define getpagesize() 8192 /* punt totally */
6266# endif /* no HAVE_SYS_PARAM_H */
6267# endif /* no _SC_PAGESIZE */
6268
6269#endif /* no HAVE_GETPAGESIZE */
6270
252b5132 6271int
5464f5a1 6272main ()
252b5132 6273{
5464f5a1
NN
6274 char *data, *data2, *data3;
6275 int i, pagesize;
6276 int fd;
6277
6278 pagesize = getpagesize ();
6279
6280 /* First, make a file with some known garbage in it. */
6281 data = (char *) malloc (pagesize);
6282 if (!data)
6283 exit (1);
6284 for (i = 0; i < pagesize; ++i)
6285 *(data + i) = rand ();
6286 umask (0);
6287 fd = creat ("conftest.mmap", 0600);
6288 if (fd < 0)
6289 exit (1);
6290 if (write (fd, data, pagesize) != pagesize)
6291 exit (1);
6292 close (fd);
6293
6294 /* Next, try to mmap the file at a fixed address which already has
6295 something else allocated at it. If we can, also make sure that
6296 we see the same garbage. */
6297 fd = open ("conftest.mmap", O_RDWR);
6298 if (fd < 0)
6299 exit (1);
6300 data2 = (char *) malloc (2 * pagesize);
6301 if (!data2)
6302 exit (1);
6303 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6304 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6305 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6306 exit (1);
6307 for (i = 0; i < pagesize; ++i)
6308 if (*(data + i) != *(data2 + i))
6309 exit (1);
6310
6311 /* Finally, make sure that changes to the mapped area do not
6312 percolate back to the file as seen by read(). (This is a bug on
6313 some variants of i386 svr4.0.) */
6314 for (i = 0; i < pagesize; ++i)
6315 *(data2 + i) = *(data2 + i) + 1;
6316 data3 = (char *) malloc (pagesize);
6317 if (!data3)
6318 exit (1);
6319 if (read (fd, data3, pagesize) != pagesize)
6320 exit (1);
6321 for (i = 0; i < pagesize; ++i)
6322 if (*(data + i) != *(data3 + i))
6323 exit (1);
6324 close (fd);
6325 exit (0);
252b5132 6326}
5464f5a1
NN
6327_ACEOF
6328rm -f conftest$ac_exeext
6329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6330 (eval $ac_link) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
252b5132
RH
6339 ac_cv_func_mmap_fixed_mapped=yes
6340else
5464f5a1
NN
6341 echo "$as_me: program exited with status $ac_status" >&5
6342echo "$as_me: failed program was:" >&5
6343sed 's/^/| /' conftest.$ac_ext >&5
6344
6345( exit $ac_status )
6346ac_cv_func_mmap_fixed_mapped=no
252b5132 6347fi
5464f5a1 6348rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6349fi
252b5132 6350fi
5464f5a1
NN
6351echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6352echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6be7c12c 6353if test $ac_cv_func_mmap_fixed_mapped = yes; then
5464f5a1
NN
6354
6355cat >>confdefs.h <<\_ACEOF
252b5132 6356#define HAVE_MMAP 1
5464f5a1 6357_ACEOF
252b5132
RH
6358
6359fi
5464f5a1
NN
6360rm -f conftest.mmap
6361
6362
252b5132 6363
5464f5a1
NN
6364
6365
6366
6367
6368
6369
6370
6371
6372for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6373unistd.h values.h sys/param.h
6374do
5464f5a1
NN
6375as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6376if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377 echo "$as_me:$LINENO: checking for $ac_header" >&5
6378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6379if eval "test \"\${$as_ac_Header+set}\" = set"; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381fi
6382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6384else
6385 # Is the header compilable?
6386echo "$as_me:$LINENO: checking $ac_header usability" >&5
6387echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6388cat >conftest.$ac_ext <<_ACEOF
6389/* confdefs.h. */
6390_ACEOF
6391cat confdefs.h >>conftest.$ac_ext
6392cat >>conftest.$ac_ext <<_ACEOF
6393/* end confdefs.h. */
6394$ac_includes_default
6395#include <$ac_header>
6396_ACEOF
6397rm -f conftest.$ac_objext
6398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6399 (eval $ac_compile) 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; } &&
6412 { ac_try='test -s conftest.$ac_objext'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 (eval $ac_try) 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; }; then
6418 ac_header_compiler=yes
6419else
6420 echo "$as_me: failed program was:" >&5
6421sed 's/^/| /' conftest.$ac_ext >&5
6422
6423ac_header_compiler=no
6424fi
6425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6426echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6427echo "${ECHO_T}$ac_header_compiler" >&6
6428
6429# Is the header present?
6430echo "$as_me:$LINENO: checking $ac_header presence" >&5
6431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6432cat >conftest.$ac_ext <<_ACEOF
6433/* confdefs.h. */
6434_ACEOF
6435cat confdefs.h >>conftest.$ac_ext
6436cat >>conftest.$ac_ext <<_ACEOF
6437/* end confdefs.h. */
6438#include <$ac_header>
6439_ACEOF
6440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6442 ac_status=$?
6443 grep -v '^ *+' conftest.er1 >conftest.err
6444 rm -f conftest.er1
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } >/dev/null; then
6448 if test -s conftest.err; then
6449 ac_cpp_err=$ac_c_preproc_warn_flag
6450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6451 else
6452 ac_cpp_err=
6453 fi
252b5132 6454else
5464f5a1 6455 ac_cpp_err=yes
252b5132 6456fi
5464f5a1
NN
6457if test -z "$ac_cpp_err"; then
6458 ac_header_preproc=yes
6459else
6460 echo "$as_me: failed program was:" >&5
6461sed 's/^/| /' conftest.$ac_ext >&5
6462
6463 ac_header_preproc=no
252b5132 6464fi
5464f5a1
NN
6465rm -f conftest.err conftest.$ac_ext
6466echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6467echo "${ECHO_T}$ac_header_preproc" >&6
6468
6469# So? What about this header?
6470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6471 yes:no: )
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6473echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6475echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6476 ac_header_preproc=yes
6477 ;;
6478 no:yes:* )
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6480echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6482echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6484echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6486echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6488echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6490echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6491 (
6492 cat <<\_ASBOX
6493## ------------------------------------------ ##
6494## Report this to the AC_PACKAGE_NAME lists. ##
6495## ------------------------------------------ ##
6496_ASBOX
6497 ) |
6498 sed "s/^/$as_me: WARNING: /" >&2
6499 ;;
6500esac
6501echo "$as_me:$LINENO: checking for $ac_header" >&5
6502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6503if eval "test \"\${$as_ac_Header+set}\" = set"; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6505else
5464f5a1
NN
6506 eval "$as_ac_Header=\$ac_header_preproc"
6507fi
6508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6510
6511fi
6512if test `eval echo '${'$as_ac_Header'}'` = yes; then
6513 cat >>confdefs.h <<_ACEOF
6514#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6515_ACEOF
6516
252b5132 6517fi
5464f5a1 6518
252b5132
RH
6519done
6520
5464f5a1
NN
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6532__argz_count __argz_stringify __argz_next
6533do
5464f5a1
NN
6534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6535echo "$as_me:$LINENO: checking for $ac_func" >&5
6536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6537if eval "test \"\${$as_ac_var+set}\" = set"; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540 cat >conftest.$ac_ext <<_ACEOF
6541/* confdefs.h. */
6542_ACEOF
6543cat confdefs.h >>conftest.$ac_ext
6544cat >>conftest.$ac_ext <<_ACEOF
6545/* end confdefs.h. */
6546/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6548#define $ac_func innocuous_$ac_func
6549
252b5132 6550/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6551 which can conflict with char $ac_func (); below.
6552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6553 <limits.h> exists even on freestanding compilers. */
6554
6555#ifdef __STDC__
6556# include <limits.h>
6557#else
6558# include <assert.h>
6559#endif
6560
6561#undef $ac_func
6562
252b5132 6563/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
6564#ifdef __cplusplus
6565extern "C"
6566{
6567#endif
252b5132 6568/* We use char because int might match the return type of a gcc2
5464f5a1
NN
6569 builtin and then its argument prototype would still apply. */
6570char $ac_func ();
252b5132
RH
6571/* The GNU C library defines this for functions which it implements
6572 to always fail with ENOSYS. Some functions are actually named
6573 something starting with __ and the normal name is an alias. */
6574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6575choke me
6576#else
5464f5a1
NN
6577char (*f) () = $ac_func;
6578#endif
6579#ifdef __cplusplus
6580}
252b5132
RH
6581#endif
6582
5464f5a1
NN
6583int
6584main ()
6585{
6586return f != $ac_func;
6587 ;
6588 return 0;
6589}
6590_ACEOF
6591rm -f conftest.$ac_objext conftest$ac_exeext
6592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593 (eval $ac_link) 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; } &&
6606 { ac_try='test -s conftest$ac_exeext'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; }; then
6612 eval "$as_ac_var=yes"
6613else
6614 echo "$as_me: failed program was:" >&5
6615sed 's/^/| /' conftest.$ac_ext >&5
6616
6617eval "$as_ac_var=no"
6618fi
6619rm -f conftest.err conftest.$ac_objext \
6620 conftest$ac_exeext conftest.$ac_ext
6621fi
6622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6623echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6624if test `eval echo '${'$as_ac_var'}'` = yes; then
6625 cat >>confdefs.h <<_ACEOF
6626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6627_ACEOF
252b5132 6628
252b5132
RH
6629fi
6630done
6631
b3baf5d0 6632
6be7c12c 6633 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5464f5a1
NN
6634
6635for ac_func in stpcpy
252b5132 6636do
5464f5a1
NN
6637as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6638echo "$as_me:$LINENO: checking for $ac_func" >&5
6639echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6640if eval "test \"\${$as_ac_var+set}\" = set"; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643 cat >conftest.$ac_ext <<_ACEOF
6644/* confdefs.h. */
6645_ACEOF
6646cat confdefs.h >>conftest.$ac_ext
6647cat >>conftest.$ac_ext <<_ACEOF
6648/* end confdefs.h. */
6649/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6651#define $ac_func innocuous_$ac_func
6652
252b5132 6653/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6654 which can conflict with char $ac_func (); below.
6655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6656 <limits.h> exists even on freestanding compilers. */
6657
6658#ifdef __STDC__
6659# include <limits.h>
6660#else
6661# include <assert.h>
6662#endif
6be7c12c 6663
5464f5a1 6664#undef $ac_func
252b5132 6665
5464f5a1
NN
6666/* Override any gcc2 internal prototype to avoid an error. */
6667#ifdef __cplusplus
6668extern "C"
6669{
6670#endif
6671/* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6673char $ac_func ();
252b5132
RH
6674/* The GNU C library defines this for functions which it implements
6675 to always fail with ENOSYS. Some functions are actually named
6676 something starting with __ and the normal name is an alias. */
6677#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6678choke me
6679#else
5464f5a1
NN
6680char (*f) () = $ac_func;
6681#endif
6682#ifdef __cplusplus
6683}
252b5132
RH
6684#endif
6685
5464f5a1
NN
6686int
6687main ()
6688{
6689return f != $ac_func;
6690 ;
6691 return 0;
6692}
6693_ACEOF
6694rm -f conftest.$ac_objext conftest$ac_exeext
6695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>conftest.er1
6697 ac_status=$?
6698 grep -v '^ *+' conftest.er1 >conftest.err
6699 rm -f conftest.er1
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest$ac_exeext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 eval "$as_ac_var=yes"
6716else
6717 echo "$as_me: failed program was:" >&5
6718sed 's/^/| /' conftest.$ac_ext >&5
6719
6720eval "$as_ac_var=no"
6721fi
6722rm -f conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
6724fi
6725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6726echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6727if test `eval echo '${'$as_ac_var'}'` = yes; then
6728 cat >>confdefs.h <<_ACEOF
6729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6730_ACEOF
252b5132 6731
252b5132
RH
6732fi
6733done
6734
6735 fi
6736 if test "${ac_cv_func_stpcpy}" = "yes"; then
5464f5a1
NN
6737
6738cat >>confdefs.h <<\_ACEOF
252b5132 6739#define HAVE_STPCPY 1
5464f5a1 6740_ACEOF
252b5132
RH
6741
6742 fi
6743
6744 if test $ac_cv_header_locale_h = yes; then
5464f5a1
NN
6745 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6746echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6747if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6749else
6750 cat >conftest.$ac_ext <<_ACEOF
6751/* confdefs.h. */
6752_ACEOF
6753cat confdefs.h >>conftest.$ac_ext
6754cat >>conftest.$ac_ext <<_ACEOF
6755/* end confdefs.h. */
252b5132 6756#include <locale.h>
5464f5a1
NN
6757int
6758main ()
6759{
252b5132 6760return LC_MESSAGES
5464f5a1
NN
6761 ;
6762 return 0;
6763}
6764_ACEOF
6765rm -f conftest.$ac_objext conftest$ac_exeext
6766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; } &&
6780 { ac_try='test -s conftest$ac_exeext'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 (eval $ac_try) 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
252b5132
RH
6786 am_cv_val_LC_MESSAGES=yes
6787else
5464f5a1
NN
6788 echo "$as_me: failed program was:" >&5
6789sed 's/^/| /' conftest.$ac_ext >&5
6790
6791am_cv_val_LC_MESSAGES=no
252b5132 6792fi
5464f5a1
NN
6793rm -f conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
252b5132 6795fi
5464f5a1
NN
6796echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6797echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6be7c12c 6798 if test $am_cv_val_LC_MESSAGES = yes; then
5464f5a1
NN
6799
6800cat >>confdefs.h <<\_ACEOF
252b5132 6801#define HAVE_LC_MESSAGES 1
5464f5a1 6802_ACEOF
252b5132
RH
6803
6804 fi
6805 fi
5464f5a1
NN
6806 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6807echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
6808 # Check whether --enable-nls or --disable-nls was given.
6809if test "${enable_nls+set}" = set; then
6810 enableval="$enable_nls"
6811 USE_NLS=$enableval
6812else
6813 USE_NLS=yes
5464f5a1
NN
6814fi;
6815 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6816echo "${ECHO_T}$USE_NLS" >&6
6be7c12c 6817
252b5132
RH
6818
6819 USE_INCLUDED_LIBINTL=no
6820
6821 if test "$USE_NLS" = "yes"; then
5464f5a1
NN
6822
6823cat >>confdefs.h <<\_ACEOF
252b5132 6824#define ENABLE_NLS 1
5464f5a1 6825_ACEOF
252b5132 6826
5464f5a1
NN
6827 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6828echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6829
6830# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
6831if test "${with_included_gettext+set}" = set; then
6832 withval="$with_included_gettext"
6833 nls_cv_force_use_gnu_gettext=$withval
6834else
6835 nls_cv_force_use_gnu_gettext=no
5464f5a1
NN
6836fi;
6837 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6838echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
6839
6840 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6841 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6842 nls_cv_header_intl=
6843 nls_cv_header_libgt=
6844 CATOBJEXT=NONE
6845
5464f5a1
NN
6846 if test "${ac_cv_header_libintl_h+set}" = set; then
6847 echo "$as_me:$LINENO: checking for libintl.h" >&5
6848echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6849if test "${ac_cv_header_libintl_h+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6851fi
6852echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6853echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6854else
6855 # Is the header compilable?
6856echo "$as_me:$LINENO: checking libintl.h usability" >&5
6857echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6858cat >conftest.$ac_ext <<_ACEOF
6859/* confdefs.h. */
6860_ACEOF
6861cat confdefs.h >>conftest.$ac_ext
6862cat >>conftest.$ac_ext <<_ACEOF
6863/* end confdefs.h. */
6864$ac_includes_default
252b5132 6865#include <libintl.h>
5464f5a1
NN
6866_ACEOF
6867rm -f conftest.$ac_objext
6868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6869 (eval $ac_compile) 2>conftest.er1
6870 ac_status=$?
6871 grep -v '^ *+' conftest.er1 >conftest.err
6872 rm -f conftest.er1
6873 cat conftest.err >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } &&
6876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; } &&
6882 { ac_try='test -s conftest.$ac_objext'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 (eval $ac_try) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; }; then
6888 ac_header_compiler=yes
6889else
6890 echo "$as_me: failed program was:" >&5
6891sed 's/^/| /' conftest.$ac_ext >&5
6892
6893ac_header_compiler=no
6894fi
6895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6897echo "${ECHO_T}$ac_header_compiler" >&6
6898
6899# Is the header present?
6900echo "$as_me:$LINENO: checking libintl.h presence" >&5
6901echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
6902cat >conftest.$ac_ext <<_ACEOF
6903/* confdefs.h. */
6904_ACEOF
6905cat confdefs.h >>conftest.$ac_ext
6906cat >>conftest.$ac_ext <<_ACEOF
6907/* end confdefs.h. */
6908#include <libintl.h>
6909_ACEOF
6910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6912 ac_status=$?
6913 grep -v '^ *+' conftest.er1 >conftest.err
6914 rm -f conftest.er1
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } >/dev/null; then
6918 if test -s conftest.err; then
6919 ac_cpp_err=$ac_c_preproc_warn_flag
6920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6921 else
6922 ac_cpp_err=
6923 fi
252b5132 6924else
5464f5a1 6925 ac_cpp_err=yes
252b5132 6926fi
5464f5a1
NN
6927if test -z "$ac_cpp_err"; then
6928 ac_header_preproc=yes
6929else
6930 echo "$as_me: failed program was:" >&5
6931sed 's/^/| /' conftest.$ac_ext >&5
6932
6933 ac_header_preproc=no
252b5132 6934fi
5464f5a1
NN
6935rm -f conftest.err conftest.$ac_ext
6936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6937echo "${ECHO_T}$ac_header_preproc" >&6
6938
6939# So? What about this header?
6940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6941 yes:no: )
6942 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6943echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6944 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6945echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6946 ac_header_preproc=yes
6947 ;;
6948 no:yes:* )
6949 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6950echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6951 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6952echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6953 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6954echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6955 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6956echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6957 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6958echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6959 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6960echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6961 (
6962 cat <<\_ASBOX
6963## ------------------------------------------ ##
6964## Report this to the AC_PACKAGE_NAME lists. ##
6965## ------------------------------------------ ##
6966_ASBOX
6967 ) |
6968 sed "s/^/$as_me: WARNING: /" >&2
6969 ;;
6970esac
6971echo "$as_me:$LINENO: checking for libintl.h" >&5
6972echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6973if test "${ac_cv_header_libintl_h+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6975else
5464f5a1
NN
6976 ac_cv_header_libintl_h=$ac_header_preproc
6977fi
6978echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6979echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6980
6981fi
6982if test $ac_cv_header_libintl_h = yes; then
6983 echo "$as_me:$LINENO: checking for gettext in libc" >&5
6984echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
6985if test "${gt_cv_func_gettext_libc+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987else
6988 cat >conftest.$ac_ext <<_ACEOF
6989/* confdefs.h. */
6990_ACEOF
6991cat confdefs.h >>conftest.$ac_ext
6992cat >>conftest.$ac_ext <<_ACEOF
6993/* end confdefs.h. */
252b5132 6994#include <libintl.h>
5464f5a1
NN
6995int
6996main ()
6997{
252b5132 6998return (int) gettext ("")
5464f5a1
NN
6999 ;
7000 return 0;
7001}
7002_ACEOF
7003rm -f conftest.$ac_objext conftest$ac_exeext
7004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 (eval $ac_try) 2>&5
7015 ac_status=$?
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; } &&
7018 { ac_try='test -s conftest$ac_exeext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
252b5132
RH
7024 gt_cv_func_gettext_libc=yes
7025else
5464f5a1
NN
7026 echo "$as_me: failed program was:" >&5
7027sed 's/^/| /' conftest.$ac_ext >&5
7028
7029gt_cv_func_gettext_libc=no
252b5132 7030fi
5464f5a1
NN
7031rm -f conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
252b5132 7033fi
5464f5a1
NN
7034echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7035echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7036
7037 if test "$gt_cv_func_gettext_libc" != "yes"; then
5464f5a1
NN
7038 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7039echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7040if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7042else
5464f5a1 7043 ac_check_lib_save_LIBS=$LIBS
252b5132 7044LIBS="-lintl $LIBS"
5464f5a1
NN
7045cat >conftest.$ac_ext <<_ACEOF
7046/* confdefs.h. */
7047_ACEOF
7048cat confdefs.h >>conftest.$ac_ext
7049cat >>conftest.$ac_ext <<_ACEOF
7050/* end confdefs.h. */
7051
252b5132 7052/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7053#ifdef __cplusplus
7054extern "C"
7055#endif
252b5132 7056/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7057 builtin and then its argument prototype would still apply. */
7058char bindtextdomain ();
7059int
7060main ()
7061{
7062bindtextdomain ();
7063 ;
7064 return 0;
7065}
7066_ACEOF
7067rm -f conftest.$ac_objext conftest$ac_exeext
7068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7069 (eval $ac_link) 2>conftest.er1
7070 ac_status=$?
7071 grep -v '^ *+' conftest.er1 >conftest.err
7072 rm -f conftest.er1
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try='test -s conftest$ac_exeext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 ac_cv_lib_intl_bindtextdomain=yes
7089else
7090 echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
7093ac_cv_lib_intl_bindtextdomain=no
7094fi
7095rm -f conftest.err conftest.$ac_objext \
7096 conftest$ac_exeext conftest.$ac_ext
7097LIBS=$ac_check_lib_save_LIBS
7098fi
7099echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7100echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7101if test $ac_cv_lib_intl_bindtextdomain = yes; then
7102 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7103echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7104if test "${gt_cv_func_gettext_libintl+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106else
7107 cat >conftest.$ac_ext <<_ACEOF
7108/* confdefs.h. */
7109_ACEOF
7110cat confdefs.h >>conftest.$ac_ext
7111cat >>conftest.$ac_ext <<_ACEOF
7112/* end confdefs.h. */
252b5132 7113
5464f5a1
NN
7114int
7115main ()
7116{
252b5132 7117return (int) gettext ("")
5464f5a1
NN
7118 ;
7119 return 0;
7120}
7121_ACEOF
7122rm -f conftest.$ac_objext conftest$ac_exeext
7123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7124 (eval $ac_link) 2>conftest.er1
7125 ac_status=$?
7126 grep -v '^ *+' conftest.er1 >conftest.err
7127 rm -f conftest.er1
7128 cat conftest.err >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); } &&
7131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; } &&
7137 { ac_try='test -s conftest$ac_exeext'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 (eval $ac_try) 2>&5
7140 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then
252b5132
RH
7143 gt_cv_func_gettext_libintl=yes
7144else
5464f5a1
NN
7145 echo "$as_me: failed program was:" >&5
7146sed 's/^/| /' conftest.$ac_ext >&5
7147
7148gt_cv_func_gettext_libintl=no
252b5132 7149fi
5464f5a1
NN
7150rm -f conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext
252b5132 7152fi
5464f5a1
NN
7153echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7154echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7155fi
7156
7157 fi
7158
7159 if test "$gt_cv_func_gettext_libc" = "yes" \
7160 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5464f5a1
NN
7161
7162cat >>confdefs.h <<\_ACEOF
252b5132 7163#define HAVE_GETTEXT 1
5464f5a1 7164_ACEOF
252b5132
RH
7165
7166 # Extract the first word of "msgfmt", so it can be a program name with args.
7167set dummy msgfmt; ac_word=$2
5464f5a1
NN
7168echo "$as_me:$LINENO: checking for $ac_word" >&5
7169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7170if test "${ac_cv_path_MSGFMT+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7172else
7173 case "$MSGFMT" in
7174 /*)
7175 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7176 ;;
7177 *)
7178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7179 for ac_dir in $PATH; do
7180 test -z "$ac_dir" && ac_dir=.
7181 if test -f $ac_dir/$ac_word; then
7182 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7183 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7184 break
7185 fi
7186 fi
7187 done
7188 IFS="$ac_save_ifs"
7189 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7190 ;;
7191esac
7192fi
7193MSGFMT="$ac_cv_path_MSGFMT"
7194if test -n "$MSGFMT"; then
5464f5a1
NN
7195 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7196echo "${ECHO_T}$MSGFMT" >&6
252b5132 7197else
5464f5a1
NN
7198 echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6
252b5132
RH
7200fi
7201 if test "$MSGFMT" != "no"; then
5464f5a1
NN
7202
7203for ac_func in dcgettext
252b5132 7204do
5464f5a1
NN
7205as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7206echo "$as_me:$LINENO: checking for $ac_func" >&5
7207echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7208if eval "test \"\${$as_ac_var+set}\" = set"; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210else
7211 cat >conftest.$ac_ext <<_ACEOF
7212/* confdefs.h. */
7213_ACEOF
7214cat confdefs.h >>conftest.$ac_ext
7215cat >>conftest.$ac_ext <<_ACEOF
7216/* end confdefs.h. */
7217/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7219#define $ac_func innocuous_$ac_func
7220
252b5132 7221/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7222 which can conflict with char $ac_func (); below.
7223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224 <limits.h> exists even on freestanding compilers. */
7225
7226#ifdef __STDC__
7227# include <limits.h>
7228#else
7229# include <assert.h>
7230#endif
6be7c12c 7231
5464f5a1 7232#undef $ac_func
252b5132 7233
5464f5a1
NN
7234/* Override any gcc2 internal prototype to avoid an error. */
7235#ifdef __cplusplus
7236extern "C"
7237{
7238#endif
7239/* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7241char $ac_func ();
252b5132
RH
7242/* The GNU C library defines this for functions which it implements
7243 to always fail with ENOSYS. Some functions are actually named
7244 something starting with __ and the normal name is an alias. */
7245#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7246choke me
7247#else
5464f5a1
NN
7248char (*f) () = $ac_func;
7249#endif
7250#ifdef __cplusplus
7251}
252b5132
RH
7252#endif
7253
5464f5a1
NN
7254int
7255main ()
7256{
7257return f != $ac_func;
7258 ;
7259 return 0;
7260}
7261_ACEOF
7262rm -f conftest.$ac_objext conftest$ac_exeext
7263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7264 (eval $ac_link) 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 (eval $ac_try) 2>&5
7274 ac_status=$?
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; } &&
7277 { ac_try='test -s conftest$ac_exeext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279 (eval $ac_try) 2>&5
7280 ac_status=$?
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7283 eval "$as_ac_var=yes"
7284else
7285 echo "$as_me: failed program was:" >&5
7286sed 's/^/| /' conftest.$ac_ext >&5
7287
7288eval "$as_ac_var=no"
7289fi
7290rm -f conftest.err conftest.$ac_objext \
7291 conftest$ac_exeext conftest.$ac_ext
7292fi
7293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7294echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7295if test `eval echo '${'$as_ac_var'}'` = yes; then
7296 cat >>confdefs.h <<_ACEOF
7297#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7298_ACEOF
252b5132 7299
252b5132
RH
7300fi
7301done
7302
7303 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7304set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7305echo "$as_me:$LINENO: checking for $ac_word" >&5
7306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7307if test "${ac_cv_path_GMSGFMT+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7309else
5464f5a1
NN
7310 case $GMSGFMT in
7311 [\\/]* | ?:[\\/]*)
252b5132
RH
7312 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7313 ;;
252b5132 7314 *)
5464f5a1
NN
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326done
7327done
7328
252b5132
RH
7329 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7330 ;;
7331esac
7332fi
5464f5a1
NN
7333GMSGFMT=$ac_cv_path_GMSGFMT
7334
252b5132 7335if test -n "$GMSGFMT"; then
5464f5a1
NN
7336 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7337echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7338else
5464f5a1
NN
7339 echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6
252b5132
RH
7341fi
7342
7343 # Extract the first word of "xgettext", so it can be a program name with args.
7344set dummy xgettext; ac_word=$2
5464f5a1
NN
7345echo "$as_me:$LINENO: checking for $ac_word" >&5
7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347if test "${ac_cv_path_XGETTEXT+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7349else
7350 case "$XGETTEXT" in
7351 /*)
7352 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7353 ;;
7354 *)
7355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7356 for ac_dir in $PATH; do
7357 test -z "$ac_dir" && ac_dir=.
7358 if test -f $ac_dir/$ac_word; then
7359 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7360 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7361 break
7362 fi
7363 fi
7364 done
7365 IFS="$ac_save_ifs"
7366 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7367 ;;
7368esac
7369fi
7370XGETTEXT="$ac_cv_path_XGETTEXT"
7371if test -n "$XGETTEXT"; then
5464f5a1
NN
7372 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7373echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7374else
5464f5a1
NN
7375 echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
252b5132
RH
7377fi
7378
5464f5a1
NN
7379 cat >conftest.$ac_ext <<_ACEOF
7380/* confdefs.h. */
7381_ACEOF
7382cat confdefs.h >>conftest.$ac_ext
7383cat >>conftest.$ac_ext <<_ACEOF
7384/* end confdefs.h. */
252b5132 7385
5464f5a1
NN
7386int
7387main ()
7388{
252b5132
RH
7389extern int _nl_msg_cat_cntr;
7390 return _nl_msg_cat_cntr
5464f5a1
NN
7391 ;
7392 return 0;
7393}
7394_ACEOF
7395rm -f conftest.$ac_objext conftest$ac_exeext
7396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7397 (eval $ac_link) 2>conftest.er1
7398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try='test -s conftest$ac_exeext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
252b5132
RH
7416 CATOBJEXT=.gmo
7417 DATADIRNAME=share
7418else
5464f5a1
NN
7419 echo "$as_me: failed program was:" >&5
7420sed 's/^/| /' conftest.$ac_ext >&5
7421
7422CATOBJEXT=.mo
252b5132
RH
7423 DATADIRNAME=lib
7424fi
5464f5a1
NN
7425rm -f conftest.err conftest.$ac_objext \
7426 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7427 INSTOBJEXT=.mo
7428 fi
7429 fi
5464f5a1 7430
b3baf5d0 7431fi
252b5132 7432
6be7c12c 7433
5464f5a1
NN
7434
7435
252b5132
RH
7436 if test "$CATOBJEXT" = "NONE"; then
7437 nls_cv_use_gnu_gettext=yes
7438 fi
7439 fi
7440
7441 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7442 INTLOBJS="\$(GETTOBJS)"
7443 # Extract the first word of "msgfmt", so it can be a program name with args.
7444set dummy msgfmt; ac_word=$2
5464f5a1
NN
7445echo "$as_me:$LINENO: checking for $ac_word" >&5
7446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7447if test "${ac_cv_path_MSGFMT+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7449else
7450 case "$MSGFMT" in
7451 /*)
7452 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7453 ;;
7454 *)
7455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7456 for ac_dir in $PATH; do
7457 test -z "$ac_dir" && ac_dir=.
7458 if test -f $ac_dir/$ac_word; then
7459 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7460 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7461 break
7462 fi
7463 fi
7464 done
7465 IFS="$ac_save_ifs"
7466 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7467 ;;
7468esac
7469fi
7470MSGFMT="$ac_cv_path_MSGFMT"
7471if test -n "$MSGFMT"; then
5464f5a1
NN
7472 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7473echo "${ECHO_T}$MSGFMT" >&6
252b5132 7474else
5464f5a1
NN
7475 echo "$as_me:$LINENO: result: no" >&5
7476echo "${ECHO_T}no" >&6
252b5132
RH
7477fi
7478
7479 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7480set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7481echo "$as_me:$LINENO: checking for $ac_word" >&5
7482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7483if test "${ac_cv_path_GMSGFMT+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7485else
5464f5a1
NN
7486 case $GMSGFMT in
7487 [\\/]* | ?:[\\/]*)
252b5132
RH
7488 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7489 ;;
252b5132 7490 *)
5464f5a1
NN
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502done
7503done
7504
252b5132
RH
7505 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7506 ;;
7507esac
7508fi
5464f5a1
NN
7509GMSGFMT=$ac_cv_path_GMSGFMT
7510
252b5132 7511if test -n "$GMSGFMT"; then
5464f5a1
NN
7512 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7513echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7514else
5464f5a1
NN
7515 echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6
252b5132
RH
7517fi
7518
7519 # Extract the first word of "xgettext", so it can be a program name with args.
7520set dummy xgettext; ac_word=$2
5464f5a1
NN
7521echo "$as_me:$LINENO: checking for $ac_word" >&5
7522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7523if test "${ac_cv_path_XGETTEXT+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7525else
7526 case "$XGETTEXT" in
7527 /*)
7528 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7529 ;;
7530 *)
7531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7532 for ac_dir in $PATH; do
7533 test -z "$ac_dir" && ac_dir=.
7534 if test -f $ac_dir/$ac_word; then
7535 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7536 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7537 break
7538 fi
7539 fi
7540 done
7541 IFS="$ac_save_ifs"
7542 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7543 ;;
7544esac
7545fi
7546XGETTEXT="$ac_cv_path_XGETTEXT"
7547if test -n "$XGETTEXT"; then
5464f5a1
NN
7548 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7549echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7550else
5464f5a1
NN
7551 echo "$as_me:$LINENO: result: no" >&5
7552echo "${ECHO_T}no" >&6
252b5132
RH
7553fi
7554
5464f5a1 7555
252b5132
RH
7556 USE_INCLUDED_LIBINTL=yes
7557 CATOBJEXT=.gmo
7558 INSTOBJEXT=.mo
7559 DATADIRNAME=share
7560 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7561 INTLLIBS=$INTLDEPS
7562 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7563 nls_cv_header_intl=libintl.h
7564 nls_cv_header_libgt=libgettext.h
7565 fi
7566
7567 if test "$XGETTEXT" != ":"; then
7568 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7569 : ;
7570 else
5464f5a1
NN
7571 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7572echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
7573 XGETTEXT=":"
7574 fi
7575 fi
7576
7577 # We need to process the po/ directory.
7578 POSUB=po
7579 else
7580 DATADIRNAME=share
7581 nls_cv_header_intl=libintl.h
7582 nls_cv_header_libgt=libgettext.h
7583 fi
7584
7585 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7586 # because some of the sources are only built for this goal.
7587 if test "$PACKAGE" = gettext; then
7588 USE_NLS=yes
7589 USE_INCLUDED_LIBINTL=yes
7590 fi
7591
7592 for lang in $ALL_LINGUAS; do
7593 GMOFILES="$GMOFILES $lang.gmo"
7594 POFILES="$POFILES $lang.po"
7595 done
7596
5464f5a1
NN
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
6be7c12c 7609
252b5132
RH
7610 if test "x$CATOBJEXT" != "x"; then
7611 if test "x$ALL_LINGUAS" = "x"; then
7612 LINGUAS=
7613 else
5464f5a1
NN
7614 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7615echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
7616 NEW_LINGUAS=
7617 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7618 case "$ALL_LINGUAS" in
7619 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7620 esac
7621 done
7622 LINGUAS=$NEW_LINGUAS
5464f5a1
NN
7623 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7624echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
7625 fi
7626
7627 if test -n "$LINGUAS"; then
7628 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7629 fi
7630 fi
7631
7632 if test $ac_cv_header_locale_h = yes; then
7633 INCLUDE_LOCALE_H="#include <locale.h>"
7634 else
7635 INCLUDE_LOCALE_H="\
7636/* The system does not provide the header <locale.h>. Take care yourself. */"
7637 fi
5464f5a1 7638
252b5132
RH
7639
7640 if test -f $srcdir/po2tbl.sed.in; then
7641 if test "$CATOBJEXT" = ".cat"; then
5464f5a1
NN
7642 if test "${ac_cv_header_linux_version_h+set}" = set; then
7643 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7644echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7645if test "${ac_cv_header_linux_version_h+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7647fi
7648echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7649echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7650else
7651 # Is the header compilable?
7652echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7653echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7654cat >conftest.$ac_ext <<_ACEOF
7655/* confdefs.h. */
7656_ACEOF
7657cat confdefs.h >>conftest.$ac_ext
7658cat >>conftest.$ac_ext <<_ACEOF
7659/* end confdefs.h. */
7660$ac_includes_default
252b5132 7661#include <linux/version.h>
5464f5a1
NN
7662_ACEOF
7663rm -f conftest.$ac_objext
7664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7665 (eval $ac_compile) 2>conftest.er1
7666 ac_status=$?
7667 grep -v '^ *+' conftest.er1 >conftest.err
7668 rm -f conftest.er1
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } &&
7672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 (eval $ac_try) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; } &&
7678 { ac_try='test -s conftest.$ac_objext'
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 (eval $ac_try) 2>&5
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; }; then
7684 ac_header_compiler=yes
7685else
7686 echo "$as_me: failed program was:" >&5
7687sed 's/^/| /' conftest.$ac_ext >&5
7688
7689ac_header_compiler=no
7690fi
7691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7692echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7693echo "${ECHO_T}$ac_header_compiler" >&6
7694
7695# Is the header present?
7696echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7697echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7698cat >conftest.$ac_ext <<_ACEOF
7699/* confdefs.h. */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h. */
7704#include <linux/version.h>
7705_ACEOF
7706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7708 ac_status=$?
7709 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } >/dev/null; then
7714 if test -s conftest.err; then
7715 ac_cpp_err=$ac_c_preproc_warn_flag
7716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7717 else
7718 ac_cpp_err=
7719 fi
252b5132 7720else
5464f5a1 7721 ac_cpp_err=yes
252b5132 7722fi
5464f5a1
NN
7723if test -z "$ac_cpp_err"; then
7724 ac_header_preproc=yes
7725else
7726 echo "$as_me: failed program was:" >&5
7727sed 's/^/| /' conftest.$ac_ext >&5
7728
7729 ac_header_preproc=no
7730fi
7731rm -f conftest.err conftest.$ac_ext
7732echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7733echo "${ECHO_T}$ac_header_preproc" >&6
7734
7735# So? What about this header?
7736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7737 yes:no: )
7738 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7739echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7740 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7741echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7742 ac_header_preproc=yes
7743 ;;
7744 no:yes:* )
7745 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7746echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7747 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7748echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
7749 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7750echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7751 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
7752echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7753 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7754echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
7755 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
7756echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
7757 (
7758 cat <<\_ASBOX
7759## ------------------------------------------ ##
7760## Report this to the AC_PACKAGE_NAME lists. ##
7761## ------------------------------------------ ##
7762_ASBOX
7763 ) |
7764 sed "s/^/$as_me: WARNING: /" >&2
7765 ;;
7766esac
7767echo "$as_me:$LINENO: checking for linux/version.h" >&5
7768echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7769if test "${ac_cv_header_linux_version_h+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771else
7772 ac_cv_header_linux_version_h=$ac_header_preproc
7773fi
7774echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7775echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7776
252b5132 7777fi
5464f5a1 7778if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
7779 msgformat=linux
7780else
5464f5a1 7781 msgformat=xopen
252b5132
RH
7782fi
7783
6be7c12c 7784
5464f5a1 7785
252b5132
RH
7786 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
7787 fi
7788 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7789 $srcdir/po2tbl.sed.in > po2tbl.sed
7790 fi
7791
7792 if test "$PACKAGE" = "gettext"; then
7793 GT_NO="#NO#"
7794 GT_YES=
7795 else
7796 GT_NO=
7797 GT_YES="#YES#"
7798 fi
5464f5a1
NN
7799
7800
252b5132
RH
7801
7802 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5464f5a1 7803
252b5132
RH
7804
7805 l=
5464f5a1 7806
252b5132 7807
3c3bdf30 7808 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
7809 test -d po || mkdir po
7810 if test "x$srcdir" != "x."; then
7811 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7812 posrcprefix="$srcdir/"
7813 else
7814 posrcprefix="../$srcdir/"
7815 fi
7816 else
7817 posrcprefix="../"
7818 fi
7819 rm -f po/POTFILES
7820 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7821 < $srcdir/po/POTFILES.in > po/POTFILES
7822 fi
5464f5a1 7823
252b5132
RH
7824
7825# Permit host specific settings.
7826. ${srcdir}/configure.host
7827
6be7c12c 7828
252b5132
RH
7829# Find a good install program. We prefer a C program (faster),
7830# so one script is as good as another. But avoid the broken or
7831# incompatible versions:
7832# SysV /etc/install, /usr/sbin/install
7833# SunOS /usr/etc/install
7834# IRIX /sbin/install
7835# AIX /bin/install
5464f5a1 7836# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
7837# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7838# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7839# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 7840# OS/2's system install, which has a completely different semantic
252b5132 7841# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
7842echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7843echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 7844if test -z "$INSTALL"; then
5464f5a1
NN
7845if test "${ac_cv_path_install+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7847else
5464f5a1
NN
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 # Account for people who put trailing slashes in PATH elements.
7854case $as_dir/ in
7855 ./ | .// | /cC/* | \
7856 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7857 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7858 /usr/ucb/* ) ;;
7859 *)
7860 # OSF1 and SCO ODT 3.0 have their own names for install.
7861 # Don't use installbsd from OSF since it installs stuff as root
7862 # by default.
7863 for ac_prog in ginstall scoinst install; do
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 7866 if test $ac_prog = install &&
5464f5a1 7867 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
7868 # AIX install. It has an incompatible calling convention.
7869 :
5464f5a1
NN
7870 elif test $ac_prog = install &&
7871 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7872 # program-specific install script used by HP pwplus--don't use.
7873 :
252b5132 7874 else
5464f5a1
NN
7875 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7876 break 3
252b5132
RH
7877 fi
7878 fi
7879 done
5464f5a1
NN
7880 done
7881 ;;
7882esac
7883done
7884
252b5132
RH
7885
7886fi
7887 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 7888 INSTALL=$ac_cv_path_install
252b5132
RH
7889 else
7890 # As a last resort, use the slow shell script. We don't cache a
7891 # path for INSTALL within a source directory, because that will
7892 # break other packages using the cache if that directory is
7893 # removed, or if the path is relative.
5464f5a1 7894 INSTALL=$ac_install_sh
252b5132
RH
7895 fi
7896fi
5464f5a1
NN
7897echo "$as_me:$LINENO: result: $INSTALL" >&5
7898echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
7899
7900# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7901# It thinks the first close brace ends the variable substitution.
7902test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7903
5464f5a1 7904test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
7905
7906test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7907
6be7c12c 7908
252b5132 7909BFD_HOST_64BIT_LONG=0
ec317fb1 7910BFD_HOST_LONG_LONG=0
252b5132
RH
7911BFD_HOST_64_BIT_DEFINED=0
7912BFD_HOST_64_BIT=
7913BFD_HOST_U_64_BIT=
252b5132 7914
5464f5a1
NN
7915echo "$as_me:$LINENO: checking for long long" >&5
7916echo $ECHO_N "checking for long long... $ECHO_C" >&6
7917if test "${bfd_cv_has_long_long+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 7919else
5464f5a1
NN
7920 cat >conftest.$ac_ext <<_ACEOF
7921/* confdefs.h. */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
7925/* end confdefs.h. */
ec317fb1 7926
5464f5a1
NN
7927int
7928main ()
7929{
ec317fb1 7930unsigned long long ll = 18446744073709551615ULL;
5464f5a1
NN
7931 ;
7932 return 0;
7933}
7934_ACEOF
7935rm -f conftest.$ac_objext
7936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937 (eval $ac_compile) 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } &&
7944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946 (eval $ac_try) 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; } &&
7950 { ac_try='test -s conftest.$ac_objext'
7951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952 (eval $ac_try) 2>&5
7953 ac_status=$?
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; }; then
ec317fb1
ILT
7956 bfd_cv_has_long_long=yes
7957else
5464f5a1
NN
7958 echo "$as_me: failed program was:" >&5
7959sed 's/^/| /' conftest.$ac_ext >&5
7960
7961bfd_cv_has_long_long=no
ec317fb1 7962fi
5464f5a1 7963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ec317fb1
ILT
7964fi
7965
5464f5a1
NN
7966echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
7967echo "${ECHO_T}$bfd_cv_has_long_long" >&6
ec317fb1
ILT
7968if test $bfd_cv_has_long_long = yes; then
7969 BFD_HOST_LONG_LONG=1
5464f5a1
NN
7970 echo "$as_me:$LINENO: checking size of long long" >&5
7971echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7972if test "${ac_cv_sizeof_long_long+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
7974else
7975 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
7976 cat >conftest.$ac_ext <<_ACEOF
7977/* confdefs.h. */
7978_ACEOF
7979cat confdefs.h >>conftest.$ac_ext
7980cat >>conftest.$ac_ext <<_ACEOF
7981/* end confdefs.h. */
6726e1ea
L
7982#include "confdefs.h"
7983#include <sys/types.h>
7984
7985
5464f5a1
NN
7986int
7987main ()
7988{
6726e1ea 7989switch (0) case 0: case (sizeof (long long) == $ac_size):;
5464f5a1
NN
7990 ;
7991 return 0;
7992}
7993_ACEOF
7994rm -f conftest.$ac_objext
7995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7996 (eval $ac_compile) 2>conftest.er1
7997 ac_status=$?
7998 grep -v '^ *+' conftest.er1 >conftest.err
7999 rm -f conftest.er1
8000 cat conftest.err >&5
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } &&
8003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 (eval $ac_try) 2>&5
8006 ac_status=$?
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; } &&
8009 { ac_try='test -s conftest.$ac_objext'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 (eval $ac_try) 2>&5
8012 ac_status=$?
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
6726e1ea
L
8015 ac_cv_sizeof_long_long=$ac_size
8016else
5464f5a1
NN
8017 echo "$as_me: failed program was:" >&5
8018sed 's/^/| /' conftest.$ac_ext >&5
8019
6726e1ea 8020fi
5464f5a1 8021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8022 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8023done
8024
8025fi
8026
8027if test x$ac_cv_sizeof_long_long = x ; then
5464f5a1
NN
8028 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8029echo "$as_me: error: cannot determine a size for long long" >&2;}
8030 { (exit 1); exit 1; }; }
6726e1ea 8031fi
5464f5a1
NN
8032echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8033echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8034
8035cat >>confdefs.h <<_ACEOF
6726e1ea 8036#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 8037_ACEOF
6726e1ea
L
8038
8039
8040fi
8041
5464f5a1
NN
8042echo "$as_me:$LINENO: checking size of long" >&5
8043echo $ECHO_N "checking size of long... $ECHO_C" >&6
8044if test "${ac_cv_sizeof_long+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8046else
8047 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8048 cat >conftest.$ac_ext <<_ACEOF
8049/* confdefs.h. */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h. */
6726e1ea
L
8054#include "confdefs.h"
8055#include <sys/types.h>
8056
8057
5464f5a1
NN
8058int
8059main ()
8060{
6726e1ea 8061switch (0) case 0: case (sizeof (long) == $ac_size):;
5464f5a1
NN
8062 ;
8063 return 0;
8064}
8065_ACEOF
8066rm -f conftest.$ac_objext
8067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068 (eval $ac_compile) 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } &&
8075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077 (eval $ac_try) 2>&5
8078 ac_status=$?
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); }; } &&
8081 { ac_try='test -s conftest.$ac_objext'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 (eval $ac_try) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
6726e1ea
L
8087 ac_cv_sizeof_long=$ac_size
8088else
5464f5a1
NN
8089 echo "$as_me: failed program was:" >&5
8090sed 's/^/| /' conftest.$ac_ext >&5
8091
6726e1ea 8092fi
5464f5a1 8093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8094 if test x$ac_cv_sizeof_long != x ; then break; fi
8095done
8096
8097fi
8098
8099if test x$ac_cv_sizeof_long = x ; then
5464f5a1
NN
8100 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8101echo "$as_me: error: cannot determine a size for long" >&2;}
8102 { (exit 1); exit 1; }; }
6726e1ea 8103fi
5464f5a1
NN
8104echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8105echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8106
8107cat >>confdefs.h <<_ACEOF
6726e1ea 8108#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 8109_ACEOF
6726e1ea
L
8110
8111
8112if test "x${ac_cv_sizeof_long}" = "x8"; then
8113 host64=true
ccba357f
AM
8114 BFD_HOST_64BIT_LONG=1
8115 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8116 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
6726e1ea 8117elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
ccba357f
AM
8118 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8119 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
6726e1ea
L
8120fi
8121
ccba357f 8122if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
6726e1ea 8123 BFD_HOST_64_BIT_DEFINED=1
ccba357f
AM
8124 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8125 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
ec317fb1
ILT
8126fi
8127
8128
8129
6be7c12c
AO
8130
8131
8132
8133
252b5132
RH
8134# Put a plausible default for CC_FOR_BUILD in Makefile.
8135if test -z "$CC_FOR_BUILD"; then
8136 if test "x$cross_compiling" = "xno"; then
8137 CC_FOR_BUILD='$(CC)'
8138 else
8139 CC_FOR_BUILD=gcc
8140 fi
8141fi
8142
8143# Also set EXEEXT_FOR_BUILD.
8144if test "x$cross_compiling" = "xno"; then
8145 EXEEXT_FOR_BUILD='$(EXEEXT)'
8146else
5464f5a1
NN
8147 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8148echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8149if test "${bfd_cv_build_exeext+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8151else
aab08431
ILT
8152 rm -f conftest*
8153 echo 'int main () { return 0; }' > conftest.c
8154 bfd_cv_build_exeext=
8155 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8156 for file in conftest.*; do
8157 case $file in
8158 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8159 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8160 esac
8161 done
8162 rm -f conftest*
8163 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 8164fi
5464f5a1
NN
8165echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8166echo "${ECHO_T}$bfd_cv_build_exeext" >&6
252b5132
RH
8167 EXEEXT_FOR_BUILD=""
8168 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8169fi
8170
6be7c12c 8171
5464f5a1
NN
8172
8173
8174
8175
8176
8177
8178for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
252b5132 8179do
5464f5a1
NN
8180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8181if eval "test \"\${$as_ac_Header+set}\" = set"; then
8182 echo "$as_me:$LINENO: checking for $ac_header" >&5
8183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8184if eval "test \"\${$as_ac_Header+set}\" = set"; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186fi
8187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8189else
8190 # Is the header compilable?
8191echo "$as_me:$LINENO: checking $ac_header usability" >&5
8192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8193cat >conftest.$ac_ext <<_ACEOF
8194/* confdefs.h. */
8195_ACEOF
8196cat confdefs.h >>conftest.$ac_ext
8197cat >>conftest.$ac_ext <<_ACEOF
8198/* end confdefs.h. */
8199$ac_includes_default
8200#include <$ac_header>
8201_ACEOF
8202rm -f conftest.$ac_objext
8203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204 (eval $ac_compile) 2>conftest.er1
8205 ac_status=$?
8206 grep -v '^ *+' conftest.er1 >conftest.err
8207 rm -f conftest.er1
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest.$ac_objext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_header_compiler=yes
8224else
8225 echo "$as_me: failed program was:" >&5
8226sed 's/^/| /' conftest.$ac_ext >&5
8227
8228ac_header_compiler=no
8229fi
8230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8231echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8232echo "${ECHO_T}$ac_header_compiler" >&6
8233
8234# Is the header present?
8235echo "$as_me:$LINENO: checking $ac_header presence" >&5
8236echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8237cat >conftest.$ac_ext <<_ACEOF
8238/* confdefs.h. */
8239_ACEOF
8240cat confdefs.h >>conftest.$ac_ext
8241cat >>conftest.$ac_ext <<_ACEOF
8242/* end confdefs.h. */
8243#include <$ac_header>
8244_ACEOF
8245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8247 ac_status=$?
8248 grep -v '^ *+' conftest.er1 >conftest.err
8249 rm -f conftest.er1
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } >/dev/null; then
8253 if test -s conftest.err; then
8254 ac_cpp_err=$ac_c_preproc_warn_flag
8255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8256 else
8257 ac_cpp_err=
8258 fi
252b5132 8259else
5464f5a1 8260 ac_cpp_err=yes
252b5132 8261fi
5464f5a1
NN
8262if test -z "$ac_cpp_err"; then
8263 ac_header_preproc=yes
8264else
8265 echo "$as_me: failed program was:" >&5
8266sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 ac_header_preproc=no
252b5132 8269fi
5464f5a1
NN
8270rm -f conftest.err conftest.$ac_ext
8271echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8272echo "${ECHO_T}$ac_header_preproc" >&6
8273
8274# So? What about this header?
8275case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8276 yes:no: )
8277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8278echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8280echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8281 ac_header_preproc=yes
8282 ;;
8283 no:yes:* )
8284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8285echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8287echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8289echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8291echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8293echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8295echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8296 (
8297 cat <<\_ASBOX
8298## ------------------------------------------ ##
8299## Report this to the AC_PACKAGE_NAME lists. ##
8300## ------------------------------------------ ##
8301_ASBOX
8302 ) |
8303 sed "s/^/$as_me: WARNING: /" >&2
8304 ;;
8305esac
8306echo "$as_me:$LINENO: checking for $ac_header" >&5
8307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8308if eval "test \"\${$as_ac_Header+set}\" = set"; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8310else
5464f5a1
NN
8311 eval "$as_ac_Header=\$ac_header_preproc"
8312fi
8313echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8314echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8315
252b5132 8316fi
5464f5a1
NN
8317if test `eval echo '${'$as_ac_Header'}'` = yes; then
8318 cat >>confdefs.h <<_ACEOF
8319#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8320_ACEOF
8321
8322fi
8323
252b5132
RH
8324done
8325
5464f5a1
NN
8326
8327
8328
8329for ac_header in fcntl.h sys/file.h sys/time.h
252b5132 8330do
5464f5a1
NN
8331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8332if eval "test \"\${$as_ac_Header+set}\" = set"; then
8333 echo "$as_me:$LINENO: checking for $ac_header" >&5
8334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8335if eval "test \"\${$as_ac_Header+set}\" = set"; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8337fi
8338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8340else
8341 # Is the header compilable?
8342echo "$as_me:$LINENO: checking $ac_header usability" >&5
8343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8344cat >conftest.$ac_ext <<_ACEOF
8345/* confdefs.h. */
8346_ACEOF
8347cat confdefs.h >>conftest.$ac_ext
8348cat >>conftest.$ac_ext <<_ACEOF
8349/* end confdefs.h. */
8350$ac_includes_default
8351#include <$ac_header>
8352_ACEOF
8353rm -f conftest.$ac_objext
8354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8355 (eval $ac_compile) 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 (eval $ac_try) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; } &&
8368 { ac_try='test -s conftest.$ac_objext'
8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 (eval $ac_try) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }; }; then
8374 ac_header_compiler=yes
8375else
8376 echo "$as_me: failed program was:" >&5
8377sed 's/^/| /' conftest.$ac_ext >&5
8378
8379ac_header_compiler=no
8380fi
8381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8382echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8383echo "${ECHO_T}$ac_header_compiler" >&6
8384
8385# Is the header present?
8386echo "$as_me:$LINENO: checking $ac_header presence" >&5
8387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8388cat >conftest.$ac_ext <<_ACEOF
8389/* confdefs.h. */
8390_ACEOF
8391cat confdefs.h >>conftest.$ac_ext
8392cat >>conftest.$ac_ext <<_ACEOF
8393/* end confdefs.h. */
8394#include <$ac_header>
8395_ACEOF
8396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } >/dev/null; then
8404 if test -s conftest.err; then
8405 ac_cpp_err=$ac_c_preproc_warn_flag
8406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8407 else
8408 ac_cpp_err=
8409 fi
252b5132 8410else
5464f5a1 8411 ac_cpp_err=yes
252b5132 8412fi
5464f5a1
NN
8413if test -z "$ac_cpp_err"; then
8414 ac_header_preproc=yes
8415else
8416 echo "$as_me: failed program was:" >&5
8417sed 's/^/| /' conftest.$ac_ext >&5
8418
8419 ac_header_preproc=no
252b5132 8420fi
5464f5a1
NN
8421rm -f conftest.err conftest.$ac_ext
8422echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8423echo "${ECHO_T}$ac_header_preproc" >&6
8424
8425# So? What about this header?
8426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8427 yes:no: )
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8432 ac_header_preproc=yes
8433 ;;
8434 no:yes:* )
8435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8442echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8447 (
8448 cat <<\_ASBOX
8449## ------------------------------------------ ##
8450## Report this to the AC_PACKAGE_NAME lists. ##
8451## ------------------------------------------ ##
8452_ASBOX
8453 ) |
8454 sed "s/^/$as_me: WARNING: /" >&2
8455 ;;
8456esac
8457echo "$as_me:$LINENO: checking for $ac_header" >&5
8458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8459if eval "test \"\${$as_ac_Header+set}\" = set"; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8461else
5464f5a1
NN
8462 eval "$as_ac_Header=\$ac_header_preproc"
8463fi
8464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8466
8467fi
8468if test `eval echo '${'$as_ac_Header'}'` = yes; then
8469 cat >>confdefs.h <<_ACEOF
8470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8471_ACEOF
8472
252b5132 8473fi
5464f5a1 8474
252b5132
RH
8475done
8476
5464f5a1
NN
8477echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8478echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8479if test "${ac_cv_header_time+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8481else
8482 cat >conftest.$ac_ext <<_ACEOF
8483/* confdefs.h. */
8484_ACEOF
8485cat confdefs.h >>conftest.$ac_ext
8486cat >>conftest.$ac_ext <<_ACEOF
8487/* end confdefs.h. */
252b5132
RH
8488#include <sys/types.h>
8489#include <sys/time.h>
8490#include <time.h>
5464f5a1
NN
8491
8492int
8493main ()
8494{
8495if ((struct tm *) 0)
8496return 0;
8497 ;
8498 return 0;
8499}
8500_ACEOF
8501rm -f conftest.$ac_objext
8502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8503 (eval $ac_compile) 2>conftest.er1
8504 ac_status=$?
8505 grep -v '^ *+' conftest.er1 >conftest.err
8506 rm -f conftest.er1
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } &&
8510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512 (eval $ac_try) 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; } &&
8516 { ac_try='test -s conftest.$ac_objext'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; }; then
252b5132
RH
8522 ac_cv_header_time=yes
8523else
5464f5a1
NN
8524 echo "$as_me: failed program was:" >&5
8525sed 's/^/| /' conftest.$ac_ext >&5
8526
8527ac_cv_header_time=no
252b5132 8528fi
5464f5a1 8529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8530fi
5464f5a1
NN
8531echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8532echo "${ECHO_T}$ac_cv_header_time" >&6
6be7c12c 8533if test $ac_cv_header_time = yes; then
5464f5a1
NN
8534
8535cat >>confdefs.h <<\_ACEOF
252b5132 8536#define TIME_WITH_SYS_TIME 1
5464f5a1 8537_ACEOF
252b5132
RH
8538
8539fi
8540
5464f5a1
NN
8541
8542
8543
8544
8545
252b5132 8546ac_header_dirent=no
5464f5a1
NN
8547for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8548 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8549echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8550echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8551if eval "test \"\${$as_ac_Header+set}\" = set"; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553else
8554 cat >conftest.$ac_ext <<_ACEOF
8555/* confdefs.h. */
8556_ACEOF
8557cat confdefs.h >>conftest.$ac_ext
8558cat >>conftest.$ac_ext <<_ACEOF
8559/* end confdefs.h. */
252b5132
RH
8560#include <sys/types.h>
8561#include <$ac_hdr>
5464f5a1
NN
8562
8563int
8564main ()
8565{
8566if ((DIR *) 0)
8567return 0;
8568 ;
8569 return 0;
8570}
8571_ACEOF
8572rm -f conftest.$ac_objext
8573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583 (eval $ac_try) 2>&5
8584 ac_status=$?
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; } &&
8587 { ac_try='test -s conftest.$ac_objext'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; }; then
8593 eval "$as_ac_Header=yes"
8594else
8595 echo "$as_me: failed program was:" >&5
8596sed 's/^/| /' conftest.$ac_ext >&5
8597
8598eval "$as_ac_Header=no"
8599fi
8600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8601fi
8602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8604if test `eval echo '${'$as_ac_Header'}'` = yes; then
8605 cat >>confdefs.h <<_ACEOF
8606#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8607_ACEOF
8608
8609ac_header_dirent=$ac_hdr; break
252b5132 8610fi
5464f5a1 8611
252b5132
RH
8612done
8613# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8614if test $ac_header_dirent = dirent.h; then
5464f5a1
NN
8615 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8616echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8617if test "${ac_cv_search_opendir+set}" = set; then
8618 echo $ECHO_N "(cached) $ECHO_C" >&6
8619else
8620 ac_func_search_save_LIBS=$LIBS
8621ac_cv_search_opendir=no
8622cat >conftest.$ac_ext <<_ACEOF
8623/* confdefs.h. */
8624_ACEOF
8625cat confdefs.h >>conftest.$ac_ext
8626cat >>conftest.$ac_ext <<_ACEOF
8627/* end confdefs.h. */
8628
252b5132 8629/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
8630#ifdef __cplusplus
8631extern "C"
8632#endif
252b5132 8633/* We use char because int might match the return type of a gcc2
5464f5a1
NN
8634 builtin and then its argument prototype would still apply. */
8635char opendir ();
8636int
8637main ()
8638{
8639opendir ();
8640 ;
8641 return 0;
8642}
8643_ACEOF
8644rm -f conftest.$ac_objext conftest$ac_exeext
8645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_search_opendir="none required"
8666else
8667 echo "$as_me: failed program was:" >&5
8668sed 's/^/| /' conftest.$ac_ext >&5
8669
8670fi
8671rm -f conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8673if test "$ac_cv_search_opendir" = no; then
8674 for ac_lib in dir; do
8675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8676 cat >conftest.$ac_ext <<_ACEOF
8677/* confdefs.h. */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
8681/* end confdefs.h. */
6be7c12c 8682
5464f5a1
NN
8683/* Override any gcc2 internal prototype to avoid an error. */
8684#ifdef __cplusplus
8685extern "C"
8686#endif
8687/* We use char because int might match the return type of a gcc2
8688 builtin and then its argument prototype would still apply. */
8689char opendir ();
8690int
8691main ()
8692{
8693opendir ();
8694 ;
8695 return 0;
8696}
8697_ACEOF
8698rm -f conftest.$ac_objext conftest$ac_exeext
8699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8700 (eval $ac_link) 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 (eval $ac_try) 2>&5
8710 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; } &&
8713 { ac_try='test -s conftest$ac_exeext'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 (eval $ac_try) 2>&5
8716 ac_status=$?
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8719 ac_cv_search_opendir="-l$ac_lib"
8720break
8721else
8722 echo "$as_me: failed program was:" >&5
8723sed 's/^/| /' conftest.$ac_ext >&5
8724
8725fi
8726rm -f conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 done
6be7c12c 8729fi
5464f5a1 8730LIBS=$ac_func_search_save_LIBS
6be7c12c 8731fi
5464f5a1
NN
8732echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8733echo "${ECHO_T}$ac_cv_search_opendir" >&6
8734if test "$ac_cv_search_opendir" != no; then
8735 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8736
252b5132
RH
8737fi
8738
8739else
5464f5a1
NN
8740 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8741echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8742if test "${ac_cv_search_opendir+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 8744else
5464f5a1
NN
8745 ac_func_search_save_LIBS=$LIBS
8746ac_cv_search_opendir=no
8747cat >conftest.$ac_ext <<_ACEOF
8748/* confdefs.h. */
8749_ACEOF
8750cat confdefs.h >>conftest.$ac_ext
8751cat >>conftest.$ac_ext <<_ACEOF
8752/* end confdefs.h. */
8753
6be7c12c 8754/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
8755#ifdef __cplusplus
8756extern "C"
8757#endif
6be7c12c 8758/* We use char because int might match the return type of a gcc2
5464f5a1
NN
8759 builtin and then its argument prototype would still apply. */
8760char opendir ();
8761int
8762main ()
8763{
8764opendir ();
8765 ;
8766 return 0;
8767}
8768_ACEOF
8769rm -f conftest.$ac_objext conftest$ac_exeext
8770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771 (eval $ac_link) 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } &&
8778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 (eval $ac_try) 2>&5
8781 ac_status=$?
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; } &&
8784 { ac_try='test -s conftest$ac_exeext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 (eval $ac_try) 2>&5
8787 ac_status=$?
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 ac_cv_search_opendir="none required"
8791else
8792 echo "$as_me: failed program was:" >&5
8793sed 's/^/| /' conftest.$ac_ext >&5
8794
8795fi
8796rm -f conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
8798if test "$ac_cv_search_opendir" = no; then
8799 for ac_lib in x; do
8800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8801 cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h. */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h. */
6be7c12c 8807
5464f5a1
NN
8808/* Override any gcc2 internal prototype to avoid an error. */
8809#ifdef __cplusplus
8810extern "C"
8811#endif
8812/* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8814char opendir ();
8815int
8816main ()
8817{
8818opendir ();
8819 ;
8820 return 0;
8821}
8822_ACEOF
8823rm -f conftest.$ac_objext conftest$ac_exeext
8824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>conftest.er1
8826 ac_status=$?
8827 grep -v '^ *+' conftest.er1 >conftest.err
8828 rm -f conftest.er1
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_search_opendir="-l$ac_lib"
8845break
8846else
8847 echo "$as_me: failed program was:" >&5
8848sed 's/^/| /' conftest.$ac_ext >&5
8849
8850fi
8851rm -f conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8853 done
6be7c12c 8854fi
5464f5a1 8855LIBS=$ac_func_search_save_LIBS
6be7c12c 8856fi
5464f5a1
NN
8857echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8858echo "${ECHO_T}$ac_cv_search_opendir" >&6
8859if test "$ac_cv_search_opendir" != no; then
8860 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8861
252b5132
RH
8862fi
8863
8864fi
8865
5464f5a1
NN
8866
8867
8868
8869
8870
8871
8872
633fd09f 8873for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 8874do
5464f5a1
NN
8875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8876echo "$as_me:$LINENO: checking for $ac_func" >&5
8877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8878if eval "test \"\${$as_ac_var+set}\" = set"; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8880else
8881 cat >conftest.$ac_ext <<_ACEOF
8882/* confdefs.h. */
8883_ACEOF
8884cat confdefs.h >>conftest.$ac_ext
8885cat >>conftest.$ac_ext <<_ACEOF
8886/* end confdefs.h. */
8887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8889#define $ac_func innocuous_$ac_func
8890
252b5132 8891/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
8892 which can conflict with char $ac_func (); below.
8893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8894 <limits.h> exists even on freestanding compilers. */
8895
8896#ifdef __STDC__
8897# include <limits.h>
8898#else
8899# include <assert.h>
8900#endif
6be7c12c 8901
5464f5a1 8902#undef $ac_func
252b5132 8903
5464f5a1
NN
8904/* Override any gcc2 internal prototype to avoid an error. */
8905#ifdef __cplusplus
8906extern "C"
8907{
8908#endif
8909/* We use char because int might match the return type of a gcc2
8910 builtin and then its argument prototype would still apply. */
8911char $ac_func ();
252b5132
RH
8912/* The GNU C library defines this for functions which it implements
8913 to always fail with ENOSYS. Some functions are actually named
8914 something starting with __ and the normal name is an alias. */
8915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8916choke me
8917#else
5464f5a1
NN
8918char (*f) () = $ac_func;
8919#endif
8920#ifdef __cplusplus
8921}
252b5132
RH
8922#endif
8923
5464f5a1
NN
8924int
8925main ()
8926{
8927return f != $ac_func;
8928 ;
8929 return 0;
8930}
8931_ACEOF
8932rm -f conftest.$ac_objext conftest$ac_exeext
8933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934 (eval $ac_link) 2>conftest.er1
8935 ac_status=$?
8936 grep -v '^ *+' conftest.er1 >conftest.err
8937 rm -f conftest.er1
8938 cat conftest.err >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } &&
8941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest$ac_exeext'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 (eval $ac_try) 2>&5
8950 ac_status=$?
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8953 eval "$as_ac_var=yes"
8954else
8955 echo "$as_me: failed program was:" >&5
8956sed 's/^/| /' conftest.$ac_ext >&5
8957
8958eval "$as_ac_var=no"
8959fi
8960rm -f conftest.err conftest.$ac_objext \
8961 conftest$ac_exeext conftest.$ac_ext
8962fi
8963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8965if test `eval echo '${'$as_ac_var'}'` = yes; then
8966 cat >>confdefs.h <<_ACEOF
8967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8968_ACEOF
252b5132 8969
252b5132
RH
8970fi
8971done
8972
5464f5a1 8973
49c97a80
ILT
8974for ac_func in strtoull
8975do
5464f5a1
NN
8976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8977echo "$as_me:$LINENO: checking for $ac_func" >&5
8978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8979if eval "test \"\${$as_ac_var+set}\" = set"; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981else
8982 cat >conftest.$ac_ext <<_ACEOF
8983/* confdefs.h. */
8984_ACEOF
8985cat confdefs.h >>conftest.$ac_ext
8986cat >>conftest.$ac_ext <<_ACEOF
8987/* end confdefs.h. */
8988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8990#define $ac_func innocuous_$ac_func
8991
49c97a80 8992/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
8993 which can conflict with char $ac_func (); below.
8994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8995 <limits.h> exists even on freestanding compilers. */
8996
8997#ifdef __STDC__
8998# include <limits.h>
8999#else
9000# include <assert.h>
9001#endif
49c97a80 9002
5464f5a1 9003#undef $ac_func
49c97a80 9004
5464f5a1
NN
9005/* Override any gcc2 internal prototype to avoid an error. */
9006#ifdef __cplusplus
9007extern "C"
9008{
9009#endif
9010/* We use char because int might match the return type of a gcc2
9011 builtin and then its argument prototype would still apply. */
9012char $ac_func ();
49c97a80
ILT
9013/* The GNU C library defines this for functions which it implements
9014 to always fail with ENOSYS. Some functions are actually named
9015 something starting with __ and the normal name is an alias. */
9016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9017choke me
9018#else
5464f5a1
NN
9019char (*f) () = $ac_func;
9020#endif
9021#ifdef __cplusplus
9022}
49c97a80
ILT
9023#endif
9024
5464f5a1
NN
9025int
9026main ()
9027{
9028return f != $ac_func;
9029 ;
9030 return 0;
9031}
9032_ACEOF
9033rm -f conftest.$ac_objext conftest$ac_exeext
9034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>conftest.er1
9036 ac_status=$?
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest$ac_exeext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 eval "$as_ac_var=yes"
9055else
9056 echo "$as_me: failed program was:" >&5
9057sed 's/^/| /' conftest.$ac_ext >&5
9058
9059eval "$as_ac_var=no"
9060fi
9061rm -f conftest.err conftest.$ac_objext \
9062 conftest$ac_exeext conftest.$ac_ext
9063fi
9064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9065echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9066if test `eval echo '${'$as_ac_var'}'` = yes; then
9067 cat >>confdefs.h <<_ACEOF
9068#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9069_ACEOF
49c97a80 9070
49c97a80
ILT
9071fi
9072done
9073
6be7c12c
AO
9074
9075
252b5132 9076case "${host}" in
855b0be7 9077*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
9078
9079cat >>confdefs.h <<\_ACEOF
252b5132 9080#define USE_BINARY_FOPEN 1
5464f5a1 9081_ACEOF
252b5132
RH
9082 ;;
9083esac
9084
5464f5a1
NN
9085echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9086echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9087if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9089else
5464f5a1
NN
9090 cat >conftest.$ac_ext <<_ACEOF
9091/* confdefs.h. */
9092_ACEOF
9093cat confdefs.h >>conftest.$ac_ext
9094cat >>conftest.$ac_ext <<_ACEOF
9095/* end confdefs.h. */
252b5132
RH
9096
9097#include <stdio.h>
9098#ifdef HAVE_STRING_H
9099#include <string.h>
9100#else
9101#ifdef HAVE_STRINGS_H
9102#include <strings.h>
9103#endif
9104#endif
9105#ifdef HAVE_STDLIB_H
9106#include <stdlib.h>
9107#endif
9108#ifdef HAVE_UNISTD_H
9109#include <unistd.h>
9110#endif
5464f5a1
NN
9111int
9112main ()
9113{
252b5132 9114char *(*pfn) = (char *(*)) strstr
5464f5a1
NN
9115 ;
9116 return 0;
9117}
9118_ACEOF
9119rm -f conftest.$ac_objext
9120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121 (eval $ac_compile) 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } &&
9128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; } &&
9134 { ac_try='test -s conftest.$ac_objext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
252b5132
RH
9140 bfd_cv_decl_needed_strstr=no
9141else
5464f5a1
NN
9142 echo "$as_me: failed program was:" >&5
9143sed 's/^/| /' conftest.$ac_ext >&5
9144
9145bfd_cv_decl_needed_strstr=yes
252b5132 9146fi
5464f5a1 9147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9148fi
9149
5464f5a1
NN
9150echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9151echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
252b5132 9152if test $bfd_cv_decl_needed_strstr = yes; then
5464f5a1
NN
9153
9154cat >>confdefs.h <<\_ACEOF
252b5132 9155#define NEED_DECLARATION_STRSTR 1
5464f5a1 9156_ACEOF
252b5132
RH
9157
9158fi
9159
5464f5a1
NN
9160echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
9161echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
9162if test "${bfd_cv_decl_needed_malloc+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9164else
5464f5a1
NN
9165 cat >conftest.$ac_ext <<_ACEOF
9166/* confdefs.h. */
9167_ACEOF
9168cat confdefs.h >>conftest.$ac_ext
9169cat >>conftest.$ac_ext <<_ACEOF
9170/* end confdefs.h. */
252b5132
RH
9171
9172#include <stdio.h>
9173#ifdef HAVE_STRING_H
9174#include <string.h>
9175#else
9176#ifdef HAVE_STRINGS_H
9177#include <strings.h>
9178#endif
9179#endif
9180#ifdef HAVE_STDLIB_H
9181#include <stdlib.h>
9182#endif
9183#ifdef HAVE_UNISTD_H
9184#include <unistd.h>
9185#endif
5464f5a1
NN
9186int
9187main ()
9188{
9189char *(*pfn) = (char *(*)) malloc
9190 ;
9191 return 0;
9192}
9193_ACEOF
9194rm -f conftest.$ac_objext
9195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196 (eval $ac_compile) 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest.$ac_objext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
252b5132
RH
9215 bfd_cv_decl_needed_malloc=no
9216else
5464f5a1
NN
9217 echo "$as_me: failed program was:" >&5
9218sed 's/^/| /' conftest.$ac_ext >&5
9219
9220bfd_cv_decl_needed_malloc=yes
252b5132 9221fi
5464f5a1 9222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9223fi
9224
5464f5a1
NN
9225echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
9226echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
252b5132 9227if test $bfd_cv_decl_needed_malloc = yes; then
5464f5a1
NN
9228
9229cat >>confdefs.h <<\_ACEOF
252b5132 9230#define NEED_DECLARATION_MALLOC 1
5464f5a1 9231_ACEOF
252b5132
RH
9232
9233fi
9234
5464f5a1
NN
9235echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
9236echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
9237if test "${bfd_cv_decl_needed_realloc+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9239else
5464f5a1
NN
9240 cat >conftest.$ac_ext <<_ACEOF
9241/* confdefs.h. */
9242_ACEOF
9243cat confdefs.h >>conftest.$ac_ext
9244cat >>conftest.$ac_ext <<_ACEOF
9245/* end confdefs.h. */
252b5132
RH
9246
9247#include <stdio.h>
9248#ifdef HAVE_STRING_H
9249#include <string.h>
9250#else
9251#ifdef HAVE_STRINGS_H
9252#include <strings.h>
9253#endif
9254#endif
9255#ifdef HAVE_STDLIB_H
9256#include <stdlib.h>
9257#endif
9258#ifdef HAVE_UNISTD_H
9259#include <unistd.h>
9260#endif
5464f5a1
NN
9261int
9262main ()
9263{
252b5132 9264char *(*pfn) = (char *(*)) realloc
5464f5a1
NN
9265 ;
9266 return 0;
9267}
9268_ACEOF
9269rm -f conftest.$ac_objext
9270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9271 (eval $ac_compile) 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } &&
9278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 (eval $ac_try) 2>&5
9281 ac_status=$?
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try='test -s conftest.$ac_objext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 (eval $ac_try) 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
252b5132
RH
9290 bfd_cv_decl_needed_realloc=no
9291else
5464f5a1
NN
9292 echo "$as_me: failed program was:" >&5
9293sed 's/^/| /' conftest.$ac_ext >&5
9294
9295bfd_cv_decl_needed_realloc=yes
252b5132 9296fi
5464f5a1 9297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9298fi
9299
5464f5a1
NN
9300echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
9301echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
252b5132 9302if test $bfd_cv_decl_needed_realloc = yes; then
5464f5a1
NN
9303
9304cat >>confdefs.h <<\_ACEOF
252b5132 9305#define NEED_DECLARATION_REALLOC 1
5464f5a1 9306_ACEOF
252b5132
RH
9307
9308fi
9309
5464f5a1
NN
9310echo "$as_me:$LINENO: checking whether free must be declared" >&5
9311echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9312if test "${bfd_cv_decl_needed_free+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9314else
5464f5a1
NN
9315 cat >conftest.$ac_ext <<_ACEOF
9316/* confdefs.h. */
9317_ACEOF
9318cat confdefs.h >>conftest.$ac_ext
9319cat >>conftest.$ac_ext <<_ACEOF
9320/* end confdefs.h. */
252b5132
RH
9321
9322#include <stdio.h>
9323#ifdef HAVE_STRING_H
9324#include <string.h>
9325#else
9326#ifdef HAVE_STRINGS_H
9327#include <strings.h>
9328#endif
9329#endif
9330#ifdef HAVE_STDLIB_H
9331#include <stdlib.h>
9332#endif
9333#ifdef HAVE_UNISTD_H
9334#include <unistd.h>
9335#endif
5464f5a1
NN
9336int
9337main ()
9338{
252b5132 9339char *(*pfn) = (char *(*)) free
5464f5a1
NN
9340 ;
9341 return 0;
9342}
9343_ACEOF
9344rm -f conftest.$ac_objext
9345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346 (eval $ac_compile) 2>conftest.er1
9347 ac_status=$?
9348 grep -v '^ *+' conftest.er1 >conftest.err
9349 rm -f conftest.er1
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 (eval $ac_try) 2>&5
9356 ac_status=$?
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; } &&
9359 { ac_try='test -s conftest.$ac_objext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
252b5132
RH
9365 bfd_cv_decl_needed_free=no
9366else
5464f5a1
NN
9367 echo "$as_me: failed program was:" >&5
9368sed 's/^/| /' conftest.$ac_ext >&5
9369
9370bfd_cv_decl_needed_free=yes
252b5132 9371fi
5464f5a1 9372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9373fi
9374
5464f5a1
NN
9375echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9376echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
252b5132 9377if test $bfd_cv_decl_needed_free = yes; then
5464f5a1
NN
9378
9379cat >>confdefs.h <<\_ACEOF
252b5132 9380#define NEED_DECLARATION_FREE 1
5464f5a1 9381_ACEOF
252b5132
RH
9382
9383fi
9384
5464f5a1
NN
9385echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9386echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9387if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9389else
5464f5a1
NN
9390 cat >conftest.$ac_ext <<_ACEOF
9391/* confdefs.h. */
9392_ACEOF
9393cat confdefs.h >>conftest.$ac_ext
9394cat >>conftest.$ac_ext <<_ACEOF
9395/* end confdefs.h. */
252b5132
RH
9396
9397#include <stdio.h>
9398#ifdef HAVE_STRING_H
9399#include <string.h>
9400#else
9401#ifdef HAVE_STRINGS_H
9402#include <strings.h>
9403#endif
9404#endif
9405#ifdef HAVE_STDLIB_H
9406#include <stdlib.h>
9407#endif
9408#ifdef HAVE_UNISTD_H
9409#include <unistd.h>
9410#endif
5464f5a1
NN
9411int
9412main ()
9413{
252b5132 9414char *(*pfn) = (char *(*)) getenv
5464f5a1
NN
9415 ;
9416 return 0;
9417}
9418_ACEOF
9419rm -f conftest.$ac_objext
9420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 (eval $ac_try) 2>&5
9431 ac_status=$?
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; } &&
9434 { ac_try='test -s conftest.$ac_objext'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 (eval $ac_try) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; }; then
252b5132
RH
9440 bfd_cv_decl_needed_getenv=no
9441else
5464f5a1
NN
9442 echo "$as_me: failed program was:" >&5
9443sed 's/^/| /' conftest.$ac_ext >&5
9444
9445bfd_cv_decl_needed_getenv=yes
252b5132 9446fi
5464f5a1 9447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9448fi
9449
5464f5a1
NN
9450echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9451echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
252b5132 9452if test $bfd_cv_decl_needed_getenv = yes; then
5464f5a1
NN
9453
9454cat >>confdefs.h <<\_ACEOF
252b5132 9455#define NEED_DECLARATION_GETENV 1
5464f5a1 9456_ACEOF
252b5132
RH
9457
9458fi
9459
6be7c12c 9460
252b5132
RH
9461# If we are configured native, pick a core file support file.
9462COREFILE=
9463COREFLAG=
9464TRAD_HEADER=
9465if test "${target}" = "${host}"; then
9466 case "${host}" in
13dfd2d0 9467 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
9468 COREFILE=''
9469 ;;
252b5132
RH
9470 alpha*-*-linux-gnu*)
9471 COREFILE=trad-core.lo
9472 TRAD_HEADER='"hosts/alphalinux.h"'
9473 ;;
690cc98b
NC
9474 alpha*-*-netbsd* | alpha*-*-openbsd*)
9475 COREFILE=netbsd-core.lo
9476 ;;
252b5132 9477 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
9478 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9479 COREFILE='' ;;
61d0bc33 9480 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
9481 arm-*-riscix) COREFILE=trad-core.lo ;;
9482 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9483 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9484 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9485 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9486 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
9487 hppa*-*-netbsd* | hppa*-*-openbsd*)
9488 COREFILE=netbsd-core.lo
9489 ;;
9490
dc810e39 9491 i370-*-*)
5b93d8bb
AM
9492 COREFILE=trad-core.lo
9493 TRAD_HEADER='"hosts/i370linux.h"'
9494 ;;
9495
80c7c40a 9496 i[3-7]86-sequent-bsd*)
5b93d8bb 9497 COREFILE=trad-core.lo
252b5132
RH
9498 TRAD_HEADER='"hosts/symmetry.h"'
9499 ;;
80c7c40a
NC
9500 i[3-7]86-sequent-sysv4*) ;;
9501 i[3-7]86-sequent-sysv*)
252b5132
RH
9502 COREFILE=trad-core.lo
9503 TRAD_HEADER='"hosts/symmetry.h"'
9504 ;;
80c7c40a 9505 i[3-7]86-*-bsdi)
7e3b3466
NC
9506 COREFILE=
9507 ;;
d2bef492 9508 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
9509 COREFILE=trad-core.lo
9510 TRAD_HEADER='"hosts/i386bsd.h"'
9511 ;;
13dfd2d0 9512 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
9513 COREFILE=''
9514 TRAD_HEADER='"hosts/i386bsd.h"'
9515 ;;
4615568e 9516 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
9517 COREFILE=netbsd-core.lo
9518 ;;
80c7c40a 9519 i[3-7]86-esix-sysv3*)
252b5132
RH
9520 COREFILE=trad-core.lo
9521 TRAD_HEADER='"hosts/esix.h"'
9522 ;;
80c7c40a 9523 i[3-7]86-*-sco3.2v5*)
252b5132
RH
9524 COREFILE=sco5-core.lo
9525 ;;
80c7c40a 9526 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
9527 COREFILE=trad-core.lo
9528 TRAD_HEADER='"hosts/i386sco.h"'
9529 ;;
80c7c40a 9530 i[3-7]86-*-mach3*)
252b5132
RH
9531 COREFILE=trad-core.lo
9532 TRAD_HEADER='"hosts/i386mach3.h"'
9533 ;;
80c7c40a 9534 i[3-7]86-*-linux-gnu*)
252b5132
RH
9535 COREFILE=trad-core.lo
9536 TRAD_HEADER='"hosts/i386linux.h"'
9537 ;;
80c7c40a
NC
9538 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9539 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
9540 i860-*-mach3* | i860-*-osf1*)
9541 COREFILE=trad-core.lo
9542 TRAD_HEADER='"hosts/i860mach3.h"'
9543 ;;
252b5132
RH
9544 mips-*-netbsd* | mips*-*-openbsd*)
9545 COREFILE=netbsd-core.lo
9546 ;;
9547 mips-dec-*)
9548 COREFILE=trad-core.lo
9549 TRAD_HEADER='"hosts/decstation.h"'
9550 ;;
9551 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9552 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9553 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
9554 mips-*-sysv4*) ;;
9555 mips-*-sysv* | mips-*-riscos*)
9556 COREFILE=trad-core.lo
9557 TRAD_HEADER='"hosts/riscos.h"'
9558 ;;
9559 mips-sony-bsd*)
9560 COREFILE=trad-core.lo
9561 TRAD_HEADER='"hosts/news-mips.h"'
9562 ;;
9563 m68*-bull*-sysv*)
9564 COREFILE=trad-core.lo
9565 TRAD_HEADER='"hosts/dpx2.h"'
9566 ;;
9567 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9568 m68*-hp-bsd*)
9569 COREFILE=trad-core.lo
9570 TRAD_HEADER='"hosts/hp300bsd.h"'
9571 ;;
9572 m68*-*-linux-gnu*)
9573 COREFILE=trad-core.lo
9574 TRAD_HEADER='"hosts/m68klinux.h"'
9575 ;;
9576 m68*-motorola-sysv*)
9577 COREFILE=trad-core.lo
9578 TRAD_HEADER='"hosts/delta68.h"'
9579 ;;
9580 m68*-sony-*)
9581 COREFILE=trad-core.lo
9582 TRAD_HEADER='"hosts/news.h"'
9583 ;;
9584 m68*-*-netbsd* | m68*-*-openbsd*)
9585 COREFILE=netbsd-core.lo
9586 ;;
9587 m68*-apple-aux*)
9588 COREFILE=trad-core.lo
9589 TRAD_HEADER='"hosts/m68kaux.h"'
9590 ;;
eb1e0e80
NC
9591 m88*-*-sysv4*)
9592 ;;
9593 m88*-motorola-sysv*)
9594 COREFILE=ptrace-core.lo
9595 ;;
252b5132
RH
9596 m88*-*-mach3*)
9597 COREFILE=trad-core.lo
9598 TRAD_HEADER='"hosts/m88kmach3.h"'
9599 ;;
c6f8758f
NC
9600 m88*-*-openbsd*)
9601 COREFILE=netbsd-core.lo
9602 ;;
252b5132
RH
9603 ns32k-pc532-mach)
9604 COREFILE=trad-core.lo
9605 TRAD_HEADER='"hosts/pc532mach.h"'
9606 ;;
9607 ns32k-*-netbsd* | ns32k-*-openbsd*)
9608 COREFILE=netbsd-core.lo
9609 ;;
eb1e0e80
NC
9610 rs6000-*-lynx*)
9611 COREFILE=lynx-core.lo
9612 ;;
9613 rs6000-*-aix5.* | powerpc-*-aix5.*)
9614 COREFILE=rs6000-core.lo
9615 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9616 ;;
83954261 9617 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
9618 COREFILE=rs6000-core.lo
9619 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
9620 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9621 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
9622 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9623echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9624 cat >conftest.$ac_ext <<_ACEOF
9625/* confdefs.h. */
9626_ACEOF
9627cat confdefs.h >>conftest.$ac_ext
9628cat >>conftest.$ac_ext <<_ACEOF
9629/* end confdefs.h. */
83954261 9630#include <core.h>
5464f5a1
NN
9631int
9632main ()
9633{
83954261 9634struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
9635 ;
9636 return 0;
9637}
9638_ACEOF
9639rm -f conftest.$ac_objext
9640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9641 (eval $ac_compile) 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650 (eval $ac_try) 2>&5
9651 ac_status=$?
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); }; } &&
9654 { ac_try='test -s conftest.$ac_objext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 (eval $ac_try) 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660
9661cat >>confdefs.h <<\_ACEOF
83954261 9662#define HAVE_ST_C_IMPL 1
5464f5a1 9663_ACEOF
83954261 9664
5464f5a1
NN
9665 echo "$as_me:$LINENO: result: yes" >&5
9666echo "${ECHO_T}yes" >&6
83954261 9667else
5464f5a1
NN
9668 echo "$as_me: failed program was:" >&5
9669sed 's/^/| /' conftest.$ac_ext >&5
9670
9671echo "$as_me:$LINENO: result: no" >&5
9672echo "${ECHO_T}no" >&6
83954261 9673fi
5464f5a1 9674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 9675 ;;
252b5132
RH
9676 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9677 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
9678 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9679 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9680 powerpc-*-beos*) ;;
13dfd2d0
NC
9681 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9682 COREFILE='' ;;
252b5132 9683 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 9684 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 9685 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 9686 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 9687 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
9688 COREFILE=netbsd-core.lo
9689 ;;
9690 tahoe-*-*)
9691 COREFILE=trad-core.lo
9692 TRAD_HEADER='"hosts/tahoe.h"'
9693 ;;
de6e5e1a
NC
9694 vax-*-netbsd* | vax-*-openbsd*)
9695 COREFILE=netbsd-core.lo
9696 ;;
252b5132
RH
9697 vax-*-ultrix2*)
9698 COREFILE=trad-core.lo
9699 TRAD_HEADER='"hosts/vaxult2.h"'
9700 ;;
9701 vax-*-ultrix*)
9702 COREFILE=trad-core.lo
9703 TRAD_HEADER='"hosts/vaxult2.h"'
9704 ;;
f8fc3443
NC
9705 vax-*-linux-gnu*)
9706 COREFILE=trad-core.lo
9707 TRAD_HEADER='"hosts/vaxlinux.h"'
9708 ;;
252b5132
RH
9709 vax-*-*)
9710 COREFILE=trad-core.lo
9711 TRAD_HEADER='"hosts/vaxbsd.h"'
9712 ;;
85cfd8d3
MK
9713 x86_64-*-netbsd* | x86_64-*-openbsd*)
9714 COREFILE=netbsd-core.lo
9715 ;;
252b5132
RH
9716 esac
9717
9718 case "$COREFILE" in
9719 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9720 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9721 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9722 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9723 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9724 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9725 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9726 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9727 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9728 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9729 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9730 esac
9731
9732 # ELF corefile support has several flavors, but all of
9733 # them use something called <sys/procfs.h>
5464f5a1
NN
9734
9735for ac_header in sys/procfs.h
252b5132 9736do
5464f5a1
NN
9737as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9738if eval "test \"\${$as_ac_Header+set}\" = set"; then
9739 echo "$as_me:$LINENO: checking for $ac_header" >&5
9740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9741if eval "test \"\${$as_ac_Header+set}\" = set"; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743fi
9744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9746else
9747 # Is the header compilable?
9748echo "$as_me:$LINENO: checking $ac_header usability" >&5
9749echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9750cat >conftest.$ac_ext <<_ACEOF
9751/* confdefs.h. */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h. */
9756$ac_includes_default
9757#include <$ac_header>
9758_ACEOF
9759rm -f conftest.$ac_objext
9760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9761 (eval $ac_compile) 2>conftest.er1
9762 ac_status=$?
9763 grep -v '^ *+' conftest.er1 >conftest.err
9764 rm -f conftest.er1
9765 cat conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } &&
9768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770 (eval $ac_try) 2>&5
9771 ac_status=$?
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; } &&
9774 { ac_try='test -s conftest.$ac_objext'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 (eval $ac_try) 2>&5
9777 ac_status=$?
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_header_compiler=yes
9781else
9782 echo "$as_me: failed program was:" >&5
9783sed 's/^/| /' conftest.$ac_ext >&5
9784
9785ac_header_compiler=no
9786fi
9787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9788echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9789echo "${ECHO_T}$ac_header_compiler" >&6
9790
9791# Is the header present?
9792echo "$as_me:$LINENO: checking $ac_header presence" >&5
9793echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9794cat >conftest.$ac_ext <<_ACEOF
9795/* confdefs.h. */
9796_ACEOF
9797cat confdefs.h >>conftest.$ac_ext
9798cat >>conftest.$ac_ext <<_ACEOF
9799/* end confdefs.h. */
9800#include <$ac_header>
9801_ACEOF
9802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } >/dev/null; then
9810 if test -s conftest.err; then
9811 ac_cpp_err=$ac_c_preproc_warn_flag
9812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9813 else
9814 ac_cpp_err=
9815 fi
252b5132 9816else
5464f5a1 9817 ac_cpp_err=yes
252b5132 9818fi
5464f5a1
NN
9819if test -z "$ac_cpp_err"; then
9820 ac_header_preproc=yes
9821else
9822 echo "$as_me: failed program was:" >&5
9823sed 's/^/| /' conftest.$ac_ext >&5
9824
9825 ac_header_preproc=no
252b5132 9826fi
5464f5a1
NN
9827rm -f conftest.err conftest.$ac_ext
9828echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9829echo "${ECHO_T}$ac_header_preproc" >&6
9830
9831# So? What about this header?
9832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9833 yes:no: )
9834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9835echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9837echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9838 ac_header_preproc=yes
9839 ;;
9840 no:yes:* )
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9842echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9844echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9846echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9848echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9850echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9852echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9853 (
9854 cat <<\_ASBOX
9855## ------------------------------------------ ##
9856## Report this to the AC_PACKAGE_NAME lists. ##
9857## ------------------------------------------ ##
9858_ASBOX
9859 ) |
9860 sed "s/^/$as_me: WARNING: /" >&2
9861 ;;
9862esac
9863echo "$as_me:$LINENO: checking for $ac_header" >&5
9864echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9865if eval "test \"\${$as_ac_Header+set}\" = set"; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 9867else
5464f5a1
NN
9868 eval "$as_ac_Header=\$ac_header_preproc"
9869fi
9870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9871echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9872
252b5132 9873fi
5464f5a1
NN
9874if test `eval echo '${'$as_ac_Header'}'` = yes; then
9875 cat >>confdefs.h <<_ACEOF
9876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9877_ACEOF
9878
9879fi
9880
252b5132
RH
9881done
9882
9883 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
9884 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9885echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9886 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888else
9889 cat >conftest.$ac_ext <<_ACEOF
9890/* confdefs.h. */
9891_ACEOF
9892cat confdefs.h >>conftest.$ac_ext
9893cat >>conftest.$ac_ext <<_ACEOF
9894/* end confdefs.h. */
7ee38065
MS
9895
9896#define _SYSCALL32
252b5132 9897#include <sys/procfs.h>
5464f5a1
NN
9898int
9899main ()
9900{
252b5132 9901prstatus_t avar
5464f5a1
NN
9902 ;
9903 return 0;
9904}
9905_ACEOF
9906rm -f conftest.$ac_objext
9907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908 (eval $ac_compile) 2>conftest.er1
9909 ac_status=$?
9910 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 (eval $ac_try) 2>&5
9918 ac_status=$?
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest.$ac_objext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 (eval $ac_try) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
252b5132
RH
9927 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9928else
5464f5a1
NN
9929 echo "$as_me: failed program was:" >&5
9930sed 's/^/| /' conftest.$ac_ext >&5
9931
9932bfd_cv_have_sys_procfs_type_prstatus_t=no
9933
252b5132 9934fi
5464f5a1 9935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9936fi
9937
9938 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
9939
9940cat >>confdefs.h <<\_ACEOF
252b5132 9941#define HAVE_PRSTATUS_T 1
5464f5a1 9942_ACEOF
252b5132
RH
9943
9944 fi
5464f5a1
NN
9945 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9946echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 9947
5464f5a1
NN
9948 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9949echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9950 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9952else
5464f5a1
NN
9953 cat >conftest.$ac_ext <<_ACEOF
9954/* confdefs.h. */
9955_ACEOF
9956cat confdefs.h >>conftest.$ac_ext
9957cat >>conftest.$ac_ext <<_ACEOF
9958/* end confdefs.h. */
7ee38065
MS
9959
9960#define _SYSCALL32
9961#include <sys/procfs.h>
5464f5a1
NN
9962int
9963main ()
9964{
7ee38065 9965prstatus32_t avar
5464f5a1
NN
9966 ;
9967 return 0;
9968}
9969_ACEOF
9970rm -f conftest.$ac_objext
9971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972 (eval $ac_compile) 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 (eval $ac_try) 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; } &&
9985 { ac_try='test -s conftest.$ac_objext'
9986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 (eval $ac_try) 2>&5
9988 ac_status=$?
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; }; then
7ee38065
MS
9991 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9992else
5464f5a1
NN
9993 echo "$as_me: failed program was:" >&5
9994sed 's/^/| /' conftest.$ac_ext >&5
9995
9996bfd_cv_have_sys_procfs_type_prstatus32_t=no
9997
7ee38065 9998fi
5464f5a1 9999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10000fi
10001
10002 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
10003
10004cat >>confdefs.h <<\_ACEOF
7ee38065 10005#define HAVE_PRSTATUS32_T 1
5464f5a1 10006_ACEOF
7ee38065
MS
10007
10008 fi
5464f5a1
NN
10009 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10010echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 10011
5464f5a1
NN
10012 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10013echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10014 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10016else
5464f5a1
NN
10017 cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h. */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h. */
7ee38065
MS
10023
10024#define _SYSCALL32
252b5132 10025#include <sys/procfs.h>
5464f5a1
NN
10026int
10027main ()
10028{
252b5132 10029prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
10030 ;
10031 return 0;
10032}
10033_ACEOF
10034rm -f conftest.$ac_objext
10035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10036 (eval $ac_compile) 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10049 { ac_try='test -s conftest.$ac_objext'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
252b5132
RH
10055 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10056else
5464f5a1
NN
10057 echo "$as_me: failed program was:" >&5
10058sed 's/^/| /' conftest.$ac_ext >&5
10059
10060bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10061
252b5132 10062fi
5464f5a1 10063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10064fi
10065
10066 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
10067
10068cat >>confdefs.h <<\_ACEOF
252b5132 10069#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 10070_ACEOF
252b5132
RH
10071
10072 fi
5464f5a1
NN
10073 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10074echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 10075
5464f5a1
NN
10076 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10077echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10078 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10080else
5464f5a1
NN
10081 cat >conftest.$ac_ext <<_ACEOF
10082/* confdefs.h. */
10083_ACEOF
10084cat confdefs.h >>conftest.$ac_ext
10085cat >>conftest.$ac_ext <<_ACEOF
10086/* end confdefs.h. */
7ee38065
MS
10087
10088#define _SYSCALL32
10089#include <sys/procfs.h>
5464f5a1
NN
10090int
10091main ()
10092{
7ee38065 10093prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
10094 ;
10095 return 0;
10096}
10097_ACEOF
10098rm -f conftest.$ac_objext
10099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10100 (eval $ac_compile) 2>conftest.er1
10101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10110 ac_status=$?
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; } &&
10113 { ac_try='test -s conftest.$ac_objext'
10114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115 (eval $ac_try) 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
7ee38065
MS
10119 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
10120else
5464f5a1
NN
10121 echo "$as_me: failed program was:" >&5
10122sed 's/^/| /' conftest.$ac_ext >&5
10123
10124bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
10125
7ee38065 10126fi
5464f5a1 10127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10128fi
10129
10130 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
10131
10132cat >>confdefs.h <<\_ACEOF
7ee38065 10133#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 10134_ACEOF
7ee38065
MS
10135
10136 fi
5464f5a1
NN
10137 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
10138echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 10139
5464f5a1
NN
10140 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
10141echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
10142 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10144else
5464f5a1
NN
10145 cat >conftest.$ac_ext <<_ACEOF
10146/* confdefs.h. */
10147_ACEOF
10148cat confdefs.h >>conftest.$ac_ext
10149cat >>conftest.$ac_ext <<_ACEOF
10150/* end confdefs.h. */
7ee38065
MS
10151
10152#define _SYSCALL32
252b5132 10153#include <sys/procfs.h>
5464f5a1
NN
10154int
10155main ()
10156{
252b5132 10157pstatus_t avar
5464f5a1
NN
10158 ;
10159 return 0;
10160}
10161_ACEOF
10162rm -f conftest.$ac_objext
10163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10164 (eval $ac_compile) 2>conftest.er1
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } &&
10171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173 (eval $ac_try) 2>&5
10174 ac_status=$?
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); }; } &&
10177 { ac_try='test -s conftest.$ac_objext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
252b5132
RH
10183 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10184else
5464f5a1
NN
10185 echo "$as_me: failed program was:" >&5
10186sed 's/^/| /' conftest.$ac_ext >&5
10187
10188bfd_cv_have_sys_procfs_type_pstatus_t=no
10189
252b5132 10190fi
5464f5a1 10191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10192fi
10193
10194 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
10195
10196cat >>confdefs.h <<\_ACEOF
252b5132 10197#define HAVE_PSTATUS_T 1
5464f5a1 10198_ACEOF
252b5132
RH
10199
10200 fi
5464f5a1
NN
10201 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10202echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 10203
5464f5a1
NN
10204 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
10205echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
10206 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10208else
5464f5a1
NN
10209 cat >conftest.$ac_ext <<_ACEOF
10210/* confdefs.h. */
10211_ACEOF
10212cat confdefs.h >>conftest.$ac_ext
10213cat >>conftest.$ac_ext <<_ACEOF
10214/* end confdefs.h. */
f572a39d
AM
10215
10216#define _SYSCALL32
10217#include <sys/procfs.h>
5464f5a1
NN
10218int
10219main ()
10220{
f572a39d 10221pxstatus_t avar
5464f5a1
NN
10222 ;
10223 return 0;
10224}
10225_ACEOF
10226rm -f conftest.$ac_objext
10227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10238 ac_status=$?
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; } &&
10241 { ac_try='test -s conftest.$ac_objext'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10244 ac_status=$?
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
f572a39d
AM
10247 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10248else
5464f5a1
NN
10249 echo "$as_me: failed program was:" >&5
10250sed 's/^/| /' conftest.$ac_ext >&5
10251
10252bfd_cv_have_sys_procfs_type_pxstatus_t=no
10253
f572a39d 10254fi
5464f5a1 10255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10256fi
10257
10258 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
10259
10260cat >>confdefs.h <<\_ACEOF
f572a39d 10261#define HAVE_PXSTATUS_T 1
5464f5a1 10262_ACEOF
f572a39d
AM
10263
10264 fi
5464f5a1
NN
10265 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10266echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 10267
5464f5a1
NN
10268 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10269echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10270 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10272else
5464f5a1
NN
10273 cat >conftest.$ac_ext <<_ACEOF
10274/* confdefs.h. */
10275_ACEOF
10276cat confdefs.h >>conftest.$ac_ext
10277cat >>conftest.$ac_ext <<_ACEOF
10278/* end confdefs.h. */
7ee38065
MS
10279
10280#define _SYSCALL32
10281#include <sys/procfs.h>
5464f5a1
NN
10282int
10283main ()
10284{
7ee38065 10285pstatus32_t avar
5464f5a1
NN
10286 ;
10287 return 0;
10288}
10289_ACEOF
10290rm -f conftest.$ac_objext
10291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10292 (eval $ac_compile) 2>conftest.er1
10293 ac_status=$?
10294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest.$ac_objext'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
7ee38065
MS
10311 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10312else
5464f5a1
NN
10313 echo "$as_me: failed program was:" >&5
10314sed 's/^/| /' conftest.$ac_ext >&5
10315
10316bfd_cv_have_sys_procfs_type_pstatus32_t=no
10317
7ee38065 10318fi
5464f5a1 10319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10320fi
10321
10322 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
10323
10324cat >>confdefs.h <<\_ACEOF
7ee38065 10325#define HAVE_PSTATUS32_T 1
5464f5a1 10326_ACEOF
7ee38065
MS
10327
10328 fi
5464f5a1
NN
10329 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10330echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 10331
5464f5a1
NN
10332 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10333echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10334 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10336else
5464f5a1
NN
10337 cat >conftest.$ac_ext <<_ACEOF
10338/* confdefs.h. */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h. */
7ee38065
MS
10343
10344#define _SYSCALL32
252b5132 10345#include <sys/procfs.h>
5464f5a1
NN
10346int
10347main ()
10348{
252b5132 10349prpsinfo_t avar
5464f5a1
NN
10350 ;
10351 return 0;
10352}
10353_ACEOF
10354rm -f conftest.$ac_objext
10355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10356 (eval $ac_compile) 2>conftest.er1
10357 ac_status=$?
10358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } &&
10363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest.$ac_objext'
10370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
252b5132
RH
10375 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10376else
5464f5a1
NN
10377 echo "$as_me: failed program was:" >&5
10378sed 's/^/| /' conftest.$ac_ext >&5
10379
10380bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10381
252b5132 10382fi
5464f5a1 10383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10384fi
10385
10386 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
10387
10388cat >>confdefs.h <<\_ACEOF
252b5132 10389#define HAVE_PRPSINFO_T 1
5464f5a1 10390_ACEOF
252b5132
RH
10391
10392 fi
5464f5a1
NN
10393 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10394echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 10395
5464f5a1
NN
10396 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10397echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10398 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10400else
5464f5a1
NN
10401 cat >conftest.$ac_ext <<_ACEOF
10402/* confdefs.h. */
10403_ACEOF
10404cat confdefs.h >>conftest.$ac_ext
10405cat >>conftest.$ac_ext <<_ACEOF
10406/* end confdefs.h. */
7ee38065
MS
10407
10408#define _SYSCALL32
10409#include <sys/procfs.h>
5464f5a1
NN
10410int
10411main ()
10412{
7ee38065 10413prpsinfo32_t avar
5464f5a1
NN
10414 ;
10415 return 0;
10416}
10417_ACEOF
10418rm -f conftest.$ac_objext
10419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10420 (eval $ac_compile) 2>conftest.er1
10421 ac_status=$?
10422 grep -v '^ *+' conftest.er1 >conftest.err
10423 rm -f conftest.er1
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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
7ee38065
MS
10439 bfd_cv_have_sys_procfs_type_prpsinfo32_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_prpsinfo32_t=no
10445
7ee38065 10446fi
5464f5a1 10447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10448fi
10449
10450 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
10451
10452cat >>confdefs.h <<\_ACEOF
7ee38065 10453#define HAVE_PRPSINFO32_T 1
5464f5a1 10454_ACEOF
7ee38065
MS
10455
10456 fi
5464f5a1
NN
10457 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10458echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 10459
5464f5a1
NN
10460 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10461echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10462 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 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
252b5132 10473#include <sys/procfs.h>
5464f5a1
NN
10474int
10475main ()
10476{
252b5132 10477psinfo_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); } &&
10491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; } &&
10497 { ac_try='test -s conftest.$ac_objext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
252b5132
RH
10503 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10504else
5464f5a1
NN
10505 echo "$as_me: failed program was:" >&5
10506sed 's/^/| /' conftest.$ac_ext >&5
10507
10508bfd_cv_have_sys_procfs_type_psinfo_t=no
10509
252b5132 10510fi
5464f5a1 10511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10512fi
10513
10514 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
10515
10516cat >>confdefs.h <<\_ACEOF
252b5132 10517#define HAVE_PSINFO_T 1
5464f5a1 10518_ACEOF
252b5132
RH
10519
10520 fi
5464f5a1
NN
10521 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10522echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 10523
5464f5a1
NN
10524 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10525echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10526 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10528else
5464f5a1
NN
10529 cat >conftest.$ac_ext <<_ACEOF
10530/* confdefs.h. */
10531_ACEOF
10532cat confdefs.h >>conftest.$ac_ext
10533cat >>conftest.$ac_ext <<_ACEOF
10534/* end confdefs.h. */
7ee38065
MS
10535
10536#define _SYSCALL32
10537#include <sys/procfs.h>
5464f5a1
NN
10538int
10539main ()
10540{
7ee38065 10541psinfo32_t avar
5464f5a1
NN
10542 ;
10543 return 0;
10544}
10545_ACEOF
10546rm -f conftest.$ac_objext
10547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548 (eval $ac_compile) 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; } &&
10561 { ac_try='test -s conftest.$ac_objext'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
7ee38065
MS
10567 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10568else
5464f5a1
NN
10569 echo "$as_me: failed program was:" >&5
10570sed 's/^/| /' conftest.$ac_ext >&5
10571
10572bfd_cv_have_sys_procfs_type_psinfo32_t=no
10573
7ee38065 10574fi
5464f5a1 10575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10576fi
10577
10578 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
10579
10580cat >>confdefs.h <<\_ACEOF
7ee38065 10581#define HAVE_PSINFO32_T 1
5464f5a1 10582_ACEOF
7ee38065
MS
10583
10584 fi
5464f5a1
NN
10585 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10586echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 10587
5464f5a1
NN
10588 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10589echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10590 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10592else
5464f5a1
NN
10593 cat >conftest.$ac_ext <<_ACEOF
10594/* confdefs.h. */
10595_ACEOF
10596cat confdefs.h >>conftest.$ac_ext
10597cat >>conftest.$ac_ext <<_ACEOF
10598/* end confdefs.h. */
7ee38065
MS
10599
10600#define _SYSCALL32
252b5132 10601#include <sys/procfs.h>
5464f5a1
NN
10602int
10603main ()
10604{
252b5132 10605lwpstatus_t avar
5464f5a1
NN
10606 ;
10607 return 0;
10608}
10609_ACEOF
10610rm -f conftest.$ac_objext
10611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10612 (eval $ac_compile) 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } &&
10619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest.$ac_objext'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
252b5132
RH
10631 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10632else
5464f5a1
NN
10633 echo "$as_me: failed program was:" >&5
10634sed 's/^/| /' conftest.$ac_ext >&5
10635
10636bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10637
252b5132 10638fi
5464f5a1 10639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10640fi
10641
10642 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
10643
10644cat >>confdefs.h <<\_ACEOF
252b5132 10645#define HAVE_LWPSTATUS_T 1
5464f5a1 10646_ACEOF
252b5132
RH
10647
10648 fi
5464f5a1
NN
10649 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10650echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 10651
5464f5a1
NN
10652 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10653echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10654 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10656else
5464f5a1
NN
10657 cat >conftest.$ac_ext <<_ACEOF
10658/* confdefs.h. */
10659_ACEOF
10660cat confdefs.h >>conftest.$ac_ext
10661cat >>conftest.$ac_ext <<_ACEOF
10662/* end confdefs.h. */
f572a39d
AM
10663
10664#define _SYSCALL32
10665#include <sys/procfs.h>
5464f5a1
NN
10666int
10667main ()
10668{
f572a39d 10669lwpxstatus_t avar
5464f5a1
NN
10670 ;
10671 return 0;
10672}
10673_ACEOF
10674rm -f conftest.$ac_objext
10675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10676 (eval $ac_compile) 2>conftest.er1
10677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; } &&
10689 { ac_try='test -s conftest.$ac_objext'
10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; }; then
f572a39d
AM
10695 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10696else
5464f5a1
NN
10697 echo "$as_me: failed program was:" >&5
10698sed 's/^/| /' conftest.$ac_ext >&5
10699
10700bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10701
f572a39d 10702fi
5464f5a1 10703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10704fi
10705
10706 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
10707
10708cat >>confdefs.h <<\_ACEOF
f572a39d 10709#define HAVE_LWPXSTATUS_T 1
5464f5a1 10710_ACEOF
f572a39d
AM
10711
10712 fi
5464f5a1
NN
10713 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10714echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 10715
5464f5a1
NN
10716 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10717echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10718 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10720else
5464f5a1
NN
10721 cat >conftest.$ac_ext <<_ACEOF
10722/* confdefs.h. */
10723_ACEOF
10724cat confdefs.h >>conftest.$ac_ext
10725cat >>conftest.$ac_ext <<_ACEOF
10726/* end confdefs.h. */
7ee38065
MS
10727
10728#define _SYSCALL32
252b5132 10729#include <sys/procfs.h>
5464f5a1
NN
10730int
10731main ()
10732{
252b5132 10733lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
10734 ;
10735 return 0;
10736}
10737_ACEOF
10738rm -f conftest.$ac_objext
10739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10740 (eval $ac_compile) 2>conftest.er1
10741 ac_status=$?
10742 grep -v '^ *+' conftest.er1 >conftest.err
10743 rm -f conftest.er1
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try='test -s conftest.$ac_objext'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
252b5132
RH
10759 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10760else
5464f5a1
NN
10761 echo "$as_me: failed program was:" >&5
10762sed 's/^/| /' conftest.$ac_ext >&5
10763
10764bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10765
252b5132 10766fi
5464f5a1 10767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10768fi
10769
10770 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
10771
10772cat >>confdefs.h <<\_ACEOF
252b5132 10773#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 10774_ACEOF
252b5132
RH
10775
10776 fi
5464f5a1
NN
10777 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10778echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 10779
5464f5a1
NN
10780 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10781echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10782 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10784else
5464f5a1
NN
10785 cat >conftest.$ac_ext <<_ACEOF
10786/* confdefs.h. */
10787_ACEOF
10788cat confdefs.h >>conftest.$ac_ext
10789cat >>conftest.$ac_ext <<_ACEOF
10790/* end confdefs.h. */
7ee38065
MS
10791
10792#define _SYSCALL32
252b5132 10793#include <sys/procfs.h>
5464f5a1
NN
10794int
10795main ()
10796{
252b5132 10797lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
10798 ;
10799 return 0;
10800}
10801_ACEOF
10802rm -f conftest.$ac_objext
10803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10804 (eval $ac_compile) 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; } &&
10817 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
252b5132
RH
10823 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10824else
5464f5a1
NN
10825 echo "$as_me: failed program was:" >&5
10826sed 's/^/| /' conftest.$ac_ext >&5
10827
10828bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10829
252b5132 10830fi
5464f5a1 10831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10832fi
10833
10834 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
10835
10836cat >>confdefs.h <<\_ACEOF
252b5132 10837#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 10838_ACEOF
252b5132
RH
10839
10840 fi
5464f5a1
NN
10841 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10842echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 10843
5464f5a1
NN
10844 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10845echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10846 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 10848else
5464f5a1
NN
10849 cat >conftest.$ac_ext <<_ACEOF
10850/* confdefs.h. */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h. */
7ee38065
MS
10855
10856#define _SYSCALL32
e3c976c4 10857#include <sys/procfs.h>
5464f5a1
NN
10858int
10859main ()
10860{
e3c976c4 10861win32_pstatus_t avar
5464f5a1
NN
10862 ;
10863 return 0;
10864}
10865_ACEOF
10866rm -f conftest.$ac_objext
10867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868 (eval $ac_compile) 2>conftest.er1
10869 ac_status=$?
10870 grep -v '^ *+' conftest.er1 >conftest.err
10871 rm -f conftest.er1
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } &&
10875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; } &&
10881 { ac_try='test -s conftest.$ac_objext'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
e3c976c4
ILT
10887 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10888else
5464f5a1
NN
10889 echo "$as_me: failed program was:" >&5
10890sed 's/^/| /' conftest.$ac_ext >&5
10891
10892bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10893
e3c976c4 10894fi
5464f5a1 10895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10896fi
10897
e3c976c4 10898 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
10899
10900cat >>confdefs.h <<\_ACEOF
e3c976c4 10901#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 10902_ACEOF
16e9c715
NC
10903
10904 fi
5464f5a1
NN
10905 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10906echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
10907
10908 fi
10909fi
16e9c715 10910
b3baf5d0 10911
6be7c12c 10912if test -n "$TRAD_HEADER"; then
5464f5a1
NN
10913
10914cat >>confdefs.h <<_ACEOF
252b5132 10915#define TRAD_HEADER $TRAD_HEADER
5464f5a1 10916_ACEOF
252b5132 10917
3f9b03b5 10918fi
252b5132
RH
10919
10920# Horrible hacks to build DLLs on Windows.
10921WIN32LDFLAGS=
10922WIN32LIBADD=
10923case "${host}" in
10924*-*-cygwin*)
10925 if test "$enable_shared" = "yes"; then
10926 WIN32LDFLAGS="-no-undefined"
10927 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10928 fi
10929 ;;
78be1d6e 10930*-*-linux*)
39691762
L
10931 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10932 # libiberty.a.
ca51bfff
L
10933 case "${host}" in
10934 mips*-*-linux*)
10935 # Linux/MIPS uses PIC by default.
10936 if test "$enable_shared" = "yes"; then
10937 WIN32LIBADD="-L../libiberty -liberty"
10938 fi
10939 ;;
10940 *)
66e25bab 10941 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 10942 if test -n "$x"; then
ca51bfff
L
10943 WIN32LIBADD="-L../libiberty/pic -liberty"
10944 fi
10945 ;;
10946 esac
39691762 10947 ;;
252b5132
RH
10948esac
10949
6be7c12c
AO
10950
10951
252b5132
RH
10952# target stuff:
10953
10954# Canonicalize the secondary target names.
10955if test -n "$enable_targets" ; then
10956 for targ in `echo $enable_targets | sed 's/,/ /g'`
10957 do
6d83c84b 10958 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
10959 if test -n "$result" ; then
10960 canon_targets="$canon_targets $result"
10961 else
10962 # Allow targets that config.sub doesn't recognize, like "all".
10963 canon_targets="$canon_targets $targ"
10964 fi
10965 done
10966fi
10967
10968all_targets=false
10969defvec=
10970selvecs=
08f74004 10971assocvecs=
252b5132
RH
10972selarchs=
10973TDEFINES=
10974for targ in $target $canon_targets
10975do
10976 if test "x$targ" = "xall"; then
10977 all_targets=true
08f74004 10978 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
10979 else
10980 . $srcdir/config.bfd
10981 if test "x$targ" = "x$target"; then
10982 defvec=$targ_defvec
10983 fi
10984 selvecs="$selvecs $targ_defvec $targ_selvecs"
10985 selarchs="$selarchs $targ_archs"
10986 TDEFINES="$TDEFINES $targ_cflags"
10987 fi
10988done
10989
6be7c12c 10990
252b5132
RH
10991# This processing still needs to be done if we're to decide properly whether
10992# 64-bit support needs to be compiled in. Currently, it will be included if
10993# the default or any other explicitly requested target requires it; it
10994# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 10995# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
10996# used.
10997
10998# uniq the default and selected vectors in all the configured targets.
10999f=""
11000for i in $selvecs ; do
11001 case " $f " in
11002 *" $i "*) ;;
11003 *) f="$f $i" ;;
11004 esac
11005done
11006selvecs="$f"
11007
6be7c12c 11008
08f74004
AM
11009# uniq the associated vectors in all the configured targets.
11010f=""
11011for i in $assocvecs ; do
11012 case " $f " in
11013 *" $i "*) ;;
11014 *) f="$f $i" ;;
11015 esac
11016done
11017assocvecs="$f"
11018
11019
252b5132
RH
11020# uniq the architectures in all the configured targets.
11021f=""
11022for i in $selarchs ; do
11023 case " $f " in
11024 *" $i "*) ;;
11025 *) f="$f $i" ;;
11026 esac
11027done
11028selarchs="$f"
11029
11030# Target backend .o files.
11031tb=
11032
65765700 11033elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
11034
11035for vec in $selvecs
11036do
69263e90 11037 target_size=32
252b5132
RH
11038 case "$vec" in
11039 # This list is alphabetized to make it easy to compare
dc810e39
AM
11040 # with the two vector lists in targets.c. For the same reason,
11041 # use one entry per line, even though this leads to long lines.
252b5132
RH
11042 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
11043 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 11044 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
11045 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
11046 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11047 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 11048 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
11049 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11050 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11051 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11052 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11053 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11054 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11055 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
11056 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11057 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11058 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11059 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
11060 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
11061 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 11062 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 11063 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 11064 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 11065 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
dc810e39 11066 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 11067 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
252b5132 11068 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
b6821651 11069 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
c6e90b02 11070 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 11071 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 11072 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 11073 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
11074 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11075 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 11076 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 11077 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 11078 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 11079 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 11080 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 11081 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 11082 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 11083 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 11084 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
b6821651
AM
11085 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11086 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
9d751335 11087 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 11088 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 11089 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 11090 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 11091 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 11092 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 11093 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 11094 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39
AM
11095 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11096 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
b6821651 11097 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
c6e90b02 11098 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
252b5132 11099 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
11100 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11101 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11102 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
11103 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11104 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
11105 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
11106 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
11107 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11108 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11109 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
11110 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
2469cfa2 11111 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
8a397dad
TS
11112 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11113 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11114 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11115 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 11116 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 11117 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
11118 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11119 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
b6821651
AM
11120 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11121 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
a85d7ed0 11122 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
eb1e0e80
NC
11123 # FIXME: We include cofflink.lo not because it's needed for
11124 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
11125 # which needs it but does not list it. Should be fixed in right place.
9cba27b2
JT
11126 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11127 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
2bc3c89a
AM
11128 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11129 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11130 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11131 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
b6821651
AM
11132 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11133 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11134 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
85fbca6a 11135 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
b6821651
AM
11136 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11137 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11138 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
252b5132 11139 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
c6e90b02
TS
11140 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11141 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 11142 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 11143 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 11144 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 11145 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
e0001a05
NC
11146 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11147 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 11148 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
11149 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11150 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 11151 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
11152 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11153 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 11154 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 11155 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
11156 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11157 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 11158 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 11159 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
11160 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11161 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
11162 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
11163 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11164 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
11165 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11166 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11167 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11168 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
dc810e39 11169 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02
TS
11170 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11171 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39 11172 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 11173 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
11174 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11175 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11176 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11177 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 11178 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 11179 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 11180 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 11181 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
11182 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11183 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
11184 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11185 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11186 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11187 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11188 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11189 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11190 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11191 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11192 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11193 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
11194 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11195 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
11196 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11197 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11198 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11199 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 11200 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
11201 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11202 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
11203 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11204 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
11205 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11206 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11207 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11208 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
11209 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11210 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
11211 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11212 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11213 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11214 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
11215 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
11216 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
11217 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11218 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 11219 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 11220 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
93509525
KD
11221 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11222 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11223 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
11224 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11225 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11226 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11227 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
11228 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11229 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 11230 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 11231 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 11232 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 11233 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 11234 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 11235 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 11236 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 11237 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
11238 pef_vec) tb="$tb pef.lo" ;;
11239 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 11240 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 11241 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11242 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 11243 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 11244 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 11245 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11246 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11247 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 11248 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11249 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
11250 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11251 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 11252 som_vec) tb="$tb som.lo" ;;
dc810e39 11253 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
11254 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11255 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11256 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11257 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11258 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 11259 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 11260 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
11261 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11262 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
11263 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11264 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11265 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11266 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11267 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11268 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 11269 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11270 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11271 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11272 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11273 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11274 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 11275 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 11276 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 11277 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 11278 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 11279 versados_vec) tb="$tb versados.lo" ;;
dc810e39 11280 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
11281 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11282 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11283 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11284 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
11285
341ca622
AM
11286 # These appear out of order in targets.c
11287 srec_vec) tb="$tb srec.lo" ;;
11288 symbolsrec_vec) tb="$tb srec.lo" ;;
11289 tekhex_vec) tb="$tb tekhex.lo" ;;
11290 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11291 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11292
252b5132 11293 "") ;;
5464f5a1
NN
11294 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11295echo "$as_me: error: *** unknown target vector $vec" >&2;}
11296 { (exit 1); exit 1; }; } ;;
252b5132 11297 esac
69263e90
AM
11298
11299 if test ${target_size} = 64; then
11300 target64=true
11301 fi
11302 if test x"${vec}" = x"${defvec}"; then
11303 bfd_default_target_size=${target_size}
11304 fi
252b5132
RH
11305done
11306
11307# Target architecture .o files.
11308# A couple of CPUs use shorter file names to avoid problems on DOS
11309# filesystems.
11310ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11311
11312# Weed out duplicate .o files.
11313f=""
11314for i in $tb ; do
11315 case " $f " in
11316 *" $i "*) ;;
11317 *) f="$f $i" ;;
11318 esac
11319done
11320tb="$f"
11321
11322f=""
11323for i in $ta ; do
11324 case " $f " in
11325 *" $i "*) ;;
11326 *) f="$f $i" ;;
11327 esac
11328done
11329ta="$f"
11330
11331bfd_backends="$tb"
11332bfd_machines="$ta"
11333
11334if test x${all_targets} = xtrue ; then
11335 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11336 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11337 selvecs=
11338 havevecs=
11339 selarchs=
08f74004
AM
11340 test -n "$assocvecs" &&
11341 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
11342else # all_targets is true
11343 # Only set these if they will be nonempty, for the clever echo.
11344 havevecs=
08f74004 11345 assocvecs=
252b5132
RH
11346 test -n "$selvecs" &&
11347 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11348 test -n "$selvecs" &&
11349 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11350 test -n "$selarchs" &&
11351 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11352fi # all_targets is true
11353
11354case ${host64}-${target64}-${want64} in
11355 *true*)
11356 wordsize=64
2858ef35 11357 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 11358 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 11359 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
11360 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11361echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11363echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 11364 fi
966abd70
HPN
11365 if test -n "$GCC" ; then
11366 bad_64bit_gcc=no;
5464f5a1
NN
11367 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11368echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 11369 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
11370 cat >conftest.$ac_ext <<_ACEOF
11371/* confdefs.h. */
11372_ACEOF
11373cat confdefs.h >>conftest.$ac_ext
11374cat >>conftest.$ac_ext <<_ACEOF
11375/* end confdefs.h. */
966abd70 11376:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 11377_ACEOF
966abd70 11378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 11379 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 11380 bad_64bit_gcc=yes;
5464f5a1
NN
11381 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11382echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 11383else
5464f5a1
NN
11384 echo "$as_me:$LINENO: result: no" >&5
11385echo "${ECHO_T}no" >&6
966abd70
HPN
11386fi
11387rm -f conftest*
11388
11389 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
11390 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11391echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11392 { (exit 1); exit 1; }; }
966abd70
HPN
11393 fi
11394 fi
252b5132
RH
11395 ;;
11396 false-false-false)
11397 wordsize=32
2858ef35 11398 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
11399 all_backends='$(BFD32_BACKENDS)'
11400 ;;
11401esac
11402
6be7c12c
AO
11403
11404
11405
11406
11407
69263e90 11408
2858ef35 11409
1012372a
AC
11410# Determine the host dependant file_ptr a.k.a. off_t type. In order
11411# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11412# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11413# Hopefully a reasonable assumption since fseeko et.al. should be
11414# upward compatible.
5464f5a1
NN
11415
11416
11417
11418
1012372a
AC
11419for ac_func in ftello ftello64 fseeko fseeko64
11420do
5464f5a1
NN
11421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11422echo "$as_me:$LINENO: checking for $ac_func" >&5
11423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11424if eval "test \"\${$as_ac_var+set}\" = set"; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11426else
11427 cat >conftest.$ac_ext <<_ACEOF
11428/* confdefs.h. */
11429_ACEOF
11430cat confdefs.h >>conftest.$ac_ext
11431cat >>conftest.$ac_ext <<_ACEOF
11432/* end confdefs.h. */
11433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11435#define $ac_func innocuous_$ac_func
11436
1012372a 11437/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11438 which can conflict with char $ac_func (); below.
11439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11440 <limits.h> exists even on freestanding compilers. */
11441
11442#ifdef __STDC__
11443# include <limits.h>
11444#else
11445# include <assert.h>
11446#endif
1012372a 11447
5464f5a1 11448#undef $ac_func
1012372a 11449
5464f5a1
NN
11450/* Override any gcc2 internal prototype to avoid an error. */
11451#ifdef __cplusplus
11452extern "C"
11453{
11454#endif
11455/* We use char because int might match the return type of a gcc2
11456 builtin and then its argument prototype would still apply. */
11457char $ac_func ();
1012372a
AC
11458/* The GNU C library defines this for functions which it implements
11459 to always fail with ENOSYS. Some functions are actually named
11460 something starting with __ and the normal name is an alias. */
11461#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11462choke me
11463#else
5464f5a1
NN
11464char (*f) () = $ac_func;
11465#endif
11466#ifdef __cplusplus
11467}
1012372a
AC
11468#endif
11469
5464f5a1
NN
11470int
11471main ()
11472{
11473return f != $ac_func;
11474 ;
11475 return 0;
11476}
11477_ACEOF
11478rm -f conftest.$ac_objext conftest$ac_exeext
11479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11480 (eval $ac_link) 2>conftest.er1
11481 ac_status=$?
11482 grep -v '^ *+' conftest.er1 >conftest.err
11483 rm -f conftest.er1
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try='test -s conftest$ac_exeext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11496 ac_status=$?
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 eval "$as_ac_var=yes"
11500else
11501 echo "$as_me: failed program was:" >&5
11502sed 's/^/| /' conftest.$ac_ext >&5
11503
11504eval "$as_ac_var=no"
11505fi
11506rm -f conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11508fi
11509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11510echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11511if test `eval echo '${'$as_ac_var'}'` = yes; then
11512 cat >>confdefs.h <<_ACEOF
11513#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11514_ACEOF
1012372a 11515
1012372a
AC
11516fi
11517done
11518
1012372a 11519if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
5464f5a1
NN
11520 echo "$as_me:$LINENO: checking size of off_t" >&5
11521echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11522if test "${ac_cv_sizeof_off_t+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
1012372a
AC
11524else
11525 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
11526 cat >conftest.$ac_ext <<_ACEOF
11527/* confdefs.h. */
11528_ACEOF
11529cat confdefs.h >>conftest.$ac_ext
11530cat >>conftest.$ac_ext <<_ACEOF
11531/* end confdefs.h. */
1012372a
AC
11532#include "confdefs.h"
11533#include <sys/types.h>
11534
11535
5464f5a1
NN
11536int
11537main ()
11538{
1012372a 11539switch (0) case 0: case (sizeof (off_t) == $ac_size):;
5464f5a1
NN
11540 ;
11541 return 0;
11542}
11543_ACEOF
11544rm -f conftest.$ac_objext
11545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11546 (eval $ac_compile) 2>conftest.er1
11547 ac_status=$?
11548 grep -v '^ *+' conftest.er1 >conftest.err
11549 rm -f conftest.er1
11550 cat conftest.err >&5
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); } &&
11553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; } &&
11559 { ac_try='test -s conftest.$ac_objext'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
1012372a
AC
11565 ac_cv_sizeof_off_t=$ac_size
11566else
5464f5a1
NN
11567 echo "$as_me: failed program was:" >&5
11568sed 's/^/| /' conftest.$ac_ext >&5
11569
1012372a 11570fi
5464f5a1 11571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a
AC
11572 if test x$ac_cv_sizeof_off_t != x ; then break; fi
11573done
11574
11575fi
11576
11577if test x$ac_cv_sizeof_off_t = x ; then
5464f5a1
NN
11578 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
11579echo "$as_me: error: cannot determine a size for off_t" >&2;}
11580 { (exit 1); exit 1; }; }
1012372a 11581fi
5464f5a1
NN
11582echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11583echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11584
11585cat >>confdefs.h <<_ACEOF
1012372a 11586#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 11587_ACEOF
1012372a
AC
11588
11589
1012372a 11590fi
5464f5a1
NN
11591echo "$as_me:$LINENO: checking file_ptr type" >&5
11592echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
11593bfd_file_ptr="long"
11594bfd_ufile_ptr="unsigned long"
11595if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11596 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
11597 bfd_file_ptr=BFD_HOST_64_BIT
11598 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11599fi
5464f5a1
NN
11600echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11601echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
11602
11603
11604
11605
252b5132
RH
11606tdefaults=""
11607test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11608test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 11609test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
11610test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11611test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11612
6be7c12c 11613
5464f5a1
NN
11614
11615
11616for ac_header in stdlib.h unistd.h
252b5132 11617do
5464f5a1
NN
11618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11619if eval "test \"\${$as_ac_Header+set}\" = set"; then
11620 echo "$as_me:$LINENO: checking for $ac_header" >&5
11621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11622if eval "test \"\${$as_ac_Header+set}\" = set"; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624fi
11625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11627else
11628 # Is the header compilable?
11629echo "$as_me:$LINENO: checking $ac_header usability" >&5
11630echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11631cat >conftest.$ac_ext <<_ACEOF
11632/* confdefs.h. */
11633_ACEOF
11634cat confdefs.h >>conftest.$ac_ext
11635cat >>conftest.$ac_ext <<_ACEOF
11636/* end confdefs.h. */
11637$ac_includes_default
11638#include <$ac_header>
11639_ACEOF
11640rm -f conftest.$ac_objext
11641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11642 (eval $ac_compile) 2>conftest.er1
11643 ac_status=$?
11644 grep -v '^ *+' conftest.er1 >conftest.err
11645 rm -f conftest.er1
11646 cat conftest.err >&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } &&
11649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11652 ac_status=$?
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; } &&
11655 { ac_try='test -s conftest.$ac_objext'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11658 ac_status=$?
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11661 ac_header_compiler=yes
11662else
11663 echo "$as_me: failed program was:" >&5
11664sed 's/^/| /' conftest.$ac_ext >&5
11665
11666ac_header_compiler=no
11667fi
11668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11669echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11670echo "${ECHO_T}$ac_header_compiler" >&6
11671
11672# Is the header present?
11673echo "$as_me:$LINENO: checking $ac_header presence" >&5
11674echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11675cat >conftest.$ac_ext <<_ACEOF
11676/* confdefs.h. */
11677_ACEOF
11678cat confdefs.h >>conftest.$ac_ext
11679cat >>conftest.$ac_ext <<_ACEOF
11680/* end confdefs.h. */
11681#include <$ac_header>
11682_ACEOF
11683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11685 ac_status=$?
11686 grep -v '^ *+' conftest.er1 >conftest.err
11687 rm -f conftest.er1
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } >/dev/null; then
11691 if test -s conftest.err; then
11692 ac_cpp_err=$ac_c_preproc_warn_flag
11693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11694 else
11695 ac_cpp_err=
11696 fi
252b5132 11697else
5464f5a1 11698 ac_cpp_err=yes
252b5132 11699fi
5464f5a1
NN
11700if test -z "$ac_cpp_err"; then
11701 ac_header_preproc=yes
11702else
11703 echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 ac_header_preproc=no
252b5132 11707fi
5464f5a1
NN
11708rm -f conftest.err conftest.$ac_ext
11709echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11710echo "${ECHO_T}$ac_header_preproc" >&6
11711
11712# So? What about this header?
11713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11714 yes:no: )
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11718echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11719 ac_header_preproc=yes
11720 ;;
11721 no:yes:* )
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11727echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11729echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11733echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11734 (
11735 cat <<\_ASBOX
11736## ------------------------------------------ ##
11737## Report this to the AC_PACKAGE_NAME lists. ##
11738## ------------------------------------------ ##
11739_ASBOX
11740 ) |
11741 sed "s/^/$as_me: WARNING: /" >&2
11742 ;;
11743esac
11744echo "$as_me:$LINENO: checking for $ac_header" >&5
11745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11746if eval "test \"\${$as_ac_Header+set}\" = set"; then
11747 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 11748else
5464f5a1
NN
11749 eval "$as_ac_Header=\$ac_header_preproc"
11750fi
11751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11753
11754fi
11755if test `eval echo '${'$as_ac_Header'}'` = yes; then
11756 cat >>confdefs.h <<_ACEOF
11757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11758_ACEOF
11759
252b5132 11760fi
5464f5a1 11761
252b5132
RH
11762done
11763
5464f5a1 11764
252b5132
RH
11765for ac_func in getpagesize
11766do
5464f5a1
NN
11767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11768echo "$as_me:$LINENO: checking for $ac_func" >&5
11769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11770if eval "test \"\${$as_ac_var+set}\" = set"; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11772else
11773 cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11781#define $ac_func innocuous_$ac_func
11782
252b5132 11783/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11784 which can conflict with char $ac_func (); below.
11785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11786 <limits.h> exists even on freestanding compilers. */
11787
11788#ifdef __STDC__
11789# include <limits.h>
11790#else
11791# include <assert.h>
11792#endif
6be7c12c 11793
5464f5a1 11794#undef $ac_func
252b5132 11795
5464f5a1
NN
11796/* Override any gcc2 internal prototype to avoid an error. */
11797#ifdef __cplusplus
11798extern "C"
11799{
11800#endif
11801/* We use char because int might match the return type of a gcc2
11802 builtin and then its argument prototype would still apply. */
11803char $ac_func ();
252b5132
RH
11804/* The GNU C library defines this for functions which it implements
11805 to always fail with ENOSYS. Some functions are actually named
11806 something starting with __ and the normal name is an alias. */
11807#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11808choke me
11809#else
5464f5a1
NN
11810char (*f) () = $ac_func;
11811#endif
11812#ifdef __cplusplus
11813}
252b5132
RH
11814#endif
11815
5464f5a1
NN
11816int
11817main ()
11818{
11819return f != $ac_func;
11820 ;
11821 return 0;
11822}
11823_ACEOF
11824rm -f conftest.$ac_objext conftest$ac_exeext
11825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11826 (eval $ac_link) 2>conftest.er1
11827 ac_status=$?
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
11833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 eval "$as_ac_var=yes"
11846else
11847 echo "$as_me: failed program was:" >&5
11848sed 's/^/| /' conftest.$ac_ext >&5
11849
11850eval "$as_ac_var=no"
11851fi
11852rm -f conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11854fi
11855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11856echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11857if test `eval echo '${'$as_ac_var'}'` = yes; then
11858 cat >>confdefs.h <<_ACEOF
11859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11860_ACEOF
252b5132 11861
252b5132
RH
11862fi
11863done
11864
5464f5a1
NN
11865echo "$as_me:$LINENO: checking for working mmap" >&5
11866echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11867if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
11869else
11870 if test "$cross_compiling" = yes; then
11871 ac_cv_func_mmap_fixed_mapped=no
11872else
5464f5a1
NN
11873 cat >conftest.$ac_ext <<_ACEOF
11874/* confdefs.h. */
11875_ACEOF
11876cat confdefs.h >>conftest.$ac_ext
11877cat >>conftest.$ac_ext <<_ACEOF
11878/* end confdefs.h. */
11879$ac_includes_default
11880/* malloc might have been renamed as rpl_malloc. */
11881#undef malloc
6be7c12c 11882
252b5132
RH
11883/* Thanks to Mike Haertel and Jim Avera for this test.
11884 Here is a matrix of mmap possibilities:
11885 mmap private not fixed
11886 mmap private fixed at somewhere currently unmapped
11887 mmap private fixed at somewhere already mapped
11888 mmap shared not fixed
11889 mmap shared fixed at somewhere currently unmapped
11890 mmap shared fixed at somewhere already mapped
11891 For private mappings, we should verify that changes cannot be read()
11892 back from the file, nor mmap's back from the file at a different
11893 address. (There have been systems where private was not correctly
11894 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 11895 VM page cache was not coherent with the file system buffer cache
252b5132
RH
11896 like early versions of FreeBSD and possibly contemporary NetBSD.)
11897 For shared mappings, we should conversely verify that changes get
5464f5a1 11898 propagated back to all the places they're supposed to be.
252b5132
RH
11899
11900 Grep wants private fixed already mapped.
11901 The main things grep needs to know about mmap are:
11902 * does it exist and is it safe to write into the mmap'd area
11903 * how to use it (BSD variants) */
5464f5a1 11904
252b5132
RH
11905#include <fcntl.h>
11906#include <sys/mman.h>
11907
5464f5a1
NN
11908#if !STDC_HEADERS && !HAVE_STDLIB_H
11909char *malloc ();
11910#endif
6be7c12c 11911
5464f5a1
NN
11912/* This mess was copied from the GNU getpagesize.h. */
11913#if !HAVE_GETPAGESIZE
252b5132 11914/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 11915# if !HAVE_SYS_PARAM_H
252b5132
RH
11916# define HAVE_SYS_PARAM_H 1
11917# endif
11918
11919# ifdef _SC_PAGESIZE
11920# define getpagesize() sysconf(_SC_PAGESIZE)
11921# else /* no _SC_PAGESIZE */
5464f5a1 11922# if HAVE_SYS_PARAM_H
252b5132
RH
11923# include <sys/param.h>
11924# ifdef EXEC_PAGESIZE
11925# define getpagesize() EXEC_PAGESIZE
11926# else /* no EXEC_PAGESIZE */
11927# ifdef NBPG
11928# define getpagesize() NBPG * CLSIZE
11929# ifndef CLSIZE
11930# define CLSIZE 1
11931# endif /* no CLSIZE */
11932# else /* no NBPG */
11933# ifdef NBPC
11934# define getpagesize() NBPC
11935# else /* no NBPC */
11936# ifdef PAGESIZE
11937# define getpagesize() PAGESIZE
11938# endif /* PAGESIZE */
11939# endif /* no NBPC */
11940# endif /* no NBPG */
11941# endif /* no EXEC_PAGESIZE */
11942# else /* no HAVE_SYS_PARAM_H */
11943# define getpagesize() 8192 /* punt totally */
11944# endif /* no HAVE_SYS_PARAM_H */
11945# endif /* no _SC_PAGESIZE */
11946
5464f5a1
NN
11947#endif /* no HAVE_GETPAGESIZE */
11948
11949int
11950main ()
11951{
11952 char *data, *data2, *data3;
11953 int i, pagesize;
11954 int fd;
11955
11956 pagesize = getpagesize ();
11957
11958 /* First, make a file with some known garbage in it. */
11959 data = (char *) malloc (pagesize);
11960 if (!data)
11961 exit (1);
11962 for (i = 0; i < pagesize; ++i)
11963 *(data + i) = rand ();
11964 umask (0);
11965 fd = creat ("conftest.mmap", 0600);
11966 if (fd < 0)
11967 exit (1);
11968 if (write (fd, data, pagesize) != pagesize)
11969 exit (1);
11970 close (fd);
11971
11972 /* Next, try to mmap the file at a fixed address which already has
11973 something else allocated at it. If we can, also make sure that
11974 we see the same garbage. */
11975 fd = open ("conftest.mmap", O_RDWR);
11976 if (fd < 0)
11977 exit (1);
11978 data2 = (char *) malloc (2 * pagesize);
11979 if (!data2)
11980 exit (1);
11981 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
11982 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11983 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11984 exit (1);
11985 for (i = 0; i < pagesize; ++i)
11986 if (*(data + i) != *(data2 + i))
11987 exit (1);
11988
11989 /* Finally, make sure that changes to the mapped area do not
11990 percolate back to the file as seen by read(). (This is a bug on
11991 some variants of i386 svr4.0.) */
11992 for (i = 0; i < pagesize; ++i)
11993 *(data2 + i) = *(data2 + i) + 1;
11994 data3 = (char *) malloc (pagesize);
11995 if (!data3)
11996 exit (1);
11997 if (read (fd, data3, pagesize) != pagesize)
11998 exit (1);
11999 for (i = 0; i < pagesize; ++i)
12000 if (*(data + i) != *(data3 + i))
12001 exit (1);
12002 close (fd);
12003 exit (0);
12004}
12005_ACEOF
12006rm -f conftest$ac_exeext
12007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008 (eval $ac_link) 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; }; then
12017 ac_cv_func_mmap_fixed_mapped=yes
12018else
12019 echo "$as_me: program exited with status $ac_status" >&5
12020echo "$as_me: failed program was:" >&5
12021sed 's/^/| /' conftest.$ac_ext >&5
12022
12023( exit $ac_status )
12024ac_cv_func_mmap_fixed_mapped=no
12025fi
12026rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12027fi
12028fi
12029echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12030echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12031if test $ac_cv_func_mmap_fixed_mapped = yes; then
12032
12033cat >>confdefs.h <<\_ACEOF
12034#define HAVE_MMAP 1
12035_ACEOF
12036
12037fi
12038rm -f conftest.mmap
12039
12040
12041
12042for ac_func in madvise mprotect
12043do
12044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12045echo "$as_me:$LINENO: checking for $ac_func" >&5
12046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12047if eval "test \"\${$as_ac_var+set}\" = set"; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049else
12050 cat >conftest.$ac_ext <<_ACEOF
12051/* confdefs.h. */
12052_ACEOF
12053cat confdefs.h >>conftest.$ac_ext
12054cat >>conftest.$ac_ext <<_ACEOF
12055/* end confdefs.h. */
12056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12058#define $ac_func innocuous_$ac_func
12059
12060/* System header to define __stub macros and hopefully few prototypes,
12061 which can conflict with char $ac_func (); below.
12062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12063 <limits.h> exists even on freestanding compilers. */
12064
12065#ifdef __STDC__
12066# include <limits.h>
12067#else
12068# include <assert.h>
12069#endif
12070
12071#undef $ac_func
12072
12073/* Override any gcc2 internal prototype to avoid an error. */
12074#ifdef __cplusplus
12075extern "C"
12076{
12077#endif
12078/* We use char because int might match the return type of a gcc2
12079 builtin and then its argument prototype would still apply. */
12080char $ac_func ();
12081/* The GNU C library defines this for functions which it implements
12082 to always fail with ENOSYS. Some functions are actually named
12083 something starting with __ and the normal name is an alias. */
12084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12085choke me
12086#else
12087char (*f) () = $ac_func;
12088#endif
12089#ifdef __cplusplus
12090}
12091#endif
12092
12093int
12094main ()
12095{
12096return f != $ac_func;
12097 ;
12098 return 0;
12099}
12100_ACEOF
12101rm -f conftest.$ac_objext conftest$ac_exeext
12102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103 (eval $ac_link) 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
12110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest$ac_exeext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 eval "$as_ac_var=yes"
12123else
12124 echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
12127eval "$as_ac_var=no"
12128fi
12129rm -f conftest.err conftest.$ac_objext \
12130 conftest$ac_exeext conftest.$ac_ext
12131fi
12132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12134if test `eval echo '${'$as_ac_var'}'` = yes; then
12135 cat >>confdefs.h <<_ACEOF
12136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12137_ACEOF
12138
12139fi
12140done
12141
12142case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12143 true+yes )
12144cat >>confdefs.h <<\_ACEOF
12145#define USE_MMAP 1
12146_ACEOF
12147 ;;
12148esac
12149
12150rm -f doc/config.status
12151 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12152
12153 ac_config_commands="$ac_config_commands default"
12154
12155cat >confcache <<\_ACEOF
12156# This file is a shell script that caches the results of configure
12157# tests run on this system so they can be shared between configure
12158# scripts and configure runs, see configure's option --config-cache.
12159# It is not useful on other systems. If it contains results you don't
12160# want to keep, you may remove or edit it.
12161#
12162# config.status only pays attention to the cache file if you give it
12163# the --recheck option to rerun configure.
12164#
12165# `ac_cv_env_foo' variables (set or unset) will be overridden when
12166# loading this file, other *unset* `ac_cv_foo' will be assigned the
12167# following values.
12168
12169_ACEOF
12170
12171# The following way of writing the cache mishandles newlines in values,
12172# but we know of no workaround that is simple, portable, and efficient.
12173# So, don't put newlines in cache variables' values.
12174# Ultrix sh set writes to stderr and can't be redirected directly,
12175# and sets the high bit in the cache file unless we assign to the vars.
12176{
12177 (set) 2>&1 |
12178 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12179 *ac_space=\ *)
12180 # `set' does not quote correctly, so add quotes (double-quote
12181 # substitution turns \\\\ into \\, and sed turns \\ into \).
12182 sed -n \
12183 "s/'/'\\\\''/g;
12184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12185 ;;
12186 *)
12187 # `set' quotes correctly as required by POSIX, so do not add quotes.
12188 sed -n \
12189 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12190 ;;
12191 esac;
12192} |
12193 sed '
12194 t clear
12195 : clear
12196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12197 t end
12198 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12199 : end' >>confcache
12200if diff $cache_file confcache >/dev/null 2>&1; then :; else
12201 if test -w $cache_file; then
12202 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12203 cat confcache >$cache_file
12204 else
12205 echo "not updating unwritable cache $cache_file"
12206 fi
12207fi
12208rm -f confcache
12209
12210test "x$prefix" = xNONE && prefix=$ac_default_prefix
12211# Let make expand exec_prefix.
12212test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12213
12214# VPATH may cause trouble with some makes, so we remove $(srcdir),
12215# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12216# trailing colons and then remove the whole line if VPATH becomes empty
12217# (actually we leave an empty line to preserve line numbers).
12218if test "x$srcdir" = x.; then
12219 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12220s/:*\$(srcdir):*/:/;
12221s/:*\${srcdir}:*/:/;
12222s/:*@srcdir@:*/:/;
12223s/^\([^=]*=[ ]*\):*/\1/;
12224s/:*$//;
12225s/^[^=]*=[ ]*$//;
12226}'
12227fi
12228
12229DEFS=-DHAVE_CONFIG_H
12230
12231ac_libobjs=
12232ac_ltlibobjs=
12233for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12234 # 1. Remove the extension, and $U if already installed.
12235 ac_i=`echo "$ac_i" |
12236 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12237 # 2. Add them.
12238 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12239 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12240done
12241LIBOBJS=$ac_libobjs
12242
12243LTLIBOBJS=$ac_ltlibobjs
12244
12245
12246
12247: ${CONFIG_STATUS=./config.status}
12248ac_clean_files_save=$ac_clean_files
12249ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12250{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12251echo "$as_me: creating $CONFIG_STATUS" >&6;}
12252cat >$CONFIG_STATUS <<_ACEOF
12253#! $SHELL
12254# Generated by $as_me.
12255# Run this file to recreate the current configuration.
12256# Compiler output produced by configure, useful for debugging
12257# configure, is in config.log if it exists.
12258
12259debug=false
12260ac_cs_recheck=false
12261ac_cs_silent=false
12262SHELL=\${CONFIG_SHELL-$SHELL}
12263_ACEOF
12264
12265cat >>$CONFIG_STATUS <<\_ACEOF
12266## --------------------- ##
12267## M4sh Initialization. ##
12268## --------------------- ##
12269
12270# Be Bourne compatible
12271if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12272 emulate sh
12273 NULLCMD=:
12274 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12275 # is contrary to our usage. Disable this feature.
12276 alias -g '${1+"$@"}'='"$@"'
12277elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12278 set -o posix
12279fi
12280DUALCASE=1; export DUALCASE # for MKS sh
12281
12282# Support unset when possible.
12283if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12284 as_unset=unset
12285else
12286 as_unset=false
12287fi
12288
12289
12290# Work around bugs in pre-3.0 UWIN ksh.
12291$as_unset ENV MAIL MAILPATH
12292PS1='$ '
12293PS2='> '
12294PS4='+ '
12295
12296# NLS nuisances.
12297for as_var in \
12298 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12299 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12300 LC_TELEPHONE LC_TIME
12301do
12302 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12303 eval $as_var=C; export $as_var
12304 else
12305 $as_unset $as_var
12306 fi
12307done
12308
12309# Required to use basename.
12310if expr a : '\(a\)' >/dev/null 2>&1; then
12311 as_expr=expr
12312else
12313 as_expr=false
12314fi
12315
12316if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12317 as_basename=basename
12318else
12319 as_basename=false
12320fi
252b5132 12321
6be7c12c 12322
5464f5a1
NN
12323# Name of the executable.
12324as_me=`$as_basename "$0" ||
12325$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12326 X"$0" : 'X\(//\)$' \| \
12327 X"$0" : 'X\(/\)$' \| \
12328 . : '\(.\)' 2>/dev/null ||
12329echo X/"$0" |
12330 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12331 /^X\/\(\/\/\)$/{ s//\1/; q; }
12332 /^X\/\(\/\).*/{ s//\1/; q; }
12333 s/.*/./; q'`
12334
12335
12336# PATH needs CR, and LINENO needs CR and PATH.
12337# Avoid depending upon Character Ranges.
12338as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12339as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12340as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12341as_cr_digits='0123456789'
12342as_cr_alnum=$as_cr_Letters$as_cr_digits
12343
12344# The user is always right.
12345if test "${PATH_SEPARATOR+set}" != set; then
12346 echo "#! /bin/sh" >conf$$.sh
12347 echo "exit 0" >>conf$$.sh
12348 chmod +x conf$$.sh
12349 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12350 PATH_SEPARATOR=';'
12351 else
12352 PATH_SEPARATOR=:
12353 fi
12354 rm -f conf$$.sh
12355fi
12356
12357
12358 as_lineno_1=$LINENO
12359 as_lineno_2=$LINENO
12360 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12361 test "x$as_lineno_1" != "x$as_lineno_2" &&
12362 test "x$as_lineno_3" = "x$as_lineno_2" || {
12363 # Find who we are. Look in the path if we contain no path at all
12364 # relative or not.
12365 case $0 in
12366 *[\\/]* ) as_myself=$0 ;;
12367 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368for as_dir in $PATH
12369do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12373done
12374
12375 ;;
12376 esac
12377 # We did not find ourselves, most probably we were run as `sh COMMAND'
12378 # in which case we are not to be found in the path.
12379 if test "x$as_myself" = x; then
12380 as_myself=$0
12381 fi
12382 if test ! -f "$as_myself"; then
12383 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12384echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12385 { (exit 1); exit 1; }; }
12386 fi
12387 case $CONFIG_SHELL in
12388 '')
12389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12390for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12391do
12392 IFS=$as_save_IFS
12393 test -z "$as_dir" && as_dir=.
12394 for as_base in sh bash ksh sh5; do
12395 case $as_dir in
12396 /*)
12397 if ("$as_dir/$as_base" -c '
12398 as_lineno_1=$LINENO
12399 as_lineno_2=$LINENO
12400 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12401 test "x$as_lineno_1" != "x$as_lineno_2" &&
12402 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12403 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12404 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12405 CONFIG_SHELL=$as_dir/$as_base
12406 export CONFIG_SHELL
12407 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12408 fi;;
12409 esac
12410 done
12411done
12412;;
12413 esac
12414
12415 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12416 # uniformly replaced by the line number. The first 'sed' inserts a
12417 # line-number line before each line; the second 'sed' does the real
12418 # work. The second script uses 'N' to pair each line-number line
12419 # with the numbered line, and appends trailing '-' during
12420 # substitution so that $LINENO is not a special case at line end.
12421 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12422 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12423 sed '=' <$as_myself |
12424 sed '
12425 N
12426 s,$,-,
12427 : loop
12428 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12429 t loop
12430 s,-$,,
12431 s,^['$as_cr_digits']*\n,,
12432 ' >$as_me.lineno &&
12433 chmod +x $as_me.lineno ||
12434 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12435echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12436 { (exit 1); exit 1; }; }
12437
12438 # Don't try to exec as it changes $[0], causing all sort of problems
12439 # (the dirname of $[0] is not the place where we might find the
12440 # original and so on. Autoconf is especially sensible to this).
12441 . ./$as_me.lineno
12442 # Exit status is that of the last command.
12443 exit
252b5132 12444}
6be7c12c 12445
5464f5a1
NN
12446
12447case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12448 *c*,-n*) ECHO_N= ECHO_C='
12449' ECHO_T=' ' ;;
12450 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12451 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12452esac
12453
12454if expr a : '\(a\)' >/dev/null 2>&1; then
12455 as_expr=expr
252b5132 12456else
5464f5a1 12457 as_expr=false
252b5132 12458fi
5464f5a1
NN
12459
12460rm -f conf$$ conf$$.exe conf$$.file
12461echo >conf$$.file
12462if ln -s conf$$.file conf$$ 2>/dev/null; then
12463 # We could just check for DJGPP; but this test a) works b) is more generic
12464 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12465 if test -f conf$$.exe; then
12466 # Don't use ln at all; we don't have any links
12467 as_ln_s='cp -p'
12468 else
12469 as_ln_s='ln -s'
12470 fi
12471elif ln conf$$.file conf$$ 2>/dev/null; then
12472 as_ln_s=ln
12473else
12474 as_ln_s='cp -p'
252b5132 12475fi
5464f5a1 12476rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 12477
5464f5a1
NN
12478if mkdir -p . 2>/dev/null; then
12479 as_mkdir_p=:
12480else
12481 test -d ./-p && rmdir ./-p
12482 as_mkdir_p=false
252b5132 12483fi
b3baf5d0 12484
5464f5a1 12485as_executable_p="test -f"
252b5132 12486
5464f5a1
NN
12487# Sed expression to map a string onto a valid CPP name.
12488as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 12489
5464f5a1
NN
12490# Sed expression to map a string onto a valid variable name.
12491as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 12492
252b5132 12493
5464f5a1
NN
12494# IFS
12495# We need space, tab and new line, in precisely that order.
12496as_nl='
12497'
12498IFS=" $as_nl"
252b5132 12499
5464f5a1
NN
12500# CDPATH.
12501$as_unset CDPATH
12502
12503exec 6>&1
12504
12505# Open the log real soon, to keep \$[0] and so on meaningful, and to
12506# report actual input values of CONFIG_FILES etc. instead of their
12507# values after options handling. Logging --version etc. is OK.
12508exec 5>>config.log
12509{
12510 echo
12511 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12512## Running $as_me. ##
12513_ASBOX
12514} >&5
12515cat >&5 <<_CSEOF
12516
12517This file was extended by $as_me, which was
12518generated by GNU Autoconf 2.59. Invocation command line was
12519
12520 CONFIG_FILES = $CONFIG_FILES
12521 CONFIG_HEADERS = $CONFIG_HEADERS
12522 CONFIG_LINKS = $CONFIG_LINKS
12523 CONFIG_COMMANDS = $CONFIG_COMMANDS
12524 $ $0 $@
12525
12526_CSEOF
12527echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12528echo >&5
12529_ACEOF
12530
12531# Files that config.status was made for.
12532if test -n "$ac_config_files"; then
12533 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 12534fi
5464f5a1
NN
12535
12536if test -n "$ac_config_headers"; then
12537 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 12538fi
252b5132 12539
5464f5a1
NN
12540if test -n "$ac_config_links"; then
12541 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 12542fi
252b5132 12543
5464f5a1
NN
12544if test -n "$ac_config_commands"; then
12545 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12546fi
252b5132 12547
5464f5a1
NN
12548cat >>$CONFIG_STATUS <<\_ACEOF
12549
12550ac_cs_usage="\
12551\`$as_me' instantiates files from templates according to the
12552current configuration.
12553
12554Usage: $0 [OPTIONS] [FILE]...
12555
12556 -h, --help print this help, then exit
12557 -V, --version print version number, then exit
12558 -q, --quiet do not print progress messages
12559 -d, --debug don't remove temporary files
12560 --recheck update $as_me by reconfiguring in the same conditions
12561 --file=FILE[:TEMPLATE]
12562 instantiate the configuration file FILE
12563 --header=FILE[:TEMPLATE]
12564 instantiate the configuration header FILE
12565
12566Configuration files:
12567$config_files
12568
12569Configuration headers:
12570$config_headers
12571
12572Configuration commands:
12573$config_commands
12574
12575Report bugs to <bug-autoconf@gnu.org>."
12576_ACEOF
12577
12578cat >>$CONFIG_STATUS <<_ACEOF
12579ac_cs_version="\\
12580config.status
12581configured by $0, generated by GNU Autoconf 2.59,
12582 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12583
12584Copyright (C) 2003 Free Software Foundation, Inc.
12585This config.status script is free software; the Free Software Foundation
12586gives unlimited permission to copy, distribute and modify it."
12587srcdir=$srcdir
12588INSTALL="$INSTALL"
12589_ACEOF
12590
12591cat >>$CONFIG_STATUS <<\_ACEOF
12592# If no file are specified by the user, then we need to provide default
12593# value. By we need to know if files were specified by the user.
12594ac_need_defaults=:
12595while test $# != 0
12596do
12597 case $1 in
12598 --*=*)
12599 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12600 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12601 ac_shift=:
6be7c12c 12602 ;;
5464f5a1
NN
12603 -*)
12604 ac_option=$1
12605 ac_optarg=$2
12606 ac_shift=shift
6be7c12c 12607 ;;
5464f5a1
NN
12608 *) # This is not an option, so the user has probably given explicit
12609 # arguments.
12610 ac_option=$1
12611 ac_need_defaults=false;;
12612 esac
252b5132 12613
5464f5a1
NN
12614 case $ac_option in
12615 # Handling of the options.
12616_ACEOF
12617cat >>$CONFIG_STATUS <<\_ACEOF
12618 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12619 ac_cs_recheck=: ;;
12620 --version | --vers* | -V )
12621 echo "$ac_cs_version"; exit 0 ;;
12622 --he | --h)
12623 # Conflict between --help and --header
12624 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12625Try \`$0 --help' for more information." >&5
12626echo "$as_me: error: ambiguous option: $1
12627Try \`$0 --help' for more information." >&2;}
12628 { (exit 1); exit 1; }; };;
12629 --help | --hel | -h )
12630 echo "$ac_cs_usage"; exit 0 ;;
12631 --debug | --d* | -d )
12632 debug=: ;;
12633 --file | --fil | --fi | --f )
12634 $ac_shift
12635 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12636 ac_need_defaults=false;;
12637 --header | --heade | --head | --hea )
12638 $ac_shift
12639 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12640 ac_need_defaults=false;;
12641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12642 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12643 ac_cs_silent=: ;;
6be7c12c 12644
5464f5a1
NN
12645 # This is an error.
12646 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12647Try \`$0 --help' for more information." >&5
12648echo "$as_me: error: unrecognized option: $1
12649Try \`$0 --help' for more information." >&2;}
12650 { (exit 1); exit 1; }; } ;;
252b5132 12651
5464f5a1 12652 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 12653
5464f5a1
NN
12654 esac
12655 shift
12656done
6be7c12c 12657
5464f5a1 12658ac_configure_extra_args=
252b5132 12659
5464f5a1
NN
12660if $ac_cs_silent; then
12661 exec 6>/dev/null
12662 ac_configure_extra_args="$ac_configure_extra_args --silent"
12663fi
6be7c12c 12664
5464f5a1
NN
12665_ACEOF
12666cat >>$CONFIG_STATUS <<_ACEOF
12667if \$ac_cs_recheck; then
12668 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12669 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12670fi
12671
12672_ACEOF
12673
12674cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 12675#
5464f5a1 12676# INIT-COMMANDS section.
6be7c12c 12677#
b3baf5d0 12678
5464f5a1
NN
12679
12680
12681
12682_ACEOF
12683
12684
12685
12686cat >>$CONFIG_STATUS <<\_ACEOF
12687for ac_config_target in $ac_config_targets
252b5132 12688do
5464f5a1
NN
12689 case "$ac_config_target" in
12690 # Handling of arguments.
12691 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12692 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12693 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12694 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12695 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12696 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12697 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12698 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12699echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12700 { (exit 1); exit 1; }; };;
252b5132
RH
12701 esac
12702done
12703
5464f5a1
NN
12704# If the user did not use the arguments to specify the items to instantiate,
12705# then the envvar interface is used. Set only those that are not.
12706# We use the long form for the default assignment because of an extremely
12707# bizarre bug on SunOS 4.1.3.
12708if $ac_need_defaults; then
12709 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12710 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12711 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12712fi
12713
12714# Have a temporary directory for convenience. Make it in the build tree
12715# simply because there is no reason to put it here, and in addition,
12716# creating and moving files from /tmp can sometimes cause problems.
12717# Create a temporary directory, and hook for its removal unless debugging.
12718$debug ||
12719{
12720 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12721 trap '{ (exit 1); exit 1; }' 1 2 13 15
12722}
b3baf5d0 12723
5464f5a1 12724# Create a (secure) tmp directory for tmp files.
b3baf5d0 12725
5464f5a1
NN
12726{
12727 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12728 test -n "$tmp" && test -d "$tmp"
12729} ||
12730{
12731 tmp=./confstat$$-$RANDOM
12732 (umask 077 && mkdir $tmp)
12733} ||
12734{
12735 echo "$me: cannot create a temporary directory in ." >&2
12736 { (exit 1); exit 1; }
12737}
12738
12739_ACEOF
12740
12741cat >>$CONFIG_STATUS <<_ACEOF
12742
12743#
12744# CONFIG_FILES section.
12745#
b3baf5d0 12746
5464f5a1
NN
12747# No need to generate the scripts if there are no CONFIG_FILES.
12748# This happens for instance when ./config.status config.h
12749if test -n "\$CONFIG_FILES"; then
12750 # Protect against being on the right side of a sed subst in config.status.
12751 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12752 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12753s,@SHELL@,$SHELL,;t t
12754s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12755s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12756s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12757s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12758s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12759s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12760s,@exec_prefix@,$exec_prefix,;t t
12761s,@prefix@,$prefix,;t t
12762s,@program_transform_name@,$program_transform_name,;t t
12763s,@bindir@,$bindir,;t t
12764s,@sbindir@,$sbindir,;t t
12765s,@libexecdir@,$libexecdir,;t t
12766s,@datadir@,$datadir,;t t
12767s,@sysconfdir@,$sysconfdir,;t t
12768s,@sharedstatedir@,$sharedstatedir,;t t
12769s,@localstatedir@,$localstatedir,;t t
12770s,@libdir@,$libdir,;t t
12771s,@includedir@,$includedir,;t t
12772s,@oldincludedir@,$oldincludedir,;t t
12773s,@infodir@,$infodir,;t t
12774s,@mandir@,$mandir,;t t
12775s,@build_alias@,$build_alias,;t t
12776s,@host_alias@,$host_alias,;t t
12777s,@target_alias@,$target_alias,;t t
12778s,@DEFS@,$DEFS,;t t
12779s,@ECHO_C@,$ECHO_C,;t t
12780s,@ECHO_N@,$ECHO_N,;t t
12781s,@ECHO_T@,$ECHO_T,;t t
12782s,@LIBS@,$LIBS,;t t
12783s,@build@,$build,;t t
12784s,@build_cpu@,$build_cpu,;t t
12785s,@build_vendor@,$build_vendor,;t t
12786s,@build_os@,$build_os,;t t
12787s,@host@,$host,;t t
12788s,@host_cpu@,$host_cpu,;t t
12789s,@host_vendor@,$host_vendor,;t t
12790s,@host_os@,$host_os,;t t
12791s,@target@,$target,;t t
12792s,@target_cpu@,$target_cpu,;t t
12793s,@target_vendor@,$target_vendor,;t t
12794s,@target_os@,$target_os,;t t
12795s,@CC@,$CC,;t t
12796s,@CFLAGS@,$CFLAGS,;t t
12797s,@LDFLAGS@,$LDFLAGS,;t t
12798s,@CPPFLAGS@,$CPPFLAGS,;t t
12799s,@ac_ct_CC@,$ac_ct_CC,;t t
12800s,@EXEEXT@,$EXEEXT,;t t
12801s,@OBJEXT@,$OBJEXT,;t t
12802s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12803s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12804s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12805s,@PACKAGE@,$PACKAGE,;t t
12806s,@VERSION@,$VERSION,;t t
12807s,@ACLOCAL@,$ACLOCAL,;t t
12808s,@AUTOCONF@,$AUTOCONF,;t t
12809s,@AUTOMAKE@,$AUTOMAKE,;t t
12810s,@AUTOHEADER@,$AUTOHEADER,;t t
12811s,@MAKEINFO@,$MAKEINFO,;t t
12812s,@SET_MAKE@,$SET_MAKE,;t t
12813s,@AR@,$AR,;t t
12814s,@ac_ct_AR@,$ac_ct_AR,;t t
12815s,@RANLIB@,$RANLIB,;t t
12816s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12817s,@LN_S@,$LN_S,;t t
12818s,@STRIP@,$STRIP,;t t
12819s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12820s,@LIBTOOL@,$LIBTOOL,;t t
12821s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12822s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12823s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12824s,@MAINT@,$MAINT,;t t
12825s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12826s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
12827s,@bfdlibdir@,$bfdlibdir,;t t
12828s,@bfdincludedir@,$bfdincludedir,;t t
12829s,@CPP@,$CPP,;t t
12830s,@EGREP@,$EGREP,;t t
12831s,@ALLOCA@,$ALLOCA,;t t
12832s,@USE_NLS@,$USE_NLS,;t t
12833s,@MSGFMT@,$MSGFMT,;t t
12834s,@GMSGFMT@,$GMSGFMT,;t t
12835s,@XGETTEXT@,$XGETTEXT,;t t
12836s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12837s,@CATALOGS@,$CATALOGS,;t t
12838s,@CATOBJEXT@,$CATOBJEXT,;t t
12839s,@DATADIRNAME@,$DATADIRNAME,;t t
12840s,@GMOFILES@,$GMOFILES,;t t
12841s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12842s,@INTLDEPS@,$INTLDEPS,;t t
12843s,@INTLLIBS@,$INTLLIBS,;t t
12844s,@INTLOBJS@,$INTLOBJS,;t t
12845s,@POFILES@,$POFILES,;t t
12846s,@POSUB@,$POSUB,;t t
12847s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
12848s,@GT_NO@,$GT_NO,;t t
12849s,@GT_YES@,$GT_YES,;t t
12850s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12851s,@l@,$l,;t t
12852s,@HDEFINES@,$HDEFINES,;t t
12853s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
12854s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
12855s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
12856s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
12857s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
12858s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12859s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12860s,@COREFILE@,$COREFILE,;t t
12861s,@COREFLAG@,$COREFLAG,;t t
12862s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
12863s,@WIN32LIBADD@,$WIN32LIBADD,;t t
12864s,@TDEFINES@,$TDEFINES,;t t
12865s,@wordsize@,$wordsize,;t t
12866s,@bfd_libs@,$bfd_libs,;t t
12867s,@all_backends@,$all_backends,;t t
12868s,@bfd_backends@,$bfd_backends,;t t
12869s,@bfd_machines@,$bfd_machines,;t t
12870s,@bfd_default_target_size@,$bfd_default_target_size,;t t
12871s,@bfd_file_ptr@,$bfd_file_ptr,;t t
12872s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
12873s,@tdefaults@,$tdefaults,;t t
12874s,@LIBOBJS@,$LIBOBJS,;t t
12875s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 12876CEOF
252b5132 12877
5464f5a1
NN
12878_ACEOF
12879
12880 cat >>$CONFIG_STATUS <<\_ACEOF
12881 # Split the substitutions into bite-sized pieces for seds with
12882 # small command number limits, like on Digital OSF/1 and HP-UX.
12883 ac_max_sed_lines=48
12884 ac_sed_frag=1 # Number of current file.
12885 ac_beg=1 # First line for current file.
12886 ac_end=$ac_max_sed_lines # Line after last line for current file.
12887 ac_more_lines=:
12888 ac_sed_cmds=
12889 while $ac_more_lines; do
12890 if test $ac_beg -gt 1; then
12891 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 12892 else
5464f5a1
NN
12893 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12894 fi
12895 if test ! -s $tmp/subs.frag; then
12896 ac_more_lines=false
12897 else
12898 # The purpose of the label and of the branching condition is to
12899 # speed up the sed processing (if there are no `@' at all, there
12900 # is no need to browse any of the substitutions).
12901 # These are the two extra sed commands mentioned above.
12902 (echo ':t
12903 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12904 if test -z "$ac_sed_cmds"; then
12905 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12906 else
12907 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12908 fi
12909 ac_sed_frag=`expr $ac_sed_frag + 1`
12910 ac_beg=$ac_end
12911 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 12912 fi
5464f5a1
NN
12913 done
12914 if test -z "$ac_sed_cmds"; then
12915 ac_sed_cmds=cat
252b5132 12916 fi
5464f5a1 12917fi # test -n "$CONFIG_FILES"
6be7c12c 12918
5464f5a1
NN
12919_ACEOF
12920cat >>$CONFIG_STATUS <<\_ACEOF
12921for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 12922 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
12923 case $ac_file in
12924 - | *:- | *:-:* ) # input from stdin
12925 cat >$tmp/stdin
12926 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12927 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12928 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12929 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12930 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
12931 esac
12932
5464f5a1
NN
12933 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12934 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12935$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12936 X"$ac_file" : 'X\(//\)[^/]' \| \
12937 X"$ac_file" : 'X\(//\)$' \| \
12938 X"$ac_file" : 'X\(/\)' \| \
12939 . : '\(.\)' 2>/dev/null ||
12940echo X"$ac_file" |
12941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12943 /^X\(\/\/\)$/{ s//\1/; q; }
12944 /^X\(\/\).*/{ s//\1/; q; }
12945 s/.*/./; q'`
12946 { if $as_mkdir_p; then
12947 mkdir -p "$ac_dir"
252b5132 12948 else
5464f5a1
NN
12949 as_dir="$ac_dir"
12950 as_dirs=
12951 while test ! -d "$as_dir"; do
12952 as_dirs="$as_dir $as_dirs"
12953 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12955 X"$as_dir" : 'X\(//\)[^/]' \| \
12956 X"$as_dir" : 'X\(//\)$' \| \
12957 X"$as_dir" : 'X\(/\)' \| \
12958 . : '\(.\)' 2>/dev/null ||
12959echo X"$as_dir" |
12960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12962 /^X\(\/\/\)$/{ s//\1/; q; }
12963 /^X\(\/\).*/{ s//\1/; q; }
12964 s/.*/./; q'`
12965 done
12966 test ! -n "$as_dirs" || mkdir $as_dirs
12967 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12968echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12969 { (exit 1); exit 1; }; }; }
12970
12971 ac_builddir=.
12972
12973if test "$ac_dir" != .; then
12974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12975 # A "../" for each directory in $ac_dir_suffix.
12976 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12977else
12978 ac_dir_suffix= ac_top_builddir=
12979fi
252b5132 12980
5464f5a1
NN
12981case $srcdir in
12982 .) # No --srcdir option. We are building in place.
12983 ac_srcdir=.
12984 if test -z "$ac_top_builddir"; then
12985 ac_top_srcdir=.
12986 else
12987 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12988 fi ;;
12989 [\\/]* | ?:[\\/]* ) # Absolute path.
12990 ac_srcdir=$srcdir$ac_dir_suffix;
12991 ac_top_srcdir=$srcdir ;;
252b5132 12992 *) # Relative path.
5464f5a1
NN
12993 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12994 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12995esac
252b5132 12996
5464f5a1
NN
12997# Do not use `cd foo && pwd` to compute absolute paths, because
12998# the directories may not exist.
12999case `pwd` in
13000.) ac_abs_builddir="$ac_dir";;
13001*)
13002 case "$ac_dir" in
13003 .) ac_abs_builddir=`pwd`;;
13004 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13005 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13006 esac;;
13007esac
13008case $ac_abs_builddir in
13009.) ac_abs_top_builddir=${ac_top_builddir}.;;
13010*)
13011 case ${ac_top_builddir}. in
13012 .) ac_abs_top_builddir=$ac_abs_builddir;;
13013 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13014 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13015 esac;;
13016esac
13017case $ac_abs_builddir in
13018.) ac_abs_srcdir=$ac_srcdir;;
13019*)
13020 case $ac_srcdir in
13021 .) ac_abs_srcdir=$ac_abs_builddir;;
13022 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13023 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13024 esac;;
13025esac
13026case $ac_abs_builddir in
13027.) ac_abs_top_srcdir=$ac_top_srcdir;;
13028*)
13029 case $ac_top_srcdir in
13030 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13031 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13032 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13033 esac;;
13034esac
252b5132 13035
5464f5a1
NN
13036
13037 case $INSTALL in
13038 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13039 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 13040 esac
252b5132 13041
5464f5a1
NN
13042 # Let's still pretend it is `configure' which instantiates (i.e., don't
13043 # use $as_me), people would be surprised to read:
13044 # /* config.h. Generated by config.status. */
13045 if test x"$ac_file" = x-; then
13046 configure_input=
13047 else
13048 configure_input="$ac_file. "
13049 fi
13050 configure_input=$configure_input"Generated from `echo $ac_file_in |
13051 sed 's,.*/,,'` by configure."
13052
13053 # First look for the input files in the build tree, otherwise in the
13054 # src tree.
13055 ac_file_inputs=`IFS=:
13056 for f in $ac_file_in; do
13057 case $f in
13058 -) echo $tmp/stdin ;;
13059 [\\/$]*)
13060 # Absolute (can't be DOS-style, as IFS=:)
13061 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13062echo "$as_me: error: cannot find input file: $f" >&2;}
13063 { (exit 1); exit 1; }; }
13064 echo "$f";;
13065 *) # Relative
13066 if test -f "$f"; then
13067 # Build tree
13068 echo "$f"
13069 elif test -f "$srcdir/$f"; then
13070 # Source tree
13071 echo "$srcdir/$f"
13072 else
13073 # /dev/null tree
13074 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13075echo "$as_me: error: cannot find input file: $f" >&2;}
13076 { (exit 1); exit 1; }; }
13077 fi;;
13078 esac
13079 done` || { (exit 1); exit 1; }
13080
13081 if test x"$ac_file" != x-; then
13082 { echo "$as_me:$LINENO: creating $ac_file" >&5
13083echo "$as_me: creating $ac_file" >&6;}
13084 rm -f "$ac_file"
13085 fi
13086_ACEOF
13087cat >>$CONFIG_STATUS <<_ACEOF
13088 sed "$ac_vpsub
13089$extrasub
13090_ACEOF
13091cat >>$CONFIG_STATUS <<\_ACEOF
13092:t
13093/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13094s,@configure_input@,$configure_input,;t t
13095s,@srcdir@,$ac_srcdir,;t t
13096s,@abs_srcdir@,$ac_abs_srcdir,;t t
13097s,@top_srcdir@,$ac_top_srcdir,;t t
13098s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13099s,@builddir@,$ac_builddir,;t t
13100s,@abs_builddir@,$ac_abs_builddir,;t t
13101s,@top_builddir@,$ac_top_builddir,;t t
13102s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13103s,@INSTALL@,$ac_INSTALL,;t t
13104" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13105 rm -f $tmp/stdin
13106 if test x"$ac_file" != x-; then
13107 mv $tmp/out $ac_file
13108 else
13109 cat $tmp/out
13110 rm -f $tmp/out
13111 fi
13112
13113done
13114_ACEOF
13115cat >>$CONFIG_STATUS <<\_ACEOF
13116
13117#
13118# CONFIG_HEADER section.
13119#
252b5132
RH
13120
13121# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13122# NAME is the cpp macro being defined and VALUE is the value it is being given.
13123#
13124# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
13125ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13126ac_dB='[ ].*$,\1#\2'
13127ac_dC=' '
13128ac_dD=',;t'
13129# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13130ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13131ac_uB='$,\1#\2define\3'
252b5132 13132ac_uC=' '
5464f5a1
NN
13133ac_uD=',;t'
13134
13135for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 13136 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13137 case $ac_file in
13138 - | *:- | *:-:* ) # input from stdin
13139 cat >$tmp/stdin
13140 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13141 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13142 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13143 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13144 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13145 esac
13146
5464f5a1
NN
13147 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13148echo "$as_me: creating $ac_file" >&6;}
13149
13150 # First look for the input files in the build tree, otherwise in the
13151 # src tree.
13152 ac_file_inputs=`IFS=:
13153 for f in $ac_file_in; do
13154 case $f in
13155 -) echo $tmp/stdin ;;
13156 [\\/$]*)
13157 # Absolute (can't be DOS-style, as IFS=:)
13158 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13159echo "$as_me: error: cannot find input file: $f" >&2;}
13160 { (exit 1); exit 1; }; }
13161 # Do quote $f, to prevent DOS paths from being IFS'd.
13162 echo "$f";;
13163 *) # Relative
13164 if test -f "$f"; then
13165 # Build tree
13166 echo "$f"
13167 elif test -f "$srcdir/$f"; then
13168 # Source tree
13169 echo "$srcdir/$f"
13170 else
13171 # /dev/null tree
13172 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13173echo "$as_me: error: cannot find input file: $f" >&2;}
13174 { (exit 1); exit 1; }; }
13175 fi;;
13176 esac
13177 done` || { (exit 1); exit 1; }
13178 # Remove the trailing spaces.
13179 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13180
13181_ACEOF
13182
13183# Transform confdefs.h into two sed scripts, `conftest.defines' and
13184# `conftest.undefs', that substitutes the proper values into
13185# config.h.in to produce config.h. The first handles `#define'
13186# templates, and the second `#undef' templates.
13187# And first: Protect against being on the right side of a sed subst in
13188# config.status. Protect against being in an unquoted here document
13189# in config.status.
13190rm -f conftest.defines conftest.undefs
13191# Using a here document instead of a string reduces the quoting nightmare.
13192# Putting comments in sed scripts is not portable.
13193#
13194# `end' is used to avoid that the second main sed command (meant for
13195# 0-ary CPP macros) applies to n-ary macro definitions.
13196# See the Autoconf documentation for `clear'.
13197cat >confdef2sed.sed <<\_ACEOF
13198s/[\\&,]/\\&/g
13199s,[\\$`],\\&,g
13200t clear
13201: clear
13202s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13203t end
13204s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13205: end
13206_ACEOF
13207# If some macros were called several times there might be several times
13208# the same #defines, which is useless. Nevertheless, we may not want to
13209# sort them, since we want the *last* AC-DEFINE to be honored.
13210uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13211sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13212rm -f confdef2sed.sed
252b5132
RH
13213
13214# This sed command replaces #undef with comments. This is necessary, for
13215# example, in the case of _POSIX_SOURCE, which is predefined and required
13216# on some systems where configure will not decide to define it.
5464f5a1
NN
13217cat >>conftest.undefs <<\_ACEOF
13218s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13219_ACEOF
13220
13221# Break up conftest.defines because some shells have a limit on the size
13222# of here documents, and old seds have small limits too (100 cmds).
13223echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13224echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13225echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13226echo ' :' >>$CONFIG_STATUS
13227rm -f conftest.tail
13228while grep . conftest.defines >/dev/null
13229do
13230 # Write a limited-size here document to $tmp/defines.sed.
13231 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13232 # Speed up: don't consider the non `#define' lines.
13233 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13234 # Work around the forget-to-reset-the-flag bug.
13235 echo 't clr' >>$CONFIG_STATUS
13236 echo ': clr' >>$CONFIG_STATUS
13237 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13238 echo 'CEOF
13239 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13240 rm -f $tmp/in
13241 mv $tmp/out $tmp/in
13242' >>$CONFIG_STATUS
13243 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13244 rm -f conftest.defines
13245 mv conftest.tail conftest.defines
13246done
13247rm -f conftest.defines
13248echo ' fi # grep' >>$CONFIG_STATUS
13249echo >>$CONFIG_STATUS
252b5132 13250
5464f5a1
NN
13251# Break up conftest.undefs because some shells have a limit on the size
13252# of here documents, and old seds have small limits too (100 cmds).
13253echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13254rm -f conftest.tail
5464f5a1 13255while grep . conftest.undefs >/dev/null
252b5132 13256do
5464f5a1
NN
13257 # Write a limited-size here document to $tmp/undefs.sed.
13258 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13259 # Speed up: don't consider the non `#undef'
13260 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13261 # Work around the forget-to-reset-the-flag bug.
13262 echo 't clr' >>$CONFIG_STATUS
13263 echo ': clr' >>$CONFIG_STATUS
13264 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13265 echo 'CEOF
5464f5a1
NN
13266 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13267 rm -f $tmp/in
13268 mv $tmp/out $tmp/in
13269' >>$CONFIG_STATUS
13270 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13271 rm -f conftest.undefs
13272 mv conftest.tail conftest.undefs
252b5132 13273done
5464f5a1
NN
13274rm -f conftest.undefs
13275
13276cat >>$CONFIG_STATUS <<\_ACEOF
13277 # Let's still pretend it is `configure' which instantiates (i.e., don't
13278 # use $as_me), people would be surprised to read:
13279 # /* config.h. Generated by config.status. */
13280 if test x"$ac_file" = x-; then
13281 echo "/* Generated by configure. */" >$tmp/config.h
13282 else
13283 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13284 fi
13285 cat $tmp/in >>$tmp/config.h
13286 rm -f $tmp/in
13287 if test x"$ac_file" != x-; then
13288 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13289 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13290echo "$as_me: $ac_file is unchanged" >&6;}
13291 else
13292 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13293$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13294 X"$ac_file" : 'X\(//\)[^/]' \| \
13295 X"$ac_file" : 'X\(//\)$' \| \
13296 X"$ac_file" : 'X\(/\)' \| \
13297 . : '\(.\)' 2>/dev/null ||
13298echo X"$ac_file" |
13299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13300 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13301 /^X\(\/\/\)$/{ s//\1/; q; }
13302 /^X\(\/\).*/{ s//\1/; q; }
13303 s/.*/./; q'`
13304 { if $as_mkdir_p; then
13305 mkdir -p "$ac_dir"
252b5132 13306 else
5464f5a1
NN
13307 as_dir="$ac_dir"
13308 as_dirs=
13309 while test ! -d "$as_dir"; do
13310 as_dirs="$as_dir $as_dirs"
13311 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13312$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13313 X"$as_dir" : 'X\(//\)[^/]' \| \
13314 X"$as_dir" : 'X\(//\)$' \| \
13315 X"$as_dir" : 'X\(/\)' \| \
13316 . : '\(.\)' 2>/dev/null ||
13317echo X"$as_dir" |
13318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13319 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13320 /^X\(\/\/\)$/{ s//\1/; q; }
13321 /^X\(\/\).*/{ s//\1/; q; }
13322 s/.*/./; q'`
13323 done
13324 test ! -n "$as_dirs" || mkdir $as_dirs
13325 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13326echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13327 { (exit 1); exit 1; }; }; }
13328
13329 rm -f $ac_file
13330 mv $tmp/config.h $ac_file
252b5132 13331 fi
5464f5a1
NN
13332 else
13333 cat $tmp/config.h
13334 rm -f $tmp/config.h
252b5132 13335 fi
5464f5a1
NN
13336done
13337_ACEOF
13338cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13339
5464f5a1
NN
13340#
13341# CONFIG_COMMANDS section.
13342#
13343for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13344 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13345 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13346 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13347$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13348 X"$ac_dest" : 'X\(//\)[^/]' \| \
13349 X"$ac_dest" : 'X\(//\)$' \| \
13350 X"$ac_dest" : 'X\(/\)' \| \
13351 . : '\(.\)' 2>/dev/null ||
13352echo X"$ac_dest" |
13353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13355 /^X\(\/\/\)$/{ s//\1/; q; }
13356 /^X\(\/\).*/{ s//\1/; q; }
13357 s/.*/./; q'`
13358 { if $as_mkdir_p; then
13359 mkdir -p "$ac_dir"
13360 else
13361 as_dir="$ac_dir"
13362 as_dirs=
13363 while test ! -d "$as_dir"; do
13364 as_dirs="$as_dir $as_dirs"
13365 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13366$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13367 X"$as_dir" : 'X\(//\)[^/]' \| \
13368 X"$as_dir" : 'X\(//\)$' \| \
13369 X"$as_dir" : 'X\(/\)' \| \
13370 . : '\(.\)' 2>/dev/null ||
13371echo X"$as_dir" |
13372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13373 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13374 /^X\(\/\/\)$/{ s//\1/; q; }
13375 /^X\(\/\).*/{ s//\1/; q; }
13376 s/.*/./; q'`
13377 done
13378 test ! -n "$as_dirs" || mkdir $as_dirs
13379 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13380echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13381 { (exit 1); exit 1; }; }; }
b3baf5d0 13382
5464f5a1 13383 ac_builddir=.
b3baf5d0 13384
5464f5a1
NN
13385if test "$ac_dir" != .; then
13386 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13387 # A "../" for each directory in $ac_dir_suffix.
13388 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13389else
13390 ac_dir_suffix= ac_top_builddir=
13391fi
13392
13393case $srcdir in
13394 .) # No --srcdir option. We are building in place.
13395 ac_srcdir=.
13396 if test -z "$ac_top_builddir"; then
13397 ac_top_srcdir=.
13398 else
13399 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13400 fi ;;
13401 [\\/]* | ?:[\\/]* ) # Absolute path.
13402 ac_srcdir=$srcdir$ac_dir_suffix;
13403 ac_top_srcdir=$srcdir ;;
13404 *) # Relative path.
13405 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13406 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13407esac
13408
13409# Do not use `cd foo && pwd` to compute absolute paths, because
13410# the directories may not exist.
13411case `pwd` in
13412.) ac_abs_builddir="$ac_dir";;
13413*)
13414 case "$ac_dir" in
13415 .) ac_abs_builddir=`pwd`;;
13416 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13417 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13418 esac;;
13419esac
13420case $ac_abs_builddir in
13421.) ac_abs_top_builddir=${ac_top_builddir}.;;
13422*)
13423 case ${ac_top_builddir}. in
13424 .) ac_abs_top_builddir=$ac_abs_builddir;;
13425 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13426 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13427 esac;;
13428esac
13429case $ac_abs_builddir in
13430.) ac_abs_srcdir=$ac_srcdir;;
13431*)
13432 case $ac_srcdir in
13433 .) ac_abs_srcdir=$ac_abs_builddir;;
13434 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13435 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13436 esac;;
13437esac
13438case $ac_abs_builddir in
13439.) ac_abs_top_srcdir=$ac_top_srcdir;;
13440*)
13441 case $ac_top_srcdir in
13442 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13443 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13444 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13445 esac;;
13446esac
13447
13448
13449 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13450echo "$as_me: executing $ac_dest commands" >&6;}
13451 case $ac_dest in
13452 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
13453 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
13454 esac
13455done
13456_ACEOF
13457
13458cat >>$CONFIG_STATUS <<\_ACEOF
13459
13460{ (exit 0); exit 0; }
13461_ACEOF
252b5132 13462chmod +x $CONFIG_STATUS
5464f5a1
NN
13463ac_clean_files=$ac_clean_files_save
13464
13465
13466# configure is writing to config.log, and then calls config.status.
13467# config.status does its own redirection, appending to config.log.
13468# Unfortunately, on DOS this fails, as config.log is still kept open
13469# by configure, so config.status won't be able to write to it; its
13470# output is simply discarded. So we exec the FD to /dev/null,
13471# effectively closing config.log, so it can be properly (re)opened and
13472# appended to by config.status. When coming back to configure, we
13473# need to make the FD available again.
13474if test "$no_create" != yes; then
13475 ac_cs_success=:
13476 ac_config_status_args=
13477 test "$silent" = yes &&
13478 ac_config_status_args="$ac_config_status_args --quiet"
13479 exec 5>/dev/null
13480 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13481 exec 5>>config.log
13482 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13483 # would make configure fail if this is the last instruction.
13484 $ac_cs_success || { (exit 1); exit 1; }
13485fi
252b5132 13486
55c80943 13487
This page took 1.038538 seconds and 4 git commands to generate.