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