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