* elf32-arm.c (elf_backend_default_use_rela_p): Define to zero for
[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
f5385ebf 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS'
5464f5a1 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
5464f5a1
NN
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
5464f5a1 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
5464f5a1
NN
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
5464f5a1 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
5464f5a1 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
5464f5a1 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 377 build_alias=$ac_optarg ;;
252b5132
RH
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
5464f5a1 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
5464f5a1 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
5464f5a1
NN
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
5464f5a1 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
5464f5a1
NN
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
5464f5a1 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
5464f5a1 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
5464f5a1
NN
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
5464f5a1 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 440 host_alias=$ac_optarg ;;
252b5132
RH
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 457 libdir=$ac_optarg ;;
252b5132
RH
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
5464f5a1 464 libexecdir=$ac_optarg ;;
252b5132
RH
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5464f5a1 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 478 mandir=$ac_optarg ;;
252b5132
RH
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 485 | --no-cr | --no-c | -n)
252b5132
RH
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 504 prefix=$ac_optarg ;;
252b5132
RH
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 511 program_prefix=$ac_optarg ;;
252b5132
RH
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 518 program_suffix=$ac_optarg ;;
252b5132
RH
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 535 program_transform_name=$ac_optarg ;;
252b5132
RH
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
5464f5a1 545 sbindir=$ac_optarg ;;
252b5132
RH
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
5464f5a1 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
5464f5a1 561 site=$ac_optarg ;;
6be7c12c 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 566 srcdir=$ac_optarg ;;
252b5132
RH
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
5464f5a1
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
5464f5a1 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
5464f5a1
NN
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
5464f5a1 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
5464f5a1 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
5464f5a1
NN
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
252b5132
RH
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 617 x_includes=$ac_optarg ;;
252b5132
RH
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 624 x_libraries=$ac_optarg ;;
252b5132 625
5464f5a1
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
5464f5a1
NN
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
252b5132 641 *)
5464f5a1
NN
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
5464f5a1
NN
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
252b5132 656fi
252b5132 657
5464f5a1
NN
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
6be7c12c 668
5464f5a1
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
5464f5a1
NN
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
252b5132
RH
678 esac
679done
680
5464f5a1
NN
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
252b5132 698
5464f5a1
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
5464f5a1
NN
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
252b5132
RH
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
5464f5a1
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
5464f5a1
NN
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
b3baf5d0 773
5464f5a1
NN
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
252b5132 782
5464f5a1 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
5464f5a1
NN
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 787
5464f5a1 788Defaults for the options are specified in brackets.
6be7c12c 789
5464f5a1
NN
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
6be7c12c 809
5464f5a1
NN
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
6be7c12c 814
5464f5a1 815For better control, use the options below.
6be7c12c 816
5464f5a1
NN
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
6be7c12c 831
5464f5a1 832 cat <<\_ACEOF
6be7c12c 833
5464f5a1
NN
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 838
5464f5a1
NN
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
252b5132 844fi
252b5132 845
5464f5a1 846if test -n "$ac_init_help"; then
6be7c12c 847
5464f5a1 848 cat <<\_ACEOF
252b5132 849
5464f5a1
NN
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
5464f5a1
NN
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-build-warnings Enable build-time compiler warnings if gcc is used
f5385ebf
AM
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
5464f5a1
NN
865 --enable-install-libbfd controls installation of libbfd and related headers
866 --disable-nls do not use Native Language Support
867
868Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-gnu-ld assume the C compiler uses GNU ld default=no
872 --with-pic try to use only PIC/non-PIC objects default=use both
873 --with-mmap try using mmap for BFD input files if available
874 --with-included-gettext use the GNU gettext library included here
875
876Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
884
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
888_ACEOF
889fi
890
891if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
897
898if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902else
903 ac_dir_suffix= ac_top_builddir=
904fi
905
906case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
920esac
921
5464f5a1
NN
922# Do not use `cd foo && pwd` to compute absolute paths, because
923# the directories may not exist.
924case `pwd` in
925.) ac_abs_builddir="$ac_dir";;
926*)
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_top_builddir=${ac_top_builddir}.;;
935*)
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_srcdir=$ac_srcdir;;
944*)
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_srcdir=$ac_top_srcdir;;
953*)
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959esac
6be7c12c 960
5464f5a1
NN
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 fi
8fb84ecc 976 cd $ac_popdir
5464f5a1 977 done
6be7c12c
AO
978fi
979
5464f5a1
NN
980test -n "$ac_init_help" && exit 0
981if $ac_init_version; then
982 cat <<\_ACEOF
6be7c12c 983
5464f5a1
NN
984Copyright (C) 2003 Free Software Foundation, Inc.
985This configure script is free software; the Free Software Foundation
986gives unlimited permission to copy, distribute and modify it.
987_ACEOF
988 exit 0
989fi
990exec 5>config.log
991cat >&5 <<_ACEOF
992This file contains any messages produced by compilers while
993running configure, to aid debugging if configure makes a mistake.
6be7c12c 994
5464f5a1
NN
995It was created by $as_me, which was
996generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 997
5464f5a1 998 $ $0 $@
6be7c12c 999
5464f5a1
NN
1000_ACEOF
1001{
1002cat <<_ASUNAME
1003## --------- ##
1004## Platform. ##
1005## --------- ##
1006
1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024_ASUNAME
1025
1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027for as_dir in $PATH
1028do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032done
6be7c12c 1033
5464f5a1 1034} >&5
66e25bab 1035
5464f5a1 1036cat >&5 <<_ACEOF
b3baf5d0 1037
6be7c12c 1038
5464f5a1
NN
1039## ----------- ##
1040## Core tests. ##
1041## ----------- ##
252b5132 1042
5464f5a1 1043_ACEOF
c5d1701e 1044
6be7c12c 1045
5464f5a1
NN
1046# Keep a trace of the command line.
1047# Strip out --no-create and --no-recursion so they do not pile up.
1048# Strip out --silent because we don't want to record it for future runs.
1049# Also quote any args containing shell meta-characters.
1050# Make two passes to allow for proper duplicate-argument suppression.
1051ac_configure_args=
1052ac_configure_args0=
1053ac_configure_args1=
1054ac_sep=
1055ac_must_keep_next=false
1056for ac_pass in 1 2
1057do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093done
1094$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097# When interrupted or exit'd, cleanup temporary files, and complete
1098# config.log. We remove comments because anyway the quotes in there
1099# would cause problems or look ugly.
1100# WARNING: Be sure not to use single quotes in there, as some shells,
1101# such as our DU 5.0 friend, will then `close' the trap.
1102trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108## ---------------- ##
1109## Cache variables. ##
1110## ---------------- ##
1111_ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114{
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127}
1128 echo
1129
1130 cat <<\_ASBOX
1131## ----------------- ##
1132## Output variables. ##
1133## ----------------- ##
1134_ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145## ------------- ##
1146## Output files. ##
1147## ------------- ##
1148_ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160## ----------- ##
1161## confdefs.h. ##
1162## ----------- ##
1163_ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178done
1179ac_signal=0
1180
1181# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182rm -rf conftest* confdefs.h
1183# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184echo >confdefs.h
1185
1186# Predefined preprocessor variables.
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_NAME "$PACKAGE_NAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_STRING "$PACKAGE_STRING"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210_ACEOF
1211
1212
1213# Let the site file select an alternate cache file if it wants to.
1214# Prefer explicitly selected file to automatically selected ones.
1215if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221fi
1222for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229done
1230
1231if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246fi
1247
1248# Check that the precious variables saved in the cache have kept the same
1249# value.
1250ac_cache_corrupted=false
1251for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290done
1291if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297fi
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325ac_aux_dir=
1326for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1327 if test -f $ac_dir/install-sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 break
1331 elif test -f $ac_dir/install.sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 break
1335 elif test -f $ac_dir/shtool; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 break
1339 fi
1340done
1341if test -z "$ac_aux_dir"; then
1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1343echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1344 { (exit 1); exit 1; }; }
1345fi
1346ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349
1350# Make sure we can run config.sub.
1351$ac_config_sub sun4 >/dev/null 2>&1 ||
1352 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1353echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1354 { (exit 1); exit 1; }; }
1355
1356echo "$as_me:$LINENO: checking build system type" >&5
1357echo $ECHO_N "checking build system type... $ECHO_C" >&6
1358if test "${ac_cv_build+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360else
1361 ac_cv_build_alias=$build_alias
1362test -z "$ac_cv_build_alias" &&
1363 ac_cv_build_alias=`$ac_config_guess`
1364test -z "$ac_cv_build_alias" &&
1365 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1366echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1367 { (exit 1); exit 1; }; }
1368ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1370echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1371 { (exit 1); exit 1; }; }
1372
1373fi
1374echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1375echo "${ECHO_T}$ac_cv_build" >&6
1376build=$ac_cv_build
1377build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380
1381
1382echo "$as_me:$LINENO: checking host system type" >&5
1383echo $ECHO_N "checking host system type... $ECHO_C" >&6
1384if test "${ac_cv_host+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386else
1387 ac_cv_host_alias=$host_alias
1388test -z "$ac_cv_host_alias" &&
1389 ac_cv_host_alias=$ac_cv_build_alias
1390ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1391 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1392echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1393 { (exit 1); exit 1; }; }
1394
1395fi
1396echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1397echo "${ECHO_T}$ac_cv_host" >&6
1398host=$ac_cv_host
1399host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404echo "$as_me:$LINENO: checking target system type" >&5
1405echo $ECHO_N "checking target system type... $ECHO_C" >&6
1406if test "${ac_cv_target+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 ac_cv_target_alias=$target_alias
1410test "x$ac_cv_target_alias" = "x" &&
1411 ac_cv_target_alias=$ac_cv_host_alias
1412ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1413 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1414echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1415 { (exit 1); exit 1; }; }
1416
1417fi
1418echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1419echo "${ECHO_T}$ac_cv_target" >&6
1420target=$ac_cv_target
1421target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426# The aliases save the names the user supplied, while $host etc.
1427# will get canonicalized.
1428test -n "$target_alias" &&
1429 test "$program_prefix$program_suffix$program_transform_name" = \
1430 NONENONEs,x,x, &&
1431 program_prefix=${target_alias}-
1432ac_ext=c
1433ac_cpp='$CPP $CPPFLAGS'
1434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437if test -n "$ac_tool_prefix"; then
1438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440echo "$as_me:$LINENO: checking for $ac_word" >&5
1441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442if test "${ac_cv_prog_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444else
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1447else
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459done
1460done
1461
1462fi
1463fi
1464CC=$ac_cv_prog_CC
1465if test -n "$CC"; then
1466 echo "$as_me:$LINENO: result: $CC" >&5
1467echo "${ECHO_T}$CC" >&6
1468else
1469 echo "$as_me:$LINENO: result: no" >&5
1470echo "${ECHO_T}no" >&6
1471fi
1472
1473fi
1474if test -z "$ac_cv_prog_CC"; then
1475 ac_ct_CC=$CC
1476 # Extract the first word of "gcc", so it can be a program name with args.
1477set dummy gcc; ac_word=$2
1478echo "$as_me:$LINENO: checking for $ac_word" >&5
1479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1482else
1483 if test -n "$ac_ct_CC"; then
1484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485else
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_ac_ct_CC="gcc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1496 fi
1497done
1498done
1499
1500fi
1501fi
1502ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503if test -n "$ac_ct_CC"; then
1504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505echo "${ECHO_T}$ac_ct_CC" >&6
1506else
1507 echo "$as_me:$LINENO: result: no" >&5
1508echo "${ECHO_T}no" >&6
1509fi
1510
1511 CC=$ac_ct_CC
1512else
1513 CC="$ac_cv_prog_CC"
1514fi
1515
1516if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519set dummy ${ac_tool_prefix}cc; ac_word=$2
1520echo "$as_me:$LINENO: checking for $ac_word" >&5
1521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1527else
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539done
1540done
1541
1542fi
1543fi
1544CC=$ac_cv_prog_CC
1545if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547echo "${ECHO_T}$CC" >&6
1548else
1549 echo "$as_me:$LINENO: result: no" >&5
1550echo "${ECHO_T}no" >&6
1551fi
1552
1553fi
1554if test -z "$ac_cv_prog_CC"; then
1555 ac_ct_CC=$CC
1556 # Extract the first word of "cc", so it can be a program name with args.
1557set dummy cc; ac_word=$2
1558echo "$as_me:$LINENO: checking for $ac_word" >&5
1559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565else
1566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="cc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1576 fi
1577done
1578done
1579
1580fi
1581fi
1582ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585echo "${ECHO_T}$ac_ct_CC" >&6
1586else
1587 echo "$as_me:$LINENO: result: no" >&5
1588echo "${ECHO_T}no" >&6
1589fi
1590
1591 CC=$ac_ct_CC
1592else
1593 CC="$ac_cv_prog_CC"
1594fi
1595
1596fi
1597if test -z "$CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599set dummy cc; ac_word=$2
1600echo "$as_me:$LINENO: checking for $ac_word" >&5
1601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607else
1608 ac_prog_rejected=no
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617 ac_prog_rejected=yes
1618 continue
1619 fi
1620 ac_cv_prog_CC="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624done
1625done
1626
1627if test $ac_prog_rejected = yes; then
1628 # We found a bogon in the path, so make sure we never use it.
1629 set dummy $ac_cv_prog_CC
1630 shift
1631 if test $# != 0; then
1632 # We chose a different compiler from the bogus one.
1633 # However, it has the same basename, so the bogon will be chosen
1634 # first if we set CC to just the basename; use the full file name.
1635 shift
1636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1637 fi
1638fi
1639fi
1640fi
1641CC=$ac_cv_prog_CC
1642if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644echo "${ECHO_T}$CC" >&6
1645else
1646 echo "$as_me:$LINENO: result: no" >&5
1647echo "${ECHO_T}no" >&6
1648fi
1649
1650fi
1651if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 for ac_prog in cl
1654 do
1655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657echo "$as_me:$LINENO: checking for $ac_word" >&5
1658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664else
1665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666for as_dir in $PATH
1667do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676done
1677done
1678
1679fi
1680fi
1681CC=$ac_cv_prog_CC
1682if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684echo "${ECHO_T}$CC" >&6
1685else
1686 echo "$as_me:$LINENO: result: no" >&5
1687echo "${ECHO_T}no" >&6
1688fi
1689
1690 test -n "$CC" && break
1691 done
1692fi
1693if test -z "$CC"; then
1694 ac_ct_CC=$CC
1695 for ac_prog in cl
1696do
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698set dummy $ac_prog; ac_word=$2
1699echo "$as_me:$LINENO: checking for $ac_word" >&5
1700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706else
1707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1717 fi
1718done
1719done
1720
1721fi
1722fi
1723ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724if test -n "$ac_ct_CC"; then
1725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726echo "${ECHO_T}$ac_ct_CC" >&6
1727else
1728 echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730fi
1731
1732 test -n "$ac_ct_CC" && break
1733done
1734
1735 CC=$ac_ct_CC
1736fi
1737
1738fi
1739
1740
1741test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1742See \`config.log' for more details." >&5
1743echo "$as_me: error: no acceptable C compiler found in \$PATH
1744See \`config.log' for more details." >&2;}
1745 { (exit 1); exit 1; }; }
1746
1747# Provide some information about the compiler.
1748echo "$as_me:$LINENO:" \
1749 "checking for C compiler version" >&5
1750ac_compiler=`set X $ac_compile; echo $2`
1751{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 ac_status=$?
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1761{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1766
1767cat >conftest.$ac_ext <<_ACEOF
1768/* confdefs.h. */
1769_ACEOF
1770cat confdefs.h >>conftest.$ac_ext
1771cat >>conftest.$ac_ext <<_ACEOF
1772/* end confdefs.h. */
1773
1774int
1775main ()
1776{
1777
1778 ;
1779 return 0;
1780}
1781_ACEOF
1782ac_clean_files_save=$ac_clean_files
1783ac_clean_files="$ac_clean_files a.out a.exe b.out"
1784# Try to create an executable without -o first, disregard a.out.
1785# It will help us diagnose broken compilers, and finding out an intuition
1786# of exeext.
1787echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1788echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1789ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1790if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1791 (eval $ac_link_default) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; then
1795 # Find the output, starting from the most likely. This scheme is
1796# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797# resort.
1798
1799# Be careful to initialize this variable, since it used to be cached.
1800# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801ac_cv_exeext=
1802# b.out is created by i960 compilers.
1803for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1804do
1805 test -f "$ac_file" || continue
1806 case $ac_file in
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1808 ;;
1809 conftest.$ac_ext )
1810 # This is the source file.
1811 ;;
1812 [ab].out )
1813 # We found the default executable, but exeext='' is most
1814 # certainly right.
1815 break;;
1816 *.* )
1817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818 # FIXME: I believe we export ac_cv_exeext for Libtool,
1819 # but it would be cool to find out if it's true. Does anybody
1820 # maintain Libtool? --akim.
1821 export ac_cv_exeext
1822 break;;
1823 * )
1824 break;;
1825 esac
1826done
1827else
1828 echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1832See \`config.log' for more details." >&5
1833echo "$as_me: error: C compiler cannot create executables
1834See \`config.log' for more details." >&2;}
1835 { (exit 77); exit 77; }; }
1836fi
1837
1838ac_exeext=$ac_cv_exeext
1839echo "$as_me:$LINENO: result: $ac_file" >&5
1840echo "${ECHO_T}$ac_file" >&6
1841
1842# Check the compiler produces executables we can run. If not, either
1843# the compiler is broken, or we cross compile.
1844echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1845echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1846# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1847# If not cross compiling, check that we can run a simple program.
1848if test "$cross_compiling" != yes; then
1849 if { ac_try='./$ac_file'
1850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 cross_compiling=no
1856 else
1857 if test "$cross_compiling" = maybe; then
1858 cross_compiling=yes
1859 else
1860 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1861If you meant to cross compile, use \`--host'.
1862See \`config.log' for more details." >&5
1863echo "$as_me: error: cannot run C compiled programs.
1864If you meant to cross compile, use \`--host'.
1865See \`config.log' for more details." >&2;}
1866 { (exit 1); exit 1; }; }
1867 fi
1868 fi
1869fi
1870echo "$as_me:$LINENO: result: yes" >&5
1871echo "${ECHO_T}yes" >&6
1872
1873rm -f a.out a.exe conftest$ac_cv_exeext b.out
1874ac_clean_files=$ac_clean_files_save
1875# Check the compiler produces executables we can run. If not, either
1876# the compiler is broken, or we cross compile.
1877echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1878echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1879echo "$as_me:$LINENO: result: $cross_compiling" >&5
1880echo "${ECHO_T}$cross_compiling" >&6
1881
1882echo "$as_me:$LINENO: checking for suffix of executables" >&5
1883echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1885 (eval $ac_link) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; then
1889 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1890# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1891# work properly (i.e., refer to `conftest.exe'), while it won't with
1892# `rm'.
1893for ac_file in conftest.exe conftest conftest.*; do
1894 test -f "$ac_file" || continue
1895 case $ac_file in
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1897 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 export ac_cv_exeext
1899 break;;
1900 * ) break;;
1901 esac
1902done
1903else
1904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1905See \`config.log' for more details." >&5
1906echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1907See \`config.log' for more details." >&2;}
1908 { (exit 1); exit 1; }; }
1909fi
1910
1911rm -f conftest$ac_cv_exeext
1912echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1913echo "${ECHO_T}$ac_cv_exeext" >&6
1914
1915rm -f conftest.$ac_ext
1916EXEEXT=$ac_cv_exeext
1917ac_exeext=$EXEEXT
1918echo "$as_me:$LINENO: checking for suffix of object files" >&5
1919echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1920if test "${ac_cv_objext+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922else
1923 cat >conftest.$ac_ext <<_ACEOF
1924/* confdefs.h. */
1925_ACEOF
1926cat confdefs.h >>conftest.$ac_ext
1927cat >>conftest.$ac_ext <<_ACEOF
1928/* end confdefs.h. */
1929
1930int
1931main ()
1932{
1933
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938rm -f conftest.o conftest.obj
1939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945 case $ac_file in
1946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948 break;;
1949 esac
1950done
1951else
1952 echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1956See \`config.log' for more details." >&5
1957echo "$as_me: error: cannot compute suffix of object files: cannot compile
1958See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1960fi
1961
1962rm -f conftest.$ac_cv_objext conftest.$ac_ext
1963fi
1964echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1965echo "${ECHO_T}$ac_cv_objext" >&6
1966OBJEXT=$ac_cv_objext
1967ac_objext=$OBJEXT
1968echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1969echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 cat >conftest.$ac_ext <<_ACEOF
1974/* confdefs.h. */
1975_ACEOF
1976cat confdefs.h >>conftest.$ac_ext
1977cat >>conftest.$ac_ext <<_ACEOF
1978/* end confdefs.h. */
1979
1980int
1981main ()
1982{
1983#ifndef __GNUC__
1984 choke me
1985#endif
1986
1987 ;
1988 return 0;
1989}
1990_ACEOF
1991rm -f conftest.$ac_objext
1992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>conftest.er1
1994 ac_status=$?
1995 grep -v '^ *+' conftest.er1 >conftest.err
1996 rm -f conftest.er1
1997 cat conftest.err >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
8fb84ecc
AC
2000 { ac_try='test -z "$ac_c_werror_flag"
2001 || test ! -s conftest.err'
5464f5a1
NN
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 (eval $ac_try) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 ac_compiler_gnu=yes
2014else
2015 echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018ac_compiler_gnu=no
2019fi
2020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2021ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022
2023fi
2024echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2025echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2026GCC=`test $ac_compiler_gnu = yes && echo yes`
2027ac_test_CFLAGS=${CFLAGS+set}
2028ac_save_CFLAGS=$CFLAGS
2029CFLAGS="-g"
2030echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2031echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2032if test "${ac_cv_prog_cc_g+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035 cat >conftest.$ac_ext <<_ACEOF
2036/* confdefs.h. */
2037_ACEOF
2038cat confdefs.h >>conftest.$ac_ext
2039cat >>conftest.$ac_ext <<_ACEOF
2040/* end confdefs.h. */
2041
2042int
2043main ()
2044{
2045
2046 ;
2047 return 0;
2048}
2049_ACEOF
2050rm -f conftest.$ac_objext
2051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2053 ac_status=$?
2054 grep -v '^ *+' conftest.er1 >conftest.err
2055 rm -f conftest.er1
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
8fb84ecc
AC
2059 { ac_try='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
5464f5a1
NN
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_prog_cc_g=yes
2073else
2074 echo "$as_me: failed program was:" >&5
2075sed 's/^/| /' conftest.$ac_ext >&5
2076
2077ac_cv_prog_cc_g=no
2078fi
2079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2080fi
2081echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2082echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2083if test "$ac_test_CFLAGS" = set; then
2084 CFLAGS=$ac_save_CFLAGS
2085elif test $ac_cv_prog_cc_g = yes; then
2086 if test "$GCC" = yes; then
2087 CFLAGS="-g -O2"
2088 else
2089 CFLAGS="-g"
2090 fi
2091else
2092 if test "$GCC" = yes; then
2093 CFLAGS="-O2"
2094 else
2095 CFLAGS=
2096 fi
2097fi
2098echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2099echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2100if test "${ac_cv_prog_cc_stdc+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103 ac_cv_prog_cc_stdc=no
2104ac_save_CC=$CC
2105cat >conftest.$ac_ext <<_ACEOF
2106/* confdefs.h. */
2107_ACEOF
2108cat confdefs.h >>conftest.$ac_ext
2109cat >>conftest.$ac_ext <<_ACEOF
2110/* end confdefs.h. */
2111#include <stdarg.h>
2112#include <stdio.h>
2113#include <sys/types.h>
2114#include <sys/stat.h>
2115/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2116struct buf { int x; };
2117FILE * (*rcsopen) (struct buf *, struct stat *, int);
2118static char *e (p, i)
2119 char **p;
2120 int i;
2121{
2122 return p[i];
2123}
2124static char *f (char * (*g) (char **, int), char **p, ...)
2125{
2126 char *s;
2127 va_list v;
2128 va_start (v,p);
2129 s = g (p, va_arg (v,int));
2130 va_end (v);
2131 return s;
2132}
2133
2134/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2135 function prototypes and stuff, but not '\xHH' hex character constants.
2136 These don't provoke an error unfortunately, instead are silently treated
2137 as 'x'. The following induces an error, until -std1 is added to get
2138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2139 array size at least. It's necessary to write '\x00'==0 to get something
2140 that's true only with -std1. */
2141int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2142
2143int test (int i, double x);
2144struct s1 {int (*f) (int a);};
2145struct s2 {int (*f) (double a);};
2146int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147int argc;
2148char **argv;
2149int
2150main ()
2151{
2152return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2153 ;
2154 return 0;
2155}
2156_ACEOF
2157# Don't try gcc -ansi; that turns off useful extensions and
2158# breaks some systems' header files.
2159# AIX -qlanglvl=ansi
2160# Ultrix and OSF/1 -std1
2161# HP-UX 10.20 and later -Ae
2162# HP-UX older versions -Aa -D_HPUX_SOURCE
2163# SVR4 -Xc -D__EXTENSIONS__
2164for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2165do
2166 CC="$ac_save_CC $ac_arg"
2167 rm -f conftest.$ac_objext
2168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
8fb84ecc
AC
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
5464f5a1
NN
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_cv_prog_cc_stdc=$ac_arg
2190break
2191else
2192 echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195fi
2196rm -f conftest.err conftest.$ac_objext
2197done
2198rm -f conftest.$ac_ext conftest.$ac_objext
2199CC=$ac_save_CC
2200
2201fi
2202
2203case "x$ac_cv_prog_cc_stdc" in
2204 x|xno)
2205 echo "$as_me:$LINENO: result: none needed" >&5
2206echo "${ECHO_T}none needed" >&6 ;;
2207 *)
2208 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2209echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2210 CC="$CC $ac_cv_prog_cc_stdc" ;;
2211esac
2212
2213# Some people use a C++ compiler to compile C. Since we use `exit',
2214# in C++ we need to declare it. In case someone uses the same compiler
2215# for both compiling C and C++ we need to have the C++ compiler decide
2216# the declaration of exit, since it's the most demanding environment.
2217cat >conftest.$ac_ext <<_ACEOF
2218#ifndef __cplusplus
2219 choke me
2220#endif
2221_ACEOF
2222rm -f conftest.$ac_objext
2223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2225 ac_status=$?
2226 grep -v '^ *+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
8fb84ecc
AC
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 for ac_declaration in \
2245 '' \
2246 'extern "C" void std::exit (int) throw (); using std::exit;' \
2247 'extern "C" void std::exit (int); using std::exit;' \
2248 'extern "C" void exit (int) throw ();' \
2249 'extern "C" void exit (int);' \
2250 'void exit (int);'
2251do
2252 cat >conftest.$ac_ext <<_ACEOF
2253/* confdefs.h. */
2254_ACEOF
2255cat confdefs.h >>conftest.$ac_ext
2256cat >>conftest.$ac_ext <<_ACEOF
2257/* end confdefs.h. */
2258$ac_declaration
2259#include <stdlib.h>
2260int
2261main ()
2262{
2263exit (42);
2264 ;
2265 return 0;
2266}
2267_ACEOF
2268rm -f conftest.$ac_objext
2269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>conftest.er1
2271 ac_status=$?
2272 grep -v '^ *+' conftest.er1 >conftest.err
2273 rm -f conftest.er1
2274 cat conftest.err >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
8fb84ecc
AC
2277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
5464f5a1
NN
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 (eval $ac_try) 2>&5
2287 ac_status=$?
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2290 :
2291else
2292 echo "$as_me: failed program was:" >&5
2293sed 's/^/| /' conftest.$ac_ext >&5
2294
2295continue
2296fi
2297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2298 cat >conftest.$ac_ext <<_ACEOF
2299/* confdefs.h. */
2300_ACEOF
2301cat confdefs.h >>conftest.$ac_ext
2302cat >>conftest.$ac_ext <<_ACEOF
2303/* end confdefs.h. */
2304$ac_declaration
2305int
2306main ()
2307{
2308exit (42);
2309 ;
2310 return 0;
2311}
2312_ACEOF
2313rm -f conftest.$ac_objext
2314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>conftest.er1
2316 ac_status=$?
2317 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
8fb84ecc
AC
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
5464f5a1
NN
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 break
2336else
2337 echo "$as_me: failed program was:" >&5
2338sed 's/^/| /' conftest.$ac_ext >&5
2339
2340fi
2341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342done
2343rm -f conftest*
2344if test -n "$ac_declaration"; then
2345 echo '#ifdef __cplusplus' >>confdefs.h
2346 echo $ac_declaration >>confdefs.h
2347 echo '#endif' >>confdefs.h
2348fi
2349
2350else
2351 echo "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354fi
2355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356ac_ext=c
2357ac_cpp='$CPP $CPPFLAGS'
2358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361
2362
f5385ebf
AM
2363echo "$as_me:$LINENO: checking for library containing strerror" >&5
2364echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2365if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
f5385ebf
AM
2368 ac_func_search_save_LIBS=$LIBS
2369ac_cv_search_strerror=no
5464f5a1
NN
2370cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h. */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h. */
2376
2377/* Override any gcc2 internal prototype to avoid an error. */
2378#ifdef __cplusplus
2379extern "C"
2380#endif
2381/* We use char because int might match the return type of a gcc2
2382 builtin and then its argument prototype would still apply. */
2383char strerror ();
2384int
2385main ()
2386{
2387strerror ();
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392rm -f conftest.$ac_objext conftest$ac_exeext
2393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>conftest.er1
2395 ac_status=$?
2396 grep -v '^ *+' conftest.er1 >conftest.err
2397 rm -f conftest.er1
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
8fb84ecc
AC
2401 { ac_try='test -z "$ac_c_werror_flag"
2402 || test ! -s conftest.err'
5464f5a1
NN
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 (eval $ac_try) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest$ac_exeext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
f5385ebf 2414 ac_cv_search_strerror="none required"
5464f5a1
NN
2415else
2416 echo "$as_me: failed program was:" >&5
2417sed 's/^/| /' conftest.$ac_ext >&5
2418
5464f5a1
NN
2419fi
2420rm -f conftest.err conftest.$ac_objext \
2421 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2422if test "$ac_cv_search_strerror" = no; then
2423 for ac_lib in cposix; do
2424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2425 cat >conftest.$ac_ext <<_ACEOF
2426/* confdefs.h. */
2427_ACEOF
2428cat confdefs.h >>conftest.$ac_ext
2429cat >>conftest.$ac_ext <<_ACEOF
2430/* end confdefs.h. */
2431
2432/* Override any gcc2 internal prototype to avoid an error. */
2433#ifdef __cplusplus
2434extern "C"
2435#endif
2436/* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2438char strerror ();
2439int
2440main ()
2441{
2442strerror ();
2443 ;
2444 return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext conftest$ac_exeext
2448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449 (eval $ac_link) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
8fb84ecc
AC
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
f5385ebf
AM
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest$ac_exeext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 ac_cv_search_strerror="-l$ac_lib"
2470break
2471else
2472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
5464f5a1 2475fi
f5385ebf
AM
2476rm -f conftest.err conftest.$ac_objext \
2477 conftest$ac_exeext conftest.$ac_ext
2478 done
5464f5a1 2479fi
f5385ebf
AM
2480LIBS=$ac_func_search_save_LIBS
2481fi
2482echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2483echo "${ECHO_T}$ac_cv_search_strerror" >&6
2484if test "$ac_cv_search_strerror" != no; then
2485 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2486
f5385ebf 2487fi
5464f5a1
NN
2488
2489
f5385ebf 2490am__api_version="1.9"
5464f5a1
NN
2491# Find a good install program. We prefer a C program (faster),
2492# so one script is as good as another. But avoid the broken or
2493# incompatible versions:
2494# SysV /etc/install, /usr/sbin/install
2495# SunOS /usr/etc/install
2496# IRIX /sbin/install
2497# AIX /bin/install
2498# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2499# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2500# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2501# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2502# OS/2's system install, which has a completely different semantic
252b5132 2503# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2504echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2505echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2506if test -z "$INSTALL"; then
5464f5a1
NN
2507if test "${ac_cv_path_install+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2509else
5464f5a1
NN
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 # Account for people who put trailing slashes in PATH elements.
2516case $as_dir/ in
2517 ./ | .// | /cC/* | \
2518 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2519 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2520 /usr/ucb/* ) ;;
2521 *)
2522 # OSF1 and SCO ODT 3.0 have their own names for install.
2523 # Don't use installbsd from OSF since it installs stuff as root
2524 # by default.
2525 for ac_prog in ginstall scoinst install; do
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2528 if test $ac_prog = install &&
5464f5a1 2529 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2530 # AIX install. It has an incompatible calling convention.
2531 :
5464f5a1
NN
2532 elif test $ac_prog = install &&
2533 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2534 # program-specific install script used by HP pwplus--don't use.
2535 :
252b5132 2536 else
5464f5a1
NN
2537 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2538 break 3
252b5132
RH
2539 fi
2540 fi
2541 done
5464f5a1
NN
2542 done
2543 ;;
2544esac
2545done
2546
252b5132
RH
2547
2548fi
2549 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2550 INSTALL=$ac_cv_path_install
252b5132
RH
2551 else
2552 # As a last resort, use the slow shell script. We don't cache a
2553 # path for INSTALL within a source directory, because that will
2554 # break other packages using the cache if that directory is
2555 # removed, or if the path is relative.
5464f5a1 2556 INSTALL=$ac_install_sh
252b5132
RH
2557 fi
2558fi
5464f5a1
NN
2559echo "$as_me:$LINENO: result: $INSTALL" >&5
2560echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2561
2562# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563# It thinks the first close brace ends the variable substitution.
2564test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565
5464f5a1 2566test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2567
2568test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569
5464f5a1
NN
2570echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2571echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2572# Just in case
2573sleep 1
f5385ebf 2574echo timestamp > conftest.file
252b5132
RH
2575# Do `set' in a subshell so we don't clobber the current shell's
2576# arguments. Must try -L first in case configure is actually a
2577# symlink; some systems play weird games with the mod time of symlinks
2578# (eg FreeBSD returns the mod time of the symlink's containing
2579# directory).
2580if (
f5385ebf 2581 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2582 if test "$*" = "X"; then
2583 # -L didn't work.
f5385ebf 2584 set X `ls -t $srcdir/configure conftest.file`
252b5132 2585 fi
f5385ebf
AM
2586 rm -f conftest.file
2587 if test "$*" != "X $srcdir/configure conftest.file" \
2588 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2589
2590 # If neither matched, then we have a broken ls. This can happen
2591 # if, for instance, CONFIG_SHELL is bash and it inherits a
2592 # broken ls alias from the environment. This has actually
2593 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2594 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2595alias in your environment" >&5
2596echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2597alias in your environment" >&2;}
2598 { (exit 1); exit 1; }; }
252b5132
RH
2599 fi
2600
f5385ebf 2601 test "$2" = conftest.file
252b5132
RH
2602 )
2603then
2604 # Ok.
2605 :
2606else
5464f5a1
NN
2607 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2608Check your system clock" >&5
2609echo "$as_me: error: newly created file is older than distributed files!
2610Check your system clock" >&2;}
2611 { (exit 1); exit 1; }; }
252b5132 2612fi
5464f5a1
NN
2613echo "$as_me:$LINENO: result: yes" >&5
2614echo "${ECHO_T}yes" >&6
252b5132 2615test "$program_prefix" != NONE &&
5464f5a1 2616 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2617# Use a double $ so make ignores it.
2618test "$program_suffix" != NONE &&
5464f5a1
NN
2619 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2620# Double any \ or $. echo might interpret backslashes.
2621# By default was `s,x,x', remove it if useless.
2622cat <<\_ACEOF >conftest.sed
2623s/[\\$]/&&/g;s/;s,x,x,$//
2624_ACEOF
2625program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2626rm conftest.sed
2627
f5385ebf
AM
2628# expand $ac_aux_dir to an absolute path
2629am_aux_dir=`cd $ac_aux_dir && pwd`
2630
2631test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2632# Use eval to expand $SHELL
2633if eval "$MISSING --run true"; then
2634 am_missing_run="$MISSING --run "
2635else
2636 am_missing_run=
2637 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2638echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2639fi
2640
2641if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2642 # We used to keeping the `.' as first argument, in order to
2643 # allow $(mkdir_p) to be used without argument. As in
2644 # $(mkdir_p) $(somedir)
2645 # where $(somedir) is conditionally defined. However this is wrong
2646 # for two reasons:
2647 # 1. if the package is installed by a user who cannot write `.'
2648 # make install will fail,
2649 # 2. the above comment should most certainly read
2650 # $(mkdir_p) $(DESTDIR)$(somedir)
2651 # so it does not work when $(somedir) is undefined and
2652 # $(DESTDIR) is not.
2653 # To support the latter case, we have to write
2654 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2655 # so the `.' trick is pointless.
2656 mkdir_p='mkdir -p --'
2657else
2658 # On NextStep and OpenStep, the `mkdir' command does not
2659 # recognize any option. It will interpret all options as
2660 # directories to create, and then abort because `.' already
2661 # exists.
2662 for d in ./-p ./--version;
2663 do
2664 test -d $d && rmdir $d
2665 done
2666 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2667 if test -f "$ac_aux_dir/mkinstalldirs"; then
2668 mkdir_p='$(mkinstalldirs)'
2669 else
2670 mkdir_p='$(install_sh) -d'
2671 fi
2672fi
2673
2674for ac_prog in gawk mawk nawk awk
2675do
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677set dummy $ac_prog; ac_word=$2
2678echo "$as_me:$LINENO: checking for $ac_word" >&5
2679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680if test "${ac_cv_prog_AWK+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682else
2683 if test -n "$AWK"; then
2684 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
2691 for ac_exec_ext in '' $ac_executable_extensions; do
2692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693 ac_cv_prog_AWK="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697done
2698done
2699
2700fi
2701fi
2702AWK=$ac_cv_prog_AWK
2703if test -n "$AWK"; then
2704 echo "$as_me:$LINENO: result: $AWK" >&5
2705echo "${ECHO_T}$AWK" >&6
2706else
2707 echo "$as_me:$LINENO: result: no" >&5
2708echo "${ECHO_T}no" >&6
2709fi
2710
2711 test -n "$AWK" && break
2712done
2713
5464f5a1
NN
2714echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2715echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2716set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2717if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719else
2720 cat >conftest.make <<\_ACEOF
252b5132 2721all:
5464f5a1
NN
2722 @echo 'ac_maketemp="$(MAKE)"'
2723_ACEOF
252b5132 2724# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2725eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2726if test -n "$ac_maketemp"; then
2727 eval ac_cv_prog_make_${ac_make}_set=yes
2728else
2729 eval ac_cv_prog_make_${ac_make}_set=no
2730fi
5464f5a1 2731rm -f conftest.make
252b5132
RH
2732fi
2733if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2734 echo "$as_me:$LINENO: result: yes" >&5
2735echo "${ECHO_T}yes" >&6
252b5132
RH
2736 SET_MAKE=
2737else
5464f5a1
NN
2738 echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
252b5132
RH
2740 SET_MAKE="MAKE=${MAKE-make}"
2741fi
2742
f5385ebf
AM
2743rm -rf .tst 2>/dev/null
2744mkdir .tst 2>/dev/null
2745if test -d .tst; then
2746 am__leading_dot=.
2747else
2748 am__leading_dot=_
2749fi
2750rmdir .tst 2>/dev/null
2751
2752DEPDIR="${am__leading_dot}deps"
2753
2754 ac_config_commands="$ac_config_commands depfiles"
2755
2756
2757am_make=${MAKE-make}
2758cat > confinc << 'END'
2759am__doit:
2760 @echo done
2761.PHONY: am__doit
2762END
2763# If we don't find an include directive, just comment out the code.
2764echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2765echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2766am__include="#"
2767am__quote=
2768_am_result=none
2769# First try GNU make style include.
2770echo "include confinc" > confmf
2771# We grep out `Entering directory' and `Leaving directory'
2772# messages which can occur if `w' ends up in MAKEFLAGS.
2773# In particular we don't look at `^make:' because GNU make might
2774# be invoked under some other name (usually "gmake"), in which
2775# case it prints its new name instead of `make'.
2776if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2777 am__include=include
2778 am__quote=
2779 _am_result=GNU
2780fi
2781# Now try BSD make style include.
2782if test "$am__include" = "#"; then
2783 echo '.include "confinc"' > confmf
2784 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2785 am__include=.include
2786 am__quote="\""
2787 _am_result=BSD
2788 fi
2789fi
2790
2791
2792echo "$as_me:$LINENO: result: $_am_result" >&5
2793echo "${ECHO_T}$_am_result" >&6
2794rm -f confinc confmf
2795
2796# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2797if test "${enable_dependency_tracking+set}" = set; then
2798 enableval="$enable_dependency_tracking"
2799
2800fi;
2801if test "x$enable_dependency_tracking" != xno; then
2802 am_depcomp="$ac_aux_dir/depcomp"
2803 AMDEPBACKSLASH='\'
2804fi
2805
2806
2807if test "x$enable_dependency_tracking" != xno; then
2808 AMDEP_TRUE=
2809 AMDEP_FALSE='#'
2810else
2811 AMDEP_TRUE='#'
2812 AMDEP_FALSE=
2813fi
6be7c12c 2814
252b5132 2815
252b5132 2816
f5385ebf
AM
2817# test to see if srcdir already configured
2818if test "`cd $srcdir && pwd`" != "`pwd`" &&
2819 test -f $srcdir/config.status; then
5464f5a1
NN
2820 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2821echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2822 { (exit 1); exit 1; }; }
252b5132 2823fi
5464f5a1 2824
f5385ebf
AM
2825# test whether we have cygpath
2826if test -z "$CYGPATH_W"; then
2827 if (cygpath --version) >/dev/null 2>/dev/null; then
2828 CYGPATH_W='cygpath -w'
2829 else
2830 CYGPATH_W=echo
2831 fi
2832fi
2833
2834
2835# Define the identity of the package.
2836 PACKAGE=bfd
8697aafb 2837 VERSION=2.15.94
f5385ebf
AM
2838
2839
5464f5a1 2840cat >>confdefs.h <<_ACEOF
252b5132 2841#define PACKAGE "$PACKAGE"
5464f5a1 2842_ACEOF
252b5132 2843
5464f5a1
NN
2844
2845cat >>confdefs.h <<_ACEOF
252b5132 2846#define VERSION "$VERSION"
5464f5a1 2847_ACEOF
252b5132 2848
f5385ebf
AM
2849# Some tools Automake needs.
2850
2851ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2852
2853
2854AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2855
2856
2857AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2858
2859
2860AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2861
2862
2863MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2864
f5385ebf 2865install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2866
f5385ebf
AM
2867# Installed binaries are usually stripped using `strip' when the user
2868# run `make install-strip'. However `strip' might not be the right
2869# tool to use in cross-compilation environments, therefore Automake
2870# will honor the `STRIP' environment variable to overrule this program.
2871if test "$cross_compiling" != no; then
2872 if test -n "$ac_tool_prefix"; then
2873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2874set dummy ${ac_tool_prefix}strip; ac_word=$2
2875echo "$as_me:$LINENO: checking for $ac_word" >&5
2876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877if test "${ac_cv_prog_STRIP+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879else
2880 if test -n "$STRIP"; then
2881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2882else
f5385ebf
AM
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894done
2895done
2896
2897fi
2898fi
2899STRIP=$ac_cv_prog_STRIP
2900if test -n "$STRIP"; then
2901 echo "$as_me:$LINENO: result: $STRIP" >&5
2902echo "${ECHO_T}$STRIP" >&6
2903else
2904 echo "$as_me:$LINENO: result: no" >&5
2905echo "${ECHO_T}no" >&6
2906fi
2907
252b5132 2908fi
f5385ebf
AM
2909if test -z "$ac_cv_prog_STRIP"; then
2910 ac_ct_STRIP=$STRIP
2911 # Extract the first word of "strip", so it can be a program name with args.
2912set dummy strip; ac_word=$2
2913echo "$as_me:$LINENO: checking for $ac_word" >&5
2914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917else
2918 if test -n "$ac_ct_STRIP"; then
2919 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_ac_ct_STRIP="strip"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932done
2933done
252b5132 2934
f5385ebf
AM
2935 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2936fi
2937fi
2938ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2939if test -n "$ac_ct_STRIP"; then
2940 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2941echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2942else
f5385ebf
AM
2943 echo "$as_me:$LINENO: result: no" >&5
2944echo "${ECHO_T}no" >&6
252b5132
RH
2945fi
2946
f5385ebf 2947 STRIP=$ac_ct_STRIP
252b5132 2948else
f5385ebf
AM
2949 STRIP="$ac_cv_prog_STRIP"
2950fi
2951
252b5132 2952fi
f5385ebf
AM
2953INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2954
2955# We need awk for the "check" target. The system "awk" is bad on
2956# some platforms.
2957# Always define AMTAR for backward compatibility.
2958
2959AMTAR=${AMTAR-"${am_missing_run}tar"}
2960
2961am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2962
252b5132 2963
f5385ebf
AM
2964
2965
2966depcc="$CC" am_compiler_list=
2967
2968echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2969echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2970if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2972else
f5385ebf
AM
2973 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2974 # We make a subdir and do the tests there. Otherwise we can end up
2975 # making bogus files that we don't know about and never remove. For
2976 # instance it was reported that on HP-UX the gcc test will end up
2977 # making a dummy file named `D' -- because `-MD' means `put the output
2978 # in D'.
2979 mkdir conftest.dir
2980 # Copy depcomp to subdir because otherwise we won't find it if we're
2981 # using a relative directory.
2982 cp "$am_depcomp" conftest.dir
2983 cd conftest.dir
2984 # We will build objects and dependencies in a subdirectory because
2985 # it helps to detect inapplicable dependency modes. For instance
2986 # both Tru64's cc and ICC support -MD to output dependencies as a
2987 # side effect of compilation, but ICC will put the dependencies in
2988 # the current directory while Tru64 will put them in the object
2989 # directory.
2990 mkdir sub
2991
2992 am_cv_CC_dependencies_compiler_type=none
2993 if test "$am_compiler_list" = ""; then
2994 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2995 fi
2996 for depmode in $am_compiler_list; do
2997 # Setup a source with many dependencies, because some compilers
2998 # like to wrap large dependency lists on column 80 (with \), and
2999 # we should not choose a depcomp mode which is confused by this.
3000 #
3001 # We need to recreate these files for each test, as the compiler may
3002 # overwrite some of them when testing with obscure command lines.
3003 # This happens at least with the AIX C compiler.
3004 : > sub/conftest.c
3005 for i in 1 2 3 4 5 6; do
3006 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3007 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3008 # Solaris 8's {/usr,}/bin/sh.
3009 touch sub/conftst$i.h
3010 done
3011 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3012
3013 case $depmode in
3014 nosideeffect)
3015 # after this tag, mechanisms are not by side-effect, so they'll
3016 # only be used when explicitly requested
3017 if test "x$enable_dependency_tracking" = xyes; then
3018 continue
3019 else
3020 break
3021 fi
3022 ;;
3023 none) break ;;
3024 esac
3025 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3026 # mode. It turns out that the SunPro C++ compiler does not properly
3027 # handle `-M -o', and we need to detect this.
3028 if depmode=$depmode \
3029 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3030 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3031 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3032 >/dev/null 2>conftest.err &&
3033 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3034 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3035 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3036 # icc doesn't choke on unknown options, it will just issue warnings
3037 # or remarks (even with -Werror). So we grep stderr for any message
3038 # that says an option was ignored or not supported.
3039 # When given -MP, icc 7.0 and 7.1 complain thusly:
3040 # icc: Command line warning: ignoring option '-M'; no argument required
3041 # The diagnosis changed in icc 8.0:
3042 # icc: Command line remark: option '-MP' not supported
3043 if (grep 'ignoring option' conftest.err ||
3044 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3045 am_cv_CC_dependencies_compiler_type=$depmode
3046 break
3047 fi
3048 fi
3049 done
3050
3051 cd ..
3052 rm -rf conftest.dir
3053else
3054 am_cv_CC_dependencies_compiler_type=none
3055fi
3056
252b5132 3057fi
f5385ebf
AM
3058echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3059echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3060CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3061
f5385ebf
AM
3062
3063
3064if
3065 test "x$enable_dependency_tracking" != xno \
3066 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3067 am__fastdepCC_TRUE=
3068 am__fastdepCC_FALSE='#'
252b5132 3069else
f5385ebf
AM
3070 am__fastdepCC_TRUE='#'
3071 am__fastdepCC_FALSE=
252b5132
RH
3072fi
3073
6be7c12c 3074
e43d48cc 3075
f5385ebf 3076
5464f5a1
NN
3077if test -n "$ac_tool_prefix"; then
3078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3079set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3080echo "$as_me:$LINENO: checking for $ac_word" >&5
3081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3082if test "${ac_cv_prog_AR+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3084else
3085 if test -n "$AR"; then
3086 ac_cv_prog_AR="$AR" # Let the user override the test.
3087else
5464f5a1
NN
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_AR="${ac_tool_prefix}ar"
3096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
3098 fi
3099done
3100done
3101
252b5132
RH
3102fi
3103fi
5464f5a1 3104AR=$ac_cv_prog_AR
252b5132 3105if test -n "$AR"; then
5464f5a1
NN
3106 echo "$as_me:$LINENO: result: $AR" >&5
3107echo "${ECHO_T}$AR" >&6
252b5132 3108else
5464f5a1
NN
3109 echo "$as_me:$LINENO: result: no" >&5
3110echo "${ECHO_T}no" >&6
3111fi
3112
252b5132 3113fi
5464f5a1
NN
3114if test -z "$ac_cv_prog_AR"; then
3115 ac_ct_AR=$AR
3116 # Extract the first word of "ar", so it can be a program name with args.
3117set dummy ar; ac_word=$2
3118echo "$as_me:$LINENO: checking for $ac_word" >&5
3119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122else
3123 if test -n "$ac_ct_AR"; then
3124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3125else
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_ac_ct_AR="ar"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137done
3138done
252b5132 3139
5464f5a1
NN
3140fi
3141fi
3142ac_ct_AR=$ac_cv_prog_ac_ct_AR
3143if test -n "$ac_ct_AR"; then
3144 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3145echo "${ECHO_T}$ac_ct_AR" >&6
3146else
3147 echo "$as_me:$LINENO: result: no" >&5
3148echo "${ECHO_T}no" >&6
3149fi
252b5132 3150
5464f5a1
NN
3151 AR=$ac_ct_AR
3152else
3153 AR="$ac_cv_prog_AR"
3154fi
6be7c12c 3155
5464f5a1
NN
3156if test -n "$ac_tool_prefix"; then
3157 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3158set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3159echo "$as_me:$LINENO: checking for $ac_word" >&5
3160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3161if test "${ac_cv_prog_RANLIB+set}" = set; then
3162 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3163else
3164 if test -n "$RANLIB"; then
3165 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3166else
5464f5a1
NN
3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH
3169do
3170 IFS=$as_save_IFS
3171 test -z "$as_dir" && as_dir=.
3172 for ac_exec_ext in '' $ac_executable_extensions; do
3173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178done
3179done
3180
252b5132
RH
3181fi
3182fi
5464f5a1 3183RANLIB=$ac_cv_prog_RANLIB
252b5132 3184if test -n "$RANLIB"; then
5464f5a1
NN
3185 echo "$as_me:$LINENO: result: $RANLIB" >&5
3186echo "${ECHO_T}$RANLIB" >&6
252b5132 3187else
5464f5a1
NN
3188 echo "$as_me:$LINENO: result: no" >&5
3189echo "${ECHO_T}no" >&6
252b5132
RH
3190fi
3191
5464f5a1 3192fi
252b5132 3193if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3194 ac_ct_RANLIB=$RANLIB
252b5132
RH
3195 # Extract the first word of "ranlib", so it can be a program name with args.
3196set dummy ranlib; ac_word=$2
5464f5a1
NN
3197echo "$as_me:$LINENO: checking for $ac_word" >&5
3198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3201else
5464f5a1
NN
3202 if test -n "$ac_ct_RANLIB"; then
3203 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3204else
5464f5a1
NN
3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206for as_dir in $PATH
3207do
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_ac_ct_RANLIB="ranlib"
3213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3215 fi
3216done
3217done
3218
3219 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3220fi
3221fi
5464f5a1
NN
3222ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3223if test -n "$ac_ct_RANLIB"; then
3224 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3225echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3226else
5464f5a1
NN
3227 echo "$as_me:$LINENO: result: no" >&5
3228echo "${ECHO_T}no" >&6
252b5132
RH
3229fi
3230
5464f5a1 3231 RANLIB=$ac_ct_RANLIB
252b5132 3232else
5464f5a1 3233 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3234fi
3235
252b5132
RH
3236
3237# Check whether --enable-shared or --disable-shared was given.
3238if test "${enable_shared+set}" = set; then
3239 enableval="$enable_shared"
3240 p=${PACKAGE-default}
55c80943 3241case $enableval in
252b5132
RH
3242yes) enable_shared=yes ;;
3243no) enable_shared=no ;;
3244*)
3245 enable_shared=no
3246 # Look at the argument we got. We use all the common list separators.
3247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3248 for pkg in $enableval; do
3249 if test "X$pkg" = "X$p"; then
3250 enable_shared=yes
3251 fi
3252 done
3253 IFS="$ac_save_ifs"
3254 ;;
3255esac
3256else
3257 enable_shared=no
5464f5a1 3258fi;
252b5132
RH
3259
3260# Check whether --enable-static or --disable-static was given.
3261if test "${enable_static+set}" = set; then
3262 enableval="$enable_static"
3263 p=${PACKAGE-default}
55c80943 3264case $enableval in
252b5132
RH
3265yes) enable_static=yes ;;
3266no) enable_static=no ;;
3267*)
3268 enable_static=no
3269 # Look at the argument we got. We use all the common list separators.
3270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3271 for pkg in $enableval; do
3272 if test "X$pkg" = "X$p"; then
3273 enable_static=yes
3274 fi
3275 done
3276 IFS="$ac_save_ifs"
3277 ;;
3278esac
3279else
3280 enable_static=yes
5464f5a1 3281fi;
b2ef150d
ILT
3282# Check whether --enable-fast-install or --disable-fast-install was given.
3283if test "${enable_fast_install+set}" = set; then
3284 enableval="$enable_fast_install"
3285 p=${PACKAGE-default}
55c80943 3286case $enableval in
b2ef150d
ILT
3287yes) enable_fast_install=yes ;;
3288no) enable_fast_install=no ;;
3289*)
3290 enable_fast_install=no
3291 # Look at the argument we got. We use all the common list separators.
3292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3293 for pkg in $enableval; do
3294 if test "X$pkg" = "X$p"; then
3295 enable_fast_install=yes
3296 fi
3297 done
3298 IFS="$ac_save_ifs"
3299 ;;
3300esac
3301else
3302 enable_fast_install=yes
5464f5a1 3303fi;
c5d1701e 3304
252b5132
RH
3305# Check whether --with-gnu-ld or --without-gnu-ld was given.
3306if test "${with_gnu_ld+set}" = set; then
3307 withval="$with_gnu_ld"
3308 test "$withval" = no || with_gnu_ld=yes
3309else
3310 with_gnu_ld=no
5464f5a1 3311fi;
252b5132 3312ac_prog=ld
55c80943 3313if test "$GCC" = yes; then
252b5132 3314 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
3315 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3316echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3317 case $host in
3318 *-*-mingw*)
3319 # gcc leaves a trailing carriage return which upsets mingw
3320 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3321 *)
3322 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3323 esac
55c80943 3324 case $ac_prog in
b2ef150d 3325 # Accept absolute paths.
a74801ba 3326 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
3327 re_direlt='/[^/][^/]*/\.\./'
3328 # Canonicalize the path of ld
3329 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3330 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3331 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3332 done
3333 test -z "$LD" && LD="$ac_prog"
3334 ;;
252b5132
RH
3335 "")
3336 # If it fails, then pretend we aren't using GCC.
3337 ac_prog=ld
3338 ;;
3339 *)
3340 # If it is relative, then search for the first ld in PATH.
3341 with_gnu_ld=unknown
3342 ;;
3343 esac
3344elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
3345 echo "$as_me:$LINENO: checking for GNU ld" >&5
3346echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3347else
5464f5a1
NN
3348 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3349echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3350fi
5464f5a1
NN
3351if test "${lt_cv_path_LD+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3353else
3354 if test -z "$LD"; then
a74801ba 3355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3356 for ac_dir in $PATH; do
3357 test -z "$ac_dir" && ac_dir=.
a74801ba 3358 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 3359 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3360 # Check to see if the program is GNU ld. I'd rather use --version,
3361 # but apparently some GNU ld's only accept -v.
3362 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 3363 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3364 test "$with_gnu_ld" != no && break
3365 else
b2ef150d 3366 test "$with_gnu_ld" != yes && break
252b5132
RH
3367 fi
3368 fi
3369 done
3370 IFS="$ac_save_ifs"
3371else
55c80943 3372 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3373fi
3374fi
3375
55c80943 3376LD="$lt_cv_path_LD"
252b5132 3377if test -n "$LD"; then
5464f5a1
NN
3378 echo "$as_me:$LINENO: result: $LD" >&5
3379echo "${ECHO_T}$LD" >&6
252b5132 3380else
5464f5a1
NN
3381 echo "$as_me:$LINENO: result: no" >&5
3382echo "${ECHO_T}no" >&6
252b5132 3383fi
5464f5a1
NN
3384test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3385echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3386 { (exit 1); exit 1; }; }
3387echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3388echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3389if test "${lt_cv_prog_gnu_ld+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3391else
3392 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3393if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3394 lt_cv_prog_gnu_ld=yes
252b5132 3395else
55c80943 3396 lt_cv_prog_gnu_ld=no
252b5132
RH
3397fi
3398fi
5464f5a1
NN
3399echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3400echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3401with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3402
6be7c12c 3403
5464f5a1
NN
3404echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3405echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3406if test "${lt_cv_ld_reload_flag+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3408else
3409 lt_cv_ld_reload_flag='-r'
3410fi
5464f5a1
NN
3411echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3412echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3413reload_flag=$lt_cv_ld_reload_flag
3414test -n "$reload_flag" && reload_flag=" $reload_flag"
3415
5464f5a1
NN
3416echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3417echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3418if test "${lt_cv_path_NM+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3420else
3421 if test -n "$NM"; then
3422 # Let the user override the test.
55c80943 3423 lt_cv_path_NM="$NM"
252b5132 3424else
a74801ba 3425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3426 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3427 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3428 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3429 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3430 # Check to see if the nm accepts a BSD-compat flag.
3431 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3432 # nm: unknown option "B" ignored
90f2472a
AO
3433 # Tru64's nm complains that /dev/null is an invalid object file
3434 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3435 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3436 break
ac48eca1 3437 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3438 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3439 break
252b5132 3440 else
55c80943 3441 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3442 continue # so that we can try to find one that supports BSD flags
252b5132 3443 fi
252b5132
RH
3444 fi
3445 done
3446 IFS="$ac_save_ifs"
55c80943 3447 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3448fi
3449fi
3450
55c80943 3451NM="$lt_cv_path_NM"
5464f5a1
NN
3452echo "$as_me:$LINENO: result: $NM" >&5
3453echo "${ECHO_T}$NM" >&6
252b5132 3454
5464f5a1
NN
3455echo "$as_me:$LINENO: checking whether ln -s works" >&5
3456echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3457LN_S=$as_ln_s
3458if test "$LN_S" = "ln -s"; then
3459 echo "$as_me:$LINENO: result: yes" >&5
3460echo "${ECHO_T}yes" >&6
6be7c12c 3461else
5464f5a1
NN
3462 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3463echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3464fi
3465
5464f5a1
NN
3466echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3467echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3468if test "${lt_cv_deplibs_check_method+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3470else
d64552c5 3471 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3472lt_cv_file_magic_test_file=
3473lt_cv_deplibs_check_method='unknown'
3474# Need to set the preceding variable on all platforms that support
3475# interlibrary dependencies.
3476# 'none' -- dependencies not supported.
3477# `unknown' -- same as none, but documents that we really don't know.
3478# 'pass_all' -- all dependencies passed with no checks.
3479# 'test_compile' -- check by making test program.
3480# 'file_magic [regex]' -- check by looking for files in library path
3481# which responds to the $file_magic_cmd with a given egrep regex.
3482# If you have `file' or equivalent on your system and you're not sure
3483# whether `pass_all' will *always* work, you probably want this one.
3484
55c80943
NC
3485case $host_os in
3486aix*)
ac48eca1
AO
3487 lt_cv_deplibs_check_method=pass_all
3488 ;;
3489
3490beos*)
3491 lt_cv_deplibs_check_method=pass_all
3492 ;;
3493
3494bsdi4*)
55c80943
NC
3495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3496 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3497 lt_cv_file_magic_test_file=/shlib/libc.so
3498 ;;
3499
d64552c5 3500cygwin* | mingw* |pw32*)
ac48eca1 3501 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3502 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3503 ;;
3504
55c80943
NC
3505darwin* | rhapsody*)
3506 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3507 lt_cv_file_magic_cmd='/usr/bin/file -L'
3508 case "$host_os" in
3509 rhapsody* | darwin1.012)
3510 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3511 ;;
3512 *) # Darwin 1.3 on
3513 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3514 ;;
3515 esac
55c80943
NC
3516 ;;
3517
5464f5a1 3518freebsd* | kfreebsd*-gnu)
ac48eca1 3519 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3520 case $host_cpu in
ac48eca1 3521 i*86 )
90f2472a
AO
3522 # Not sure whether the presence of OpenBSD here was a mistake.
3523 # Let's accept both of them until this is cleared up.
55c80943
NC
3524 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3525 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3526 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3527 ;;
3528 esac
3529 else
3530 lt_cv_deplibs_check_method=pass_all
3531 fi
3532 ;;
3533
3534gnu*)
3535 lt_cv_deplibs_check_method=pass_all
3536 ;;
3537
55c80943 3538hpux10.20*|hpux11*)
4867be41
DJ
3539 case $host_cpu in
3540 hppa*)
3541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3542 lt_cv_file_magic_cmd=/usr/bin/file
3543 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3544 ;;
3545 ia64*)
3546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3547 lt_cv_file_magic_cmd=/usr/bin/file
3548 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3549 ;;
3550 esac
ac48eca1
AO
3551 ;;
3552
3553irix5* | irix6*)
55c80943 3554 case $host_os in
ac48eca1
AO
3555 irix5*)
3556 # this will be overridden with pass_all, but let us keep it just in case
3557 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3558 ;;
3559 *)
55c80943 3560 case $LD in
ac48eca1
AO
3561 *-32|*"-32 ") libmagic=32-bit;;
3562 *-n32|*"-n32 ") libmagic=N32;;
3563 *-64|*"-64 ") libmagic=64-bit;;
3564 *) libmagic=never-match;;
3565 esac
3566 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3567 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3568 ;;
ac48eca1
AO
3569 esac
3570 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3571 lt_cv_deplibs_check_method=pass_all
3572 ;;
3573
3574# This must be Linux ELF.
90f2472a 3575linux-gnu*)
55c80943 3576 case $host_cpu in
c5d1701e 3577 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3578 lt_cv_deplibs_check_method=pass_all ;;
3579 *)
3580 # glibc up to 2.1.1 does not perform some relocations on ARM
55c80943
NC
3581 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3582 esac
ac48eca1
AO
3583 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3584 ;;
3585
5464f5a1 3586netbsd* | knetbsd*-gnu)
55c80943 3587 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3588 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3589 else
b3baf5d0 3590 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3591 fi
55c80943
NC
3592 ;;
3593
3594newsos6)
3595 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3596 lt_cv_file_magic_cmd=/usr/bin/file
3597 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3598 ;;
3599
3600osf3* | osf4* | osf5*)
3601 # this will be overridden with pass_all, but let us keep it just in case
3602 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3603 lt_cv_file_magic_test_file=/shlib/libc.so
3604 lt_cv_deplibs_check_method=pass_all
3605 ;;
3606
3607sco3.2v5*)
3608 lt_cv_deplibs_check_method=pass_all
3609 ;;
3610
3611solaris*)
3612 lt_cv_deplibs_check_method=pass_all
3613 lt_cv_file_magic_test_file=/lib/libc.so
3614 ;;
3615
6be7c12c
AO
3616sysv5uw[78]* | sysv4*uw2*)
3617 lt_cv_deplibs_check_method=pass_all
3618 ;;
3619
ac48eca1 3620sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3621 case $host_vendor in
ac48eca1
AO
3622 ncr)
3623 lt_cv_deplibs_check_method=pass_all
3624 ;;
3625 motorola)
55c80943
NC
3626 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]'
3627 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3628 ;;
3629 esac
3630 ;;
3631esac
3632
3633fi
5464f5a1
NN
3634echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3635echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3636file_magic_cmd=$lt_cv_file_magic_cmd
3637deplibs_check_method=$lt_cv_deplibs_check_method
3638
6be7c12c
AO
3639
3640
6be7c12c
AO
3641
3642# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3643
3644# Only perform the check for file, if the check method requires it
3645case $deplibs_check_method in
3646file_magic*)
3647 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3648 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3649echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3650if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3652else
3653 case $MAGIC_CMD in
3654 /*)
3655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3656 ;;
3657 ?:/*)
3658 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3659 ;;
3660 *)
d64552c5 3661 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3663 ac_dummy="/usr/bin:$PATH"
3664 for ac_dir in $ac_dummy; do
3665 test -z "$ac_dir" && ac_dir=.
3666 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3667 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3668 if test -n "$file_magic_test_file"; then
55c80943 3669 case $deplibs_check_method in
ac48eca1
AO
3670 "file_magic "*)
3671 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3673 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3674 egrep "$file_magic_regex" > /dev/null; then
3675 :
3676 else
3677 cat <<EOF 1>&2
3678
3679*** Warning: the command libtool uses to detect shared libraries,
3680*** $file_magic_cmd, produces output that libtool cannot recognize.
3681*** The result is that libtool may fail to recognize shared libraries
3682*** as such. This will affect the creation of libtool libraries that
3683*** depend on shared libraries, but programs linked with such libtool
3684*** libraries will work regardless of this problem. Nevertheless, you
3685*** may want to report the problem to your system manager and/or to
3686*** bug-libtool@gnu.org
3687
3688EOF
3689 fi ;;
3690 esac
3691 fi
3692 break
3693 fi
3694 done
3695 IFS="$ac_save_ifs"
d64552c5 3696 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3697 ;;
3698esac
3699fi
3700
d64552c5
AO
3701MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3702if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3703 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3704echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3705else
5464f5a1
NN
3706 echo "$as_me:$LINENO: result: no" >&5
3707echo "${ECHO_T}no" >&6
ac48eca1
AO
3708fi
3709
d64552c5 3710if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3711 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3712 echo "$as_me:$LINENO: checking for file" >&5
3713echo $ECHO_N "checking for file... $ECHO_C" >&6
3714if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3716else
55c80943 3717 case $MAGIC_CMD in
ac48eca1 3718 /*)
d64552c5 3719 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3720 ;;
3721 ?:/*)
d64552c5 3722 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3723 ;;
3724 *)
d64552c5 3725 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3727 ac_dummy="/usr/bin:$PATH"
3728 for ac_dir in $ac_dummy; do
3729 test -z "$ac_dir" && ac_dir=.
3730 if test -f $ac_dir/file; then
d64552c5 3731 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3732 if test -n "$file_magic_test_file"; then
55c80943 3733 case $deplibs_check_method in
ac48eca1
AO
3734 "file_magic "*)
3735 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3737 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3738 egrep "$file_magic_regex" > /dev/null; then
3739 :
3740 else
3741 cat <<EOF 1>&2
3742
3743*** Warning: the command libtool uses to detect shared libraries,
3744*** $file_magic_cmd, produces output that libtool cannot recognize.
3745*** The result is that libtool may fail to recognize shared libraries
3746*** as such. This will affect the creation of libtool libraries that
3747*** depend on shared libraries, but programs linked with such libtool
3748*** libraries will work regardless of this problem. Nevertheless, you
3749*** may want to report the problem to your system manager and/or to
3750*** bug-libtool@gnu.org
3751
3752EOF
3753 fi ;;
3754 esac
3755 fi
3756 break
3757 fi
3758 done
3759 IFS="$ac_save_ifs"
d64552c5 3760 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3761 ;;
3762esac
3763fi
3764
d64552c5
AO
3765MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3766if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3767 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3768echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3769else
5464f5a1
NN
3770 echo "$as_me:$LINENO: result: no" >&5
3771echo "${ECHO_T}no" >&6
ac48eca1
AO
3772fi
3773
3774 else
d64552c5 3775 MAGIC_CMD=:
ac48eca1
AO
3776 fi
3777fi
3778
3779 fi
3780 ;;
3781esac
3782
5464f5a1
NN
3783if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3785set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3786echo "$as_me:$LINENO: checking for $ac_word" >&5
3787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788if test "${ac_cv_prog_RANLIB+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3790else
3791 if test -n "$RANLIB"; then
3792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3793else
5464f5a1
NN
3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH
3796do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805done
3806done
3807
ac48eca1
AO
3808fi
3809fi
5464f5a1 3810RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3811if test -n "$RANLIB"; then
5464f5a1
NN
3812 echo "$as_me:$LINENO: result: $RANLIB" >&5
3813echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3814else
5464f5a1
NN
3815 echo "$as_me:$LINENO: result: no" >&5
3816echo "${ECHO_T}no" >&6
ac48eca1
AO
3817fi
3818
5464f5a1 3819fi
ac48eca1 3820if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3821 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3822 # Extract the first word of "ranlib", so it can be a program name with args.
3823set dummy ranlib; ac_word=$2
5464f5a1
NN
3824echo "$as_me:$LINENO: checking for $ac_word" >&5
3825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3828else
5464f5a1
NN
3829 if test -n "$ac_ct_RANLIB"; then
3830 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3831else
5464f5a1
NN
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_ac_ct_RANLIB="ranlib"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843done
3844done
3845
3846 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3847fi
3848fi
5464f5a1
NN
3849ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3850if test -n "$ac_ct_RANLIB"; then
3851 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3852echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3853else
5464f5a1
NN
3854 echo "$as_me:$LINENO: result: no" >&5
3855echo "${ECHO_T}no" >&6
ac48eca1
AO
3856fi
3857
5464f5a1 3858 RANLIB=$ac_ct_RANLIB
ac48eca1 3859else
5464f5a1 3860 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3861fi
3862
5464f5a1
NN
3863if test -n "$ac_tool_prefix"; then
3864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3865set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3866echo "$as_me:$LINENO: checking for $ac_word" >&5
3867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3868if test "${ac_cv_prog_STRIP+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3870else
3871 if test -n "$STRIP"; then
3872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3873else
5464f5a1
NN
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3884 fi
3885done
3886done
3887
ac48eca1
AO
3888fi
3889fi
5464f5a1 3890STRIP=$ac_cv_prog_STRIP
ac48eca1 3891if test -n "$STRIP"; then
5464f5a1
NN
3892 echo "$as_me:$LINENO: result: $STRIP" >&5
3893echo "${ECHO_T}$STRIP" >&6
ac48eca1 3894else
5464f5a1
NN
3895 echo "$as_me:$LINENO: result: no" >&5
3896echo "${ECHO_T}no" >&6
ac48eca1
AO
3897fi
3898
5464f5a1 3899fi
ac48eca1 3900if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3901 ac_ct_STRIP=$STRIP
ac48eca1
AO
3902 # Extract the first word of "strip", so it can be a program name with args.
3903set dummy strip; ac_word=$2
5464f5a1
NN
3904echo "$as_me:$LINENO: checking for $ac_word" >&5
3905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3908else
5464f5a1
NN
3909 if test -n "$ac_ct_STRIP"; then
3910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3911else
5464f5a1
NN
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_ac_ct_STRIP="strip"
3920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923done
3924done
3925
3926 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3927fi
3928fi
5464f5a1
NN
3929ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3930if test -n "$ac_ct_STRIP"; then
3931 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3932echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3933else
5464f5a1
NN
3934 echo "$as_me:$LINENO: result: no" >&5
3935echo "${ECHO_T}no" >&6
ac48eca1
AO
3936fi
3937
5464f5a1 3938 STRIP=$ac_ct_STRIP
ac48eca1 3939else
5464f5a1 3940 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3941fi
252b5132 3942
6be7c12c 3943
252b5132 3944# Check for any special flags to pass to ltconfig.
b2ef150d 3945libtool_flags="--cache-file=$cache_file"
252b5132
RH
3946test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3947test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 3948test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
3949test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3950test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3951
6be7c12c 3952
a74801ba
ILT
3953# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3954if test "${enable_libtool_lock+set}" = set; then
3955 enableval="$enable_libtool_lock"
a74801ba 3956
5464f5a1 3957fi;
a74801ba
ILT
3958test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3959test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3960
5464f5a1 3961
ac48eca1
AO
3962# Check whether --with-pic or --without-pic was given.
3963if test "${with_pic+set}" = set; then
3964 withval="$with_pic"
3965 pic_mode="$withval"
3966else
5464f5a1
NN
3967 pic_mode=default
3968fi;
ac48eca1
AO
3969test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3970test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3971
252b5132
RH
3972# Some flags need to be propagated to the compiler or linker for good
3973# libtool support.
55c80943 3974case $host in
252b5132
RH
3975*-*-irix6*)
3976 # Find out which ABI we are using.
8fb84ecc 3977 echo '#line 3977 "configure"' > conftest.$ac_ext
5464f5a1
NN
3978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979 (eval $ac_compile) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; then
6a457e5c
NC
3983 if test "$lt_cv_prog_gnu_ld" = yes; then
3984 case `/usr/bin/file conftest.$ac_objext` in
3985 *32-bit*)
3986 LD="${LD-ld} -melf32bsmip"
3987 ;;
3988 *N32*)
3989 LD="${LD-ld} -melf32bmipn32"
3990 ;;
3991 *64-bit*)
3992 LD="${LD-ld} -melf64bmip"
3993 ;;
3994 esac
3995 else
55c80943 3996 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3997 *32-bit*)
3998 LD="${LD-ld} -32"
3999 ;;
4000 *N32*)
4001 LD="${LD-ld} -n32"
4002 ;;
4003 *64-bit*)
4004 LD="${LD-ld} -64"
4005 ;;
4006 esac
6a457e5c 4007 fi
252b5132
RH
4008 fi
4009 rm -rf conftest*
4010 ;;
4011
4867be41
DJ
4012ia64-*-hpux*)
4013 # Find out which ABI we are using.
4014 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4016 (eval $ac_compile) 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; then
4867be41
DJ
4020 case "`/usr/bin/file conftest.o`" in
4021 *ELF-32*)
4022 HPUX_IA64_MODE="32"
4023 ;;
4024 *ELF-64*)
4025 HPUX_IA64_MODE="64"
4026 ;;
4027 esac
4028 fi
4029 rm -rf conftest*
4030 ;;
4031
252b5132
RH
4032*-*-sco3.2v5*)
4033 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4034 SAVE_CFLAGS="$CFLAGS"
252b5132 4035 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4036 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4037echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4038if test "${lt_cv_cc_needs_belf+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4040else
5464f5a1
NN
4041
4042
ac48eca1 4043 ac_ext=c
ac48eca1 4044ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4048
5464f5a1
NN
4049 cat >conftest.$ac_ext <<_ACEOF
4050/* confdefs.h. */
4051_ACEOF
4052cat confdefs.h >>conftest.$ac_ext
4053cat >>conftest.$ac_ext <<_ACEOF
4054/* end confdefs.h. */
b2ef150d 4055
5464f5a1
NN
4056int
4057main ()
4058{
b2ef150d 4059
5464f5a1
NN
4060 ;
4061 return 0;
4062}
4063_ACEOF
4064rm -f conftest.$ac_objext conftest$ac_exeext
4065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4066 (eval $ac_link) 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
8fb84ecc
AC
4073 { ac_try='test -z "$ac_c_werror_flag"
4074 || test ! -s conftest.err'
5464f5a1
NN
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 (eval $ac_try) 2>&5
4077 ac_status=$?
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest$ac_exeext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 (eval $ac_try) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
b2ef150d
ILT
4086 lt_cv_cc_needs_belf=yes
4087else
5464f5a1
NN
4088 echo "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
4090
4091lt_cv_cc_needs_belf=no
b2ef150d 4092fi
5464f5a1
NN
4093rm -f conftest.err conftest.$ac_objext \
4094 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4095 ac_ext=c
ac48eca1 4096ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4099ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4100
b2ef150d 4101fi
5464f5a1
NN
4102echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4103echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4104 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4105 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4106 CFLAGS="$SAVE_CFLAGS"
4107 fi
252b5132
RH
4108 ;;
4109
6be7c12c 4110
252b5132
RH
4111esac
4112
6be7c12c 4113
b2ef150d 4114# Save cache, so that ltconfig can load it
5464f5a1 4115cat >confcache <<\_ACEOF
b2ef150d
ILT
4116# This file is a shell script that caches the results of configure
4117# tests run on this system so they can be shared between configure
5464f5a1
NN
4118# scripts and configure runs, see configure's option --config-cache.
4119# It is not useful on other systems. If it contains results you don't
4120# want to keep, you may remove or edit it.
b2ef150d 4121#
5464f5a1
NN
4122# config.status only pays attention to the cache file if you give it
4123# the --recheck option to rerun configure.
b2ef150d 4124#
5464f5a1
NN
4125# `ac_cv_env_foo' variables (set or unset) will be overridden when
4126# loading this file, other *unset* `ac_cv_foo' will be assigned the
4127# following values.
4128
4129_ACEOF
4130
b2ef150d
ILT
4131# The following way of writing the cache mishandles newlines in values,
4132# but we know of no workaround that is simple, portable, and efficient.
4133# So, don't put newlines in cache variables' values.
4134# Ultrix sh set writes to stderr and can't be redirected directly,
4135# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4136{
4137 (set) 2>&1 |
4138 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4139 *ac_space=\ *)
4140 # `set' does not quote correctly, so add quotes (double-quote
4141 # substitution turns \\\\ into \\, and sed turns \\ into \).
4142 sed -n \
4143 "s/'/'\\\\''/g;
4144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4145 ;;
4146 *)
4147 # `set' quotes correctly as required by POSIX, so do not add quotes.
4148 sed -n \
4149 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4150 ;;
4151 esac;
4152} |
4153 sed '
4154 t clear
4155 : clear
4156 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4157 t end
4158 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4159 : end' >>confcache
4160if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4161 if test -w $cache_file; then
5464f5a1
NN
4162 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4163 cat confcache >$cache_file
b2ef150d
ILT
4164 else
4165 echo "not updating unwritable cache $cache_file"
4166 fi
4167fi
4168rm -f confcache
4169
252b5132 4170# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4171AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4172MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4173LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4174AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4175objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4176deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4177${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4178$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4179|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4180echo "$as_me: error: libtool configure failed" >&2;}
4181 { (exit 1); exit 1; }; }
252b5132 4182
b2ef150d
ILT
4183# Reload cache, that may have been modified by ltconfig
4184if test -r "$cache_file"; then
5464f5a1
NN
4185 # Some versions of bash will fail to source /dev/null (special
4186 # files actually), so we avoid doing that.
4187 if test -f "$cache_file"; then
4188 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4189echo "$as_me: loading cache $cache_file" >&6;}
4190 case $cache_file in
4191 [\\/]* | ?:[\\/]* ) . $cache_file;;
4192 *) . ./$cache_file;;
4193 esac
4194 fi
b2ef150d 4195else
5464f5a1
NN
4196 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4197echo "$as_me: creating cache $cache_file" >&6;}
4198 >$cache_file
b2ef150d
ILT
4199fi
4200
6be7c12c 4201
b2ef150d 4202# This can be used to rebuild libtool when needed
ac48eca1 4203LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4204
4205# Always use our own libtool.
4206LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4207
252b5132
RH
4208# Redirect the config.log output again, so that the ltconfig log is not
4209# clobbered by the next message.
4210exec 5>>./config.log
4211
6be7c12c 4212
5464f5a1
NN
4213
4214
4215
4216
6be7c12c 4217
252b5132
RH
4218# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4219if test "${enable_64_bit_bfd+set}" = set; then
4220 enableval="$enable_64_bit_bfd"
4221 case "${enableval}" in
4222 yes) want64=true ;;
4223 no) want64=false ;;
5464f5a1
NN
4224 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4225echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4226 { (exit 1); exit 1; }; } ;;
252b5132
RH
4227esac
4228else
4229 want64=false
5464f5a1 4230fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4231if test "${enable_targets+set}" = set; then
4232 enableval="$enable_targets"
4233 case "${enableval}" in
5464f5a1
NN
4234 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4235echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4236 { (exit 1); exit 1; }; }
252b5132
RH
4237 ;;
4238 no) enable_targets= ;;
4239 *) enable_targets=$enableval ;;
4240esac
5464f5a1 4241fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4242if test "${enable_commonbfdlib+set}" = set; then
4243 enableval="$enable_commonbfdlib"
4244 case "${enableval}" in
4245 yes) commonbfdlib=true ;;
4246 no) commonbfdlib=false ;;
5464f5a1
NN
4247 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4248echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4249 { (exit 1); exit 1; }; } ;;
252b5132 4250esac
5464f5a1 4251fi;
252b5132
RH
4252# Check whether --with-mmap or --without-mmap was given.
4253if test "${with_mmap+set}" = set; then
4254 withval="$with_mmap"
4255 case "${withval}" in
4256 yes) want_mmap=true ;;
4257 no) want_mmap=false ;;
5464f5a1
NN
4258 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4259echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4260 { (exit 1); exit 1; }; } ;;
252b5132
RH
4261esac
4262else
4263 want_mmap=false
5464f5a1 4264fi;
0218d1e4 4265build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
4266# Check whether --enable-build-warnings or --disable-build-warnings was given.
4267if test "${enable_build_warnings+set}" = set; then
4268 enableval="$enable_build_warnings"
4269 case "${enableval}" in
4270 yes) ;;
4271 no) build_warnings="-w";;
4272 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4273 build_warnings="${build_warnings} ${t}";;
4274 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4275 build_warnings="${t} ${build_warnings}";;
4276 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4277esac
4278if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4279 echo "Setting warning flags = $build_warnings" 6>&1
4280fi
5464f5a1 4281fi; WARN_CFLAGS=""
66e25bab 4282if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
a2d91340
AC
4283 WARN_CFLAGS="${build_warnings}"
4284fi
4285
4286
5464f5a1 4287 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4288
252b5132
RH
4289
4290if test -z "$target" ; then
5464f5a1
NN
4291 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4292echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4293 { (exit 1); exit 1; }; }
252b5132 4294fi
252b5132 4295
5464f5a1
NN
4296echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4297echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4298 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4299if test "${enable_maintainer_mode+set}" = set; then
4300 enableval="$enable_maintainer_mode"
4301 USE_MAINTAINER_MODE=$enableval
4302else
4303 USE_MAINTAINER_MODE=no
5464f5a1
NN
4304fi;
4305 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4306echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4307
252b5132
RH
4308
4309if test $USE_MAINTAINER_MODE = yes; then
4310 MAINTAINER_MODE_TRUE=
4311 MAINTAINER_MODE_FALSE='#'
4312else
4313 MAINTAINER_MODE_TRUE='#'
4314 MAINTAINER_MODE_FALSE=
4315fi
f5385ebf 4316
252b5132 4317 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4318
5464f5a1 4319
24443139
AS
4320 case ${build_alias} in
4321 "") build_noncanonical=${build} ;;
4322 *) build_noncanonical=${build_alias} ;;
4323esac
4324
4325 case ${host_alias} in
4326 "") host_noncanonical=${build_noncanonical} ;;
4327 *) host_noncanonical=${host_alias} ;;
4328esac
4329
4330 case ${target_alias} in
4331 "") target_noncanonical=${host_noncanonical} ;;
4332 *) target_noncanonical=${target_alias} ;;
4333esac
4334
5464f5a1
NN
4335echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4336echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4337 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4338if test "${enable_install_libbfd+set}" = set; then
4339 enableval="$enable_install_libbfd"
4340 install_libbfd_p=$enableval
4341else
66e25bab 4342 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4343 install_libbfd_p=yes
4344 else
4345 install_libbfd_p=no
4346 fi
5464f5a1
NN
4347fi;
4348 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4349echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4350
a703a6ea
AM
4351
4352if test $install_libbfd_p = yes; then
4353 INSTALL_LIBBFD_TRUE=
4354 INSTALL_LIBBFD_FALSE='#'
4355else
4356 INSTALL_LIBBFD_TRUE='#'
4357 INSTALL_LIBBFD_FALSE=
4358fi
f5385ebf 4359
5464f5a1 4360 # Need _noncanonical variables for this.
24443139
AS
4361
4362
4363
4364
a703a6ea
AM
4365 # libbfd.a is a host library containing target dependent code
4366 bfdlibdir='$(libdir)'
4367 bfdincludedir='$(includedir)'
4368 if test "${host}" != "${target}"; then
5464f5a1
NN
4369 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4370 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4371 fi
a703a6ea
AM
4372
4373
252b5132
RH
4374
4375
5464f5a1
NN
4376
4377
4378host64=false
4379target64=false
4380bfd_default_target_size=32
4381
4382# host stuff:
4383
4384ac_ext=c
4385ac_cpp='$CPP $CPPFLAGS'
4386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389if test -n "$ac_tool_prefix"; then
4390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4391set dummy ${ac_tool_prefix}gcc; ac_word=$2
4392echo "$as_me:$LINENO: checking for $ac_word" >&5
4393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4394if test "${ac_cv_prog_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4396else
5464f5a1
NN
4397 if test -n "$CC"; then
4398 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4399else
5464f5a1
NN
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
6be7c12c 4410 fi
5464f5a1
NN
4411done
4412done
4413
252b5132 4414fi
b3baf5d0 4415fi
5464f5a1
NN
4416CC=$ac_cv_prog_CC
4417if test -n "$CC"; then
4418 echo "$as_me:$LINENO: result: $CC" >&5
4419echo "${ECHO_T}$CC" >&6
4420else
4421 echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6
4423fi
252b5132 4424
5464f5a1
NN
4425fi
4426if test -z "$ac_cv_prog_CC"; then
4427 ac_ct_CC=$CC
4428 # Extract the first word of "gcc", so it can be a program name with args.
4429set dummy gcc; ac_word=$2
4430echo "$as_me:$LINENO: checking for $ac_word" >&5
4431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4432if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434else
4435 if test -n "$ac_ct_CC"; then
4436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4437else
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4445 ac_cv_prog_ac_ct_CC="gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4448 fi
4449done
4450done
252b5132 4451
5464f5a1
NN
4452fi
4453fi
4454ac_ct_CC=$ac_cv_prog_ac_ct_CC
4455if test -n "$ac_ct_CC"; then
4456 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4457echo "${ECHO_T}$ac_ct_CC" >&6
4458else
4459 echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6
4461fi
252b5132 4462
5464f5a1
NN
4463 CC=$ac_ct_CC
4464else
4465 CC="$ac_cv_prog_CC"
4466fi
252b5132 4467
5464f5a1
NN
4468if test -z "$CC"; then
4469 if test -n "$ac_tool_prefix"; then
4470 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4471set dummy ${ac_tool_prefix}cc; ac_word=$2
4472echo "$as_me:$LINENO: checking for $ac_word" >&5
4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474if test "${ac_cv_prog_CC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476else
4477 if test -n "$CC"; then
4478 ac_cv_prog_CC="$CC" # Let the user override the test.
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_CC="${ac_tool_prefix}cc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491done
4492done
6be7c12c 4493
5464f5a1
NN
4494fi
4495fi
4496CC=$ac_cv_prog_CC
4497if test -n "$CC"; then
4498 echo "$as_me:$LINENO: result: $CC" >&5
4499echo "${ECHO_T}$CC" >&6
4500else
4501 echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6
4503fi
4504
4505fi
4506if test -z "$ac_cv_prog_CC"; then
4507 ac_ct_CC=$CC
4508 # Extract the first word of "cc", so it can be a program name with args.
4509set dummy cc; ac_word=$2
4510echo "$as_me:$LINENO: checking for $ac_word" >&5
4511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514else
4515 if test -n "$ac_ct_CC"; then
4516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4517else
4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_prog_ac_ct_CC="cc"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529done
4530done
4531
4532fi
4533fi
4534ac_ct_CC=$ac_cv_prog_ac_ct_CC
4535if test -n "$ac_ct_CC"; then
4536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4537echo "${ECHO_T}$ac_ct_CC" >&6
4538else
4539 echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6
4541fi
4542
4543 CC=$ac_ct_CC
4544else
4545 CC="$ac_cv_prog_CC"
4546fi
4547
4548fi
4549if test -z "$CC"; then
4550 # Extract the first word of "cc", so it can be a program name with args.
4551set dummy cc; ac_word=$2
4552echo "$as_me:$LINENO: checking for $ac_word" >&5
4553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554if test "${ac_cv_prog_CC+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4556else
4557 if test -n "$CC"; then
4558 ac_cv_prog_CC="$CC" # Let the user override the test.
4559else
5464f5a1
NN
4560 ac_prog_rejected=no
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4569 ac_prog_rejected=yes
4570 continue
4571 fi
4572 ac_cv_prog_CC="cc"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576done
4577done
4578
4579if test $ac_prog_rejected = yes; then
4580 # We found a bogon in the path, so make sure we never use it.
4581 set dummy $ac_cv_prog_CC
4582 shift
4583 if test $# != 0; then
4584 # We chose a different compiler from the bogus one.
4585 # However, it has the same basename, so the bogon will be chosen
4586 # first if we set CC to just the basename; use the full file name.
4587 shift
4588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4589 fi
4590fi
4591fi
4592fi
4593CC=$ac_cv_prog_CC
4594if test -n "$CC"; then
4595 echo "$as_me:$LINENO: result: $CC" >&5
4596echo "${ECHO_T}$CC" >&6
4597else
4598 echo "$as_me:$LINENO: result: no" >&5
4599echo "${ECHO_T}no" >&6
4600fi
4601
4602fi
4603if test -z "$CC"; then
4604 if test -n "$ac_tool_prefix"; then
4605 for ac_prog in cl
4606 do
4607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4609echo "$as_me:$LINENO: checking for $ac_word" >&5
4610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611if test "${ac_cv_prog_CC+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613else
4614 if test -n "$CC"; then
4615 ac_cv_prog_CC="$CC" # Let the user override the test.
4616else
4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618for as_dir in $PATH
4619do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628done
4629done
4630
4631fi
4632fi
4633CC=$ac_cv_prog_CC
4634if test -n "$CC"; then
4635 echo "$as_me:$LINENO: result: $CC" >&5
4636echo "${ECHO_T}$CC" >&6
4637else
4638 echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6
4640fi
4641
4642 test -n "$CC" && break
6be7c12c 4643 done
252b5132 4644fi
5464f5a1
NN
4645if test -z "$CC"; then
4646 ac_ct_CC=$CC
4647 for ac_prog in cl
4648do
4649 # Extract the first word of "$ac_prog", so it can be a program name with args.
4650set dummy $ac_prog; ac_word=$2
4651echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656 if test -n "$ac_ct_CC"; then
4657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_prog_ac_ct_CC="$ac_prog"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670done
4671done
4672
4673fi
4674fi
4675ac_ct_CC=$ac_cv_prog_ac_ct_CC
4676if test -n "$ac_ct_CC"; then
4677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4678echo "${ECHO_T}$ac_ct_CC" >&6
4679else
4680 echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6
4682fi
4683
4684 test -n "$ac_ct_CC" && break
4685done
4686
4687 CC=$ac_ct_CC
4688fi
4689
4690fi
4691
4692
4693test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4694See \`config.log' for more details." >&5
4695echo "$as_me: error: no acceptable C compiler found in \$PATH
4696See \`config.log' for more details." >&2;}
4697 { (exit 1); exit 1; }; }
4698
4699# Provide some information about the compiler.
4700echo "$as_me:$LINENO:" \
4701 "checking for C compiler version" >&5
4702ac_compiler=`set X $ac_compile; echo $2`
4703{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4704 (eval $ac_compiler --version </dev/null >&5) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }
4708{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4709 (eval $ac_compiler -v </dev/null >&5) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }
4713{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4714 (eval $ac_compiler -V </dev/null >&5) 2>&5
4715 ac_status=$?
4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }
4718
4719echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4720echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4721if test "${ac_cv_c_compiler_gnu+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
4724 cat >conftest.$ac_ext <<_ACEOF
4725/* confdefs.h. */
4726_ACEOF
4727cat confdefs.h >>conftest.$ac_ext
4728cat >>conftest.$ac_ext <<_ACEOF
4729/* end confdefs.h. */
4730
4731int
4732main ()
4733{
4734#ifndef __GNUC__
4735 choke me
4736#endif
4737
4738 ;
4739 return 0;
4740}
4741_ACEOF
4742rm -f conftest.$ac_objext
4743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744 (eval $ac_compile) 2>conftest.er1
4745 ac_status=$?
4746 grep -v '^ *+' conftest.er1 >conftest.err
4747 rm -f conftest.er1
4748 cat conftest.err >&5
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); } &&
8fb84ecc
AC
4751 { ac_try='test -z "$ac_c_werror_flag"
4752 || test ! -s conftest.err'
5464f5a1
NN
4753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 (eval $ac_try) 2>&5
4755 ac_status=$?
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; } &&
4758 { ac_try='test -s conftest.$ac_objext'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 ac_compiler_gnu=yes
4765else
4766 echo "$as_me: failed program was:" >&5
4767sed 's/^/| /' conftest.$ac_ext >&5
4768
4769ac_compiler_gnu=no
4770fi
4771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4772ac_cv_c_compiler_gnu=$ac_compiler_gnu
4773
4774fi
4775echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4776echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4777GCC=`test $ac_compiler_gnu = yes && echo yes`
4778ac_test_CFLAGS=${CFLAGS+set}
4779ac_save_CFLAGS=$CFLAGS
4780CFLAGS="-g"
4781echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4782echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4783if test "${ac_cv_prog_cc_g+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786 cat >conftest.$ac_ext <<_ACEOF
4787/* confdefs.h. */
4788_ACEOF
4789cat confdefs.h >>conftest.$ac_ext
4790cat >>conftest.$ac_ext <<_ACEOF
4791/* end confdefs.h. */
4792
4793int
4794main ()
4795{
4796
4797 ;
4798 return 0;
4799}
4800_ACEOF
4801rm -f conftest.$ac_objext
4802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803 (eval $ac_compile) 2>conftest.er1
4804 ac_status=$?
4805 grep -v '^ *+' conftest.er1 >conftest.err
4806 rm -f conftest.er1
4807 cat conftest.err >&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } &&
8fb84ecc
AC
4810 { ac_try='test -z "$ac_c_werror_flag"
4811 || test ! -s conftest.err'
5464f5a1
NN
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 (eval $ac_try) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; } &&
4817 { ac_try='test -s conftest.$ac_objext'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 (eval $ac_try) 2>&5
4820 ac_status=$?
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4823 ac_cv_prog_cc_g=yes
4824else
4825 echo "$as_me: failed program was:" >&5
4826sed 's/^/| /' conftest.$ac_ext >&5
4827
4828ac_cv_prog_cc_g=no
4829fi
4830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4831fi
4832echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4833echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4834if test "$ac_test_CFLAGS" = set; then
4835 CFLAGS=$ac_save_CFLAGS
4836elif test $ac_cv_prog_cc_g = yes; then
4837 if test "$GCC" = yes; then
4838 CFLAGS="-g -O2"
4839 else
4840 CFLAGS="-g"
4841 fi
4842else
4843 if test "$GCC" = yes; then
4844 CFLAGS="-O2"
4845 else
4846 CFLAGS=
4847 fi
4848fi
4849echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4850echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4851if test "${ac_cv_prog_cc_stdc+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853else
4854 ac_cv_prog_cc_stdc=no
4855ac_save_CC=$CC
4856cat >conftest.$ac_ext <<_ACEOF
4857/* confdefs.h. */
4858_ACEOF
4859cat confdefs.h >>conftest.$ac_ext
4860cat >>conftest.$ac_ext <<_ACEOF
4861/* end confdefs.h. */
4862#include <stdarg.h>
4863#include <stdio.h>
4864#include <sys/types.h>
4865#include <sys/stat.h>
4866/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4867struct buf { int x; };
4868FILE * (*rcsopen) (struct buf *, struct stat *, int);
4869static char *e (p, i)
4870 char **p;
4871 int i;
4872{
4873 return p[i];
4874}
4875static char *f (char * (*g) (char **, int), char **p, ...)
4876{
4877 char *s;
4878 va_list v;
4879 va_start (v,p);
4880 s = g (p, va_arg (v,int));
4881 va_end (v);
4882 return s;
4883}
4884
4885/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4886 function prototypes and stuff, but not '\xHH' hex character constants.
4887 These don't provoke an error unfortunately, instead are silently treated
4888 as 'x'. The following induces an error, until -std1 is added to get
4889 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4890 array size at least. It's necessary to write '\x00'==0 to get something
4891 that's true only with -std1. */
4892int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4893
4894int test (int i, double x);
4895struct s1 {int (*f) (int a);};
4896struct s2 {int (*f) (double a);};
4897int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4898int argc;
4899char **argv;
4900int
4901main ()
4902{
4903return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4904 ;
4905 return 0;
4906}
4907_ACEOF
4908# Don't try gcc -ansi; that turns off useful extensions and
4909# breaks some systems' header files.
4910# AIX -qlanglvl=ansi
4911# Ultrix and OSF/1 -std1
4912# HP-UX 10.20 and later -Ae
4913# HP-UX older versions -Aa -D_HPUX_SOURCE
4914# SVR4 -Xc -D__EXTENSIONS__
4915for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4916do
4917 CC="$ac_save_CC $ac_arg"
4918 rm -f conftest.$ac_objext
4919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920 (eval $ac_compile) 2>conftest.er1
4921 ac_status=$?
4922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } &&
8fb84ecc
AC
4927 { ac_try='test -z "$ac_c_werror_flag"
4928 || test ! -s conftest.err'
5464f5a1
NN
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 (eval $ac_try) 2>&5
4931 ac_status=$?
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; } &&
4934 { ac_try='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 (eval $ac_try) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_cv_prog_cc_stdc=$ac_arg
4941break
4942else
4943 echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946fi
4947rm -f conftest.err conftest.$ac_objext
4948done
4949rm -f conftest.$ac_ext conftest.$ac_objext
4950CC=$ac_save_CC
4951
4952fi
4953
4954case "x$ac_cv_prog_cc_stdc" in
4955 x|xno)
4956 echo "$as_me:$LINENO: result: none needed" >&5
4957echo "${ECHO_T}none needed" >&6 ;;
4958 *)
4959 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4960echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4961 CC="$CC $ac_cv_prog_cc_stdc" ;;
4962esac
4963
4964# Some people use a C++ compiler to compile C. Since we use `exit',
4965# in C++ we need to declare it. In case someone uses the same compiler
4966# for both compiling C and C++ we need to have the C++ compiler decide
4967# the declaration of exit, since it's the most demanding environment.
4968cat >conftest.$ac_ext <<_ACEOF
4969#ifndef __cplusplus
4970 choke me
4971#endif
4972_ACEOF
4973rm -f conftest.$ac_objext
4974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975 (eval $ac_compile) 2>conftest.er1
4976 ac_status=$?
4977 grep -v '^ *+' conftest.er1 >conftest.err
4978 rm -f conftest.er1
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
8fb84ecc
AC
4982 { ac_try='test -z "$ac_c_werror_flag"
4983 || test ! -s conftest.err'
5464f5a1
NN
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; } &&
4989 { ac_try='test -s conftest.$ac_objext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 for ac_declaration in \
4996 '' \
4997 'extern "C" void std::exit (int) throw (); using std::exit;' \
4998 'extern "C" void std::exit (int); using std::exit;' \
4999 'extern "C" void exit (int) throw ();' \
5000 'extern "C" void exit (int);' \
5001 'void exit (int);'
5002do
5003 cat >conftest.$ac_ext <<_ACEOF
5004/* confdefs.h. */
5005_ACEOF
5006cat confdefs.h >>conftest.$ac_ext
5007cat >>conftest.$ac_ext <<_ACEOF
5008/* end confdefs.h. */
5009$ac_declaration
5010#include <stdlib.h>
5011int
5012main ()
5013{
5014exit (42);
5015 ;
5016 return 0;
5017}
5018_ACEOF
5019rm -f conftest.$ac_objext
5020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021 (eval $ac_compile) 2>conftest.er1
5022 ac_status=$?
5023 grep -v '^ *+' conftest.er1 >conftest.err
5024 rm -f conftest.er1
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } &&
8fb84ecc
AC
5028 { ac_try='test -z "$ac_c_werror_flag"
5029 || test ! -s conftest.err'
5464f5a1
NN
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 (eval $ac_try) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; } &&
5035 { ac_try='test -s conftest.$ac_objext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 (eval $ac_try) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 :
5042else
5043 echo "$as_me: failed program was:" >&5
5044sed 's/^/| /' conftest.$ac_ext >&5
5045
5046continue
5047fi
5048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5049 cat >conftest.$ac_ext <<_ACEOF
5050/* confdefs.h. */
5051_ACEOF
5052cat confdefs.h >>conftest.$ac_ext
5053cat >>conftest.$ac_ext <<_ACEOF
5054/* end confdefs.h. */
5055$ac_declaration
5056int
5057main ()
5058{
5059exit (42);
5060 ;
5061 return 0;
5062}
5063_ACEOF
5064rm -f conftest.$ac_objext
5065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>conftest.er1
5067 ac_status=$?
5068 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1
5070 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } &&
8fb84ecc
AC
5073 { ac_try='test -z "$ac_c_werror_flag"
5074 || test ! -s conftest.err'
5464f5a1
NN
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; } &&
5080 { ac_try='test -s conftest.$ac_objext'
5081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5082 (eval $ac_try) 2>&5
5083 ac_status=$?
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 break
5087else
5088 echo "$as_me: failed program was:" >&5
5089sed 's/^/| /' conftest.$ac_ext >&5
5090
5091fi
5092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5093done
5094rm -f conftest*
5095if test -n "$ac_declaration"; then
5096 echo '#ifdef __cplusplus' >>confdefs.h
5097 echo $ac_declaration >>confdefs.h
5098 echo '#endif' >>confdefs.h
252b5132 5099fi
5464f5a1 5100
b3baf5d0 5101else
5464f5a1
NN
5102 echo "$as_me: failed program was:" >&5
5103sed 's/^/| /' conftest.$ac_ext >&5
5104
b3baf5d0 5105fi
5464f5a1
NN
5106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5107ac_ext=c
5108ac_cpp='$CPP $CPPFLAGS'
5109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5112
5464f5a1
NN
5113
5114ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
5115if test -n "$ac_tool_prefix"; then
5116 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5117set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5118echo "$as_me:$LINENO: checking for $ac_word" >&5
5119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5120if test "${ac_cv_prog_RANLIB+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5122else
5464f5a1
NN
5123 if test -n "$RANLIB"; then
5124 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 5125else
5464f5a1
NN
5126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH
5128do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
252b5132 5136 fi
5464f5a1
NN
5137done
5138done
5139
252b5132
RH
5140fi
5141fi
5464f5a1
NN
5142RANLIB=$ac_cv_prog_RANLIB
5143if test -n "$RANLIB"; then
5144 echo "$as_me:$LINENO: result: $RANLIB" >&5
5145echo "${ECHO_T}$RANLIB" >&6
252b5132 5146else
5464f5a1
NN
5147 echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
252b5132
RH
5149fi
5150
5464f5a1
NN
5151fi
5152if test -z "$ac_cv_prog_RANLIB"; then
5153 ac_ct_RANLIB=$RANLIB
5154 # Extract the first word of "ranlib", so it can be a program name with args.
5155set dummy ranlib; ac_word=$2
5156echo "$as_me:$LINENO: checking for $ac_word" >&5
5157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5158if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5160else
5464f5a1
NN
5161 if test -n "$ac_ct_RANLIB"; then
5162 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 5163else
5464f5a1
NN
5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_ac_ct_RANLIB="ranlib"
5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5174 fi
5175done
5176done
5177
5178 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
5179fi
5180fi
5464f5a1
NN
5181ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5182if test -n "$ac_ct_RANLIB"; then
5183 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5184echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 5185else
5464f5a1
NN
5186 echo "$as_me:$LINENO: result: no" >&5
5187echo "${ECHO_T}no" >&6
b3baf5d0 5188fi
252b5132 5189
5464f5a1 5190 RANLIB=$ac_ct_RANLIB
6be7c12c 5191else
5464f5a1 5192 RANLIB="$ac_cv_prog_RANLIB"
252b5132 5193fi
5464f5a1 5194
6be7c12c 5195ac_ext=c
6be7c12c 5196ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
5197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5201echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5202# On Suns, sometimes $CPP names a directory.
5203if test -n "$CPP" && test -d "$CPP"; then
5204 CPP=
6be7c12c 5205fi
5464f5a1
NN
5206if test -z "$CPP"; then
5207 if test "${ac_cv_prog_CPP+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5209else
5464f5a1
NN
5210 # Double quotes because CPP needs to be expanded
5211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5212 do
5213 ac_preproc_ok=false
5214for ac_c_preproc_warn_flag in '' yes
5215do
5216 # Use a header file that comes with gcc, so configuring glibc
5217 # with a fresh cross-compiler works.
5218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5219 # <limits.h> exists even on freestanding compilers.
5220 # On the NeXT, cc -E runs the code through the compiler's parser,
5221 # not just through cpp. "Syntax error" is here to catch this case.
5222 cat >conftest.$ac_ext <<_ACEOF
5223/* confdefs.h. */
5224_ACEOF
5225cat confdefs.h >>conftest.$ac_ext
5226cat >>conftest.$ac_ext <<_ACEOF
5227/* end confdefs.h. */
5228#ifdef __STDC__
5229# include <limits.h>
5230#else
5231# include <assert.h>
252b5132 5232#endif
5464f5a1
NN
5233 Syntax error
5234_ACEOF
5235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } >/dev/null; then
5243 if test -s conftest.err; then
5244 ac_cpp_err=$ac_c_preproc_warn_flag
5245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5246 else
5247 ac_cpp_err=
5248 fi
6be7c12c 5249else
5464f5a1 5250 ac_cpp_err=yes
6be7c12c 5251fi
5464f5a1
NN
5252if test -z "$ac_cpp_err"; then
5253 :
6be7c12c 5254else
5464f5a1
NN
5255 echo "$as_me: failed program was:" >&5
5256sed 's/^/| /' conftest.$ac_ext >&5
5257
5258 # Broken: fails on valid input.
5259continue
5260fi
5261rm -f conftest.err conftest.$ac_ext
5262
5263 # OK, works on sane cases. Now check whether non-existent headers
5264 # can be detected and how.
5265 cat >conftest.$ac_ext <<_ACEOF
5266/* confdefs.h. */
5267_ACEOF
5268cat confdefs.h >>conftest.$ac_ext
5269cat >>conftest.$ac_ext <<_ACEOF
5270/* end confdefs.h. */
5271#include <ac_nonexistent.h>
5272_ACEOF
5273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } >/dev/null; then
5281 if test -s conftest.err; then
5282 ac_cpp_err=$ac_c_preproc_warn_flag
5283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5284 else
5285 ac_cpp_err=
5286 fi
252b5132 5287else
5464f5a1 5288 ac_cpp_err=yes
252b5132 5289fi
5464f5a1
NN
5290if test -z "$ac_cpp_err"; then
5291 # Broken: success on invalid input.
5292continue
5293else
5294 echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
6be7c12c 5296
5464f5a1
NN
5297 # Passes both tests.
5298ac_preproc_ok=:
5299break
252b5132 5300fi
5464f5a1 5301rm -f conftest.err conftest.$ac_ext
6be7c12c 5302
5464f5a1
NN
5303done
5304# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5305rm -f conftest.err conftest.$ac_ext
5306if $ac_preproc_ok; then
5307 break
252b5132
RH
5308fi
5309
5464f5a1
NN
5310 done
5311 ac_cv_prog_CPP=$CPP
252b5132 5312
252b5132 5313fi
5464f5a1 5314 CPP=$ac_cv_prog_CPP
6be7c12c 5315else
5464f5a1
NN
5316 ac_cv_prog_CPP=$CPP
5317fi
5318echo "$as_me:$LINENO: result: $CPP" >&5
5319echo "${ECHO_T}$CPP" >&6
5320ac_preproc_ok=false
5321for ac_c_preproc_warn_flag in '' yes
5322do
5323 # Use a header file that comes with gcc, so configuring glibc
5324 # with a fresh cross-compiler works.
5325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326 # <limits.h> exists even on freestanding compilers.
6be7c12c 5327 # On the NeXT, cc -E runs the code through the compiler's parser,
5464f5a1
NN
5328 # not just through cpp. "Syntax error" is here to catch this case.
5329 cat >conftest.$ac_ext <<_ACEOF
5330/* confdefs.h. */
5331_ACEOF
5332cat confdefs.h >>conftest.$ac_ext
5333cat >>conftest.$ac_ext <<_ACEOF
5334/* end confdefs.h. */
5335#ifdef __STDC__
5336# include <limits.h>
5337#else
5338# include <assert.h>
5339#endif
5340 Syntax error
5341_ACEOF
5342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5344 ac_status=$?
5345 grep -v '^ *+' conftest.er1 >conftest.err
5346 rm -f conftest.er1
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } >/dev/null; then
5350 if test -s conftest.err; then
5351 ac_cpp_err=$ac_c_preproc_warn_flag
5352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5353 else
5354 ac_cpp_err=
5355 fi
252b5132 5356else
5464f5a1
NN
5357 ac_cpp_err=yes
5358fi
5359if test -z "$ac_cpp_err"; then
6be7c12c 5360 :
252b5132 5361else
5464f5a1
NN
5362 echo "$as_me: failed program was:" >&5
5363sed 's/^/| /' conftest.$ac_ext >&5
5364
5365 # Broken: fails on valid input.
5366continue
5367fi
5368rm -f conftest.err conftest.$ac_ext
5369
5370 # OK, works on sane cases. Now check whether non-existent headers
5371 # can be detected and how.
5372 cat >conftest.$ac_ext <<_ACEOF
5373/* confdefs.h. */
5374_ACEOF
5375cat confdefs.h >>conftest.$ac_ext
5376cat >>conftest.$ac_ext <<_ACEOF
5377/* end confdefs.h. */
5378#include <ac_nonexistent.h>
5379_ACEOF
5380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5382 ac_status=$?
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } >/dev/null; then
5388 if test -s conftest.err; then
5389 ac_cpp_err=$ac_c_preproc_warn_flag
5390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5391 else
5392 ac_cpp_err=
5393 fi
b3baf5d0 5394else
5464f5a1 5395 ac_cpp_err=yes
6be7c12c 5396fi
5464f5a1
NN
5397if test -z "$ac_cpp_err"; then
5398 # Broken: success on invalid input.
5399continue
ac48eca1 5400else
5464f5a1
NN
5401 echo "$as_me: failed program was:" >&5
5402sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 # Passes both tests.
5405ac_preproc_ok=:
5406break
b3baf5d0 5407fi
5464f5a1 5408rm -f conftest.err conftest.$ac_ext
6be7c12c 5409
5464f5a1
NN
5410done
5411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5412rm -f conftest.err conftest.$ac_ext
5413if $ac_preproc_ok; then
5414 :
6be7c12c 5415else
5464f5a1
NN
5416 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5417See \`config.log' for more details." >&5
5418echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5419See \`config.log' for more details." >&2;}
5420 { (exit 1); exit 1; }; }
ac48eca1 5421fi
5464f5a1
NN
5422
5423ac_ext=c
5424ac_cpp='$CPP $CPPFLAGS'
5425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428
5429
5430echo "$as_me:$LINENO: checking for egrep" >&5
5431echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5432if test "${ac_cv_prog_egrep+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5434else
5464f5a1
NN
5435 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5436 then ac_cv_prog_egrep='grep -E'
5437 else ac_cv_prog_egrep='egrep'
5438 fi
b3baf5d0 5439fi
5464f5a1
NN
5440echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5441echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5442 EGREP=$ac_cv_prog_egrep
5443
ac48eca1 5444
5464f5a1
NN
5445echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5446echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5447if test "${ac_cv_header_stdc+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5449else
5464f5a1
NN
5450 cat >conftest.$ac_ext <<_ACEOF
5451/* confdefs.h. */
5452_ACEOF
5453cat confdefs.h >>conftest.$ac_ext
5454cat >>conftest.$ac_ext <<_ACEOF
5455/* end confdefs.h. */
252b5132
RH
5456#include <stdlib.h>
5457#include <stdarg.h>
5458#include <string.h>
5459#include <float.h>
5464f5a1
NN
5460
5461int
5462main ()
5463{
5464
5465 ;
5466 return 0;
5467}
5468_ACEOF
5469rm -f conftest.$ac_objext
5470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5471 (eval $ac_compile) 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
8fb84ecc
AC
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
5464f5a1
NN
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest.$ac_objext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
252b5132
RH
5491 ac_cv_header_stdc=yes
5492else
5464f5a1
NN
5493 echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
5495
5496ac_cv_header_stdc=no
252b5132 5497fi
5464f5a1 5498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5499
5500if test $ac_cv_header_stdc = yes; then
5501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464f5a1
NN
5502 cat >conftest.$ac_ext <<_ACEOF
5503/* confdefs.h. */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
5507/* end confdefs.h. */
252b5132 5508#include <string.h>
5464f5a1
NN
5509
5510_ACEOF
252b5132 5511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5512 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5513 :
5514else
252b5132
RH
5515 ac_cv_header_stdc=no
5516fi
5517rm -f conftest*
5518
5519fi
5520
5521if test $ac_cv_header_stdc = yes; then
5522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464f5a1
NN
5523 cat >conftest.$ac_ext <<_ACEOF
5524/* confdefs.h. */
5525_ACEOF
5526cat confdefs.h >>conftest.$ac_ext
5527cat >>conftest.$ac_ext <<_ACEOF
5528/* end confdefs.h. */
252b5132 5529#include <stdlib.h>
5464f5a1
NN
5530
5531_ACEOF
252b5132 5532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5533 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5534 :
5535else
252b5132
RH
5536 ac_cv_header_stdc=no
5537fi
5538rm -f conftest*
5539
5540fi
5541
5542if test $ac_cv_header_stdc = yes; then
5543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464f5a1 5544 if test "$cross_compiling" = yes; then
252b5132
RH
5545 :
5546else
5464f5a1
NN
5547 cat >conftest.$ac_ext <<_ACEOF
5548/* confdefs.h. */
5549_ACEOF
5550cat confdefs.h >>conftest.$ac_ext
5551cat >>conftest.$ac_ext <<_ACEOF
5552/* end confdefs.h. */
252b5132 5553#include <ctype.h>
5464f5a1
NN
5554#if ((' ' & 0x0FF) == 0x020)
5555# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5556# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5557#else
5558# define ISLOWER(c) \
5559 (('a' <= (c) && (c) <= 'i') \
5560 || ('j' <= (c) && (c) <= 'r') \
5561 || ('s' <= (c) && (c) <= 'z'))
5562# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5563#endif
6be7c12c 5564
5464f5a1
NN
5565#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5566int
5567main ()
5568{
5569 int i;
5570 for (i = 0; i < 256; i++)
5571 if (XOR (islower (i), ISLOWER (i))
5572 || toupper (i) != TOUPPER (i))
5573 exit(2);
5574 exit (0);
5575}
5576_ACEOF
5577rm -f conftest$ac_exeext
5578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579 (eval $ac_link) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 (eval $ac_try) 2>&5
5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
252b5132
RH
5588 :
5589else
5464f5a1
NN
5590 echo "$as_me: program exited with status $ac_status" >&5
5591echo "$as_me: failed program was:" >&5
5592sed 's/^/| /' conftest.$ac_ext >&5
5593
5594( exit $ac_status )
5595ac_cv_header_stdc=no
252b5132 5596fi
5464f5a1 5597rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5598fi
252b5132
RH
5599fi
5600fi
5464f5a1
NN
5601echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5602echo "${ECHO_T}$ac_cv_header_stdc" >&6
6be7c12c 5603if test $ac_cv_header_stdc = yes; then
5464f5a1
NN
5604
5605cat >>confdefs.h <<\_ACEOF
252b5132 5606#define STDC_HEADERS 1
5464f5a1 5607_ACEOF
252b5132
RH
5608
5609fi
5610
5464f5a1
NN
5611echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5612echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5613if test "${ac_cv_c_const+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5615else
5464f5a1
NN
5616 cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h. */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h. */
6be7c12c 5622
5464f5a1
NN
5623int
5624main ()
5625{
5626/* FIXME: Include the comments suggested by Paul. */
5627#ifndef __cplusplus
5628 /* Ultrix mips cc rejects this. */
5629 typedef int charset[2];
5630 const charset x;
5631 /* SunOS 4.1.1 cc rejects this. */
5632 char const *const *ccp;
5633 char **p;
5634 /* NEC SVR4.0.2 mips cc rejects this. */
5635 struct point {int x, y;};
5636 static struct point const zero = {0,0};
5637 /* AIX XL C 1.02.0.0 rejects this.
5638 It does not let you subtract one const X* pointer from another in
5639 an arm of an if-expression whose if-part is not a constant
5640 expression */
5641 const char *g = "string";
5642 ccp = &g + (g ? g-g : 0);
5643 /* HPUX 7.0 cc rejects these. */
5644 ++ccp;
5645 p = (char**) ccp;
5646 ccp = (char const *const *) p;
5647 { /* SCO 3.2v4 cc rejects this. */
5648 char *t;
5649 char const *s = 0 ? (char *) 0 : (char const *) 0;
5650
5651 *t++ = 0;
5652 }
5653 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5654 int x[] = {25, 17};
5655 const int *foo = &x[0];
5656 ++foo;
5657 }
5658 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5659 typedef const int *iptr;
5660 iptr p = 0;
5661 ++p;
5662 }
5663 { /* AIX XL C 1.02.0.0 rejects this saying
5664 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5665 struct s { int j; const int *ap[3]; };
5666 struct s *b; b->j = 5;
5667 }
5668 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5669 const int foo = 10;
5670 }
5671#endif
6be7c12c 5672
5464f5a1
NN
5673 ;
5674 return 0;
5675}
5676_ACEOF
5677rm -f conftest.$ac_objext
5678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679 (eval $ac_compile) 2>conftest.er1
5680 ac_status=$?
5681 grep -v '^ *+' conftest.er1 >conftest.err
5682 rm -f conftest.er1
5683 cat conftest.err >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
8fb84ecc
AC
5686 { ac_try='test -z "$ac_c_werror_flag"
5687 || test ! -s conftest.err'
5464f5a1
NN
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 (eval $ac_try) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; } &&
5693 { ac_try='test -s conftest.$ac_objext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
252b5132
RH
5699 ac_cv_c_const=yes
5700else
5464f5a1
NN
5701 echo "$as_me: failed program was:" >&5
5702sed 's/^/| /' conftest.$ac_ext >&5
5703
5704ac_cv_c_const=no
252b5132 5705fi
5464f5a1 5706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5707fi
5464f5a1
NN
5708echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5709echo "${ECHO_T}$ac_cv_c_const" >&6
6be7c12c 5710if test $ac_cv_c_const = no; then
5464f5a1
NN
5711
5712cat >>confdefs.h <<\_ACEOF
5713#define const
5714_ACEOF
252b5132
RH
5715
5716fi
5717
5464f5a1
NN
5718echo "$as_me:$LINENO: checking for inline" >&5
5719echo $ECHO_N "checking for inline... $ECHO_C" >&6
5720if test "${ac_cv_c_inline+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5722else
5723 ac_cv_c_inline=no
5724for ac_kw in inline __inline__ __inline; do
5464f5a1
NN
5725 cat >conftest.$ac_ext <<_ACEOF
5726/* confdefs.h. */
5727_ACEOF
5728cat confdefs.h >>conftest.$ac_ext
5729cat >>conftest.$ac_ext <<_ACEOF
5730/* end confdefs.h. */
5731#ifndef __cplusplus
5732typedef int foo_t;
5733static $ac_kw foo_t static_foo () {return 0; }
5734$ac_kw foo_t foo () {return 0; }
5735#endif
252b5132 5736
5464f5a1
NN
5737_ACEOF
5738rm -f conftest.$ac_objext
5739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5740 (eval $ac_compile) 2>conftest.er1
5741 ac_status=$?
5742 grep -v '^ *+' conftest.er1 >conftest.err
5743 rm -f conftest.er1
5744 cat conftest.err >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); } &&
8fb84ecc
AC
5747 { ac_try='test -z "$ac_c_werror_flag"
5748 || test ! -s conftest.err'
5464f5a1
NN
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 (eval $ac_try) 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try='test -s conftest.$ac_objext'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 (eval $ac_try) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; }; then
252b5132
RH
5760 ac_cv_c_inline=$ac_kw; break
5761else
5464f5a1
NN
5762 echo "$as_me: failed program was:" >&5
5763sed 's/^/| /' conftest.$ac_ext >&5
5764
252b5132 5765fi
5464f5a1 5766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5767done
5768
5464f5a1
NN
5769fi
5770echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5771echo "${ECHO_T}$ac_cv_c_inline" >&6
5772
5773
5774case $ac_cv_c_inline in
5775 inline | yes) ;;
5776 *)
5777 case $ac_cv_c_inline in
5778 no) ac_val=;;
5779 *) ac_val=$ac_cv_c_inline;;
5780 esac
5781 cat >>confdefs.h <<_ACEOF
5782#ifndef __cplusplus
5783#define inline $ac_val
5784#endif
5785_ACEOF
5786 ;;
5787esac
5788
5789# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5800 inttypes.h stdint.h unistd.h
5801do
5802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5803echo "$as_me:$LINENO: checking for $ac_header" >&5
5804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5805if eval "test \"\${$as_ac_Header+set}\" = set"; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5807else
5808 cat >conftest.$ac_ext <<_ACEOF
5809/* confdefs.h. */
5810_ACEOF
5811cat confdefs.h >>conftest.$ac_ext
5812cat >>conftest.$ac_ext <<_ACEOF
5813/* end confdefs.h. */
5814$ac_includes_default
5815
5816#include <$ac_header>
5817_ACEOF
5818rm -f conftest.$ac_objext
5819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820 (eval $ac_compile) 2>conftest.er1
5821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
8fb84ecc
AC
5827 { ac_try='test -z "$ac_c_werror_flag"
5828 || test ! -s conftest.err'
5464f5a1
NN
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try='test -s conftest.$ac_objext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 (eval $ac_try) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5840 eval "$as_ac_Header=yes"
5841else
5842 echo "$as_me: failed program was:" >&5
5843sed 's/^/| /' conftest.$ac_ext >&5
5844
5845eval "$as_ac_Header=no"
5846fi
5847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5848fi
5849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5851if test `eval echo '${'$as_ac_Header'}'` = yes; then
5852 cat >>confdefs.h <<_ACEOF
5853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5854_ACEOF
5855
252b5132 5856fi
6be7c12c 5857
5464f5a1 5858done
252b5132 5859
5464f5a1
NN
5860
5861echo "$as_me:$LINENO: checking for off_t" >&5
5862echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5863if test "${ac_cv_type_off_t+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 5865else
5464f5a1
NN
5866 cat >conftest.$ac_ext <<_ACEOF
5867/* confdefs.h. */
5868_ACEOF
5869cat confdefs.h >>conftest.$ac_ext
5870cat >>conftest.$ac_ext <<_ACEOF
5871/* end confdefs.h. */
5872$ac_includes_default
5873int
5874main ()
5875{
5876if ((off_t *) 0)
5877 return 0;
5878if (sizeof (off_t))
5879 return 0;
5880 ;
5881 return 0;
5882}
5883_ACEOF
5884rm -f conftest.$ac_objext
5885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5886 (eval $ac_compile) 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } &&
8fb84ecc
AC
5893 { ac_try='test -z "$ac_c_werror_flag"
5894 || test ! -s conftest.err'
5464f5a1
NN
5895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 (eval $ac_try) 2>&5
5897 ac_status=$?
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }; } &&
5900 { ac_try='test -s conftest.$ac_objext'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
653f71ca 5906 ac_cv_type_off_t=yes
252b5132 5907else
5464f5a1
NN
5908 echo "$as_me: failed program was:" >&5
5909sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5910
5464f5a1 5911ac_cv_type_off_t=no
6be7c12c 5912fi
5464f5a1
NN
5913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5914fi
5915echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5916echo "${ECHO_T}$ac_cv_type_off_t" >&6
5917if test $ac_cv_type_off_t = yes; then
5918 :
5919else
5920
5921cat >>confdefs.h <<_ACEOF
252b5132 5922#define off_t long
5464f5a1 5923_ACEOF
252b5132
RH
5924
5925fi
5926
5464f5a1
NN
5927echo "$as_me:$LINENO: checking for size_t" >&5
5928echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5929if test "${ac_cv_type_size_t+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5931else
5464f5a1
NN
5932 cat >conftest.$ac_ext <<_ACEOF
5933/* confdefs.h. */
5934_ACEOF
5935cat confdefs.h >>conftest.$ac_ext
5936cat >>conftest.$ac_ext <<_ACEOF
5937/* end confdefs.h. */
5938$ac_includes_default
5939int
5940main ()
5941{
5942if ((size_t *) 0)
5943 return 0;
5944if (sizeof (size_t))
5945 return 0;
5946 ;
5947 return 0;
5948}
5949_ACEOF
5950rm -f conftest.$ac_objext
5951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5952 (eval $ac_compile) 2>conftest.er1
5953 ac_status=$?
5954 grep -v '^ *+' conftest.er1 >conftest.err
5955 rm -f conftest.er1
5956 cat conftest.err >&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
8fb84ecc
AC
5959 { ac_try='test -z "$ac_c_werror_flag"
5960 || test ! -s conftest.err'
5464f5a1
NN
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 (eval $ac_try) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; }; then
653f71ca 5972 ac_cv_type_size_t=yes
252b5132 5973else
5464f5a1
NN
5974 echo "$as_me: failed program was:" >&5
5975sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5976
5464f5a1 5977ac_cv_type_size_t=no
6be7c12c 5978fi
5464f5a1
NN
5979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5980fi
5981echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5982echo "${ECHO_T}$ac_cv_type_size_t" >&6
5983if test $ac_cv_type_size_t = yes; then
5984 :
5985else
5986
5987cat >>confdefs.h <<_ACEOF
252b5132 5988#define size_t unsigned
5464f5a1 5989_ACEOF
252b5132
RH
5990
5991fi
5992
5993# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5994# for constant arguments. Useless!
5464f5a1
NN
5995echo "$as_me:$LINENO: checking for working alloca.h" >&5
5996echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5997if test "${ac_cv_working_alloca_h+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000 cat >conftest.$ac_ext <<_ACEOF
6001/* confdefs.h. */
6002_ACEOF
6003cat confdefs.h >>conftest.$ac_ext
6004cat >>conftest.$ac_ext <<_ACEOF
6005/* end confdefs.h. */
252b5132 6006#include <alloca.h>
5464f5a1
NN
6007int
6008main ()
6009{
6010char *p = (char *) alloca (2 * sizeof (int));
6011 ;
6012 return 0;
6013}
6014_ACEOF
6015rm -f conftest.$ac_objext conftest$ac_exeext
6016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6017 (eval $ac_link) 2>conftest.er1
6018 ac_status=$?
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } &&
8fb84ecc
AC
6024 { ac_try='test -z "$ac_c_werror_flag"
6025 || test ! -s conftest.err'
5464f5a1
NN
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 (eval $ac_try) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; } &&
6031 { ac_try='test -s conftest$ac_exeext'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 (eval $ac_try) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then
6037 ac_cv_working_alloca_h=yes
6038else
6039 echo "$as_me: failed program was:" >&5
6040sed 's/^/| /' conftest.$ac_ext >&5
6041
6042ac_cv_working_alloca_h=no
6043fi
6044rm -f conftest.err conftest.$ac_objext \
6045 conftest$ac_exeext conftest.$ac_ext
6046fi
6047echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6048echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6049if test $ac_cv_working_alloca_h = yes; then
6050
6051cat >>confdefs.h <<\_ACEOF
252b5132 6052#define HAVE_ALLOCA_H 1
5464f5a1 6053_ACEOF
252b5132
RH
6054
6055fi
6056
5464f5a1
NN
6057echo "$as_me:$LINENO: checking for alloca" >&5
6058echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6059if test "${ac_cv_func_alloca_works+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6061else
5464f5a1
NN
6062 cat >conftest.$ac_ext <<_ACEOF
6063/* confdefs.h. */
6064_ACEOF
6065cat confdefs.h >>conftest.$ac_ext
6066cat >>conftest.$ac_ext <<_ACEOF
6067/* end confdefs.h. */
252b5132
RH
6068#ifdef __GNUC__
6069# define alloca __builtin_alloca
6070#else
6071# ifdef _MSC_VER
6072# include <malloc.h>
6073# define alloca _alloca
6074# else
6075# if HAVE_ALLOCA_H
6076# include <alloca.h>
6077# else
6078# ifdef _AIX
6079 #pragma alloca
6080# else
6081# ifndef alloca /* predefined by HP cc +Olibcalls */
6082char *alloca ();
6083# endif
6084# endif
6085# endif
6086# endif
6087#endif
6088
5464f5a1
NN
6089int
6090main ()
6091{
6092char *p = (char *) alloca (1);
6093 ;
6094 return 0;
6095}
6096_ACEOF
6097rm -f conftest.$ac_objext conftest$ac_exeext
6098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6099 (eval $ac_link) 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } &&
8fb84ecc
AC
6106 { ac_try='test -z "$ac_c_werror_flag"
6107 || test ! -s conftest.err'
5464f5a1
NN
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 (eval $ac_try) 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; } &&
6113 { ac_try='test -s conftest$ac_exeext'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 (eval $ac_try) 2>&5
6116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; }; then
252b5132
RH
6119 ac_cv_func_alloca_works=yes
6120else
5464f5a1
NN
6121 echo "$as_me: failed program was:" >&5
6122sed 's/^/| /' conftest.$ac_ext >&5
6123
6124ac_cv_func_alloca_works=no
252b5132 6125fi
5464f5a1
NN
6126rm -f conftest.err conftest.$ac_objext \
6127 conftest$ac_exeext conftest.$ac_ext
252b5132 6128fi
5464f5a1
NN
6129echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6130echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6131
252b5132 6132if test $ac_cv_func_alloca_works = yes; then
252b5132 6133
5464f5a1
NN
6134cat >>confdefs.h <<\_ACEOF
6135#define HAVE_ALLOCA 1
6136_ACEOF
b3baf5d0 6137
5464f5a1 6138else
6be7c12c 6139 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5464f5a1
NN
6140# that cause trouble. Some versions do not even contain alloca or
6141# contain a buggy version. If you still want to use their alloca,
6142# use ar to extract alloca.o from them instead of compiling alloca.c.
6143
6144ALLOCA=alloca.$ac_objext
6145
6146cat >>confdefs.h <<\_ACEOF
252b5132 6147#define C_ALLOCA 1
5464f5a1 6148_ACEOF
252b5132 6149
6be7c12c 6150
5464f5a1
NN
6151echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6152echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6153if test "${ac_cv_os_cray+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6155else
5464f5a1
NN
6156 cat >conftest.$ac_ext <<_ACEOF
6157/* confdefs.h. */
6158_ACEOF
6159cat confdefs.h >>conftest.$ac_ext
6160cat >>conftest.$ac_ext <<_ACEOF
6161/* end confdefs.h. */
252b5132
RH
6162#if defined(CRAY) && ! defined(CRAY2)
6163webecray
6164#else
6165wenotbecray
6166#endif
6167
5464f5a1 6168_ACEOF
252b5132 6169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 6170 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6171 ac_cv_os_cray=yes
6172else
252b5132
RH
6173 ac_cv_os_cray=no
6174fi
6175rm -f conftest*
6176
6177fi
5464f5a1
NN
6178echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6179echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6180if test $ac_cv_os_cray = yes; then
5464f5a1
NN
6181 for ac_func in _getb67 GETB67 getb67; do
6182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6183echo "$as_me:$LINENO: checking for $ac_func" >&5
6184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6185if eval "test \"\${$as_ac_var+set}\" = set"; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6187else
6188 cat >conftest.$ac_ext <<_ACEOF
6189/* confdefs.h. */
6190_ACEOF
6191cat confdefs.h >>conftest.$ac_ext
6192cat >>conftest.$ac_ext <<_ACEOF
6193/* end confdefs.h. */
6194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6196#define $ac_func innocuous_$ac_func
6197
252b5132 6198/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6199 which can conflict with char $ac_func (); below.
6200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6201 <limits.h> exists even on freestanding compilers. */
6202
6203#ifdef __STDC__
6204# include <limits.h>
6205#else
6206# include <assert.h>
6207#endif
6be7c12c 6208
5464f5a1 6209#undef $ac_func
252b5132 6210
5464f5a1
NN
6211/* Override any gcc2 internal prototype to avoid an error. */
6212#ifdef __cplusplus
6213extern "C"
6214{
6215#endif
6216/* We use char because int might match the return type of a gcc2
6217 builtin and then its argument prototype would still apply. */
6218char $ac_func ();
252b5132
RH
6219/* The GNU C library defines this for functions which it implements
6220 to always fail with ENOSYS. Some functions are actually named
6221 something starting with __ and the normal name is an alias. */
6222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6223choke me
6224#else
5464f5a1
NN
6225char (*f) () = $ac_func;
6226#endif
6227#ifdef __cplusplus
6228}
252b5132
RH
6229#endif
6230
5464f5a1
NN
6231int
6232main ()
6233{
6234return f != $ac_func;
6235 ;
6236 return 0;
6237}
6238_ACEOF
6239rm -f conftest.$ac_objext conftest$ac_exeext
6240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6241 (eval $ac_link) 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
8fb84ecc
AC
6248 { ac_try='test -z "$ac_c_werror_flag"
6249 || test ! -s conftest.err'
5464f5a1
NN
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 (eval $ac_try) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; } &&
6255 { ac_try='test -s conftest$ac_exeext'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 eval "$as_ac_var=yes"
6262else
6263 echo "$as_me: failed program was:" >&5
6264sed 's/^/| /' conftest.$ac_ext >&5
6265
6266eval "$as_ac_var=no"
6267fi
6268rm -f conftest.err conftest.$ac_objext \
6269 conftest$ac_exeext conftest.$ac_ext
6270fi
6271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6272echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6273if test `eval echo '${'$as_ac_var'}'` = yes; then
6274
6275cat >>confdefs.h <<_ACEOF
252b5132 6276#define CRAY_STACKSEG_END $ac_func
5464f5a1 6277_ACEOF
252b5132 6278
5464f5a1 6279 break
252b5132
RH
6280fi
6281
5464f5a1 6282 done
252b5132
RH
6283fi
6284
5464f5a1
NN
6285echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6286echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6287if test "${ac_cv_c_stack_direction+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6289else
6290 if test "$cross_compiling" = yes; then
6291 ac_cv_c_stack_direction=0
6292else
5464f5a1
NN
6293 cat >conftest.$ac_ext <<_ACEOF
6294/* confdefs.h. */
6295_ACEOF
6296cat confdefs.h >>conftest.$ac_ext
6297cat >>conftest.$ac_ext <<_ACEOF
6298/* end confdefs.h. */
6299int
252b5132
RH
6300find_stack_direction ()
6301{
6302 static char *addr = 0;
6303 auto char dummy;
6304 if (addr == 0)
6305 {
6306 addr = &dummy;
6307 return find_stack_direction ();
6308 }
6309 else
6310 return (&dummy > addr) ? 1 : -1;
6311}
5464f5a1
NN
6312
6313int
252b5132
RH
6314main ()
6315{
5464f5a1 6316 exit (find_stack_direction () < 0);
252b5132 6317}
5464f5a1
NN
6318_ACEOF
6319rm -f conftest$ac_exeext
6320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321 (eval $ac_link) 2>&5
6322 ac_status=$?
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326 (eval $ac_try) 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
252b5132
RH
6330 ac_cv_c_stack_direction=1
6331else
5464f5a1
NN
6332 echo "$as_me: program exited with status $ac_status" >&5
6333echo "$as_me: failed program was:" >&5
6334sed 's/^/| /' conftest.$ac_ext >&5
6335
6336( exit $ac_status )
6337ac_cv_c_stack_direction=-1
252b5132 6338fi
5464f5a1 6339rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6340fi
252b5132 6341fi
5464f5a1
NN
6342echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6343echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6344
5464f5a1 6345cat >>confdefs.h <<_ACEOF
252b5132 6346#define STACK_DIRECTION $ac_cv_c_stack_direction
5464f5a1
NN
6347_ACEOF
6348
252b5132
RH
6349
6350fi
6351
5464f5a1
NN
6352
6353
6354for ac_header in stdlib.h unistd.h
252b5132 6355do
5464f5a1
NN
6356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6357if eval "test \"\${$as_ac_Header+set}\" = set"; then
6358 echo "$as_me:$LINENO: checking for $ac_header" >&5
6359echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6360if eval "test \"\${$as_ac_Header+set}\" = set"; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362fi
6363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6365else
6366 # Is the header compilable?
6367echo "$as_me:$LINENO: checking $ac_header usability" >&5
6368echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6369cat >conftest.$ac_ext <<_ACEOF
6370/* confdefs.h. */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
6374/* end confdefs.h. */
6375$ac_includes_default
6376#include <$ac_header>
6377_ACEOF
6378rm -f conftest.$ac_objext
6379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 (eval $ac_compile) 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
8fb84ecc
AC
6387 { ac_try='test -z "$ac_c_werror_flag"
6388 || test ! -s conftest.err'
5464f5a1
NN
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 (eval $ac_try) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_header_compiler=yes
6401else
6402 echo "$as_me: failed program was:" >&5
6403sed 's/^/| /' conftest.$ac_ext >&5
6404
6405ac_header_compiler=no
6406fi
6407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6408echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6409echo "${ECHO_T}$ac_header_compiler" >&6
6410
6411# Is the header present?
6412echo "$as_me:$LINENO: checking $ac_header presence" >&5
6413echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6414cat >conftest.$ac_ext <<_ACEOF
6415/* confdefs.h. */
6416_ACEOF
6417cat confdefs.h >>conftest.$ac_ext
6418cat >>conftest.$ac_ext <<_ACEOF
6419/* end confdefs.h. */
6420#include <$ac_header>
6421_ACEOF
6422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6424 ac_status=$?
6425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } >/dev/null; then
6430 if test -s conftest.err; then
6431 ac_cpp_err=$ac_c_preproc_warn_flag
6432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6433 else
6434 ac_cpp_err=
6435 fi
252b5132 6436else
5464f5a1 6437 ac_cpp_err=yes
252b5132 6438fi
5464f5a1
NN
6439if test -z "$ac_cpp_err"; then
6440 ac_header_preproc=yes
6441else
6442 echo "$as_me: failed program was:" >&5
6443sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 ac_header_preproc=no
252b5132 6446fi
5464f5a1
NN
6447rm -f conftest.err conftest.$ac_ext
6448echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6449echo "${ECHO_T}$ac_header_preproc" >&6
6450
6451# So? What about this header?
6452case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6453 yes:no: )
6454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6455echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6457echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6458 ac_header_preproc=yes
6459 ;;
6460 no:yes:* )
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6462echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6464echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6466echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6468echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6470echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6472echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6473 (
6474 cat <<\_ASBOX
6475## ------------------------------------------ ##
6476## Report this to the AC_PACKAGE_NAME lists. ##
6477## ------------------------------------------ ##
6478_ASBOX
6479 ) |
6480 sed "s/^/$as_me: WARNING: /" >&2
6481 ;;
6482esac
6483echo "$as_me:$LINENO: checking for $ac_header" >&5
6484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6485if eval "test \"\${$as_ac_Header+set}\" = set"; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6487else
5464f5a1
NN
6488 eval "$as_ac_Header=\$ac_header_preproc"
6489fi
6490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6492
252b5132 6493fi
5464f5a1
NN
6494if test `eval echo '${'$as_ac_Header'}'` = yes; then
6495 cat >>confdefs.h <<_ACEOF
6496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6497_ACEOF
6498
6499fi
6500
252b5132
RH
6501done
6502
5464f5a1 6503
252b5132
RH
6504for ac_func in getpagesize
6505do
5464f5a1
NN
6506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6507echo "$as_me:$LINENO: checking for $ac_func" >&5
6508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6509if eval "test \"\${$as_ac_var+set}\" = set"; then
6510 echo $ECHO_N "(cached) $ECHO_C" >&6
6511else
6512 cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h. */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h. */
6518/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6520#define $ac_func innocuous_$ac_func
6521
252b5132 6522/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6523 which can conflict with char $ac_func (); below.
6524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6525 <limits.h> exists even on freestanding compilers. */
6526
6527#ifdef __STDC__
6528# include <limits.h>
6529#else
6530# include <assert.h>
6531#endif
6be7c12c 6532
5464f5a1 6533#undef $ac_func
252b5132 6534
5464f5a1
NN
6535/* Override any gcc2 internal prototype to avoid an error. */
6536#ifdef __cplusplus
6537extern "C"
6538{
6539#endif
6540/* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6542char $ac_func ();
252b5132
RH
6543/* The GNU C library defines this for functions which it implements
6544 to always fail with ENOSYS. Some functions are actually named
6545 something starting with __ and the normal name is an alias. */
6546#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6547choke me
6548#else
5464f5a1
NN
6549char (*f) () = $ac_func;
6550#endif
6551#ifdef __cplusplus
6552}
252b5132
RH
6553#endif
6554
5464f5a1
NN
6555int
6556main ()
6557{
6558return f != $ac_func;
6559 ;
6560 return 0;
6561}
6562_ACEOF
6563rm -f conftest.$ac_objext conftest$ac_exeext
6564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6565 (eval $ac_link) 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } &&
8fb84ecc
AC
6572 { ac_try='test -z "$ac_c_werror_flag"
6573 || test ! -s conftest.err'
5464f5a1
NN
6574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 (eval $ac_try) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); }; } &&
6579 { ac_try='test -s conftest$ac_exeext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 eval "$as_ac_var=yes"
6586else
6587 echo "$as_me: failed program was:" >&5
6588sed 's/^/| /' conftest.$ac_ext >&5
6589
6590eval "$as_ac_var=no"
6591fi
6592rm -f conftest.err conftest.$ac_objext \
6593 conftest$ac_exeext conftest.$ac_ext
6594fi
6595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6596echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6597if test `eval echo '${'$as_ac_var'}'` = yes; then
6598 cat >>confdefs.h <<_ACEOF
6599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6600_ACEOF
252b5132 6601
252b5132
RH
6602fi
6603done
6604
5464f5a1
NN
6605echo "$as_me:$LINENO: checking for working mmap" >&5
6606echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6607if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6609else
6610 if test "$cross_compiling" = yes; then
6611 ac_cv_func_mmap_fixed_mapped=no
6612else
5464f5a1
NN
6613 cat >conftest.$ac_ext <<_ACEOF
6614/* confdefs.h. */
6615_ACEOF
6616cat confdefs.h >>conftest.$ac_ext
6617cat >>conftest.$ac_ext <<_ACEOF
6618/* end confdefs.h. */
6619$ac_includes_default
6620/* malloc might have been renamed as rpl_malloc. */
6621#undef malloc
6be7c12c 6622
252b5132
RH
6623/* Thanks to Mike Haertel and Jim Avera for this test.
6624 Here is a matrix of mmap possibilities:
6625 mmap private not fixed
6626 mmap private fixed at somewhere currently unmapped
6627 mmap private fixed at somewhere already mapped
6628 mmap shared not fixed
6629 mmap shared fixed at somewhere currently unmapped
6630 mmap shared fixed at somewhere already mapped
6631 For private mappings, we should verify that changes cannot be read()
6632 back from the file, nor mmap's back from the file at a different
6633 address. (There have been systems where private was not correctly
6634 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 6635 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6636 like early versions of FreeBSD and possibly contemporary NetBSD.)
6637 For shared mappings, we should conversely verify that changes get
5464f5a1 6638 propagated back to all the places they're supposed to be.
252b5132
RH
6639
6640 Grep wants private fixed already mapped.
6641 The main things grep needs to know about mmap are:
6642 * does it exist and is it safe to write into the mmap'd area
6643 * how to use it (BSD variants) */
5464f5a1 6644
252b5132
RH
6645#include <fcntl.h>
6646#include <sys/mman.h>
6647
5464f5a1
NN
6648#if !STDC_HEADERS && !HAVE_STDLIB_H
6649char *malloc ();
6650#endif
6be7c12c 6651
5464f5a1
NN
6652/* This mess was copied from the GNU getpagesize.h. */
6653#if !HAVE_GETPAGESIZE
252b5132 6654/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 6655# if !HAVE_SYS_PARAM_H
252b5132
RH
6656# define HAVE_SYS_PARAM_H 1
6657# endif
6658
6659# ifdef _SC_PAGESIZE
6660# define getpagesize() sysconf(_SC_PAGESIZE)
6661# else /* no _SC_PAGESIZE */
5464f5a1 6662# if HAVE_SYS_PARAM_H
252b5132
RH
6663# include <sys/param.h>
6664# ifdef EXEC_PAGESIZE
6665# define getpagesize() EXEC_PAGESIZE
6666# else /* no EXEC_PAGESIZE */
6667# ifdef NBPG
6668# define getpagesize() NBPG * CLSIZE
6669# ifndef CLSIZE
6670# define CLSIZE 1
6671# endif /* no CLSIZE */
6672# else /* no NBPG */
6673# ifdef NBPC
6674# define getpagesize() NBPC
6675# else /* no NBPC */
6676# ifdef PAGESIZE
6677# define getpagesize() PAGESIZE
6678# endif /* PAGESIZE */
6679# endif /* no NBPC */
6680# endif /* no NBPG */
6681# endif /* no EXEC_PAGESIZE */
6682# else /* no HAVE_SYS_PARAM_H */
6683# define getpagesize() 8192 /* punt totally */
6684# endif /* no HAVE_SYS_PARAM_H */
6685# endif /* no _SC_PAGESIZE */
6686
6687#endif /* no HAVE_GETPAGESIZE */
6688
252b5132 6689int
5464f5a1 6690main ()
252b5132 6691{
5464f5a1
NN
6692 char *data, *data2, *data3;
6693 int i, pagesize;
6694 int fd;
6695
6696 pagesize = getpagesize ();
6697
6698 /* First, make a file with some known garbage in it. */
6699 data = (char *) malloc (pagesize);
6700 if (!data)
6701 exit (1);
6702 for (i = 0; i < pagesize; ++i)
6703 *(data + i) = rand ();
6704 umask (0);
6705 fd = creat ("conftest.mmap", 0600);
6706 if (fd < 0)
6707 exit (1);
6708 if (write (fd, data, pagesize) != pagesize)
6709 exit (1);
6710 close (fd);
6711
6712 /* Next, try to mmap the file at a fixed address which already has
6713 something else allocated at it. If we can, also make sure that
6714 we see the same garbage. */
6715 fd = open ("conftest.mmap", O_RDWR);
6716 if (fd < 0)
6717 exit (1);
6718 data2 = (char *) malloc (2 * pagesize);
6719 if (!data2)
6720 exit (1);
6721 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6722 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6723 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6724 exit (1);
6725 for (i = 0; i < pagesize; ++i)
6726 if (*(data + i) != *(data2 + i))
6727 exit (1);
6728
6729 /* Finally, make sure that changes to the mapped area do not
6730 percolate back to the file as seen by read(). (This is a bug on
6731 some variants of i386 svr4.0.) */
6732 for (i = 0; i < pagesize; ++i)
6733 *(data2 + i) = *(data2 + i) + 1;
6734 data3 = (char *) malloc (pagesize);
6735 if (!data3)
6736 exit (1);
6737 if (read (fd, data3, pagesize) != pagesize)
6738 exit (1);
6739 for (i = 0; i < pagesize; ++i)
6740 if (*(data + i) != *(data3 + i))
6741 exit (1);
6742 close (fd);
6743 exit (0);
252b5132 6744}
5464f5a1
NN
6745_ACEOF
6746rm -f conftest$ac_exeext
6747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6748 (eval $ac_link) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 (eval $ac_try) 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
252b5132
RH
6757 ac_cv_func_mmap_fixed_mapped=yes
6758else
5464f5a1
NN
6759 echo "$as_me: program exited with status $ac_status" >&5
6760echo "$as_me: failed program was:" >&5
6761sed 's/^/| /' conftest.$ac_ext >&5
6762
6763( exit $ac_status )
6764ac_cv_func_mmap_fixed_mapped=no
252b5132 6765fi
5464f5a1 6766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6767fi
252b5132 6768fi
5464f5a1
NN
6769echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6770echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6be7c12c 6771if test $ac_cv_func_mmap_fixed_mapped = yes; then
5464f5a1
NN
6772
6773cat >>confdefs.h <<\_ACEOF
252b5132 6774#define HAVE_MMAP 1
5464f5a1 6775_ACEOF
252b5132
RH
6776
6777fi
5464f5a1
NN
6778rm -f conftest.mmap
6779
6780
252b5132 6781
5464f5a1
NN
6782
6783
6784
6785
6786
6787
6788
6789
6790for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6791unistd.h values.h sys/param.h
6792do
5464f5a1
NN
6793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6794if eval "test \"\${$as_ac_Header+set}\" = set"; then
6795 echo "$as_me:$LINENO: checking for $ac_header" >&5
6796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6797if eval "test \"\${$as_ac_Header+set}\" = set"; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799fi
6800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6801echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6802else
6803 # Is the header compilable?
6804echo "$as_me:$LINENO: checking $ac_header usability" >&5
6805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6806cat >conftest.$ac_ext <<_ACEOF
6807/* confdefs.h. */
6808_ACEOF
6809cat confdefs.h >>conftest.$ac_ext
6810cat >>conftest.$ac_ext <<_ACEOF
6811/* end confdefs.h. */
6812$ac_includes_default
6813#include <$ac_header>
6814_ACEOF
6815rm -f conftest.$ac_objext
6816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817 (eval $ac_compile) 2>conftest.er1
6818 ac_status=$?
6819 grep -v '^ *+' conftest.er1 >conftest.err
6820 rm -f conftest.er1
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
8fb84ecc
AC
6824 { ac_try='test -z "$ac_c_werror_flag"
6825 || test ! -s conftest.err'
5464f5a1
NN
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 (eval $ac_try) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; } &&
6831 { ac_try='test -s conftest.$ac_objext'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
6837 ac_header_compiler=yes
6838else
6839 echo "$as_me: failed program was:" >&5
6840sed 's/^/| /' conftest.$ac_ext >&5
6841
6842ac_header_compiler=no
6843fi
6844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6846echo "${ECHO_T}$ac_header_compiler" >&6
6847
6848# Is the header present?
6849echo "$as_me:$LINENO: checking $ac_header presence" >&5
6850echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6851cat >conftest.$ac_ext <<_ACEOF
6852/* confdefs.h. */
6853_ACEOF
6854cat confdefs.h >>conftest.$ac_ext
6855cat >>conftest.$ac_ext <<_ACEOF
6856/* end confdefs.h. */
6857#include <$ac_header>
6858_ACEOF
6859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6861 ac_status=$?
6862 grep -v '^ *+' conftest.er1 >conftest.err
6863 rm -f conftest.er1
6864 cat conftest.err >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } >/dev/null; then
6867 if test -s conftest.err; then
6868 ac_cpp_err=$ac_c_preproc_warn_flag
6869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6870 else
6871 ac_cpp_err=
6872 fi
252b5132 6873else
5464f5a1 6874 ac_cpp_err=yes
252b5132 6875fi
5464f5a1
NN
6876if test -z "$ac_cpp_err"; then
6877 ac_header_preproc=yes
6878else
6879 echo "$as_me: failed program was:" >&5
6880sed 's/^/| /' conftest.$ac_ext >&5
6881
6882 ac_header_preproc=no
252b5132 6883fi
5464f5a1
NN
6884rm -f conftest.err conftest.$ac_ext
6885echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6886echo "${ECHO_T}$ac_header_preproc" >&6
6887
6888# So? What about this header?
6889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6890 yes:no: )
6891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6892echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6894echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6895 ac_header_preproc=yes
6896 ;;
6897 no:yes:* )
6898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6899echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6901echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6903echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6905echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6907echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6909echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6910 (
6911 cat <<\_ASBOX
6912## ------------------------------------------ ##
6913## Report this to the AC_PACKAGE_NAME lists. ##
6914## ------------------------------------------ ##
6915_ASBOX
6916 ) |
6917 sed "s/^/$as_me: WARNING: /" >&2
6918 ;;
6919esac
6920echo "$as_me:$LINENO: checking for $ac_header" >&5
6921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6922if eval "test \"\${$as_ac_Header+set}\" = set"; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6924else
5464f5a1
NN
6925 eval "$as_ac_Header=\$ac_header_preproc"
6926fi
6927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6929
6930fi
6931if test `eval echo '${'$as_ac_Header'}'` = yes; then
6932 cat >>confdefs.h <<_ACEOF
6933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6934_ACEOF
6935
252b5132 6936fi
5464f5a1 6937
252b5132
RH
6938done
6939
5464f5a1
NN
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6951__argz_count __argz_stringify __argz_next
6952do
5464f5a1
NN
6953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6954echo "$as_me:$LINENO: checking for $ac_func" >&5
6955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6956if eval "test \"\${$as_ac_var+set}\" = set"; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959 cat >conftest.$ac_ext <<_ACEOF
6960/* confdefs.h. */
6961_ACEOF
6962cat confdefs.h >>conftest.$ac_ext
6963cat >>conftest.$ac_ext <<_ACEOF
6964/* end confdefs.h. */
6965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6967#define $ac_func innocuous_$ac_func
6968
252b5132 6969/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6970 which can conflict with char $ac_func (); below.
6971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6972 <limits.h> exists even on freestanding compilers. */
6973
6974#ifdef __STDC__
6975# include <limits.h>
6976#else
6977# include <assert.h>
6978#endif
6979
6980#undef $ac_func
6981
252b5132 6982/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
6983#ifdef __cplusplus
6984extern "C"
6985{
6986#endif
252b5132 6987/* We use char because int might match the return type of a gcc2
5464f5a1
NN
6988 builtin and then its argument prototype would still apply. */
6989char $ac_func ();
252b5132
RH
6990/* The GNU C library defines this for functions which it implements
6991 to always fail with ENOSYS. Some functions are actually named
6992 something starting with __ and the normal name is an alias. */
6993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6994choke me
6995#else
5464f5a1
NN
6996char (*f) () = $ac_func;
6997#endif
6998#ifdef __cplusplus
6999}
252b5132
RH
7000#endif
7001
5464f5a1
NN
7002int
7003main ()
7004{
7005return f != $ac_func;
7006 ;
7007 return 0;
7008}
7009_ACEOF
7010rm -f conftest.$ac_objext conftest$ac_exeext
7011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012 (eval $ac_link) 2>conftest.er1
7013 ac_status=$?
7014 grep -v '^ *+' conftest.er1 >conftest.err
7015 rm -f conftest.er1
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } &&
8fb84ecc
AC
7019 { ac_try='test -z "$ac_c_werror_flag"
7020 || test ! -s conftest.err'
5464f5a1
NN
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 (eval $ac_try) 2>&5
7023 ac_status=$?
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest$ac_exeext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028 (eval $ac_try) 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 eval "$as_ac_var=yes"
7033else
7034 echo "$as_me: failed program was:" >&5
7035sed 's/^/| /' conftest.$ac_ext >&5
7036
7037eval "$as_ac_var=no"
7038fi
7039rm -f conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext conftest.$ac_ext
7041fi
7042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7043echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7044if test `eval echo '${'$as_ac_var'}'` = yes; then
7045 cat >>confdefs.h <<_ACEOF
7046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7047_ACEOF
252b5132 7048
252b5132
RH
7049fi
7050done
7051
b3baf5d0 7052
6be7c12c 7053 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5464f5a1
NN
7054
7055for ac_func in stpcpy
252b5132 7056do
5464f5a1
NN
7057as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7058echo "$as_me:$LINENO: checking for $ac_func" >&5
7059echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7060if eval "test \"\${$as_ac_var+set}\" = set"; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7062else
7063 cat >conftest.$ac_ext <<_ACEOF
7064/* confdefs.h. */
7065_ACEOF
7066cat confdefs.h >>conftest.$ac_ext
7067cat >>conftest.$ac_ext <<_ACEOF
7068/* end confdefs.h. */
7069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7071#define $ac_func innocuous_$ac_func
7072
252b5132 7073/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7074 which can conflict with char $ac_func (); below.
7075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7076 <limits.h> exists even on freestanding compilers. */
7077
7078#ifdef __STDC__
7079# include <limits.h>
7080#else
7081# include <assert.h>
7082#endif
6be7c12c 7083
5464f5a1 7084#undef $ac_func
252b5132 7085
5464f5a1
NN
7086/* Override any gcc2 internal prototype to avoid an error. */
7087#ifdef __cplusplus
7088extern "C"
7089{
7090#endif
7091/* We use char because int might match the return type of a gcc2
7092 builtin and then its argument prototype would still apply. */
7093char $ac_func ();
252b5132
RH
7094/* The GNU C library defines this for functions which it implements
7095 to always fail with ENOSYS. Some functions are actually named
7096 something starting with __ and the normal name is an alias. */
7097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7098choke me
7099#else
5464f5a1
NN
7100char (*f) () = $ac_func;
7101#endif
7102#ifdef __cplusplus
7103}
252b5132
RH
7104#endif
7105
5464f5a1
NN
7106int
7107main ()
7108{
7109return f != $ac_func;
7110 ;
7111 return 0;
7112}
7113_ACEOF
7114rm -f conftest.$ac_objext conftest$ac_exeext
7115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116 (eval $ac_link) 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
8fb84ecc
AC
7123 { ac_try='test -z "$ac_c_werror_flag"
7124 || test ! -s conftest.err'
5464f5a1
NN
7125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 (eval $ac_try) 2>&5
7127 ac_status=$?
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); }; } &&
7130 { ac_try='test -s conftest$ac_exeext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 (eval $ac_try) 2>&5
7133 ac_status=$?
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 eval "$as_ac_var=yes"
7137else
7138 echo "$as_me: failed program was:" >&5
7139sed 's/^/| /' conftest.$ac_ext >&5
7140
7141eval "$as_ac_var=no"
7142fi
7143rm -f conftest.err conftest.$ac_objext \
7144 conftest$ac_exeext conftest.$ac_ext
7145fi
7146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7147echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7148if test `eval echo '${'$as_ac_var'}'` = yes; then
7149 cat >>confdefs.h <<_ACEOF
7150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7151_ACEOF
252b5132 7152
252b5132
RH
7153fi
7154done
7155
7156 fi
7157 if test "${ac_cv_func_stpcpy}" = "yes"; then
5464f5a1
NN
7158
7159cat >>confdefs.h <<\_ACEOF
252b5132 7160#define HAVE_STPCPY 1
5464f5a1 7161_ACEOF
252b5132
RH
7162
7163 fi
7164
7165 if test $ac_cv_header_locale_h = yes; then
5464f5a1
NN
7166 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7167echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7168if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170else
7171 cat >conftest.$ac_ext <<_ACEOF
7172/* confdefs.h. */
7173_ACEOF
7174cat confdefs.h >>conftest.$ac_ext
7175cat >>conftest.$ac_ext <<_ACEOF
7176/* end confdefs.h. */
252b5132 7177#include <locale.h>
5464f5a1
NN
7178int
7179main ()
7180{
252b5132 7181return LC_MESSAGES
5464f5a1
NN
7182 ;
7183 return 0;
7184}
7185_ACEOF
7186rm -f conftest.$ac_objext conftest$ac_exeext
7187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188 (eval $ac_link) 2>conftest.er1
7189 ac_status=$?
7190 grep -v '^ *+' conftest.er1 >conftest.err
7191 rm -f conftest.er1
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
8fb84ecc
AC
7195 { ac_try='test -z "$ac_c_werror_flag"
7196 || test ! -s conftest.err'
5464f5a1
NN
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 (eval $ac_try) 2>&5
7199 ac_status=$?
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; } &&
7202 { ac_try='test -s conftest$ac_exeext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204 (eval $ac_try) 2>&5
7205 ac_status=$?
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
252b5132
RH
7208 am_cv_val_LC_MESSAGES=yes
7209else
5464f5a1
NN
7210 echo "$as_me: failed program was:" >&5
7211sed 's/^/| /' conftest.$ac_ext >&5
7212
7213am_cv_val_LC_MESSAGES=no
252b5132 7214fi
5464f5a1
NN
7215rm -f conftest.err conftest.$ac_objext \
7216 conftest$ac_exeext conftest.$ac_ext
252b5132 7217fi
5464f5a1
NN
7218echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7219echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6be7c12c 7220 if test $am_cv_val_LC_MESSAGES = yes; then
5464f5a1
NN
7221
7222cat >>confdefs.h <<\_ACEOF
252b5132 7223#define HAVE_LC_MESSAGES 1
5464f5a1 7224_ACEOF
252b5132
RH
7225
7226 fi
7227 fi
5464f5a1
NN
7228 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7229echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7230 # Check whether --enable-nls or --disable-nls was given.
7231if test "${enable_nls+set}" = set; then
7232 enableval="$enable_nls"
7233 USE_NLS=$enableval
7234else
7235 USE_NLS=yes
5464f5a1
NN
7236fi;
7237 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7238echo "${ECHO_T}$USE_NLS" >&6
6be7c12c 7239
252b5132
RH
7240
7241 USE_INCLUDED_LIBINTL=no
7242
7243 if test "$USE_NLS" = "yes"; then
5464f5a1
NN
7244
7245cat >>confdefs.h <<\_ACEOF
252b5132 7246#define ENABLE_NLS 1
5464f5a1 7247_ACEOF
252b5132 7248
5464f5a1
NN
7249 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7250echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7251
7252# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7253if test "${with_included_gettext+set}" = set; then
7254 withval="$with_included_gettext"
7255 nls_cv_force_use_gnu_gettext=$withval
7256else
7257 nls_cv_force_use_gnu_gettext=no
5464f5a1
NN
7258fi;
7259 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7260echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7261
7262 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7263 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7264 nls_cv_header_intl=
7265 nls_cv_header_libgt=
7266 CATOBJEXT=NONE
7267
5464f5a1
NN
7268 if test "${ac_cv_header_libintl_h+set}" = set; then
7269 echo "$as_me:$LINENO: checking for libintl.h" >&5
7270echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7271if test "${ac_cv_header_libintl_h+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273fi
7274echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7275echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7276else
7277 # Is the header compilable?
7278echo "$as_me:$LINENO: checking libintl.h usability" >&5
7279echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7280cat >conftest.$ac_ext <<_ACEOF
7281/* confdefs.h. */
7282_ACEOF
7283cat confdefs.h >>conftest.$ac_ext
7284cat >>conftest.$ac_ext <<_ACEOF
7285/* end confdefs.h. */
7286$ac_includes_default
252b5132 7287#include <libintl.h>
5464f5a1
NN
7288_ACEOF
7289rm -f conftest.$ac_objext
7290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7291 (eval $ac_compile) 2>conftest.er1
7292 ac_status=$?
7293 grep -v '^ *+' conftest.er1 >conftest.err
7294 rm -f conftest.er1
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } &&
8fb84ecc
AC
7298 { ac_try='test -z "$ac_c_werror_flag"
7299 || test ! -s conftest.err'
5464f5a1
NN
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; } &&
7305 { ac_try='test -s conftest.$ac_objext'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; }; then
7311 ac_header_compiler=yes
7312else
7313 echo "$as_me: failed program was:" >&5
7314sed 's/^/| /' conftest.$ac_ext >&5
7315
7316ac_header_compiler=no
7317fi
7318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7319echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7320echo "${ECHO_T}$ac_header_compiler" >&6
7321
7322# Is the header present?
7323echo "$as_me:$LINENO: checking libintl.h presence" >&5
7324echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7325cat >conftest.$ac_ext <<_ACEOF
7326/* confdefs.h. */
7327_ACEOF
7328cat confdefs.h >>conftest.$ac_ext
7329cat >>conftest.$ac_ext <<_ACEOF
7330/* end confdefs.h. */
7331#include <libintl.h>
7332_ACEOF
7333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } >/dev/null; then
7341 if test -s conftest.err; then
7342 ac_cpp_err=$ac_c_preproc_warn_flag
7343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7344 else
7345 ac_cpp_err=
7346 fi
252b5132 7347else
5464f5a1 7348 ac_cpp_err=yes
252b5132 7349fi
5464f5a1
NN
7350if test -z "$ac_cpp_err"; then
7351 ac_header_preproc=yes
7352else
7353 echo "$as_me: failed program was:" >&5
7354sed 's/^/| /' conftest.$ac_ext >&5
7355
7356 ac_header_preproc=no
252b5132 7357fi
5464f5a1
NN
7358rm -f conftest.err conftest.$ac_ext
7359echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7360echo "${ECHO_T}$ac_header_preproc" >&6
7361
7362# So? What about this header?
7363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7364 yes:no: )
7365 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7366echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7367 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7368echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7369 ac_header_preproc=yes
7370 ;;
7371 no:yes:* )
7372 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7373echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7374 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7375echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7376 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7377echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7378 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7379echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7380 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7381echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7382 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7383echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7384 (
7385 cat <<\_ASBOX
7386## ------------------------------------------ ##
7387## Report this to the AC_PACKAGE_NAME lists. ##
7388## ------------------------------------------ ##
7389_ASBOX
7390 ) |
7391 sed "s/^/$as_me: WARNING: /" >&2
7392 ;;
7393esac
7394echo "$as_me:$LINENO: checking for libintl.h" >&5
7395echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7396if test "${ac_cv_header_libintl_h+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7398else
5464f5a1
NN
7399 ac_cv_header_libintl_h=$ac_header_preproc
7400fi
7401echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7402echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7403
7404fi
7405if test $ac_cv_header_libintl_h = yes; then
7406 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7407echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7408if test "${gt_cv_func_gettext_libc+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7410else
7411 cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h. */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h. */
252b5132 7417#include <libintl.h>
5464f5a1
NN
7418int
7419main ()
7420{
252b5132 7421return (int) gettext ("")
5464f5a1
NN
7422 ;
7423 return 0;
7424}
7425_ACEOF
7426rm -f conftest.$ac_objext conftest$ac_exeext
7427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428 (eval $ac_link) 2>conftest.er1
7429 ac_status=$?
7430 grep -v '^ *+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } &&
8fb84ecc
AC
7435 { ac_try='test -z "$ac_c_werror_flag"
7436 || test ! -s conftest.err'
5464f5a1
NN
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 (eval $ac_try) 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; } &&
7442 { ac_try='test -s conftest$ac_exeext'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 (eval $ac_try) 2>&5
7445 ac_status=$?
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
252b5132
RH
7448 gt_cv_func_gettext_libc=yes
7449else
5464f5a1
NN
7450 echo "$as_me: failed program was:" >&5
7451sed 's/^/| /' conftest.$ac_ext >&5
7452
7453gt_cv_func_gettext_libc=no
252b5132 7454fi
5464f5a1
NN
7455rm -f conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext conftest.$ac_ext
252b5132 7457fi
5464f5a1
NN
7458echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7459echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7460
7461 if test "$gt_cv_func_gettext_libc" != "yes"; then
5464f5a1
NN
7462 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7463echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7464if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7466else
5464f5a1 7467 ac_check_lib_save_LIBS=$LIBS
252b5132 7468LIBS="-lintl $LIBS"
5464f5a1
NN
7469cat >conftest.$ac_ext <<_ACEOF
7470/* confdefs.h. */
7471_ACEOF
7472cat confdefs.h >>conftest.$ac_ext
7473cat >>conftest.$ac_ext <<_ACEOF
7474/* end confdefs.h. */
7475
252b5132 7476/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7477#ifdef __cplusplus
7478extern "C"
7479#endif
252b5132 7480/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7481 builtin and then its argument prototype would still apply. */
7482char bindtextdomain ();
7483int
7484main ()
7485{
7486bindtextdomain ();
7487 ;
7488 return 0;
7489}
7490_ACEOF
7491rm -f conftest.$ac_objext conftest$ac_exeext
7492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7493 (eval $ac_link) 2>conftest.er1
7494 ac_status=$?
7495 grep -v '^ *+' conftest.er1 >conftest.err
7496 rm -f conftest.er1
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } &&
8fb84ecc
AC
7500 { ac_try='test -z "$ac_c_werror_flag"
7501 || test ! -s conftest.err'
5464f5a1
NN
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 (eval $ac_try) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; } &&
7507 { ac_try='test -s conftest$ac_exeext'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 (eval $ac_try) 2>&5
7510 ac_status=$?
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513 ac_cv_lib_intl_bindtextdomain=yes
7514else
7515 echo "$as_me: failed program was:" >&5
7516sed 's/^/| /' conftest.$ac_ext >&5
7517
7518ac_cv_lib_intl_bindtextdomain=no
7519fi
7520rm -f conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522LIBS=$ac_check_lib_save_LIBS
7523fi
7524echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7525echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7526if test $ac_cv_lib_intl_bindtextdomain = yes; then
7527 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7528echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7529if test "${gt_cv_func_gettext_libintl+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7531else
7532 cat >conftest.$ac_ext <<_ACEOF
7533/* confdefs.h. */
7534_ACEOF
7535cat confdefs.h >>conftest.$ac_ext
7536cat >>conftest.$ac_ext <<_ACEOF
7537/* end confdefs.h. */
252b5132 7538
5464f5a1
NN
7539int
7540main ()
7541{
252b5132 7542return (int) gettext ("")
5464f5a1
NN
7543 ;
7544 return 0;
7545}
7546_ACEOF
7547rm -f conftest.$ac_objext conftest$ac_exeext
7548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549 (eval $ac_link) 2>conftest.er1
7550 ac_status=$?
7551 grep -v '^ *+' conftest.er1 >conftest.err
7552 rm -f conftest.er1
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } &&
8fb84ecc
AC
7556 { ac_try='test -z "$ac_c_werror_flag"
7557 || test ! -s conftest.err'
5464f5a1
NN
7558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 (eval $ac_try) 2>&5
7560 ac_status=$?
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); }; } &&
7563 { ac_try='test -s conftest$ac_exeext'
7564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 (eval $ac_try) 2>&5
7566 ac_status=$?
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; }; then
252b5132
RH
7569 gt_cv_func_gettext_libintl=yes
7570else
5464f5a1
NN
7571 echo "$as_me: failed program was:" >&5
7572sed 's/^/| /' conftest.$ac_ext >&5
7573
7574gt_cv_func_gettext_libintl=no
252b5132 7575fi
5464f5a1
NN
7576rm -f conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
252b5132 7578fi
5464f5a1
NN
7579echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7580echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7581fi
7582
7583 fi
7584
7585 if test "$gt_cv_func_gettext_libc" = "yes" \
7586 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5464f5a1
NN
7587
7588cat >>confdefs.h <<\_ACEOF
252b5132 7589#define HAVE_GETTEXT 1
5464f5a1 7590_ACEOF
252b5132
RH
7591
7592 # Extract the first word of "msgfmt", so it can be a program name with args.
7593set dummy msgfmt; ac_word=$2
5464f5a1
NN
7594echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7596if test "${ac_cv_path_MSGFMT+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7598else
7599 case "$MSGFMT" in
7600 /*)
7601 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7602 ;;
7603 *)
7604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7605 for ac_dir in $PATH; do
7606 test -z "$ac_dir" && ac_dir=.
7607 if test -f $ac_dir/$ac_word; then
7608 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7609 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7610 break
7611 fi
7612 fi
7613 done
7614 IFS="$ac_save_ifs"
7615 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7616 ;;
7617esac
7618fi
7619MSGFMT="$ac_cv_path_MSGFMT"
7620if test -n "$MSGFMT"; then
5464f5a1
NN
7621 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7622echo "${ECHO_T}$MSGFMT" >&6
252b5132 7623else
5464f5a1
NN
7624 echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
252b5132
RH
7626fi
7627 if test "$MSGFMT" != "no"; then
5464f5a1
NN
7628
7629for ac_func in dcgettext
252b5132 7630do
5464f5a1
NN
7631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7632echo "$as_me:$LINENO: checking for $ac_func" >&5
7633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7634if eval "test \"\${$as_ac_var+set}\" = set"; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7636else
7637 cat >conftest.$ac_ext <<_ACEOF
7638/* confdefs.h. */
7639_ACEOF
7640cat confdefs.h >>conftest.$ac_ext
7641cat >>conftest.$ac_ext <<_ACEOF
7642/* end confdefs.h. */
7643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7645#define $ac_func innocuous_$ac_func
7646
252b5132 7647/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7648 which can conflict with char $ac_func (); below.
7649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7650 <limits.h> exists even on freestanding compilers. */
7651
7652#ifdef __STDC__
7653# include <limits.h>
7654#else
7655# include <assert.h>
7656#endif
6be7c12c 7657
5464f5a1 7658#undef $ac_func
252b5132 7659
5464f5a1
NN
7660/* Override any gcc2 internal prototype to avoid an error. */
7661#ifdef __cplusplus
7662extern "C"
7663{
7664#endif
7665/* We use char because int might match the return type of a gcc2
7666 builtin and then its argument prototype would still apply. */
7667char $ac_func ();
252b5132
RH
7668/* The GNU C library defines this for functions which it implements
7669 to always fail with ENOSYS. Some functions are actually named
7670 something starting with __ and the normal name is an alias. */
7671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7672choke me
7673#else
5464f5a1
NN
7674char (*f) () = $ac_func;
7675#endif
7676#ifdef __cplusplus
7677}
252b5132
RH
7678#endif
7679
5464f5a1
NN
7680int
7681main ()
7682{
7683return f != $ac_func;
7684 ;
7685 return 0;
7686}
7687_ACEOF
7688rm -f conftest.$ac_objext conftest$ac_exeext
7689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7690 (eval $ac_link) 2>conftest.er1
7691 ac_status=$?
7692 grep -v '^ *+' conftest.er1 >conftest.err
7693 rm -f conftest.er1
7694 cat conftest.err >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } &&
8fb84ecc
AC
7697 { ac_try='test -z "$ac_c_werror_flag"
7698 || test ! -s conftest.err'
5464f5a1
NN
7699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 (eval $ac_try) 2>&5
7701 ac_status=$?
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; } &&
7704 { ac_try='test -s conftest$ac_exeext'
7705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7706 (eval $ac_try) 2>&5
7707 ac_status=$?
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); }; }; then
7710 eval "$as_ac_var=yes"
7711else
7712 echo "$as_me: failed program was:" >&5
7713sed 's/^/| /' conftest.$ac_ext >&5
7714
7715eval "$as_ac_var=no"
7716fi
7717rm -f conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
7719fi
7720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7722if test `eval echo '${'$as_ac_var'}'` = yes; then
7723 cat >>confdefs.h <<_ACEOF
7724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7725_ACEOF
252b5132 7726
252b5132
RH
7727fi
7728done
7729
7730 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7731set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7732echo "$as_me:$LINENO: checking for $ac_word" >&5
7733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7734if test "${ac_cv_path_GMSGFMT+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7736else
5464f5a1
NN
7737 case $GMSGFMT in
7738 [\\/]* | ?:[\\/]*)
252b5132
RH
7739 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7740 ;;
252b5132 7741 *)
5464f5a1
NN
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743for as_dir in $PATH
7744do
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 break 2
7752 fi
7753done
7754done
7755
252b5132
RH
7756 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7757 ;;
7758esac
7759fi
5464f5a1
NN
7760GMSGFMT=$ac_cv_path_GMSGFMT
7761
252b5132 7762if test -n "$GMSGFMT"; then
5464f5a1
NN
7763 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7764echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7765else
5464f5a1
NN
7766 echo "$as_me:$LINENO: result: no" >&5
7767echo "${ECHO_T}no" >&6
252b5132
RH
7768fi
7769
7770 # Extract the first word of "xgettext", so it can be a program name with args.
7771set dummy xgettext; ac_word=$2
5464f5a1
NN
7772echo "$as_me:$LINENO: checking for $ac_word" >&5
7773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7774if test "${ac_cv_path_XGETTEXT+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7776else
7777 case "$XGETTEXT" in
7778 /*)
7779 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7780 ;;
7781 *)
7782 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7783 for ac_dir in $PATH; do
7784 test -z "$ac_dir" && ac_dir=.
7785 if test -f $ac_dir/$ac_word; then
7786 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7787 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7788 break
7789 fi
7790 fi
7791 done
7792 IFS="$ac_save_ifs"
7793 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7794 ;;
7795esac
7796fi
7797XGETTEXT="$ac_cv_path_XGETTEXT"
7798if test -n "$XGETTEXT"; then
5464f5a1
NN
7799 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7800echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7801else
5464f5a1
NN
7802 echo "$as_me:$LINENO: result: no" >&5
7803echo "${ECHO_T}no" >&6
252b5132
RH
7804fi
7805
5464f5a1
NN
7806 cat >conftest.$ac_ext <<_ACEOF
7807/* confdefs.h. */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h. */
252b5132 7812
5464f5a1
NN
7813int
7814main ()
7815{
252b5132
RH
7816extern int _nl_msg_cat_cntr;
7817 return _nl_msg_cat_cntr
5464f5a1
NN
7818 ;
7819 return 0;
7820}
7821_ACEOF
7822rm -f conftest.$ac_objext conftest$ac_exeext
7823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7824 (eval $ac_link) 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
8fb84ecc
AC
7831 { ac_try='test -z "$ac_c_werror_flag"
7832 || test ! -s conftest.err'
5464f5a1
NN
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest$ac_exeext'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
252b5132
RH
7844 CATOBJEXT=.gmo
7845 DATADIRNAME=share
7846else
5464f5a1
NN
7847 echo "$as_me: failed program was:" >&5
7848sed 's/^/| /' conftest.$ac_ext >&5
7849
7850CATOBJEXT=.mo
252b5132
RH
7851 DATADIRNAME=lib
7852fi
5464f5a1
NN
7853rm -f conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7855 INSTOBJEXT=.mo
7856 fi
7857 fi
5464f5a1 7858
b3baf5d0 7859fi
252b5132 7860
6be7c12c 7861
5464f5a1
NN
7862
7863
45181ed1
AC
7864 if test "$CATOBJEXT" = "NONE" && test -d $srcdir/../intl; then
7865 # Neither gettext nor catgets in included in the C library.
7866 # Fall back on GNU gettext library (assuming it is present).
7867 nls_cv_use_gnu_gettext=yes
252b5132
RH
7868 fi
7869 fi
7870
7871 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7872 INTLOBJS="\$(GETTOBJS)"
7873 # Extract the first word of "msgfmt", so it can be a program name with args.
7874set dummy msgfmt; ac_word=$2
5464f5a1
NN
7875echo "$as_me:$LINENO: checking for $ac_word" >&5
7876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7877if test "${ac_cv_path_MSGFMT+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7879else
7880 case "$MSGFMT" in
7881 /*)
7882 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7883 ;;
7884 *)
7885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7886 for ac_dir in $PATH; do
7887 test -z "$ac_dir" && ac_dir=.
7888 if test -f $ac_dir/$ac_word; then
7889 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7890 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7891 break
7892 fi
7893 fi
7894 done
7895 IFS="$ac_save_ifs"
7896 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7897 ;;
7898esac
7899fi
7900MSGFMT="$ac_cv_path_MSGFMT"
7901if test -n "$MSGFMT"; then
5464f5a1
NN
7902 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7903echo "${ECHO_T}$MSGFMT" >&6
252b5132 7904else
5464f5a1
NN
7905 echo "$as_me:$LINENO: result: no" >&5
7906echo "${ECHO_T}no" >&6
252b5132
RH
7907fi
7908
7909 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7910set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7911echo "$as_me:$LINENO: checking for $ac_word" >&5
7912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7913if test "${ac_cv_path_GMSGFMT+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7915else
5464f5a1
NN
7916 case $GMSGFMT in
7917 [\\/]* | ?:[\\/]*)
252b5132
RH
7918 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7919 ;;
252b5132 7920 *)
5464f5a1
NN
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932done
7933done
7934
252b5132
RH
7935 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7936 ;;
7937esac
7938fi
5464f5a1
NN
7939GMSGFMT=$ac_cv_path_GMSGFMT
7940
252b5132 7941if test -n "$GMSGFMT"; then
5464f5a1
NN
7942 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7943echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7944else
5464f5a1
NN
7945 echo "$as_me:$LINENO: result: no" >&5
7946echo "${ECHO_T}no" >&6
252b5132
RH
7947fi
7948
7949 # Extract the first word of "xgettext", so it can be a program name with args.
7950set dummy xgettext; ac_word=$2
5464f5a1
NN
7951echo "$as_me:$LINENO: checking for $ac_word" >&5
7952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7953if test "${ac_cv_path_XGETTEXT+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7955else
7956 case "$XGETTEXT" in
7957 /*)
7958 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7959 ;;
7960 *)
7961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7962 for ac_dir in $PATH; do
7963 test -z "$ac_dir" && ac_dir=.
7964 if test -f $ac_dir/$ac_word; then
7965 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7966 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7967 break
7968 fi
7969 fi
7970 done
7971 IFS="$ac_save_ifs"
7972 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7973 ;;
7974esac
7975fi
7976XGETTEXT="$ac_cv_path_XGETTEXT"
7977if test -n "$XGETTEXT"; then
5464f5a1
NN
7978 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7979echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7980else
5464f5a1
NN
7981 echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6
252b5132
RH
7983fi
7984
5464f5a1 7985
252b5132
RH
7986 USE_INCLUDED_LIBINTL=yes
7987 CATOBJEXT=.gmo
7988 INSTOBJEXT=.mo
7989 DATADIRNAME=share
7990 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7991 INTLLIBS=$INTLDEPS
7992 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7993 nls_cv_header_intl=libintl.h
7994 nls_cv_header_libgt=libgettext.h
7995 fi
7996
7997 if test "$XGETTEXT" != ":"; then
7998 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7999 : ;
8000 else
5464f5a1
NN
8001 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8002echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
8003 XGETTEXT=":"
8004 fi
8005 fi
8006
8007 # We need to process the po/ directory.
8008 POSUB=po
8009 else
8010 DATADIRNAME=share
8011 nls_cv_header_intl=libintl.h
8012 nls_cv_header_libgt=libgettext.h
8013 fi
8014
8015 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8016 # because some of the sources are only built for this goal.
8017 if test "$PACKAGE" = gettext; then
8018 USE_NLS=yes
8019 USE_INCLUDED_LIBINTL=yes
8020 fi
8021
8022 for lang in $ALL_LINGUAS; do
8023 GMOFILES="$GMOFILES $lang.gmo"
8024 POFILES="$POFILES $lang.po"
8025 done
8026
5464f5a1
NN
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
6be7c12c 8039
252b5132
RH
8040 if test "x$CATOBJEXT" != "x"; then
8041 if test "x$ALL_LINGUAS" = "x"; then
8042 LINGUAS=
8043 else
5464f5a1
NN
8044 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8045echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8046 NEW_LINGUAS=
8047 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8048 case "$ALL_LINGUAS" in
8049 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8050 esac
8051 done
8052 LINGUAS=$NEW_LINGUAS
5464f5a1
NN
8053 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8054echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8055 fi
8056
8057 if test -n "$LINGUAS"; then
8058 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8059 fi
8060 fi
8061
8062 if test $ac_cv_header_locale_h = yes; then
8063 INCLUDE_LOCALE_H="#include <locale.h>"
8064 else
8065 INCLUDE_LOCALE_H="\
8066/* The system does not provide the header <locale.h>. Take care yourself. */"
8067 fi
5464f5a1 8068
252b5132
RH
8069
8070 if test -f $srcdir/po2tbl.sed.in; then
8071 if test "$CATOBJEXT" = ".cat"; then
5464f5a1
NN
8072 if test "${ac_cv_header_linux_version_h+set}" = set; then
8073 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8074echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8075if test "${ac_cv_header_linux_version_h+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077fi
8078echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8079echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8080else
8081 # Is the header compilable?
8082echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8083echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8084cat >conftest.$ac_ext <<_ACEOF
8085/* confdefs.h. */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h. */
8090$ac_includes_default
252b5132 8091#include <linux/version.h>
5464f5a1
NN
8092_ACEOF
8093rm -f conftest.$ac_objext
8094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8095 (eval $ac_compile) 2>conftest.er1
8096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
8fb84ecc
AC
8102 { ac_try='test -z "$ac_c_werror_flag"
8103 || test ! -s conftest.err'
5464f5a1
NN
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105 (eval $ac_try) 2>&5
8106 ac_status=$?
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; } &&
8109 { ac_try='test -s conftest.$ac_objext'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 (eval $ac_try) 2>&5
8112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8115 ac_header_compiler=yes
8116else
8117 echo "$as_me: failed program was:" >&5
8118sed 's/^/| /' conftest.$ac_ext >&5
8119
8120ac_header_compiler=no
8121fi
8122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8124echo "${ECHO_T}$ac_header_compiler" >&6
8125
8126# Is the header present?
8127echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8128echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8129cat >conftest.$ac_ext <<_ACEOF
8130/* confdefs.h. */
8131_ACEOF
8132cat confdefs.h >>conftest.$ac_ext
8133cat >>conftest.$ac_ext <<_ACEOF
8134/* end confdefs.h. */
8135#include <linux/version.h>
8136_ACEOF
8137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } >/dev/null; then
8145 if test -s conftest.err; then
8146 ac_cpp_err=$ac_c_preproc_warn_flag
8147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8148 else
8149 ac_cpp_err=
8150 fi
252b5132 8151else
5464f5a1 8152 ac_cpp_err=yes
252b5132 8153fi
5464f5a1
NN
8154if test -z "$ac_cpp_err"; then
8155 ac_header_preproc=yes
8156else
8157 echo "$as_me: failed program was:" >&5
8158sed 's/^/| /' conftest.$ac_ext >&5
8159
8160 ac_header_preproc=no
8161fi
8162rm -f conftest.err conftest.$ac_ext
8163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8164echo "${ECHO_T}$ac_header_preproc" >&6
8165
8166# So? What about this header?
8167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8168 yes:no: )
8169 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8170echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8171 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8172echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8173 ac_header_preproc=yes
8174 ;;
8175 no:yes:* )
8176 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8177echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8178 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8179echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8180 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8181echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8183echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8185echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8187echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8188 (
8189 cat <<\_ASBOX
8190## ------------------------------------------ ##
8191## Report this to the AC_PACKAGE_NAME lists. ##
8192## ------------------------------------------ ##
8193_ASBOX
8194 ) |
8195 sed "s/^/$as_me: WARNING: /" >&2
8196 ;;
8197esac
8198echo "$as_me:$LINENO: checking for linux/version.h" >&5
8199echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8200if test "${ac_cv_header_linux_version_h+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
8202else
8203 ac_cv_header_linux_version_h=$ac_header_preproc
8204fi
8205echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8206echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8207
252b5132 8208fi
5464f5a1 8209if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8210 msgformat=linux
8211else
5464f5a1 8212 msgformat=xopen
252b5132
RH
8213fi
8214
6be7c12c 8215
5464f5a1 8216
252b5132
RH
8217 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8218 fi
8219 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8220 $srcdir/po2tbl.sed.in > po2tbl.sed
8221 fi
8222
8223 if test "$PACKAGE" = "gettext"; then
8224 GT_NO="#NO#"
8225 GT_YES=
8226 else
8227 GT_NO=
8228 GT_YES="#YES#"
8229 fi
5464f5a1
NN
8230
8231
252b5132
RH
8232
8233 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5464f5a1 8234
252b5132
RH
8235
8236 l=
5464f5a1 8237
252b5132 8238
3c3bdf30 8239 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8240 test -d po || mkdir po
8241 if test "x$srcdir" != "x."; then
8242 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8243 posrcprefix="$srcdir/"
8244 else
8245 posrcprefix="../$srcdir/"
8246 fi
8247 else
8248 posrcprefix="../"
8249 fi
8250 rm -f po/POTFILES
8251 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8252 < $srcdir/po/POTFILES.in > po/POTFILES
8253 fi
5464f5a1 8254
252b5132
RH
8255
8256# Permit host specific settings.
8257. ${srcdir}/configure.host
8258
6be7c12c 8259
252b5132
RH
8260# Find a good install program. We prefer a C program (faster),
8261# so one script is as good as another. But avoid the broken or
8262# incompatible versions:
8263# SysV /etc/install, /usr/sbin/install
8264# SunOS /usr/etc/install
8265# IRIX /sbin/install
8266# AIX /bin/install
5464f5a1 8267# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8268# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8269# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8270# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 8271# OS/2's system install, which has a completely different semantic
252b5132 8272# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
8273echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8274echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8275if test -z "$INSTALL"; then
5464f5a1
NN
8276if test "${ac_cv_path_install+set}" = set; then
8277 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8278else
5464f5a1
NN
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280for as_dir in $PATH
8281do
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 # Account for people who put trailing slashes in PATH elements.
8285case $as_dir/ in
8286 ./ | .// | /cC/* | \
8287 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8288 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8289 /usr/ucb/* ) ;;
8290 *)
8291 # OSF1 and SCO ODT 3.0 have their own names for install.
8292 # Don't use installbsd from OSF since it installs stuff as root
8293 # by default.
8294 for ac_prog in ginstall scoinst install; do
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8297 if test $ac_prog = install &&
5464f5a1 8298 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8299 # AIX install. It has an incompatible calling convention.
8300 :
5464f5a1
NN
8301 elif test $ac_prog = install &&
8302 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8303 # program-specific install script used by HP pwplus--don't use.
8304 :
252b5132 8305 else
5464f5a1
NN
8306 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8307 break 3
252b5132
RH
8308 fi
8309 fi
8310 done
5464f5a1
NN
8311 done
8312 ;;
8313esac
8314done
8315
252b5132
RH
8316
8317fi
8318 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 8319 INSTALL=$ac_cv_path_install
252b5132
RH
8320 else
8321 # As a last resort, use the slow shell script. We don't cache a
8322 # path for INSTALL within a source directory, because that will
8323 # break other packages using the cache if that directory is
8324 # removed, or if the path is relative.
5464f5a1 8325 INSTALL=$ac_install_sh
252b5132
RH
8326 fi
8327fi
5464f5a1
NN
8328echo "$as_me:$LINENO: result: $INSTALL" >&5
8329echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8330
8331# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8332# It thinks the first close brace ends the variable substitution.
8333test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8334
5464f5a1 8335test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8336
8337test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8338
6be7c12c 8339
252b5132 8340BFD_HOST_64BIT_LONG=0
ec317fb1 8341BFD_HOST_LONG_LONG=0
252b5132
RH
8342BFD_HOST_64_BIT_DEFINED=0
8343BFD_HOST_64_BIT=
8344BFD_HOST_U_64_BIT=
252b5132 8345
5464f5a1
NN
8346echo "$as_me:$LINENO: checking for long long" >&5
8347echo $ECHO_N "checking for long long... $ECHO_C" >&6
8348if test "${bfd_cv_has_long_long+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 8350else
5464f5a1
NN
8351 cat >conftest.$ac_ext <<_ACEOF
8352/* confdefs.h. */
8353_ACEOF
8354cat confdefs.h >>conftest.$ac_ext
8355cat >>conftest.$ac_ext <<_ACEOF
8356/* end confdefs.h. */
ec317fb1 8357
5464f5a1
NN
8358int
8359main ()
8360{
ec317fb1 8361unsigned long long ll = 18446744073709551615ULL;
5464f5a1
NN
8362 ;
8363 return 0;
8364}
8365_ACEOF
8366rm -f conftest.$ac_objext
8367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8368 (eval $ac_compile) 2>conftest.er1
8369 ac_status=$?
8370 grep -v '^ *+' conftest.er1 >conftest.err
8371 rm -f conftest.er1
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } &&
8fb84ecc
AC
8375 { ac_try='test -z "$ac_c_werror_flag"
8376 || test ! -s conftest.err'
5464f5a1
NN
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest.$ac_objext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
ec317fb1
ILT
8388 bfd_cv_has_long_long=yes
8389else
5464f5a1
NN
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393bfd_cv_has_long_long=no
ec317fb1 8394fi
5464f5a1 8395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ec317fb1
ILT
8396fi
8397
5464f5a1
NN
8398echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8399echo "${ECHO_T}$bfd_cv_has_long_long" >&6
ec317fb1
ILT
8400if test $bfd_cv_has_long_long = yes; then
8401 BFD_HOST_LONG_LONG=1
5464f5a1
NN
8402 echo "$as_me:$LINENO: checking size of long long" >&5
8403echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8404if test "${ac_cv_sizeof_long_long+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8406else
8407 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8408 cat >conftest.$ac_ext <<_ACEOF
8409/* confdefs.h. */
8410_ACEOF
8411cat confdefs.h >>conftest.$ac_ext
8412cat >>conftest.$ac_ext <<_ACEOF
8413/* end confdefs.h. */
6726e1ea
L
8414#include "confdefs.h"
8415#include <sys/types.h>
8416
8417
5464f5a1
NN
8418int
8419main ()
8420{
6726e1ea 8421switch (0) case 0: case (sizeof (long long) == $ac_size):;
5464f5a1
NN
8422 ;
8423 return 0;
8424}
8425_ACEOF
8426rm -f conftest.$ac_objext
8427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8428 (eval $ac_compile) 2>conftest.er1
8429 ac_status=$?
8430 grep -v '^ *+' conftest.er1 >conftest.err
8431 rm -f conftest.er1
8432 cat conftest.err >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8fb84ecc
AC
8435 { ac_try='test -z "$ac_c_werror_flag"
8436 || test ! -s conftest.err'
5464f5a1
NN
8437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8438 (eval $ac_try) 2>&5
8439 ac_status=$?
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest.$ac_objext'
8443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8444 (eval $ac_try) 2>&5
8445 ac_status=$?
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); }; }; then
6726e1ea
L
8448 ac_cv_sizeof_long_long=$ac_size
8449else
5464f5a1
NN
8450 echo "$as_me: failed program was:" >&5
8451sed 's/^/| /' conftest.$ac_ext >&5
8452
6726e1ea 8453fi
5464f5a1 8454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8455 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8456done
8457
8458fi
8459
8460if test x$ac_cv_sizeof_long_long = x ; then
5464f5a1
NN
8461 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8462echo "$as_me: error: cannot determine a size for long long" >&2;}
8463 { (exit 1); exit 1; }; }
6726e1ea 8464fi
5464f5a1
NN
8465echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8466echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8467
8468cat >>confdefs.h <<_ACEOF
6726e1ea 8469#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 8470_ACEOF
6726e1ea
L
8471
8472
8473fi
8474
5464f5a1
NN
8475echo "$as_me:$LINENO: checking size of long" >&5
8476echo $ECHO_N "checking size of long... $ECHO_C" >&6
8477if test "${ac_cv_sizeof_long+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8479else
8480 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8481 cat >conftest.$ac_ext <<_ACEOF
8482/* confdefs.h. */
8483_ACEOF
8484cat confdefs.h >>conftest.$ac_ext
8485cat >>conftest.$ac_ext <<_ACEOF
8486/* end confdefs.h. */
6726e1ea
L
8487#include "confdefs.h"
8488#include <sys/types.h>
8489
8490
5464f5a1
NN
8491int
8492main ()
8493{
6726e1ea 8494switch (0) case 0: case (sizeof (long) == $ac_size):;
5464f5a1
NN
8495 ;
8496 return 0;
8497}
8498_ACEOF
8499rm -f conftest.$ac_objext
8500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8501 (eval $ac_compile) 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } &&
8fb84ecc
AC
8508 { ac_try='test -z "$ac_c_werror_flag"
8509 || test ! -s conftest.err'
5464f5a1
NN
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 (eval $ac_try) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; } &&
8515 { ac_try='test -s conftest.$ac_objext'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 (eval $ac_try) 2>&5
8518 ac_status=$?
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
6726e1ea
L
8521 ac_cv_sizeof_long=$ac_size
8522else
5464f5a1
NN
8523 echo "$as_me: failed program was:" >&5
8524sed 's/^/| /' conftest.$ac_ext >&5
8525
6726e1ea 8526fi
5464f5a1 8527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8528 if test x$ac_cv_sizeof_long != x ; then break; fi
8529done
8530
8531fi
8532
8533if test x$ac_cv_sizeof_long = x ; then
5464f5a1
NN
8534 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8535echo "$as_me: error: cannot determine a size for long" >&2;}
8536 { (exit 1); exit 1; }; }
6726e1ea 8537fi
5464f5a1
NN
8538echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8539echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8540
8541cat >>confdefs.h <<_ACEOF
6726e1ea 8542#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 8543_ACEOF
6726e1ea
L
8544
8545
8546if test "x${ac_cv_sizeof_long}" = "x8"; then
8547 host64=true
ccba357f
AM
8548 BFD_HOST_64BIT_LONG=1
8549 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8550 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
6726e1ea 8551elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
ccba357f
AM
8552 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8553 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
6726e1ea
L
8554fi
8555
ccba357f 8556if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
6726e1ea 8557 BFD_HOST_64_BIT_DEFINED=1
ccba357f
AM
8558 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8559 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
ec317fb1
ILT
8560fi
8561
8562
8563
6be7c12c
AO
8564
8565
8566
8567
252b5132
RH
8568# Put a plausible default for CC_FOR_BUILD in Makefile.
8569if test -z "$CC_FOR_BUILD"; then
8570 if test "x$cross_compiling" = "xno"; then
8571 CC_FOR_BUILD='$(CC)'
8572 else
8573 CC_FOR_BUILD=gcc
8574 fi
8575fi
8576
8577# Also set EXEEXT_FOR_BUILD.
8578if test "x$cross_compiling" = "xno"; then
8579 EXEEXT_FOR_BUILD='$(EXEEXT)'
8580else
5464f5a1
NN
8581 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8582echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8583if test "${bfd_cv_build_exeext+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8585else
aab08431
ILT
8586 rm -f conftest*
8587 echo 'int main () { return 0; }' > conftest.c
8588 bfd_cv_build_exeext=
8589 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8590 for file in conftest.*; do
8591 case $file in
8592 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8593 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8594 esac
8595 done
8596 rm -f conftest*
8597 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 8598fi
5464f5a1
NN
8599echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8600echo "${ECHO_T}$bfd_cv_build_exeext" >&6
252b5132
RH
8601 EXEEXT_FOR_BUILD=""
8602 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8603fi
8604
6be7c12c 8605
5464f5a1
NN
8606
8607
8608
8609
8610
8611
8612for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
252b5132 8613do
5464f5a1
NN
8614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8615if eval "test \"\${$as_ac_Header+set}\" = set"; then
8616 echo "$as_me:$LINENO: checking for $ac_header" >&5
8617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8618if eval "test \"\${$as_ac_Header+set}\" = set"; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8620fi
8621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8623else
8624 # Is the header compilable?
8625echo "$as_me:$LINENO: checking $ac_header usability" >&5
8626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8627cat >conftest.$ac_ext <<_ACEOF
8628/* confdefs.h. */
8629_ACEOF
8630cat confdefs.h >>conftest.$ac_ext
8631cat >>conftest.$ac_ext <<_ACEOF
8632/* end confdefs.h. */
8633$ac_includes_default
8634#include <$ac_header>
8635_ACEOF
8636rm -f conftest.$ac_objext
8637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8638 (eval $ac_compile) 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8fb84ecc
AC
8645 { ac_try='test -z "$ac_c_werror_flag"
8646 || test ! -s conftest.err'
5464f5a1
NN
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 (eval $ac_try) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; } &&
8652 { ac_try='test -s conftest.$ac_objext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 (eval $ac_try) 2>&5
8655 ac_status=$?
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_header_compiler=yes
8659else
8660 echo "$as_me: failed program was:" >&5
8661sed 's/^/| /' conftest.$ac_ext >&5
8662
8663ac_header_compiler=no
8664fi
8665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8667echo "${ECHO_T}$ac_header_compiler" >&6
8668
8669# Is the header present?
8670echo "$as_me:$LINENO: checking $ac_header presence" >&5
8671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8672cat >conftest.$ac_ext <<_ACEOF
8673/* confdefs.h. */
8674_ACEOF
8675cat confdefs.h >>conftest.$ac_ext
8676cat >>conftest.$ac_ext <<_ACEOF
8677/* end confdefs.h. */
8678#include <$ac_header>
8679_ACEOF
8680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } >/dev/null; then
8688 if test -s conftest.err; then
8689 ac_cpp_err=$ac_c_preproc_warn_flag
8690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8691 else
8692 ac_cpp_err=
8693 fi
252b5132 8694else
5464f5a1 8695 ac_cpp_err=yes
252b5132 8696fi
5464f5a1
NN
8697if test -z "$ac_cpp_err"; then
8698 ac_header_preproc=yes
8699else
8700 echo "$as_me: failed program was:" >&5
8701sed 's/^/| /' conftest.$ac_ext >&5
8702
8703 ac_header_preproc=no
252b5132 8704fi
5464f5a1
NN
8705rm -f conftest.err conftest.$ac_ext
8706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8707echo "${ECHO_T}$ac_header_preproc" >&6
8708
8709# So? What about this header?
8710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8711 yes:no: )
8712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8716 ac_header_preproc=yes
8717 ;;
8718 no:yes:* )
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8731 (
8732 cat <<\_ASBOX
8733## ------------------------------------------ ##
8734## Report this to the AC_PACKAGE_NAME lists. ##
8735## ------------------------------------------ ##
8736_ASBOX
8737 ) |
8738 sed "s/^/$as_me: WARNING: /" >&2
8739 ;;
8740esac
8741echo "$as_me:$LINENO: checking for $ac_header" >&5
8742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8743if eval "test \"\${$as_ac_Header+set}\" = set"; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8745else
5464f5a1
NN
8746 eval "$as_ac_Header=\$ac_header_preproc"
8747fi
8748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8750
252b5132 8751fi
5464f5a1
NN
8752if test `eval echo '${'$as_ac_Header'}'` = yes; then
8753 cat >>confdefs.h <<_ACEOF
8754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755_ACEOF
8756
8757fi
8758
252b5132
RH
8759done
8760
5464f5a1
NN
8761
8762
8763
8764for ac_header in fcntl.h sys/file.h sys/time.h
252b5132 8765do
5464f5a1
NN
8766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8767if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768 echo "$as_me:$LINENO: checking for $ac_header" >&5
8769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8770if eval "test \"\${$as_ac_Header+set}\" = set"; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772fi
8773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8775else
8776 # Is the header compilable?
8777echo "$as_me:$LINENO: checking $ac_header usability" >&5
8778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8779cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h. */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h. */
8785$ac_includes_default
8786#include <$ac_header>
8787_ACEOF
8788rm -f conftest.$ac_objext
8789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790 (eval $ac_compile) 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8fb84ecc
AC
8797 { ac_try='test -z "$ac_c_werror_flag"
8798 || test ! -s conftest.err'
5464f5a1
NN
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 (eval $ac_try) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; } &&
8804 { ac_try='test -s conftest.$ac_objext'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 (eval $ac_try) 2>&5
8807 ac_status=$?
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; }; then
8810 ac_header_compiler=yes
8811else
8812 echo "$as_me: failed program was:" >&5
8813sed 's/^/| /' conftest.$ac_ext >&5
8814
8815ac_header_compiler=no
8816fi
8817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8819echo "${ECHO_T}$ac_header_compiler" >&6
8820
8821# Is the header present?
8822echo "$as_me:$LINENO: checking $ac_header presence" >&5
8823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8824cat >conftest.$ac_ext <<_ACEOF
8825/* confdefs.h. */
8826_ACEOF
8827cat confdefs.h >>conftest.$ac_ext
8828cat >>conftest.$ac_ext <<_ACEOF
8829/* end confdefs.h. */
8830#include <$ac_header>
8831_ACEOF
8832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } >/dev/null; then
8840 if test -s conftest.err; then
8841 ac_cpp_err=$ac_c_preproc_warn_flag
8842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8843 else
8844 ac_cpp_err=
8845 fi
252b5132 8846else
5464f5a1 8847 ac_cpp_err=yes
252b5132 8848fi
5464f5a1
NN
8849if test -z "$ac_cpp_err"; then
8850 ac_header_preproc=yes
8851else
8852 echo "$as_me: failed program was:" >&5
8853sed 's/^/| /' conftest.$ac_ext >&5
8854
8855 ac_header_preproc=no
252b5132 8856fi
5464f5a1
NN
8857rm -f conftest.err conftest.$ac_ext
8858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8859echo "${ECHO_T}$ac_header_preproc" >&6
8860
8861# So? What about this header?
8862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8863 yes:no: )
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8867echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8868 ac_header_preproc=yes
8869 ;;
8870 no:yes:* )
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8874echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8876echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8878echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8882echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8883 (
8884 cat <<\_ASBOX
8885## ------------------------------------------ ##
8886## Report this to the AC_PACKAGE_NAME lists. ##
8887## ------------------------------------------ ##
8888_ASBOX
8889 ) |
8890 sed "s/^/$as_me: WARNING: /" >&2
8891 ;;
8892esac
8893echo "$as_me:$LINENO: checking for $ac_header" >&5
8894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8895if eval "test \"\${$as_ac_Header+set}\" = set"; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8897else
5464f5a1
NN
8898 eval "$as_ac_Header=\$ac_header_preproc"
8899fi
8900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8902
8903fi
8904if test `eval echo '${'$as_ac_Header'}'` = yes; then
8905 cat >>confdefs.h <<_ACEOF
8906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8907_ACEOF
8908
252b5132 8909fi
5464f5a1 8910
252b5132
RH
8911done
8912
5464f5a1
NN
8913echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8914echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8915if test "${ac_cv_header_time+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8917else
8918 cat >conftest.$ac_ext <<_ACEOF
8919/* confdefs.h. */
8920_ACEOF
8921cat confdefs.h >>conftest.$ac_ext
8922cat >>conftest.$ac_ext <<_ACEOF
8923/* end confdefs.h. */
252b5132
RH
8924#include <sys/types.h>
8925#include <sys/time.h>
8926#include <time.h>
5464f5a1
NN
8927
8928int
8929main ()
8930{
8931if ((struct tm *) 0)
8932return 0;
8933 ;
8934 return 0;
8935}
8936_ACEOF
8937rm -f conftest.$ac_objext
8938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8939 (eval $ac_compile) 2>conftest.er1
8940 ac_status=$?
8941 grep -v '^ *+' conftest.er1 >conftest.err
8942 rm -f conftest.er1
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8fb84ecc
AC
8946 { ac_try='test -z "$ac_c_werror_flag"
8947 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
8953 { ac_try='test -s conftest.$ac_objext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 (eval $ac_try) 2>&5
8956 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
252b5132
RH
8959 ac_cv_header_time=yes
8960else
5464f5a1
NN
8961 echo "$as_me: failed program was:" >&5
8962sed 's/^/| /' conftest.$ac_ext >&5
8963
8964ac_cv_header_time=no
252b5132 8965fi
5464f5a1 8966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8967fi
5464f5a1
NN
8968echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8969echo "${ECHO_T}$ac_cv_header_time" >&6
6be7c12c 8970if test $ac_cv_header_time = yes; then
5464f5a1
NN
8971
8972cat >>confdefs.h <<\_ACEOF
252b5132 8973#define TIME_WITH_SYS_TIME 1
5464f5a1 8974_ACEOF
252b5132
RH
8975
8976fi
8977
5464f5a1
NN
8978
8979
8980
8981
8982
252b5132 8983ac_header_dirent=no
5464f5a1
NN
8984for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8985 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8986echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8987echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8988if eval "test \"\${$as_ac_Header+set}\" = set"; then
8989 echo $ECHO_N "(cached) $ECHO_C" >&6
8990else
8991 cat >conftest.$ac_ext <<_ACEOF
8992/* confdefs.h. */
8993_ACEOF
8994cat confdefs.h >>conftest.$ac_ext
8995cat >>conftest.$ac_ext <<_ACEOF
8996/* end confdefs.h. */
252b5132
RH
8997#include <sys/types.h>
8998#include <$ac_hdr>
5464f5a1
NN
8999
9000int
9001main ()
9002{
9003if ((DIR *) 0)
9004return 0;
9005 ;
9006 return 0;
9007}
9008_ACEOF
9009rm -f conftest.$ac_objext
9010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9011 (eval $ac_compile) 2>conftest.er1
9012 ac_status=$?
9013 grep -v '^ *+' conftest.er1 >conftest.err
9014 rm -f conftest.er1
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
8fb84ecc
AC
9018 { ac_try='test -z "$ac_c_werror_flag"
9019 || test ! -s conftest.err'
5464f5a1
NN
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 (eval $ac_try) 2>&5
9022 ac_status=$?
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; } &&
9025 { ac_try='test -s conftest.$ac_objext'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027 (eval $ac_try) 2>&5
9028 ac_status=$?
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
9031 eval "$as_ac_Header=yes"
9032else
9033 echo "$as_me: failed program was:" >&5
9034sed 's/^/| /' conftest.$ac_ext >&5
9035
9036eval "$as_ac_Header=no"
9037fi
9038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9039fi
9040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9042if test `eval echo '${'$as_ac_Header'}'` = yes; then
9043 cat >>confdefs.h <<_ACEOF
9044#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9045_ACEOF
9046
9047ac_header_dirent=$ac_hdr; break
252b5132 9048fi
5464f5a1 9049
252b5132
RH
9050done
9051# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9052if test $ac_header_dirent = dirent.h; then
5464f5a1
NN
9053 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9054echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9055if test "${ac_cv_search_opendir+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057else
9058 ac_func_search_save_LIBS=$LIBS
9059ac_cv_search_opendir=no
9060cat >conftest.$ac_ext <<_ACEOF
9061/* confdefs.h. */
9062_ACEOF
9063cat confdefs.h >>conftest.$ac_ext
9064cat >>conftest.$ac_ext <<_ACEOF
9065/* end confdefs.h. */
9066
252b5132 9067/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
9068#ifdef __cplusplus
9069extern "C"
9070#endif
252b5132 9071/* We use char because int might match the return type of a gcc2
5464f5a1
NN
9072 builtin and then its argument prototype would still apply. */
9073char opendir ();
9074int
9075main ()
9076{
9077opendir ();
9078 ;
9079 return 0;
9080}
9081_ACEOF
9082rm -f conftest.$ac_objext conftest$ac_exeext
9083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9084 (eval $ac_link) 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
8fb84ecc
AC
9091 { ac_try='test -z "$ac_c_werror_flag"
9092 || test ! -s conftest.err'
5464f5a1
NN
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; } &&
9098 { ac_try='test -s conftest$ac_exeext'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; }; then
9104 ac_cv_search_opendir="none required"
9105else
9106 echo "$as_me: failed program was:" >&5
9107sed 's/^/| /' conftest.$ac_ext >&5
9108
9109fi
9110rm -f conftest.err conftest.$ac_objext \
9111 conftest$ac_exeext conftest.$ac_ext
9112if test "$ac_cv_search_opendir" = no; then
9113 for ac_lib in dir; do
9114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9115 cat >conftest.$ac_ext <<_ACEOF
9116/* confdefs.h. */
9117_ACEOF
9118cat confdefs.h >>conftest.$ac_ext
9119cat >>conftest.$ac_ext <<_ACEOF
9120/* end confdefs.h. */
6be7c12c 9121
5464f5a1
NN
9122/* Override any gcc2 internal prototype to avoid an error. */
9123#ifdef __cplusplus
9124extern "C"
9125#endif
9126/* We use char because int might match the return type of a gcc2
9127 builtin and then its argument prototype would still apply. */
9128char opendir ();
9129int
9130main ()
9131{
9132opendir ();
9133 ;
9134 return 0;
9135}
9136_ACEOF
9137rm -f conftest.$ac_objext conftest$ac_exeext
9138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9139 (eval $ac_link) 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
8fb84ecc
AC
9146 { ac_try='test -z "$ac_c_werror_flag"
9147 || test ! -s conftest.err'
5464f5a1
NN
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 (eval $ac_try) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; } &&
9153 { ac_try='test -s conftest$ac_exeext'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 (eval $ac_try) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
9159 ac_cv_search_opendir="-l$ac_lib"
9160break
9161else
9162 echo "$as_me: failed program was:" >&5
9163sed 's/^/| /' conftest.$ac_ext >&5
9164
9165fi
9166rm -f conftest.err conftest.$ac_objext \
9167 conftest$ac_exeext conftest.$ac_ext
9168 done
6be7c12c 9169fi
5464f5a1 9170LIBS=$ac_func_search_save_LIBS
6be7c12c 9171fi
5464f5a1
NN
9172echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9173echo "${ECHO_T}$ac_cv_search_opendir" >&6
9174if test "$ac_cv_search_opendir" != no; then
9175 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9176
252b5132
RH
9177fi
9178
9179else
5464f5a1
NN
9180 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9181echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9182if test "${ac_cv_search_opendir+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 9184else
5464f5a1
NN
9185 ac_func_search_save_LIBS=$LIBS
9186ac_cv_search_opendir=no
9187cat >conftest.$ac_ext <<_ACEOF
9188/* confdefs.h. */
9189_ACEOF
9190cat confdefs.h >>conftest.$ac_ext
9191cat >>conftest.$ac_ext <<_ACEOF
9192/* end confdefs.h. */
9193
6be7c12c 9194/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
9195#ifdef __cplusplus
9196extern "C"
9197#endif
6be7c12c 9198/* We use char because int might match the return type of a gcc2
5464f5a1
NN
9199 builtin and then its argument prototype would still apply. */
9200char opendir ();
9201int
9202main ()
9203{
9204opendir ();
9205 ;
9206 return 0;
9207}
9208_ACEOF
9209rm -f conftest.$ac_objext conftest$ac_exeext
9210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9211 (eval $ac_link) 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
8fb84ecc
AC
9218 { ac_try='test -z "$ac_c_werror_flag"
9219 || test ! -s conftest.err'
5464f5a1
NN
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; } &&
9225 { ac_try='test -s conftest$ac_exeext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 (eval $ac_try) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_search_opendir="none required"
9232else
9233 echo "$as_me: failed program was:" >&5
9234sed 's/^/| /' conftest.$ac_ext >&5
9235
9236fi
9237rm -f conftest.err conftest.$ac_objext \
9238 conftest$ac_exeext conftest.$ac_ext
9239if test "$ac_cv_search_opendir" = no; then
9240 for ac_lib in x; do
9241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9242 cat >conftest.$ac_ext <<_ACEOF
9243/* confdefs.h. */
9244_ACEOF
9245cat confdefs.h >>conftest.$ac_ext
9246cat >>conftest.$ac_ext <<_ACEOF
9247/* end confdefs.h. */
6be7c12c 9248
5464f5a1
NN
9249/* Override any gcc2 internal prototype to avoid an error. */
9250#ifdef __cplusplus
9251extern "C"
9252#endif
9253/* We use char because int might match the return type of a gcc2
9254 builtin and then its argument prototype would still apply. */
9255char opendir ();
9256int
9257main ()
9258{
9259opendir ();
9260 ;
9261 return 0;
9262}
9263_ACEOF
9264rm -f conftest.$ac_objext conftest$ac_exeext
9265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9266 (eval $ac_link) 2>conftest.er1
9267 ac_status=$?
9268 grep -v '^ *+' conftest.er1 >conftest.err
9269 rm -f conftest.er1
9270 cat conftest.err >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } &&
8fb84ecc
AC
9273 { ac_try='test -z "$ac_c_werror_flag"
9274 || test ! -s conftest.err'
5464f5a1
NN
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276 (eval $ac_try) 2>&5
9277 ac_status=$?
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; } &&
9280 { ac_try='test -s conftest$ac_exeext'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 (eval $ac_try) 2>&5
9283 ac_status=$?
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9286 ac_cv_search_opendir="-l$ac_lib"
9287break
9288else
9289 echo "$as_me: failed program was:" >&5
9290sed 's/^/| /' conftest.$ac_ext >&5
9291
9292fi
9293rm -f conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 done
6be7c12c 9296fi
5464f5a1 9297LIBS=$ac_func_search_save_LIBS
6be7c12c 9298fi
5464f5a1
NN
9299echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9300echo "${ECHO_T}$ac_cv_search_opendir" >&6
9301if test "$ac_cv_search_opendir" != no; then
9302 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9303
252b5132
RH
9304fi
9305
9306fi
9307
5464f5a1
NN
9308
9309
9310
9311
9312
9313
9314
633fd09f 9315for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 9316do
5464f5a1
NN
9317as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9318echo "$as_me:$LINENO: checking for $ac_func" >&5
9319echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9320if eval "test \"\${$as_ac_var+set}\" = set"; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9322else
9323 cat >conftest.$ac_ext <<_ACEOF
9324/* confdefs.h. */
9325_ACEOF
9326cat confdefs.h >>conftest.$ac_ext
9327cat >>conftest.$ac_ext <<_ACEOF
9328/* end confdefs.h. */
9329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9331#define $ac_func innocuous_$ac_func
9332
252b5132 9333/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
9334 which can conflict with char $ac_func (); below.
9335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9336 <limits.h> exists even on freestanding compilers. */
9337
9338#ifdef __STDC__
9339# include <limits.h>
9340#else
9341# include <assert.h>
9342#endif
6be7c12c 9343
5464f5a1 9344#undef $ac_func
252b5132 9345
5464f5a1
NN
9346/* Override any gcc2 internal prototype to avoid an error. */
9347#ifdef __cplusplus
9348extern "C"
9349{
9350#endif
9351/* We use char because int might match the return type of a gcc2
9352 builtin and then its argument prototype would still apply. */
9353char $ac_func ();
252b5132
RH
9354/* The GNU C library defines this for functions which it implements
9355 to always fail with ENOSYS. Some functions are actually named
9356 something starting with __ and the normal name is an alias. */
9357#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9358choke me
9359#else
5464f5a1
NN
9360char (*f) () = $ac_func;
9361#endif
9362#ifdef __cplusplus
9363}
252b5132
RH
9364#endif
9365
5464f5a1
NN
9366int
9367main ()
9368{
9369return f != $ac_func;
9370 ;
9371 return 0;
9372}
9373_ACEOF
9374rm -f conftest.$ac_objext conftest$ac_exeext
9375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9376 (eval $ac_link) 2>conftest.er1
9377 ac_status=$?
9378 grep -v '^ *+' conftest.er1 >conftest.err
9379 rm -f conftest.er1
9380 cat conftest.err >&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } &&
8fb84ecc
AC
9383 { ac_try='test -z "$ac_c_werror_flag"
9384 || test ! -s conftest.err'
5464f5a1
NN
9385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 (eval $ac_try) 2>&5
9387 ac_status=$?
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); }; } &&
9390 { ac_try='test -s conftest$ac_exeext'
9391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 (eval $ac_try) 2>&5
9393 ac_status=$?
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; }; then
9396 eval "$as_ac_var=yes"
9397else
9398 echo "$as_me: failed program was:" >&5
9399sed 's/^/| /' conftest.$ac_ext >&5
9400
9401eval "$as_ac_var=no"
9402fi
9403rm -f conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405fi
9406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9407echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9408if test `eval echo '${'$as_ac_var'}'` = yes; then
9409 cat >>confdefs.h <<_ACEOF
9410#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9411_ACEOF
252b5132 9412
252b5132
RH
9413fi
9414done
9415
5464f5a1 9416
49c97a80
ILT
9417for ac_func in strtoull
9418do
5464f5a1
NN
9419as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9420echo "$as_me:$LINENO: checking for $ac_func" >&5
9421echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9422if eval "test \"\${$as_ac_var+set}\" = set"; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424else
9425 cat >conftest.$ac_ext <<_ACEOF
9426/* confdefs.h. */
9427_ACEOF
9428cat confdefs.h >>conftest.$ac_ext
9429cat >>conftest.$ac_ext <<_ACEOF
9430/* end confdefs.h. */
9431/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9433#define $ac_func innocuous_$ac_func
9434
49c97a80 9435/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
9436 which can conflict with char $ac_func (); below.
9437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9438 <limits.h> exists even on freestanding compilers. */
9439
9440#ifdef __STDC__
9441# include <limits.h>
9442#else
9443# include <assert.h>
9444#endif
49c97a80 9445
5464f5a1 9446#undef $ac_func
49c97a80 9447
5464f5a1
NN
9448/* Override any gcc2 internal prototype to avoid an error. */
9449#ifdef __cplusplus
9450extern "C"
9451{
9452#endif
9453/* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9455char $ac_func ();
49c97a80
ILT
9456/* The GNU C library defines this for functions which it implements
9457 to always fail with ENOSYS. Some functions are actually named
9458 something starting with __ and the normal name is an alias. */
9459#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9460choke me
9461#else
5464f5a1
NN
9462char (*f) () = $ac_func;
9463#endif
9464#ifdef __cplusplus
9465}
49c97a80
ILT
9466#endif
9467
5464f5a1
NN
9468int
9469main ()
9470{
9471return f != $ac_func;
9472 ;
9473 return 0;
9474}
9475_ACEOF
9476rm -f conftest.$ac_objext conftest$ac_exeext
9477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
8fb84ecc
AC
9485 { ac_try='test -z "$ac_c_werror_flag"
9486 || test ! -s conftest.err'
5464f5a1
NN
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; } &&
9492 { ac_try='test -s conftest$ac_exeext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 (eval $ac_try) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 eval "$as_ac_var=yes"
9499else
9500 echo "$as_me: failed program was:" >&5
9501sed 's/^/| /' conftest.$ac_ext >&5
9502
9503eval "$as_ac_var=no"
9504fi
9505rm -f conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
9507fi
9508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9509echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9510if test `eval echo '${'$as_ac_var'}'` = yes; then
9511 cat >>confdefs.h <<_ACEOF
9512#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9513_ACEOF
49c97a80 9514
49c97a80
ILT
9515fi
9516done
9517
6be7c12c
AO
9518
9519
252b5132 9520case "${host}" in
855b0be7 9521*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
9522
9523cat >>confdefs.h <<\_ACEOF
252b5132 9524#define USE_BINARY_FOPEN 1
5464f5a1 9525_ACEOF
252b5132
RH
9526 ;;
9527esac
9528
5464f5a1
NN
9529echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9530echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9531if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9533else
5464f5a1
NN
9534 cat >conftest.$ac_ext <<_ACEOF
9535/* confdefs.h. */
9536_ACEOF
9537cat confdefs.h >>conftest.$ac_ext
9538cat >>conftest.$ac_ext <<_ACEOF
9539/* end confdefs.h. */
252b5132
RH
9540
9541#include <stdio.h>
9542#ifdef HAVE_STRING_H
9543#include <string.h>
9544#else
9545#ifdef HAVE_STRINGS_H
9546#include <strings.h>
9547#endif
9548#endif
9549#ifdef HAVE_STDLIB_H
9550#include <stdlib.h>
9551#endif
9552#ifdef HAVE_UNISTD_H
9553#include <unistd.h>
9554#endif
5464f5a1
NN
9555int
9556main ()
9557{
252b5132 9558char *(*pfn) = (char *(*)) strstr
5464f5a1
NN
9559 ;
9560 return 0;
9561}
9562_ACEOF
9563rm -f conftest.$ac_objext
9564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9565 (eval $ac_compile) 2>conftest.er1
9566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
8fb84ecc
AC
9572 { ac_try='test -z "$ac_c_werror_flag"
9573 || test ! -s conftest.err'
5464f5a1
NN
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; } &&
9579 { ac_try='test -s conftest.$ac_objext'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; }; then
252b5132
RH
9585 bfd_cv_decl_needed_strstr=no
9586else
5464f5a1
NN
9587 echo "$as_me: failed program was:" >&5
9588sed 's/^/| /' conftest.$ac_ext >&5
9589
9590bfd_cv_decl_needed_strstr=yes
252b5132 9591fi
5464f5a1 9592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9593fi
9594
5464f5a1
NN
9595echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9596echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
252b5132 9597if test $bfd_cv_decl_needed_strstr = yes; then
5464f5a1
NN
9598
9599cat >>confdefs.h <<\_ACEOF
252b5132 9600#define NEED_DECLARATION_STRSTR 1
5464f5a1 9601_ACEOF
252b5132
RH
9602
9603fi
9604
5464f5a1
NN
9605echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
9606echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
9607if test "${bfd_cv_decl_needed_malloc+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9609else
5464f5a1
NN
9610 cat >conftest.$ac_ext <<_ACEOF
9611/* confdefs.h. */
9612_ACEOF
9613cat confdefs.h >>conftest.$ac_ext
9614cat >>conftest.$ac_ext <<_ACEOF
9615/* end confdefs.h. */
252b5132
RH
9616
9617#include <stdio.h>
9618#ifdef HAVE_STRING_H
9619#include <string.h>
9620#else
9621#ifdef HAVE_STRINGS_H
9622#include <strings.h>
9623#endif
9624#endif
9625#ifdef HAVE_STDLIB_H
9626#include <stdlib.h>
9627#endif
9628#ifdef HAVE_UNISTD_H
9629#include <unistd.h>
9630#endif
5464f5a1
NN
9631int
9632main ()
9633{
9634char *(*pfn) = (char *(*)) malloc
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); } &&
8fb84ecc
AC
9648 { ac_try='test -z "$ac_c_werror_flag"
9649 || test ! -s conftest.err'
5464f5a1
NN
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 (eval $ac_try) 2>&5
9652 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; } &&
9655 { ac_try='test -s conftest.$ac_objext'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; }; then
252b5132
RH
9661 bfd_cv_decl_needed_malloc=no
9662else
5464f5a1
NN
9663 echo "$as_me: failed program was:" >&5
9664sed 's/^/| /' conftest.$ac_ext >&5
9665
9666bfd_cv_decl_needed_malloc=yes
252b5132 9667fi
5464f5a1 9668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9669fi
9670
5464f5a1
NN
9671echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
9672echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
252b5132 9673if test $bfd_cv_decl_needed_malloc = yes; then
5464f5a1
NN
9674
9675cat >>confdefs.h <<\_ACEOF
252b5132 9676#define NEED_DECLARATION_MALLOC 1
5464f5a1 9677_ACEOF
252b5132
RH
9678
9679fi
9680
5464f5a1
NN
9681echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
9682echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
9683if test "${bfd_cv_decl_needed_realloc+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9685else
5464f5a1
NN
9686 cat >conftest.$ac_ext <<_ACEOF
9687/* confdefs.h. */
9688_ACEOF
9689cat confdefs.h >>conftest.$ac_ext
9690cat >>conftest.$ac_ext <<_ACEOF
9691/* end confdefs.h. */
252b5132
RH
9692
9693#include <stdio.h>
9694#ifdef HAVE_STRING_H
9695#include <string.h>
9696#else
9697#ifdef HAVE_STRINGS_H
9698#include <strings.h>
9699#endif
9700#endif
9701#ifdef HAVE_STDLIB_H
9702#include <stdlib.h>
9703#endif
9704#ifdef HAVE_UNISTD_H
9705#include <unistd.h>
9706#endif
5464f5a1
NN
9707int
9708main ()
9709{
252b5132 9710char *(*pfn) = (char *(*)) realloc
5464f5a1
NN
9711 ;
9712 return 0;
9713}
9714_ACEOF
9715rm -f conftest.$ac_objext
9716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9717 (eval $ac_compile) 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
8fb84ecc
AC
9724 { ac_try='test -z "$ac_c_werror_flag"
9725 || test ! -s conftest.err'
5464f5a1
NN
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try='test -s conftest.$ac_objext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733 (eval $ac_try) 2>&5
9734 ac_status=$?
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
252b5132
RH
9737 bfd_cv_decl_needed_realloc=no
9738else
5464f5a1
NN
9739 echo "$as_me: failed program was:" >&5
9740sed 's/^/| /' conftest.$ac_ext >&5
9741
9742bfd_cv_decl_needed_realloc=yes
252b5132 9743fi
5464f5a1 9744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9745fi
9746
5464f5a1
NN
9747echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
9748echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
252b5132 9749if test $bfd_cv_decl_needed_realloc = yes; then
5464f5a1
NN
9750
9751cat >>confdefs.h <<\_ACEOF
252b5132 9752#define NEED_DECLARATION_REALLOC 1
5464f5a1 9753_ACEOF
252b5132
RH
9754
9755fi
9756
5464f5a1
NN
9757echo "$as_me:$LINENO: checking whether free must be declared" >&5
9758echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9759if test "${bfd_cv_decl_needed_free+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9761else
5464f5a1
NN
9762 cat >conftest.$ac_ext <<_ACEOF
9763/* confdefs.h. */
9764_ACEOF
9765cat confdefs.h >>conftest.$ac_ext
9766cat >>conftest.$ac_ext <<_ACEOF
9767/* end confdefs.h. */
252b5132
RH
9768
9769#include <stdio.h>
9770#ifdef HAVE_STRING_H
9771#include <string.h>
9772#else
9773#ifdef HAVE_STRINGS_H
9774#include <strings.h>
9775#endif
9776#endif
9777#ifdef HAVE_STDLIB_H
9778#include <stdlib.h>
9779#endif
9780#ifdef HAVE_UNISTD_H
9781#include <unistd.h>
9782#endif
5464f5a1
NN
9783int
9784main ()
9785{
252b5132 9786char *(*pfn) = (char *(*)) free
5464f5a1
NN
9787 ;
9788 return 0;
9789}
9790_ACEOF
9791rm -f conftest.$ac_objext
9792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9793 (eval $ac_compile) 2>conftest.er1
9794 ac_status=$?
9795 grep -v '^ *+' conftest.er1 >conftest.err
9796 rm -f conftest.er1
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
8fb84ecc
AC
9800 { ac_try='test -z "$ac_c_werror_flag"
9801 || test ! -s conftest.err'
5464f5a1
NN
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 (eval $ac_try) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; } &&
9807 { ac_try='test -s conftest.$ac_objext'
9808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 (eval $ac_try) 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; }; then
252b5132
RH
9813 bfd_cv_decl_needed_free=no
9814else
5464f5a1
NN
9815 echo "$as_me: failed program was:" >&5
9816sed 's/^/| /' conftest.$ac_ext >&5
9817
9818bfd_cv_decl_needed_free=yes
252b5132 9819fi
5464f5a1 9820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9821fi
9822
5464f5a1
NN
9823echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9824echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
252b5132 9825if test $bfd_cv_decl_needed_free = yes; then
5464f5a1
NN
9826
9827cat >>confdefs.h <<\_ACEOF
252b5132 9828#define NEED_DECLARATION_FREE 1
5464f5a1 9829_ACEOF
252b5132
RH
9830
9831fi
9832
5464f5a1
NN
9833echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9834echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9835if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9837else
5464f5a1
NN
9838 cat >conftest.$ac_ext <<_ACEOF
9839/* confdefs.h. */
9840_ACEOF
9841cat confdefs.h >>conftest.$ac_ext
9842cat >>conftest.$ac_ext <<_ACEOF
9843/* end confdefs.h. */
252b5132
RH
9844
9845#include <stdio.h>
9846#ifdef HAVE_STRING_H
9847#include <string.h>
9848#else
9849#ifdef HAVE_STRINGS_H
9850#include <strings.h>
9851#endif
9852#endif
9853#ifdef HAVE_STDLIB_H
9854#include <stdlib.h>
9855#endif
9856#ifdef HAVE_UNISTD_H
9857#include <unistd.h>
9858#endif
5464f5a1
NN
9859int
9860main ()
9861{
252b5132 9862char *(*pfn) = (char *(*)) getenv
5464f5a1
NN
9863 ;
9864 return 0;
9865}
9866_ACEOF
9867rm -f conftest.$ac_objext
9868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9869 (eval $ac_compile) 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
8fb84ecc
AC
9876 { ac_try='test -z "$ac_c_werror_flag"
9877 || test ! -s conftest.err'
5464f5a1
NN
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 (eval $ac_try) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try='test -s conftest.$ac_objext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 (eval $ac_try) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
252b5132
RH
9889 bfd_cv_decl_needed_getenv=no
9890else
5464f5a1
NN
9891 echo "$as_me: failed program was:" >&5
9892sed 's/^/| /' conftest.$ac_ext >&5
9893
9894bfd_cv_decl_needed_getenv=yes
252b5132 9895fi
5464f5a1 9896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9897fi
9898
5464f5a1
NN
9899echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9900echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
252b5132 9901if test $bfd_cv_decl_needed_getenv = yes; then
5464f5a1
NN
9902
9903cat >>confdefs.h <<\_ACEOF
252b5132 9904#define NEED_DECLARATION_GETENV 1
5464f5a1 9905_ACEOF
252b5132
RH
9906
9907fi
9908
6be7c12c 9909
252b5132
RH
9910# If we are configured native, pick a core file support file.
9911COREFILE=
9912COREFLAG=
9913TRAD_HEADER=
9914if test "${target}" = "${host}"; then
9915 case "${host}" in
13dfd2d0 9916 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
9917 COREFILE=''
9918 ;;
252b5132
RH
9919 alpha*-*-linux-gnu*)
9920 COREFILE=trad-core.lo
9921 TRAD_HEADER='"hosts/alphalinux.h"'
9922 ;;
690cc98b
NC
9923 alpha*-*-netbsd* | alpha*-*-openbsd*)
9924 COREFILE=netbsd-core.lo
9925 ;;
252b5132 9926 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
9927 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9928 COREFILE='' ;;
61d0bc33 9929 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
9930 arm-*-riscix) COREFILE=trad-core.lo ;;
9931 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9932 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9933 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9934 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9935 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
9936 hppa*-*-netbsd* | hppa*-*-openbsd*)
9937 COREFILE=netbsd-core.lo
9938 ;;
9939
dc810e39 9940 i370-*-*)
5b93d8bb
AM
9941 COREFILE=trad-core.lo
9942 TRAD_HEADER='"hosts/i370linux.h"'
9943 ;;
9944
80c7c40a 9945 i[3-7]86-sequent-bsd*)
5b93d8bb 9946 COREFILE=trad-core.lo
252b5132
RH
9947 TRAD_HEADER='"hosts/symmetry.h"'
9948 ;;
80c7c40a
NC
9949 i[3-7]86-sequent-sysv4*) ;;
9950 i[3-7]86-sequent-sysv*)
252b5132
RH
9951 COREFILE=trad-core.lo
9952 TRAD_HEADER='"hosts/symmetry.h"'
9953 ;;
80c7c40a 9954 i[3-7]86-*-bsdi)
7e3b3466
NC
9955 COREFILE=
9956 ;;
d2bef492 9957 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
9958 COREFILE=trad-core.lo
9959 TRAD_HEADER='"hosts/i386bsd.h"'
9960 ;;
13dfd2d0 9961 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
9962 COREFILE=''
9963 TRAD_HEADER='"hosts/i386bsd.h"'
9964 ;;
4615568e 9965 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
9966 COREFILE=netbsd-core.lo
9967 ;;
80c7c40a 9968 i[3-7]86-esix-sysv3*)
252b5132
RH
9969 COREFILE=trad-core.lo
9970 TRAD_HEADER='"hosts/esix.h"'
9971 ;;
80c7c40a 9972 i[3-7]86-*-sco3.2v5*)
252b5132
RH
9973 COREFILE=sco5-core.lo
9974 ;;
80c7c40a 9975 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
9976 COREFILE=trad-core.lo
9977 TRAD_HEADER='"hosts/i386sco.h"'
9978 ;;
80c7c40a 9979 i[3-7]86-*-mach3*)
252b5132
RH
9980 COREFILE=trad-core.lo
9981 TRAD_HEADER='"hosts/i386mach3.h"'
9982 ;;
80c7c40a 9983 i[3-7]86-*-linux-gnu*)
252b5132
RH
9984 COREFILE=trad-core.lo
9985 TRAD_HEADER='"hosts/i386linux.h"'
9986 ;;
80c7c40a
NC
9987 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9988 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
9989 i860-*-mach3* | i860-*-osf1*)
9990 COREFILE=trad-core.lo
9991 TRAD_HEADER='"hosts/i860mach3.h"'
9992 ;;
252b5132
RH
9993 mips-*-netbsd* | mips*-*-openbsd*)
9994 COREFILE=netbsd-core.lo
9995 ;;
9996 mips-dec-*)
9997 COREFILE=trad-core.lo
9998 TRAD_HEADER='"hosts/decstation.h"'
9999 ;;
10000 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
10001 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
10002 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
10003 mips-*-sysv4*) ;;
10004 mips-*-sysv* | mips-*-riscos*)
10005 COREFILE=trad-core.lo
10006 TRAD_HEADER='"hosts/riscos.h"'
10007 ;;
10008 mips-sony-bsd*)
10009 COREFILE=trad-core.lo
10010 TRAD_HEADER='"hosts/news-mips.h"'
10011 ;;
10012 m68*-bull*-sysv*)
10013 COREFILE=trad-core.lo
10014 TRAD_HEADER='"hosts/dpx2.h"'
10015 ;;
10016 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
10017 m68*-hp-bsd*)
10018 COREFILE=trad-core.lo
10019 TRAD_HEADER='"hosts/hp300bsd.h"'
10020 ;;
10021 m68*-*-linux-gnu*)
10022 COREFILE=trad-core.lo
10023 TRAD_HEADER='"hosts/m68klinux.h"'
10024 ;;
10025 m68*-motorola-sysv*)
10026 COREFILE=trad-core.lo
10027 TRAD_HEADER='"hosts/delta68.h"'
10028 ;;
10029 m68*-sony-*)
10030 COREFILE=trad-core.lo
10031 TRAD_HEADER='"hosts/news.h"'
10032 ;;
10033 m68*-*-netbsd* | m68*-*-openbsd*)
10034 COREFILE=netbsd-core.lo
10035 ;;
10036 m68*-apple-aux*)
10037 COREFILE=trad-core.lo
10038 TRAD_HEADER='"hosts/m68kaux.h"'
10039 ;;
eb1e0e80
NC
10040 m88*-*-sysv4*)
10041 ;;
10042 m88*-motorola-sysv*)
10043 COREFILE=ptrace-core.lo
10044 ;;
252b5132
RH
10045 m88*-*-mach3*)
10046 COREFILE=trad-core.lo
10047 TRAD_HEADER='"hosts/m88kmach3.h"'
10048 ;;
c6f8758f
NC
10049 m88*-*-openbsd*)
10050 COREFILE=netbsd-core.lo
10051 ;;
252b5132
RH
10052 ns32k-pc532-mach)
10053 COREFILE=trad-core.lo
10054 TRAD_HEADER='"hosts/pc532mach.h"'
10055 ;;
10056 ns32k-*-netbsd* | ns32k-*-openbsd*)
10057 COREFILE=netbsd-core.lo
10058 ;;
eb1e0e80
NC
10059 rs6000-*-lynx*)
10060 COREFILE=lynx-core.lo
10061 ;;
10062 rs6000-*-aix5.* | powerpc-*-aix5.*)
10063 COREFILE=rs6000-core.lo
10064 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
10065 ;;
83954261 10066 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
10067 COREFILE=rs6000-core.lo
10068 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
10069 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
10070 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
10071 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
10072echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
10073 cat >conftest.$ac_ext <<_ACEOF
10074/* confdefs.h. */
10075_ACEOF
10076cat confdefs.h >>conftest.$ac_ext
10077cat >>conftest.$ac_ext <<_ACEOF
10078/* end confdefs.h. */
83954261 10079#include <core.h>
5464f5a1
NN
10080int
10081main ()
10082{
83954261 10083struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
10084 ;
10085 return 0;
10086}
10087_ACEOF
10088rm -f conftest.$ac_objext
10089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10090 (eval $ac_compile) 2>conftest.er1
10091 ac_status=$?
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
8fb84ecc
AC
10097 { ac_try='test -z "$ac_c_werror_flag"
10098 || test ! -s conftest.err'
5464f5a1
NN
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try='test -s conftest.$ac_objext'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; }; then
10110
10111cat >>confdefs.h <<\_ACEOF
83954261 10112#define HAVE_ST_C_IMPL 1
5464f5a1 10113_ACEOF
83954261 10114
5464f5a1
NN
10115 echo "$as_me:$LINENO: result: yes" >&5
10116echo "${ECHO_T}yes" >&6
83954261 10117else
5464f5a1
NN
10118 echo "$as_me: failed program was:" >&5
10119sed 's/^/| /' conftest.$ac_ext >&5
10120
10121echo "$as_me:$LINENO: result: no" >&5
10122echo "${ECHO_T}no" >&6
83954261 10123fi
5464f5a1 10124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 10125 ;;
252b5132
RH
10126 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
10127 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
10128 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
10129 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
10130 powerpc-*-beos*) ;;
13dfd2d0
NC
10131 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
10132 COREFILE='' ;;
252b5132 10133 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 10134 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 10135 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 10136 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 10137 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
10138 COREFILE=netbsd-core.lo
10139 ;;
10140 tahoe-*-*)
10141 COREFILE=trad-core.lo
10142 TRAD_HEADER='"hosts/tahoe.h"'
10143 ;;
de6e5e1a
NC
10144 vax-*-netbsd* | vax-*-openbsd*)
10145 COREFILE=netbsd-core.lo
10146 ;;
252b5132
RH
10147 vax-*-ultrix2*)
10148 COREFILE=trad-core.lo
10149 TRAD_HEADER='"hosts/vaxult2.h"'
10150 ;;
10151 vax-*-ultrix*)
10152 COREFILE=trad-core.lo
10153 TRAD_HEADER='"hosts/vaxult2.h"'
10154 ;;
f8fc3443
NC
10155 vax-*-linux-gnu*)
10156 COREFILE=trad-core.lo
10157 TRAD_HEADER='"hosts/vaxlinux.h"'
10158 ;;
252b5132
RH
10159 vax-*-*)
10160 COREFILE=trad-core.lo
10161 TRAD_HEADER='"hosts/vaxbsd.h"'
10162 ;;
85cfd8d3
MK
10163 x86_64-*-netbsd* | x86_64-*-openbsd*)
10164 COREFILE=netbsd-core.lo
10165 ;;
252b5132
RH
10166 esac
10167
10168 case "$COREFILE" in
10169 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
10170 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
10171 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
10172 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
10173 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
10174 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
10175 osf-core.lo) COREFLAG=-DOSF_CORE ;;
10176 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
10177 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
10178 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
10179 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
10180 esac
10181
10182 # ELF corefile support has several flavors, but all of
10183 # them use something called <sys/procfs.h>
5464f5a1
NN
10184
10185for ac_header in sys/procfs.h
252b5132 10186do
5464f5a1
NN
10187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10188if eval "test \"\${$as_ac_Header+set}\" = set"; then
10189 echo "$as_me:$LINENO: checking for $ac_header" >&5
10190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10191if eval "test \"\${$as_ac_Header+set}\" = set"; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193fi
10194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10196else
10197 # Is the header compilable?
10198echo "$as_me:$LINENO: checking $ac_header usability" >&5
10199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10200cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206$ac_includes_default
10207#include <$ac_header>
10208_ACEOF
10209rm -f conftest.$ac_objext
10210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10211 (eval $ac_compile) 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
8fb84ecc
AC
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
5464f5a1
NN
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest.$ac_objext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 ac_header_compiler=yes
10232else
10233 echo "$as_me: failed program was:" >&5
10234sed 's/^/| /' conftest.$ac_ext >&5
10235
10236ac_header_compiler=no
10237fi
10238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10239echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10240echo "${ECHO_T}$ac_header_compiler" >&6
10241
10242# Is the header present?
10243echo "$as_me:$LINENO: checking $ac_header presence" >&5
10244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10245cat >conftest.$ac_ext <<_ACEOF
10246/* confdefs.h. */
10247_ACEOF
10248cat confdefs.h >>conftest.$ac_ext
10249cat >>conftest.$ac_ext <<_ACEOF
10250/* end confdefs.h. */
10251#include <$ac_header>
10252_ACEOF
10253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } >/dev/null; then
10261 if test -s conftest.err; then
10262 ac_cpp_err=$ac_c_preproc_warn_flag
10263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10264 else
10265 ac_cpp_err=
10266 fi
252b5132 10267else
5464f5a1 10268 ac_cpp_err=yes
252b5132 10269fi
5464f5a1
NN
10270if test -z "$ac_cpp_err"; then
10271 ac_header_preproc=yes
10272else
10273 echo "$as_me: failed program was:" >&5
10274sed 's/^/| /' conftest.$ac_ext >&5
10275
10276 ac_header_preproc=no
252b5132 10277fi
5464f5a1
NN
10278rm -f conftest.err conftest.$ac_ext
10279echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10280echo "${ECHO_T}$ac_header_preproc" >&6
10281
10282# So? What about this header?
10283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10284 yes:no: )
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10286echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10288echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10289 ac_header_preproc=yes
10290 ;;
10291 no:yes:* )
10292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10295echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10297echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10299echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10301echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10303echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10304 (
10305 cat <<\_ASBOX
10306## ------------------------------------------ ##
10307## Report this to the AC_PACKAGE_NAME lists. ##
10308## ------------------------------------------ ##
10309_ASBOX
10310 ) |
10311 sed "s/^/$as_me: WARNING: /" >&2
10312 ;;
10313esac
10314echo "$as_me:$LINENO: checking for $ac_header" >&5
10315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10316if eval "test \"\${$as_ac_Header+set}\" = set"; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 10318else
5464f5a1
NN
10319 eval "$as_ac_Header=\$ac_header_preproc"
10320fi
10321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10323
252b5132 10324fi
5464f5a1
NN
10325if test `eval echo '${'$as_ac_Header'}'` = yes; then
10326 cat >>confdefs.h <<_ACEOF
10327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10328_ACEOF
10329
10330fi
10331
252b5132
RH
10332done
10333
10334 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
10335 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
10336echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
10337 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339else
10340 cat >conftest.$ac_ext <<_ACEOF
10341/* confdefs.h. */
10342_ACEOF
10343cat confdefs.h >>conftest.$ac_ext
10344cat >>conftest.$ac_ext <<_ACEOF
10345/* end confdefs.h. */
7ee38065
MS
10346
10347#define _SYSCALL32
252b5132 10348#include <sys/procfs.h>
5464f5a1
NN
10349int
10350main ()
10351{
252b5132 10352prstatus_t avar
5464f5a1
NN
10353 ;
10354 return 0;
10355}
10356_ACEOF
10357rm -f conftest.$ac_objext
10358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10359 (eval $ac_compile) 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } &&
8fb84ecc
AC
10366 { ac_try='test -z "$ac_c_werror_flag"
10367 || test ! -s conftest.err'
5464f5a1
NN
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; } &&
10373 { ac_try='test -s conftest.$ac_objext'
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
252b5132
RH
10379 bfd_cv_have_sys_procfs_type_prstatus_t=yes
10380else
5464f5a1
NN
10381 echo "$as_me: failed program was:" >&5
10382sed 's/^/| /' conftest.$ac_ext >&5
10383
10384bfd_cv_have_sys_procfs_type_prstatus_t=no
10385
252b5132 10386fi
5464f5a1 10387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10388fi
10389
10390 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
10391
10392cat >>confdefs.h <<\_ACEOF
252b5132 10393#define HAVE_PRSTATUS_T 1
5464f5a1 10394_ACEOF
252b5132
RH
10395
10396 fi
5464f5a1
NN
10397 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10398echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 10399
5464f5a1
NN
10400 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10401echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10402 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10404else
5464f5a1
NN
10405 cat >conftest.$ac_ext <<_ACEOF
10406/* confdefs.h. */
10407_ACEOF
10408cat confdefs.h >>conftest.$ac_ext
10409cat >>conftest.$ac_ext <<_ACEOF
10410/* end confdefs.h. */
7ee38065
MS
10411
10412#define _SYSCALL32
10413#include <sys/procfs.h>
5464f5a1
NN
10414int
10415main ()
10416{
7ee38065 10417prstatus32_t avar
5464f5a1
NN
10418 ;
10419 return 0;
10420}
10421_ACEOF
10422rm -f conftest.$ac_objext
10423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10424 (eval $ac_compile) 2>conftest.er1
10425 ac_status=$?
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } &&
8fb84ecc
AC
10431 { ac_try='test -z "$ac_c_werror_flag"
10432 || test ! -s conftest.err'
5464f5a1
NN
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; } &&
10438 { ac_try='test -s conftest.$ac_objext'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
7ee38065
MS
10444 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10445else
5464f5a1
NN
10446 echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
10449bfd_cv_have_sys_procfs_type_prstatus32_t=no
10450
7ee38065 10451fi
5464f5a1 10452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10453fi
10454
10455 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
10456
10457cat >>confdefs.h <<\_ACEOF
7ee38065 10458#define HAVE_PRSTATUS32_T 1
5464f5a1 10459_ACEOF
7ee38065
MS
10460
10461 fi
5464f5a1
NN
10462 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10463echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 10464
5464f5a1
NN
10465 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10466echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10467 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10469else
5464f5a1
NN
10470 cat >conftest.$ac_ext <<_ACEOF
10471/* confdefs.h. */
10472_ACEOF
10473cat confdefs.h >>conftest.$ac_ext
10474cat >>conftest.$ac_ext <<_ACEOF
10475/* end confdefs.h. */
7ee38065
MS
10476
10477#define _SYSCALL32
252b5132 10478#include <sys/procfs.h>
5464f5a1
NN
10479int
10480main ()
10481{
252b5132 10482prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
10483 ;
10484 return 0;
10485}
10486_ACEOF
10487rm -f conftest.$ac_objext
10488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10489 (eval $ac_compile) 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
8fb84ecc
AC
10496 { ac_try='test -z "$ac_c_werror_flag"
10497 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
10503 { ac_try='test -s conftest.$ac_objext'
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; }; then
252b5132
RH
10509 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10510else
5464f5a1
NN
10511 echo "$as_me: failed program was:" >&5
10512sed 's/^/| /' conftest.$ac_ext >&5
10513
10514bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10515
252b5132 10516fi
5464f5a1 10517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10518fi
10519
10520 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
10521
10522cat >>confdefs.h <<\_ACEOF
252b5132 10523#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 10524_ACEOF
252b5132
RH
10525
10526 fi
5464f5a1
NN
10527 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10528echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 10529
5464f5a1
NN
10530 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10531echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10532 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10534else
5464f5a1
NN
10535 cat >conftest.$ac_ext <<_ACEOF
10536/* confdefs.h. */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h. */
7ee38065
MS
10541
10542#define _SYSCALL32
10543#include <sys/procfs.h>
5464f5a1
NN
10544int
10545main ()
10546{
7ee38065 10547prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
10548 ;
10549 return 0;
10550}
10551_ACEOF
10552rm -f conftest.$ac_objext
10553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10554 (eval $ac_compile) 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } &&
8fb84ecc
AC
10561 { ac_try='test -z "$ac_c_werror_flag"
10562 || test ! -s conftest.err'
5464f5a1
NN
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; } &&
10568 { ac_try='test -s conftest.$ac_objext'
10569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570 (eval $ac_try) 2>&5
10571 ac_status=$?
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); }; }; then
7ee38065
MS
10574 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
10575else
5464f5a1
NN
10576 echo "$as_me: failed program was:" >&5
10577sed 's/^/| /' conftest.$ac_ext >&5
10578
10579bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
10580
7ee38065 10581fi
5464f5a1 10582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10583fi
10584
10585 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
10586
10587cat >>confdefs.h <<\_ACEOF
7ee38065 10588#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 10589_ACEOF
7ee38065
MS
10590
10591 fi
5464f5a1
NN
10592 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
10593echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 10594
5464f5a1
NN
10595 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
10596echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
10597 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10599else
5464f5a1
NN
10600 cat >conftest.$ac_ext <<_ACEOF
10601/* confdefs.h. */
10602_ACEOF
10603cat confdefs.h >>conftest.$ac_ext
10604cat >>conftest.$ac_ext <<_ACEOF
10605/* end confdefs.h. */
7ee38065
MS
10606
10607#define _SYSCALL32
252b5132 10608#include <sys/procfs.h>
5464f5a1
NN
10609int
10610main ()
10611{
252b5132 10612pstatus_t avar
5464f5a1
NN
10613 ;
10614 return 0;
10615}
10616_ACEOF
10617rm -f conftest.$ac_objext
10618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10619 (eval $ac_compile) 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
8fb84ecc
AC
10626 { ac_try='test -z "$ac_c_werror_flag"
10627 || test ! -s conftest.err'
5464f5a1
NN
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest.$ac_objext'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
252b5132
RH
10639 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10640else
5464f5a1
NN
10641 echo "$as_me: failed program was:" >&5
10642sed 's/^/| /' conftest.$ac_ext >&5
10643
10644bfd_cv_have_sys_procfs_type_pstatus_t=no
10645
252b5132 10646fi
5464f5a1 10647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10648fi
10649
10650 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
10651
10652cat >>confdefs.h <<\_ACEOF
252b5132 10653#define HAVE_PSTATUS_T 1
5464f5a1 10654_ACEOF
252b5132
RH
10655
10656 fi
5464f5a1
NN
10657 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10658echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 10659
5464f5a1
NN
10660 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
10661echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
10662 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10664else
5464f5a1
NN
10665 cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h. */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h. */
f572a39d
AM
10671
10672#define _SYSCALL32
10673#include <sys/procfs.h>
5464f5a1
NN
10674int
10675main ()
10676{
f572a39d 10677pxstatus_t avar
5464f5a1
NN
10678 ;
10679 return 0;
10680}
10681_ACEOF
10682rm -f conftest.$ac_objext
10683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10684 (eval $ac_compile) 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
8fb84ecc
AC
10691 { ac_try='test -z "$ac_c_werror_flag"
10692 || test ! -s conftest.err'
5464f5a1
NN
10693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; } &&
10698 { ac_try='test -s conftest.$ac_objext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
f572a39d
AM
10704 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10705else
5464f5a1
NN
10706 echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
10709bfd_cv_have_sys_procfs_type_pxstatus_t=no
10710
f572a39d 10711fi
5464f5a1 10712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10713fi
10714
10715 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
10716
10717cat >>confdefs.h <<\_ACEOF
f572a39d 10718#define HAVE_PXSTATUS_T 1
5464f5a1 10719_ACEOF
f572a39d
AM
10720
10721 fi
5464f5a1
NN
10722 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10723echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 10724
5464f5a1
NN
10725 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10726echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10727 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10729else
5464f5a1
NN
10730 cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h. */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
10735/* end confdefs.h. */
7ee38065
MS
10736
10737#define _SYSCALL32
10738#include <sys/procfs.h>
5464f5a1
NN
10739int
10740main ()
10741{
7ee38065 10742pstatus32_t avar
5464f5a1
NN
10743 ;
10744 return 0;
10745}
10746_ACEOF
10747rm -f conftest.$ac_objext
10748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10749 (eval $ac_compile) 2>conftest.er1
10750 ac_status=$?
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
8fb84ecc
AC
10756 { ac_try='test -z "$ac_c_werror_flag"
10757 || test ! -s conftest.err'
5464f5a1
NN
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; } &&
10763 { ac_try='test -s conftest.$ac_objext'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; }; then
7ee38065
MS
10769 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10770else
5464f5a1
NN
10771 echo "$as_me: failed program was:" >&5
10772sed 's/^/| /' conftest.$ac_ext >&5
10773
10774bfd_cv_have_sys_procfs_type_pstatus32_t=no
10775
7ee38065 10776fi
5464f5a1 10777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10778fi
10779
10780 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
10781
10782cat >>confdefs.h <<\_ACEOF
7ee38065 10783#define HAVE_PSTATUS32_T 1
5464f5a1 10784_ACEOF
7ee38065
MS
10785
10786 fi
5464f5a1
NN
10787 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10788echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 10789
5464f5a1
NN
10790 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10791echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10792 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10794else
5464f5a1
NN
10795 cat >conftest.$ac_ext <<_ACEOF
10796/* confdefs.h. */
10797_ACEOF
10798cat confdefs.h >>conftest.$ac_ext
10799cat >>conftest.$ac_ext <<_ACEOF
10800/* end confdefs.h. */
7ee38065
MS
10801
10802#define _SYSCALL32
252b5132 10803#include <sys/procfs.h>
5464f5a1
NN
10804int
10805main ()
10806{
252b5132 10807prpsinfo_t avar
5464f5a1
NN
10808 ;
10809 return 0;
10810}
10811_ACEOF
10812rm -f conftest.$ac_objext
10813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814 (eval $ac_compile) 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
8fb84ecc
AC
10821 { ac_try='test -z "$ac_c_werror_flag"
10822 || test ! -s conftest.err'
5464f5a1
NN
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; } &&
10828 { ac_try='test -s conftest.$ac_objext'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10831 ac_status=$?
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
252b5132
RH
10834 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10835else
5464f5a1
NN
10836 echo "$as_me: failed program was:" >&5
10837sed 's/^/| /' conftest.$ac_ext >&5
10838
10839bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10840
252b5132 10841fi
5464f5a1 10842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10843fi
10844
10845 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
10846
10847cat >>confdefs.h <<\_ACEOF
252b5132 10848#define HAVE_PRPSINFO_T 1
5464f5a1 10849_ACEOF
252b5132
RH
10850
10851 fi
5464f5a1
NN
10852 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10853echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 10854
5464f5a1
NN
10855 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10856echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10857 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10859else
5464f5a1
NN
10860 cat >conftest.$ac_ext <<_ACEOF
10861/* confdefs.h. */
10862_ACEOF
10863cat confdefs.h >>conftest.$ac_ext
10864cat >>conftest.$ac_ext <<_ACEOF
10865/* end confdefs.h. */
7ee38065
MS
10866
10867#define _SYSCALL32
10868#include <sys/procfs.h>
5464f5a1
NN
10869int
10870main ()
10871{
7ee38065 10872prpsinfo32_t avar
5464f5a1
NN
10873 ;
10874 return 0;
10875}
10876_ACEOF
10877rm -f conftest.$ac_objext
10878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10879 (eval $ac_compile) 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
8fb84ecc
AC
10886 { ac_try='test -z "$ac_c_werror_flag"
10887 || test ! -s conftest.err'
5464f5a1
NN
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; } &&
10893 { ac_try='test -s conftest.$ac_objext'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
7ee38065
MS
10899 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10900else
5464f5a1
NN
10901 echo "$as_me: failed program was:" >&5
10902sed 's/^/| /' conftest.$ac_ext >&5
10903
10904bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10905
7ee38065 10906fi
5464f5a1 10907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10908fi
10909
10910 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
10911
10912cat >>confdefs.h <<\_ACEOF
7ee38065 10913#define HAVE_PRPSINFO32_T 1
5464f5a1 10914_ACEOF
7ee38065
MS
10915
10916 fi
5464f5a1
NN
10917 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10918echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 10919
5464f5a1
NN
10920 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10921echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10922 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10924else
5464f5a1
NN
10925 cat >conftest.$ac_ext <<_ACEOF
10926/* confdefs.h. */
10927_ACEOF
10928cat confdefs.h >>conftest.$ac_ext
10929cat >>conftest.$ac_ext <<_ACEOF
10930/* end confdefs.h. */
7ee38065
MS
10931
10932#define _SYSCALL32
252b5132 10933#include <sys/procfs.h>
5464f5a1
NN
10934int
10935main ()
10936{
252b5132 10937psinfo_t avar
5464f5a1
NN
10938 ;
10939 return 0;
10940}
10941_ACEOF
10942rm -f conftest.$ac_objext
10943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944 (eval $ac_compile) 2>conftest.er1
10945 ac_status=$?
10946 grep -v '^ *+' conftest.er1 >conftest.err
10947 rm -f conftest.er1
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
8fb84ecc
AC
10951 { ac_try='test -z "$ac_c_werror_flag"
10952 || test ! -s conftest.err'
5464f5a1
NN
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
252b5132
RH
10964 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10965else
5464f5a1
NN
10966 echo "$as_me: failed program was:" >&5
10967sed 's/^/| /' conftest.$ac_ext >&5
10968
10969bfd_cv_have_sys_procfs_type_psinfo_t=no
10970
252b5132 10971fi
5464f5a1 10972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10973fi
10974
10975 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
10976
10977cat >>confdefs.h <<\_ACEOF
252b5132 10978#define HAVE_PSINFO_T 1
5464f5a1 10979_ACEOF
252b5132
RH
10980
10981 fi
5464f5a1
NN
10982 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10983echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 10984
5464f5a1
NN
10985 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10986echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10987 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10989else
5464f5a1
NN
10990 cat >conftest.$ac_ext <<_ACEOF
10991/* confdefs.h. */
10992_ACEOF
10993cat confdefs.h >>conftest.$ac_ext
10994cat >>conftest.$ac_ext <<_ACEOF
10995/* end confdefs.h. */
7ee38065
MS
10996
10997#define _SYSCALL32
10998#include <sys/procfs.h>
5464f5a1
NN
10999int
11000main ()
11001{
7ee38065 11002psinfo32_t avar
5464f5a1
NN
11003 ;
11004 return 0;
11005}
11006_ACEOF
11007rm -f conftest.$ac_objext
11008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11009 (eval $ac_compile) 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
8fb84ecc
AC
11016 { ac_try='test -z "$ac_c_werror_flag"
11017 || test ! -s conftest.err'
5464f5a1
NN
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest.$ac_objext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
7ee38065
MS
11029 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
11030else
5464f5a1
NN
11031 echo "$as_me: failed program was:" >&5
11032sed 's/^/| /' conftest.$ac_ext >&5
11033
11034bfd_cv_have_sys_procfs_type_psinfo32_t=no
11035
7ee38065 11036fi
5464f5a1 11037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11038fi
11039
11040 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
11041
11042cat >>confdefs.h <<\_ACEOF
7ee38065 11043#define HAVE_PSINFO32_T 1
5464f5a1 11044_ACEOF
7ee38065
MS
11045
11046 fi
5464f5a1
NN
11047 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
11048echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 11049
5464f5a1
NN
11050 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
11051echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
11052 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11054else
5464f5a1
NN
11055 cat >conftest.$ac_ext <<_ACEOF
11056/* confdefs.h. */
11057_ACEOF
11058cat confdefs.h >>conftest.$ac_ext
11059cat >>conftest.$ac_ext <<_ACEOF
11060/* end confdefs.h. */
7ee38065
MS
11061
11062#define _SYSCALL32
252b5132 11063#include <sys/procfs.h>
5464f5a1
NN
11064int
11065main ()
11066{
252b5132 11067lwpstatus_t avar
5464f5a1
NN
11068 ;
11069 return 0;
11070}
11071_ACEOF
11072rm -f conftest.$ac_objext
11073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11074 (eval $ac_compile) 2>conftest.er1
11075 ac_status=$?
11076 grep -v '^ *+' conftest.er1 >conftest.err
11077 rm -f conftest.er1
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } &&
8fb84ecc
AC
11081 { ac_try='test -z "$ac_c_werror_flag"
11082 || test ! -s conftest.err'
5464f5a1
NN
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; } &&
11088 { ac_try='test -s conftest.$ac_objext'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
252b5132
RH
11094 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
11095else
5464f5a1
NN
11096 echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
11099bfd_cv_have_sys_procfs_type_lwpstatus_t=no
11100
252b5132 11101fi
5464f5a1 11102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11103fi
11104
11105 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
11106
11107cat >>confdefs.h <<\_ACEOF
252b5132 11108#define HAVE_LWPSTATUS_T 1
5464f5a1 11109_ACEOF
252b5132
RH
11110
11111 fi
5464f5a1
NN
11112 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
11113echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 11114
5464f5a1
NN
11115 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
11116echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
11117 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 11119else
5464f5a1
NN
11120 cat >conftest.$ac_ext <<_ACEOF
11121/* confdefs.h. */
11122_ACEOF
11123cat confdefs.h >>conftest.$ac_ext
11124cat >>conftest.$ac_ext <<_ACEOF
11125/* end confdefs.h. */
f572a39d
AM
11126
11127#define _SYSCALL32
11128#include <sys/procfs.h>
5464f5a1
NN
11129int
11130main ()
11131{
f572a39d 11132lwpxstatus_t avar
5464f5a1
NN
11133 ;
11134 return 0;
11135}
11136_ACEOF
11137rm -f conftest.$ac_objext
11138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11139 (eval $ac_compile) 2>conftest.er1
11140 ac_status=$?
11141 grep -v '^ *+' conftest.er1 >conftest.err
11142 rm -f conftest.er1
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } &&
8fb84ecc
AC
11146 { ac_try='test -z "$ac_c_werror_flag"
11147 || test ! -s conftest.err'
5464f5a1
NN
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try='test -s conftest.$ac_objext'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
f572a39d
AM
11159 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
11160else
5464f5a1
NN
11161 echo "$as_me: failed program was:" >&5
11162sed 's/^/| /' conftest.$ac_ext >&5
11163
11164bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
11165
f572a39d 11166fi
5464f5a1 11167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
11168fi
11169
11170 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
11171
11172cat >>confdefs.h <<\_ACEOF
f572a39d 11173#define HAVE_LWPXSTATUS_T 1
5464f5a1 11174_ACEOF
f572a39d
AM
11175
11176 fi
5464f5a1
NN
11177 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
11178echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 11179
5464f5a1
NN
11180 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
11181echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
11182 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11184else
5464f5a1
NN
11185 cat >conftest.$ac_ext <<_ACEOF
11186/* confdefs.h. */
11187_ACEOF
11188cat confdefs.h >>conftest.$ac_ext
11189cat >>conftest.$ac_ext <<_ACEOF
11190/* end confdefs.h. */
7ee38065
MS
11191
11192#define _SYSCALL32
252b5132 11193#include <sys/procfs.h>
5464f5a1
NN
11194int
11195main ()
11196{
252b5132 11197lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
11198 ;
11199 return 0;
11200}
11201_ACEOF
11202rm -f conftest.$ac_objext
11203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11204 (eval $ac_compile) 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
8fb84ecc
AC
11211 { ac_try='test -z "$ac_c_werror_flag"
11212 || test ! -s conftest.err'
5464f5a1
NN
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; } &&
11218 { ac_try='test -s conftest.$ac_objext'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
252b5132
RH
11224 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
11225else
5464f5a1
NN
11226 echo "$as_me: failed program was:" >&5
11227sed 's/^/| /' conftest.$ac_ext >&5
11228
11229bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
11230
252b5132 11231fi
5464f5a1 11232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11233fi
11234
11235 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
11236
11237cat >>confdefs.h <<\_ACEOF
252b5132 11238#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 11239_ACEOF
252b5132
RH
11240
11241 fi
5464f5a1
NN
11242 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
11243echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 11244
5464f5a1
NN
11245 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
11246echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
11247 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11249else
5464f5a1
NN
11250 cat >conftest.$ac_ext <<_ACEOF
11251/* confdefs.h. */
11252_ACEOF
11253cat confdefs.h >>conftest.$ac_ext
11254cat >>conftest.$ac_ext <<_ACEOF
11255/* end confdefs.h. */
7ee38065
MS
11256
11257#define _SYSCALL32
252b5132 11258#include <sys/procfs.h>
5464f5a1
NN
11259int
11260main ()
11261{
252b5132 11262lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
11263 ;
11264 return 0;
11265}
11266_ACEOF
11267rm -f conftest.$ac_objext
11268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11269 (eval $ac_compile) 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } &&
8fb84ecc
AC
11276 { ac_try='test -z "$ac_c_werror_flag"
11277 || test ! -s conftest.err'
5464f5a1
NN
11278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279 (eval $ac_try) 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; } &&
11283 { ac_try='test -s conftest.$ac_objext'
11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
252b5132
RH
11289 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
11290else
5464f5a1
NN
11291 echo "$as_me: failed program was:" >&5
11292sed 's/^/| /' conftest.$ac_ext >&5
11293
11294bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
11295
252b5132 11296fi
5464f5a1 11297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11298fi
11299
11300 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
11301
11302cat >>confdefs.h <<\_ACEOF
252b5132 11303#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 11304_ACEOF
252b5132
RH
11305
11306 fi
5464f5a1
NN
11307 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
11308echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 11309
5464f5a1
NN
11310 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
11311echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
11312 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 11314else
5464f5a1
NN
11315 cat >conftest.$ac_ext <<_ACEOF
11316/* confdefs.h. */
11317_ACEOF
11318cat confdefs.h >>conftest.$ac_ext
11319cat >>conftest.$ac_ext <<_ACEOF
11320/* end confdefs.h. */
7ee38065
MS
11321
11322#define _SYSCALL32
e3c976c4 11323#include <sys/procfs.h>
5464f5a1
NN
11324int
11325main ()
11326{
e3c976c4 11327win32_pstatus_t avar
5464f5a1
NN
11328 ;
11329 return 0;
11330}
11331_ACEOF
11332rm -f conftest.$ac_objext
11333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11334 (eval $ac_compile) 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
8fb84ecc
AC
11341 { ac_try='test -z "$ac_c_werror_flag"
11342 || test ! -s conftest.err'
5464f5a1
NN
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; } &&
11348 { ac_try='test -s conftest.$ac_objext'
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11351 ac_status=$?
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
e3c976c4
ILT
11354 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
11355else
5464f5a1
NN
11356 echo "$as_me: failed program was:" >&5
11357sed 's/^/| /' conftest.$ac_ext >&5
11358
11359bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
11360
e3c976c4 11361fi
5464f5a1 11362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11363fi
11364
e3c976c4 11365 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
11366
11367cat >>confdefs.h <<\_ACEOF
e3c976c4 11368#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 11369_ACEOF
16e9c715
NC
11370
11371 fi
5464f5a1
NN
11372 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
11373echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
11374
11375 fi
11376fi
16e9c715 11377
b3baf5d0 11378
6be7c12c 11379if test -n "$TRAD_HEADER"; then
5464f5a1
NN
11380
11381cat >>confdefs.h <<_ACEOF
252b5132 11382#define TRAD_HEADER $TRAD_HEADER
5464f5a1 11383_ACEOF
252b5132 11384
3f9b03b5 11385fi
252b5132
RH
11386
11387# Horrible hacks to build DLLs on Windows.
11388WIN32LDFLAGS=
11389WIN32LIBADD=
11390case "${host}" in
11391*-*-cygwin*)
11392 if test "$enable_shared" = "yes"; then
11393 WIN32LDFLAGS="-no-undefined"
11394 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11395 fi
11396 ;;
78be1d6e 11397*-*-linux*)
39691762
L
11398 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11399 # libiberty.a.
ca51bfff
L
11400 case "${host}" in
11401 mips*-*-linux*)
11402 # Linux/MIPS uses PIC by default.
11403 if test "$enable_shared" = "yes"; then
11404 WIN32LIBADD="-L../libiberty -liberty"
11405 fi
11406 ;;
11407 *)
66e25bab 11408 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 11409 if test -n "$x"; then
ca51bfff
L
11410 WIN32LIBADD="-L../libiberty/pic -liberty"
11411 fi
11412 ;;
11413 esac
39691762 11414 ;;
252b5132
RH
11415esac
11416
6be7c12c
AO
11417
11418
252b5132
RH
11419# target stuff:
11420
11421# Canonicalize the secondary target names.
11422if test -n "$enable_targets" ; then
11423 for targ in `echo $enable_targets | sed 's/,/ /g'`
11424 do
6d83c84b 11425 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
11426 if test -n "$result" ; then
11427 canon_targets="$canon_targets $result"
11428 else
11429 # Allow targets that config.sub doesn't recognize, like "all".
11430 canon_targets="$canon_targets $targ"
11431 fi
11432 done
11433fi
11434
11435all_targets=false
11436defvec=
11437selvecs=
08f74004 11438assocvecs=
252b5132
RH
11439selarchs=
11440TDEFINES=
11441for targ in $target $canon_targets
11442do
11443 if test "x$targ" = "xall"; then
11444 all_targets=true
08f74004 11445 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
11446 else
11447 . $srcdir/config.bfd
11448 if test "x$targ" = "x$target"; then
11449 defvec=$targ_defvec
11450 fi
11451 selvecs="$selvecs $targ_defvec $targ_selvecs"
11452 selarchs="$selarchs $targ_archs"
11453 TDEFINES="$TDEFINES $targ_cflags"
11454 fi
11455done
11456
6be7c12c 11457
252b5132
RH
11458# This processing still needs to be done if we're to decide properly whether
11459# 64-bit support needs to be compiled in. Currently, it will be included if
11460# the default or any other explicitly requested target requires it; it
11461# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 11462# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
11463# used.
11464
11465# uniq the default and selected vectors in all the configured targets.
11466f=""
11467for i in $selvecs ; do
11468 case " $f " in
11469 *" $i "*) ;;
11470 *) f="$f $i" ;;
11471 esac
11472done
11473selvecs="$f"
11474
6be7c12c 11475
08f74004
AM
11476# uniq the associated vectors in all the configured targets.
11477f=""
11478for i in $assocvecs ; do
11479 case " $f " in
11480 *" $i "*) ;;
11481 *) f="$f $i" ;;
11482 esac
11483done
11484assocvecs="$f"
11485
11486
252b5132
RH
11487# uniq the architectures in all the configured targets.
11488f=""
11489for i in $selarchs ; do
11490 case " $f " in
11491 *" $i "*) ;;
11492 *) f="$f $i" ;;
11493 esac
11494done
11495selarchs="$f"
11496
11497# Target backend .o files.
11498tb=
11499
65765700 11500elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
11501
11502for vec in $selvecs
11503do
69263e90 11504 target_size=32
252b5132
RH
11505 case "$vec" in
11506 # This list is alphabetized to make it easy to compare
dc810e39
AM
11507 # with the two vector lists in targets.c. For the same reason,
11508 # use one entry per line, even though this leads to long lines.
252b5132
RH
11509 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
11510 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 11511 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
11512 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
11513 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11514 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 11515 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
11516 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11517 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11518 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11519 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11520 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11521 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11522 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
11523 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11524 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11525 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11526 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
11527 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
11528 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 11529 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 11530 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 11531 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 11532 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
dc810e39 11533 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 11534 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
7f266840 11535 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
e5a52504 11536 bfd_elf32_bigarm_symbian_vec)
7f266840 11537 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
4e7fd91e
PB
11538 bfd_elf32_bigarm_vxworks_vec)
11539 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 11540 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 11541 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 11542 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 11543 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
11544 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11545 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 11546 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 11547 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 11548 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 11549 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 11550 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 11551 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 11552 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 11553 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 11554 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
b6821651
AM
11555 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11556 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
9d751335 11557 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 11558 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 11559 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 11560 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 11561 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 11562 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 11563 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 11564 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 11565 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 11566 bfd_elf32_littlearm_symbian_vec)
7f266840 11567 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
4e7fd91e
PB
11568 bfd_elf32_littlearm_vxworks_vec)
11569 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
7f266840 11570 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 11571 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
252b5132 11572 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
11573 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11574 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11575 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
11576 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11577 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
11578 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
11579 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
11580 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11581 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11582 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
11583 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
2469cfa2 11584 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
8a397dad
TS
11585 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11586 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11587 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11588 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 11589 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 11590 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
11591 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11592 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
b6821651
AM
11593 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11594 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
a85d7ed0 11595 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
eb1e0e80
NC
11596 # FIXME: We include cofflink.lo not because it's needed for
11597 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
11598 # which needs it but does not list it. Should be fixed in right place.
9cba27b2
JT
11599 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11600 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
2bc3c89a
AM
11601 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11602 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11603 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11604 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
b6821651
AM
11605 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11606 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11607 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
85fbca6a 11608 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
b6821651
AM
11609 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11610 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11611 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
252b5132 11612 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
c6e90b02
TS
11613 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11614 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 11615 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 11616 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 11617 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 11618 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
e0001a05
NC
11619 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11620 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 11621 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
11622 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11623 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 11624 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
11625 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11626 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 11627 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 11628 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
11629 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11630 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 11631 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 11632 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
11633 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11634 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
11635 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
11636 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11637 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
11638 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11639 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11640 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11641 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
dc810e39 11642 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02
TS
11643 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11644 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39 11645 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 11646 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
11647 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11648 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11649 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11650 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 11651 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 11652 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 11653 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 11654 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
11655 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11656 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
11657 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11658 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11659 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11660 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11661 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11662 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11663 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11664 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11665 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11666 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
11667 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11668 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
11669 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11670 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11671 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11672 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 11673 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
11674 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11675 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
11676 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11677 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
11678 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11679 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11680 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11681 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
11682 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11683 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
11684 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11685 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11686 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11687 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
11688 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
11689 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
11690 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11691 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 11692 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 11693 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 11694 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
11695 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11696 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11697 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
11698 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11699 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11700 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11701 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
11702 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11703 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 11704 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 11705 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 11706 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 11707 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 11708 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 11709 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 11710 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 11711 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
11712 pef_vec) tb="$tb pef.lo" ;;
11713 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 11714 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 11715 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11716 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 11717 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 11718 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 11719 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11720 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11721 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 11722 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11723 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
11724 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11725 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 11726 som_vec) tb="$tb som.lo" ;;
dc810e39 11727 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
11728 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11729 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11730 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11731 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11732 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 11733 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 11734 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
11735 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11736 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
11737 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11738 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11739 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11740 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11741 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11742 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 11743 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11744 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11745 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11746 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11747 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11748 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 11749 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 11750 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 11751 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 11752 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 11753 versados_vec) tb="$tb versados.lo" ;;
dc810e39 11754 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
11755 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11756 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11757 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11758 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
11759
341ca622
AM
11760 # These appear out of order in targets.c
11761 srec_vec) tb="$tb srec.lo" ;;
11762 symbolsrec_vec) tb="$tb srec.lo" ;;
11763 tekhex_vec) tb="$tb tekhex.lo" ;;
11764 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11765 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11766
252b5132 11767 "") ;;
5464f5a1
NN
11768 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11769echo "$as_me: error: *** unknown target vector $vec" >&2;}
11770 { (exit 1); exit 1; }; } ;;
252b5132 11771 esac
69263e90
AM
11772
11773 if test ${target_size} = 64; then
11774 target64=true
11775 fi
11776 if test x"${vec}" = x"${defvec}"; then
11777 bfd_default_target_size=${target_size}
11778 fi
252b5132
RH
11779done
11780
11781# Target architecture .o files.
11782# A couple of CPUs use shorter file names to avoid problems on DOS
11783# filesystems.
11784ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11785
11786# Weed out duplicate .o files.
11787f=""
11788for i in $tb ; do
11789 case " $f " in
11790 *" $i "*) ;;
11791 *) f="$f $i" ;;
11792 esac
11793done
11794tb="$f"
11795
11796f=""
11797for i in $ta ; do
11798 case " $f " in
11799 *" $i "*) ;;
11800 *) f="$f $i" ;;
11801 esac
11802done
11803ta="$f"
11804
11805bfd_backends="$tb"
11806bfd_machines="$ta"
11807
11808if test x${all_targets} = xtrue ; then
11809 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11810 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11811 selvecs=
11812 havevecs=
11813 selarchs=
08f74004
AM
11814 test -n "$assocvecs" &&
11815 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
11816else # all_targets is true
11817 # Only set these if they will be nonempty, for the clever echo.
11818 havevecs=
08f74004 11819 assocvecs=
252b5132
RH
11820 test -n "$selvecs" &&
11821 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11822 test -n "$selvecs" &&
11823 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11824 test -n "$selarchs" &&
11825 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11826fi # all_targets is true
11827
11828case ${host64}-${target64}-${want64} in
11829 *true*)
11830 wordsize=64
2858ef35 11831 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 11832 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 11833 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
11834 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11835echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11837echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 11838 fi
966abd70
HPN
11839 if test -n "$GCC" ; then
11840 bad_64bit_gcc=no;
5464f5a1
NN
11841 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11842echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 11843 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
11844 cat >conftest.$ac_ext <<_ACEOF
11845/* confdefs.h. */
11846_ACEOF
11847cat confdefs.h >>conftest.$ac_ext
11848cat >>conftest.$ac_ext <<_ACEOF
11849/* end confdefs.h. */
966abd70 11850:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 11851_ACEOF
966abd70 11852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 11853 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 11854 bad_64bit_gcc=yes;
5464f5a1
NN
11855 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11856echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 11857else
5464f5a1
NN
11858 echo "$as_me:$LINENO: result: no" >&5
11859echo "${ECHO_T}no" >&6
966abd70
HPN
11860fi
11861rm -f conftest*
11862
11863 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
11864 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11865echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11866 { (exit 1); exit 1; }; }
966abd70
HPN
11867 fi
11868 fi
252b5132
RH
11869 ;;
11870 false-false-false)
11871 wordsize=32
2858ef35 11872 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
11873 all_backends='$(BFD32_BACKENDS)'
11874 ;;
11875esac
11876
6be7c12c
AO
11877
11878
11879
11880
11881
69263e90 11882
2858ef35 11883
1012372a
AC
11884# Determine the host dependant file_ptr a.k.a. off_t type. In order
11885# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11886# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11887# Hopefully a reasonable assumption since fseeko et.al. should be
11888# upward compatible.
5464f5a1
NN
11889
11890
11891
11892
1012372a
AC
11893for ac_func in ftello ftello64 fseeko fseeko64
11894do
5464f5a1
NN
11895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896echo "$as_me:$LINENO: checking for $ac_func" >&5
11897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11898if eval "test \"\${$as_ac_var+set}\" = set"; then
11899 echo $ECHO_N "(cached) $ECHO_C" >&6
11900else
11901 cat >conftest.$ac_ext <<_ACEOF
11902/* confdefs.h. */
11903_ACEOF
11904cat confdefs.h >>conftest.$ac_ext
11905cat >>conftest.$ac_ext <<_ACEOF
11906/* end confdefs.h. */
11907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11909#define $ac_func innocuous_$ac_func
11910
1012372a 11911/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11912 which can conflict with char $ac_func (); below.
11913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914 <limits.h> exists even on freestanding compilers. */
11915
11916#ifdef __STDC__
11917# include <limits.h>
11918#else
11919# include <assert.h>
11920#endif
1012372a 11921
5464f5a1 11922#undef $ac_func
1012372a 11923
5464f5a1
NN
11924/* Override any gcc2 internal prototype to avoid an error. */
11925#ifdef __cplusplus
11926extern "C"
11927{
11928#endif
11929/* We use char because int might match the return type of a gcc2
11930 builtin and then its argument prototype would still apply. */
11931char $ac_func ();
1012372a
AC
11932/* The GNU C library defines this for functions which it implements
11933 to always fail with ENOSYS. Some functions are actually named
11934 something starting with __ and the normal name is an alias. */
11935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11936choke me
11937#else
5464f5a1
NN
11938char (*f) () = $ac_func;
11939#endif
11940#ifdef __cplusplus
11941}
1012372a
AC
11942#endif
11943
5464f5a1
NN
11944int
11945main ()
11946{
11947return f != $ac_func;
11948 ;
11949 return 0;
11950}
11951_ACEOF
11952rm -f conftest.$ac_objext conftest$ac_exeext
11953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11954 (eval $ac_link) 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } &&
8fb84ecc
AC
11961 { ac_try='test -z "$ac_c_werror_flag"
11962 || test ! -s conftest.err'
5464f5a1
NN
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest$ac_exeext'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974 eval "$as_ac_var=yes"
11975else
11976 echo "$as_me: failed program was:" >&5
11977sed 's/^/| /' conftest.$ac_ext >&5
11978
11979eval "$as_ac_var=no"
11980fi
11981rm -f conftest.err conftest.$ac_objext \
11982 conftest$ac_exeext conftest.$ac_ext
11983fi
11984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11986if test `eval echo '${'$as_ac_var'}'` = yes; then
11987 cat >>confdefs.h <<_ACEOF
11988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11989_ACEOF
1012372a 11990
1012372a
AC
11991fi
11992done
11993
1012372a 11994if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
5464f5a1
NN
11995 echo "$as_me:$LINENO: checking size of off_t" >&5
11996echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11997if test "${ac_cv_sizeof_off_t+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
1012372a
AC
11999else
12000 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
12001 cat >conftest.$ac_ext <<_ACEOF
12002/* confdefs.h. */
12003_ACEOF
12004cat confdefs.h >>conftest.$ac_ext
12005cat >>conftest.$ac_ext <<_ACEOF
12006/* end confdefs.h. */
1012372a
AC
12007#include "confdefs.h"
12008#include <sys/types.h>
12009
12010
5464f5a1
NN
12011int
12012main ()
12013{
1012372a 12014switch (0) case 0: case (sizeof (off_t) == $ac_size):;
5464f5a1
NN
12015 ;
12016 return 0;
12017}
12018_ACEOF
12019rm -f conftest.$ac_objext
12020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12021 (eval $ac_compile) 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } &&
8fb84ecc
AC
12028 { ac_try='test -z "$ac_c_werror_flag"
12029 || test ! -s conftest.err'
5464f5a1
NN
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest.$ac_objext'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
1012372a
AC
12041 ac_cv_sizeof_off_t=$ac_size
12042else
5464f5a1
NN
12043 echo "$as_me: failed program was:" >&5
12044sed 's/^/| /' conftest.$ac_ext >&5
12045
1012372a 12046fi
5464f5a1 12047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a
AC
12048 if test x$ac_cv_sizeof_off_t != x ; then break; fi
12049done
12050
12051fi
12052
12053if test x$ac_cv_sizeof_off_t = x ; then
5464f5a1
NN
12054 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
12055echo "$as_me: error: cannot determine a size for off_t" >&2;}
12056 { (exit 1); exit 1; }; }
1012372a 12057fi
5464f5a1
NN
12058echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12059echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
12060
12061cat >>confdefs.h <<_ACEOF
1012372a 12062#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 12063_ACEOF
1012372a
AC
12064
12065
1012372a 12066fi
5464f5a1
NN
12067echo "$as_me:$LINENO: checking file_ptr type" >&5
12068echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
12069bfd_file_ptr="long"
12070bfd_ufile_ptr="unsigned long"
12071if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
12072 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
12073 bfd_file_ptr=BFD_HOST_64_BIT
12074 bfd_ufile_ptr=BFD_HOST_U_64_BIT
12075fi
5464f5a1
NN
12076echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
12077echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
12078
12079
12080
12081
252b5132
RH
12082tdefaults=""
12083test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
12084test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 12085test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
12086test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
12087test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
12088
6be7c12c 12089
5464f5a1
NN
12090
12091
12092for ac_header in stdlib.h unistd.h
252b5132 12093do
5464f5a1
NN
12094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095if eval "test \"\${$as_ac_Header+set}\" = set"; then
12096 echo "$as_me:$LINENO: checking for $ac_header" >&5
12097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12098if eval "test \"\${$as_ac_Header+set}\" = set"; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100fi
12101echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12102echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12103else
12104 # Is the header compilable?
12105echo "$as_me:$LINENO: checking $ac_header usability" >&5
12106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12107cat >conftest.$ac_ext <<_ACEOF
12108/* confdefs.h. */
12109_ACEOF
12110cat confdefs.h >>conftest.$ac_ext
12111cat >>conftest.$ac_ext <<_ACEOF
12112/* end confdefs.h. */
12113$ac_includes_default
12114#include <$ac_header>
12115_ACEOF
12116rm -f conftest.$ac_objext
12117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12118 (eval $ac_compile) 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } &&
8fb84ecc
AC
12125 { ac_try='test -z "$ac_c_werror_flag"
12126 || test ! -s conftest.err'
5464f5a1
NN
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest.$ac_objext'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 ac_header_compiler=yes
12139else
12140 echo "$as_me: failed program was:" >&5
12141sed 's/^/| /' conftest.$ac_ext >&5
12142
12143ac_header_compiler=no
12144fi
12145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12147echo "${ECHO_T}$ac_header_compiler" >&6
12148
12149# Is the header present?
12150echo "$as_me:$LINENO: checking $ac_header presence" >&5
12151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12152cat >conftest.$ac_ext <<_ACEOF
12153/* confdefs.h. */
12154_ACEOF
12155cat confdefs.h >>conftest.$ac_ext
12156cat >>conftest.$ac_ext <<_ACEOF
12157/* end confdefs.h. */
12158#include <$ac_header>
12159_ACEOF
12160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12162 ac_status=$?
12163 grep -v '^ *+' conftest.er1 >conftest.err
12164 rm -f conftest.er1
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } >/dev/null; then
12168 if test -s conftest.err; then
12169 ac_cpp_err=$ac_c_preproc_warn_flag
12170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12171 else
12172 ac_cpp_err=
12173 fi
252b5132 12174else
5464f5a1 12175 ac_cpp_err=yes
252b5132 12176fi
5464f5a1
NN
12177if test -z "$ac_cpp_err"; then
12178 ac_header_preproc=yes
12179else
12180 echo "$as_me: failed program was:" >&5
12181sed 's/^/| /' conftest.$ac_ext >&5
12182
12183 ac_header_preproc=no
252b5132 12184fi
5464f5a1
NN
12185rm -f conftest.err conftest.$ac_ext
12186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12187echo "${ECHO_T}$ac_header_preproc" >&6
12188
12189# So? What about this header?
12190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12191 yes:no: )
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12195echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12196 ac_header_preproc=yes
12197 ;;
12198 no:yes:* )
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12200echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12202echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12204echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12206echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12210echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12211 (
12212 cat <<\_ASBOX
12213## ------------------------------------------ ##
12214## Report this to the AC_PACKAGE_NAME lists. ##
12215## ------------------------------------------ ##
12216_ASBOX
12217 ) |
12218 sed "s/^/$as_me: WARNING: /" >&2
12219 ;;
12220esac
12221echo "$as_me:$LINENO: checking for $ac_header" >&5
12222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12223if eval "test \"\${$as_ac_Header+set}\" = set"; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 12225else
5464f5a1
NN
12226 eval "$as_ac_Header=\$ac_header_preproc"
12227fi
12228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12230
12231fi
12232if test `eval echo '${'$as_ac_Header'}'` = yes; then
12233 cat >>confdefs.h <<_ACEOF
12234#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12235_ACEOF
12236
252b5132 12237fi
5464f5a1 12238
252b5132
RH
12239done
12240
5464f5a1 12241
252b5132
RH
12242for ac_func in getpagesize
12243do
5464f5a1
NN
12244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12245echo "$as_me:$LINENO: checking for $ac_func" >&5
12246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12247if eval "test \"\${$as_ac_var+set}\" = set"; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12249else
12250 cat >conftest.$ac_ext <<_ACEOF
12251/* confdefs.h. */
12252_ACEOF
12253cat confdefs.h >>conftest.$ac_ext
12254cat >>conftest.$ac_ext <<_ACEOF
12255/* end confdefs.h. */
12256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12258#define $ac_func innocuous_$ac_func
12259
252b5132 12260/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
12261 which can conflict with char $ac_func (); below.
12262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12263 <limits.h> exists even on freestanding compilers. */
12264
12265#ifdef __STDC__
12266# include <limits.h>
12267#else
12268# include <assert.h>
12269#endif
6be7c12c 12270
5464f5a1 12271#undef $ac_func
252b5132 12272
5464f5a1
NN
12273/* Override any gcc2 internal prototype to avoid an error. */
12274#ifdef __cplusplus
12275extern "C"
12276{
12277#endif
12278/* We use char because int might match the return type of a gcc2
12279 builtin and then its argument prototype would still apply. */
12280char $ac_func ();
252b5132
RH
12281/* The GNU C library defines this for functions which it implements
12282 to always fail with ENOSYS. Some functions are actually named
12283 something starting with __ and the normal name is an alias. */
12284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12285choke me
12286#else
5464f5a1
NN
12287char (*f) () = $ac_func;
12288#endif
12289#ifdef __cplusplus
12290}
252b5132
RH
12291#endif
12292
5464f5a1
NN
12293int
12294main ()
12295{
12296return f != $ac_func;
12297 ;
12298 return 0;
12299}
12300_ACEOF
12301rm -f conftest.$ac_objext conftest$ac_exeext
12302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12303 (eval $ac_link) 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
8fb84ecc
AC
12310 { ac_try='test -z "$ac_c_werror_flag"
12311 || test ! -s conftest.err'
5464f5a1
NN
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest$ac_exeext'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 eval "$as_ac_var=yes"
12324else
12325 echo "$as_me: failed program was:" >&5
12326sed 's/^/| /' conftest.$ac_ext >&5
12327
12328eval "$as_ac_var=no"
12329fi
12330rm -f conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332fi
12333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12334echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12335if test `eval echo '${'$as_ac_var'}'` = yes; then
12336 cat >>confdefs.h <<_ACEOF
12337#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12338_ACEOF
252b5132 12339
252b5132
RH
12340fi
12341done
12342
5464f5a1
NN
12343echo "$as_me:$LINENO: checking for working mmap" >&5
12344echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12345if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12347else
12348 if test "$cross_compiling" = yes; then
12349 ac_cv_func_mmap_fixed_mapped=no
12350else
5464f5a1
NN
12351 cat >conftest.$ac_ext <<_ACEOF
12352/* confdefs.h. */
12353_ACEOF
12354cat confdefs.h >>conftest.$ac_ext
12355cat >>conftest.$ac_ext <<_ACEOF
12356/* end confdefs.h. */
12357$ac_includes_default
12358/* malloc might have been renamed as rpl_malloc. */
12359#undef malloc
6be7c12c 12360
252b5132
RH
12361/* Thanks to Mike Haertel and Jim Avera for this test.
12362 Here is a matrix of mmap possibilities:
12363 mmap private not fixed
12364 mmap private fixed at somewhere currently unmapped
12365 mmap private fixed at somewhere already mapped
12366 mmap shared not fixed
12367 mmap shared fixed at somewhere currently unmapped
12368 mmap shared fixed at somewhere already mapped
12369 For private mappings, we should verify that changes cannot be read()
12370 back from the file, nor mmap's back from the file at a different
12371 address. (There have been systems where private was not correctly
12372 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 12373 VM page cache was not coherent with the file system buffer cache
252b5132
RH
12374 like early versions of FreeBSD and possibly contemporary NetBSD.)
12375 For shared mappings, we should conversely verify that changes get
5464f5a1 12376 propagated back to all the places they're supposed to be.
252b5132
RH
12377
12378 Grep wants private fixed already mapped.
12379 The main things grep needs to know about mmap are:
12380 * does it exist and is it safe to write into the mmap'd area
12381 * how to use it (BSD variants) */
5464f5a1 12382
252b5132
RH
12383#include <fcntl.h>
12384#include <sys/mman.h>
12385
5464f5a1
NN
12386#if !STDC_HEADERS && !HAVE_STDLIB_H
12387char *malloc ();
12388#endif
6be7c12c 12389
5464f5a1
NN
12390/* This mess was copied from the GNU getpagesize.h. */
12391#if !HAVE_GETPAGESIZE
252b5132 12392/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 12393# if !HAVE_SYS_PARAM_H
252b5132
RH
12394# define HAVE_SYS_PARAM_H 1
12395# endif
12396
12397# ifdef _SC_PAGESIZE
12398# define getpagesize() sysconf(_SC_PAGESIZE)
12399# else /* no _SC_PAGESIZE */
5464f5a1 12400# if HAVE_SYS_PARAM_H
252b5132
RH
12401# include <sys/param.h>
12402# ifdef EXEC_PAGESIZE
12403# define getpagesize() EXEC_PAGESIZE
12404# else /* no EXEC_PAGESIZE */
12405# ifdef NBPG
12406# define getpagesize() NBPG * CLSIZE
12407# ifndef CLSIZE
12408# define CLSIZE 1
12409# endif /* no CLSIZE */
12410# else /* no NBPG */
12411# ifdef NBPC
12412# define getpagesize() NBPC
12413# else /* no NBPC */
12414# ifdef PAGESIZE
12415# define getpagesize() PAGESIZE
12416# endif /* PAGESIZE */
12417# endif /* no NBPC */
12418# endif /* no NBPG */
12419# endif /* no EXEC_PAGESIZE */
12420# else /* no HAVE_SYS_PARAM_H */
12421# define getpagesize() 8192 /* punt totally */
12422# endif /* no HAVE_SYS_PARAM_H */
12423# endif /* no _SC_PAGESIZE */
12424
5464f5a1
NN
12425#endif /* no HAVE_GETPAGESIZE */
12426
12427int
12428main ()
12429{
12430 char *data, *data2, *data3;
12431 int i, pagesize;
12432 int fd;
12433
12434 pagesize = getpagesize ();
12435
12436 /* First, make a file with some known garbage in it. */
12437 data = (char *) malloc (pagesize);
12438 if (!data)
12439 exit (1);
12440 for (i = 0; i < pagesize; ++i)
12441 *(data + i) = rand ();
12442 umask (0);
12443 fd = creat ("conftest.mmap", 0600);
12444 if (fd < 0)
12445 exit (1);
12446 if (write (fd, data, pagesize) != pagesize)
12447 exit (1);
12448 close (fd);
12449
12450 /* Next, try to mmap the file at a fixed address which already has
12451 something else allocated at it. If we can, also make sure that
12452 we see the same garbage. */
12453 fd = open ("conftest.mmap", O_RDWR);
12454 if (fd < 0)
12455 exit (1);
12456 data2 = (char *) malloc (2 * pagesize);
12457 if (!data2)
12458 exit (1);
12459 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12460 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12461 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12462 exit (1);
12463 for (i = 0; i < pagesize; ++i)
12464 if (*(data + i) != *(data2 + i))
12465 exit (1);
12466
12467 /* Finally, make sure that changes to the mapped area do not
12468 percolate back to the file as seen by read(). (This is a bug on
12469 some variants of i386 svr4.0.) */
12470 for (i = 0; i < pagesize; ++i)
12471 *(data2 + i) = *(data2 + i) + 1;
12472 data3 = (char *) malloc (pagesize);
12473 if (!data3)
12474 exit (1);
12475 if (read (fd, data3, pagesize) != pagesize)
12476 exit (1);
12477 for (i = 0; i < pagesize; ++i)
12478 if (*(data + i) != *(data3 + i))
12479 exit (1);
12480 close (fd);
12481 exit (0);
12482}
12483_ACEOF
12484rm -f conftest$ac_exeext
12485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12486 (eval $ac_link) 2>&5
12487 ac_status=$?
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491 (eval $ac_try) 2>&5
12492 ac_status=$?
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); }; }; then
12495 ac_cv_func_mmap_fixed_mapped=yes
12496else
12497 echo "$as_me: program exited with status $ac_status" >&5
12498echo "$as_me: failed program was:" >&5
12499sed 's/^/| /' conftest.$ac_ext >&5
12500
12501( exit $ac_status )
12502ac_cv_func_mmap_fixed_mapped=no
12503fi
12504rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12505fi
12506fi
12507echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12508echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12509if test $ac_cv_func_mmap_fixed_mapped = yes; then
12510
12511cat >>confdefs.h <<\_ACEOF
12512#define HAVE_MMAP 1
12513_ACEOF
12514
12515fi
12516rm -f conftest.mmap
12517
12518
12519
12520for ac_func in madvise mprotect
12521do
12522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12523echo "$as_me:$LINENO: checking for $ac_func" >&5
12524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12525if eval "test \"\${$as_ac_var+set}\" = set"; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12527else
12528 cat >conftest.$ac_ext <<_ACEOF
12529/* confdefs.h. */
12530_ACEOF
12531cat confdefs.h >>conftest.$ac_ext
12532cat >>conftest.$ac_ext <<_ACEOF
12533/* end confdefs.h. */
12534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12536#define $ac_func innocuous_$ac_func
12537
12538/* System header to define __stub macros and hopefully few prototypes,
12539 which can conflict with char $ac_func (); below.
12540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12541 <limits.h> exists even on freestanding compilers. */
12542
12543#ifdef __STDC__
12544# include <limits.h>
12545#else
12546# include <assert.h>
12547#endif
12548
12549#undef $ac_func
12550
12551/* Override any gcc2 internal prototype to avoid an error. */
12552#ifdef __cplusplus
12553extern "C"
12554{
12555#endif
12556/* We use char because int might match the return type of a gcc2
12557 builtin and then its argument prototype would still apply. */
12558char $ac_func ();
12559/* The GNU C library defines this for functions which it implements
12560 to always fail with ENOSYS. Some functions are actually named
12561 something starting with __ and the normal name is an alias. */
12562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12563choke me
12564#else
12565char (*f) () = $ac_func;
12566#endif
12567#ifdef __cplusplus
12568}
12569#endif
12570
12571int
12572main ()
12573{
12574return f != $ac_func;
12575 ;
12576 return 0;
12577}
12578_ACEOF
12579rm -f conftest.$ac_objext conftest$ac_exeext
12580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12581 (eval $ac_link) 2>conftest.er1
12582 ac_status=$?
12583 grep -v '^ *+' conftest.er1 >conftest.err
12584 rm -f conftest.er1
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
8fb84ecc
AC
12588 { ac_try='test -z "$ac_c_werror_flag"
12589 || test ! -s conftest.err'
5464f5a1
NN
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12592 ac_status=$?
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; } &&
12595 { ac_try='test -s conftest$ac_exeext'
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
12601 eval "$as_ac_var=yes"
12602else
12603 echo "$as_me: failed program was:" >&5
12604sed 's/^/| /' conftest.$ac_ext >&5
12605
12606eval "$as_ac_var=no"
12607fi
12608rm -f conftest.err conftest.$ac_objext \
12609 conftest$ac_exeext conftest.$ac_ext
12610fi
12611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12612echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12613if test `eval echo '${'$as_ac_var'}'` = yes; then
12614 cat >>confdefs.h <<_ACEOF
12615#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12616_ACEOF
12617
12618fi
12619done
12620
12621case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12622 true+yes )
12623cat >>confdefs.h <<\_ACEOF
12624#define USE_MMAP 1
12625_ACEOF
12626 ;;
12627esac
12628
12629rm -f doc/config.status
12630 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12631
12632 ac_config_commands="$ac_config_commands default"
12633
12634cat >confcache <<\_ACEOF
12635# This file is a shell script that caches the results of configure
12636# tests run on this system so they can be shared between configure
12637# scripts and configure runs, see configure's option --config-cache.
12638# It is not useful on other systems. If it contains results you don't
12639# want to keep, you may remove or edit it.
12640#
12641# config.status only pays attention to the cache file if you give it
12642# the --recheck option to rerun configure.
12643#
12644# `ac_cv_env_foo' variables (set or unset) will be overridden when
12645# loading this file, other *unset* `ac_cv_foo' will be assigned the
12646# following values.
12647
12648_ACEOF
12649
12650# The following way of writing the cache mishandles newlines in values,
12651# but we know of no workaround that is simple, portable, and efficient.
12652# So, don't put newlines in cache variables' values.
12653# Ultrix sh set writes to stderr and can't be redirected directly,
12654# and sets the high bit in the cache file unless we assign to the vars.
12655{
12656 (set) 2>&1 |
12657 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12658 *ac_space=\ *)
12659 # `set' does not quote correctly, so add quotes (double-quote
12660 # substitution turns \\\\ into \\, and sed turns \\ into \).
12661 sed -n \
12662 "s/'/'\\\\''/g;
12663 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12664 ;;
12665 *)
12666 # `set' quotes correctly as required by POSIX, so do not add quotes.
12667 sed -n \
12668 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12669 ;;
12670 esac;
12671} |
12672 sed '
12673 t clear
12674 : clear
12675 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12676 t end
12677 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12678 : end' >>confcache
12679if diff $cache_file confcache >/dev/null 2>&1; then :; else
12680 if test -w $cache_file; then
12681 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12682 cat confcache >$cache_file
12683 else
12684 echo "not updating unwritable cache $cache_file"
12685 fi
12686fi
12687rm -f confcache
12688
12689test "x$prefix" = xNONE && prefix=$ac_default_prefix
12690# Let make expand exec_prefix.
12691test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12692
12693# VPATH may cause trouble with some makes, so we remove $(srcdir),
12694# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12695# trailing colons and then remove the whole line if VPATH becomes empty
12696# (actually we leave an empty line to preserve line numbers).
12697if test "x$srcdir" = x.; then
12698 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12699s/:*\$(srcdir):*/:/;
12700s/:*\${srcdir}:*/:/;
12701s/:*@srcdir@:*/:/;
12702s/^\([^=]*=[ ]*\):*/\1/;
12703s/:*$//;
12704s/^[^=]*=[ ]*$//;
12705}'
12706fi
12707
12708DEFS=-DHAVE_CONFIG_H
12709
12710ac_libobjs=
12711ac_ltlibobjs=
12712for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12713 # 1. Remove the extension, and $U if already installed.
12714 ac_i=`echo "$ac_i" |
12715 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12716 # 2. Add them.
12717 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12718 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12719done
12720LIBOBJS=$ac_libobjs
12721
12722LTLIBOBJS=$ac_ltlibobjs
12723
12724
f5385ebf
AM
12725if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12726 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12727Usually this means the macro was only invoked conditionally." >&5
12728echo "$as_me: error: conditional \"AMDEP\" was never defined.
12729Usually this means the macro was only invoked conditionally." >&2;}
12730 { (exit 1); exit 1; }; }
12731fi
12732if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12733 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12734Usually this means the macro was only invoked conditionally." >&5
12735echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12736Usually this means the macro was only invoked conditionally." >&2;}
12737 { (exit 1); exit 1; }; }
12738fi
12739if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12740 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12741Usually this means the macro was only invoked conditionally." >&5
12742echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12743Usually this means the macro was only invoked conditionally." >&2;}
12744 { (exit 1); exit 1; }; }
12745fi
12746if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12747 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12748Usually this means the macro was only invoked conditionally." >&5
12749echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12750Usually this means the macro was only invoked conditionally." >&2;}
12751 { (exit 1); exit 1; }; }
12752fi
5464f5a1
NN
12753
12754: ${CONFIG_STATUS=./config.status}
12755ac_clean_files_save=$ac_clean_files
12756ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12757{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12758echo "$as_me: creating $CONFIG_STATUS" >&6;}
12759cat >$CONFIG_STATUS <<_ACEOF
12760#! $SHELL
12761# Generated by $as_me.
12762# Run this file to recreate the current configuration.
12763# Compiler output produced by configure, useful for debugging
12764# configure, is in config.log if it exists.
12765
12766debug=false
12767ac_cs_recheck=false
12768ac_cs_silent=false
12769SHELL=\${CONFIG_SHELL-$SHELL}
12770_ACEOF
12771
12772cat >>$CONFIG_STATUS <<\_ACEOF
12773## --------------------- ##
12774## M4sh Initialization. ##
12775## --------------------- ##
12776
12777# Be Bourne compatible
12778if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12779 emulate sh
12780 NULLCMD=:
12781 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12782 # is contrary to our usage. Disable this feature.
12783 alias -g '${1+"$@"}'='"$@"'
12784elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12785 set -o posix
12786fi
12787DUALCASE=1; export DUALCASE # for MKS sh
12788
12789# Support unset when possible.
12790if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12791 as_unset=unset
12792else
12793 as_unset=false
12794fi
12795
12796
12797# Work around bugs in pre-3.0 UWIN ksh.
12798$as_unset ENV MAIL MAILPATH
12799PS1='$ '
12800PS2='> '
12801PS4='+ '
12802
12803# NLS nuisances.
12804for as_var in \
12805 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12806 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12807 LC_TELEPHONE LC_TIME
12808do
12809 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12810 eval $as_var=C; export $as_var
12811 else
12812 $as_unset $as_var
12813 fi
12814done
12815
12816# Required to use basename.
12817if expr a : '\(a\)' >/dev/null 2>&1; then
12818 as_expr=expr
12819else
12820 as_expr=false
12821fi
12822
12823if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12824 as_basename=basename
12825else
12826 as_basename=false
12827fi
252b5132 12828
6be7c12c 12829
5464f5a1
NN
12830# Name of the executable.
12831as_me=`$as_basename "$0" ||
12832$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12833 X"$0" : 'X\(//\)$' \| \
12834 X"$0" : 'X\(/\)$' \| \
12835 . : '\(.\)' 2>/dev/null ||
12836echo X/"$0" |
12837 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12838 /^X\/\(\/\/\)$/{ s//\1/; q; }
12839 /^X\/\(\/\).*/{ s//\1/; q; }
12840 s/.*/./; q'`
12841
12842
12843# PATH needs CR, and LINENO needs CR and PATH.
12844# Avoid depending upon Character Ranges.
12845as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12846as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12847as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12848as_cr_digits='0123456789'
12849as_cr_alnum=$as_cr_Letters$as_cr_digits
12850
12851# The user is always right.
12852if test "${PATH_SEPARATOR+set}" != set; then
12853 echo "#! /bin/sh" >conf$$.sh
12854 echo "exit 0" >>conf$$.sh
12855 chmod +x conf$$.sh
12856 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12857 PATH_SEPARATOR=';'
12858 else
12859 PATH_SEPARATOR=:
12860 fi
12861 rm -f conf$$.sh
12862fi
12863
12864
12865 as_lineno_1=$LINENO
12866 as_lineno_2=$LINENO
12867 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12868 test "x$as_lineno_1" != "x$as_lineno_2" &&
12869 test "x$as_lineno_3" = "x$as_lineno_2" || {
12870 # Find who we are. Look in the path if we contain no path at all
12871 # relative or not.
12872 case $0 in
12873 *[\\/]* ) as_myself=$0 ;;
12874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12875for as_dir in $PATH
12876do
12877 IFS=$as_save_IFS
12878 test -z "$as_dir" && as_dir=.
12879 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12880done
12881
12882 ;;
12883 esac
12884 # We did not find ourselves, most probably we were run as `sh COMMAND'
12885 # in which case we are not to be found in the path.
12886 if test "x$as_myself" = x; then
12887 as_myself=$0
12888 fi
12889 if test ! -f "$as_myself"; then
12890 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12891echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12892 { (exit 1); exit 1; }; }
12893 fi
12894 case $CONFIG_SHELL in
12895 '')
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12898do
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
12901 for as_base in sh bash ksh sh5; do
12902 case $as_dir in
12903 /*)
12904 if ("$as_dir/$as_base" -c '
12905 as_lineno_1=$LINENO
12906 as_lineno_2=$LINENO
12907 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12908 test "x$as_lineno_1" != "x$as_lineno_2" &&
12909 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12910 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12911 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12912 CONFIG_SHELL=$as_dir/$as_base
12913 export CONFIG_SHELL
12914 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12915 fi;;
12916 esac
12917 done
12918done
12919;;
12920 esac
12921
12922 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12923 # uniformly replaced by the line number. The first 'sed' inserts a
12924 # line-number line before each line; the second 'sed' does the real
12925 # work. The second script uses 'N' to pair each line-number line
12926 # with the numbered line, and appends trailing '-' during
12927 # substitution so that $LINENO is not a special case at line end.
12928 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12929 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12930 sed '=' <$as_myself |
12931 sed '
12932 N
12933 s,$,-,
12934 : loop
12935 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12936 t loop
12937 s,-$,,
12938 s,^['$as_cr_digits']*\n,,
12939 ' >$as_me.lineno &&
12940 chmod +x $as_me.lineno ||
12941 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12942echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12943 { (exit 1); exit 1; }; }
12944
12945 # Don't try to exec as it changes $[0], causing all sort of problems
12946 # (the dirname of $[0] is not the place where we might find the
12947 # original and so on. Autoconf is especially sensible to this).
12948 . ./$as_me.lineno
12949 # Exit status is that of the last command.
12950 exit
252b5132 12951}
6be7c12c 12952
5464f5a1
NN
12953
12954case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12955 *c*,-n*) ECHO_N= ECHO_C='
12956' ECHO_T=' ' ;;
12957 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12958 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12959esac
12960
12961if expr a : '\(a\)' >/dev/null 2>&1; then
12962 as_expr=expr
252b5132 12963else
5464f5a1 12964 as_expr=false
252b5132 12965fi
5464f5a1
NN
12966
12967rm -f conf$$ conf$$.exe conf$$.file
12968echo >conf$$.file
12969if ln -s conf$$.file conf$$ 2>/dev/null; then
12970 # We could just check for DJGPP; but this test a) works b) is more generic
12971 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12972 if test -f conf$$.exe; then
12973 # Don't use ln at all; we don't have any links
12974 as_ln_s='cp -p'
12975 else
12976 as_ln_s='ln -s'
12977 fi
12978elif ln conf$$.file conf$$ 2>/dev/null; then
12979 as_ln_s=ln
12980else
12981 as_ln_s='cp -p'
252b5132 12982fi
5464f5a1 12983rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 12984
5464f5a1
NN
12985if mkdir -p . 2>/dev/null; then
12986 as_mkdir_p=:
12987else
12988 test -d ./-p && rmdir ./-p
12989 as_mkdir_p=false
252b5132 12990fi
b3baf5d0 12991
5464f5a1 12992as_executable_p="test -f"
252b5132 12993
5464f5a1
NN
12994# Sed expression to map a string onto a valid CPP name.
12995as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 12996
5464f5a1
NN
12997# Sed expression to map a string onto a valid variable name.
12998as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 12999
252b5132 13000
5464f5a1
NN
13001# IFS
13002# We need space, tab and new line, in precisely that order.
13003as_nl='
13004'
13005IFS=" $as_nl"
252b5132 13006
5464f5a1
NN
13007# CDPATH.
13008$as_unset CDPATH
13009
13010exec 6>&1
13011
13012# Open the log real soon, to keep \$[0] and so on meaningful, and to
13013# report actual input values of CONFIG_FILES etc. instead of their
13014# values after options handling. Logging --version etc. is OK.
13015exec 5>>config.log
13016{
13017 echo
13018 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13019## Running $as_me. ##
13020_ASBOX
13021} >&5
13022cat >&5 <<_CSEOF
13023
13024This file was extended by $as_me, which was
13025generated by GNU Autoconf 2.59. Invocation command line was
13026
13027 CONFIG_FILES = $CONFIG_FILES
13028 CONFIG_HEADERS = $CONFIG_HEADERS
13029 CONFIG_LINKS = $CONFIG_LINKS
13030 CONFIG_COMMANDS = $CONFIG_COMMANDS
13031 $ $0 $@
13032
13033_CSEOF
13034echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13035echo >&5
13036_ACEOF
13037
13038# Files that config.status was made for.
13039if test -n "$ac_config_files"; then
13040 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 13041fi
5464f5a1
NN
13042
13043if test -n "$ac_config_headers"; then
13044 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 13045fi
252b5132 13046
5464f5a1
NN
13047if test -n "$ac_config_links"; then
13048 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 13049fi
252b5132 13050
5464f5a1
NN
13051if test -n "$ac_config_commands"; then
13052 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13053fi
252b5132 13054
5464f5a1
NN
13055cat >>$CONFIG_STATUS <<\_ACEOF
13056
13057ac_cs_usage="\
13058\`$as_me' instantiates files from templates according to the
13059current configuration.
13060
13061Usage: $0 [OPTIONS] [FILE]...
13062
13063 -h, --help print this help, then exit
13064 -V, --version print version number, then exit
13065 -q, --quiet do not print progress messages
13066 -d, --debug don't remove temporary files
13067 --recheck update $as_me by reconfiguring in the same conditions
13068 --file=FILE[:TEMPLATE]
13069 instantiate the configuration file FILE
13070 --header=FILE[:TEMPLATE]
13071 instantiate the configuration header FILE
13072
13073Configuration files:
13074$config_files
13075
13076Configuration headers:
13077$config_headers
13078
13079Configuration commands:
13080$config_commands
13081
13082Report bugs to <bug-autoconf@gnu.org>."
13083_ACEOF
13084
13085cat >>$CONFIG_STATUS <<_ACEOF
13086ac_cs_version="\\
13087config.status
13088configured by $0, generated by GNU Autoconf 2.59,
13089 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13090
13091Copyright (C) 2003 Free Software Foundation, Inc.
13092This config.status script is free software; the Free Software Foundation
13093gives unlimited permission to copy, distribute and modify it."
13094srcdir=$srcdir
13095INSTALL="$INSTALL"
13096_ACEOF
13097
13098cat >>$CONFIG_STATUS <<\_ACEOF
13099# If no file are specified by the user, then we need to provide default
13100# value. By we need to know if files were specified by the user.
13101ac_need_defaults=:
13102while test $# != 0
13103do
13104 case $1 in
13105 --*=*)
13106 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13107 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13108 ac_shift=:
6be7c12c 13109 ;;
5464f5a1
NN
13110 -*)
13111 ac_option=$1
13112 ac_optarg=$2
13113 ac_shift=shift
6be7c12c 13114 ;;
5464f5a1
NN
13115 *) # This is not an option, so the user has probably given explicit
13116 # arguments.
13117 ac_option=$1
13118 ac_need_defaults=false;;
13119 esac
252b5132 13120
5464f5a1
NN
13121 case $ac_option in
13122 # Handling of the options.
13123_ACEOF
13124cat >>$CONFIG_STATUS <<\_ACEOF
13125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13126 ac_cs_recheck=: ;;
13127 --version | --vers* | -V )
13128 echo "$ac_cs_version"; exit 0 ;;
13129 --he | --h)
13130 # Conflict between --help and --header
13131 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13132Try \`$0 --help' for more information." >&5
13133echo "$as_me: error: ambiguous option: $1
13134Try \`$0 --help' for more information." >&2;}
13135 { (exit 1); exit 1; }; };;
13136 --help | --hel | -h )
13137 echo "$ac_cs_usage"; exit 0 ;;
13138 --debug | --d* | -d )
13139 debug=: ;;
13140 --file | --fil | --fi | --f )
13141 $ac_shift
13142 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13143 ac_need_defaults=false;;
13144 --header | --heade | --head | --hea )
13145 $ac_shift
13146 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13147 ac_need_defaults=false;;
13148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13150 ac_cs_silent=: ;;
6be7c12c 13151
5464f5a1
NN
13152 # This is an error.
13153 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13154Try \`$0 --help' for more information." >&5
13155echo "$as_me: error: unrecognized option: $1
13156Try \`$0 --help' for more information." >&2;}
13157 { (exit 1); exit 1; }; } ;;
252b5132 13158
5464f5a1 13159 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 13160
5464f5a1
NN
13161 esac
13162 shift
13163done
6be7c12c 13164
5464f5a1 13165ac_configure_extra_args=
252b5132 13166
5464f5a1
NN
13167if $ac_cs_silent; then
13168 exec 6>/dev/null
13169 ac_configure_extra_args="$ac_configure_extra_args --silent"
13170fi
6be7c12c 13171
5464f5a1
NN
13172_ACEOF
13173cat >>$CONFIG_STATUS <<_ACEOF
13174if \$ac_cs_recheck; then
13175 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13176 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13177fi
13178
13179_ACEOF
13180
13181cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 13182#
5464f5a1 13183# INIT-COMMANDS section.
6be7c12c 13184#
b3baf5d0 13185
f5385ebf 13186AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5464f5a1
NN
13187
13188
13189_ACEOF
13190
13191
13192
13193cat >>$CONFIG_STATUS <<\_ACEOF
13194for ac_config_target in $ac_config_targets
252b5132 13195do
5464f5a1
NN
13196 case "$ac_config_target" in
13197 # Handling of arguments.
13198 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13199 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13200 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
13201 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 13202 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5464f5a1
NN
13203 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13204 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13205 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13206echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13207 { (exit 1); exit 1; }; };;
252b5132
RH
13208 esac
13209done
13210
5464f5a1
NN
13211# If the user did not use the arguments to specify the items to instantiate,
13212# then the envvar interface is used. Set only those that are not.
13213# We use the long form for the default assignment because of an extremely
13214# bizarre bug on SunOS 4.1.3.
13215if $ac_need_defaults; then
13216 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13217 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13218 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13219fi
13220
13221# Have a temporary directory for convenience. Make it in the build tree
13222# simply because there is no reason to put it here, and in addition,
13223# creating and moving files from /tmp can sometimes cause problems.
13224# Create a temporary directory, and hook for its removal unless debugging.
13225$debug ||
13226{
13227 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13228 trap '{ (exit 1); exit 1; }' 1 2 13 15
13229}
b3baf5d0 13230
5464f5a1 13231# Create a (secure) tmp directory for tmp files.
b3baf5d0 13232
5464f5a1
NN
13233{
13234 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13235 test -n "$tmp" && test -d "$tmp"
13236} ||
13237{
13238 tmp=./confstat$$-$RANDOM
13239 (umask 077 && mkdir $tmp)
13240} ||
13241{
13242 echo "$me: cannot create a temporary directory in ." >&2
13243 { (exit 1); exit 1; }
13244}
13245
13246_ACEOF
13247
13248cat >>$CONFIG_STATUS <<_ACEOF
13249
13250#
13251# CONFIG_FILES section.
13252#
b3baf5d0 13253
5464f5a1
NN
13254# No need to generate the scripts if there are no CONFIG_FILES.
13255# This happens for instance when ./config.status config.h
13256if test -n "\$CONFIG_FILES"; then
13257 # Protect against being on the right side of a sed subst in config.status.
13258 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13259 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13260s,@SHELL@,$SHELL,;t t
13261s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13262s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13263s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13264s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13265s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13266s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13267s,@exec_prefix@,$exec_prefix,;t t
13268s,@prefix@,$prefix,;t t
13269s,@program_transform_name@,$program_transform_name,;t t
13270s,@bindir@,$bindir,;t t
13271s,@sbindir@,$sbindir,;t t
13272s,@libexecdir@,$libexecdir,;t t
13273s,@datadir@,$datadir,;t t
13274s,@sysconfdir@,$sysconfdir,;t t
13275s,@sharedstatedir@,$sharedstatedir,;t t
13276s,@localstatedir@,$localstatedir,;t t
13277s,@libdir@,$libdir,;t t
13278s,@includedir@,$includedir,;t t
13279s,@oldincludedir@,$oldincludedir,;t t
13280s,@infodir@,$infodir,;t t
13281s,@mandir@,$mandir,;t t
13282s,@build_alias@,$build_alias,;t t
13283s,@host_alias@,$host_alias,;t t
13284s,@target_alias@,$target_alias,;t t
13285s,@DEFS@,$DEFS,;t t
13286s,@ECHO_C@,$ECHO_C,;t t
13287s,@ECHO_N@,$ECHO_N,;t t
13288s,@ECHO_T@,$ECHO_T,;t t
13289s,@LIBS@,$LIBS,;t t
13290s,@build@,$build,;t t
13291s,@build_cpu@,$build_cpu,;t t
13292s,@build_vendor@,$build_vendor,;t t
13293s,@build_os@,$build_os,;t t
13294s,@host@,$host,;t t
13295s,@host_cpu@,$host_cpu,;t t
13296s,@host_vendor@,$host_vendor,;t t
13297s,@host_os@,$host_os,;t t
13298s,@target@,$target,;t t
13299s,@target_cpu@,$target_cpu,;t t
13300s,@target_vendor@,$target_vendor,;t t
13301s,@target_os@,$target_os,;t t
13302s,@CC@,$CC,;t t
13303s,@CFLAGS@,$CFLAGS,;t t
13304s,@LDFLAGS@,$LDFLAGS,;t t
13305s,@CPPFLAGS@,$CPPFLAGS,;t t
13306s,@ac_ct_CC@,$ac_ct_CC,;t t
13307s,@EXEEXT@,$EXEEXT,;t t
13308s,@OBJEXT@,$OBJEXT,;t t
13309s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13310s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13311s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 13312s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
13313s,@PACKAGE@,$PACKAGE,;t t
13314s,@VERSION@,$VERSION,;t t
13315s,@ACLOCAL@,$ACLOCAL,;t t
13316s,@AUTOCONF@,$AUTOCONF,;t t
13317s,@AUTOMAKE@,$AUTOMAKE,;t t
13318s,@AUTOHEADER@,$AUTOHEADER,;t t
13319s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
13320s,@install_sh@,$install_sh,;t t
13321s,@STRIP@,$STRIP,;t t
13322s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13323s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13324s,@mkdir_p@,$mkdir_p,;t t
13325s,@AWK@,$AWK,;t t
5464f5a1 13326s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
13327s,@am__leading_dot@,$am__leading_dot,;t t
13328s,@AMTAR@,$AMTAR,;t t
13329s,@am__tar@,$am__tar,;t t
13330s,@am__untar@,$am__untar,;t t
13331s,@DEPDIR@,$DEPDIR,;t t
13332s,@am__include@,$am__include,;t t
13333s,@am__quote@,$am__quote,;t t
13334s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13335s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13336s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13337s,@CCDEPMODE@,$CCDEPMODE,;t t
13338s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13339s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
13340s,@AR@,$AR,;t t
13341s,@ac_ct_AR@,$ac_ct_AR,;t t
13342s,@RANLIB@,$RANLIB,;t t
13343s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13344s,@LN_S@,$LN_S,;t t
5464f5a1
NN
13345s,@LIBTOOL@,$LIBTOOL,;t t
13346s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13347s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13348s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13349s,@MAINT@,$MAINT,;t t
13350s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13351s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
13352s,@host_noncanonical@,$host_noncanonical,;t t
13353s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
13354s,@bfdlibdir@,$bfdlibdir,;t t
13355s,@bfdincludedir@,$bfdincludedir,;t t
13356s,@CPP@,$CPP,;t t
13357s,@EGREP@,$EGREP,;t t
13358s,@ALLOCA@,$ALLOCA,;t t
13359s,@USE_NLS@,$USE_NLS,;t t
13360s,@MSGFMT@,$MSGFMT,;t t
13361s,@GMSGFMT@,$GMSGFMT,;t t
13362s,@XGETTEXT@,$XGETTEXT,;t t
13363s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13364s,@CATALOGS@,$CATALOGS,;t t
13365s,@CATOBJEXT@,$CATOBJEXT,;t t
13366s,@DATADIRNAME@,$DATADIRNAME,;t t
13367s,@GMOFILES@,$GMOFILES,;t t
13368s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13369s,@INTLDEPS@,$INTLDEPS,;t t
13370s,@INTLLIBS@,$INTLLIBS,;t t
13371s,@INTLOBJS@,$INTLOBJS,;t t
13372s,@POFILES@,$POFILES,;t t
13373s,@POSUB@,$POSUB,;t t
13374s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
13375s,@GT_NO@,$GT_NO,;t t
13376s,@GT_YES@,$GT_YES,;t t
13377s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13378s,@l@,$l,;t t
13379s,@HDEFINES@,$HDEFINES,;t t
13380s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13381s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13382s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13383s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13384s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13385s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13386s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13387s,@COREFILE@,$COREFILE,;t t
13388s,@COREFLAG@,$COREFLAG,;t t
13389s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13390s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13391s,@TDEFINES@,$TDEFINES,;t t
13392s,@wordsize@,$wordsize,;t t
13393s,@bfd_libs@,$bfd_libs,;t t
13394s,@all_backends@,$all_backends,;t t
13395s,@bfd_backends@,$bfd_backends,;t t
13396s,@bfd_machines@,$bfd_machines,;t t
13397s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13398s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13399s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13400s,@tdefaults@,$tdefaults,;t t
13401s,@LIBOBJS@,$LIBOBJS,;t t
13402s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 13403CEOF
252b5132 13404
5464f5a1
NN
13405_ACEOF
13406
13407 cat >>$CONFIG_STATUS <<\_ACEOF
13408 # Split the substitutions into bite-sized pieces for seds with
13409 # small command number limits, like on Digital OSF/1 and HP-UX.
13410 ac_max_sed_lines=48
13411 ac_sed_frag=1 # Number of current file.
13412 ac_beg=1 # First line for current file.
13413 ac_end=$ac_max_sed_lines # Line after last line for current file.
13414 ac_more_lines=:
13415 ac_sed_cmds=
13416 while $ac_more_lines; do
13417 if test $ac_beg -gt 1; then
13418 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 13419 else
5464f5a1
NN
13420 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13421 fi
13422 if test ! -s $tmp/subs.frag; then
13423 ac_more_lines=false
13424 else
13425 # The purpose of the label and of the branching condition is to
13426 # speed up the sed processing (if there are no `@' at all, there
13427 # is no need to browse any of the substitutions).
13428 # These are the two extra sed commands mentioned above.
13429 (echo ':t
13430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13431 if test -z "$ac_sed_cmds"; then
13432 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13433 else
13434 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13435 fi
13436 ac_sed_frag=`expr $ac_sed_frag + 1`
13437 ac_beg=$ac_end
13438 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13439 fi
5464f5a1
NN
13440 done
13441 if test -z "$ac_sed_cmds"; then
13442 ac_sed_cmds=cat
252b5132 13443 fi
5464f5a1 13444fi # test -n "$CONFIG_FILES"
6be7c12c 13445
5464f5a1
NN
13446_ACEOF
13447cat >>$CONFIG_STATUS <<\_ACEOF
13448for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13450 case $ac_file in
13451 - | *:- | *:-:* ) # input from stdin
13452 cat >$tmp/stdin
13453 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13455 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13457 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13458 esac
13459
5464f5a1
NN
13460 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13461 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13462$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13463 X"$ac_file" : 'X\(//\)[^/]' \| \
13464 X"$ac_file" : 'X\(//\)$' \| \
13465 X"$ac_file" : 'X\(/\)' \| \
13466 . : '\(.\)' 2>/dev/null ||
13467echo X"$ac_file" |
13468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13469 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13470 /^X\(\/\/\)$/{ s//\1/; q; }
13471 /^X\(\/\).*/{ s//\1/; q; }
13472 s/.*/./; q'`
13473 { if $as_mkdir_p; then
13474 mkdir -p "$ac_dir"
252b5132 13475 else
5464f5a1
NN
13476 as_dir="$ac_dir"
13477 as_dirs=
13478 while test ! -d "$as_dir"; do
13479 as_dirs="$as_dir $as_dirs"
13480 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13481$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13482 X"$as_dir" : 'X\(//\)[^/]' \| \
13483 X"$as_dir" : 'X\(//\)$' \| \
13484 X"$as_dir" : 'X\(/\)' \| \
13485 . : '\(.\)' 2>/dev/null ||
13486echo X"$as_dir" |
13487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13489 /^X\(\/\/\)$/{ s//\1/; q; }
13490 /^X\(\/\).*/{ s//\1/; q; }
13491 s/.*/./; q'`
13492 done
13493 test ! -n "$as_dirs" || mkdir $as_dirs
13494 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13495echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13496 { (exit 1); exit 1; }; }; }
13497
13498 ac_builddir=.
13499
13500if test "$ac_dir" != .; then
13501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13502 # A "../" for each directory in $ac_dir_suffix.
13503 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13504else
13505 ac_dir_suffix= ac_top_builddir=
13506fi
252b5132 13507
5464f5a1
NN
13508case $srcdir in
13509 .) # No --srcdir option. We are building in place.
13510 ac_srcdir=.
13511 if test -z "$ac_top_builddir"; then
13512 ac_top_srcdir=.
13513 else
13514 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13515 fi ;;
13516 [\\/]* | ?:[\\/]* ) # Absolute path.
13517 ac_srcdir=$srcdir$ac_dir_suffix;
13518 ac_top_srcdir=$srcdir ;;
252b5132 13519 *) # Relative path.
5464f5a1
NN
13520 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13521 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13522esac
252b5132 13523
5464f5a1
NN
13524# Do not use `cd foo && pwd` to compute absolute paths, because
13525# the directories may not exist.
13526case `pwd` in
13527.) ac_abs_builddir="$ac_dir";;
13528*)
13529 case "$ac_dir" in
13530 .) ac_abs_builddir=`pwd`;;
13531 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13532 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13533 esac;;
13534esac
13535case $ac_abs_builddir in
13536.) ac_abs_top_builddir=${ac_top_builddir}.;;
13537*)
13538 case ${ac_top_builddir}. in
13539 .) ac_abs_top_builddir=$ac_abs_builddir;;
13540 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13541 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13542 esac;;
13543esac
13544case $ac_abs_builddir in
13545.) ac_abs_srcdir=$ac_srcdir;;
13546*)
13547 case $ac_srcdir in
13548 .) ac_abs_srcdir=$ac_abs_builddir;;
13549 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13550 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13551 esac;;
13552esac
13553case $ac_abs_builddir in
13554.) ac_abs_top_srcdir=$ac_top_srcdir;;
13555*)
13556 case $ac_top_srcdir in
13557 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13558 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13559 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13560 esac;;
13561esac
252b5132 13562
5464f5a1
NN
13563
13564 case $INSTALL in
13565 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13566 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 13567 esac
252b5132 13568
8fb84ecc
AC
13569 if test x"$ac_file" != x-; then
13570 { echo "$as_me:$LINENO: creating $ac_file" >&5
13571echo "$as_me: creating $ac_file" >&6;}
13572 rm -f "$ac_file"
13573 fi
5464f5a1
NN
13574 # Let's still pretend it is `configure' which instantiates (i.e., don't
13575 # use $as_me), people would be surprised to read:
13576 # /* config.h. Generated by config.status. */
13577 if test x"$ac_file" = x-; then
13578 configure_input=
13579 else
13580 configure_input="$ac_file. "
13581 fi
13582 configure_input=$configure_input"Generated from `echo $ac_file_in |
13583 sed 's,.*/,,'` by configure."
13584
13585 # First look for the input files in the build tree, otherwise in the
13586 # src tree.
13587 ac_file_inputs=`IFS=:
13588 for f in $ac_file_in; do
13589 case $f in
13590 -) echo $tmp/stdin ;;
13591 [\\/$]*)
13592 # Absolute (can't be DOS-style, as IFS=:)
13593 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13594echo "$as_me: error: cannot find input file: $f" >&2;}
13595 { (exit 1); exit 1; }; }
13596 echo "$f";;
13597 *) # Relative
13598 if test -f "$f"; then
13599 # Build tree
13600 echo "$f"
13601 elif test -f "$srcdir/$f"; then
13602 # Source tree
13603 echo "$srcdir/$f"
13604 else
13605 # /dev/null tree
13606 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13607echo "$as_me: error: cannot find input file: $f" >&2;}
13608 { (exit 1); exit 1; }; }
13609 fi;;
13610 esac
13611 done` || { (exit 1); exit 1; }
5464f5a1
NN
13612_ACEOF
13613cat >>$CONFIG_STATUS <<_ACEOF
13614 sed "$ac_vpsub
13615$extrasub
13616_ACEOF
13617cat >>$CONFIG_STATUS <<\_ACEOF
13618:t
13619/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13620s,@configure_input@,$configure_input,;t t
13621s,@srcdir@,$ac_srcdir,;t t
13622s,@abs_srcdir@,$ac_abs_srcdir,;t t
13623s,@top_srcdir@,$ac_top_srcdir,;t t
13624s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13625s,@builddir@,$ac_builddir,;t t
13626s,@abs_builddir@,$ac_abs_builddir,;t t
13627s,@top_builddir@,$ac_top_builddir,;t t
13628s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13629s,@INSTALL@,$ac_INSTALL,;t t
13630" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13631 rm -f $tmp/stdin
13632 if test x"$ac_file" != x-; then
13633 mv $tmp/out $ac_file
13634 else
13635 cat $tmp/out
13636 rm -f $tmp/out
13637 fi
13638
13639done
13640_ACEOF
13641cat >>$CONFIG_STATUS <<\_ACEOF
13642
13643#
13644# CONFIG_HEADER section.
13645#
252b5132
RH
13646
13647# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13648# NAME is the cpp macro being defined and VALUE is the value it is being given.
13649#
13650# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
13651ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13652ac_dB='[ ].*$,\1#\2'
13653ac_dC=' '
13654ac_dD=',;t'
13655# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13656ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13657ac_uB='$,\1#\2define\3'
252b5132 13658ac_uC=' '
5464f5a1
NN
13659ac_uD=',;t'
13660
13661for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 13662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13663 case $ac_file in
13664 - | *:- | *:-:* ) # input from stdin
13665 cat >$tmp/stdin
13666 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13668 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13670 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13671 esac
13672
5464f5a1
NN
13673 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13674echo "$as_me: creating $ac_file" >&6;}
13675
13676 # First look for the input files in the build tree, otherwise in the
13677 # src tree.
13678 ac_file_inputs=`IFS=:
13679 for f in $ac_file_in; do
13680 case $f in
13681 -) echo $tmp/stdin ;;
13682 [\\/$]*)
13683 # Absolute (can't be DOS-style, as IFS=:)
13684 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13685echo "$as_me: error: cannot find input file: $f" >&2;}
13686 { (exit 1); exit 1; }; }
13687 # Do quote $f, to prevent DOS paths from being IFS'd.
13688 echo "$f";;
13689 *) # Relative
13690 if test -f "$f"; then
13691 # Build tree
13692 echo "$f"
13693 elif test -f "$srcdir/$f"; then
13694 # Source tree
13695 echo "$srcdir/$f"
13696 else
13697 # /dev/null tree
13698 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13699echo "$as_me: error: cannot find input file: $f" >&2;}
13700 { (exit 1); exit 1; }; }
13701 fi;;
13702 esac
13703 done` || { (exit 1); exit 1; }
13704 # Remove the trailing spaces.
13705 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13706
13707_ACEOF
13708
13709# Transform confdefs.h into two sed scripts, `conftest.defines' and
13710# `conftest.undefs', that substitutes the proper values into
13711# config.h.in to produce config.h. The first handles `#define'
13712# templates, and the second `#undef' templates.
13713# And first: Protect against being on the right side of a sed subst in
13714# config.status. Protect against being in an unquoted here document
13715# in config.status.
13716rm -f conftest.defines conftest.undefs
13717# Using a here document instead of a string reduces the quoting nightmare.
13718# Putting comments in sed scripts is not portable.
13719#
13720# `end' is used to avoid that the second main sed command (meant for
13721# 0-ary CPP macros) applies to n-ary macro definitions.
13722# See the Autoconf documentation for `clear'.
13723cat >confdef2sed.sed <<\_ACEOF
13724s/[\\&,]/\\&/g
13725s,[\\$`],\\&,g
13726t clear
13727: clear
13728s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13729t end
13730s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13731: end
13732_ACEOF
13733# If some macros were called several times there might be several times
13734# the same #defines, which is useless. Nevertheless, we may not want to
13735# sort them, since we want the *last* AC-DEFINE to be honored.
13736uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13737sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13738rm -f confdef2sed.sed
252b5132
RH
13739
13740# This sed command replaces #undef with comments. This is necessary, for
13741# example, in the case of _POSIX_SOURCE, which is predefined and required
13742# on some systems where configure will not decide to define it.
5464f5a1
NN
13743cat >>conftest.undefs <<\_ACEOF
13744s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13745_ACEOF
13746
13747# Break up conftest.defines because some shells have a limit on the size
13748# of here documents, and old seds have small limits too (100 cmds).
13749echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13750echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13751echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13752echo ' :' >>$CONFIG_STATUS
13753rm -f conftest.tail
13754while grep . conftest.defines >/dev/null
13755do
13756 # Write a limited-size here document to $tmp/defines.sed.
13757 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13758 # Speed up: don't consider the non `#define' lines.
13759 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13760 # Work around the forget-to-reset-the-flag bug.
13761 echo 't clr' >>$CONFIG_STATUS
13762 echo ': clr' >>$CONFIG_STATUS
13763 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13764 echo 'CEOF
13765 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13766 rm -f $tmp/in
13767 mv $tmp/out $tmp/in
13768' >>$CONFIG_STATUS
13769 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13770 rm -f conftest.defines
13771 mv conftest.tail conftest.defines
13772done
13773rm -f conftest.defines
13774echo ' fi # grep' >>$CONFIG_STATUS
13775echo >>$CONFIG_STATUS
252b5132 13776
5464f5a1
NN
13777# Break up conftest.undefs because some shells have a limit on the size
13778# of here documents, and old seds have small limits too (100 cmds).
13779echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13780rm -f conftest.tail
5464f5a1 13781while grep . conftest.undefs >/dev/null
252b5132 13782do
5464f5a1
NN
13783 # Write a limited-size here document to $tmp/undefs.sed.
13784 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13785 # Speed up: don't consider the non `#undef'
13786 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13787 # Work around the forget-to-reset-the-flag bug.
13788 echo 't clr' >>$CONFIG_STATUS
13789 echo ': clr' >>$CONFIG_STATUS
13790 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13791 echo 'CEOF
5464f5a1
NN
13792 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13793 rm -f $tmp/in
13794 mv $tmp/out $tmp/in
13795' >>$CONFIG_STATUS
13796 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13797 rm -f conftest.undefs
13798 mv conftest.tail conftest.undefs
252b5132 13799done
5464f5a1
NN
13800rm -f conftest.undefs
13801
13802cat >>$CONFIG_STATUS <<\_ACEOF
13803 # Let's still pretend it is `configure' which instantiates (i.e., don't
13804 # use $as_me), people would be surprised to read:
13805 # /* config.h. Generated by config.status. */
13806 if test x"$ac_file" = x-; then
13807 echo "/* Generated by configure. */" >$tmp/config.h
13808 else
13809 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13810 fi
13811 cat $tmp/in >>$tmp/config.h
13812 rm -f $tmp/in
13813 if test x"$ac_file" != x-; then
13814 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13815 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13816echo "$as_me: $ac_file is unchanged" >&6;}
13817 else
13818 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13819$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13820 X"$ac_file" : 'X\(//\)[^/]' \| \
13821 X"$ac_file" : 'X\(//\)$' \| \
13822 X"$ac_file" : 'X\(/\)' \| \
13823 . : '\(.\)' 2>/dev/null ||
13824echo X"$ac_file" |
13825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13827 /^X\(\/\/\)$/{ s//\1/; q; }
13828 /^X\(\/\).*/{ s//\1/; q; }
13829 s/.*/./; q'`
13830 { if $as_mkdir_p; then
13831 mkdir -p "$ac_dir"
252b5132 13832 else
5464f5a1
NN
13833 as_dir="$ac_dir"
13834 as_dirs=
13835 while test ! -d "$as_dir"; do
13836 as_dirs="$as_dir $as_dirs"
13837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13838$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13839 X"$as_dir" : 'X\(//\)[^/]' \| \
13840 X"$as_dir" : 'X\(//\)$' \| \
13841 X"$as_dir" : 'X\(/\)' \| \
13842 . : '\(.\)' 2>/dev/null ||
13843echo X"$as_dir" |
13844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13846 /^X\(\/\/\)$/{ s//\1/; q; }
13847 /^X\(\/\).*/{ s//\1/; q; }
13848 s/.*/./; q'`
13849 done
13850 test ! -n "$as_dirs" || mkdir $as_dirs
13851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13852echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13853 { (exit 1); exit 1; }; }; }
13854
13855 rm -f $ac_file
13856 mv $tmp/config.h $ac_file
252b5132 13857 fi
5464f5a1
NN
13858 else
13859 cat $tmp/config.h
13860 rm -f $tmp/config.h
252b5132 13861 fi
f5385ebf
AM
13862# Compute $ac_file's index in $config_headers.
13863_am_stamp_count=1
13864for _am_header in $config_headers :; do
13865 case $_am_header in
13866 $ac_file | $ac_file:* )
13867 break ;;
13868 * )
13869 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13870 esac
13871done
13872echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13873$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13874 X$ac_file : 'X\(//\)[^/]' \| \
13875 X$ac_file : 'X\(//\)$' \| \
13876 X$ac_file : 'X\(/\)' \| \
13877 . : '\(.\)' 2>/dev/null ||
13878echo X$ac_file |
13879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13880 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13881 /^X\(\/\/\)$/{ s//\1/; q; }
13882 /^X\(\/\).*/{ s//\1/; q; }
13883 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
13884done
13885_ACEOF
13886cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13887
5464f5a1
NN
13888#
13889# CONFIG_COMMANDS section.
13890#
13891for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13892 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13893 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13894 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13895$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13896 X"$ac_dest" : 'X\(//\)[^/]' \| \
13897 X"$ac_dest" : 'X\(//\)$' \| \
13898 X"$ac_dest" : 'X\(/\)' \| \
13899 . : '\(.\)' 2>/dev/null ||
13900echo X"$ac_dest" |
13901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13902 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13903 /^X\(\/\/\)$/{ s//\1/; q; }
13904 /^X\(\/\).*/{ s//\1/; q; }
13905 s/.*/./; q'`
13906 { if $as_mkdir_p; then
13907 mkdir -p "$ac_dir"
13908 else
13909 as_dir="$ac_dir"
13910 as_dirs=
13911 while test ! -d "$as_dir"; do
13912 as_dirs="$as_dir $as_dirs"
13913 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13914$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13915 X"$as_dir" : 'X\(//\)[^/]' \| \
13916 X"$as_dir" : 'X\(//\)$' \| \
13917 X"$as_dir" : 'X\(/\)' \| \
13918 . : '\(.\)' 2>/dev/null ||
13919echo X"$as_dir" |
13920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13921 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13922 /^X\(\/\/\)$/{ s//\1/; q; }
13923 /^X\(\/\).*/{ s//\1/; q; }
13924 s/.*/./; q'`
13925 done
13926 test ! -n "$as_dirs" || mkdir $as_dirs
13927 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13928echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13929 { (exit 1); exit 1; }; }; }
b3baf5d0 13930
5464f5a1 13931 ac_builddir=.
b3baf5d0 13932
5464f5a1
NN
13933if test "$ac_dir" != .; then
13934 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13935 # A "../" for each directory in $ac_dir_suffix.
13936 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13937else
13938 ac_dir_suffix= ac_top_builddir=
13939fi
13940
13941case $srcdir in
13942 .) # No --srcdir option. We are building in place.
13943 ac_srcdir=.
13944 if test -z "$ac_top_builddir"; then
13945 ac_top_srcdir=.
13946 else
13947 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13948 fi ;;
13949 [\\/]* | ?:[\\/]* ) # Absolute path.
13950 ac_srcdir=$srcdir$ac_dir_suffix;
13951 ac_top_srcdir=$srcdir ;;
13952 *) # Relative path.
13953 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13954 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13955esac
13956
13957# Do not use `cd foo && pwd` to compute absolute paths, because
13958# the directories may not exist.
13959case `pwd` in
13960.) ac_abs_builddir="$ac_dir";;
13961*)
13962 case "$ac_dir" in
13963 .) ac_abs_builddir=`pwd`;;
13964 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13965 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13966 esac;;
13967esac
13968case $ac_abs_builddir in
13969.) ac_abs_top_builddir=${ac_top_builddir}.;;
13970*)
13971 case ${ac_top_builddir}. in
13972 .) ac_abs_top_builddir=$ac_abs_builddir;;
13973 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13974 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13975 esac;;
13976esac
13977case $ac_abs_builddir in
13978.) ac_abs_srcdir=$ac_srcdir;;
13979*)
13980 case $ac_srcdir in
13981 .) ac_abs_srcdir=$ac_abs_builddir;;
13982 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13983 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13984 esac;;
13985esac
13986case $ac_abs_builddir in
13987.) ac_abs_top_srcdir=$ac_top_srcdir;;
13988*)
13989 case $ac_top_srcdir in
13990 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13991 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13992 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13993 esac;;
13994esac
13995
13996
13997 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13998echo "$as_me: executing $ac_dest commands" >&6;}
13999 case $ac_dest in
f5385ebf
AM
14000 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14001 # Strip MF so we end up with the name of the file.
14002 mf=`echo "$mf" | sed -e 's/:.*$//'`
14003 # Check whether this is an Automake generated Makefile or not.
14004 # We used to match only the files named `Makefile.in', but
14005 # some people rename them; so instead we look at the file content.
14006 # Grep'ing the first line is not enough: some people post-process
14007 # each Makefile.in and add a new line on top of each file to say so.
14008 # So let's grep whole file.
14009 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14010 dirpart=`(dirname "$mf") 2>/dev/null ||
14011$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14012 X"$mf" : 'X\(//\)[^/]' \| \
14013 X"$mf" : 'X\(//\)$' \| \
14014 X"$mf" : 'X\(/\)' \| \
14015 . : '\(.\)' 2>/dev/null ||
14016echo X"$mf" |
14017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14019 /^X\(\/\/\)$/{ s//\1/; q; }
14020 /^X\(\/\).*/{ s//\1/; q; }
14021 s/.*/./; q'`
14022 else
14023 continue
14024 fi
14025 # Extract the definition of DEPDIR, am__include, and am__quote
14026 # from the Makefile without running `make'.
14027 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14028 test -z "$DEPDIR" && continue
14029 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14030 test -z "am__include" && continue
14031 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14032 # When using ansi2knr, U may be empty or an underscore; expand it
14033 U=`sed -n 's/^U = //p' < "$mf"`
14034 # Find all dependency output files, they are included files with
14035 # $(DEPDIR) in their names. We invoke sed twice because it is the
14036 # simplest approach to changing $(DEPDIR) to its actual value in the
14037 # expansion.
14038 for file in `sed -n "
14039 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14040 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14041 # Make sure the directory exists.
14042 test -f "$dirpart/$file" && continue
14043 fdir=`(dirname "$file") 2>/dev/null ||
14044$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14045 X"$file" : 'X\(//\)[^/]' \| \
14046 X"$file" : 'X\(//\)$' \| \
14047 X"$file" : 'X\(/\)' \| \
14048 . : '\(.\)' 2>/dev/null ||
14049echo X"$file" |
14050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14052 /^X\(\/\/\)$/{ s//\1/; q; }
14053 /^X\(\/\).*/{ s//\1/; q; }
14054 s/.*/./; q'`
14055 { if $as_mkdir_p; then
14056 mkdir -p $dirpart/$fdir
14057 else
14058 as_dir=$dirpart/$fdir
14059 as_dirs=
14060 while test ! -d "$as_dir"; do
14061 as_dirs="$as_dir $as_dirs"
14062 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14063$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14064 X"$as_dir" : 'X\(//\)[^/]' \| \
14065 X"$as_dir" : 'X\(//\)$' \| \
14066 X"$as_dir" : 'X\(/\)' \| \
14067 . : '\(.\)' 2>/dev/null ||
14068echo X"$as_dir" |
14069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14070 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14071 /^X\(\/\/\)$/{ s//\1/; q; }
14072 /^X\(\/\).*/{ s//\1/; q; }
14073 s/.*/./; q'`
14074 done
14075 test ! -n "$as_dirs" || mkdir $as_dirs
14076 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14077echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14078 { (exit 1); exit 1; }; }; }
14079
14080 # echo "creating $dirpart/$file"
14081 echo '# dummy' > "$dirpart/$file"
14082 done
14083done
14084 ;;
5464f5a1
NN
14085 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
14086 esac
14087done
14088_ACEOF
14089
14090cat >>$CONFIG_STATUS <<\_ACEOF
14091
14092{ (exit 0); exit 0; }
14093_ACEOF
252b5132 14094chmod +x $CONFIG_STATUS
5464f5a1
NN
14095ac_clean_files=$ac_clean_files_save
14096
14097
14098# configure is writing to config.log, and then calls config.status.
14099# config.status does its own redirection, appending to config.log.
14100# Unfortunately, on DOS this fails, as config.log is still kept open
14101# by configure, so config.status won't be able to write to it; its
14102# output is simply discarded. So we exec the FD to /dev/null,
14103# effectively closing config.log, so it can be properly (re)opened and
14104# appended to by config.status. When coming back to configure, we
14105# need to make the FD available again.
14106if test "$no_create" != yes; then
14107 ac_cs_success=:
14108 ac_config_status_args=
14109 test "$silent" = yes &&
14110 ac_config_status_args="$ac_config_status_args --quiet"
14111 exec 5>/dev/null
14112 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14113 exec 5>>config.log
14114 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14115 # would make configure fail if this is the last instruction.
14116 $ac_cs_success || { (exit 1); exit 1; }
14117fi
252b5132 14118
55c80943 14119
This page took 1.076534 seconds and 4 git commands to generate.