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