]> git.ipfire.org Git - thirdparty/glibc.git/blame - configure
* posix/tst-waitid.c (test_child): Sleep a second before stopping.
[thirdparty/glibc.git] / configure
CommitLineData
cd6ede75 1#! /bin/sh
3a12e572
UD
2# From configure.in CVSid.
3# Guess values for system-dependent variables and create Makefiles.
8f73811b 4# Generated by GNU Autoconf 2.57 for GNU C Library (see version.h).
f4b07664
RM
5#
6# Report bugs to <glibc>.
3a12e572 7#
8f73811b
RM
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9# Free Software Foundation, Inc.
3a12e572
UD
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
3a12e572
UD
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
cd6ede75 15
3a12e572
UD
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
f4b07664
RM
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
3a12e572
UD
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
cd6ede75 26
3a12e572 27# Support unset when possible.
8f73811b 28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3a12e572
UD
29 as_unset=unset
30else
31 as_unset=false
32fi
33
f4b07664
RM
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
2abf9ff1
RM
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
f4b07664 46do
8f73811b 47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
f4b07664
RM
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
3a12e572
UD
66
67
68# Name of the executable.
f4b07664 69as_me=`$as_basename "$0" ||
3a12e572
UD
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
f4b07664 80
3a12e572
UD
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
2abf9ff1
RM
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3a12e572
UD
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
2abf9ff1 99 rm -f conf$$.sh
3a12e572 100fi
cd6ede75
UD
101
102
3a12e572
UD
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
650425ce 119
3a12e572
UD
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
f4b07664
RM
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3a12e572
UD
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
650425ce 158
3a12e572
UD
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
650425ce
UD
188
189
3a12e572
UD
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
63bda0c1 196
3a12e572
UD
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
f4b07664
RM
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
224 as_mkdir_p=false
225fi
226
3a12e572
UD
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
8f73811b 230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3a12e572
UD
231
232# Sed expression to map a string onto a valid variable name.
8f73811b 233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3a12e572
UD
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
f4b07664 243$as_unset CDPATH
63bda0c1 244
cd6ede75 245
3a12e572
UD
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
cd6ede75 256ac_default_prefix=/usr/local
f4b07664 257ac_config_libobj_dir=.
3a12e572
UD
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
f4b07664
RM
270PACKAGE_NAME='GNU C Library'
271PACKAGE_TARNAME='c-library'
272PACKAGE_VERSION='(see version.h)'
273PACKAGE_STRING='GNU C Library (see version.h)'
274PACKAGE_BUGREPORT='glibc'
3a12e572
UD
275
276ac_unique_file="include/features.h"
a1ceed7a 277ac_subdirs_all="$ac_subdirs_all "
3a12e572
UD
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
8f73811b 315ac_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 with_fp with_cvs enable_check_abi oldest_abi bindnow force_install all_warnings build build_cpu build_vendor build_os host host_cpu host_vendor host_os subdirs add_ons base_machine sysnames INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT BUILD_CC cross_compiling CPP CXX CXXFLAGS ac_ct_CXX AR OBJDUMP RANLIB ac_ct_RANLIB MIG AS LD PWD_P MAKE MSGFMT MAKEINFO SED AUTOCONF SYSINCLUDES libc_cv_gcc_static_libgcc BASH libc_cv_have_bash2 KSH libc_cv_have_ksh AWK PERL INSTALL_INFO BISON VERSIONING libc_cv_asm_protected_directive libc_cv_initfinit_array libc_cv_cc_with_libunwind libc_cv_z_nodelete libc_cv_z_nodlopen libc_cv_z_initfirst libc_cv_z_relro libc_cv_Bgroup libc_cv_libgcc_s_suffix libc_cv_as_needed ASFLAGS_config libc_cv_z_combreloc libc_cv_z_execstack libc_cv_fpie fno_unit_at_a_time libc_cv_have_initfini libc_cv_cpp_asm_debuginfo no_whole_archive exceptions LIBGD EGREP sizeof_long_double libc_cv_gcc_unwind_find_fde uname_sysname uname_release uname_version old_glibc_headers libc_cv_slibdir libc_cv_localedir libc_cv_sysconfdir libc_cv_rootsbindir libc_cv_forced_unwind use_ldconfig ldd_rewrite_script gnu_ld gnu_as elf xcoff static shared pic_default profile omitfp bounded static_nss nopic_initfini DEFINES linux_doors mach_interface_list VERSION RELEASE LIBOBJS LTLIBOBJS'
f4b07664 316ac_subst_files=''
cd6ede75
UD
317
318# Initialize some variables set by options.
3a12e572
UD
319ac_init_help=
320ac_init_version=false
cd6ede75
UD
321# The variables have the same names as the options, with
322# dashes changed to underlines.
3a12e572 323cache_file=/dev/null
cd6ede75 324exec_prefix=NONE
cd6ede75 325no_create=
cd6ede75
UD
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
cd6ede75
UD
334verbose=
335x_includes=NONE
336x_libraries=NONE
3a12e572
UD
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
cd6ede75
UD
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
cd6ede75
UD
356ac_prev=
357for ac_option
358do
cd6ede75
UD
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
3a12e572 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
cd6ede75
UD
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
3a12e572 370 case $ac_option in
cd6ede75
UD
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3a12e572 375 bindir=$ac_optarg ;;
cd6ede75
UD
376
377 -build | --build | --buil | --bui | --bu)
3a12e572 378 ac_prev=build_alias ;;
cd6ede75 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3a12e572 380 build_alias=$ac_optarg ;;
cd6ede75
UD
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3a12e572
UD
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
cd6ede75
UD
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
3a12e572 396 datadir=$ac_optarg ;;
cd6ede75
UD
397
398 -disable-* | --disable-*)
3a12e572 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
cd6ede75 400 # Reject names that are not valid shell variable names.
3a12e572
UD
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
cd6ede75
UD
406
407 -enable-* | --enable-*)
3a12e572 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
cd6ede75 409 # Reject names that are not valid shell variable names.
3a12e572
UD
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
cd6ede75
UD
416 *) ac_optarg=yes ;;
417 esac
3a12e572 418 eval "enable_$ac_feature='$ac_optarg'" ;;
cd6ede75
UD
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
3a12e572 427 exec_prefix=$ac_optarg ;;
cd6ede75
UD
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
3a12e572
UD
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
cd6ede75
UD
439
440 -host | --host | --hos | --ho)
3a12e572 441 ac_prev=host_alias ;;
cd6ede75 442 -host=* | --host=* | --hos=* | --ho=*)
3a12e572 443 host_alias=$ac_optarg ;;
cd6ede75
UD
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
3a12e572 450 includedir=$ac_optarg ;;
cd6ede75
UD
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3a12e572 455 infodir=$ac_optarg ;;
cd6ede75
UD
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3a12e572 460 libdir=$ac_optarg ;;
cd6ede75
UD
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
3a12e572 467 libexecdir=$ac_optarg ;;
cd6ede75
UD
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
3a12e572 476 localstatedir=$ac_optarg ;;
cd6ede75
UD
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3a12e572 481 mandir=$ac_optarg ;;
cd6ede75
UD
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3a12e572 488 | --no-cr | --no-c | -n)
cd6ede75
UD
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3a12e572 502 oldincludedir=$ac_optarg ;;
cd6ede75
UD
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3a12e572 507 prefix=$ac_optarg ;;
cd6ede75
UD
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3a12e572 514 program_prefix=$ac_optarg ;;
cd6ede75
UD
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3a12e572 521 program_suffix=$ac_optarg ;;
cd6ede75
UD
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
3a12e572 538 program_transform_name=$ac_optarg ;;
cd6ede75
UD
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
3a12e572 548 sbindir=$ac_optarg ;;
cd6ede75
UD
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
3a12e572 559 sharedstatedir=$ac_optarg ;;
cd6ede75
UD
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
3a12e572 564 site=$ac_optarg ;;
cd6ede75
UD
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3a12e572 569 srcdir=$ac_optarg ;;
cd6ede75
UD
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3a12e572 576 sysconfdir=$ac_optarg ;;
cd6ede75
UD
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
3a12e572 579 ac_prev=target_alias ;;
cd6ede75 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3a12e572 581 target_alias=$ac_optarg ;;
cd6ede75
UD
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
3a12e572
UD
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
cd6ede75
UD
588
589 -with-* | --with-*)
3a12e572 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
cd6ede75 591 # Reject names that are not valid shell variable names.
3a12e572
UD
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
cd6ede75 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
3a12e572
UD
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
cd6ede75
UD
598 *) ac_optarg=yes ;;
599 esac
3a12e572 600 eval "with_$ac_package='$ac_optarg'" ;;
cd6ede75
UD
601
602 -without-* | --without-*)
3a12e572 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
cd6ede75 604 # Reject names that are not valid shell variable names.
3a12e572
UD
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
cd6ede75
UD
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3a12e572 620 x_includes=$ac_optarg ;;
cd6ede75
UD
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3a12e572 627 x_libraries=$ac_optarg ;;
cd6ede75 628
3a12e572
UD
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
cd6ede75
UD
632 ;;
633
3a12e572
UD
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
cd6ede75 644 *)
3a12e572
UD
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
cd6ede75
UD
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
3a12e572
UD
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
cd6ede75 659fi
cd6ede75 660
3a12e572
UD
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
cd6ede75 671
3a12e572
UD
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
8f73811b 674 localstatedir libdir includedir oldincludedir infodir mandir
cd6ede75 675do
3a12e572
UD
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
cd6ede75
UD
681 esac
682done
683
3a12e572
UD
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
cd6ede75 701
3a12e572
UD
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
cd6ede75 706
cd6ede75
UD
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
3a12e572
UD
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8f73811b
RM
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
3a12e572
UD
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
cd6ede75
UD
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
3a12e572
UD
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
cd6ede75 735 else
3a12e572
UD
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
cd6ede75
UD
738 fi
739fi
f4b07664
RM
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
3a12e572
UD
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
925c3c5c
UD
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
3a12e572
UD
784
785#
786# Report the --help message.
787#
788if test "$ac_init_help" = "long"; then
789 # Omit some internal or obsolete options to make the list less imposing.
790 # This message is too long to be a string in the A/UX 3.1 sh.
791 cat <<_ACEOF
f4b07664 792\`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
3a12e572
UD
793
794Usage: $0 [OPTION]... [VAR=VALUE]...
795
796To assign environment variables (e.g., CC, CFLAGS...), specify them as
797VAR=VALUE. See below for descriptions of some of the useful variables.
798
799Defaults for the options are specified in brackets.
800
801Configuration:
802 -h, --help display this help and exit
803 --help=short display options specific to this package
804 --help=recursive display the short help of all the included packages
805 -V, --version display version information and exit
806 -q, --quiet, --silent do not print \`checking...' messages
807 --cache-file=FILE cache test results in FILE [disabled]
808 -C, --config-cache alias for \`--cache-file=config.cache'
809 -n, --no-create do not create output files
810 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811
812_ACEOF
813
814 cat <<_ACEOF
815Installation directories:
816 --prefix=PREFIX install architecture-independent files in PREFIX
8f73811b 817 [$ac_default_prefix]
3a12e572 818 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8f73811b 819 [PREFIX]
3a12e572
UD
820
821By default, \`make install' will install all the files in
822\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
823an installation prefix other than \`$ac_default_prefix' using \`--prefix',
824for instance \`--prefix=\$HOME'.
825
826For better control, use the options below.
827
828Fine tuning of the installation directories:
829 --bindir=DIR user executables [EPREFIX/bin]
830 --sbindir=DIR system admin executables [EPREFIX/sbin]
831 --libexecdir=DIR program executables [EPREFIX/libexec]
832 --datadir=DIR read-only architecture-independent data [PREFIX/share]
833 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
834 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
835 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
836 --libdir=DIR object code libraries [EPREFIX/lib]
837 --includedir=DIR C header files [PREFIX/include]
838 --oldincludedir=DIR C header files for non-gcc [/usr/include]
839 --infodir=DIR info documentation [PREFIX/info]
840 --mandir=DIR man documentation [PREFIX/man]
841_ACEOF
842
843 cat <<\_ACEOF
844
845System types:
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
848_ACEOF
849fi
cd6ede75 850
3a12e572 851if test -n "$ac_init_help"; then
f4b07664
RM
852 case $ac_init_help in
853 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
854 esac
3a12e572
UD
855 cat <<\_ACEOF
856
857Optional Features:
858 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6b7f6183
RM
860 --disable-sanity-checks really do not use threads (should not be used except
861 in special situations) [default=yes]
fd54683c
RM
862 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
863 [default=no]
6b7f6183
RM
864 --enable-shared build shared library [default=yes if GNU ld &
865 ELF]
866 --enable-profile build profiled library [default=yes]
867 --enable-omitfp build undebuggable optimized library
868 [default=no]
869 --enable-bounded build with runtime bounds checking
870 [default=no]
871 --disable-versioning do not include versioning information in the library
872 objects [default=yes if supported]
873 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
874 [default=glibc default]
875 --enable-add-ons[=DIRS...]
876 configure and build add-ons in DIR1,DIR2,... search
877 for add-ons if no parameter given
3a12e572 878 --disable-hidden-plt do not hide internal function calls to avoid PLT
4df8c11d 879 --enable-bind-now disable lazy relocations in DSOs
6b7f6183 880 --enable-static-nss build static NSS modules [default=no]
3a12e572 881 --disable-force-install don't force installation of files from this package,
6b7f6183
RM
882 even if they are older than the installed files
883 --enable-kernel=VERSION compile for compatibility with kernel not older than
884 VERSION
3a12e572
UD
885 --enable-all-warnings enable all useful warnings gcc can issue
886
887Optional Packages:
888 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
889 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
6b7f6183 890 --with-gmp=DIRECTORY find GMP source code in DIRECTORY (not needed)
3a12e572
UD
891 --with-gd=DIR find libgd include dir and library with prefix DIR
892 --with-gd-include=DIR find libgd include files in DIR
893 --with-gd-lib=DIR find libgd library files in DIR
6b7f6183
RM
894 --with-fp if using floating-point hardware [default=yes]
895 --with-binutils=PATH specify location of binutils (as and ld)
896 --with-elf if using the ELF object format
897 --with-xcoff if using the XCOFF object format
3a12e572 898 --without-cvs if CVS should not be used
6b7f6183
RM
899 --with-headers=PATH location of system headers to use (for example
900 /usr/src/linux/include) [default=compiler
901 default]
3a12e572
UD
902 --with-tls enable support for TLS
903 --without-__thread do not use TLS features even when supporting them
904
905Some influential environment variables:
906 CC C compiler command
907 CFLAGS C compiler flags
908 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
909 nonstandard directory <lib dir>
910 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
911 headers in a nonstandard directory <include dir>
912 CPP C preprocessor
925c3c5c
UD
913 CXX C++ compiler command
914 CXXFLAGS C++ compiler flags
3a12e572
UD
915
916Use these variables to override the choices made by `configure' or to help
917it to find libraries and programs with nonstandard names/locations.
918
f4b07664 919Report bugs to <glibc>.
3a12e572
UD
920_ACEOF
921fi
922
923if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
925 ac_popdir=`pwd`
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
928 ac_builddir=.
929
930if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934else
935 ac_dir_suffix= ac_top_builddir=
936fi
937
938case $srcdir in
939 .) # No --srcdir option. We are building in place.
940 ac_srcdir=.
941 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=.
943 else
944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945 fi ;;
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
949 *) # Relative path.
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952esac
8f73811b
RM
953# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
954# absolute.
955ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
956ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
957ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
958ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3a12e572
UD
959
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
8f73811b 969 test -f $ac_srcdir/configure.in; then
3a12e572
UD
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 fi
975 cd $ac_popdir
976 done
977fi
978
979test -n "$ac_init_help" && exit 0
980if $ac_init_version; then
981 cat <<\_ACEOF
f4b07664 982GNU C Library configure (see version.h)
8f73811b 983generated by GNU Autoconf 2.57
3a12e572 984
8f73811b
RM
985Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
986Free Software Foundation, Inc.
3a12e572
UD
987This configure script is free software; the Free Software Foundation
988gives unlimited permission to copy, distribute and modify it.
989_ACEOF
990 exit 0
991fi
992exec 5>config.log
993cat >&5 <<_ACEOF
994This file contains any messages produced by compilers while
995running configure, to aid debugging if configure makes a mistake.
996
f4b07664 997It was created by GNU C Library $as_me (see version.h), which was
8f73811b 998generated by GNU Autoconf 2.57. Invocation command line was
3a12e572
UD
999
1000 $ $0 $@
1001
1002_ACEOF
1003{
1004cat <<_ASUNAME
1005## --------- ##
1006## Platform. ##
1007## --------- ##
1008
1009hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014
1015/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017
1018/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025
1026_ASUNAME
1027
1028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029for as_dir in $PATH
1030do
1031 IFS=$as_save_IFS
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1034done
1035
1036} >&5
1037
1038cat >&5 <<_ACEOF
1039
1040
1041## ----------- ##
1042## Core tests. ##
1043## ----------- ##
1044
1045_ACEOF
1046
1047
1048# Keep a trace of the command line.
1049# Strip out --no-create and --no-recursion so they do not pile up.
2abf9ff1 1050# Strip out --silent because we don't want to record it for future runs.
3a12e572 1051# Also quote any args containing shell meta-characters.
2abf9ff1 1052# Make two passes to allow for proper duplicate-argument suppression.
3a12e572 1053ac_configure_args=
2abf9ff1
RM
1054ac_configure_args0=
1055ac_configure_args1=
3a12e572 1056ac_sep=
2abf9ff1
RM
1057ac_must_keep_next=false
1058for ac_pass in 1 2
3a12e572 1059do
2abf9ff1
RM
1060 for ac_arg
1061 do
1062 case $ac_arg in
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 continue ;;
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 esac
1070 case $ac_pass in
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 2)
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
8f73811b 1075 ac_must_keep_next=false # Got value, back to normal.
2abf9ff1 1076 else
8f73811b
RM
1077 case $ac_arg in
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 esac
1085 ;;
1086 -* ) ac_must_keep_next=true ;;
1087 esac
2abf9ff1
RM
1088 fi
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1091 ac_sep=" "
1092 ;;
1093 esac
1094 done
3a12e572 1095done
2abf9ff1
RM
1096$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
3a12e572
UD
1098
1099# When interrupted or exit'd, cleanup temporary files, and complete
1100# config.log. We remove comments because anyway the quotes in there
1101# would cause problems or look ugly.
1102# WARNING: Be sure not to use single quotes in there, as some shells,
1103# such as our DU 5.0 friend, will then `close' the trap.
1104trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1106 {
1107 echo
f4b07664 1108
3a12e572
UD
1109 cat <<\_ASBOX
1110## ---------------- ##
1111## Cache variables. ##
1112## ---------------- ##
1113_ASBOX
1114 echo
1115 # The following way of writing the cache mishandles newlines in values,
1116{
1117 (set) 2>&1 |
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 *ac_space=\ *)
1120 sed -n \
8f73811b
RM
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
3a12e572
UD
1123 ;;
1124 *)
1125 sed -n \
8f73811b 1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3a12e572
UD
1127 ;;
1128 esac;
1129}
1130 echo
f4b07664
RM
1131
1132 cat <<\_ASBOX
1133## ----------------- ##
1134## Output variables. ##
1135## ----------------- ##
1136_ASBOX
1137 echo
1138 for ac_var in $ac_subst_vars
1139 do
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1144
1145 if test -n "$ac_subst_files"; then
1146 cat <<\_ASBOX
1147## ------------- ##
1148## Output files. ##
1149## ------------- ##
1150_ASBOX
1151 echo
1152 for ac_var in $ac_subst_files
1153 do
1154 eval ac_val=$`echo $ac_var`
8f73811b 1155 echo "$ac_var='"'"'$ac_val'"'"'"
f4b07664
RM
1156 done | sort
1157 echo
1158 fi
1159
3a12e572
UD
1160 if test -s confdefs.h; then
1161 cat <<\_ASBOX
1162## ----------- ##
1163## confdefs.h. ##
1164## ----------- ##
1165_ASBOX
1166 echo
f4b07664 1167 sed "/^$/d" confdefs.h | sort
3a12e572
UD
1168 echo
1169 fi
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1173 } >&5
8f73811b 1174 rm -f core core.* *.core &&
3a12e572
UD
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 exit $exit_status
1177 ' 0
1178for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180done
1181ac_signal=0
1182
1183# confdefs.h avoids OS command line length limits that DEFS can exceed.
1184rm -rf conftest* confdefs.h
1185# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186echo >confdefs.h
1187
1188# Predefined preprocessor variables.
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_NAME "$PACKAGE_NAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_VERSION "$PACKAGE_VERSION"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_STRING "$PACKAGE_STRING"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212_ACEOF
1213
1214
1215# Let the site file select an alternate cache file if it wants to.
cd6ede75
UD
1216# Prefer explicitly selected file to automatically selected ones.
1217if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 else
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 fi
1223fi
1224for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
3a12e572
UD
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
cd6ede75
UD
1229 . "$ac_site_file"
1230 fi
1231done
1232
1233if test -r "$cache_file"; then
3a12e572
UD
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238echo "$as_me: loading cache $cache_file" >&6;}
1239 case $cache_file in
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1242 esac
1243 fi
cd6ede75 1244else
3a12e572
UD
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246echo "$as_me: creating cache $cache_file" >&6;}
1247 >$cache_file
1248fi
1249
1250# Check that the precious variables saved in the cache have kept the same
1251# value.
1252ac_cache_corrupted=false
1253for ac_var in `(set) 2>&1 |
8f73811b 1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
3a12e572
UD
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1260 set,)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,set)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,);;
1269 *)
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
8f73811b 1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
3a12e572 1272echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
8f73811b 1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
3a12e572 1274echo "$as_me: former value: $ac_old_val" >&2;}
8f73811b 1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
3a12e572 1276echo "$as_me: current value: $ac_new_val" >&2;}
8f73811b 1277 ac_cache_corrupted=:
3a12e572
UD
1278 fi;;
1279 esac
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1282 case $ac_new_val in
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1286 esac
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 esac
1291 fi
1292done
1293if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
cd6ede75
UD
1299fi
1300
1301ac_ext=c
cd6ede75 1302ac_cpp='$CPP $CPPFLAGS'
3a12e572
UD
1303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306
1307
1308
cd6ede75 1309
63bda0c1 1310
cd6ede75
UD
1311
1312
3a12e572
UD
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
f4b07664
RM
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334 ac_config_headers="$ac_config_headers config.h"
3a12e572 1335
444518fe
UD
1336ac_aux_dir=
1337for ac_dir in scripts $srcdir/scripts; do
1338 if test -f $ac_dir/install-sh; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/install-sh -c"
1341 break
1342 elif test -f $ac_dir/install.sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install.sh -c"
1345 break
3a12e572
UD
1346 elif test -f $ac_dir/shtool; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/shtool install -c"
1349 break
444518fe
UD
1350 fi
1351done
1352if test -z "$ac_aux_dir"; then
3a12e572
UD
1353 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1354echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1355 { (exit 1); exit 1; }; }
444518fe 1356fi
3a12e572
UD
1357ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1358ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1359ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
444518fe 1360
cd6ede75 1361
c72637d4
RM
1362if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1363 { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1364echo "$as_me: error: you must configure in a separate build directory" >&2;}
1365 { (exit 1); exit 1; }; }
1366fi
1367
cd6ede75
UD
1368# This will get text that should go into config.make.
1369config_vars=
1370
1371# Check for a --with-gmp argument and set gmp-srcdir in config.make.
3a12e572 1372
cd6ede75
UD
1373# Check whether --with-gmp or --without-gmp was given.
1374if test "${with_gmp+set}" = set; then
1375 withval="$with_gmp"
6b7f6183
RM
1376
1377case "$with_gmp" in
3a12e572
UD
1378yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5
1379echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;}
1380 { (exit 1); exit 1; }; } ;;
cd6ede75
UD
1381''|no) ;;
1382*) config_vars="$config_vars
1383gmp-srcdir = $withval" ;;
1384esac
1385
3a12e572 1386fi;
c8f3e6db 1387# Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3a12e572 1388
c8f3e6db
UD
1389# Check whether --with-gd or --without-gd was given.
1390if test "${with_gd+set}" = set; then
1391 withval="$with_gd"
1392 case "$with_gd" in
e41db95b
UD
1393yes|''|no) ;;
1394*) libgd_include="-I$withval/include"
c8f3e6db
UD
1395 libgd_ldflags="-L$withval/lib" ;;
1396esac
1397
3a12e572 1398fi;
c8f3e6db 1399
e41db95b
UD
1400# Check whether --with-gd-include or --without-gd-include was given.
1401if test "${with_gd_include+set}" = set; then
1402 withval="$with_gd_include"
1403 case "$with_gd_include" in
1404''|no) ;;
1405*) libgd_include="-I$withval" ;;
1406esac
1407
3a12e572 1408fi;
e41db95b
UD
1409
1410# Check whether --with-gd-lib or --without-gd-lib was given.
1411if test "${with_gd_lib+set}" = set; then
1412 withval="$with_gd_lib"
1413 case "$with_gd_lib" in
1414''|no) ;;
1415*) libgd_ldflags="-L$withval" ;;
1416esac
1417
3a12e572 1418fi;
e41db95b
UD
1419
1420if test -n "$libgd_include"; then
1421 config_vars="$config_vars
cf90163d 1422CFLAGS-memusagestat.c = $libgd_include"
e41db95b
UD
1423fi
1424if test -n "$libgd_ldflags"; then
1425 config_vars="$config_vars
1426libgd-LDFLAGS = $libgd_ldflags"
1427fi
cd6ede75 1428
3a12e572 1429
cd6ede75
UD
1430# Check whether --with-fp or --without-fp was given.
1431if test "${with_fp+set}" = set; then
1432 withval="$with_fp"
1433 with_fp=$withval
1434else
1435 with_fp=yes
3a12e572 1436fi;
cd6ede75 1437
675322a5 1438
650425ce
UD
1439# Check whether --with-binutils or --without-binutils was given.
1440if test "${with_binutils+set}" = set; then
1441 withval="$with_binutils"
a5a0310d
UD
1442 path_binutils=$withval
1443else
650425ce 1444 path_binutils=''
3a12e572 1445fi;
cd6ede75 1446
cd6ede75
UD
1447# Check whether --with-elf or --without-elf was given.
1448if test "${with_elf+set}" = set; then
1449 withval="$with_elf"
1450 elf=$withval
1451else
1452 elf=no
3a12e572 1453fi;
cd6ede75 1454
5af3245a
UD
1455# Check whether --with-xcoff or --without-xcoff was given.
1456if test "${with_xcoff+set}" = set; then
1457 withval="$with_xcoff"
1458 xcoff=$withval
1459else
1460 xcoff=no
3a12e572 1461fi;
5af3245a 1462
d67281a7
UD
1463# Check whether --with-cvs or --without-cvs was given.
1464if test "${with_cvs+set}" = set; then
1465 withval="$with_cvs"
1466 with_cvs=$withval
1467else
1468 with_cvs=yes
3a12e572 1469fi;
6b3f2b3d
UD
1470if test "$with_cvs" = yes; then
1471 if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1472 then
1473 with_cvs=no
1474 fi
4442d7e8 1475fi
d67281a7 1476
cd6ede75 1477
3a12e572 1478
3c720987
UD
1479# Check whether --with-headers or --without-headers was given.
1480if test "${with_headers+set}" = set; then
1481 withval="$with_headers"
1482 sysheaders=$withval
1483else
1484 sysheaders=''
3a12e572 1485fi;
3c720987 1486
cd6ede75
UD
1487# Check whether --enable-sanity-checks or --disable-sanity-checks was given.
1488if test "${enable_sanity_checks+set}" = set; then
1489 enableval="$enable_sanity_checks"
1490 enable_sanity=$enableval
1491else
1492 enable_sanity=yes
3a12e572 1493fi;
cd6ede75 1494
7dbde9db
RM
1495
1496# Check whether --enable-check-abi or --disable-check-abi was given.
1497if test "${enable_check_abi+set}" = set; then
1498 enableval="$enable_check_abi"
1499 enable_check_abi=$enableval
1500else
fd54683c 1501 enable_check_abi=no
7dbde9db
RM
1502fi;
1503
5c2a0669 1504static=yes
cd6ede75
UD
1505# Check whether --enable-shared or --disable-shared was given.
1506if test "${enable_shared+set}" = set; then
1507 enableval="$enable_shared"
1508 shared=$enableval
1509else
1510 shared=default
3a12e572 1511fi;
cd6ede75
UD
1512# Check whether --enable-profile or --disable-profile was given.
1513if test "${enable_profile+set}" = set; then
1514 enableval="$enable_profile"
1515 profile=$enableval
1516else
1517 profile=yes
3a12e572 1518fi;
cd6ede75
UD
1519# Check whether --enable-omitfp or --disable-omitfp was given.
1520if test "${enable_omitfp+set}" = set; then
1521 enableval="$enable_omitfp"
1522 omitfp=$enableval
1523else
1524 omitfp=no
3a12e572 1525fi;
cd6ede75
UD
1526# Check whether --enable-bounded or --disable-bounded was given.
1527if test "${enable_bounded+set}" = set; then
1528 enableval="$enable_bounded"
1529 bounded=$enableval
1530else
1531 bounded=no
3a12e572 1532fi;
650425ce
UD
1533# Check whether --enable-versioning or --disable-versioning was given.
1534if test "${enable_versioning+set}" = set; then
1535 enableval="$enable_versioning"
1536 enable_versioning=$enableval
1537else
1538 enable_versioning=yes
3a12e572 1539fi;
cd6ede75 1540
62ab42d6
UD
1541# Check whether --enable-oldest-abi or --disable-oldest-abi was given.
1542if test "${enable_oldest_abi+set}" = set; then
1543 enableval="$enable_oldest_abi"
1544 oldest_abi=$enableval
1545else
1546 oldest_abi=no
3a12e572 1547fi;
62ab42d6
UD
1548if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
1549 oldest_abi=default
1550else
3a12e572 1551 cat >>confdefs.h <<_ACEOF
62ab42d6 1552#define GLIBC_OLDEST_ABI "$oldest_abi"
3a12e572 1553_ACEOF
62ab42d6
UD
1554
1555fi
1556
1557
cd6ede75
UD
1558# Check whether --enable-add-ons or --disable-add-ons was given.
1559if test "${enable_add_ons+set}" = set; then
1560 enableval="$enable_add_ons"
61952351 1561 case "$enableval" in
9c4c0024
UD
1562 yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
1563 test "$add_ons" = "*" && add_ons= ;;
61952351
UD
1564 *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
1565 esac
cd6ede75
UD
1566else
1567 add_ons=
3a12e572 1568fi;
cd6ede75 1569
61952351 1570
8d4b5a8a
UD
1571# Check whether --with-tls or --without-tls was given.
1572if test "${with_tls+set}" = set; then
1573 withval="$with_tls"
1574 usetls=$withval
1575else
9cce206e 1576 usetls=no
3a12e572 1577fi;
8d4b5a8a
UD
1578
1579
5b8f26b4
RM
1580# Check whether --with-__thread or --without-__thread was given.
1581if test "${with___thread+set}" = set; then
1582 withval="$with___thread"
1583 use__thread=$withval
1584else
1585 use__thread=yes
3a12e572 1586fi;
5b8f26b4 1587
749a9a4f
RM
1588# Check whether --enable-hidden-plt or --disable-hidden-plt was given.
1589if test "${enable_hidden_plt+set}" = set; then
1590 enableval="$enable_hidden_plt"
1591 hidden=$enableval
1592else
1593 hidden=yes
3a12e572 1594fi;
749a9a4f 1595if test "x$hidden" = xno; then
3a12e572 1596 cat >>confdefs.h <<\_ACEOF
749a9a4f 1597#define NO_HIDDEN 1
3a12e572 1598_ACEOF
749a9a4f
RM
1599
1600fi
1601
4df8c11d
UD
1602# Check whether --enable-bind-now or --disable-bind-now was given.
1603if test "${enable_bind_now+set}" = set; then
1604 enableval="$enable_bind_now"
1605 bindnow=$enableval
1606else
1607 bindnow=no
1608fi;
1609
1610
cd6ede75
UD
1611# Check whether --enable-static-nss or --disable-static-nss was given.
1612if test "${enable_static_nss+set}" = set; then
1613 enableval="$enable_static_nss"
1614 static_nss=$enableval
1615else
1616 static_nss=no
3a12e572 1617fi;
834cef7c 1618if test x"$static_nss" = xyes || test x"$shared" = xno; then
3172f58f 1619 static_nss=yes
3a12e572 1620 cat >>confdefs.h <<\_ACEOF
cd6ede75 1621#define DO_STATIC_NSS 1
3a12e572 1622_ACEOF
cd6ede75
UD
1623
1624fi
1625
73237de3
UD
1626# Check whether --enable-force-install or --disable-force-install was given.
1627if test "${enable_force_install+set}" = set; then
1628 enableval="$enable_force_install"
1629 force_install=$enableval
1630else
1631 force_install=yes
3a12e572 1632fi;
73237de3
UD
1633
1634
958f238f
UD
1635# Check whether --enable-kernel or --disable-kernel was given.
1636if test "${enable_kernel+set}" = set; then
1637 enableval="$enable_kernel"
1638 minimum_kernel=$enableval
3a12e572 1639fi;
654de60c
UD
1640if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
1641 # Better nothing than this.
1642 minimum_kernel=""
78bba25c
UD
1643else
1644 if test "$minimum_kernel" = current; then
1645 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
1646 fi
654de60c 1647fi
958f238f 1648
6cc7d725
UD
1649# Check whether --enable-all-warnings or --disable-all-warnings was given.
1650if test "${enable_all_warnings+set}" = set; then
1651 enableval="$enable_all_warnings"
1652 all_warnings=$enableval
3a12e572 1653fi;
958f238f 1654
2a068d20 1655
958f238f 1656# Make sure we can run config.sub.
3a12e572
UD
1657$ac_config_sub sun4 >/dev/null 2>&1 ||
1658 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1659echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1660 { (exit 1); exit 1; }; }
1661
1662echo "$as_me:$LINENO: checking build system type" >&5
1663echo $ECHO_N "checking build system type... $ECHO_C" >&6
1664if test "${ac_cv_build+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666else
1667 ac_cv_build_alias=$build_alias
1668test -z "$ac_cv_build_alias" &&
1669 ac_cv_build_alias=`$ac_config_guess`
1670test -z "$ac_cv_build_alias" &&
1671 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1672echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1673 { (exit 1); exit 1; }; }
1674ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1675 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1676echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1677 { (exit 1); exit 1; }; }
1678
1679fi
1680echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1681echo "${ECHO_T}$ac_cv_build" >&6
1682build=$ac_cv_build
1683build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1684build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1685build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1686
1687
1688echo "$as_me:$LINENO: checking host system type" >&5
1689echo $ECHO_N "checking host system type... $ECHO_C" >&6
1690if test "${ac_cv_host+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692else
1693 ac_cv_host_alias=$host_alias
1694test -z "$ac_cv_host_alias" &&
1695 ac_cv_host_alias=$ac_cv_build_alias
1696ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1697 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1698echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1699 { (exit 1); exit 1; }; }
1700
1701fi
1702echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1703echo "${ECHO_T}$ac_cv_host" >&6
1704host=$ac_cv_host
1705host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1706host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1707host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
cd6ede75 1708
cd6ede75
UD
1709
1710
1711# The way shlib-versions is used to generate soversions.mk uses a
1712# fairly simplistic model for name recognition that can't distinguish
1713# i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
1714# of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
1715# tell. This doesn't get used much beyond that, so it's fairly safe.
1716case "$host_os" in
1717linux*)
1718 ;;
1719gnu*)
1720 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
1721 ;;
1722esac
1723
1724# We keep the original values in `$config_*' and never modify them, so we
1725# can write them unchanged into config.make. Everything else uses
1726# $machine, $vendor, and $os, and changes them whenever convenient.
1727config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
1728
0816838f
UD
1729# Don't allow vendor == "unknown"
1730test "$config_vendor" = unknown && config_vendor=
1731config_os="`echo $config_os | sed 's/^unknown-//'`"
1732
cd6ede75
UD
1733# Some configurations imply other options.
1734case "$host_os" in
1735gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
1736 # These systems always use GNU tools.
1737 gnu_ld=yes gnu_as=yes ;;
1738esac
1739case "$host_os" in
1740# i586-linuxaout is mangled into i586-pc-linux-gnuaout
1741linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
1742 ;;
ffa8d2a0 1743gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
cd6ede75
UD
1744 # These systems (almost) always use the ELF format.
1745 elf=yes
1746 ;;
5af3245a
UD
1747aix*)
1748 # These systems are always xcoff
1749 xcoff=yes
a711b01d 1750 elf=no
5af3245a 1751 ;;
cd6ede75
UD
1752esac
1753
8f73811b
RM
1754# The configure fragment of an add-on port can modify these to supplement
1755# or override the table in the case statement below. No fragment should
1756# ever change the config_* variables, however.
cd6ede75
UD
1757machine=$config_machine
1758vendor=$config_vendor
1759os=$config_os
1760
a808d541
UD
1761# config.guess on some IBM machines says `rs6000' instead of `powerpc'.
1762# Unify this here.
1763if test "$machine" = rs6000; then
1764 machine="powerpc"
1765fi
1766
f4b07664
RM
1767# Braindead PowerPC box with absolutely no FPU.
1768case "$machine-$host_os" in
1769 powerpc*-*soft)
1770 with_fp=no
1771 ;;
1772esac
1773
8f73811b
RM
1774
1775# An add-on can set this when it the tuple to disable the sanity check below.
1776libc_config_ok=no
1777
1778
1779
1780subdirs="$subdirs "
1781
1782
1783add_ons_sfx=
1784add_ons_pfx=
1785if test x"$add_ons" != x; then
1786 for f in $add_ons; do
1787 # Some sanity checks
1788 case "$f" in
1789 crypt)
1790 { { echo "$as_me:$LINENO: error:
1791*** It seems that you're using an old \`crypt' add-on. crypt is now
1792*** part of glibc and using the old add-on will not work with this
1793*** release. Start again with fresh sources and without the old
1794*** \`crypt' add-on." >&5
1795echo "$as_me: error:
1796*** It seems that you're using an old \`crypt' add-on. crypt is now
1797*** part of glibc and using the old add-on will not work with this
1798*** release. Start again with fresh sources and without the old
1799*** \`crypt' add-on." >&2;}
1800 { (exit 1); exit 1; }; }
1801 ;;
1802 localedata)
1803 { { echo "$as_me:$LINENO: error:
1804*** It seems that you're using an old \`localedata' add-on. localedata
1805*** is now part of glibc and using the old add-on will not work with
1806*** this release. Start again with fresh sources and without the old
1807*** \`localedata' add-on." >&5
1808echo "$as_me: error:
1809*** It seems that you're using an old \`localedata' add-on. localedata
1810*** is now part of glibc and using the old add-on will not work with
1811*** this release. Start again with fresh sources and without the old
1812*** \`localedata' add-on." >&2;}
1813 { (exit 1); exit 1; }; }
1814 ;;
1815 esac
1816
1817 # Test whether such a subdir really exists.
1818 if test -d $srcdir/$f; then
1819 add_ons_pfx="$add_ons_pfx $f/"
1820 add_ons_sfx="$add_ons_sfx /$f"
1821 else
1822 { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5
1823echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;}
1824 { (exit 1); exit 1; }; }
1825 fi
1826 done
1827
1828 for f in $add_ons; do
1829 frag=$srcdir/$f/configure
1830 if test -r $frag; then
1831 echo "$as_me:$LINENO: result: running configure fragment for add-on $f" >&5
1832echo "${ECHO_T}running configure fragment for add-on $f" >&6
1833 . $frag
1834 else
1835 { echo "$as_me:$LINENO: WARNING: add-on fragment $frag missing" >&5
1836echo "$as_me: WARNING: add-on fragment $frag missing" >&2;}
1837 fi
1838 done
1839fi
1840
1841
1842
7efb9bd1
UD
1843###
1844### I put this here to prevent those annoying emails from people who cannot
1845### read and try to compile glibc on unsupported platforms. --drepper
1846###
1847### By using the undocumented --enable-hacker-mode option for configure
1848### one can skip this test to make the configuration not fail for unsupported
1849### platforms.
1850###
8f73811b 1851if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
7efb9bd1 1852 case "$machine-$host_os" in
f0d8cfd7 1853 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
7efb9bd1
UD
1854 ;;
1855 *)
1856 echo "*** The GNU C library is currently not available for this platform."
1857 echo "*** So far nobody cared to port it and if there is no volunteer it"
1858 echo "*** might never happen. So, if you have interest to see glibc on"
1859 echo "*** this platform visit"
1860 echo "*** http://www.gnu.org/software/libc/porting.html"
1861 echo "*** and join the group of porters"
1862 exit 1
1863 ;;
1864 esac
1865fi
1866
cd6ede75 1867# Expand the configuration machine name into a subdirectory by architecture
8f73811b
RM
1868# type and particular chip. If an add-on configure fragment already set
1869# base_machine, we don't change it.
1870test -n "$base_machine" || case "$machine" in
cd6ede75
UD
1871a29k | am29000) base_machine=a29k machine=a29k ;;
1872alpha*) base_machine=alpha machine=alpha/$machine ;;
0c8b61e6 1873arm*) base_machine=arm machine=arm/arm32/$machine ;;
60c96635
UD
1874c3[012]) base_machine=cx0 machine=cx0/c30 ;;
1875c4[04]) base_machine=cx0 machine=cx0/c40 ;;
b15cb495
UD
1876hppa*64*) base_machine=hppa machine=hppa/hppa64 ;;
1877hppa*) base_machine=hppa machine=hppa/hppa1.1 ;;
cd6ede75 1878i[3456]86) base_machine=i386 machine=i386/$machine ;;
9dfa9a5a 1879ia64) base_machine=ia64 machine=ia64 ;;
cd6ede75
UD
1880m680?0) base_machine=m68k machine=m68k/$machine ;;
1881m68k) base_machine=m68k machine=m68k/m68020 ;;
1882m88???) base_machine=m88k machine=m88k/$machine ;;
1883m88k) base_machine=m88k machine=m88k/m88100 ;;
e077d10d 1884mips64*) base_machine=mips64
3217788f 1885 case "$CC $CFLAGS $CPPFLAGS " in
e077d10d
AO
1886 *" -mabi=n32 "*) mips_cc_abi=n32 ;;
1887 *" -mabi=64 "*|*" -mabi=n64 "*) mips_cc_abi=64 ;;
1888 *" -mabi=32 "*|*" -mabi=o32 "*) mips_cc_abi=32 ;;
1889 *) mips_cc_abi=default ;;
1890 esac
1891 case $config_os in
1892 *abin32*) mips_config_abi=n32 ;;
1893 *abi64*|*abin64*) mips_config_abi=64 ;;
1894 *abi32*|*abio32*) mips_config_abi=32 ;;
1895 *) mips_config_abi=$mips_cc_abi ;;
1896 esac
1897 case $mips_config_abi in
1898 default) machine=mips/mips64/n32 mips_config_abi=n32 ;;
1899 n32) machine=mips/mips64/n32 ;;
1900 64) machine=mips/mips64/n64 ;;
1901 32) machine=mips/mips32/kern64 ;;
1902 esac
1903 machine=$machine/$config_machine
1904 if test $mips_config_abi != $mips_cc_abi; then
1905 # This won't make it to config.make, but we want to
1906 # set this in case configure tests depend on it.
1907 CPPFLAGS="$CPPFLAGS -mabi=$mips_config_abi"
1908 fi
1909 ;;
1910mips*) base_machine=mips machine=mips/mips32/$machine ;;
a8a20be0
UD
1911powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
1912powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
136d4332
UD
1913s390) base_machine=s390 machine=s390/s390-32 ;;
1914s390x) base_machine=s390 machine=s390/s390-64 ;;
0da2f50b
UD
1915sh3*) base_machine=sh machine=sh/sh3 ;;
1916sh4*) base_machine=sh machine=sh/sh4 ;;
ca34d7a7
UD
1917sparc | sparcv[67])
1918 base_machine=sparc machine=sparc/sparc32 ;;
1919sparcv8 | supersparc | hypersparc)
1920 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
ae6b8730
RH
1921sparcv8plus | sparcv8plusa | sparcv9)
1922 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
bb769ab6
UD
1923sparcv8plusb | sparcv9b)
1924 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
ca34d7a7
UD
1925sparc64 | ultrasparc)
1926 base_machine=sparc machine=sparc/sparc64 ;;
bb769ab6
UD
1927sparc64b | ultrasparc3)
1928 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
0c8b61e6 1929thumb*) base_machine=thumb machine=arm/thumb/$machine ;;
3a2832a0 1930*) base_machine=$machine ;;
cd6ede75
UD
1931esac
1932
1933
dfd2257a 1934if test "$base_machine" = "i386"; then
3a12e572 1935 cat >>confdefs.h <<\_ACEOF
dfd2257a 1936#define USE_REGPARMS 1
3a12e572 1937_ACEOF
dfd2257a
UD
1938
1939fi
1940
cd6ede75
UD
1941# Compute the list of sysdep directories for this configuration.
1942# This can take a while to compute.
1943sysdep_dir=$srcdir/sysdeps
3a12e572
UD
1944echo "$as_me:$LINENO: checking sysdep dirs" >&5
1945echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
cd6ede75
UD
1946# Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1947os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1948
1949case "$os" in
1950gnu*)
1951 base_os=mach/hurd ;;
1952netbsd* | 386bsd* | freebsd* | bsdi*)
1953 base_os=unix/bsd/bsd4.4 ;;
1954osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1955 base_os=unix/bsd ;;
1956sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1957 base_os=unix/sysv ;;
9a97d1f7
UD
1958irix6*)
1959 base_os=unix/sysv/irix6/$os ;;
cd6ede75
UD
1960solaris[2-9]*)
1961 base_os=unix/sysv/sysv4 ;;
908c3d5b
UD
1962hpux*)
1963 base_os=unix/sysv/hpux/$os ;;
f0d8cfd7
UD
1964aix4.3*)
1965 base_os=unix/sysv/aix/aix4.3 ;;
cd6ede75
UD
1966none)
1967 base_os=standalone ;;
1968*)
1969 base_os='' ;;
1970esac
1971
1972# For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1973tail=$os
1974ostry=$os
1975while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1976 ostry="$ostry /$o"
1977 tail=$o
1978done
1979o=`echo $tail | sed 's/[0-9]*$//'`
1980if test $o != $tail; then
1981 ostry="$ostry /$o"
1982fi
1983# For linux-gnu, try linux-gnu, then linux.
1984o=`echo $tail | sed 's/-.*$//'`
1985if test $o != $tail; then
1986 ostry="$ostry /$o"
1987fi
1988
1989# For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1990base=
1991tail=$base_os
1992while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1993 set $b
1994 base="$base /$1"
1995 tail="$2"
1996done
1997
ae6b8730 1998# For sparc/sparc32, try sparc/sparc32 and then sparc.
cd6ede75
UD
1999mach=
2000tail=$machine
2001while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
2002 set $m
2003 # Prepend the machine's FPU directory unless --without-fp.
2004 if test "$with_fp" = yes; then
2005 mach="$mach /$1/fpu"
f4b07664
RM
2006 else
2007 mach="$mach /$1/nofpu"
cd6ede75
UD
2008 fi
2009 mach="$mach /$1"
2010 tail="$2"
2011done
2012
2013
2014# Find what sysdep directories exist.
2015sysnames=
2016IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2017for d in $add_ons_pfx ''; do
2018 for b in $base ''; do
2019 for m0 in $mach ''; do
2020 for v in /$vendor ''; do
ae828bc6 2021 test "$v" = / && continue
cd6ede75 2022 for o in /$ostry ''; do
ae828bc6 2023 test "$o" = / && continue
cd6ede75 2024 for m in $mach ''; do
8f73811b
RM
2025 for a in $add_ons_sfx ''; do
2026 if test "$m0$b$v$o$m"; then
2027 try="${d}sysdeps$m0$b$v$o$m$a"
2028 test -n "$enable_debug_configure" &&
2029 echo "$0 DEBUG: try $try" >&2
2030 if test -d $srcdir/$try; then
2031 sysnames="$sysnames $try"
2032 { test -n "$o" || test -n "$b"; } && os_used=t
2033 { test -n "$m" || test -n "$m0"; } && machine_used=t
2034 fi
cd6ede75 2035 fi
8f73811b 2036 done
cd6ede75
UD
2037 done
2038 done
2039 done
2040 done
2041 done
2042done
2043IFS="$ac_save_ifs"
2044
2045if test -z "$os_used" && test "$os" != none; then
3a12e572
UD
2046 { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
2047echo "$as_me: error: Operating system $os is not supported." >&2;}
2048 { (exit 1); exit 1; }; }
cd6ede75
UD
2049fi
2050if test -z "$machine_used" && test "$machine" != none; then
3a12e572
UD
2051 { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
2052echo "$as_me: error: The $machine is not supported." >&2;}
2053 { (exit 1); exit 1; }; }
cd6ede75
UD
2054fi
2055
2056# We have now validated the configuration.
2057
2058
2059# If using ELF, look for an `elf' subdirectory of each machine directory.
2060# We prepend these rather than inserting them whereever the machine appears
2061# because things specified by the machine's ELF ABI should override
2062# OS-specific things, and should always be the same for any OS on the
2063# machine (otherwise what's the point of an ABI?).
2064if test "$elf" = yes; then
2065 elf_dirs=
2066 for d in $add_ons_pfx ''; do
cd6ede75 2067 for m in $mach; do
9c4c0024 2068 if test -d $srcdir/${d}sysdeps$m/elf; then
cd6ede75
UD
2069 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
2070 fi
2071 done
2072 done
2073 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
2074fi
2075
2076
2077# Expand the list of system names into a full list of directories
2078# from each element's parent name and Implies file (if present).
2079set $sysnames
2080names=
2081while test $# -gt 0; do
2082 name=$1
2083 shift
2084
2085 case " $names " in *" $name "*)
2086 # Already in the list.
2087 continue
2088 esac
2089
2090 # Report each name as we discover it, so there is no long pause in output.
3a12e572 2091 echo $ECHO_N "$name $ECHO_C" >&6
cd6ede75
UD
2092
2093 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2094
2095 case $name in
2096 /*) xsrcdir= ;;
2097 *) xsrcdir=$srcdir/ ;;
2098 esac
2099 test -n "$enable_debug_configure" &&
2100 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2101
2102 if test -f $xsrcdir$name/Implies; then
2103 # Collect more names from the `Implies' file (removing comments).
2104 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2105 implied=
2106 for x in $implied_candidate; do
636ccfc8 2107 found=no
cd6ede75
UD
2108 if test -d $xsrcdir$name_base/$x; then
2109 implied="$implied $name_base/$x";
636ccfc8
UD
2110 found=yes
2111 fi
2112 for d in $add_ons_pfx ''; do
2113 try="${d}sysdeps/$x"
2114 case $d in
2115 /*) try_srcdir= ;;
2116 *) try_srcdir=$srcdir/ ;;
2117 esac
2118 test -n "$enable_debug_configure" &&
2119 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2120 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2121 then
2122 implied="$implied $try"
2123 found=yes
2124 fi
2125 done
2126 if test $found = no; then
3a12e572
UD
2127 { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2128echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
cd6ede75
UD
2129 fi
2130 done
2131 else
2132 implied=
2133 fi
2134
2135 # Add NAME to the list of names.
2136 names="$names $name"
2137
2138 # Find the parent of NAME, using the empty string if it has none.
2139 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2140
2141 # Add the names implied by NAME, and NAME's parent (if it has one), to
2142 # the list of names to be processed (the argument list). We prepend the
2143 # implied names to the list and append the parent. We want implied
2144 # directories to come before further directories inferred from the
2145 # configuration components; this ensures that for sysv4, unix/common
2146 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2147 # after sysv4).
2148 sysnames="`echo $implied $* $parent`"
2149 test -n "$sysnames" && set $sysnames
2150done
2151
2152# Add the default directories.
a3a4a74e 2153default_sysnames=sysdeps/generic
2de7874e 2154if test "$elf" = yes; then
a3a4a74e 2155 default_sysnames="sysdeps/generic/elf $default_sysnames"
2de7874e 2156fi
a3a4a74e 2157sysnames="$names $default_sysnames"
cd6ede75
UD
2158
2159# The other names were emitted during the scan.
3a12e572
UD
2160echo "$as_me:$LINENO: result: $default_sysnames" >&5
2161echo "${ECHO_T}$default_sysnames" >&6
cd6ede75
UD
2162
2163
2164### Locate tools.
2165
2166# Find a good install program. We prefer a C program (faster),
2167# so one script is as good as another. But avoid the broken or
2168# incompatible versions:
2169# SysV /etc/install, /usr/sbin/install
2170# SunOS /usr/etc/install
2171# IRIX /sbin/install
2172# AIX /bin/install
3a12e572 2173# AmigaOS /C/install, which installs bootblocks on floppy discs
5c2a0669 2174# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
cd6ede75
UD
2175# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2176# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2177# ./install, which can be erroneously created by make from ./install.sh.
3a12e572
UD
2178echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2179echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
cd6ede75 2180if test -z "$INSTALL"; then
3a12e572
UD
2181if test "${ac_cv_path_install+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 # Account for people who put trailing slashes in PATH elements.
2190case $as_dir/ in
2191 ./ | .// | /cC/* | \
2192 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2193 /usr/ucb/* ) ;;
2194 *)
2195 # OSF1 and SCO ODT 3.0 have their own names for install.
2196 # Don't use installbsd from OSF since it installs stuff as root
2197 # by default.
2198 for ac_prog in ginstall scoinst install; do
2199 for ac_exec_ext in '' $ac_executable_extensions; do
8f73811b
RM
2200 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2201 if test $ac_prog = install &&
2202 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2203 # AIX install. It has an incompatible calling convention.
2204 :
2205 elif test $ac_prog = install &&
2206 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2207 # program-specific install script used by HP pwplus--don't use.
2208 :
2209 else
2210 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2211 break 3
2212 fi
2213 fi
cd6ede75 2214 done
3a12e572
UD
2215 done
2216 ;;
2217esac
2218done
2219
cd6ede75
UD
2220
2221fi
2222 if test "${ac_cv_path_install+set}" = set; then
3a12e572 2223 INSTALL=$ac_cv_path_install
cd6ede75
UD
2224 else
2225 # As a last resort, use the slow shell script. We don't cache a
2226 # path for INSTALL within a source directory, because that will
2227 # break other packages using the cache if that directory is
2228 # removed, or if the path is relative.
3a12e572 2229 INSTALL=$ac_install_sh
cd6ede75
UD
2230 fi
2231fi
3a12e572
UD
2232echo "$as_me:$LINENO: result: $INSTALL" >&5
2233echo "${ECHO_T}$INSTALL" >&6
cd6ede75
UD
2234
2235# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2236# It thinks the first close brace ends the variable substitution.
2237test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2238
3a12e572 2239test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5c2a0669 2240
cd6ede75
UD
2241test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2242
ed9c47d9 2243if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
cd6ede75 2244 # The makefiles need to use a different form to find it in $srcdir.
ed9c47d9 2245 INSTALL='\$(..)./scripts/install-sh -c'
cd6ede75 2246fi
3a12e572
UD
2247echo "$as_me:$LINENO: checking whether ln -s works" >&5
2248echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2249LN_S=$as_ln_s
2250if test "$LN_S" = "ln -s"; then
2251 echo "$as_me:$LINENO: result: yes" >&5
2252echo "${ECHO_T}yes" >&6
cd6ede75 2253else
3a12e572
UD
2254 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2255echo "${ECHO_T}no, using $LN_S" >&6
cd6ede75
UD
2256fi
2257
63bda0c1 2258
4baa087a
RM
2259ac_ext=c
2260ac_cpp='$CPP $CPPFLAGS'
2261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2263ac_compiler_gnu=$ac_cv_c_compiler_gnu
2264if test -n "$ac_tool_prefix"; then
2265 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2266set dummy ${ac_tool_prefix}gcc; ac_word=$2
3a12e572
UD
2267echo "$as_me:$LINENO: checking for $ac_word" >&5
2268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269if test "${ac_cv_prog_CC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 2271else
63bda0c1
UD
2272 if test -n "$CC"; then
2273 ac_cv_prog_CC="$CC" # Let the user override the test.
cd6ede75 2274else
3a12e572
UD
2275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276for as_dir in $PATH
2277do
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 2282 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3a12e572
UD
2283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284 break 2
2285 fi
2286done
2287done
2288
cd6ede75
UD
2289fi
2290fi
3a12e572 2291CC=$ac_cv_prog_CC
4bca4c17 2292if test -n "$CC"; then
3a12e572
UD
2293 echo "$as_me:$LINENO: result: $CC" >&5
2294echo "${ECHO_T}$CC" >&6
4bca4c17 2295else
3a12e572
UD
2296 echo "$as_me:$LINENO: result: no" >&5
2297echo "${ECHO_T}no" >&6
4bca4c17
UD
2298fi
2299
ae828bc6 2300fi
4baa087a
RM
2301if test -z "$ac_cv_prog_CC"; then
2302 ac_ct_CC=$CC
2303 # Extract the first word of "gcc", so it can be a program name with args.
2304set dummy gcc; ac_word=$2
3a12e572
UD
2305echo "$as_me:$LINENO: checking for $ac_word" >&5
2306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4baa087a 2307if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3a12e572 2308 echo $ECHO_N "(cached) $ECHO_C" >&6
04be94a8 2309else
4baa087a
RM
2310 if test -n "$ac_ct_CC"; then
2311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
04be94a8 2312else
3a12e572
UD
2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 2320 ac_cv_prog_ac_ct_CC="gcc"
3a12e572
UD
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324done
2325done
2326
04be94a8
UD
2327fi
2328fi
4baa087a
RM
2329ac_ct_CC=$ac_cv_prog_ac_ct_CC
2330if test -n "$ac_ct_CC"; then
2331 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2332echo "${ECHO_T}$ac_ct_CC" >&6
4bca4c17 2333else
3a12e572
UD
2334 echo "$as_me:$LINENO: result: no" >&5
2335echo "${ECHO_T}no" >&6
4bca4c17
UD
2336fi
2337
4baa087a 2338 CC=$ac_ct_CC
63bda0c1 2339else
4baa087a 2340 CC="$ac_cv_prog_CC"
04be94a8 2341fi
cd6ede75 2342
4baa087a
RM
2343if test -z "$CC"; then
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2346set dummy ${ac_tool_prefix}cc; ac_word=$2
3a12e572
UD
2347echo "$as_me:$LINENO: checking for $ac_word" >&5
2348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4baa087a 2349if test "${ac_cv_prog_CC+set}" = set; then
3a12e572 2350 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 2351else
4baa087a
RM
2352 if test -n "$CC"; then
2353 ac_cv_prog_CC="$CC" # Let the user override the test.
cd6ede75 2354else
3a12e572
UD
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 2362 ac_cv_prog_CC="${ac_tool_prefix}cc"
3a12e572
UD
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366done
2367done
2368
cd6ede75
UD
2369fi
2370fi
4baa087a
RM
2371CC=$ac_cv_prog_CC
2372if test -n "$CC"; then
2373 echo "$as_me:$LINENO: result: $CC" >&5
2374echo "${ECHO_T}$CC" >&6
4bca4c17 2375else
3a12e572
UD
2376 echo "$as_me:$LINENO: result: no" >&5
2377echo "${ECHO_T}no" >&6
4bca4c17
UD
2378fi
2379
cd6ede75 2380fi
4baa087a
RM
2381if test -z "$ac_cv_prog_CC"; then
2382 ac_ct_CC=$CC
2383 # Extract the first word of "cc", so it can be a program name with args.
2384set dummy cc; ac_word=$2
3a12e572
UD
2385echo "$as_me:$LINENO: checking for $ac_word" >&5
2386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4baa087a 2387if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3a12e572 2388 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 2389else
4baa087a
RM
2390 if test -n "$ac_ct_CC"; then
2391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
cd6ede75 2392else
3a12e572
UD
2393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394for as_dir in $PATH
2395do
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 2400 ac_cv_prog_ac_ct_CC="cc"
3a12e572
UD
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2403 fi
2404done
2405done
2406
cd6ede75
UD
2407fi
2408fi
4baa087a
RM
2409ac_ct_CC=$ac_cv_prog_ac_ct_CC
2410if test -n "$ac_ct_CC"; then
2411 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2412echo "${ECHO_T}$ac_ct_CC" >&6
4bca4c17 2413else
3a12e572
UD
2414 echo "$as_me:$LINENO: result: no" >&5
2415echo "${ECHO_T}no" >&6
4bca4c17
UD
2416fi
2417
4baa087a 2418 CC=$ac_ct_CC
63bda0c1 2419else
4baa087a 2420 CC="$ac_cv_prog_CC"
cd6ede75
UD
2421fi
2422
4baa087a
RM
2423fi
2424if test -z "$CC"; then
2425 # Extract the first word of "cc", so it can be a program name with args.
2426set dummy cc; ac_word=$2
3a12e572
UD
2427echo "$as_me:$LINENO: checking for $ac_word" >&5
2428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4baa087a 2429if test "${ac_cv_prog_CC+set}" = set; then
3a12e572 2430 echo $ECHO_N "(cached) $ECHO_C" >&6
aec103d3 2431else
4baa087a
RM
2432 if test -n "$CC"; then
2433 ac_cv_prog_CC="$CC" # Let the user override the test.
aec103d3 2434else
4baa087a 2435 ac_prog_rejected=no
3a12e572
UD
2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437for as_dir in $PATH
2438do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a
RM
2443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2444 ac_prog_rejected=yes
2445 continue
2446 fi
2447 ac_cv_prog_CC="cc"
3a12e572
UD
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2450 fi
2451done
2452done
2453
4baa087a
RM
2454if test $ac_prog_rejected = yes; then
2455 # We found a bogon in the path, so make sure we never use it.
2456 set dummy $ac_cv_prog_CC
2457 shift
2458 if test $# != 0; then
2459 # We chose a different compiler from the bogus one.
2460 # However, it has the same basename, so the bogon will be chosen
2461 # first if we set CC to just the basename; use the full file name.
2462 shift
2463 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3a12e572 2464 fi
14519931 2465fi
3a12e572
UD
2466fi
2467fi
2468CC=$ac_cv_prog_CC
2469if test -n "$CC"; then
2470 echo "$as_me:$LINENO: result: $CC" >&5
2471echo "${ECHO_T}$CC" >&6
cd6ede75 2472else
3a12e572
UD
2473 echo "$as_me:$LINENO: result: no" >&5
2474echo "${ECHO_T}no" >&6
cd6ede75 2475fi
cd6ede75 2476
63bda0c1 2477fi
3a12e572
UD
2478if test -z "$CC"; then
2479 if test -n "$ac_tool_prefix"; then
4baa087a
RM
2480 for ac_prog in cl
2481 do
2482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3a12e572
UD
2484echo "$as_me:$LINENO: checking for $ac_word" >&5
2485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491else
2492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493for as_dir in $PATH
2494do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 2499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3a12e572
UD
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503done
2504done
cd6ede75 2505
3a12e572
UD
2506fi
2507fi
2508CC=$ac_cv_prog_CC
2509if test -n "$CC"; then
2510 echo "$as_me:$LINENO: result: $CC" >&5
2511echo "${ECHO_T}$CC" >&6
2512else
2513 echo "$as_me:$LINENO: result: no" >&5
2514echo "${ECHO_T}no" >&6
2515fi
cd6ede75 2516
4baa087a
RM
2517 test -n "$CC" && break
2518 done
3a12e572 2519fi
4baa087a 2520if test -z "$CC"; then
3a12e572 2521 ac_ct_CC=$CC
4baa087a
RM
2522 for ac_prog in cl
2523do
2524 # Extract the first word of "$ac_prog", so it can be a program name with args.
2525set dummy $ac_prog; ac_word=$2
3a12e572
UD
2526echo "$as_me:$LINENO: checking for $ac_word" >&5
2527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2528if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 2530else
3a12e572
UD
2531 if test -n "$ac_ct_CC"; then
2532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2533else
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 2541 ac_cv_prog_ac_ct_CC="$ac_prog"
3a12e572
UD
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545done
2546done
2547
2548fi
2549fi
2550ac_ct_CC=$ac_cv_prog_ac_ct_CC
2551if test -n "$ac_ct_CC"; then
2552 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2553echo "${ECHO_T}$ac_ct_CC" >&6
cd6ede75 2554else
3a12e572
UD
2555 echo "$as_me:$LINENO: result: no" >&5
2556echo "${ECHO_T}no" >&6
cd6ede75 2557fi
4baa087a
RM
2558
2559 test -n "$ac_ct_CC" && break
2560done
cd6ede75 2561
3a12e572 2562 CC=$ac_ct_CC
cd6ede75
UD
2563fi
2564
cd6ede75 2565fi
3a12e572
UD
2566
2567
2abf9ff1
RM
2568test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2569See \`config.log' for more details." >&5
2570echo "$as_me: error: no acceptable C compiler found in \$PATH
2571See \`config.log' for more details." >&2;}
3a12e572
UD
2572 { (exit 1); exit 1; }; }
2573
2574# Provide some information about the compiler.
2575echo "$as_me:$LINENO:" \
2576 "checking for C compiler version" >&5
2577ac_compiler=`set X $ac_compile; echo $2`
2578{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2579 (eval $ac_compiler --version </dev/null >&5) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2583{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2584 (eval $ac_compiler -v </dev/null >&5) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }
2588{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2589 (eval $ac_compiler -V </dev/null >&5) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }
2593
2594EXEEXT=
2595echo "$as_me:$LINENO: checking for suffix of object files" >&5
2596echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2597if test "${ac_cv_objext+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 2599else
3a12e572 2600 cat >conftest.$ac_ext <<_ACEOF
8f73811b 2601#line $LINENO "configure"
2abf9ff1
RM
2602/* confdefs.h. */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
2606/* end confdefs.h. */
3a12e572 2607
3a12e572
UD
2608int
2609main ()
2610{
2611
2612 ;
2613 return 0;
2614}
2615_ACEOF
2616rm -f conftest.o conftest.obj
2617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; then
2622 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2623 case $ac_file in
f4b07664 2624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3a12e572
UD
2625 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2626 break;;
2627 esac
2628done
2629else
2630 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
2631sed 's/^/| /' conftest.$ac_ext >&5
2632
2633{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2634See \`config.log' for more details." >&5
2635echo "$as_me: error: cannot compute suffix of object files: cannot compile
2636See \`config.log' for more details." >&2;}
3a12e572
UD
2637 { (exit 1); exit 1; }; }
2638fi
2639
2640rm -f conftest.$ac_cv_objext conftest.$ac_ext
2641fi
2642echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2643echo "${ECHO_T}$ac_cv_objext" >&6
2644OBJEXT=$ac_cv_objext
2645ac_objext=$OBJEXT
2646echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2647echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2648if test "${ac_cv_c_compiler_gnu+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650else
2651 cat >conftest.$ac_ext <<_ACEOF
8f73811b 2652#line $LINENO "configure"
2abf9ff1
RM
2653/* confdefs.h. */
2654_ACEOF
2655cat confdefs.h >>conftest.$ac_ext
2656cat >>conftest.$ac_ext <<_ACEOF
2657/* end confdefs.h. */
3a12e572 2658
3a12e572
UD
2659int
2660main ()
2661{
2662#ifndef __GNUC__
2663 choke me
2664#endif
2665
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext
2671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 2672 (eval $ac_compile) 2>&5
3a12e572
UD
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
8f73811b 2676 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 ac_compiler_gnu=yes
2683else
2684 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
2685sed 's/^/| /' conftest.$ac_ext >&5
2686
3a12e572
UD
2687ac_compiler_gnu=no
2688fi
8f73811b 2689rm -f conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
2690ac_cv_c_compiler_gnu=$ac_compiler_gnu
2691
2692fi
2693echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2694echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2695GCC=`test $ac_compiler_gnu = yes && echo yes`
2696ac_test_CFLAGS=${CFLAGS+set}
2697ac_save_CFLAGS=$CFLAGS
2698CFLAGS="-g"
2699echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2700echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2701if test "${ac_cv_prog_cc_g+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703else
2704 cat >conftest.$ac_ext <<_ACEOF
8f73811b 2705#line $LINENO "configure"
2abf9ff1
RM
2706/* confdefs.h. */
2707_ACEOF
2708cat confdefs.h >>conftest.$ac_ext
2709cat >>conftest.$ac_ext <<_ACEOF
2710/* end confdefs.h. */
3a12e572 2711
3a12e572
UD
2712int
2713main ()
2714{
2715
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 2722 (eval $ac_compile) 2>&5
3a12e572
UD
2723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
8f73811b 2726 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 ac_cv_prog_cc_g=yes
2733else
2734 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
3a12e572
UD
2737ac_cv_prog_cc_g=no
2738fi
8f73811b 2739rm -f conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
2740fi
2741echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2742echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2743if test "$ac_test_CFLAGS" = set; then
2744 CFLAGS=$ac_save_CFLAGS
2745elif test $ac_cv_prog_cc_g = yes; then
2746 if test "$GCC" = yes; then
2747 CFLAGS="-g -O2"
2748 else
2749 CFLAGS="-g"
2750 fi
2751else
2752 if test "$GCC" = yes; then
2753 CFLAGS="-O2"
2754 else
2755 CFLAGS=
2756 fi
2757fi
f4b07664
RM
2758echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2759echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2760if test "${ac_cv_prog_cc_stdc+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2762else
2763 ac_cv_prog_cc_stdc=no
2764ac_save_CC=$CC
2765cat >conftest.$ac_ext <<_ACEOF
8f73811b 2766#line $LINENO "configure"
2abf9ff1
RM
2767/* confdefs.h. */
2768_ACEOF
2769cat confdefs.h >>conftest.$ac_ext
2770cat >>conftest.$ac_ext <<_ACEOF
2771/* end confdefs.h. */
f4b07664
RM
2772#include <stdarg.h>
2773#include <stdio.h>
2774#include <sys/types.h>
2775#include <sys/stat.h>
2776/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2777struct buf { int x; };
2778FILE * (*rcsopen) (struct buf *, struct stat *, int);
2779static char *e (p, i)
2780 char **p;
2781 int i;
2782{
2783 return p[i];
2784}
2785static char *f (char * (*g) (char **, int), char **p, ...)
2786{
2787 char *s;
2788 va_list v;
2789 va_start (v,p);
2790 s = g (p, va_arg (v,int));
2791 va_end (v);
2792 return s;
2793}
2794int test (int i, double x);
2795struct s1 {int (*f) (int a);};
2796struct s2 {int (*f) (double a);};
2797int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2798int argc;
2799char **argv;
2800int
2801main ()
2802{
2803return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2804 ;
2805 return 0;
2806}
2807_ACEOF
2808# Don't try gcc -ansi; that turns off useful extensions and
2809# breaks some systems' header files.
2810# AIX -qlanglvl=ansi
2811# Ultrix and OSF/1 -std1
2812# HP-UX 10.20 and later -Ae
2813# HP-UX older versions -Aa -D_HPUX_SOURCE
2814# SVR4 -Xc -D__EXTENSIONS__
2815for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2816do
2817 CC="$ac_save_CC $ac_arg"
2818 rm -f conftest.$ac_objext
2819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 2820 (eval $ac_compile) 2>&5
f4b07664
RM
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
8f73811b 2824 { ac_try='test -s conftest.$ac_objext'
f4b07664
RM
2825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826 (eval $ac_try) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }; }; then
2830 ac_cv_prog_cc_stdc=$ac_arg
2831break
2832else
2833 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
f4b07664 2836fi
8f73811b 2837rm -f conftest.$ac_objext
f4b07664
RM
2838done
2839rm -f conftest.$ac_ext conftest.$ac_objext
2840CC=$ac_save_CC
2841
2842fi
2843
2844case "x$ac_cv_prog_cc_stdc" in
2845 x|xno)
2846 echo "$as_me:$LINENO: result: none needed" >&5
2847echo "${ECHO_T}none needed" >&6 ;;
2848 *)
2849 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2850echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2851 CC="$CC $ac_cv_prog_cc_stdc" ;;
2852esac
2853
3a12e572
UD
2854# Some people use a C++ compiler to compile C. Since we use `exit',
2855# in C++ we need to declare it. In case someone uses the same compiler
2856# for both compiling C and C++ we need to have the C++ compiler decide
2857# the declaration of exit, since it's the most demanding environment.
2858cat >conftest.$ac_ext <<_ACEOF
2859#ifndef __cplusplus
2860 choke me
2861#endif
2862_ACEOF
2863rm -f conftest.$ac_objext
2864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 2865 (eval $ac_compile) 2>&5
3a12e572
UD
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
8f73811b 2869 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 for ac_declaration in \
8f73811b
RM
2876 ''\
2877 '#include <stdlib.h>' \
3a12e572
UD
2878 'extern "C" void std::exit (int) throw (); using std::exit;' \
2879 'extern "C" void std::exit (int); using std::exit;' \
2880 'extern "C" void exit (int) throw ();' \
2881 'extern "C" void exit (int);' \
2882 'void exit (int);'
2883do
2884 cat >conftest.$ac_ext <<_ACEOF
8f73811b 2885#line $LINENO "configure"
2abf9ff1
RM
2886/* confdefs.h. */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h. */
ec5a15a3 2891#include <stdlib.h>
8f73811b 2892$ac_declaration
3a12e572
UD
2893int
2894main ()
2895{
2896exit (42);
2897 ;
2898 return 0;
2899}
2900_ACEOF
2901rm -f conftest.$ac_objext
2902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 2903 (eval $ac_compile) 2>&5
3a12e572
UD
2904 ac_status=$?
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
8f73811b 2907 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 (eval $ac_try) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; }; then
5c2a0669
UD
2913 :
2914else
3a12e572 2915 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
2916sed 's/^/| /' conftest.$ac_ext >&5
2917
3a12e572
UD
2918continue
2919fi
8f73811b 2920rm -f conftest.$ac_objext conftest.$ac_ext
3a12e572 2921 cat >conftest.$ac_ext <<_ACEOF
8f73811b 2922#line $LINENO "configure"
2abf9ff1
RM
2923/* confdefs.h. */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h. */
3a12e572 2928$ac_declaration
3a12e572
UD
2929int
2930main ()
2931{
2932exit (42);
2933 ;
2934 return 0;
2935}
2936_ACEOF
2937rm -f conftest.$ac_objext
2938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 2939 (eval $ac_compile) 2>&5
3a12e572
UD
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } &&
8f73811b 2943 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 break
2950else
2951 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
3a12e572 2954fi
8f73811b 2955rm -f conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
2956done
2957rm -f conftest*
2958if test -n "$ac_declaration"; then
2959 echo '#ifdef __cplusplus' >>confdefs.h
2960 echo $ac_declaration >>confdefs.h
2961 echo '#endif' >>confdefs.h
2962fi
2963
2964else
2965 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
3a12e572 2968fi
8f73811b 2969rm -f conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
2970ac_ext=c
2971ac_cpp='$CPP $CPPFLAGS'
2972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974ac_compiler_gnu=$ac_cv_c_compiler_gnu
2975
2976if test $host != $build; then
2977 for ac_prog in gcc cc
2978do
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980set dummy $ac_prog; ac_word=$2
2981echo "$as_me:$LINENO: checking for $ac_word" >&5
2982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2983if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985else
2986 if test -n "$BUILD_CC"; then
2987 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2988else
2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990for as_dir in $PATH
2991do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_BUILD_CC="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2998 break 2
2999 fi
3000done
3001done
3002
3003fi
3004fi
3005BUILD_CC=$ac_cv_prog_BUILD_CC
3006if test -n "$BUILD_CC"; then
3007 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3008echo "${ECHO_T}$BUILD_CC" >&6
3009else
3010 echo "$as_me:$LINENO: result: no" >&5
3011echo "${ECHO_T}no" >&6
3012fi
3013
3014 test -n "$BUILD_CC" && break
3015done
3016
3017fi
3018
3019ac_ext=c
3020ac_cpp='$CPP $CPPFLAGS'
3021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3025echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3026# On Suns, sometimes $CPP names a directory.
3027if test -n "$CPP" && test -d "$CPP"; then
3028 CPP=
3029fi
3030if test -z "$CPP"; then
3031 if test "${ac_cv_prog_CPP+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034 # Double quotes because CPP needs to be expanded
3035 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3036 do
3037 ac_preproc_ok=false
3038for ac_c_preproc_warn_flag in '' yes
3039do
3040 # Use a header file that comes with gcc, so configuring glibc
3041 # with a fresh cross-compiler works.
2abf9ff1
RM
3042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3043 # <limits.h> exists even on freestanding compilers.
3a12e572
UD
3044 # On the NeXT, cc -E runs the code through the compiler's parser,
3045 # not just through cpp. "Syntax error" is here to catch this case.
3046 cat >conftest.$ac_ext <<_ACEOF
8f73811b 3047#line $LINENO "configure"
2abf9ff1
RM
3048/* confdefs.h. */
3049_ACEOF
3050cat confdefs.h >>conftest.$ac_ext
3051cat >>conftest.$ac_ext <<_ACEOF
3052/* end confdefs.h. */
3053#ifdef __STDC__
3054# include <limits.h>
3055#else
3056# include <assert.h>
3057#endif
8f73811b 3058 Syntax error
3a12e572
UD
3059_ACEOF
3060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062 ac_status=$?
f4b07664 3063 grep -v '^ *+' conftest.er1 >conftest.err
3a12e572
UD
3064 rm -f conftest.er1
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev/null; then
3068 if test -s conftest.err; then
3069 ac_cpp_err=$ac_c_preproc_warn_flag
3070 else
3071 ac_cpp_err=
3072 fi
3073else
3074 ac_cpp_err=yes
3075fi
3076if test -z "$ac_cpp_err"; then
cd6ede75
UD
3077 :
3078else
3a12e572 3079 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
3a12e572
UD
3082 # Broken: fails on valid input.
3083continue
cd6ede75 3084fi
3a12e572
UD
3085rm -f conftest.err conftest.$ac_ext
3086
3087 # OK, works on sane cases. Now check whether non-existent headers
3088 # can be detected and how.
3089 cat >conftest.$ac_ext <<_ACEOF
8f73811b 3090#line $LINENO "configure"
2abf9ff1
RM
3091/* confdefs.h. */
3092_ACEOF
3093cat confdefs.h >>conftest.$ac_ext
3094cat >>conftest.$ac_ext <<_ACEOF
3095/* end confdefs.h. */
3a12e572
UD
3096#include <ac_nonexistent.h>
3097_ACEOF
3098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3100 ac_status=$?
f4b07664 3101 grep -v '^ *+' conftest.er1 >conftest.err
3a12e572
UD
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev/null; then
3106 if test -s conftest.err; then
3107 ac_cpp_err=$ac_c_preproc_warn_flag
3108 else
3109 ac_cpp_err=
3110 fi
3111else
3112 ac_cpp_err=yes
cd6ede75 3113fi
3a12e572
UD
3114if test -z "$ac_cpp_err"; then
3115 # Broken: success on invalid input.
3116continue
3117else
3118 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
3a12e572
UD
3121 # Passes both tests.
3122ac_preproc_ok=:
3123break
5c2a0669 3124fi
3a12e572
UD
3125rm -f conftest.err conftest.$ac_ext
3126
3127done
3128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3129rm -f conftest.err conftest.$ac_ext
3130if $ac_preproc_ok; then
3131 break
3132fi
3133
3134 done
3135 ac_cv_prog_CPP=$CPP
3136
3137fi
3138 CPP=$ac_cv_prog_CPP
3139else
3140 ac_cv_prog_CPP=$CPP
3141fi
3142echo "$as_me:$LINENO: result: $CPP" >&5
3143echo "${ECHO_T}$CPP" >&6
3144ac_preproc_ok=false
3145for ac_c_preproc_warn_flag in '' yes
3146do
3147 # Use a header file that comes with gcc, so configuring glibc
3148 # with a fresh cross-compiler works.
2abf9ff1
RM
3149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3150 # <limits.h> exists even on freestanding compilers.
3a12e572
UD
3151 # On the NeXT, cc -E runs the code through the compiler's parser,
3152 # not just through cpp. "Syntax error" is here to catch this case.
3153 cat >conftest.$ac_ext <<_ACEOF
8f73811b 3154#line $LINENO "configure"
2abf9ff1
RM
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */
3160#ifdef __STDC__
3161# include <limits.h>
3162#else
3163# include <assert.h>
3164#endif
8f73811b 3165 Syntax error
3a12e572
UD
3166_ACEOF
3167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3169 ac_status=$?
f4b07664 3170 grep -v '^ *+' conftest.er1 >conftest.err
3a12e572
UD
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } >/dev/null; then
3175 if test -s conftest.err; then
3176 ac_cpp_err=$ac_c_preproc_warn_flag
3177 else
3178 ac_cpp_err=
3179 fi
3180else
3181 ac_cpp_err=yes
3182fi
3183if test -z "$ac_cpp_err"; then
3184 :
3185else
3186 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3a12e572
UD
3189 # Broken: fails on valid input.
3190continue
3191fi
3192rm -f conftest.err conftest.$ac_ext
3193
3194 # OK, works on sane cases. Now check whether non-existent headers
3195 # can be detected and how.
3196 cat >conftest.$ac_ext <<_ACEOF
8f73811b 3197#line $LINENO "configure"
2abf9ff1
RM
3198/* confdefs.h. */
3199_ACEOF
3200cat confdefs.h >>conftest.$ac_ext
3201cat >>conftest.$ac_ext <<_ACEOF
3202/* end confdefs.h. */
3a12e572
UD
3203#include <ac_nonexistent.h>
3204_ACEOF
3205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3207 ac_status=$?
f4b07664 3208 grep -v '^ *+' conftest.er1 >conftest.err
3a12e572
UD
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } >/dev/null; then
3213 if test -s conftest.err; then
3214 ac_cpp_err=$ac_c_preproc_warn_flag
3215 else
3216 ac_cpp_err=
3217 fi
3218else
3219 ac_cpp_err=yes
3220fi
3221if test -z "$ac_cpp_err"; then
3222 # Broken: success on invalid input.
3223continue
3224else
3225 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3226sed 's/^/| /' conftest.$ac_ext >&5
3227
3a12e572
UD
3228 # Passes both tests.
3229ac_preproc_ok=:
3230break
cd6ede75 3231fi
3a12e572
UD
3232rm -f conftest.err conftest.$ac_ext
3233
3234done
3235# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3236rm -f conftest.err conftest.$ac_ext
3237if $ac_preproc_ok; then
3238 :
cd6ede75 3239else
2abf9ff1
RM
3240 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3241See \`config.log' for more details." >&5
3242echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3243See \`config.log' for more details." >&2;}
3a12e572 3244 { (exit 1); exit 1; }; }
cd6ede75 3245fi
3a12e572
UD
3246
3247ac_ext=c
3248ac_cpp='$CPP $CPPFLAGS'
3249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251ac_compiler_gnu=$ac_cv_c_compiler_gnu
cd6ede75 3252
925c3c5c
UD
3253# We need the C++ compiler only for testing.
3254ac_ext=cc
3255ac_cpp='$CXXCPP $CPPFLAGS'
3256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3259if test -n "$ac_tool_prefix"; then
3260 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3261 do
3262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3263set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3264echo "$as_me:$LINENO: checking for $ac_word" >&5
3265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3266if test "${ac_cv_prog_CXX+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3268else
3269 if test -n "$CXX"; then
3270 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3271else
3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283done
3284done
3285
3286fi
3287fi
3288CXX=$ac_cv_prog_CXX
3289if test -n "$CXX"; then
3290 echo "$as_me:$LINENO: result: $CXX" >&5
3291echo "${ECHO_T}$CXX" >&6
3292else
3293 echo "$as_me:$LINENO: result: no" >&5
3294echo "${ECHO_T}no" >&6
3295fi
3296
3297 test -n "$CXX" && break
3298 done
3299fi
3300if test -z "$CXX"; then
3301 ac_ct_CXX=$CXX
3302 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3303do
3304 # Extract the first word of "$ac_prog", so it can be a program name with args.
3305set dummy $ac_prog; ac_word=$2
3306echo "$as_me:$LINENO: checking for $ac_word" >&5
3307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311 if test -n "$ac_ct_CXX"; then
3312 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_ac_ct_CXX="$ac_prog"
3322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3324 fi
3325done
3326done
3327
3328fi
3329fi
3330ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3331if test -n "$ac_ct_CXX"; then
3332 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3333echo "${ECHO_T}$ac_ct_CXX" >&6
3334else
3335 echo "$as_me:$LINENO: result: no" >&5
3336echo "${ECHO_T}no" >&6
3337fi
3338
3339 test -n "$ac_ct_CXX" && break
3340done
3341test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3342
3343 CXX=$ac_ct_CXX
3344fi
3345
3346
3347# Provide some information about the compiler.
3348echo "$as_me:$LINENO:" \
3349 "checking for C++ compiler version" >&5
3350ac_compiler=`set X $ac_compile; echo $2`
3351{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3352 (eval $ac_compiler --version </dev/null >&5) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }
3356{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3357 (eval $ac_compiler -v </dev/null >&5) 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }
3361{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3362 (eval $ac_compiler -V </dev/null >&5) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3366
3367echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3368echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3369if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3372 cat >conftest.$ac_ext <<_ACEOF
8f73811b 3373#line $LINENO "configure"
2abf9ff1
RM
3374/* confdefs.h. */
3375_ACEOF
3376cat confdefs.h >>conftest.$ac_ext
3377cat >>conftest.$ac_ext <<_ACEOF
3378/* end confdefs.h. */
925c3c5c
UD
3379
3380int
3381main ()
3382{
3383#ifndef __GNUC__
3384 choke me
3385#endif
3386
3387 ;
3388 return 0;
3389}
3390_ACEOF
3391rm -f conftest.$ac_objext
3392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 3393 (eval $ac_compile) 2>&5
925c3c5c
UD
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } &&
8f73811b 3397 { ac_try='test -s conftest.$ac_objext'
925c3c5c
UD
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 ac_compiler_gnu=yes
3404else
3405 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
925c3c5c
UD
3408ac_compiler_gnu=no
3409fi
8f73811b 3410rm -f conftest.$ac_objext conftest.$ac_ext
925c3c5c
UD
3411ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3412
3413fi
3414echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3415echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3416GXX=`test $ac_compiler_gnu = yes && echo yes`
3417ac_test_CXXFLAGS=${CXXFLAGS+set}
3418ac_save_CXXFLAGS=$CXXFLAGS
3419CXXFLAGS="-g"
3420echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3421echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3422if test "${ac_cv_prog_cxx_g+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424else
3425 cat >conftest.$ac_ext <<_ACEOF
8f73811b 3426#line $LINENO "configure"
2abf9ff1
RM
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
925c3c5c
UD
3432
3433int
3434main ()
3435{
3436
3437 ;
3438 return 0;
3439}
3440_ACEOF
3441rm -f conftest.$ac_objext
3442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 3443 (eval $ac_compile) 2>&5
925c3c5c
UD
3444 ac_status=$?
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } &&
8f73811b 3447 { ac_try='test -s conftest.$ac_objext'
925c3c5c
UD
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 (eval $ac_try) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; }; then
3453 ac_cv_prog_cxx_g=yes
3454else
3455 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
925c3c5c
UD
3458ac_cv_prog_cxx_g=no
3459fi
8f73811b 3460rm -f conftest.$ac_objext conftest.$ac_ext
925c3c5c
UD
3461fi
3462echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3463echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3464if test "$ac_test_CXXFLAGS" = set; then
3465 CXXFLAGS=$ac_save_CXXFLAGS
3466elif test $ac_cv_prog_cxx_g = yes; then
3467 if test "$GXX" = yes; then
3468 CXXFLAGS="-g -O2"
3469 else
3470 CXXFLAGS="-g"
3471 fi
3472else
3473 if test "$GXX" = yes; then
3474 CXXFLAGS="-O2"
3475 else
3476 CXXFLAGS=
3477 fi
3478fi
3479for ac_declaration in \
8f73811b
RM
3480 ''\
3481 '#include <stdlib.h>' \
925c3c5c
UD
3482 'extern "C" void std::exit (int) throw (); using std::exit;' \
3483 'extern "C" void std::exit (int); using std::exit;' \
3484 'extern "C" void exit (int) throw ();' \
3485 'extern "C" void exit (int);' \
3486 'void exit (int);'
3487do
3488 cat >conftest.$ac_ext <<_ACEOF
8f73811b 3489#line $LINENO "configure"
2abf9ff1
RM
3490/* confdefs.h. */
3491_ACEOF
3492cat confdefs.h >>conftest.$ac_ext
3493cat >>conftest.$ac_ext <<_ACEOF
3494/* end confdefs.h. */
ec5a15a3 3495#include <stdlib.h>
8f73811b 3496$ac_declaration
925c3c5c
UD
3497int
3498main ()
3499{
3500exit (42);
3501 ;
3502 return 0;
3503}
3504_ACEOF
3505rm -f conftest.$ac_objext
3506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 3507 (eval $ac_compile) 2>&5
925c3c5c
UD
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } &&
8f73811b 3511 { ac_try='test -s conftest.$ac_objext'
925c3c5c
UD
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 (eval $ac_try) 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; }; then
3517 :
3518else
3519 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3520sed 's/^/| /' conftest.$ac_ext >&5
3521
925c3c5c
UD
3522continue
3523fi
8f73811b 3524rm -f conftest.$ac_objext conftest.$ac_ext
925c3c5c 3525 cat >conftest.$ac_ext <<_ACEOF
8f73811b 3526#line $LINENO "configure"
2abf9ff1
RM
3527/* confdefs.h. */
3528_ACEOF
3529cat confdefs.h >>conftest.$ac_ext
3530cat >>conftest.$ac_ext <<_ACEOF
3531/* end confdefs.h. */
925c3c5c
UD
3532$ac_declaration
3533int
3534main ()
3535{
3536exit (42);
3537 ;
3538 return 0;
3539}
3540_ACEOF
3541rm -f conftest.$ac_objext
3542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 3543 (eval $ac_compile) 2>&5
925c3c5c
UD
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } &&
8f73811b 3547 { ac_try='test -s conftest.$ac_objext'
925c3c5c
UD
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 break
3554else
3555 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
925c3c5c 3558fi
8f73811b 3559rm -f conftest.$ac_objext conftest.$ac_ext
925c3c5c
UD
3560done
3561rm -f conftest*
3562if test -n "$ac_declaration"; then
3563 echo '#ifdef __cplusplus' >>confdefs.h
3564 echo $ac_declaration >>confdefs.h
3565 echo '#endif' >>confdefs.h
3566fi
3567
3568ac_ext=c
3569ac_cpp='$CPP $CPPFLAGS'
3570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573
650425ce
UD
3574# Was a --with-binutils option given?
3575if test -n "$path_binutils"; then
3576 # Make absolute; ensure a single trailing slash.
3577 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
63bda0c1 3578 CC="$CC -B$path_binutils"
650425ce 3579fi
27a5bb33
UD
3580AS=`$CC -print-prog-name=as`
3581LD=`$CC -print-prog-name=ld`
5edb9387 3582AR=`$CC -print-prog-name=ar`
cd6ede75 3583
4baa087a
RM
3584OBJDUMP=`$CC -print-prog-name=objdump`
3585
3586
3587# ranlib has to be treated a bit differently since it might not exist at all.
3588ac_ranlib=`$CC -print-prog-name=ranlib`
3589if test "x$ac_ranlib" = xranlib; then
3590# This extra check has to happen since gcc simply echos the parameter in
3591# case it cannot find the value in its own directories.
3592if test -n "$ac_tool_prefix"; then
3593 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3594set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3595echo "$as_me:$LINENO: checking for $ac_word" >&5
3596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3597if test "${ac_cv_prog_RANLIB+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3599else
3600 if test -n "$RANLIB"; then
3601 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3602else
3603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604for as_dir in $PATH
3605do
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 break 2
3613 fi
3614done
3615done
3616
3617fi
3618fi
3619RANLIB=$ac_cv_prog_RANLIB
3620if test -n "$RANLIB"; then
3621 echo "$as_me:$LINENO: result: $RANLIB" >&5
3622echo "${ECHO_T}$RANLIB" >&6
3623else
3624 echo "$as_me:$LINENO: result: no" >&5
3625echo "${ECHO_T}no" >&6
3626fi
3627
3628fi
3629if test -z "$ac_cv_prog_RANLIB"; then
3630 ac_ct_RANLIB=$RANLIB
3631 # Extract the first word of "ranlib", so it can be a program name with args.
3632set dummy ranlib; ac_word=$2
3633echo "$as_me:$LINENO: checking for $ac_word" >&5
3634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3635if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637else
3638 if test -n "$ac_ct_RANLIB"; then
3639 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3640else
3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642for as_dir in $PATH
3643do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648 ac_cv_prog_ac_ct_RANLIB="ranlib"
3649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3651 fi
3652done
3653done
3654
3655 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3656fi
3657fi
3658ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3659if test -n "$ac_ct_RANLIB"; then
3660 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3661echo "${ECHO_T}$ac_ct_RANLIB" >&6
3662else
3663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
3665fi
3666
3667 RANLIB=$ac_ct_RANLIB
3668else
3669 RANLIB="$ac_cv_prog_RANLIB"
3670fi
3671
3672else
3673 RANLIB=$ac_ranlib
3674fi
3675
3676
3677# Determine whether we are using GNU binutils.
3678echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3679echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3680if test "${libc_cv_prog_as_gnu+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682else
3683 # Most GNU programs take a -v and spit out some text including
3684# the word 'GNU'. Some try to read stdin, so give them /dev/null.
3685if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3686 libc_cv_prog_as_gnu=yes
3687else
3688 libc_cv_prog_as_gnu=no
3689fi
3690rm -fr contest*
3691fi
3692echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3693echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3694rm -f a.out
3695gnu_as=$libc_cv_prog_as_gnu
3696
3697echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3698echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3699if test "${libc_cv_prog_ld_gnu+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
3702 # Most GNU programs take a -v and spit out some text including
3703# the word 'GNU'. Some try to read stdin, so give them /dev/null.
3704if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3705 libc_cv_prog_ld_gnu=yes
3706else
3707 libc_cv_prog_ld_gnu=no
3708fi
3709rm -fr contest*
3710fi
3711echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3712echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3713gnu_ld=$libc_cv_prog_ld_gnu
3714
3715
3716# Accept binutils 2.13 or newer.
3717for ac_prog in $AS
3718do
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720set dummy $ac_prog; ac_word=$2
3721echo "$as_me:$LINENO: checking for $ac_word" >&5
3722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723if test "${ac_cv_prog_AS+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725else
3726 if test -n "$AS"; then
3727 ac_cv_prog_AS="$AS" # Let the user override the test.
3728else
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH
3731do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_AS="$ac_prog"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3739 fi
3740done
3741done
3742
3743fi
3744fi
3745AS=$ac_cv_prog_AS
3746if test -n "$AS"; then
3747 echo "$as_me:$LINENO: result: $AS" >&5
3748echo "${ECHO_T}$AS" >&6
3749else
3750 echo "$as_me:$LINENO: result: no" >&5
3751echo "${ECHO_T}no" >&6
3752fi
3753
3754 test -n "$AS" && break
3755done
3756
3757if test -z "$AS"; then
3758 ac_verc_fail=yes
3759else
3760 # Found it, now check the version.
3761 echo "$as_me:$LINENO: checking version of $AS" >&5
3762echo $ECHO_N "checking version of $AS... $ECHO_C" >&6
3763 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3764 case $ac_prog_version in
3765 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3766 2.1[3-9]*)
3767 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3768 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3769
3770 esac
3771 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3772echo "${ECHO_T}$ac_prog_version" >&6
3773fi
3774if test $ac_verc_fail = yes; then
73588175 3775 AS=: critic_missing="$critic_missing as"
4baa087a
RM
3776fi
3777
3778for ac_prog in $LD
3779do
3780 # Extract the first word of "$ac_prog", so it can be a program name with args.
3781set dummy $ac_prog; ac_word=$2
3782echo "$as_me:$LINENO: checking for $ac_word" >&5
3783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784if test "${ac_cv_prog_LD+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786else
3787 if test -n "$LD"; then
3788 ac_cv_prog_LD="$LD" # Let the user override the test.
3789else
3790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791for as_dir in $PATH
3792do
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_prog_LD="$ac_prog"
3798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3800 fi
3801done
3802done
3803
3804fi
3805fi
3806LD=$ac_cv_prog_LD
3807if test -n "$LD"; then
3808 echo "$as_me:$LINENO: result: $LD" >&5
3809echo "${ECHO_T}$LD" >&6
3810else
3811 echo "$as_me:$LINENO: result: no" >&5
3812echo "${ECHO_T}no" >&6
3813fi
3814
3815 test -n "$LD" && break
3816done
3817
3818if test -z "$LD"; then
3819 ac_verc_fail=yes
3820else
3821 # Found it, now check the version.
3822 echo "$as_me:$LINENO: checking version of $LD" >&5
3823echo $ECHO_N "checking version of $LD... $ECHO_C" >&6
3824 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
3825 case $ac_prog_version in
3826 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3827 2.1[3-9]*)
3828 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3829 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3830
3831 esac
3832 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3833echo "${ECHO_T}$ac_prog_version" >&6
3834fi
3835if test $ac_verc_fail = yes; then
73588175 3836 LD=: critic_missing="$critic_missing ld"
4baa087a
RM
3837fi
3838
3839
3840# We need the physical current working directory. We cannot use the
3841# "pwd -P" shell builtin since that's not portable. Instead we try to
3842# find a pwd binary. Note that assigning to the PWD environment
3843# variable might have some interesting side effects, so we don't do
3844# that.
3845# Extract the first word of "pwd", so it can be a program name with args.
3846set dummy pwd; ac_word=$2
3847echo "$as_me:$LINENO: checking for $ac_word" >&5
3848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849if test "${ac_cv_path_PWD_P+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851else
3852 case $PWD_P in
3853 [\\/]* | ?:[\\/]*)
3854 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
3855 ;;
3856 *)
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858for as_dir in $PATH
3859do
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3867 fi
3868done
3869done
3870
3871 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
3872 ;;
3873esac
3874fi
3875PWD_P=$ac_cv_path_PWD_P
3876
3877if test -n "$PWD_P"; then
3878 echo "$as_me:$LINENO: result: $PWD_P" >&5
3879echo "${ECHO_T}$PWD_P" >&6
3880else
3881 echo "$as_me:$LINENO: result: no" >&5
3882echo "${ECHO_T}no" >&6
3883fi
3884
3885if test "$PWD_P" = no; then
3886 { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
3887echo "$as_me: error: *** A pwd binary could not be found." >&2;}
3888 { (exit 1); exit 1; }; }
3889fi
3890
3891# These programs are version sensitive.
3892
3893for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
3894do
3895 # Extract the first word of "$ac_prog", so it can be a program name with args.
3896set dummy $ac_prog; ac_word=$2
3897echo "$as_me:$LINENO: checking for $ac_word" >&5
3898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3899if test "${ac_cv_prog_CC+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901else
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC="$CC" # Let the user override the test.
3904else
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_CC="$ac_prog"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916done
3917done
3918
3919fi
3920fi
3921CC=$ac_cv_prog_CC
3922if test -n "$CC"; then
3923 echo "$as_me:$LINENO: result: $CC" >&5
3924echo "${ECHO_T}$CC" >&6
3925else
3926 echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928fi
3929
3930 test -n "$CC" && break
3931done
3932
3933if test -z "$CC"; then
3934 ac_verc_fail=yes
3935else
3936 # Found it, now check the version.
3937 echo "$as_me:$LINENO: checking version of $CC" >&5
3938echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3939 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
3940 case $ac_prog_version in
3941 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3942 3.[2-9]*)
3943 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3944 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3945
3946 esac
3947 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3948echo "${ECHO_T}$ac_prog_version" >&6
3949fi
3950if test $ac_verc_fail = yes; then
3951 critic_missing="$critic_missing gcc"
3952fi
3953
3954for ac_prog in gnumake gmake make
3955do
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957set dummy $ac_prog; ac_word=$2
3958echo "$as_me:$LINENO: checking for $ac_word" >&5
3959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3960if test "${ac_cv_prog_MAKE+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962else
3963 if test -n "$MAKE"; then
3964 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3965else
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973 ac_cv_prog_MAKE="$ac_prog"
3974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 break 2
3976 fi
3977done
3978done
3979
3980fi
3981fi
3982MAKE=$ac_cv_prog_MAKE
3983if test -n "$MAKE"; then
3984 echo "$as_me:$LINENO: result: $MAKE" >&5
3985echo "${ECHO_T}$MAKE" >&6
3986else
3987 echo "$as_me:$LINENO: result: no" >&5
3988echo "${ECHO_T}no" >&6
3989fi
3990
3991 test -n "$MAKE" && break
3992done
3993
3994if test -z "$MAKE"; then
3995 ac_verc_fail=yes
3996else
3997 # Found it, now check the version.
3998 echo "$as_me:$LINENO: checking version of $MAKE" >&5
3999echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
4000 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4001 case $ac_prog_version in
4002 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4003 3.79* | 3.[89]*)
4004 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4005 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4006
4007 esac
4008 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4009echo "${ECHO_T}$ac_prog_version" >&6
4010fi
4011if test $ac_verc_fail = yes; then
4012 critic_missing="$critic_missing make"
4013fi
6e3d59bc 4014
cd6ede75 4015
4baa087a
RM
4016for ac_prog in gnumsgfmt gmsgfmt msgfmt
4017do
4018 # Extract the first word of "$ac_prog", so it can be a program name with args.
4019set dummy $ac_prog; ac_word=$2
3a12e572
UD
4020echo "$as_me:$LINENO: checking for $ac_word" >&5
4021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4baa087a 4022if test "${ac_cv_prog_MSGFMT+set}" = set; then
3a12e572 4023 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 4024else
4baa087a
RM
4025 if test -n "$MSGFMT"; then
4026 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
cd6ede75 4027else
3a12e572
UD
4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH
4030do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 4035 ac_cv_prog_MSGFMT="$ac_prog"
3a12e572
UD
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039done
4040done
4041
cd6ede75
UD
4042fi
4043fi
4baa087a
RM
4044MSGFMT=$ac_cv_prog_MSGFMT
4045if test -n "$MSGFMT"; then
4046 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4047echo "${ECHO_T}$MSGFMT" >&6
cd6ede75 4048else
3a12e572
UD
4049 echo "$as_me:$LINENO: result: no" >&5
4050echo "${ECHO_T}no" >&6
cd6ede75
UD
4051fi
4052
4baa087a
RM
4053 test -n "$MSGFMT" && break
4054done
4055
4056if test -z "$MSGFMT"; then
4057 ac_verc_fail=yes
4058else
4059 # Found it, now check the version.
4060 echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
4061echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
4062 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4063 case $ac_prog_version in
4064 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4065 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4066 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4067 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4068
4069 esac
4070 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4071echo "${ECHO_T}$ac_prog_version" >&6
3a12e572 4072fi
4baa087a
RM
4073if test $ac_verc_fail = yes; then
4074 MSGFMT=: aux_missing="$aux_missing msgfmt"
4075fi
4076
4077for ac_prog in makeinfo
4078do
4079 # Extract the first word of "$ac_prog", so it can be a program name with args.
4080set dummy $ac_prog; ac_word=$2
3a12e572
UD
4081echo "$as_me:$LINENO: checking for $ac_word" >&5
4082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4baa087a 4083if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3a12e572 4084 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 4085else
4baa087a
RM
4086 if test -n "$MAKEINFO"; then
4087 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
cd6ede75 4088else
3a12e572
UD
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 4096 ac_cv_prog_MAKEINFO="$ac_prog"
3a12e572
UD
4097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4099 fi
4100done
4101done
4102
cd6ede75
UD
4103fi
4104fi
4baa087a
RM
4105MAKEINFO=$ac_cv_prog_MAKEINFO
4106if test -n "$MAKEINFO"; then
4107 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4108echo "${ECHO_T}$MAKEINFO" >&6
cd6ede75 4109else
3a12e572
UD
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
cd6ede75
UD
4112fi
4113
4baa087a
RM
4114 test -n "$MAKEINFO" && break
4115done
5edb9387 4116
4baa087a
RM
4117if test -z "$MAKEINFO"; then
4118 ac_verc_fail=yes
5edb9387 4119else
4baa087a
RM
4120 # Found it, now check the version.
4121 echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
4122echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
4123 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4124 case $ac_prog_version in
4125 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4126 4.*)
4127 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4128 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5edb9387 4129
4baa087a
RM
4130 esac
4131 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4132echo "${ECHO_T}$ac_prog_version" >&6
5edb9387 4133fi
4baa087a
RM
4134if test $ac_verc_fail = yes; then
4135 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5edb9387 4136fi
cd6ede75 4137
4baa087a 4138for ac_prog in sed
c4d23330
RM
4139do
4140 # Extract the first word of "$ac_prog", so it can be a program name with args.
4141set dummy $ac_prog; ac_word=$2
4142echo "$as_me:$LINENO: checking for $ac_word" >&5
4143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4baa087a 4144if test "${ac_cv_prog_SED+set}" = set; then
c4d23330
RM
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146else
4baa087a
RM
4147 if test -n "$SED"; then
4148 ac_cv_prog_SED="$SED" # Let the user override the test.
c4d23330
RM
4149else
4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH
4152do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 4157 ac_cv_prog_SED="$ac_prog"
c4d23330
RM
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161done
4162done
4163
4164fi
4165fi
4baa087a
RM
4166SED=$ac_cv_prog_SED
4167if test -n "$SED"; then
4168 echo "$as_me:$LINENO: result: $SED" >&5
4169echo "${ECHO_T}$SED" >&6
c4d23330
RM
4170else
4171 echo "$as_me:$LINENO: result: no" >&5
4172echo "${ECHO_T}no" >&6
4173fi
4174
4baa087a 4175 test -n "$SED" && break
c4d23330
RM
4176done
4177
4baa087a 4178if test -z "$SED"; then
c4d23330
RM
4179 ac_verc_fail=yes
4180else
4181 # Found it, now check the version.
4baa087a
RM
4182 echo "$as_me:$LINENO: checking version of $SED" >&5
4183echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
4184 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
c4d23330
RM
4185 case $ac_prog_version in
4186 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4baa087a 4187 3.0[2-9]*|3.[1-9]*|[4-9]*)
c4d23330
RM
4188 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4189 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4190
4191 esac
4192 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4193echo "${ECHO_T}$ac_prog_version" >&6
4194fi
4195if test $ac_verc_fail = yes; then
4baa087a 4196 SED=: aux_missing="$aux_missing sed"
c4d23330
RM
4197fi
4198
4baa087a 4199
476e7d78 4200for ac_prog in autoconf
c4d23330
RM
4201do
4202 # Extract the first word of "$ac_prog", so it can be a program name with args.
4203set dummy $ac_prog; ac_word=$2
4204echo "$as_me:$LINENO: checking for $ac_word" >&5
4205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4baa087a 4206if test "${ac_cv_prog_AUTOCONF+set}" = set; then
c4d23330
RM
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4baa087a
RM
4209 if test -n "$AUTOCONF"; then
4210 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
c4d23330
RM
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4baa087a 4219 ac_cv_prog_AUTOCONF="$ac_prog"
c4d23330
RM
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223done
4224done
4225
4226fi
4227fi
4baa087a
RM
4228AUTOCONF=$ac_cv_prog_AUTOCONF
4229if test -n "$AUTOCONF"; then
4230 echo "$as_me:$LINENO: result: $AUTOCONF" >&5
4231echo "${ECHO_T}$AUTOCONF" >&6
c4d23330
RM
4232else
4233 echo "$as_me:$LINENO: result: no" >&5
4234echo "${ECHO_T}no" >&6
4235fi
4236
4baa087a 4237 test -n "$AUTOCONF" && break
c4d23330 4238done
4baa087a 4239test -n "$AUTOCONF" || AUTOCONF="no"
c4d23330 4240
476e7d78
RM
4241case "x$AUTOCONF" in
4242xno|x|x:) AUTOCONF=no ;;
4243*)
4244 echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
4baa087a
RM
4245echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
4246if test "${libc_cv_autoconf_works+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
c4d23330 4248else
476e7d78
RM
4249 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
4250 libc_cv_autoconf_works=yes
4251 else
4252 libc_cv_autoconf_works=no
4253 fi
c4d23330 4254fi
4baa087a
RM
4255echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
4256echo "${ECHO_T}$libc_cv_autoconf_works" >&6
476e7d78
RM
4257 test $libc_cv_autoconf_works = yes || AUTOCONF=no
4258 ;;
4259esac
4260if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
4261 # If --without-cvs they probably won't change configure.in, so no complaints.
4262 aux_missing="$aux_missing autoconf"
c4d23330
RM
4263fi
4264
32a448ed
RM
4265test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
4266*** These critical programs are missing or too old:$critic_missing
4267*** Check the INSTALL file for required versions." >&5
4268echo "$as_me: error:
4269*** These critical programs are missing or too old:$critic_missing
4270*** Check the INSTALL file for required versions." >&2;}
4271 { (exit 1); exit 1; }; }
4272
3a12e572 4273test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
9c6fffc0 4274*** These auxiliary programs are missing or incompatible versions:$aux_missing
ea9f119b 4275*** some features will be disabled.
3a12e572
UD
4276*** Check the INSTALL file for required versions." >&5
4277echo "$as_me: WARNING:
4278*** These auxiliary programs are missing or incompatible versions:$aux_missing
4279*** some features will be disabled.
4280*** Check the INSTALL file for required versions." >&2;}
ea9f119b 4281
3c720987
UD
4282# if using special system headers, find out the compiler's sekrit
4283# header directory and add that to the list. NOTE: Only does the right
4284# thing on a system that doesn't need fixincludes. (Not presently a problem.)
4285if test -n "$sysheaders"; then
4286 ccheaders=`$CC -print-file-name=include`
4287 SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
4288fi
4289
4290
f89ac85c 4291# check if ranlib is necessary
3a12e572
UD
4292echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
4293echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
4294if test "${libc_cv_ranlib_necessary+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
f38931a9 4296else
f89ac85c
UD
4297 cat > conftest.c <<EOF
4298int a;
4299char b;
4300void c(void) {}
4301EOF
3217788f 4302$CC $CFLAGS $CPPFLAGS -c conftest.c
5bbfc1ea 4303$AR cr conftest.a conftest.o
f89ac85c
UD
4304cp conftest.a conftest2.a
4305$RANLIB conftest.a
4306if cmp -s conftest.a conftest2.a; then
4307 libc_cv_ranlib_necessary=no
f38931a9 4308else
f89ac85c 4309 libc_cv_ranlib_necessary=yes
f38931a9 4310fi
f89ac85c 4311rm -rf conftest*
f38931a9 4312fi
3a12e572
UD
4313echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
4314echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
f89ac85c
UD
4315if test "$libc_cv_ranlib_necessary" = no; then
4316 RANLIB=:
4317fi
f38931a9 4318
3911660e
UD
4319# Test if LD_LIBRARY_PATH contains the notation for the current directory
4320# since this would lead to problems installing/building glibc.
4321# LD_LIBRARY_PATH contains the current directory if one of the following
4322# is true:
4323# - one of the terminals (":" and ";") is the first or last sign
4324# - two terminals occur directly after each other
4325# - the path contains an element with a dot in it
3a12e572
UD
4326echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
4327echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
3911660e
UD
4328case ${LD_LIBRARY_PATH} in
4329 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
b3a86ae1 4330 ld_library_path_setting="contains current directory"
3911660e
UD
4331 ;;
4332 *)
4333 ld_library_path_setting="ok"
4334 ;;
4335esac
3a12e572
UD
4336echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
4337echo "${ECHO_T}$ld_library_path_setting" >&6
3911660e 4338if test "$ld_library_path_setting" != "ok"; then
3a12e572
UD
4339{ { echo "$as_me:$LINENO: error:
4340*** LD_LIBRARY_PATH shouldn't contain the current directory when
4341*** building glibc. Please change the environment variable
4342*** and run configure again." >&5
4343echo "$as_me: error:
63bda0c1
UD
4344*** LD_LIBRARY_PATH shouldn't contain the current directory when
4345*** building glibc. Please change the environment variable
3a12e572
UD
4346*** and run configure again." >&2;}
4347 { (exit 1); exit 1; }; }
3911660e
UD
4348fi
4349
3a12e572
UD
4350echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
4351echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
4352if test "${libc_cv_gcc_static_libgcc+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
74bd2300
UD
4354else
4355 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
4356 libc_cv_gcc_static_libgcc=
4357else
4358 libc_cv_gcc_static_libgcc=-static-libgcc
4359fi
4360fi
3a12e572
UD
4361echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
4362echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
74bd2300
UD
4363
4364
cd6ede75
UD
4365# Extract the first word of "bash", so it can be a program name with args.
4366set dummy bash; ac_word=$2
3a12e572
UD
4367echo "$as_me:$LINENO: checking for $ac_word" >&5
4368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4369if test "${ac_cv_path_BASH+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 4371else
3a12e572
UD
4372 case $BASH in
4373 [\\/]* | ?:[\\/]*)
cd6ede75
UD
4374 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4375 ;;
4376 *)
3a12e572
UD
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378for as_dir in $PATH
4379do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4384 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4387 fi
4388done
4389done
4390
cd6ede75
UD
4391 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
4392 ;;
4393esac
4394fi
3a12e572
UD
4395BASH=$ac_cv_path_BASH
4396
cd6ede75 4397if test -n "$BASH"; then
3a12e572
UD
4398 echo "$as_me:$LINENO: result: $BASH" >&5
4399echo "${ECHO_T}$BASH" >&6
cd6ede75 4400else
3a12e572
UD
4401 echo "$as_me:$LINENO: result: no" >&5
4402echo "${ECHO_T}no" >&6
cd6ede75
UD
4403fi
4404
4405if test "$BASH" != no &&
f43ce637 4406 $BASH -c 'test "$BASH_VERSINFO" \
6973fc01 4407 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
cd6ede75
UD
4408 libc_cv_have_bash2=yes
4409else
4410 libc_cv_have_bash2=no
4411fi
4412
4413
4414if test "$BASH" = no; then
4415 # Extract the first word of "ksh", so it can be a program name with args.
4416set dummy ksh; ac_word=$2
3a12e572
UD
4417echo "$as_me:$LINENO: checking for $ac_word" >&5
4418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4419if test "${ac_cv_path_KSH+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 4421else
3a12e572
UD
4422 case $KSH in
4423 [\\/]* | ?:[\\/]*)
cd6ede75
UD
4424 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
4425 ;;
4426 *)
3a12e572
UD
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4434 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436 break 2
4437 fi
4438done
4439done
4440
cd6ede75
UD
4441 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
4442 ;;
4443esac
4444fi
3a12e572
UD
4445KSH=$ac_cv_path_KSH
4446
cd6ede75 4447if test -n "$KSH"; then
3a12e572
UD
4448 echo "$as_me:$LINENO: result: $KSH" >&5
4449echo "${ECHO_T}$KSH" >&6
cd6ede75 4450else
3a12e572
UD
4451 echo "$as_me:$LINENO: result: no" >&5
4452echo "${ECHO_T}no" >&6
cd6ede75
UD
4453fi
4454
4455 if test "$KSH" = no; then
4456 libc_cv_have_ksh=no
4457 else
4458 libc_cv_have_ksh=yes
4459 fi
4460else
4461 KSH="$BASH"
3a12e572 4462
cd6ede75
UD
4463 libc_cv_have_ksh=yes
4464fi
4465
4466
a8c01776 4467for ac_prog in gawk mawk nawk awk
a2b08ee5 4468do
3a12e572 4469 # Extract the first word of "$ac_prog", so it can be a program name with args.
a2b08ee5 4470set dummy $ac_prog; ac_word=$2
3a12e572
UD
4471echo "$as_me:$LINENO: checking for $ac_word" >&5
4472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473if test "${ac_cv_prog_AWK+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
5aa8ff62
UD
4475else
4476 if test -n "$AWK"; then
4477 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4478else
3a12e572
UD
4479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH
4481do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_prog_AWK="$ac_prog"
4487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4489 fi
4490done
4491done
4492
5aa8ff62
UD
4493fi
4494fi
3a12e572 4495AWK=$ac_cv_prog_AWK
5aa8ff62 4496if test -n "$AWK"; then
3a12e572
UD
4497 echo "$as_me:$LINENO: result: $AWK" >&5
4498echo "${ECHO_T}$AWK" >&6
5aa8ff62 4499else
3a12e572
UD
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
5aa8ff62
UD
4502fi
4503
3a12e572 4504 test -n "$AWK" && break
5aa8ff62
UD
4505done
4506
c0016081
UD
4507# Extract the first word of "perl", so it can be a program name with args.
4508set dummy perl; ac_word=$2
3a12e572
UD
4509echo "$as_me:$LINENO: checking for $ac_word" >&5
4510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511if test "${ac_cv_path_PERL+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
a2b08ee5 4513else
3a12e572
UD
4514 case $PERL in
4515 [\\/]* | ?:[\\/]*)
a2b08ee5
UD
4516 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4517 ;;
4518 *)
3a12e572
UD
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530done
4531done
4532
c0016081 4533 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
a2b08ee5
UD
4534 ;;
4535esac
4536fi
3a12e572
UD
4537PERL=$ac_cv_path_PERL
4538
a2b08ee5 4539if test -n "$PERL"; then
3a12e572
UD
4540 echo "$as_me:$LINENO: result: $PERL" >&5
4541echo "${ECHO_T}$PERL" >&6
a2b08ee5 4542else
3a12e572
UD
4543 echo "$as_me:$LINENO: result: no" >&5
4544echo "${ECHO_T}no" >&6
a2b08ee5
UD
4545fi
4546
2fd5d029
RM
4547if test "$PERL" != no &&
4548 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
4549 PERL=no
fc304e02 4550fi
c0016081
UD
4551# Extract the first word of "install-info", so it can be a program name with args.
4552set dummy install-info; ac_word=$2
3a12e572
UD
4553echo "$as_me:$LINENO: checking for $ac_word" >&5
4554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
c0016081 4557else
3a12e572
UD
4558 case $INSTALL_INFO in
4559 [\\/]* | ?:[\\/]*)
c0016081
UD
4560 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4561 ;;
4562 *)
3a12e572 4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f4b07664
RM
4564as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4565for as_dir in $as_dummy
3a12e572
UD
4566do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575done
4576done
4577
c0016081
UD
4578 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
4579 ;;
4580esac
4581fi
3a12e572
UD
4582INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4583
c0016081 4584if test -n "$INSTALL_INFO"; then
3a12e572
UD
4585 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4586echo "${ECHO_T}$INSTALL_INFO" >&6
c0016081 4587else
3a12e572
UD
4588 echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6
c0016081
UD
4590fi
4591
ae113383
UD
4592# Extract the first word of "bison", so it can be a program name with args.
4593set dummy bison; ac_word=$2
3a12e572
UD
4594echo "$as_me:$LINENO: checking for $ac_word" >&5
4595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4596if test "${ac_cv_path_BISON+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
ae113383 4598else
3a12e572
UD
4599 case $BISON in
4600 [\\/]* | ?:[\\/]*)
ae113383
UD
4601 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
4602 ;;
ae113383 4603 *)
3a12e572 4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f4b07664
RM
4605as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
4606for as_dir in $as_dummy
3a12e572
UD
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4615 fi
4616done
4617done
4618
ae113383
UD
4619 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
4620 ;;
4621esac
4622fi
3a12e572
UD
4623BISON=$ac_cv_path_BISON
4624
ae113383 4625if test -n "$BISON"; then
3a12e572
UD
4626 echo "$as_me:$LINENO: result: $BISON" >&5
4627echo "${ECHO_T}$BISON" >&6
ae113383 4628else
3a12e572
UD
4629 echo "$as_me:$LINENO: result: no" >&5
4630echo "${ECHO_T}no" >&6
ae113383
UD
4631fi
4632
4633
3a12e572
UD
4634echo "$as_me:$LINENO: checking for signed size_t type" >&5
4635echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
4636if test "${libc_cv_signed_size_t+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
4638else
4639 echo '#include <stddef.h>
4640FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
4641if eval "$ac_cpp conftest.c 2>/dev/null" \
4642| grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
4643 libc_cv_signed_size_t=no
4644else
4645 libc_cv_signed_size_t=yes
4646fi
4647rm -f conftest*
4648fi
3a12e572
UD
4649echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
4650echo "${ECHO_T}$libc_cv_signed_size_t" >&6
cd6ede75
UD
4651if test $libc_cv_signed_size_t = yes; then
4652 cat >> confdefs.h <<\EOF
4653#undef __SIZE_TYPE__
4654#define __SIZE_TYPE__ unsigned
4655EOF
4656fi
4657
f4b07664 4658
3a12e572
UD
4659echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
4660echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
4661if test "${libc_cv_friendly_stddef+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 4663else
f4b07664 4664 cat >conftest.$ac_ext <<_ACEOF
8f73811b 4665#line $LINENO "configure"
2abf9ff1
RM
4666/* confdefs.h. */
4667_ACEOF
4668cat confdefs.h >>conftest.$ac_ext
4669cat >>conftest.$ac_ext <<_ACEOF
4670/* end confdefs.h. */
cd6ede75
UD
4671#define __need_size_t
4672#define __need_wchar_t
4673#include <stddef.h>
4674#define __need_NULL
4675#include <stddef.h>
3a12e572
UD
4676int
4677main ()
4678{
cd6ede75
UD
4679size_t size; wchar_t wchar;
4680#ifdef offsetof
4681#error stddef.h ignored __need_*
4682#endif
4683if (&size == NULL || &wchar == NULL) abort ();
3a12e572
UD
4684 ;
4685 return 0;
4686}
4687_ACEOF
4688rm -f conftest.$ac_objext
4689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 4690 (eval $ac_compile) 2>&5
3a12e572
UD
4691 ac_status=$?
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } &&
8f73811b 4694 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
4695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 (eval $ac_try) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
cd6ede75
UD
4700 libc_cv_friendly_stddef=yes
4701else
3a12e572 4702 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
4703sed 's/^/| /' conftest.$ac_ext >&5
4704
3a12e572 4705libc_cv_friendly_stddef=no
cd6ede75 4706fi
8f73811b 4707rm -f conftest.$ac_objext conftest.$ac_ext
cd6ede75 4708fi
3a12e572
UD
4709echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
4710echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
cd6ede75
UD
4711if test $libc_cv_friendly_stddef = yes; then
4712 config_vars="$config_vars
4713override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
4714fi
4715
3a12e572
UD
4716echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4717echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4718if test "${libc_cv_need_minus_P+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
4720else
4721 cat > conftest.S <<EOF
4722#include "confdefs.h"
4723/* Nothing whatsoever. */
4724EOF
3217788f 4725if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
61cea1c3
RM
4726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727 (eval $ac_try) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; }; then
cd6ede75
UD
4731 libc_cv_need_minus_P=no
4732else
4733 libc_cv_need_minus_P=yes
4734fi
4735rm -f conftest*
4736fi
3a12e572
UD
4737echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4738echo "${ECHO_T}$libc_cv_need_minus_P" >&6
cd6ede75
UD
4739if test $libc_cv_need_minus_P = yes; then
4740 config_vars="$config_vars
4741asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4742fi
4743
3a12e572
UD
4744echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4745echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4746if test "${libc_cv_dot_text+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
2293395f
UD
4748else
4749 cat > conftest.s <<EOF
4750.text
4751EOF
4752libc_cv_dot_text=
3217788f 4753if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
2293395f
UD
4759 libc_cv_dot_text=.text
4760fi
4761rm -f conftest*
4762fi
4763
4764if test -z "$libc_cv_dot_text"; then
3a12e572
UD
4765 echo "$as_me:$LINENO: result: no" >&5
4766echo "${ECHO_T}no" >&6
2293395f 4767else
3a12e572
UD
4768 echo "$as_me:$LINENO: result: yes" >&5
4769echo "${ECHO_T}yes" >&6
2293395f
UD
4770fi
4771
3a12e572
UD
4772echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4773echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4774if test "${libc_cv_asm_global_directive+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
4776else
4777 libc_cv_asm_global_directive=UNKNOWN
908c3d5b 4778for ac_globl in .globl .global .EXPORT; do
cd6ede75 4779 cat > conftest.s <<EOF
2293395f 4780 ${libc_cv_dot_text}
908c3d5b 4781 ${ac_globl} foo
cd6ede75
UD
4782foo:
4783EOF
3217788f 4784 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
cd6ede75
UD
4790 libc_cv_asm_global_directive=${ac_globl}
4791 fi
4792 rm -f conftest*
4793 test $libc_cv_asm_global_directive != UNKNOWN && break
4794done
4795fi
3a12e572
UD
4796echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4797echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
cd6ede75 4798if test $libc_cv_asm_global_directive = UNKNOWN; then
3a12e572
UD
4799 { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4800echo "$as_me: error: cannot determine asm global directive" >&2;}
4801 { (exit 1); exit 1; }; }
cd6ede75 4802else
3a12e572 4803 cat >>confdefs.h <<_ACEOF
cd6ede75 4804#define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
3a12e572 4805_ACEOF
cd6ede75
UD
4806
4807fi
4808
3a12e572
UD
4809echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4810echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4811if test "${libc_cv_asm_set_directive+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
4813else
4814 cat > conftest.s <<EOF
2293395f 4815${libc_cv_dot_text}
cd6ede75
UD
4816foo:
4817.set glibc_conftest_frobozz,foo
4818$libc_cv_asm_global_directive glibc_conftest_frobozz
4819EOF
4820# The alpha-dec-osf1 assembler gives only a warning for `.set'
4821# (but it doesn't work), so we must do a linking check to be sure.
4822cat > conftest1.c <<\EOF
4823extern int glibc_conftest_frobozz;
640f0119 4824void _start() { glibc_conftest_frobozz = 1; }
cd6ede75
UD
4825EOF
4826if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
640f0119 4827 -nostartfiles -nostdlib \
cd6ede75
UD
4828 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4829 libc_cv_asm_set_directive=yes
4830else
4831 libc_cv_asm_set_directive=no
4832fi
4833rm -f conftest*
4834fi
3a12e572
UD
4835echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4836echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
cd6ede75 4837if test $libc_cv_asm_set_directive = yes; then
3a12e572 4838 cat >>confdefs.h <<\_ACEOF
cd6ede75 4839#define HAVE_ASM_SET_DIRECTIVE 1
3a12e572 4840_ACEOF
cd6ede75
UD
4841
4842fi
4843
3a12e572
UD
4844echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4845echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4846if test "${libc_cv_asm_type_prefix+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
b88ac073
RM
4848else
4849 libc_cv_asm_type_prefix=no
4850for ac_try_prefix in '@' '%' '#'; do
4851 cat > conftest.s <<EOF
4852 ${libc_cv_dot_text}
4853 ${libc_cv_asm_global_directive} foo
4854 .type foo, ${ac_try_prefix}object
4855 .size foo, 1
4856foo:
4857 .byte 1
4858EOF
3217788f 4859 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
b88ac073
RM
4865 libc_cv_asm_type_prefix=${ac_try_prefix}
4866 fi
4867 rm -f conftest*
4868 test "x$libc_cv_asm_type_prefix" != xno && break
4869done
4870fi
3a12e572
UD
4871echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
4872echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
b88ac073 4873if test "x$libc_cv_asm_type_prefix" != xno; then
3a12e572 4874 cat >>confdefs.h <<_ACEOF
b88ac073 4875#define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
3a12e572 4876_ACEOF
b88ac073
RM
4877
4878fi
4879
2aa15430 4880# The Aix ld uses global .symbol_names instead of symbol_names.
a8a20be0
UD
4881# Unfortunately also used in the PPC64 ELF ABI.
4882case "${os}${machine}" in
4883aix4.3* | linux*powerpc/powerpc64*)
3a12e572 4884 cat >>confdefs.h <<\_ACEOF
2aa15430 4885#define HAVE_ASM_GLOBAL_DOT_NAME 1
3a12e572 4886_ACEOF
2aa15430
UD
4887
4888esac
4889
3a12e572
UD
4890echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
4891echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
4892if test "${libc_cv_asm_symver_directive+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
4894else
4895 cat > conftest.s <<EOF
2293395f 4896${libc_cv_dot_text}
cd6ede75
UD
4897_sym:
4898.symver _sym,sym@VERS
4899EOF
3217788f 4900if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
cd6ede75
UD
4901 libc_cv_asm_symver_directive=yes
4902else
4903 libc_cv_asm_symver_directive=no
4904fi
4905rm -f conftest*
4906fi
3a12e572
UD
4907echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
4908echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
4909echo "$as_me:$LINENO: checking for ld --version-script" >&5
4910echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
4911if test "${libc_cv_ld_version_script_option+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
4913else
4914 if test $libc_cv_asm_symver_directive = yes; then
4915 cat > conftest.s <<EOF
2293395f 4916${libc_cv_dot_text}
cd6ede75
UD
4917_sym:
4918.symver _sym,sym@VERS
4919EOF
4920 cat > conftest.map <<EOF
f43ce637 4921VERS_1 {
cd6ede75
UD
4922 global: sym;
4923};
f43ce637
UD
4924
4925VERS_2 {
4926 global: sym;
4927} VERS_1;
cd6ede75 4928EOF
3217788f
RM
4929 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
4930 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
4931 -o conftest.so conftest.o
4932 -nostartfiles -nostdlib
4933 -Wl,--version-script,conftest.map
3a12e572
UD
4934 1>&5'
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); }; };
cd6ede75
UD
4940 then
4941 libc_cv_ld_version_script_option=yes
4942 else
4943 libc_cv_ld_version_script_option=no
4944 fi
4945 else
4946 libc_cv_ld_version_script_option=no
4947 fi
4948else
4949 libc_cv_ld_version_script_option=no
4950fi
4951rm -f conftest*
4952fi
3a12e572
UD
4953echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
4954echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
7499a22a
RM
4955if test $shared != no &&
4956 test $libc_cv_asm_symver_directive = yes &&
650425ce
UD
4957 test $libc_cv_ld_version_script_option = yes &&
4958 test $enable_versioning = yes; then
cd6ede75 4959 VERSIONING=yes
3a12e572 4960 cat >>confdefs.h <<\_ACEOF
cd6ede75 4961#define DO_VERSIONING 1
3a12e572 4962_ACEOF
cd6ede75
UD
4963
4964else
4965 VERSIONING=no
4966fi
4967
4968
22af13de 4969if test $elf = yes && test $shared != no && test $VERSIONING = no; then
f43ce637 4970 echo "\
f4017d20 4971*** WARNING: You should not compile GNU libc without versioning. Not using
f43ce637
UD
4972*** versioning will introduce incompatibilities so that old binaries
4973*** will not run anymore.
08a0d60a 4974*** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
f43ce637 4975fi
cd6ede75 4976if test $elf = yes; then
3a12e572
UD
4977 echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
4978echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
4979if test "${libc_cv_asm_previous_directive+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
4981else
4982 cat > conftest.s <<EOF
4983.section foo_section
4984.previous
4985EOF
3217788f 4986 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
3a12e572
UD
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 (eval $ac_try) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
cd6ede75
UD
4992 libc_cv_asm_previous_directive=yes
4993 else
4994 libc_cv_asm_previous_directive=no
4995 fi
4996 rm -f conftest*
4997fi
3a12e572
UD
4998echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
4999echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
cd6ede75 5000 if test $libc_cv_asm_previous_directive = yes; then
3a12e572 5001 cat >>confdefs.h <<\_ACEOF
cd6ede75 5002#define HAVE_ASM_PREVIOUS_DIRECTIVE 1
3a12e572 5003_ACEOF
cd6ede75
UD
5004
5005 else
3a12e572
UD
5006 echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
5007echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
5008if test "${libc_cv_asm_popsection_directive+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
5010else
5011 cat > conftest.s <<EOF
5012.pushsection foo_section
5013.popsection
5014EOF
3217788f 5015 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
3a12e572
UD
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
cd6ede75
UD
5021 libc_cv_asm_popsection_directive=yes
5022 else
5023 libc_cv_asm_popsection_directive=no
5024 fi
5025 rm -f conftest*
5026fi
3a12e572
UD
5027echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
5028echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6
cd6ede75 5029 if test $libc_cv_asm_popsection_directive = yes; then
3a12e572 5030 cat >>confdefs.h <<\_ACEOF
cd6ede75 5031#define HAVE_ASM_POPSECTION_DIRECTIVE 1
3a12e572 5032_ACEOF
cd6ede75
UD
5033
5034 fi
5035 fi
3a12e572
UD
5036 echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
5037echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6
5038if test "${libc_cv_asm_protected_directive+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
2d499f55
UD
5040else
5041 cat > conftest.s <<EOF
5042.protected foo
5043foo:
5044.hidden bar
5045bar:
5046EOF
3217788f 5047 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
3a12e572
UD
5048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049 (eval $ac_try) 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
2d499f55
UD
5053 libc_cv_asm_protected_directive=yes
5054 else
5055 libc_cv_asm_protected_directive=no
5056 fi
5057 rm -f conftest*
5058fi
3a12e572
UD
5059echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
5060echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6
2d499f55 5061
3a12e572 5062 cat >>confdefs.h <<\_ACEOF
5688da55 5063#define HAVE_PROTECTED 1
3a12e572 5064_ACEOF
5688da55 5065
3a12e572 5066 cat >>confdefs.h <<\_ACEOF
9bd64602 5067#define HAVE_HIDDEN 1
3a12e572 5068_ACEOF
9bd64602 5069
2f54c82d 5070
0d01dace 5071 if test $libc_cv_asm_protected_directive = yes; then
3a12e572
UD
5072 echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
5073echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6
5074if test "${libc_cv_visibility_attribute+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
0d01dace
UD
5076else
5077 cat > conftest.c <<EOF
5078 int foo __attribute__ ((visibility ("hidden"))) = 1;
5079 int bar __attribute__ ((visibility ("protected"))) = 1;
5080EOF
5081 libc_cv_visibility_attribute=no
61cea1c3
RM
5082 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; }; then
0d01dace
UD
5088 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5089 if grep '\.protected.*bar' conftest.s >/dev/null; then
5090 libc_cv_visibility_attribute=yes
5091 fi
5092 fi
5093 fi
5094 rm -f conftest.cs
0d01dace 5095
3a12e572
UD
5096fi
5097echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
5098echo "${ECHO_T}$libc_cv_visibility_attribute" >&6
0d01dace 5099 if test $libc_cv_visibility_attribute = yes; then
3a12e572 5100 cat >>confdefs.h <<\_ACEOF
0d01dace 5101#define HAVE_VISIBILITY_ATTRIBUTE 1
3a12e572 5102_ACEOF
0d01dace
UD
5103
5104 fi
5105 fi
5106
37ba7d66 5107 if test $libc_cv_visibility_attribute = yes; then
3a12e572
UD
5108 echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
5109echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6
5110if test "${libc_cv_broken_visibility_attribute+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
37ba7d66
UD
5112else
5113 cat > conftest.c <<EOF
5114 int foo (int x);
5115 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5116 int bar (int x) { return x; }
5117EOF
5118 libc_cv_broken_visibility_attribute=yes
61cea1c3
RM
5119 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 (eval $ac_try) 2>&5
5122 ac_status=$?
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
37ba7d66
UD
5125 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5126 libc_cv_broken_visibility_attribute=no
5127 fi
5128 fi
5129 rm -f conftest.c conftest.s
37ba7d66 5130
3a12e572
UD
5131fi
5132echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
5133echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6
37ba7d66 5134 if test $libc_cv_broken_visibility_attribute = yes; then
3a12e572 5135 cat >>confdefs.h <<\_ACEOF
37ba7d66 5136#define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
3a12e572 5137_ACEOF
37ba7d66
UD
5138
5139 fi
5140 fi
5141
3a12e572
UD
5142 echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
5143echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6
5144if test "${libc_cv_broken_alias_attribute+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
37ba7d66
UD
5146else
5147 cat > conftest.c <<EOF
5148 extern int foo (int x) __asm ("xyzzy");
5149 int bar (int x) { return x; }
48b8e846
UD
5150 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5151 extern int dfoo;
5152 extern __typeof (dfoo) dfoo __asm ("abccb");
5153 int dfoo = 1;
37ba7d66
UD
5154EOF
5155 libc_cv_broken_alias_attribute=yes
61cea1c3
RM
5156 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 (eval $ac_try) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
48b8e846
UD
5162 if grep 'xyzzy' conftest.s >/dev/null &&
5163 grep 'abccb' conftest.s >/dev/null; then
37ba7d66
UD
5164 libc_cv_broken_alias_attribute=no
5165 fi
5166 fi
5167 rm -f conftest.c conftest.s
37ba7d66 5168
3a12e572
UD
5169fi
5170echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
5171echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6
37ba7d66 5172 if test $libc_cv_broken_alias_attribute = yes; then
3a12e572 5173 cat >>confdefs.h <<\_ACEOF
37ba7d66 5174#define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
3a12e572 5175_ACEOF
37ba7d66
UD
5176
5177 fi
5178
0d01dace 5179 if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
3a12e572
UD
5180 echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
5181echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6
5182if test "${libc_cv_have_sdata_section+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
0d01dace
UD
5184else
5185 echo "int i;" > conftest.c
5186 libc_cv_have_sdata_section=no
3217788f 5187 if ${CC-cc} $LDFLAGS -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
0d01dace
UD
5188 | grep '\.sdata' >/dev/null; then
5189 libc_cv_have_sdata_section=yes
5190 fi
5191 rm -f conftest.c conftest.so
0d01dace 5192
3a12e572
UD
5193fi
5194echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
5195echo "${ECHO_T}$libc_cv_have_sdata_section" >&6
0d01dace 5196 if test $libc_cv_have_sdata_section = yes; then
3a12e572 5197 cat >>confdefs.h <<\_ACEOF
0d01dace 5198#define HAVE_SDATA_SECTION 1
3a12e572 5199_ACEOF
0d01dace
UD
5200
5201 fi
5202 fi
5203
3a12e572
UD
5204 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
5205echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
5206if test "${libc_cv_initfinit_array+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
2c617417
UD
5208else
5209 cat > conftest.c <<EOF
5210int _start (void) { return 0; }
5211int __start (void) { return 0; }
5212int foo (void) { return 1; }
5213int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5214EOF
3217788f 5215 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
3a12e572
UD
5216 -static -nostartfiles -nostdlib 1>&5'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218 (eval $ac_try) 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }
2c617417
UD
5222 then
5223 if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
5224 libc_cv_initfinit_array=yes
5225 else
5226 libc_cv_initfinit_array=no
5227 fi
5228 else
5229 libc_cv_initfinit_array=no
5230 fi
5231 rm -f conftest*
5232fi
3a12e572
UD
5233echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
5234echo "${ECHO_T}$libc_cv_initfinit_array" >&6
2c617417 5235
2c617417 5236 if test $libc_cv_initfinit_array = yes; then
3a12e572 5237 cat >>confdefs.h <<\_ACEOF
2c617417 5238#define HAVE_INITFINI_ARRAY 1
3a12e572 5239_ACEOF
2c617417
UD
5240
5241 fi
5242
c776b3d7
UD
5243 echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
5244echo $ECHO_N "checking for libunwind-support in compiler... $ECHO_C" >&6
5245if test "${libc_cv_cc_with_libunwind+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5247else
5248 cat >conftest.$ac_ext <<_ACEOF
8f73811b 5249#line $LINENO "configure"
c776b3d7
UD
5250/* confdefs.h. */
5251_ACEOF
5252cat confdefs.h >>conftest.$ac_ext
5253cat >>conftest.$ac_ext <<_ACEOF
5254/* end confdefs.h. */
5255#include <libunwind.h>
5256int
5257main ()
5258{
5259
5260 unw_context_t uc;
5261 unw_cursor_t c;
5262 unw_getcontext (&uc);
5263 unw_init_local (&c, &uc)
5264 ;
5265 return 0;
5266}
5267_ACEOF
5268rm -f conftest.$ac_objext conftest$ac_exeext
5269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8f73811b 5270 (eval $ac_link) 2>&5
c776b3d7 5271 ac_status=$?
c776b3d7
UD
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
8f73811b 5274 { ac_try='test -s conftest$ac_exeext'
c776b3d7
UD
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 (eval $ac_try) 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5280 libc_cv_cc_with_libunwind=yes
5281else
5282 echo "$as_me: failed program was:" >&5
5283sed 's/^/| /' conftest.$ac_ext >&5
5284
5285libc_cv_cc_with_libunwind=no
5286fi
8f73811b 5287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
c776b3d7
UD
5288fi
5289echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
5290echo "${ECHO_T}$libc_cv_cc_with_libunwind" >&6
5291
5292 if test $libc_cv_cc_with_libunwind = yes; then
5293 cat >>confdefs.h <<\_ACEOF
5294#define HAVE_CC_WITH_LIBUNWIND 1
5295_ACEOF
5296
5297 fi
5298
3a12e572
UD
5299 echo "$as_me:$LINENO: checking for -z nodelete option" >&5
5300echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6
5301if test "${libc_cv_z_nodelete+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
2f54c82d
UD
5303else
5304 cat > conftest.c <<EOF
5305int _start (void) { return 42; }
5306EOF
3217788f
RM
5307 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5308 -shared -o conftest.so conftest.c
35cd3c97 5309 -nostartfiles -nostdlib
3a12e572
UD
5310 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 (eval $ac_try) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }
2f54c82d
UD
5316 then
5317 libc_cv_z_nodelete=yes
5318 else
5319 libc_cv_z_nodelete=no
5320 fi
5321 rm -f conftest*
5322fi
3a12e572
UD
5323echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
5324echo "${ECHO_T}$libc_cv_z_nodelete" >&6
2f54c82d 5325
2f54c82d 5326
3a12e572
UD
5327 echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
5328echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6
5329if test "${libc_cv_z_nodlopen+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
2f54c82d
UD
5331else
5332 cat > conftest.c <<EOF
5333int _start (void) { return 42; }
5334EOF
3217788f
RM
5335 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5336 -shared -o conftest.so conftest.c
35cd3c97 5337 -nostartfiles -nostdlib
3a12e572
UD
5338 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }
2f54c82d
UD
5344 then
5345 libc_cv_z_nodlopen=yes
5346 else
5347 libc_cv_z_nodlopen=no
5348 fi
5349 rm -f conftest*
5350fi
3a12e572
UD
5351echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
5352echo "${ECHO_T}$libc_cv_z_nodlopen" >&6
2f54c82d 5353
5d916713 5354
3a12e572
UD
5355 echo "$as_me:$LINENO: checking for -z initfirst option" >&5
5356echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6
5357if test "${libc_cv_z_initfirst+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5d916713
UD
5359else
5360 cat > conftest.c <<EOF
5361int _start (void) { return 42; }
5362EOF
3217788f
RM
5363 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5364 -shared -o conftest.so conftest.c
35cd3c97 5365 -nostartfiles -nostdlib
3a12e572
UD
5366 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }
5d916713
UD
5372 then
5373 libc_cv_z_initfirst=yes
5374 else
5375 libc_cv_z_initfirst=no
5376 fi
5377 rm -f conftest*
5378fi
3a12e572
UD
5379echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
5380echo "${ECHO_T}$libc_cv_z_initfirst" >&6
5d916713 5381
639c3248 5382
ed20b3d9
UD
5383 echo "$as_me:$LINENO: checking for -z relro option" >&5
5384echo $ECHO_N "checking for -z relro option... $ECHO_C" >&6
5385if test "${libc_cv_z_relro+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388 if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 (eval $ac_try) 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }
5394 then
5395 libc_cv_z_relro=yes
5396 else
5397 libc_cv_z_relro=no
5398 fi
5399fi
5400echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
5401echo "${ECHO_T}$libc_cv_z_relro" >&6
5402
392a6b52
UD
5403 if test $libc_cv_z_relro = yes; then
5404 cat >>confdefs.h <<\_ACEOF
5405#define HAVE_Z_RELRO 1
5406_ACEOF
5407
5408 fi
ed20b3d9 5409
3a12e572
UD
5410 echo "$as_me:$LINENO: checking for -Bgroup option" >&5
5411echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6
5412if test "${libc_cv_Bgroup+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
639c3248
UD
5414else
5415 cat > conftest.c <<EOF
5416int _start (void) { return 42; }
5417EOF
3217788f
RM
5418 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5419 -shared -o conftest.so conftest.c
5420 -Wl,-Bgroup -nostdlib 1>&5'
3a12e572
UD
5421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422 (eval $ac_try) 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); }; }
639c3248
UD
5426 then
5427 libc_cv_Bgroup=yes
5428 else
5429 libc_cv_Bgroup=no
5430 fi
5431 rm -f conftest*
5432fi
3a12e572
UD
5433echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
5434echo "${ECHO_T}$libc_cv_Bgroup" >&6
639c3248 5435
a711b01d 5436
66b3d198
UD
5437 echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
5438echo $ECHO_N "checking for libgcc_s suffix... $ECHO_C" >&6
5439if test "${libc_cv_libgcc_s_suffix+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442 cat > conftest.c <<EOF
5443int main (void) { return 0; }
5444EOF
5445 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5446 -shared -shared-libgcc -o conftest.so \
5447 conftest.c -v 2>&1 >/dev/null \
5448 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
5449 rm -f conftest*
5450fi
5451echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
5452echo "${ECHO_T}$libc_cv_libgcc_s_suffix" >&6
5453
5454
78ec7d8c
UD
5455 echo "$as_me:$LINENO: checking for --as-needed option" >&5
5456echo $ECHO_N "checking for --as-needed option... $ECHO_C" >&6
5457if test "${libc_cv_as_needed+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5459else
5460 cat > conftest.c <<EOF
5461int main (void) { return 0; }
5462EOF
5463 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
66b3d198
UD
5464 -shared -o conftest.so conftest.c
5465 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
5466 -nostdlib 1>&5'
78ec7d8c
UD
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 (eval $ac_try) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }
5472 then
5473 libc_cv_as_needed=yes
5474 else
5475 libc_cv_as_needed=no
5476 fi
5477 rm -f conftest*
5478fi
5479echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
5480echo "${ECHO_T}$libc_cv_as_needed" >&6
5481
5482
35915ec8
UD
5483 ASFLAGS_config=
5484 echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
5485echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6
5486if test "${libc_cv_as_noexecstack+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488else
5489 cat > conftest.c <<EOF
5490void foo (void) { }
5491EOF
5492 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
5493 -S -o conftest.s conftest.c 1>&5'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 (eval $ac_try) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } \
5499 && grep -q .note.GNU-stack conftest.s \
5500 && { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wa,--noexecstack
5501 -c -o conftest.o conftest.s 1>&5'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }
5507 then
5508 libc_cv_as_noexecstack=yes
5509 else
5510 libc_cv_as_noexecstack=no
5511 fi
5512 rm -f conftest*
5513fi
5514echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
5515echo "${ECHO_T}$libc_cv_as_noexecstack" >&6
5516 if test $libc_cv_as_noexecstack = yes; then
5517 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
5518 fi
5519
2abf9ff1 5520
3a12e572
UD
5521 echo "$as_me:$LINENO: checking for -z combreloc" >&5
5522echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6
5523if test "${libc_cv_z_combreloc+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
a711b01d
UD
5525else
5526 cat > conftest.c <<EOF
d555194c
UD
5527extern int bar (int);
5528extern int mumble;
5529int foo (void) { return bar (mumble); }
a711b01d 5530EOF
3217788f
RM
5531 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5532 -shared -o conftest.so conftest.c
35cd3c97 5533 -nostdlib -nostartfiles
3a12e572
UD
5534 -Wl,-z,combreloc 1>&5'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }
a711b01d 5540 then
fdde8349
UD
5541 if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
5542 libc_cv_z_combreloc=yes
5543 else
5544 libc_cv_z_combreloc=no
a711b01d 5545 fi
fdde8349
UD
5546 else
5547 libc_cv_z_combreloc=no
a711b01d
UD
5548 fi
5549 rm -f conftest*
5550fi
3a12e572
UD
5551echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
5552echo "${ECHO_T}$libc_cv_z_combreloc" >&6
fdde8349 5553 if test "$libc_cv_z_combreloc" = yes; then
3a12e572 5554 cat >>confdefs.h <<\_ACEOF
fdde8349 5555#define HAVE_Z_COMBRELOC 1
3a12e572 5556_ACEOF
fdde8349
UD
5557
5558 fi
2abf9ff1
RM
5559
5560
5561 echo "$as_me:$LINENO: checking for -z execstack" >&5
5562echo $ECHO_N "checking for -z execstack... $ECHO_C" >&6
5563if test "${libc_cv_z_execstack+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565else
5566 cat > conftest.c <<EOF
5567int _start (void) { return 42; }
5568EOF
5569 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5570 -shared -o conftest.so conftest.c
5571 -Wl,-z,execstack -nostdlib
5572 1>&5'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }
5578 then
5579 libc_cv_z_execstack=yes
5580 else
5581 libc_cv_z_execstack=no
5582 fi
5583 rm -f conftest*
cd6ede75 5584fi
2abf9ff1
RM
5585echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
5586echo "${ECHO_T}$libc_cv_z_execstack" >&6
cd6ede75 5587
0f124303
UD
5588
5589 echo "$as_me:$LINENO: checking for -fpie" >&5
5590echo $ECHO_N "checking for -fpie... $ECHO_C" >&6
5591if test "${libc_cv_fpie+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594 cat > conftest.c <<EOF
5595int foo;
49803108 5596main () { return 0;}
0f124303
UD
5597EOF
5598 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
5599 -o conftest conftest.c 1>&5'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }
5605 then
5606 libc_cv_fpie=yes
5607 else
5608 libc_cv_fpie=no
5609 fi
5610 rm -f conftest*
5611fi
5612echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
5613echo "${ECHO_T}$libc_cv_fpie" >&6
5614
5615
2abf9ff1 5616fi
f13df7c7 5617
49803108
AJ
5618echo "$as_me:$LINENO: checking for -fno-unit-at-a-time" >&5
5619echo $ECHO_N "checking for -fno-unit-at-a-time... $ECHO_C" >&6
5620if test "${libc_cv_fno_unit_at_a_time+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623 cat > conftest.c <<EOF
5624int foo;
5625EOF
5626if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-unit-at-a-time
5627 conftest.c 1>&5'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 (eval $ac_try) 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }
5633then
5634 libc_cv_fno_unit_at_a_time=yes
5635else
5636 libc_cv_fno_unit_at_a_time=no
5637fi
5638rm -f conftest*
5639fi
5640echo "$as_me:$LINENO: result: $libc_cv_fno_unit_at_a_time" >&5
5641echo "${ECHO_T}$libc_cv_fno_unit_at_a_time" >&6
5642if test $libc_cv_fno_unit_at_a_time = yes; then
5643 fno_unit_at_a_time=-fno-unit-at-a-time
5644fi
5645
5646
cd6ede75 5647if test $elf != yes; then
3a12e572
UD
5648 echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
5649echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6
5650if test "${libc_cv_have_initfini+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 5652else
3a12e572 5653 cat >conftest.$ac_ext <<_ACEOF
8f73811b 5654#line $LINENO "configure"
2abf9ff1
RM
5655/* confdefs.h. */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h. */
cd6ede75 5660
3a12e572
UD
5661int
5662main ()
5663{
cd6ede75
UD
5664asm (".section .init");
5665 asm (".section .fini");
2293395f 5666 asm ("${libc_cv_dot_text}");
3a12e572
UD
5667 ;
5668 return 0;
5669}
5670_ACEOF
5671rm -f conftest.$ac_objext
5672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 5673 (eval $ac_compile) 2>&5
3a12e572
UD
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
8f73811b 5677 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
cd6ede75
UD
5683 libc_cv_have_initfini=yes
5684else
3a12e572 5685 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
5686sed 's/^/| /' conftest.$ac_ext >&5
5687
3a12e572 5688libc_cv_have_initfini=no
cd6ede75 5689fi
8f73811b 5690rm -f conftest.$ac_objext conftest.$ac_ext
cd6ede75 5691fi
3a12e572
UD
5692echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
5693echo "${ECHO_T}$libc_cv_have_initfini" >&6
cd6ede75 5694 if test $libc_cv_have_initfini = yes; then
3a12e572 5695 cat >>confdefs.h <<\_ACEOF
cd6ede75 5696#define HAVE_INITFINI 1
3a12e572 5697_ACEOF
cd6ede75
UD
5698
5699 fi
5700fi
5701
e26dd47f 5702if test $elf = yes -a $gnu_ld = yes; then
3a12e572
UD
5703 echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
5704echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6
5705if test "${libc_cv_have_section_quotes+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
e26dd47f
UD
5707else
5708 cat > conftest.c <<EOF
5709 static const int foo
5710 __attribute__ ((section ("bar"))) = 1;
5711EOF
5712 if ${CC-cc} -S conftest.c -o conftest.s; then
5713 if grep '\.section.*"bar"' conftest.s >/dev/null; then
5714 libc_cv_have_section_quotes=yes
5715 else
5716 libc_cv_have_section_quotes=no
5717 fi
5718 else
5719 libc_cv_have_section_quotes=unknown
5720 fi
5721 rm -f conftest.cs
e26dd47f 5722
3a12e572
UD
5723fi
5724echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
5725echo "${ECHO_T}$libc_cv_have_section_quotes" >&6
e26dd47f 5726 if test $libc_cv_have_section_quotes = yes; then
3a12e572 5727 cat >>confdefs.h <<\_ACEOF
e26dd47f 5728#define HAVE_SECTION_QUOTES 1
3a12e572 5729_ACEOF
e26dd47f
UD
5730
5731 fi
5732fi
5733
9a0a462c
UD
5734
5735
cd6ede75
UD
5736if test $elf = yes; then
5737 libc_cv_asm_underscores=no
5738else
9a0a462c 5739 if test $ac_cv_prog_cc_works = yes; then
3a12e572
UD
5740 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5741echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5742if test "${libc_cv_asm_underscores+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 5744else
3a12e572 5745 cat >conftest.$ac_ext <<_ACEOF
8f73811b 5746#line $LINENO "configure"
2abf9ff1
RM
5747/* confdefs.h. */
5748_ACEOF
5749cat confdefs.h >>conftest.$ac_ext
5750cat >>conftest.$ac_ext <<_ACEOF
5751/* end confdefs.h. */
cd6ede75 5752asm ("_glibc_foobar:");
3a12e572
UD
5753int
5754main ()
5755{
cd6ede75 5756glibc_foobar ();
3a12e572
UD
5757 ;
5758 return 0;
5759}
5760_ACEOF
5761rm -f conftest.$ac_objext conftest$ac_exeext
5762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8f73811b 5763 (eval $ac_link) 2>&5
3a12e572
UD
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
8f73811b 5767 { ac_try='test -s conftest$ac_exeext'
3a12e572
UD
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; }; then
cd6ede75
UD
5773 libc_cv_asm_underscores=yes
5774else
3a12e572 5775 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
5776sed 's/^/| /' conftest.$ac_ext >&5
5777
3a12e572 5778libc_cv_asm_underscores=no
cd6ede75 5779fi
8f73811b 5780rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
cd6ede75 5781fi
3a12e572
UD
5782echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5783echo "${ECHO_T}$libc_cv_asm_underscores" >&6
9a0a462c 5784 else
3a12e572
UD
5785 echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5786echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5787if test "${libc_cv_asm_underscores+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
9a0a462c
UD
5789else
5790 cat > conftest.$ac_ext <<EOF
85dd1003 5791#line $LINENO "configure"
9a0a462c
UD
5792#include "confdefs.h"
5793void underscore_test(void) {
5794return; }
5795EOF
3a12e572
UD
5796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797 (eval $ac_compile) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; then
9a0a462c
UD
5801 if grep _underscore_test conftest* >/dev/null; then
5802 rm -f conftest*
5803 libc_cv_asm_underscores=yes
5804 else
5805 rm -f conftest*
5806 libc_cv_asm_underscores=no
5807 fi
5808else
5809 echo "configure: failed program was:" >&5
5810 cat conftest.$ac_ext >&5
5811 rm -f conftest*
5812 libc_cv_asm_underscores=no
5813fi
5814rm -f conftest*
5815fi
3a12e572
UD
5816echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5817echo "${ECHO_T}$libc_cv_asm_underscores" >&6
9a0a462c 5818 fi
cd6ede75
UD
5819fi
5820if test $libc_cv_asm_underscores = no; then
3a12e572 5821 cat >>confdefs.h <<\_ACEOF
cd6ede75 5822#define NO_UNDERSCORES 1
3a12e572 5823_ACEOF
cd6ede75
UD
5824
5825fi
5826
5827if test $elf = yes; then
5828 libc_cv_weak_symbols=yes
9a97d1f7
UD
5829fi
5830
3a12e572
UD
5831echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
5832echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6
5833if test "${libc_cv_asm_weak_directive+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
5835else
5836 cat > conftest.s <<EOF
2293395f 5837${libc_cv_dot_text}
cd6ede75
UD
5838${libc_cv_asm_global_directive} foo
5839foo:
5840.weak foo
5841.weak bar; bar = foo
5842EOF
3217788f 5843if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 (eval $ac_try) 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
9a97d1f7
UD
5849 libc_cv_asm_weak_directive=yes
5850else
5851 libc_cv_asm_weak_directive=no
5852fi
5853rm -f conftest*
cd6ede75 5854fi
3a12e572
UD
5855echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
5856echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6
cd6ede75
UD
5857
5858if test $libc_cv_asm_weak_directive = no; then
3a12e572
UD
5859 echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
5860echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6
5861if test "${libc_cv_asm_weakext_directive+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
5863else
5864 cat > conftest.s <<EOF
2293395f 5865${libc_cv_dot_text}
cd6ede75
UD
5866${libc_cv_asm_global_directive} foo
5867foo:
9a97d1f7
UD
5868.weakext bar foo
5869.weakext baz
5870${libc_cv_asm_global_directive} baz
5871baz:
cd6ede75 5872EOF
3217788f 5873 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
61cea1c3
RM
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
cd6ede75
UD
5879 libc_cv_asm_weakext_directive=yes
5880 else
5881 libc_cv_asm_weakext_directive=no
5882 fi
5883 rm -f conftest*
5884fi
3a12e572
UD
5885echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
5886echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6
cd6ede75 5887
9a97d1f7 5888fi # no .weak
cd6ede75
UD
5889
5890if test $libc_cv_asm_weak_directive = yes; then
3a12e572 5891 cat >>confdefs.h <<\_ACEOF
cd6ede75 5892#define HAVE_ASM_WEAK_DIRECTIVE 1
3a12e572 5893_ACEOF
cd6ede75
UD
5894
5895elif test $libc_cv_asm_weakext_directive = yes; then
3a12e572 5896 cat >>confdefs.h <<\_ACEOF
cd6ede75 5897#define HAVE_ASM_WEAKEXT_DIRECTIVE 1
3a12e572 5898_ACEOF
cd6ede75
UD
5899
5900fi
5901
b15cb495 5902case "${host_cpu}-${host_os}" in
eacde9d0
UD
5903 cris*)
5904 libc_cv_asm_line_sep='@'
3a12e572 5905 cat >>confdefs.h <<_ACEOF
eacde9d0 5906#define ASM_LINE_SEP $libc_cv_asm_line_sep
3a12e572 5907_ACEOF
eacde9d0
UD
5908
5909 ;;
b15cb495 5910 hppa*linux*)
3a12e572
UD
5911 echo "$as_me:$LINENO: checking for assembler line separator" >&5
5912echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6
5913if test "${libc_cv_asm_line_sep+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
b15cb495
UD
5915else
5916 cat > conftest.s <<EOF
5917 nop ; is_old_puffin
5918EOF
3217788f 5919 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
3a12e572
UD
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 (eval $ac_try) 2>&5
5922 ac_status=$?
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
b15cb495
UD
5925 libc_cv_asm_line_sep='!'
5926 else
5927 if test -z "$enable_hacker_mode"; then
5928 echo "*** You need a newer assembler to compile glibc"
5929 rm -f conftest*
5930 exit 1
5931 fi
5932 libc_cv_asm_line_sep=';'
5933 fi
5934 rm -f conftest*
5935fi
3a12e572
UD
5936echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5
5937echo "${ECHO_T}$libc_cv_asm_line_sep" >&6
5938 cat >>confdefs.h <<_ACEOF
b15cb495 5939#define ASM_LINE_SEP $libc_cv_asm_line_sep
3a12e572 5940_ACEOF
b15cb495
UD
5941
5942 ;;
5943esac
5944
50189569
AJ
5945echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
5946echo $ECHO_N "checking whether CFI directives are supported... $ECHO_C" >&6
5947if test "${libc_cv_asm_cfi_directives+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949else
5950 cat > conftest.s <<EOF
5951 .text
5952 .type func,@function
5953func:
5954 .cfi_startproc
f212e8dc 5955 .cfi_remember_state
fbd90f6c 5956 .cfi_rel_offset 1, 0
50189569
AJ
5957 .cfi_endproc
5958EOF
5959if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 libc_cv_asm_cfi_directives=yes
5966else
5967 libc_cv_asm_cfi_directives=no
5968fi
5969rm -f conftest*
5970fi
5971echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
5972echo "${ECHO_T}$libc_cv_asm_cfi_directives" >&6
5973if test $libc_cv_asm_cfi_directives = yes; then
5974 cat >>confdefs.h <<\_ACEOF
5975#define HAVE_ASM_CFI_DIRECTIVES 1
5976_ACEOF
5977
5978fi
5979
073e82bf
RM
5980echo "$as_me:$LINENO: checking if -g produces usable source locations for assembler-with-cpp" >&5
5981echo $ECHO_N "checking if -g produces usable source locations for assembler-with-cpp... $ECHO_C" >&6
5982if test "${libc_cv_cpp_asm_debuginfo+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985 cat > conftest.S <<EOF
5986#include "confdefs.h"
5987
5988/* comment on
5989 two lines */
5990 ${libc_cv_dot_text}
5991 ${libc_cv_asm_global_directive} foo
5992foo:
5993 /* Unfortunately this test only works for a real instruction,
5994 not for any of the machine-independent pseudo-ops.
5995 So we just have to assume everybody has a "nop". */
5996 nop
5997 /* comment */
5998 nop
5999 /* comment */
6000 nop
6001EOF
3217788f 6002if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -g -c conftest.S 1>&5'
073e82bf
RM
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5
6005 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 ac_pattern='conftest\.S'
6009 { ac_try='readelf --debug-dump=line conftest.o |
6010 grep $ac_pattern 1>&5'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 libc_cv_cpp_asm_debuginfo=yes
6017else
6018 libc_cv_cpp_asm_debuginfo=no
6019fi
6020rm -f conftest*
6021fi
6022echo "$as_me:$LINENO: result: $libc_cv_cpp_asm_debuginfo" >&5
6023echo "${ECHO_T}$libc_cv_cpp_asm_debuginfo" >&6
6024if test $libc_cv_cpp_asm_debuginfo = yes; then
6025 cat >>confdefs.h <<\_ACEOF
6026#define HAVE_CPP_ASM_DEBUGINFO 1
6027_ACEOF
6028
6029fi
6030
3a12e572
UD
6031echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
6032echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6
6033if test "${libc_cv_ld_no_whole_archive+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
6035else
6036 cat > conftest.c <<\EOF
6037_start () {}
6038int __eh_pc;
6039__throw () {}
6040EOF
3217788f 6041if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
cd6ede75 6042 -nostdlib -nostartfiles -Wl,--no-whole-archive
3a12e572
UD
6043 -o conftest conftest.c 1>&5'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
cd6ede75
UD
6049 libc_cv_ld_no_whole_archive=yes
6050else
6051 libc_cv_ld_no_whole_archive=no
6052fi
6053rm -f conftest*
6054fi
3a12e572
UD
6055echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
6056echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6
b17277cf
UD
6057if test $libc_cv_ld_no_whole_archive = yes; then
6058 no_whole_archive=-Wl,--no-whole-archive
6059fi
cd6ede75 6060
3a12e572
UD
6061echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
6062echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6
6063if test "${libc_cv_gcc_exceptions+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75
UD
6065else
6066 cat > conftest.c <<\EOF
6067_start () {}
6068int __eh_pc;
6069__throw () {}
6070EOF
3217788f 6071if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
dff14448 6072 -nostdlib -nostartfiles -fexceptions
3a12e572
UD
6073 -o conftest conftest.c 1>&5'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
dff14448 6079 libc_cv_gcc_exceptions=yes
cd6ede75 6080else
dff14448 6081 libc_cv_gcc_exceptions=no
cd6ede75
UD
6082fi
6083rm -f conftest*
6084fi
3a12e572
UD
6085echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
6086echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6
dff14448
UD
6087if test $libc_cv_gcc_exceptions = yes; then
6088 exceptions=-fexceptions
b17277cf 6089fi
cd6ede75 6090
ebcd12d4
UD
6091if test "$host_cpu" = powerpc ; then
6092# Check for a bug present in at least versions 2.8.x of GCC
6093# and versions 1.0.x of EGCS.
3a12e572
UD
6094echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
6095echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6
6096if test "${libc_cv_c_asmcr0_bug+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
ebcd12d4 6098else
3a12e572 6099 cat >conftest.$ac_ext <<_ACEOF
8f73811b 6100#line $LINENO "configure"
2abf9ff1
RM
6101/* confdefs.h. */
6102_ACEOF
6103cat confdefs.h >>conftest.$ac_ext
6104cat >>conftest.$ac_ext <<_ACEOF
6105/* end confdefs.h. */
ebcd12d4 6106int tester(int x) { asm ("" : : : "cc"); return x & 123; }
3a12e572
UD
6107int
6108main ()
6109{
ebcd12d4 6110
3a12e572
UD
6111 ;
6112 return 0;
6113}
6114_ACEOF
6115rm -f conftest.$ac_objext
6116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 6117 (eval $ac_compile) 2>&5
3a12e572
UD
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } &&
8f73811b 6121 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
ebcd12d4
UD
6127 libc_cv_c_asmcr0_bug='no'
6128else
3a12e572 6129 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
3a12e572 6132libc_cv_c_asmcr0_bug='yes'
ebcd12d4 6133fi
8f73811b 6134rm -f conftest.$ac_objext conftest.$ac_ext
ebcd12d4 6135fi
3a12e572
UD
6136echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
6137echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6
ebcd12d4 6138if test "$libc_cv_c_asmcr0_bug" != 'no'; then
3a12e572 6139 cat >>confdefs.h <<\_ACEOF
ebcd12d4 6140#define BROKEN_PPC_ASM_CR0 1
3a12e572 6141_ACEOF
ebcd12d4
UD
6142
6143fi
6144fi
6145
3a12e572
UD
6146echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5
6147echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6
6148if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
650425ce
UD
6150else
6151 cat > conftest.c <<EOF
85dd1003 6152#line $LINENO "configure"
2b904739 6153static char *__EH_FRAME_BEGIN__;
650425ce
UD
6154_start ()
6155{
9756dfe1 6156#ifdef CHECK__register_frame
650425ce
UD
6157 __register_frame (__EH_FRAME_BEGIN__);
6158 __deregister_frame (__EH_FRAME_BEGIN__);
9756dfe1
UD
6159#endif
6160#ifdef CHECK__register_frame_info
6161 __register_frame_info (__EH_FRAME_BEGIN__);
6162 __deregister_frame_info (__EH_FRAME_BEGIN__);
6163#endif
650425ce
UD
6164}
6165int __eh_pc;
6166__throw () {}
6167/* FIXME: this is fragile. */
6168malloc () {}
6169strcmp () {}
6170strlen () {}
6171memcpy () {}
6172memset () {}
6173free () {}
6174abort () {}
dfd2257a 6175__bzero () {}
7ae4abe9 6176dl_iterate_phdr () {}
650425ce 6177EOF
3217788f
RM
6178libc_unwind_check="${CC-cc} $CFLAGS $CPPFLAGS -DCHECK__register_frame_info \
6179 $LDFLAGS \
42607429
RM
6180 -nostdlib -nostartfiles -o conftest conftest.c \
6181 -lgcc"
6182# Some platforms' specs put -lgcc first. The second one doesn't hurt.
6183if { ac_try='$libc_unwind_check >&5'
3a12e572
UD
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 (eval $ac_try) 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42607429
RM
6188 (exit $ac_status); }; } ||
6189 { ac_try='$libc_unwind_check -lgcc_eh -lgcc >&5'
3a12e572
UD
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42607429
RM
6194 (exit $ac_status); }; }
6195then
cd925327 6196 if $libc_unwind_check -v 2>&1 >/dev/null \
083dc54a 6197 | grep -- --eh-frame-hdr 2>&1 >/dev/null; then
2b904739
AJ
6198 libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
6199 else
6200 libc_cv_gcc_dwarf2_unwind_info=static
6201 fi
6202else
6203 libc_cv_gcc_dwarf2_unwind_info=no
6204fi
9756dfe1 6205if test $libc_cv_gcc_dwarf2_unwind_info = no; then
3217788f
RM
6206 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -DCHECK__register_frame
6207 $LDFLAGS -nostdlib -nostartfiles
3a12e572
UD
6208 -o conftest conftest.c -lgcc >&5'
6209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6210 (eval $ac_try) 2>&5
6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }; }; then
9756dfe1
UD
6214 libc_cv_gcc_dwarf2_unwind_info=yes
6215 else
6216 libc_cv_gcc_dwarf2_unwind_info=no
6217 fi
6218fi
650425ce
UD
6219rm -f conftest*
6220fi
3a12e572
UD
6221echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5
6222echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6
9756dfe1
UD
6223case $libc_cv_gcc_dwarf2_unwind_info in
6224yes)
3a12e572 6225 cat >>confdefs.h <<\_ACEOF
650425ce 6226#define HAVE_DWARF2_UNWIND_INFO 1
3a12e572 6227_ACEOF
650425ce 6228
9756dfe1
UD
6229 ;;
6230static)
3a12e572 6231 cat >>confdefs.h <<\_ACEOF
9756dfe1 6232#define HAVE_DWARF2_UNWIND_INFO 1
3a12e572 6233_ACEOF
9756dfe1 6234
3a12e572 6235 cat >>confdefs.h <<\_ACEOF
9756dfe1 6236#define HAVE_DWARF2_UNWIND_INFO_STATIC 1
3a12e572 6237_ACEOF
9756dfe1
UD
6238
6239 ;;
6240esac
650425ce 6241
3a12e572
UD
6242echo "$as_me:$LINENO: checking for __builtin_expect" >&5
6243echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
6244if test "${libc_cv_gcc_builtin_expect+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
a8eab8b1
UD
6246else
6247 cat > conftest.c <<EOF
85dd1003 6248#line $LINENO "configure"
a8eab8b1
UD
6249int foo (int a)
6250{
6251 a = __builtin_expect (a, 10);
6252 return a == 10 ? 0 : 1;
6253}
6254EOF
3217788f 6255if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
3a12e572
UD
6256 -o conftest conftest.c -lgcc >&5'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 (eval $ac_try) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
a8eab8b1
UD
6262 libc_cv_gcc_builtin_expect=yes
6263else
6264 libc_cv_gcc_builtin_expect=no
6265fi
6266rm -f conftest*
6267fi
3a12e572
UD
6268echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
6269echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6
a8eab8b1 6270if test "$libc_cv_gcc_builtin_expect" = yes; then
3a12e572 6271 cat >>confdefs.h <<\_ACEOF
a8eab8b1 6272#define HAVE_BUILTIN_EXPECT 1
3a12e572 6273_ACEOF
a8eab8b1
UD
6274
6275fi
6276
3a12e572
UD
6277echo "$as_me:$LINENO: checking for __builtin_memset" >&5
6278echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6
6279if test "${libc_cv_gcc_builtin_memset+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
d555194c
UD
6281else
6282 cat > conftest.c <<\EOF
6283void zero (void *x)
6284{
a52d1562 6285 __builtin_memset (x, 0, 1000);
d555194c
UD
6286}
6287EOF
3a12e572
UD
6288if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; };
d555194c
UD
6294then
6295 libc_cv_gcc_builtin_memset=no
6296else
6297 libc_cv_gcc_builtin_memset=yes
6298fi
3a12e572 6299rm -f conftest*
d555194c 6300fi
3a12e572
UD
6301echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
6302echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6
d555194c 6303if test "$libc_cv_gcc_builtin_memset" = yes ; then
3a12e572 6304 cat >>confdefs.h <<\_ACEOF
d555194c 6305#define HAVE_BUILTIN_MEMSET 1
3a12e572 6306_ACEOF
d555194c
UD
6307
6308fi
6309
85dd1003
UD
6310echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
6311echo $ECHO_N "checking for redirection of built-in functions... $ECHO_C" >&6
6312if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314else
6315 cat > conftest.c <<\EOF
6316extern char *strstr (const char *, const char *) __asm ("my_strstr");
6317char *foo (const char *a, const char *b)
6318{
6319 return __builtin_strstr (a, b);
6320}
6321EOF
6322if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; };
6328then
6329 libc_cv_gcc_builtin_redirection=yes
6330else
6331 libc_cv_gcc_builtin_redirection=no
6332fi
6333rm -f conftest*
6334fi
6335echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
6336echo "${ECHO_T}$libc_cv_gcc_builtin_redirection" >&6
6337if test "$libc_cv_gcc_builtin_redirection" = yes ; then
6338 cat >>confdefs.h <<\_ACEOF
6339#define HAVE_BUILTIN_REDIRECTION 1
6340_ACEOF
6341
6342fi
6343
3a12e572
UD
6344echo "$as_me:$LINENO: checking for local label subtraction" >&5
6345echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
6346if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
3d558f4e
UD
6348else
6349 cat > conftest.c <<EOF
85dd1003 6350#line $LINENO "configure"
3d558f4e
UD
6351int foo (int a)
6352{
6353 static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
6354 void *p = &&l1 + ar[a];
6355 goto *p;
6356 l1:
6357 return 1;
6358 l2:
6359 return 2;
6360}
6361EOF
3217788f 6362if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
3a12e572
UD
6363 -o conftest conftest.c -lgcc >&5'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
3d558f4e
UD
6369 libc_cv_gcc_subtract_local_labels=yes
6370else
6371 libc_cv_gcc_subtract_local_labels=no
6372fi
6373rm -f conftest*
6374fi
3a12e572
UD
6375echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5
6376echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6
3d558f4e 6377if test "$libc_cv_gcc_subtract_local_labels" = yes; then
3a12e572 6378 cat >>confdefs.h <<\_ACEOF
3d558f4e 6379#define HAVE_SUBTRACT_LOCAL_LABELS 1
3a12e572 6380_ACEOF
3d558f4e
UD
6381
6382fi
6383
5b8f26b4 6384if test "x$use__thread" != xno; then
3a12e572
UD
6385 echo "$as_me:$LINENO: checking for __thread" >&5
6386echo $ECHO_N "checking for __thread... $ECHO_C" >&6
6387if test "${libc_cv_gcc___thread+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
739d440d 6389else
5bbfc1ea 6390 cat > conftest.c <<\EOF
fbb18522
RM
6391__thread int a = 42;
6392EOF
3217788f 6393 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
3a12e572
UD
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
5b8f26b4
RM
6399 libc_cv_gcc___thread=yes
6400 else
6401 libc_cv_gcc___thread=no
6402 fi
6403 rm -f conftest*
739d440d 6404fi
3a12e572
UD
6405echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
6406echo "${ECHO_T}$libc_cv_gcc___thread" >&6
5b8f26b4 6407 if test "$libc_cv_gcc___thread" = yes; then
3a12e572 6408 cat >>confdefs.h <<\_ACEOF
739d440d 6409#define HAVE___THREAD 1
3a12e572 6410_ACEOF
739d440d 6411
5b8f26b4 6412 fi
fbb18522
RM
6413else
6414 libc_cv_gcc___thread=no
739d440d
UD
6415fi
6416
9b21e6bc 6417if test "$libc_cv_gcc___thread" = yes; then
3a12e572
UD
6418 echo "$as_me:$LINENO: checking for tls_model attribute" >&5
6419echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6
6420if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
9b21e6bc
RM
6422else
6423 cat > conftest.c <<\EOF
6424extern __thread int a __attribute__((tls_model ("initial-exec")));
6425EOF
3217788f 6426 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
3a12e572
UD
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
9b21e6bc
RM
6432 libc_cv_gcc_tls_model_attr=yes
6433 else
6434 libc_cv_gcc_tls_model_attr=no
6435 fi
6436 rm -f conftest*
6437fi
3a12e572
UD
6438echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
6439echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6
9b21e6bc 6440 if test "$libc_cv_gcc_tls_model_attr" = yes; then
3a12e572 6441 cat >>confdefs.h <<\_ACEOF
9b21e6bc 6442#define HAVE_TLS_MODEL_ATTRIBUTE 1
3a12e572 6443_ACEOF
9b21e6bc
RM
6444
6445 fi
6446fi
739d440d 6447
3a12e572
UD
6448echo "$as_me:$LINENO: checking for libgd" >&5
6449echo $ECHO_N "checking for libgd... $ECHO_C" >&6
6dab8688
UD
6450if test "$with_gd" != "no"; then
6451 old_CFLAGS="$CFLAGS"
6452 CFLAGS="$CFLAGS $libgd_include"
6453 old_LDFLAGS="$LDFLAGS"
6454 LDFLAGS="$LDFLAGS $libgd_ldflags"
6455 old_LIBS="$LIBS"
6456 LIBS="$LIBS -lgd -lpng -lz -lm"
3a12e572 6457 cat >conftest.$ac_ext <<_ACEOF
8f73811b 6458#line $LINENO "configure"
2abf9ff1
RM
6459/* confdefs.h. */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h. */
c8f3e6db 6464#include <gd.h>
3a12e572
UD
6465int
6466main ()
6467{
c8f3e6db 6468gdImagePng (0, 0)
3a12e572
UD
6469 ;
6470 return 0;
6471}
6472_ACEOF
6473rm -f conftest.$ac_objext conftest$ac_exeext
6474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8f73811b 6475 (eval $ac_link) 2>&5
3a12e572
UD
6476 ac_status=$?
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } &&
8f73811b 6479 { ac_try='test -s conftest$ac_exeext'
3a12e572
UD
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 (eval $ac_try) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
c8f3e6db
UD
6485 LIBGD=yes
6486else
3a12e572 6487 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6488sed 's/^/| /' conftest.$ac_ext >&5
6489
3a12e572 6490LIBGD=no
c8f3e6db 6491fi
8f73811b 6492rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6dab8688
UD
6493 CFLAGS="$old_CFLAGS"
6494 LDFLAGS="$old_LDFLAGS"
6495 LIBS="$old_LIBS"
6496else
6497 LIBGD=no
6498fi
3a12e572
UD
6499echo "$as_me:$LINENO: result: $LIBGD" >&5
6500echo "${ECHO_T}$LIBGD" >&6
6501
6502
6503
f4b07664
RM
6504echo "$as_me:$LINENO: checking for egrep" >&5
6505echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6506if test "${ac_cv_prog_egrep+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6510 then ac_cv_prog_egrep='grep -E'
6511 else ac_cv_prog_egrep='egrep'
6512 fi
6513fi
6514echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6515echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6516 EGREP=$ac_cv_prog_egrep
6517
6518
3a12e572
UD
6519echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6520echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6521if test "${ac_cv_header_stdc+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523else
6524 cat >conftest.$ac_ext <<_ACEOF
8f73811b 6525#line $LINENO "configure"
2abf9ff1
RM
6526/* confdefs.h. */
6527_ACEOF
6528cat confdefs.h >>conftest.$ac_ext
6529cat >>conftest.$ac_ext <<_ACEOF
6530/* end confdefs.h. */
3a12e572
UD
6531#include <stdlib.h>
6532#include <stdarg.h>
6533#include <string.h>
6534#include <float.h>
6535
2abf9ff1
RM
6536int
6537main ()
6538{
6539
6540 ;
6541 return 0;
6542}
3a12e572 6543_ACEOF
2abf9ff1
RM
6544rm -f conftest.$ac_objext
6545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 6546 (eval $ac_compile) 2>&5
32a448ed
RM
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2abf9ff1 6549 (exit $ac_status); } &&
8f73811b 6550 { ac_try='test -s conftest.$ac_objext'
2abf9ff1
RM
6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); }; }; then
3a12e572
UD
6556 ac_cv_header_stdc=yes
6557else
6558 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6559sed 's/^/| /' conftest.$ac_ext >&5
6560
6561ac_cv_header_stdc=no
3a12e572 6562fi
8f73811b 6563rm -f conftest.$ac_objext conftest.$ac_ext
c8f3e6db 6564
3a12e572
UD
6565if test $ac_cv_header_stdc = yes; then
6566 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6567 cat >conftest.$ac_ext <<_ACEOF
8f73811b 6568#line $LINENO "configure"
2abf9ff1
RM
6569/* confdefs.h. */
6570_ACEOF
6571cat confdefs.h >>conftest.$ac_ext
6572cat >>conftest.$ac_ext <<_ACEOF
6573/* end confdefs.h. */
3a12e572 6574#include <string.h>
3d558f4e 6575
3a12e572
UD
6576_ACEOF
6577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f4b07664 6578 $EGREP "memchr" >/dev/null 2>&1; then
3a12e572 6579 :
8ed1e7d5 6580else
3a12e572
UD
6581 ac_cv_header_stdc=no
6582fi
6583rm -f conftest*
6584
6585fi
6586
6587if test $ac_cv_header_stdc = yes; then
6588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6589 cat >conftest.$ac_ext <<_ACEOF
8f73811b 6590#line $LINENO "configure"
2abf9ff1
RM
6591/* confdefs.h. */
6592_ACEOF
6593cat confdefs.h >>conftest.$ac_ext
6594cat >>conftest.$ac_ext <<_ACEOF
6595/* end confdefs.h. */
3a12e572
UD
6596#include <stdlib.h>
6597
6598_ACEOF
6599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
f4b07664 6600 $EGREP "free" >/dev/null 2>&1; then
3a12e572
UD
6601 :
6602else
6603 ac_cv_header_stdc=no
6604fi
6605rm -f conftest*
6606
6607fi
6608
6609if test $ac_cv_header_stdc = yes; then
6610 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8ed1e7d5 6611 if test "$cross_compiling" = yes; then
3a12e572 6612 :
8ed1e7d5 6613else
3a12e572 6614 cat >conftest.$ac_ext <<_ACEOF
8f73811b 6615#line $LINENO "configure"
2abf9ff1
RM
6616/* confdefs.h. */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */
3a12e572
UD
6621#include <ctype.h>
6622#if ((' ' & 0x0FF) == 0x020)
6623# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6624# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6625#else
2abf9ff1 6626# define ISLOWER(c) \
8f73811b
RM
6627 (('a' <= (c) && (c) <= 'i') \
6628 || ('j' <= (c) && (c) <= 'r') \
6629 || ('s' <= (c) && (c) <= 'z'))
3a12e572
UD
6630# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6631#endif
6632
6633#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6634int
6635main ()
8ed1e7d5 6636{
3a12e572
UD
6637 int i;
6638 for (i = 0; i < 256; i++)
6639 if (XOR (islower (i), ISLOWER (i))
8f73811b 6640 || toupper (i) != TOUPPER (i))
3a12e572
UD
6641 exit(2);
6642 exit (0);
8ed1e7d5 6643}
3a12e572
UD
6644_ACEOF
6645rm -f conftest$ac_exeext
6646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6647 (eval $ac_link) 2>&5
6648 ac_status=$?
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 (eval $ac_try) 2>&5
6653 ac_status=$?
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 :
8ed1e7d5 6657else
3a12e572
UD
6658 echo "$as_me: program exited with status $ac_status" >&5
6659echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6660sed 's/^/| /' conftest.$ac_ext >&5
6661
3a12e572
UD
6662( exit $ac_status )
6663ac_cv_header_stdc=no
6664fi
8f73811b 6665rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8ed1e7d5 6666fi
8ed1e7d5 6667fi
3a12e572
UD
6668fi
6669echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6670echo "${ECHO_T}$ac_cv_header_stdc" >&6
6671if test $ac_cv_header_stdc = yes; then
6672
6673cat >>confdefs.h <<\_ACEOF
6674#define STDC_HEADERS 1
6675_ACEOF
6676
6677fi
6678
6679# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8f73811b 6690 inttypes.h stdint.h unistd.h
3a12e572
UD
6691do
6692as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6693echo "$as_me:$LINENO: checking for $ac_header" >&5
6694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6695if eval "test \"\${$as_ac_Header+set}\" = set"; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697else
6698 cat >conftest.$ac_ext <<_ACEOF
8f73811b 6699#line $LINENO "configure"
2abf9ff1
RM
6700/* confdefs.h. */
6701_ACEOF
6702cat confdefs.h >>conftest.$ac_ext
6703cat >>conftest.$ac_ext <<_ACEOF
6704/* end confdefs.h. */
3a12e572
UD
6705$ac_includes_default
6706
6707#include <$ac_header>
6708_ACEOF
6709rm -f conftest.$ac_objext
6710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 6711 (eval $ac_compile) 2>&5
3a12e572
UD
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } &&
8f73811b 6715 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 (eval $ac_try) 2>&5
6718 ac_status=$?
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; }; then
6721 eval "$as_ac_Header=yes"
6722else
6723 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6724sed 's/^/| /' conftest.$ac_ext >&5
6725
3a12e572
UD
6726eval "$as_ac_Header=no"
6727fi
8f73811b 6728rm -f conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
6729fi
6730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732if test `eval echo '${'$as_ac_Header'}'` = yes; then
6733 cat >>confdefs.h <<_ACEOF
6734#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6735_ACEOF
8ed1e7d5
GK
6736
6737fi
3a12e572
UD
6738
6739done
6740
6741
6742echo "$as_me:$LINENO: checking for long double" >&5
6743echo $ECHO_N "checking for long double... $ECHO_C" >&6
6744if test "${ac_cv_type_long_double+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746else
6747 cat >conftest.$ac_ext <<_ACEOF
8f73811b 6748#line $LINENO "configure"
2abf9ff1
RM
6749/* confdefs.h. */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h. */
3a12e572 6754$ac_includes_default
3a12e572
UD
6755int
6756main ()
6757{
6758if ((long double *) 0)
6759 return 0;
6760if (sizeof (long double))
6761 return 0;
6762 ;
6763 return 0;
6764}
6765_ACEOF
6766rm -f conftest.$ac_objext
6767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 6768 (eval $ac_compile) 2>&5
3a12e572
UD
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } &&
8f73811b 6772 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_cv_type_long_double=yes
6779else
6780 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6781sed 's/^/| /' conftest.$ac_ext >&5
6782
3a12e572
UD
6783ac_cv_type_long_double=no
6784fi
8f73811b 6785rm -f conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
6786fi
6787echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
6788echo "${ECHO_T}$ac_cv_type_long_double" >&6
6789
6790echo "$as_me:$LINENO: checking size of long double" >&5
6791echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6792if test "${ac_cv_sizeof_long_double+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794else
6795 if test "$ac_cv_type_long_double" = yes; then
6796 # The cast to unsigned long works around a bug in the HP C Compiler
6797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6799 # This bug is HP SR number 8606223364.
6800 if test "$cross_compiling" = yes; then
6801 # Depending upon the size, compute the lo and hi bounds.
6802cat >conftest.$ac_ext <<_ACEOF
8f73811b 6803#line $LINENO "configure"
2abf9ff1
RM
6804/* confdefs.h. */
6805_ACEOF
6806cat confdefs.h >>conftest.$ac_ext
6807cat >>conftest.$ac_ext <<_ACEOF
6808/* end confdefs.h. */
3a12e572 6809$ac_includes_default
3a12e572
UD
6810int
6811main ()
6812{
6813static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
6814test_array [0] = 0
6815
6816 ;
6817 return 0;
6818}
6819_ACEOF
6820rm -f conftest.$ac_objext
6821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 6822 (eval $ac_compile) 2>&5
3a12e572
UD
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
8f73811b 6826 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_lo=0 ac_mid=0
6833 while :; do
6834 cat >conftest.$ac_ext <<_ACEOF
8f73811b 6835#line $LINENO "configure"
2abf9ff1
RM
6836/* confdefs.h. */
6837_ACEOF
6838cat confdefs.h >>conftest.$ac_ext
6839cat >>conftest.$ac_ext <<_ACEOF
6840/* end confdefs.h. */
3a12e572 6841$ac_includes_default
3a12e572
UD
6842int
6843main ()
6844{
6845static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6846test_array [0] = 0
6847
6848 ;
6849 return 0;
6850}
6851_ACEOF
6852rm -f conftest.$ac_objext
6853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 6854 (eval $ac_compile) 2>&5
3a12e572
UD
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } &&
8f73811b 6858 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_hi=$ac_mid; break
6865else
6866 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6867sed 's/^/| /' conftest.$ac_ext >&5
6868
3a12e572 6869ac_lo=`expr $ac_mid + 1`
8f73811b
RM
6870 if test $ac_lo -le $ac_mid; then
6871 ac_lo= ac_hi=
6872 break
6873 fi
6874 ac_mid=`expr 2 '*' $ac_mid + 1`
3a12e572 6875fi
8f73811b 6876rm -f conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
6877 done
6878else
6879 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6880sed 's/^/| /' conftest.$ac_ext >&5
6881
3a12e572 6882cat >conftest.$ac_ext <<_ACEOF
8f73811b 6883#line $LINENO "configure"
2abf9ff1
RM
6884/* confdefs.h. */
6885_ACEOF
6886cat confdefs.h >>conftest.$ac_ext
6887cat >>conftest.$ac_ext <<_ACEOF
6888/* end confdefs.h. */
3a12e572 6889$ac_includes_default
3a12e572
UD
6890int
6891main ()
6892{
6893static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
6894test_array [0] = 0
6895
6896 ;
6897 return 0;
6898}
6899_ACEOF
6900rm -f conftest.$ac_objext
6901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 6902 (eval $ac_compile) 2>&5
3a12e572
UD
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
8f73811b 6906 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 ac_hi=-1 ac_mid=-1
6913 while :; do
6914 cat >conftest.$ac_ext <<_ACEOF
8f73811b 6915#line $LINENO "configure"
2abf9ff1
RM
6916/* confdefs.h. */
6917_ACEOF
6918cat confdefs.h >>conftest.$ac_ext
6919cat >>conftest.$ac_ext <<_ACEOF
6920/* end confdefs.h. */
3a12e572 6921$ac_includes_default
3a12e572
UD
6922int
6923main ()
6924{
6925static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
6926test_array [0] = 0
6927
6928 ;
6929 return 0;
6930}
6931_ACEOF
6932rm -f conftest.$ac_objext
6933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 6934 (eval $ac_compile) 2>&5
3a12e572
UD
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
8f73811b 6938 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 (eval $ac_try) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6944 ac_lo=$ac_mid; break
6945else
6946 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6947sed 's/^/| /' conftest.$ac_ext >&5
6948
3a12e572 6949ac_hi=`expr '(' $ac_mid ')' - 1`
8f73811b
RM
6950 if test $ac_mid -le $ac_hi; then
6951 ac_lo= ac_hi=
6952 break
6953 fi
6954 ac_mid=`expr 2 '*' $ac_mid`
3a12e572 6955fi
8f73811b 6956rm -f conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
6957 done
6958else
6959 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
6960sed 's/^/| /' conftest.$ac_ext >&5
6961
3a12e572
UD
6962ac_lo= ac_hi=
6963fi
8f73811b 6964rm -f conftest.$ac_objext conftest.$ac_ext
3a12e572 6965fi
8f73811b 6966rm -f conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
6967# Binary search between lo and hi bounds.
6968while test "x$ac_lo" != "x$ac_hi"; do
6969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6970 cat >conftest.$ac_ext <<_ACEOF
8f73811b 6971#line $LINENO "configure"
2abf9ff1
RM
6972/* confdefs.h. */
6973_ACEOF
6974cat confdefs.h >>conftest.$ac_ext
6975cat >>conftest.$ac_ext <<_ACEOF
6976/* end confdefs.h. */
3a12e572 6977$ac_includes_default
3a12e572
UD
6978int
6979main ()
6980{
6981static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6982test_array [0] = 0
6983
6984 ;
6985 return 0;
6986}
6987_ACEOF
6988rm -f conftest.$ac_objext
6989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8f73811b 6990 (eval $ac_compile) 2>&5
3a12e572
UD
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
8f73811b 6994 { ac_try='test -s conftest.$ac_objext'
3a12e572
UD
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 ac_hi=$ac_mid
7001else
7002 echo "$as_me: failed program was:" >&5
2abf9ff1
RM
7003sed 's/^/| /' conftest.$ac_ext >&5
7004
3a12e572
UD
7005ac_lo=`expr '(' $ac_mid ')' + 1`
7006fi
8f73811b 7007rm -f conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
7008done
7009case $ac_lo in
7010?*) ac_cv_sizeof_long_double=$ac_lo;;
2abf9ff1
RM
7011'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7012See \`config.log' for more details." >&5
7013echo "$as_me: error: cannot compute sizeof (long double), 77
7014See \`config.log' for more details." >&2;}
3a12e572
UD
7015 { (exit 1); exit 1; }; } ;;
7016esac
7017else
7018 if test "$cross_compiling" = yes; then
2abf9ff1
RM
7019 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7020See \`config.log' for more details." >&5
7021echo "$as_me: error: cannot run test program while cross compiling
7022See \`config.log' for more details." >&2;}
3a12e572
UD
7023 { (exit 1); exit 1; }; }
7024else
7025 cat >conftest.$ac_ext <<_ACEOF
8f73811b 7026#line $LINENO "configure"
2abf9ff1
RM
7027/* confdefs.h. */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h. */
3a12e572
UD
7032$ac_includes_default
7033long longval () { return (long) (sizeof (long double)); }
7034unsigned long ulongval () { return (long) (sizeof (long double)); }
7035#include <stdio.h>
7036#include <stdlib.h>
3a12e572
UD
7037int
7038main ()
7039{
7040
7041 FILE *f = fopen ("conftest.val", "w");
7042 if (! f)
7043 exit (1);
7044 if (((long) (sizeof (long double))) < 0)
7045 {
7046 long i = longval ();
7047 if (i != ((long) (sizeof (long double))))
7048 exit (1);
7049 fprintf (f, "%ld\n", i);
7050 }
7051 else
7052 {
7053 unsigned long i = ulongval ();
7054 if (i != ((long) (sizeof (long double))))
7055 exit (1);
7056 fprintf (f, "%lu\n", i);
7057 }
7058 exit (ferror (f) || fclose (f) != 0);
7059
7060 ;
7061 return 0;
7062}
7063_ACEOF
7064rm -f conftest$ac_exeext
7065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7066 (eval $ac_link) 2>&5
7067 ac_status=$?
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 (eval $ac_try) 2>&5
7072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7075 ac_cv_sizeof_long_double=`cat conftest.val`
7076else
7077 echo "$as_me: program exited with status $ac_status" >&5
7078echo "$as_me: failed program was:" >&5
2abf9ff1
RM
7079sed 's/^/| /' conftest.$ac_ext >&5
7080
3a12e572 7081( exit $ac_status )
2abf9ff1
RM
7082{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7083See \`config.log' for more details." >&5
7084echo "$as_me: error: cannot compute sizeof (long double), 77
7085See \`config.log' for more details." >&2;}
3a12e572
UD
7086 { (exit 1); exit 1; }; }
7087fi
8f73811b 7088rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3a12e572
UD
7089fi
7090fi
7091rm -f conftest.val
7092else
7093 ac_cv_sizeof_long_double=0
7094fi
7095fi
7096echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
7097echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
7098cat >>confdefs.h <<_ACEOF
8ed1e7d5 7099#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3a12e572 7100_ACEOF
8ed1e7d5
GK
7101
7102
7103sizeof_long_double=$ac_cv_sizeof_long_double
7104
7105
cd6ede75
UD
7106### End of automated tests.
7107### Now run sysdeps configure fragments.
7108
cb343854 7109# They also can set these variables.
b43b13ac 7110use_ldconfig=no
cb343854 7111ldd_rewrite_script=no
77259608 7112libc_cv_sysconfdir=$sysconfdir
74bd2300 7113libc_cv_gcc_unwind_find_fde=no
e2fd3cbe 7114libc_cv_idn=no
cb343854 7115
cd6ede75
UD
7116# Iterate over all the sysdep directories we will use, running their
7117# configure fragments, and looking for a uname implementation.
7118uname=
7119for dir in $sysnames; do
7120 case $dir in
7121 /*) dest=$dir ;;
7122 *) dest=$srcdir/$dir ;;
7123 esac
7124 if test -r $dest/configure; then
d1149385
RM
7125 echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
7126echo "${ECHO_T}running configure fragment for $dir" >&6
cd6ede75
UD
7127 . $dest/configure
7128 fi
7129
7130 if test -z "$uname"; then
7131 if test -r $dest/uname.c ||
7132 test -r $dest/uname.S ||
7133 { test -r $dest/syscalls.list &&
7134 grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
7135 uname=$dir
7136 fi
7137 fi
7138done
7139
74bd2300 7140if test x$libc_cv_gcc_unwind_find_fde = xyes; then
3a12e572 7141 cat >>confdefs.h <<\_ACEOF
74bd2300 7142#define EXPORT_UNWIND_FIND_FDE 1
3a12e572 7143_ACEOF
74bd2300
UD
7144
7145fi
7146
7147
cd6ede75
UD
7148# If we will use the generic uname implementation, we must figure out what
7149# it will say by examining the system, and write the results in config-name.h.
7150if test "$uname" = "sysdeps/generic"; then
7151
7152 uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
7153 if test $uname_sysname != $config_os; then
7154 config_release=`echo $config_os | sed s/$uname_sysname//`
7155 fi
7156
3a12e572
UD
7157 echo "$as_me:$LINENO: checking OS release for uname" >&5
7158echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6
7159if test "${libc_cv_uname_release+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 7161else
3a12e572
UD
7162 if test -r /vmunix; then
7163 kernel_id=`strings /vmunix | grep UNIX`
7164 elif test -r /dynix; then
7165 kernel_id=`strings /dynix | grep DYNIX`
7166 else
7167 kernel_id=
7168 fi
7169
7170 kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
cd6ede75
UD
7171 if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
7172 != x$config_release; then
7173 # The configuration release is a substring of the kernel release.
7174 libc_cv_uname_release=$kernel_release
7175 elif test x$config_release != x; then
7176 libc_cv_uname_release=$config_release
7177 elif test x$kernel_release != x; then
7178 libc_cv_uname_release=$kernel_release
7179 else
7180 libc_cv_uname_release=unknown
7181 fi
7182fi
3a12e572
UD
7183echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
7184echo "${ECHO_T}$libc_cv_uname_release" >&6
cd6ede75
UD
7185 uname_release="$libc_cv_uname_release"
7186
3a12e572
UD
7187 echo "$as_me:$LINENO: checking OS version for uname" >&5
7188echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6
7189if test "${libc_cv_uname_version+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
cd6ede75 7191else
3a12e572
UD
7192 if test -r /vmunix; then
7193 kernel_id=`strings /vmunix | grep UNIX`
7194 elif test -r /dynix; then
7195 kernel_id=`strings /dynix | grep DYNIX`
7196 else
7197 kernel_id=
7198 fi
7199
7200 kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
cd6ede75
UD
7201 if test -n "$kernel_version"; then
7202 libc_cv_uname_version="$kernel_version"
7203 else
7204 libc_cv_uname_version=unknown
7205 fi
7206fi
3a12e572
UD
7207echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
7208echo "${ECHO_T}$libc_cv_uname_version" >&6
cd6ede75
UD
7209 uname_version="$libc_cv_uname_version"
7210
7211 config_uname=config-name.h:config-name.in
7212else
7213 # For non-generic uname, we don't need to create config-name.h at all.
7214 config_uname=
7215fi
7216
3a12e572 7217cat >>confdefs.h <<\_ACEOF
cd6ede75 7218#define USE_IN_LIBIO 1
3a12e572 7219_ACEOF
a8c01776 7220
cd6ede75 7221
a53bad16
UD
7222# Test for old glibc 2.0.x headers so that they can be removed properly
7223# Search only in includedir.
3a12e572
UD
7224echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
7225echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6
011ce8ed 7226if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
a53bad16
UD
7227then
7228 old_glibc_headers=yes
7229else
7230 old_glibc_headers=no
7231fi
3a12e572
UD
7232echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
7233echo "${ECHO_T}$old_glibc_headers" >&6
a53bad16 7234if test ${old_glibc_headers} = yes; then
3a12e572
UD
7235 { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7236echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7237 { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
7238echo "$as_me: WARNING: *** be removed." >&2;}
a53bad16 7239fi
26b4d766 7240
cd6ede75
UD
7241
7242
7243
7244
7245
7246
cb343854 7247
dff14448 7248
77259608 7249
3a12e572 7250
bcd5f356 7251
cd6ede75 7252if test $gnu_ld = yes; then
3a12e572 7253 cat >>confdefs.h <<\_ACEOF
cd6ede75 7254#define HAVE_GNU_LD 1
3a12e572 7255_ACEOF
cd6ede75
UD
7256
7257fi
7258if test $gnu_as = yes; then
3a12e572 7259 cat >>confdefs.h <<\_ACEOF
cd6ede75 7260#define HAVE_GNU_AS 1
3a12e572 7261_ACEOF
cd6ede75
UD
7262
7263fi
7264if test $elf = yes; then
3a12e572 7265 cat >>confdefs.h <<\_ACEOF
cd6ede75 7266#define HAVE_ELF 1
3a12e572 7267_ACEOF
cd6ede75
UD
7268
7269fi
5af3245a 7270if test $xcoff = yes; then
3a12e572 7271 cat >>confdefs.h <<\_ACEOF
5af3245a 7272#define HAVE_XCOFF 1
3a12e572 7273_ACEOF
5af3245a
UD
7274
7275fi
cd6ede75
UD
7276
7277
650425ce 7278
cd6ede75
UD
7279if test $shared = default; then
7280 if test $gnu_ld = yes; then
7281 shared=$elf
7282 else
7283 # For now we do not assume shared libs are available. In future more
7284 # tests might become available.
7285 shared=no
7286 fi
7287fi
7288
e2fd3cbe
UD
7289if test x"$libc_cv_idn" = xyes; then
7290 cat >>confdefs.h <<\_ACEOF
7291#define HAVE_LIBIDN 1
7292_ACEOF
7293
7294fi
7295
3a12e572
UD
7296echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
7297echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6
7298if test "${pic_default+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
cc3fa755
UD
7300else
7301 pic_default=yes
7302cat > conftest.c <<EOF
9756dfe1 7303#if defined __PIC__ || defined __pic__ || defined PIC || defined pic
cc3fa755
UD
7304# error PIC is default.
7305#endif
7306EOF
7307if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7308 pic_default=no
7309fi
7310rm -f conftest.*
7311fi
3a12e572
UD
7312echo "$as_me:$LINENO: result: $pic_default" >&5
7313echo "${ECHO_T}$pic_default" >&6
cc3fa755
UD
7314
7315
7316
cd6ede75
UD
7317
7318
7319
7320
7321
7322
7323
7cabd57c
UD
7324case "$add_ons" in
7325 *door*) linux_doors=yes ;;
7326 *) linux_doors=no ;;
7327esac
7328
7329
746f4007
RM
7330
7331
cd6ede75
UD
7332if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
7333 config_makefile=
7334else
7335 config_makefile=Makefile
7336fi
7337
ee74a442
UD
7338VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7339RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7340
cd6ede75
UD
7341
7342
4df8c11d 7343 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
f4b07664
RM
7344
7345 ac_config_commands="$ac_config_commands default"
7346
3a12e572 7347cat >confcache <<\_ACEOF
cd6ede75
UD
7348# This file is a shell script that caches the results of configure
7349# tests run on this system so they can be shared between configure
3a12e572
UD
7350# scripts and configure runs, see configure's option --config-cache.
7351# It is not useful on other systems. If it contains results you don't
7352# want to keep, you may remove or edit it.
cd6ede75 7353#
3a12e572
UD
7354# config.status only pays attention to the cache file if you give it
7355# the --recheck option to rerun configure.
cd6ede75 7356#
f4b07664 7357# `ac_cv_env_foo' variables (set or unset) will be overridden when
3a12e572
UD
7358# loading this file, other *unset* `ac_cv_foo' will be assigned the
7359# following values.
7360
7361_ACEOF
7362
cd6ede75
UD
7363# The following way of writing the cache mishandles newlines in values,
7364# but we know of no workaround that is simple, portable, and efficient.
7365# So, don't put newlines in cache variables' values.
7366# Ultrix sh set writes to stderr and can't be redirected directly,
7367# and sets the high bit in the cache file unless we assign to the vars.
3a12e572
UD
7368{
7369 (set) 2>&1 |
7370 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7371 *ac_space=\ *)
7372 # `set' does not quote correctly, so add quotes (double-quote
7373 # substitution turns \\\\ into \\, and sed turns \\ into \).
7374 sed -n \
8f73811b
RM
7375 "s/'/'\\\\''/g;
7376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3a12e572
UD
7377 ;;
7378 *)
7379 # `set' quotes correctly as required by POSIX, so do not add quotes.
7380 sed -n \
8f73811b 7381 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3a12e572
UD
7382 ;;
7383 esac;
7384} |
7385 sed '
7386 t clear
7387 : clear
7388 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7389 t end
7390 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7391 : end' >>confcache
2abf9ff1 7392if diff $cache_file confcache >/dev/null 2>&1; then :; else
cd6ede75 7393 if test -w $cache_file; then
3a12e572
UD
7394 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7395 cat confcache >$cache_file
cd6ede75
UD
7396 else
7397 echo "not updating unwritable cache $cache_file"
7398 fi
7399fi
7400rm -f confcache
7401
cd6ede75
UD
7402test "x$prefix" = xNONE && prefix=$ac_default_prefix
7403# Let make expand exec_prefix.
7404test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7405
3a12e572
UD
7406# VPATH may cause trouble with some makes, so we remove $(srcdir),
7407# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7408# trailing colons and then remove the whole line if VPATH becomes empty
7409# (actually we leave an empty line to preserve line numbers).
cd6ede75 7410if test "x$srcdir" = x.; then
8f73811b 7411 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3a12e572
UD
7412s/:*\$(srcdir):*/:/;
7413s/:*\${srcdir}:*/:/;
7414s/:*@srcdir@:*/:/;
8f73811b 7415s/^\([^=]*=[ ]*\):*/\1/;
3a12e572 7416s/:*$//;
8f73811b 7417s/^[^=]*=[ ]*$//;
3a12e572 7418}'
cd6ede75
UD
7419fi
7420
cd6ede75
UD
7421DEFS=-DHAVE_CONFIG_H
7422
f4b07664
RM
7423ac_libobjs=
7424ac_ltlibobjs=
7425for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7426 # 1. Remove the extension, and $U if already installed.
7427 ac_i=`echo "$ac_i" |
8f73811b 7428 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
f4b07664
RM
7429 # 2. Add them.
7430 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7431 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7432done
7433LIBOBJS=$ac_libobjs
7434
7435LTLIBOBJS=$ac_ltlibobjs
7436
7437
cd6ede75 7438
3a12e572
UD
7439: ${CONFIG_STATUS=./config.status}
7440ac_clean_files_save=$ac_clean_files
7441ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7442{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7443echo "$as_me: creating $CONFIG_STATUS" >&6;}
7444cat >$CONFIG_STATUS <<_ACEOF
7445#! $SHELL
7446# Generated by $as_me.
cd6ede75 7447# Run this file to recreate the current configuration.
cd6ede75 7448# Compiler output produced by configure, useful for debugging
3a12e572 7449# configure, is in config.log if it exists.
cd6ede75 7450
3a12e572 7451debug=false
2abf9ff1
RM
7452ac_cs_recheck=false
7453ac_cs_silent=false
3a12e572
UD
7454SHELL=\${CONFIG_SHELL-$SHELL}
7455_ACEOF
7456
7457cat >>$CONFIG_STATUS <<\_ACEOF
3a12e572
UD
7458## --------------------- ##
7459## M4sh Initialization. ##
7460## --------------------- ##
7461
7462# Be Bourne compatible
7463if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7464 emulate sh
7465 NULLCMD=:
f4b07664
RM
7466 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7467 # is contrary to our usage. Disable this feature.
7468 alias -g '${1+"$@"}'='"$@"'
3a12e572
UD
7469elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7470 set -o posix
7471fi
7472
3a12e572 7473# Support unset when possible.
8f73811b 7474if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3a12e572
UD
7475 as_unset=unset
7476else
7477 as_unset=false
7478fi
7479
f4b07664
RM
7480
7481# Work around bugs in pre-3.0 UWIN ksh.
7482$as_unset ENV MAIL MAILPATH
7483PS1='$ '
7484PS2='> '
7485PS4='+ '
7486
7487# NLS nuisances.
2abf9ff1
RM
7488for as_var in \
7489 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7490 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7491 LC_TELEPHONE LC_TIME
f4b07664 7492do
8f73811b 7493 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
f4b07664
RM
7494 eval $as_var=C; export $as_var
7495 else
7496 $as_unset $as_var
7497 fi
7498done
7499
7500# Required to use basename.
7501if expr a : '\(a\)' >/dev/null 2>&1; then
7502 as_expr=expr
7503else
7504 as_expr=false
7505fi
7506
7507if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7508 as_basename=basename
7509else
7510 as_basename=false
7511fi
3a12e572
UD
7512
7513
7514# Name of the executable.
f4b07664 7515as_me=`$as_basename "$0" ||
3a12e572
UD
7516$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7517 X"$0" : 'X\(//\)$' \| \
7518 X"$0" : 'X\(/\)$' \| \
7519 . : '\(.\)' 2>/dev/null ||
7520echo X/"$0" |
7521 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7522 /^X\/\(\/\/\)$/{ s//\1/; q; }
7523 /^X\/\(\/\).*/{ s//\1/; q; }
7524 s/.*/./; q'`
7525
f4b07664 7526
3a12e572
UD
7527# PATH needs CR, and LINENO needs CR and PATH.
7528# Avoid depending upon Character Ranges.
7529as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7530as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7531as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7532as_cr_digits='0123456789'
7533as_cr_alnum=$as_cr_Letters$as_cr_digits
7534
7535# The user is always right.
7536if test "${PATH_SEPARATOR+set}" != set; then
2abf9ff1
RM
7537 echo "#! /bin/sh" >conf$$.sh
7538 echo "exit 0" >>conf$$.sh
7539 chmod +x conf$$.sh
7540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3a12e572
UD
7541 PATH_SEPARATOR=';'
7542 else
7543 PATH_SEPARATOR=:
7544 fi
2abf9ff1 7545 rm -f conf$$.sh
3a12e572
UD
7546fi
7547
7548
7549 as_lineno_1=$LINENO
7550 as_lineno_2=$LINENO
7551 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7552 test "x$as_lineno_1" != "x$as_lineno_2" &&
7553 test "x$as_lineno_3" = "x$as_lineno_2" || {
7554 # Find who we are. Look in the path if we contain no path at all
7555 # relative or not.
7556 case $0 in
7557 *[\\/]* ) as_myself=$0 ;;
7558 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559for as_dir in $PATH
cd6ede75 7560do
3a12e572
UD
7561 IFS=$as_save_IFS
7562 test -z "$as_dir" && as_dir=.
7563 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7564done
7565
7566 ;;
cd6ede75 7567 esac
3a12e572
UD
7568 # We did not find ourselves, most probably we were run as `sh COMMAND'
7569 # in which case we are not to be found in the path.
7570 if test "x$as_myself" = x; then
7571 as_myself=$0
7572 fi
7573 if test ! -f "$as_myself"; then
7574 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7575echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7576 { (exit 1); exit 1; }; }
7577 fi
7578 case $CONFIG_SHELL in
7579 '')
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7582do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for as_base in sh bash ksh sh5; do
7586 case $as_dir in
7587 /*)
7588 if ("$as_dir/$as_base" -c '
7589 as_lineno_1=$LINENO
7590 as_lineno_2=$LINENO
7591 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7592 test "x$as_lineno_1" != "x$as_lineno_2" &&
7593 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
f4b07664
RM
7594 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7595 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3a12e572
UD
7596 CONFIG_SHELL=$as_dir/$as_base
7597 export CONFIG_SHELL
7598 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7599 fi;;
7600 esac
7601 done
cd6ede75 7602done
3a12e572
UD
7603;;
7604 esac
cd6ede75 7605
3a12e572
UD
7606 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7607 # uniformly replaced by the line number. The first 'sed' inserts a
7608 # line-number line before each line; the second 'sed' does the real
7609 # work. The second script uses 'N' to pair each line-number line
7610 # with the numbered line, and appends trailing '-' during
7611 # substitution so that $LINENO is not a special case at line end.
7612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7613 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7614 sed '=' <$as_myself |
7615 sed '
7616 N
7617 s,$,-,
7618 : loop
7619 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7620 t loop
7621 s,-$,,
7622 s,^['$as_cr_digits']*\n,,
7623 ' >$as_me.lineno &&
7624 chmod +x $as_me.lineno ||
7625 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7626echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7627 { (exit 1); exit 1; }; }
7628
7629 # Don't try to exec as it changes $[0], causing all sort of problems
7630 # (the dirname of $[0] is not the place where we might find the
7631 # original and so on. Autoconf is especially sensible to this).
7632 . ./$as_me.lineno
7633 # Exit status is that of the last command.
7634 exit
7635}
cd6ede75 7636
cd6ede75 7637
3a12e572
UD
7638case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7639 *c*,-n*) ECHO_N= ECHO_C='
7640' ECHO_T=' ' ;;
7641 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7642 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7643esac
cd6ede75 7644
3a12e572
UD
7645if expr a : '\(a\)' >/dev/null 2>&1; then
7646 as_expr=expr
7647else
7648 as_expr=false
7649fi
cd6ede75 7650
3a12e572
UD
7651rm -f conf$$ conf$$.exe conf$$.file
7652echo >conf$$.file
7653if ln -s conf$$.file conf$$ 2>/dev/null; then
7654 # We could just check for DJGPP; but this test a) works b) is more generic
7655 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7656 if test -f conf$$.exe; then
7657 # Don't use ln at all; we don't have any links
7658 as_ln_s='cp -p'
cd6ede75 7659 else
3a12e572 7660 as_ln_s='ln -s'
cd6ede75 7661 fi
3a12e572
UD
7662elif ln conf$$.file conf$$ 2>/dev/null; then
7663 as_ln_s=ln
7664else
7665 as_ln_s='cp -p'
cd6ede75 7666fi
3a12e572 7667rm -f conf$$ conf$$.exe conf$$.file
cd6ede75 7668
f4b07664
RM
7669if mkdir -p . 2>/dev/null; then
7670 as_mkdir_p=:
7671else
7672 as_mkdir_p=false
7673fi
7674
3a12e572 7675as_executable_p="test -f"
cd6ede75 7676
3a12e572 7677# Sed expression to map a string onto a valid CPP name.
8f73811b 7678as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3a12e572
UD
7679
7680# Sed expression to map a string onto a valid variable name.
8f73811b 7681as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3a12e572
UD
7682
7683
7684# IFS
7685# We need space, tab and new line, in precisely that order.
7686as_nl='
7687'
7688IFS=" $as_nl"
7689
7690# CDPATH.
f4b07664 7691$as_unset CDPATH
3a12e572
UD
7692
7693exec 6>&1
7694
7695# Open the log real soon, to keep \$[0] and so on meaningful, and to
7696# report actual input values of CONFIG_FILES etc. instead of their
7697# values after options handling. Logging --version etc. is OK.
7698exec 5>>config.log
7699{
7700 echo
7701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7702## Running $as_me. ##
7703_ASBOX
7704} >&5
7705cat >&5 <<_CSEOF
7706
f4b07664 7707This file was extended by GNU C Library $as_me (see version.h), which was
8f73811b 7708generated by GNU Autoconf 2.57. Invocation command line was
3a12e572
UD
7709
7710 CONFIG_FILES = $CONFIG_FILES
7711 CONFIG_HEADERS = $CONFIG_HEADERS
7712 CONFIG_LINKS = $CONFIG_LINKS
7713 CONFIG_COMMANDS = $CONFIG_COMMANDS
7714 $ $0 $@
7715
7716_CSEOF
7717echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7718echo >&5
7719_ACEOF
7720
7721# Files that config.status was made for.
7722if test -n "$ac_config_files"; then
7723 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7724fi
7725
7726if test -n "$ac_config_headers"; then
7727 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7728fi
7729
7730if test -n "$ac_config_links"; then
7731 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7732fi
7733
7734if test -n "$ac_config_commands"; then
7735 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7736fi
7737
7738cat >>$CONFIG_STATUS <<\_ACEOF
7739
7740ac_cs_usage="\
7741\`$as_me' instantiates files from templates according to the
7742current configuration.
7743
7744Usage: $0 [OPTIONS] [FILE]...
7745
7746 -h, --help print this help, then exit
7747 -V, --version print version number, then exit
2abf9ff1 7748 -q, --quiet do not print progress messages
3a12e572
UD
7749 -d, --debug don't remove temporary files
7750 --recheck update $as_me by reconfiguring in the same conditions
7751 --file=FILE[:TEMPLATE]
8f73811b 7752 instantiate the configuration file FILE
3a12e572 7753 --header=FILE[:TEMPLATE]
8f73811b 7754 instantiate the configuration header FILE
3a12e572
UD
7755
7756Configuration files:
7757$config_files
7758
7759Configuration headers:
7760$config_headers
7761
3a12e572
UD
7762Configuration commands:
7763$config_commands
7764
7765Report bugs to <bug-autoconf@gnu.org>."
7766_ACEOF
7767
7768cat >>$CONFIG_STATUS <<_ACEOF
7769ac_cs_version="\\
f4b07664 7770GNU C Library config.status (see version.h)
8f73811b 7771configured by $0, generated by GNU Autoconf 2.57,
3a12e572
UD
7772 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7773
8f73811b
RM
7774Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7775Free Software Foundation, Inc.
3a12e572
UD
7776This config.status script is free software; the Free Software Foundation
7777gives unlimited permission to copy, distribute and modify it."
7778srcdir=$srcdir
7779INSTALL="$INSTALL"
7780_ACEOF
7781
7782cat >>$CONFIG_STATUS <<\_ACEOF
7783# If no file are specified by the user, then we need to provide default
7784# value. By we need to know if files were specified by the user.
7785ac_need_defaults=:
7786while test $# != 0
7787do
7788 case $1 in
7789 --*=*)
7790 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7791 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
f4b07664
RM
7792 ac_shift=:
7793 ;;
7794 -*)
7795 ac_option=$1
7796 ac_optarg=$2
7797 ac_shift=shift
3a12e572 7798 ;;
3a12e572
UD
7799 *) # This is not an option, so the user has probably given explicit
7800 # arguments.
f4b07664 7801 ac_option=$1
3a12e572 7802 ac_need_defaults=false;;
cd6ede75
UD
7803 esac
7804
f4b07664 7805 case $ac_option in
3a12e572
UD
7806 # Handling of the options.
7807_ACEOF
fbd90f6c 7808cat >>$CONFIG_STATUS <<\_ACEOF
2abf9ff1
RM
7809 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7810 ac_cs_recheck=: ;;
3a12e572
UD
7811 --version | --vers* | -V )
7812 echo "$ac_cs_version"; exit 0 ;;
7813 --he | --h)
7814 # Conflict between --help and --header
7815 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7816Try \`$0 --help' for more information." >&5
7817echo "$as_me: error: ambiguous option: $1
7818Try \`$0 --help' for more information." >&2;}
7819 { (exit 1); exit 1; }; };;
7820 --help | --hel | -h )
7821 echo "$ac_cs_usage"; exit 0 ;;
7822 --debug | --d* | -d )
7823 debug=: ;;
7824 --file | --fil | --fi | --f )
f4b07664
RM
7825 $ac_shift
7826 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3a12e572
UD
7827 ac_need_defaults=false;;
7828 --header | --heade | --head | --hea )
f4b07664
RM
7829 $ac_shift
7830 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3a12e572 7831 ac_need_defaults=false;;
2abf9ff1
RM
7832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7833 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7834 ac_cs_silent=: ;;
3a12e572
UD
7835
7836 # This is an error.
7837 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7838Try \`$0 --help' for more information." >&5
7839echo "$as_me: error: unrecognized option: $1
7840Try \`$0 --help' for more information." >&2;}
7841 { (exit 1); exit 1; }; } ;;
7842
7843 *) ac_config_targets="$ac_config_targets $1" ;;
cd6ede75 7844
3a12e572
UD
7845 esac
7846 shift
7847done
7848
2abf9ff1
RM
7849ac_configure_extra_args=
7850
7851if $ac_cs_silent; then
7852 exec 6>/dev/null
7853 ac_configure_extra_args="$ac_configure_extra_args --silent"
7854fi
7855
7856_ACEOF
7857cat >>$CONFIG_STATUS <<_ACEOF
7858if \$ac_cs_recheck; then
7859 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7860 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7861fi
7862
3a12e572
UD
7863_ACEOF
7864
7865cat >>$CONFIG_STATUS <<_ACEOF
7866#
7867# INIT-COMMANDS section.
7868#
7869
7870config_vars='$config_vars'
7871
7872_ACEOF
7873
7874
7875
7876cat >>$CONFIG_STATUS <<\_ACEOF
7877for ac_config_target in $ac_config_targets
7878do
7879 case "$ac_config_target" in
7880 # Handling of arguments.
7881 "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
3a12e572
UD
7882 "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
7883 "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
3a12e572
UD
7884 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7885 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7886 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7887echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7888 { (exit 1); exit 1; }; };;
7889 esac
7890done
7891
7892# If the user did not use the arguments to specify the items to instantiate,
7893# then the envvar interface is used. Set only those that are not.
7894# We use the long form for the default assignment because of an extremely
7895# bizarre bug on SunOS 4.1.3.
7896if $ac_need_defaults; then
7897 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7898 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3a12e572
UD
7899 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7900fi
7901
2abf9ff1
RM
7902# Have a temporary directory for convenience. Make it in the build tree
7903# simply because there is no reason to put it here, and in addition,
7904# creating and moving files from /tmp can sometimes cause problems.
3a12e572
UD
7905# Create a temporary directory, and hook for its removal unless debugging.
7906$debug ||
7907{
7908 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7909 trap '{ (exit 1); exit 1; }' 1 2 13 15
7910}
7911
7912# Create a (secure) tmp directory for tmp files.
2abf9ff1 7913
3a12e572 7914{
2abf9ff1 7915 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3a12e572
UD
7916 test -n "$tmp" && test -d "$tmp"
7917} ||
7918{
2abf9ff1 7919 tmp=./confstat$$-$RANDOM
3a12e572
UD
7920 (umask 077 && mkdir $tmp)
7921} ||
7922{
2abf9ff1 7923 echo "$me: cannot create a temporary directory in ." >&2
3a12e572
UD
7924 { (exit 1); exit 1; }
7925}
7926
7927_ACEOF
7928
7929cat >>$CONFIG_STATUS <<_ACEOF
7930
7931#
7932# CONFIG_FILES section.
7933#
7934
7935# No need to generate the scripts if there are no CONFIG_FILES.
7936# This happens for instance when ./config.status config.h
7937if test -n "\$CONFIG_FILES"; then
7938 # Protect against being on the right side of a sed subst in config.status.
7939 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7940 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7941s,@SHELL@,$SHELL,;t t
7942s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7943s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7944s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7945s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7946s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7947s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7948s,@exec_prefix@,$exec_prefix,;t t
7949s,@prefix@,$prefix,;t t
7950s,@program_transform_name@,$program_transform_name,;t t
7951s,@bindir@,$bindir,;t t
7952s,@sbindir@,$sbindir,;t t
7953s,@libexecdir@,$libexecdir,;t t
7954s,@datadir@,$datadir,;t t
7955s,@sysconfdir@,$sysconfdir,;t t
7956s,@sharedstatedir@,$sharedstatedir,;t t
7957s,@localstatedir@,$localstatedir,;t t
7958s,@libdir@,$libdir,;t t
7959s,@includedir@,$includedir,;t t
7960s,@oldincludedir@,$oldincludedir,;t t
7961s,@infodir@,$infodir,;t t
7962s,@mandir@,$mandir,;t t
7963s,@build_alias@,$build_alias,;t t
7964s,@host_alias@,$host_alias,;t t
7965s,@target_alias@,$target_alias,;t t
7966s,@DEFS@,$DEFS,;t t
7967s,@ECHO_C@,$ECHO_C,;t t
7968s,@ECHO_N@,$ECHO_N,;t t
7969s,@ECHO_T@,$ECHO_T,;t t
7970s,@LIBS@,$LIBS,;t t
7971s,@with_fp@,$with_fp,;t t
7972s,@with_cvs@,$with_cvs,;t t
7dbde9db 7973s,@enable_check_abi@,$enable_check_abi,;t t
3a12e572 7974s,@oldest_abi@,$oldest_abi,;t t
4df8c11d 7975s,@bindnow@,$bindnow,;t t
3a12e572
UD
7976s,@force_install@,$force_install,;t t
7977s,@all_warnings@,$all_warnings,;t t
7978s,@build@,$build,;t t
7979s,@build_cpu@,$build_cpu,;t t
7980s,@build_vendor@,$build_vendor,;t t
7981s,@build_os@,$build_os,;t t
7982s,@host@,$host,;t t
7983s,@host_cpu@,$host_cpu,;t t
7984s,@host_vendor@,$host_vendor,;t t
7985s,@host_os@,$host_os,;t t
8f73811b
RM
7986s,@subdirs@,$subdirs,;t t
7987s,@add_ons@,$add_ons,;t t
3a12e572
UD
7988s,@base_machine@,$base_machine,;t t
7989s,@sysnames@,$sysnames,;t t
7990s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7991s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7992s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7993s,@LN_S@,$LN_S,;t t
3a12e572 7994s,@CC@,$CC,;t t
3a12e572
UD
7995s,@CFLAGS@,$CFLAGS,;t t
7996s,@LDFLAGS@,$LDFLAGS,;t t
7997s,@CPPFLAGS@,$CPPFLAGS,;t t
7998s,@ac_ct_CC@,$ac_ct_CC,;t t
7999s,@OBJEXT@,$OBJEXT,;t t
8000s,@BUILD_CC@,$BUILD_CC,;t t
8001s,@cross_compiling@,$cross_compiling,;t t
8002s,@CPP@,$CPP,;t t
925c3c5c
UD
8003s,@CXX@,$CXX,;t t
8004s,@CXXFLAGS@,$CXXFLAGS,;t t
8005s,@ac_ct_CXX@,$ac_ct_CXX,;t t
3a12e572 8006s,@AR@,$AR,;t t
6e3d59bc 8007s,@OBJDUMP@,$OBJDUMP,;t t
3a12e572
UD
8008s,@RANLIB@,$RANLIB,;t t
8009s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8010s,@MIG@,$MIG,;t t
c4d23330
RM
8011s,@AS@,$AS,;t t
8012s,@LD@,$LD,;t t
4baa087a
RM
8013s,@PWD_P@,$PWD_P,;t t
8014s,@MAKE@,$MAKE,;t t
8015s,@MSGFMT@,$MSGFMT,;t t
8016s,@MAKEINFO@,$MAKEINFO,;t t
8017s,@SED@,$SED,;t t
8018s,@AUTOCONF@,$AUTOCONF,;t t
3a12e572
UD
8019s,@SYSINCLUDES@,$SYSINCLUDES,;t t
8020s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t
8021s,@BASH@,$BASH,;t t
8022s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t
8023s,@KSH@,$KSH,;t t
8024s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t
8025s,@AWK@,$AWK,;t t
8026s,@PERL@,$PERL,;t t
8027s,@INSTALL_INFO@,$INSTALL_INFO,;t t
3a12e572
UD
8028s,@BISON@,$BISON,;t t
8029s,@VERSIONING@,$VERSIONING,;t t
8030s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t
8031s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
c776b3d7 8032s,@libc_cv_cc_with_libunwind@,$libc_cv_cc_with_libunwind,;t t
3a12e572
UD
8033s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t
8034s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t
8035s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t
ed20b3d9 8036s,@libc_cv_z_relro@,$libc_cv_z_relro,;t t
3a12e572 8037s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t
66b3d198 8038s,@libc_cv_libgcc_s_suffix@,$libc_cv_libgcc_s_suffix,;t t
78ec7d8c 8039s,@libc_cv_as_needed@,$libc_cv_as_needed,;t t
35915ec8 8040s,@ASFLAGS_config@,$ASFLAGS_config,;t t
3a12e572 8041s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t
2abf9ff1 8042s,@libc_cv_z_execstack@,$libc_cv_z_execstack,;t t
0f124303 8043s,@libc_cv_fpie@,$libc_cv_fpie,;t t
49803108 8044s,@fno_unit_at_a_time@,$fno_unit_at_a_time,;t t
3a12e572 8045s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t
073e82bf 8046s,@libc_cv_cpp_asm_debuginfo@,$libc_cv_cpp_asm_debuginfo,;t t
3a12e572
UD
8047s,@no_whole_archive@,$no_whole_archive,;t t
8048s,@exceptions@,$exceptions,;t t
8049s,@LIBGD@,$LIBGD,;t t
f4b07664 8050s,@EGREP@,$EGREP,;t t
3a12e572
UD
8051s,@sizeof_long_double@,$sizeof_long_double,;t t
8052s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t
8053s,@uname_sysname@,$uname_sysname,;t t
8054s,@uname_release@,$uname_release,;t t
8055s,@uname_version@,$uname_version,;t t
8056s,@old_glibc_headers@,$old_glibc_headers,;t t
8057s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t
8058s,@libc_cv_localedir@,$libc_cv_localedir,;t t
8059s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t
8060s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t
bcd5f356 8061s,@libc_cv_forced_unwind@,$libc_cv_forced_unwind,;t t
3a12e572
UD
8062s,@use_ldconfig@,$use_ldconfig,;t t
8063s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t
8064s,@gnu_ld@,$gnu_ld,;t t
8065s,@gnu_as@,$gnu_as,;t t
8066s,@elf@,$elf,;t t
8067s,@xcoff@,$xcoff,;t t
8068s,@static@,$static,;t t
8069s,@shared@,$shared,;t t
8070s,@pic_default@,$pic_default,;t t
8071s,@profile@,$profile,;t t
8072s,@omitfp@,$omitfp,;t t
8073s,@bounded@,$bounded,;t t
8074s,@static_nss@,$static_nss,;t t
8075s,@nopic_initfini@,$nopic_initfini,;t t
8076s,@DEFINES@,$DEFINES,;t t
8077s,@linux_doors@,$linux_doors,;t t
8078s,@mach_interface_list@,$mach_interface_list,;t t
8079s,@VERSION@,$VERSION,;t t
8080s,@RELEASE@,$RELEASE,;t t
f4b07664
RM
8081s,@LIBOBJS@,$LIBOBJS,;t t
8082s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3a12e572
UD
8083CEOF
8084
8085_ACEOF
8086
8087 cat >>$CONFIG_STATUS <<\_ACEOF
8088 # Split the substitutions into bite-sized pieces for seds with
8089 # small command number limits, like on Digital OSF/1 and HP-UX.
8090 ac_max_sed_lines=48
8091 ac_sed_frag=1 # Number of current file.
8092 ac_beg=1 # First line for current file.
8093 ac_end=$ac_max_sed_lines # Line after last line for current file.
8094 ac_more_lines=:
8095 ac_sed_cmds=
8096 while $ac_more_lines; do
8097 if test $ac_beg -gt 1; then
8098 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8099 else
8100 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8101 fi
8102 if test ! -s $tmp/subs.frag; then
8103 ac_more_lines=false
8104 else
8105 # The purpose of the label and of the branching condition is to
8106 # speed up the sed processing (if there are no `@' at all, there
8107 # is no need to browse any of the substitutions).
8108 # These are the two extra sed commands mentioned above.
8109 (echo ':t
8110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8111 if test -z "$ac_sed_cmds"; then
8f73811b 8112 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3a12e572 8113 else
8f73811b 8114 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3a12e572
UD
8115 fi
8116 ac_sed_frag=`expr $ac_sed_frag + 1`
8117 ac_beg=$ac_end
8118 ac_end=`expr $ac_end + $ac_max_sed_lines`
8119 fi
8120 done
8121 if test -z "$ac_sed_cmds"; then
8122 ac_sed_cmds=cat
cd6ede75 8123 fi
3a12e572 8124fi # test -n "$CONFIG_FILES"
cd6ede75 8125
3a12e572
UD
8126_ACEOF
8127cat >>$CONFIG_STATUS <<\_ACEOF
8128for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8129 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8130 case $ac_file in
8131 - | *:- | *:-:* ) # input from stdin
8f73811b
RM
8132 cat >$tmp/stdin
8133 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8134 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3a12e572 8135 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8f73811b 8136 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3a12e572 8137 * ) ac_file_in=$ac_file.in ;;
cd6ede75
UD
8138 esac
8139
3a12e572
UD
8140 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8141 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8142$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8f73811b
RM
8143 X"$ac_file" : 'X\(//\)[^/]' \| \
8144 X"$ac_file" : 'X\(//\)$' \| \
8145 X"$ac_file" : 'X\(/\)' \| \
8146 . : '\(.\)' 2>/dev/null ||
3a12e572
UD
8147echo X"$ac_file" |
8148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8150 /^X\(\/\/\)$/{ s//\1/; q; }
8151 /^X\(\/\).*/{ s//\1/; q; }
8152 s/.*/./; q'`
f4b07664
RM
8153 { if $as_mkdir_p; then
8154 mkdir -p "$ac_dir"
8155 else
8156 as_dir="$ac_dir"
8157 as_dirs=
8158 while test ! -d "$as_dir"; do
8159 as_dirs="$as_dir $as_dirs"
8160 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8161$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8f73811b
RM
8162 X"$as_dir" : 'X\(//\)[^/]' \| \
8163 X"$as_dir" : 'X\(//\)$' \| \
8164 X"$as_dir" : 'X\(/\)' \| \
8165 . : '\(.\)' 2>/dev/null ||
f4b07664
RM
8166echo X"$as_dir" |
8167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8169 /^X\(\/\/\)$/{ s//\1/; q; }
8170 /^X\(\/\).*/{ s//\1/; q; }
8171 s/.*/./; q'`
8172 done
8173 test ! -n "$as_dirs" || mkdir $as_dirs
8174 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8175echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8176 { (exit 1); exit 1; }; }; }
3a12e572
UD
8177
8178 ac_builddir=.
8179
8180if test "$ac_dir" != .; then
8181 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8182 # A "../" for each directory in $ac_dir_suffix.
8183 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8184else
8185 ac_dir_suffix= ac_top_builddir=
8186fi
8187
8188case $srcdir in
8189 .) # No --srcdir option. We are building in place.
8190 ac_srcdir=.
8191 if test -z "$ac_top_builddir"; then
8192 ac_top_srcdir=.
8193 else
8194 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8195 fi ;;
8196 [\\/]* | ?:[\\/]* ) # Absolute path.
8197 ac_srcdir=$srcdir$ac_dir_suffix;
8198 ac_top_srcdir=$srcdir ;;
8199 *) # Relative path.
8200 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8201 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8202esac
8f73811b
RM
8203# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8204# absolute.
8205ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8206ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8207ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8208ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
cd6ede75 8209
3a12e572
UD
8210
8211 case $INSTALL in
8212 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8213 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
cd6ede75
UD
8214 esac
8215
3a12e572
UD
8216 if test x"$ac_file" != x-; then
8217 { echo "$as_me:$LINENO: creating $ac_file" >&5
8218echo "$as_me: creating $ac_file" >&6;}
8219 rm -f "$ac_file"
8220 fi
8221 # Let's still pretend it is `configure' which instantiates (i.e., don't
8222 # use $as_me), people would be surprised to read:
8223 # /* config.h. Generated by config.status. */
8224 if test x"$ac_file" = x-; then
8225 configure_input=
8226 else
8227 configure_input="$ac_file. "
8228 fi
8229 configure_input=$configure_input"Generated from `echo $ac_file_in |
8f73811b 8230 sed 's,.*/,,'` by configure."
3a12e572
UD
8231
8232 # First look for the input files in the build tree, otherwise in the
8233 # src tree.
8234 ac_file_inputs=`IFS=:
8235 for f in $ac_file_in; do
8236 case $f in
8237 -) echo $tmp/stdin ;;
8238 [\\/$]*)
8f73811b
RM
8239 # Absolute (can't be DOS-style, as IFS=:)
8240 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3a12e572
UD
8241echo "$as_me: error: cannot find input file: $f" >&2;}
8242 { (exit 1); exit 1; }; }
8f73811b 8243 echo $f;;
3a12e572 8244 *) # Relative
8f73811b
RM
8245 if test -f "$f"; then
8246 # Build tree
8247 echo $f
8248 elif test -f "$srcdir/$f"; then
8249 # Source tree
8250 echo $srcdir/$f
8251 else
8252 # /dev/null tree
8253 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3a12e572
UD
8254echo "$as_me: error: cannot find input file: $f" >&2;}
8255 { (exit 1); exit 1; }; }
8f73811b 8256 fi;;
3a12e572
UD
8257 esac
8258 done` || { (exit 1); exit 1; }
8259_ACEOF
8260cat >>$CONFIG_STATUS <<_ACEOF
8261 sed "$ac_vpsub
8262$extrasub
8263_ACEOF
8264cat >>$CONFIG_STATUS <<\_ACEOF
8265:t
8266/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8267s,@configure_input@,$configure_input,;t t
8268s,@srcdir@,$ac_srcdir,;t t
8269s,@abs_srcdir@,$ac_abs_srcdir,;t t
8270s,@top_srcdir@,$ac_top_srcdir,;t t
8271s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8272s,@builddir@,$ac_builddir,;t t
8273s,@abs_builddir@,$ac_abs_builddir,;t t
8274s,@top_builddir@,$ac_top_builddir,;t t
8275s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8276s,@INSTALL@,$ac_INSTALL,;t t
8277" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8278 rm -f $tmp/stdin
8279 if test x"$ac_file" != x-; then
8280 mv $tmp/out $ac_file
8281 else
8282 cat $tmp/out
8283 rm -f $tmp/out
8284 fi
8285
8286done
8287_ACEOF
8288cat >>$CONFIG_STATUS <<\_ACEOF
8289
8290#
8291# CONFIG_HEADER section.
8292#
cd6ede75
UD
8293
8294# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8295# NAME is the cpp macro being defined and VALUE is the value it is being given.
8296#
8297# ac_d sets the value in "#define NAME VALUE" lines.
8f73811b
RM
8298ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8299ac_dB='[ ].*$,\1#\2'
3a12e572
UD
8300ac_dC=' '
8301ac_dD=',;t'
8302# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8f73811b 8303ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3a12e572 8304ac_uB='$,\1#\2define\3'
cd6ede75 8305ac_uC=' '
3a12e572
UD
8306ac_uD=',;t'
8307
8308for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
cd6ede75 8309 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3a12e572
UD
8310 case $ac_file in
8311 - | *:- | *:-:* ) # input from stdin
8f73811b
RM
8312 cat >$tmp/stdin
8313 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8314 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3a12e572 8315 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8f73811b 8316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3a12e572 8317 * ) ac_file_in=$ac_file.in ;;
cd6ede75
UD
8318 esac
8319
3a12e572
UD
8320 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8321echo "$as_me: creating $ac_file" >&6;}
8322
8323 # First look for the input files in the build tree, otherwise in the
8324 # src tree.
8325 ac_file_inputs=`IFS=:
8326 for f in $ac_file_in; do
8327 case $f in
8328 -) echo $tmp/stdin ;;
8329 [\\/$]*)
8f73811b
RM
8330 # Absolute (can't be DOS-style, as IFS=:)
8331 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3a12e572
UD
8332echo "$as_me: error: cannot find input file: $f" >&2;}
8333 { (exit 1); exit 1; }; }
8f73811b 8334 echo $f;;
3a12e572 8335 *) # Relative
8f73811b
RM
8336 if test -f "$f"; then
8337 # Build tree
8338 echo $f
8339 elif test -f "$srcdir/$f"; then
8340 # Source tree
8341 echo $srcdir/$f
8342 else
8343 # /dev/null tree
8344 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3a12e572
UD
8345echo "$as_me: error: cannot find input file: $f" >&2;}
8346 { (exit 1); exit 1; }; }
8f73811b 8347 fi;;
3a12e572
UD
8348 esac
8349 done` || { (exit 1); exit 1; }
8350 # Remove the trailing spaces.
8f73811b 8351 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3a12e572
UD
8352
8353_ACEOF
8354
8355# Transform confdefs.h into two sed scripts, `conftest.defines' and
8356# `conftest.undefs', that substitutes the proper values into
8357# config.h.in to produce config.h. The first handles `#define'
8358# templates, and the second `#undef' templates.
8359# And first: Protect against being on the right side of a sed subst in
8360# config.status. Protect against being in an unquoted here document
8361# in config.status.
8362rm -f conftest.defines conftest.undefs
8363# Using a here document instead of a string reduces the quoting nightmare.
8364# Putting comments in sed scripts is not portable.
8365#
8366# `end' is used to avoid that the second main sed command (meant for
8367# 0-ary CPP macros) applies to n-ary macro definitions.
8368# See the Autoconf documentation for `clear'.
8369cat >confdef2sed.sed <<\_ACEOF
8370s/[\\&,]/\\&/g
8371s,[\\$`],\\&,g
8372t clear
8373: clear
8f73811b 8374s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
3a12e572 8375t end
8f73811b 8376s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3a12e572
UD
8377: end
8378_ACEOF
8379# If some macros were called several times there might be several times
8380# the same #defines, which is useless. Nevertheless, we may not want to
8381# sort them, since we want the *last* AC-DEFINE to be honored.
8382uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8383sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8384rm -f confdef2sed.sed
cd6ede75
UD
8385
8386# This sed command replaces #undef with comments. This is necessary, for
8387# example, in the case of _POSIX_SOURCE, which is predefined and required
8388# on some systems where configure will not decide to define it.
3a12e572 8389cat >>conftest.undefs <<\_ACEOF
8f73811b 8390s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3a12e572
UD
8391_ACEOF
8392
8393# Break up conftest.defines because some shells have a limit on the size
8394# of here documents, and old seds have small limits too (100 cmds).
8395echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8f73811b 8396echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3a12e572
UD
8397echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8398echo ' :' >>$CONFIG_STATUS
8399rm -f conftest.tail
8400while grep . conftest.defines >/dev/null
8401do
8402 # Write a limited-size here document to $tmp/defines.sed.
8403 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8404 # Speed up: don't consider the non `#define' lines.
8f73811b 8405 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3a12e572
UD
8406 # Work around the forget-to-reset-the-flag bug.
8407 echo 't clr' >>$CONFIG_STATUS
8408 echo ': clr' >>$CONFIG_STATUS
8409 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8410 echo 'CEOF
8411 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8412 rm -f $tmp/in
8413 mv $tmp/out $tmp/in
8414' >>$CONFIG_STATUS
8415 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8416 rm -f conftest.defines
8417 mv conftest.tail conftest.defines
8418done
8419rm -f conftest.defines
f4b07664 8420echo ' fi # grep' >>$CONFIG_STATUS
3a12e572 8421echo >>$CONFIG_STATUS
cd6ede75 8422
3a12e572
UD
8423# Break up conftest.undefs because some shells have a limit on the size
8424# of here documents, and old seds have small limits too (100 cmds).
8425echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
cd6ede75 8426rm -f conftest.tail
3a12e572 8427while grep . conftest.undefs >/dev/null
cd6ede75 8428do
3a12e572
UD
8429 # Write a limited-size here document to $tmp/undefs.sed.
8430 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8431 # Speed up: don't consider the non `#undef'
8f73811b 8432 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
3a12e572
UD
8433 # Work around the forget-to-reset-the-flag bug.
8434 echo 't clr' >>$CONFIG_STATUS
8435 echo ': clr' >>$CONFIG_STATUS
8436 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
cd6ede75 8437 echo 'CEOF
3a12e572
UD
8438 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8439 rm -f $tmp/in
8440 mv $tmp/out $tmp/in
8441' >>$CONFIG_STATUS
8442 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8443 rm -f conftest.undefs
8444 mv conftest.tail conftest.undefs
cd6ede75 8445done
3a12e572
UD
8446rm -f conftest.undefs
8447
8448cat >>$CONFIG_STATUS <<\_ACEOF
8449 # Let's still pretend it is `configure' which instantiates (i.e., don't
8450 # use $as_me), people would be surprised to read:
8451 # /* config.h. Generated by config.status. */
8452 if test x"$ac_file" = x-; then
8453 echo "/* Generated by configure. */" >$tmp/config.h
cd6ede75 8454 else
3a12e572
UD
8455 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8456 fi
8457 cat $tmp/in >>$tmp/config.h
8458 rm -f $tmp/in
8459 if test x"$ac_file" != x-; then
2abf9ff1 8460 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
3a12e572
UD
8461 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8462echo "$as_me: $ac_file is unchanged" >&6;}
8463 else
8464 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8465$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8f73811b
RM
8466 X"$ac_file" : 'X\(//\)[^/]' \| \
8467 X"$ac_file" : 'X\(//\)$' \| \
8468 X"$ac_file" : 'X\(/\)' \| \
8469 . : '\(.\)' 2>/dev/null ||
3a12e572
UD
8470echo X"$ac_file" |
8471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8473 /^X\(\/\/\)$/{ s//\1/; q; }
8474 /^X\(\/\).*/{ s//\1/; q; }
8475 s/.*/./; q'`
f4b07664
RM
8476 { if $as_mkdir_p; then
8477 mkdir -p "$ac_dir"
3a12e572 8478 else
f4b07664
RM
8479 as_dir="$ac_dir"
8480 as_dirs=
8481 while test ! -d "$as_dir"; do
8482 as_dirs="$as_dir $as_dirs"
8483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8484$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8f73811b
RM
8485 X"$as_dir" : 'X\(//\)[^/]' \| \
8486 X"$as_dir" : 'X\(//\)$' \| \
8487 X"$as_dir" : 'X\(/\)' \| \
8488 . : '\(.\)' 2>/dev/null ||
f4b07664 8489echo X"$as_dir" |
3a12e572
UD
8490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8492 /^X\(\/\/\)$/{ s//\1/; q; }
8493 /^X\(\/\).*/{ s//\1/; q; }
8494 s/.*/./; q'`
f4b07664
RM
8495 done
8496 test ! -n "$as_dirs" || mkdir $as_dirs
8497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8498echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8499 { (exit 1); exit 1; }; }; }
cd6ede75 8500
f4b07664
RM
8501 rm -f $ac_file
8502 mv $tmp/config.h $ac_file
8503 fi
8504 else
8505 cat $tmp/config.h
8506 rm -f $tmp/config.h
8507 fi
cd6ede75 8508done
3a12e572
UD
8509_ACEOF
8510cat >>$CONFIG_STATUS <<\_ACEOF
cd6ede75 8511
3a12e572
UD
8512#
8513# CONFIG_COMMANDS section.
8514#
8515for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8516 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8517 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8518 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8519$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8f73811b
RM
8520 X"$ac_dest" : 'X\(//\)[^/]' \| \
8521 X"$ac_dest" : 'X\(//\)$' \| \
8522 X"$ac_dest" : 'X\(/\)' \| \
8523 . : '\(.\)' 2>/dev/null ||
3a12e572
UD
8524echo X"$ac_dest" |
8525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8527 /^X\(\/\/\)$/{ s//\1/; q; }
8528 /^X\(\/\).*/{ s//\1/; q; }
8529 s/.*/./; q'`
8530 ac_builddir=.
8531
8532if test "$ac_dir" != .; then
8533 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8534 # A "../" for each directory in $ac_dir_suffix.
8535 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8536else
8537 ac_dir_suffix= ac_top_builddir=
8538fi
8539
8540case $srcdir in
8541 .) # No --srcdir option. We are building in place.
8542 ac_srcdir=.
8543 if test -z "$ac_top_builddir"; then
8544 ac_top_srcdir=.
8545 else
8546 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8547 fi ;;
8548 [\\/]* | ?:[\\/]* ) # Absolute path.
8549 ac_srcdir=$srcdir$ac_dir_suffix;
8550 ac_top_srcdir=$srcdir ;;
8551 *) # Relative path.
8552 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8553 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8554esac
8f73811b
RM
8555# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8556# absolute.
8557ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8558ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8559ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8560ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3a12e572
UD
8561
8562
8563 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8564echo "$as_me: executing $ac_dest commands" >&6;}
8565 case $ac_dest in
8566 default )
c0fb8a56
UD
8567case $CONFIG_FILES in *config.make*)
8568echo "$config_vars" >> config.make;;
8569esac
3a12e572
UD
8570test -d bits || mkdir bits ;;
8571 esac
8572done
8573_ACEOF
8574
8575cat >>$CONFIG_STATUS <<\_ACEOF
8576
8577{ (exit 0); exit 0; }
8578_ACEOF
cd6ede75 8579chmod +x $CONFIG_STATUS
3a12e572
UD
8580ac_clean_files=$ac_clean_files_save
8581
8582
8583# configure is writing to config.log, and then calls config.status.
8584# config.status does its own redirection, appending to config.log.
8585# Unfortunately, on DOS this fails, as config.log is still kept open
8586# by configure, so config.status won't be able to write to it; its
8587# output is simply discarded. So we exec the FD to /dev/null,
8588# effectively closing config.log, so it can be properly (re)opened and
8589# appended to by config.status. When coming back to configure, we
8590# need to make the FD available again.
8591if test "$no_create" != yes; then
8592 ac_cs_success=:
2abf9ff1
RM
8593 ac_config_status_args=
8594 test "$silent" = yes &&
8595 ac_config_status_args="$ac_config_status_args --quiet"
3a12e572 8596 exec 5>/dev/null
2abf9ff1 8597 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3a12e572
UD
8598 exec 5>>config.log
8599 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8600 # would make configure fail if this is the last instruction.
8601 $ac_cs_success || { (exit 1); exit 1; }
8602fi
cd6ede75 8603
3a12e572
UD
8604#
8605# CONFIG_SUBDIRS section.
8606#
cd6ede75
UD
8607if test "$no_recursion" != yes; then
8608
8609 # Remove --cache-file and --srcdir arguments so they do not pile up.
8610 ac_sub_configure_args=
8611 ac_prev=
8612 for ac_arg in $ac_configure_args; do
8613 if test -n "$ac_prev"; then
8614 ac_prev=
8615 continue
8616 fi
3a12e572 8617 case $ac_arg in
cd6ede75
UD
8618 -cache-file | --cache-file | --cache-fil | --cache-fi \
8619 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8620 ac_prev=cache_file ;;
8621 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3a12e572
UD
8622 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8623 | --c=*)
8624 ;;
8625 --config-cache | -C)
cd6ede75
UD
8626 ;;
8627 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8628 ac_prev=srcdir ;;
8629 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8630 ;;
3a12e572
UD
8631 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8632 ac_prev=prefix ;;
8633 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8634 ;;
cd6ede75
UD
8635 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8636 esac
8637 done
8638
3a12e572
UD
8639 # Always prepend --prefix to ensure using the same prefix
8640 # in subdir configurations.
8641 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8642
8643 ac_popdir=`pwd`
8644 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
cd6ede75
UD
8645
8646 # Do not complain, so a configure script can configure whichever
8647 # parts of a large source tree are present.
3a12e572 8648 test -d $srcdir/$ac_dir || continue
cd6ede75 8649
3a12e572
UD
8650 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8651echo "$as_me: configuring in $ac_dir" >&6;}
f4b07664
RM
8652 { if $as_mkdir_p; then
8653 mkdir -p "$ac_dir"
8654 else
8655 as_dir="$ac_dir"
8656 as_dirs=
8657 while test ! -d "$as_dir"; do
8658 as_dirs="$as_dir $as_dirs"
8659 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8660$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8f73811b
RM
8661 X"$as_dir" : 'X\(//\)[^/]' \| \
8662 X"$as_dir" : 'X\(//\)$' \| \
8663 X"$as_dir" : 'X\(/\)' \| \
8664 . : '\(.\)' 2>/dev/null ||
f4b07664
RM
8665echo X"$as_dir" |
8666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8668 /^X\(\/\/\)$/{ s//\1/; q; }
8669 /^X\(\/\).*/{ s//\1/; q; }
8670 s/.*/./; q'`
8671 done
8672 test ! -n "$as_dirs" || mkdir $as_dirs
8673 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8674echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8675 { (exit 1); exit 1; }; }; }
cd6ede75 8676
3a12e572 8677 ac_builddir=.
cd6ede75 8678
3a12e572
UD
8679if test "$ac_dir" != .; then
8680 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8681 # A "../" for each directory in $ac_dir_suffix.
8682 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8683else
8684 ac_dir_suffix= ac_top_builddir=
8685fi
cd6ede75 8686
3a12e572
UD
8687case $srcdir in
8688 .) # No --srcdir option. We are building in place.
8689 ac_srcdir=.
8690 if test -z "$ac_top_builddir"; then
8691 ac_top_srcdir=.
8692 else
8693 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8694 fi ;;
8695 [\\/]* | ?:[\\/]* ) # Absolute path.
8696 ac_srcdir=$srcdir$ac_dir_suffix;
8697 ac_top_srcdir=$srcdir ;;
8698 *) # Relative path.
8699 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8700 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8701esac
8f73811b
RM
8702# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8703# absolute.
8704ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8705ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8706ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8707ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3a12e572
UD
8708
8709
8710 cd $ac_dir
cd6ede75
UD
8711
8712 # Check for guested configure; otherwise get Cygnus style configure.
3a12e572
UD
8713 if test -f $ac_srcdir/configure.gnu; then
8714 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8715 elif test -f $ac_srcdir/configure; then
8716 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8717 elif test -f $ac_srcdir/configure.in; then
cd6ede75
UD
8718 ac_sub_configure=$ac_configure
8719 else
3a12e572
UD
8720 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8721echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
cd6ede75
UD
8722 ac_sub_configure=
8723 fi
8724
8725 # The recursion is here.
8726 if test -n "$ac_sub_configure"; then
cd6ede75 8727 # Make the cache file name correct relative to the subdirectory.
3a12e572
UD
8728 case $cache_file in
8729 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
cd6ede75 8730 *) # Relative path.
8f73811b 8731 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
cd6ede75 8732 esac
cd6ede75 8733
3a12e572
UD
8734 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8735echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
cd6ede75 8736 # The eval makes quoting arguments work.
3a12e572 8737 eval $ac_sub_configure $ac_sub_configure_args \
8f73811b
RM
8738 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8739 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
3a12e572
UD
8740echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8741 { (exit 1); exit 1; }; }
cd6ede75
UD
8742 fi
8743
8744 cd $ac_popdir
8745 done
8746fi
8747