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