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