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