x86: Adjust Linux x32 dl-cache inclusion path
[glibc.git] / configure
blobf84040644bcd565d0d0330756905af5794ff3c20
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU C Library (see version.h).
5 # Report bugs to <https://sourceware.org/bugzilla/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
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.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
201 if (eval "$as_required") 2>/dev/null; then :
202 as_have_required=yes
203 else
204 as_have_required=no
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 else
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 as_found=false
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 IFS=$as_save_IFS
214 test -z "$as_dir" && as_dir=.
215 as_found=:
216 case $as_dir in #(
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
225 break 2
228 done;;
229 esac
230 as_found=false
231 done
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi; }
236 IFS=$as_save_IFS
239 if test "x$CONFIG_SHELL" != x; then :
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.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 else
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269 $0: https://sourceware.org/bugzilla/ about your system,
270 $0: including any error possibly output before this
271 $0: message. Then install a modern shell, or manually run
272 $0: the script under such a shell if you do have one."
274 exit 1
278 SHELL=${CONFIG_SHELL-/bin/sh}
279 export SHELL
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
287 # as_fn_unset VAR
288 # ---------------
289 # Portably unset VAR.
290 as_fn_unset ()
292 { eval $1=; unset $1;}
294 as_unset=as_fn_unset
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
299 as_fn_set_status ()
301 return $1
302 } # as_fn_set_status
304 # as_fn_exit STATUS
305 # -----------------
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307 as_fn_exit ()
309 set +e
310 as_fn_set_status $1
311 exit $1
312 } # as_fn_exit
314 # as_fn_mkdir_p
315 # -------------
316 # Create "$as_dir" as a directory, including parents if necessary.
317 as_fn_mkdir_p ()
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
345 /^X\(\/\/\)$/{
346 s//\1/
349 /^X\(\/\).*/{
350 s//\1/
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 } # as_fn_mkdir_p
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p ()
367 test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
374 # implementations.
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
378 eval $1+=\$2
380 else
381 as_fn_append ()
383 eval $1=\$$1\$2
385 fi # as_fn_append
387 # as_fn_arith ARG...
388 # ------------------
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
395 as_val=$(( $* ))
397 else
398 as_fn_arith ()
400 as_val=`expr "$@" || test $? -eq 1`
402 fi # as_fn_arith
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
410 as_fn_error ()
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
419 } # as_fn_error
421 if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
423 as_expr=expr
424 else
425 as_expr=false
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
429 as_basename=basename
430 else
431 as_basename=false
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436 else
437 as_dirname=false
440 as_me=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
444 $as_echo X/"$0" |
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
449 /^X\/\(\/\/\)$/{
450 s//\1/
453 /^X\/\(\/\).*/{
454 s//\1/
457 s/.*/./; q'`
459 # Avoid depending upon Character Ranges.
460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits='0123456789'
464 as_cr_alnum=$as_cr_Letters$as_cr_digits
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
480 :lineno
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in #(((((
504 -n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
512 ECHO_N='-n';;
513 esac
515 rm -f conf$$ conf$$.exe conf$$.file
516 if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518 else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
522 if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 as_ln_s='cp -pR'
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
534 as_ln_s='cp -pR'
536 else
537 as_ln_s='cp -pR'
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
542 if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544 else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
549 as_test_x='test -x'
550 as_executable_p=as_fn_executable_p
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559 test -n "$DJDIR" || exec 7<&0 </dev/null
560 exec 6>&1
562 # Name of the host.
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 # Initializations.
570 ac_default_prefix=/usr/local
571 ac_clean_files=
572 ac_config_libobj_dir=.
573 LIBOBJS=
574 cross_compiling=no
575 subdirs=
576 MFLAGS=
577 MAKEFLAGS=
579 # Identity of this package.
580 PACKAGE_NAME='GNU C Library'
581 PACKAGE_TARNAME='glibc'
582 PACKAGE_VERSION='(see version.h)'
583 PACKAGE_STRING='GNU C Library (see version.h)'
584 PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/'
585 PACKAGE_URL='https://www.gnu.org/software/glibc/'
587 ac_unique_file="include/features.h"
588 enable_option_checking=no
589 ac_subst_vars='LTLIBOBJS
590 LIBOBJS
591 pthread_in_libc
592 RELEASE
593 VERSION
594 mach_interface_list
595 DEFINES
596 static_nss
597 profile
598 libc_cv_multidir
599 shared
600 static
601 ldd_rewrite_script
602 use_ldconfig
603 libc_cv_rootsbindir
604 libc_cv_localstatedir
605 libc_cv_sysconfdir
606 libc_cv_complocaledir
607 libc_cv_rtlddir
608 libc_cv_slibdir
609 use_nscd
610 libc_cv_gcc_unwind_find_fde
611 libc_extra_cppflags
612 libc_extra_cflags
613 libc_cv_cxx_thread_local
614 CPPUNDEFS
615 have_selinux
616 have_libcap
617 have_libaudit
618 LIBGD
619 libc_cv_cc_loop_to_function
620 libc_cv_cc_submachine
621 libc_cv_cc_nofma
622 libc_cv_mtls_dialect_gnu2
623 libc_cv_has_glob_dat
624 libc_cv_fpie
625 libc_cv_z_execstack
626 ASFLAGS_config
627 libc_cv_cc_with_libunwind
628 libc_cv_insert
629 libc_cv_protected_data
630 INSTALL_INFO
631 PERL
632 BASH_SHELL
633 CXX_BITS_STD_ABS_H
634 CXX_CMATH_HEADER
635 CXX_CSTDLIB_HEADER
636 CXX_SYSINCLUDES
637 SYSINCLUDES
638 sysnames
639 submachine
640 multi_arch
641 libc_cv_textrel_ifunc
642 no_stack_protector
643 stack_protector
644 libc_cv_ssp
645 libc_cv_with_fp
646 PYTHON
647 PYTHON_PROG
648 AUTOCONF
649 BISON
652 MAKEINFO
653 MSGFMT
654 MAKE
657 OBJDUMP
658 READELF
659 GPROF
660 OBJCOPY
662 LN_S
663 INSTALL_DATA
664 INSTALL_SCRIPT
665 INSTALL_PROGRAM
666 base_machine
667 build_pt_chown
668 build_nscd
669 libc_cv_static_nss_crypt
670 libc_cv_nss_crypt
671 build_crypt
672 memory_tagging
673 enable_werror
674 all_warnings
675 force_install
676 bindnow
677 hardcoded_path_in_tests
678 enable_timezone_tools
679 rtld_early_cflags
680 extra_nonshared_cflags
681 sysheaders
682 ac_ct_CXX
683 CXXFLAGS
686 cross_compiling
687 BUILD_CC
688 OBJEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 subdirs
703 REPORT_BUGS_TEXI
704 REPORT_BUGS_TO
705 PKGVERSION_TEXI
706 PKGVERSION
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 localstatedir
727 sharedstatedir
728 sysconfdir
729 datadir
730 datarootdir
731 libexecdir
732 sbindir
733 bindir
734 program_transform_name
735 prefix
736 exec_prefix
737 PACKAGE_URL
738 PACKAGE_BUGREPORT
739 PACKAGE_STRING
740 PACKAGE_VERSION
741 PACKAGE_TARNAME
742 PACKAGE_NAME
743 PATH_SEPARATOR
744 SHELL'
745 ac_subst_files=''
746 ac_user_opts='
747 enable_option_checking
748 with_pkgversion
749 with_bugurl
750 with_gd
751 with_gd_include
752 with_gd_lib
753 with_binutils
754 with_selinux
755 with_headers
756 with_nonshared_cflags
757 with_rtld_early_cflags
758 with_timeoutfactor
759 enable_sanity_checks
760 enable_shared
761 enable_profile
762 enable_default_pie
763 enable_timezone_tools
764 enable_hardcoded_path_in_tests
765 enable_hidden_plt
766 enable_bind_now
767 enable_stack_protector
768 enable_static_nss
769 enable_force_install
770 enable_maintainer_mode
771 enable_kernel
772 enable_all_warnings
773 enable_werror
774 enable_multi_arch
775 enable_memory_tagging
776 enable_crypt
777 enable_nss_crypt
778 enable_systemtap
779 enable_build_nscd
780 enable_nscd
781 enable_pt_chown
782 enable_mathvec
783 enable_cet
784 enable_scv
785 with_cpu
787 ac_precious_vars='build_alias
788 host_alias
789 target_alias
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
797 CXXFLAGS
798 CCC'
799 ac_subdirs_all=''
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
849 ac_prev=
850 ac_dashdash=
851 for ac_option
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
860 case $ac_option in
861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *=) ac_optarg= ;;
863 *) ac_optarg=yes ;;
864 esac
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
870 ac_dashdash=yes ;;
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
889 --config-cache | -C)
890 cache_file=config.cache ;;
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1134 -with-* | --with-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=\$ac_optarg ;;
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=no ;;
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information"
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194 esac
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206 esac
1207 done
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error $? "missing argument to $ac_option"
1214 if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1216 no) ;;
1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 esac
1222 # Check all directory arguments for consistency.
1223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1230 case $ac_val in
1231 */ )
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1234 esac
1235 # Be sure to have absolute directory names.
1236 case $ac_val in
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 esac
1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 done
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 elif test "x$build_alias" != "x$host_alias"; then
1255 cross_compiling=yes
1259 ac_tool_prefix=
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262 test "$silent" = yes && exec 6>/dev/null
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error $? "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error $? "pwd does not report name of working directory"
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 s//\1/
1287 /^X\(\/\/\)[^/].*/{
1288 s//\1/
1291 /^X\(\/\/\)$/{
1292 s//\1/
1295 /^X\(\/\).*/{
1296 s//\1/
1299 s/.*/./; q'`
1300 srcdir=$ac_confdir
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 srcdir=..
1304 else
1305 ac_srcdir_defaulted=no
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 ac_abs_confdir=`(
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314 pwd)`
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 srcdir=.
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1322 case $srcdir in
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 esac
1325 for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 done
1333 # Report the --help message.
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1338 cat <<_ACEOF
1339 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1346 Defaults for the options are specified in brackets.
1348 Configuration:
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking ...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 [PREFIX]
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1370 For better control, use the options below.
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392 _ACEOF
1394 cat <<\_ACEOF
1396 System types:
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399 _ACEOF
1402 if test -n "$ac_init_help"; then
1403 case $ac_init_help in
1404 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1405 esac
1406 cat <<\_ACEOF
1408 Optional Features:
1409 --disable-option-checking ignore unrecognized --enable/--with options
1410 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 --disable-sanity-checks really do not use threads (should not be used except
1413 in special situations) [default=yes]
1414 --enable-shared build shared library [default=yes if GNU ld]
1415 --enable-profile build profiled library [default=no]
1416 --disable-default-pie Do not build glibc programs and the testsuite as PIE
1417 [default=no]
1418 --disable-timezone-tools
1419 do not install timezone tools [default=install]
1420 --enable-hardcoded-path-in-tests
1421 hardcode newly built glibc path in tests
1422 [default=no]
1423 --disable-hidden-plt do not hide internal function calls to avoid PLT
1424 --enable-bind-now disable lazy relocations in DSOs
1425 --enable-stack-protector=[yes|no|all|strong]
1426 Use -fstack-protector[-all|-strong] to detect glibc
1427 buffer overflows
1428 --enable-static-nss build static NSS modules [default=no]
1429 --disable-force-install don't force installation of files from this package,
1430 even if they are older than the installed files
1431 --enable-maintainer-mode
1432 enable make rules and dependencies not useful (and
1433 sometimes confusing) to the casual installer
1434 --enable-kernel=VERSION compile for compatibility with kernel not older than
1435 VERSION
1436 --enable-all-warnings enable all useful warnings gcc can issue
1437 --disable-werror do not build with -Werror
1438 --enable-multi-arch enable single DSO with optimizations for multiple
1439 architectures
1440 --enable-memory-tagging enable memory tagging if supported by the
1441 architecture [default=no]
1442 --disable-crypt do not build nor install the passphrase hashing
1443 library, libcrypt
1444 --enable-nss-crypt enable libcrypt to use nss
1445 --enable-systemtap enable systemtap static probe points [default=no]
1446 --disable-build-nscd disable building and installing the nscd daemon
1447 --disable-nscd library functions will not contact the nscd daemon
1448 --enable-pt_chown Enable building and installing pt_chown
1449 --enable-mathvec Enable building and installing mathvec [default
1450 depends on architecture]
1451 --enable-cet enable Intel Control-flow Enforcement Technology
1452 (CET), x86 only
1453 --disable-scv syscalls will not use scv instruction, even if the
1454 kernel supports it, powerpc only
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1460 --with-bugurl=URL Direct users to URL to report a bug
1461 --with-gd=DIR find libgd include dir and library with prefix DIR
1462 --with-gd-include=DIR find libgd include files in DIR
1463 --with-gd-lib=DIR find libgd library files in DIR
1464 --with-binutils=PATH specify location of binutils (as and ld)
1465 --with-selinux if building with SELinux support
1466 --with-headers=PATH location of system headers to use (for example
1467 /usr/src/linux/include) [default=compiler default]
1468 --with-nonshared-cflags=CFLAGS
1469 build nonshared libraries with additional CFLAGS
1470 --with-rtld-early-cflags=CFLAGS
1471 build early initialization with additional CFLAGS
1472 --with-timeoutfactor=NUM
1473 specify an integer to scale the timeout
1474 --with-cpu=CPU select code for CPU variant
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 CPP C preprocessor
1485 CXX C++ compiler command
1486 CXXFLAGS C++ compiler flags
1488 Use these variables to override the choices made by `configure' or to help
1489 it to find libraries and programs with nonstandard names/locations.
1491 Report bugs to <https://sourceware.org/bugzilla/>.
1492 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
1493 General help using GNU software: <http://www.gnu.org/gethelp/>.
1494 _ACEOF
1495 ac_status=$?
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
1504 ac_builddir=.
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 GNU C Library configure (see version.h)
1557 generated by GNU Autoconf 2.69
1559 Copyright (C) 2012 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1601 ac_retval=1
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1606 } # ac_fn_c_try_compile
1608 # ac_fn_cxx_try_compile LINENO
1609 # ----------------------------
1610 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_cxx_try_compile ()
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext
1615 if { { ac_try="$ac_compile"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_cxx_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.$ac_objext; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1639 ac_retval=1
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1644 } # ac_fn_cxx_try_compile
1646 # ac_fn_cxx_try_link LINENO
1647 # -------------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_cxx_try_link ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext conftest$ac_exeext
1653 if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_cxx_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest$ac_exeext && {
1672 test "$cross_compiling" = yes ||
1673 test -x conftest$ac_exeext
1674 }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1680 ac_retval=1
1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684 # interfere with the next link command; also delete a directory that is
1685 # left behind by Apple's compiler. We do this before executing the actions.
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1690 } # ac_fn_cxx_try_link
1692 # ac_fn_c_try_link LINENO
1693 # -----------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_link ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext conftest$ac_exeext
1699 if { { ac_try="$ac_link"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest$ac_exeext && {
1718 test "$cross_compiling" = yes ||
1719 test -x conftest$ac_exeext
1720 }; then :
1721 ac_retval=0
1722 else
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1726 ac_retval=1
1728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1730 # interfere with the next link command; also delete a directory that is
1731 # left behind by Apple's compiler. We do this before executing the actions.
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1736 } # ac_fn_c_try_link
1738 # ac_fn_c_try_cpp LINENO
1739 # ----------------------
1740 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_cpp ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_cpp conftest.$ac_ext"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } > conftest.i && {
1760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1768 ac_retval=1
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1773 } # ac_fn_c_try_cpp
1774 cat >config.log <<_ACEOF
1775 This file contains any messages produced by compilers while
1776 running configure, to aid debugging if configure makes a mistake.
1778 It was created by GNU C Library $as_me (see version.h), which was
1779 generated by GNU Autoconf 2.69. Invocation command line was
1781 $ $0 $@
1783 _ACEOF
1784 exec 5>>config.log
1786 cat <<_ASUNAME
1787 ## --------- ##
1788 ## Platform. ##
1789 ## --------- ##
1791 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1792 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1793 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1794 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1795 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1797 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1798 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1800 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1801 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1802 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1803 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1804 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1805 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1806 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1808 _ASUNAME
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 for as_dir in $PATH
1813 IFS=$as_save_IFS
1814 test -z "$as_dir" && as_dir=.
1815 $as_echo "PATH: $as_dir"
1816 done
1817 IFS=$as_save_IFS
1819 } >&5
1821 cat >&5 <<_ACEOF
1824 ## ----------- ##
1825 ## Core tests. ##
1826 ## ----------- ##
1828 _ACEOF
1831 # Keep a trace of the command line.
1832 # Strip out --no-create and --no-recursion so they do not pile up.
1833 # Strip out --silent because we don't want to record it for future runs.
1834 # Also quote any args containing shell meta-characters.
1835 # Make two passes to allow for proper duplicate-argument suppression.
1836 ac_configure_args=
1837 ac_configure_args0=
1838 ac_configure_args1=
1839 ac_must_keep_next=false
1840 for ac_pass in 1 2
1842 for ac_arg
1844 case $ac_arg in
1845 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1846 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1847 | -silent | --silent | --silen | --sile | --sil)
1848 continue ;;
1849 *\'*)
1850 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1851 esac
1852 case $ac_pass in
1853 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1855 as_fn_append ac_configure_args1 " '$ac_arg'"
1856 if test $ac_must_keep_next = true; then
1857 ac_must_keep_next=false # Got value, back to normal.
1858 else
1859 case $ac_arg in
1860 *=* | --config-cache | -C | -disable-* | --disable-* \
1861 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1862 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1863 | -with-* | --with-* | -without-* | --without-* | --x)
1864 case "$ac_configure_args0 " in
1865 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1866 esac
1868 -* ) ac_must_keep_next=true ;;
1869 esac
1871 as_fn_append ac_configure_args " '$ac_arg'"
1873 esac
1874 done
1875 done
1876 { ac_configure_args0=; unset ac_configure_args0;}
1877 { ac_configure_args1=; unset ac_configure_args1;}
1879 # When interrupted or exit'd, cleanup temporary files, and complete
1880 # config.log. We remove comments because anyway the quotes in there
1881 # would cause problems or look ugly.
1882 # WARNING: Use '\'' to represent an apostrophe within the trap.
1883 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1884 trap 'exit_status=$?
1885 # Save into config.log some information that might help in debugging.
1887 echo
1889 $as_echo "## ---------------- ##
1890 ## Cache variables. ##
1891 ## ---------------- ##"
1892 echo
1893 # The following way of writing the cache mishandles newlines in values,
1895 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1896 eval ac_val=\$$ac_var
1897 case $ac_val in #(
1898 *${as_nl}*)
1899 case $ac_var in #(
1900 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1901 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1902 esac
1903 case $ac_var in #(
1904 _ | IFS | as_nl) ;; #(
1905 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1906 *) { eval $ac_var=; unset $ac_var;} ;;
1907 esac ;;
1908 esac
1909 done
1910 (set) 2>&1 |
1911 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1912 *${as_nl}ac_space=\ *)
1913 sed -n \
1914 "s/'\''/'\''\\\\'\'''\''/g;
1915 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1916 ;; #(
1918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1920 esac |
1921 sort
1923 echo
1925 $as_echo "## ----------------- ##
1926 ## Output variables. ##
1927 ## ----------------- ##"
1928 echo
1929 for ac_var in $ac_subst_vars
1931 eval ac_val=\$$ac_var
1932 case $ac_val in
1933 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1934 esac
1935 $as_echo "$ac_var='\''$ac_val'\''"
1936 done | sort
1937 echo
1939 if test -n "$ac_subst_files"; then
1940 $as_echo "## ------------------- ##
1941 ## File substitutions. ##
1942 ## ------------------- ##"
1943 echo
1944 for ac_var in $ac_subst_files
1946 eval ac_val=\$$ac_var
1947 case $ac_val in
1948 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949 esac
1950 $as_echo "$ac_var='\''$ac_val'\''"
1951 done | sort
1952 echo
1955 if test -s confdefs.h; then
1956 $as_echo "## ----------- ##
1957 ## confdefs.h. ##
1958 ## ----------- ##"
1959 echo
1960 cat confdefs.h
1961 echo
1963 test "$ac_signal" != 0 &&
1964 $as_echo "$as_me: caught signal $ac_signal"
1965 $as_echo "$as_me: exit $exit_status"
1966 } >&5
1967 rm -f core *.core core.conftest.* &&
1968 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1969 exit $exit_status
1971 for ac_signal in 1 2 13 15; do
1972 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1973 done
1974 ac_signal=0
1976 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1977 rm -f -r conftest* confdefs.h
1979 $as_echo "/* confdefs.h */" > confdefs.h
1981 # Predefined preprocessor variables.
1983 cat >>confdefs.h <<_ACEOF
1984 #define PACKAGE_NAME "$PACKAGE_NAME"
1985 _ACEOF
1987 cat >>confdefs.h <<_ACEOF
1988 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1989 _ACEOF
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1993 _ACEOF
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_STRING "$PACKAGE_STRING"
1997 _ACEOF
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2001 _ACEOF
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_URL "$PACKAGE_URL"
2005 _ACEOF
2008 # Let the site file select an alternate cache file if it wants to.
2009 # Prefer an explicitly selected file to automatically selected ones.
2010 ac_site_file1=NONE
2011 ac_site_file2=NONE
2012 if test -n "$CONFIG_SITE"; then
2013 # We do not want a PATH search for config.site.
2014 case $CONFIG_SITE in #((
2015 -*) ac_site_file1=./$CONFIG_SITE;;
2016 */*) ac_site_file1=$CONFIG_SITE;;
2017 *) ac_site_file1=./$CONFIG_SITE;;
2018 esac
2019 elif test "x$prefix" != xNONE; then
2020 ac_site_file1=$prefix/share/config.site
2021 ac_site_file2=$prefix/etc/config.site
2022 else
2023 ac_site_file1=$ac_default_prefix/share/config.site
2024 ac_site_file2=$ac_default_prefix/etc/config.site
2026 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2028 test "x$ac_site_file" = xNONE && continue
2029 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2031 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2032 sed 's/^/| /' "$ac_site_file" >&5
2033 . "$ac_site_file" \
2034 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2036 as_fn_error $? "failed to load site script $ac_site_file
2037 See \`config.log' for more details" "$LINENO" 5; }
2039 done
2041 if test -r "$cache_file"; then
2042 # Some versions of bash will fail to source /dev/null (special files
2043 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2044 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2046 $as_echo "$as_me: loading cache $cache_file" >&6;}
2047 case $cache_file in
2048 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2049 *) . "./$cache_file";;
2050 esac
2052 else
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2054 $as_echo "$as_me: creating cache $cache_file" >&6;}
2055 >$cache_file
2058 # Check that the precious variables saved in the cache have kept the same
2059 # value.
2060 ac_cache_corrupted=false
2061 for ac_var in $ac_precious_vars; do
2062 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2063 eval ac_new_set=\$ac_env_${ac_var}_set
2064 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2065 eval ac_new_val=\$ac_env_${ac_var}_value
2066 case $ac_old_set,$ac_new_set in
2067 set,)
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2069 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2070 ac_cache_corrupted=: ;;
2071 ,set)
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2073 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2074 ac_cache_corrupted=: ;;
2075 ,);;
2077 if test "x$ac_old_val" != "x$ac_new_val"; then
2078 # differences in whitespace do not lead to failure.
2079 ac_old_val_w=`echo x $ac_old_val`
2080 ac_new_val_w=`echo x $ac_new_val`
2081 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2083 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2084 ac_cache_corrupted=:
2085 else
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2087 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2088 eval $ac_var=\$ac_old_val
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2091 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2093 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2094 fi;;
2095 esac
2096 # Pass precious variables to config.status.
2097 if test "$ac_new_set" = set; then
2098 case $ac_new_val in
2099 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2100 *) ac_arg=$ac_var=$ac_new_val ;;
2101 esac
2102 case " $ac_configure_args " in
2103 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2104 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2105 esac
2107 done
2108 if $ac_cache_corrupted; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2112 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2113 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2115 ## -------------------- ##
2116 ## Main body of script. ##
2117 ## -------------------- ##
2119 ac_ext=c
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2127 ac_config_headers="$ac_config_headers config.h"
2129 ac_aux_dir=
2130 for ac_dir in scripts "$srcdir"/scripts; do
2131 if test -f "$ac_dir/install-sh"; then
2132 ac_aux_dir=$ac_dir
2133 ac_install_sh="$ac_aux_dir/install-sh -c"
2134 break
2135 elif test -f "$ac_dir/install.sh"; then
2136 ac_aux_dir=$ac_dir
2137 ac_install_sh="$ac_aux_dir/install.sh -c"
2138 break
2139 elif test -f "$ac_dir/shtool"; then
2140 ac_aux_dir=$ac_dir
2141 ac_install_sh="$ac_aux_dir/shtool install -c"
2142 break
2144 done
2145 if test -z "$ac_aux_dir"; then
2146 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2149 # These three variables are undocumented and unsupported,
2150 # and are intended to be withdrawn in a future Autoconf release.
2151 # They can cause serious problems if a builder's source tree is in a directory
2152 # whose full name contains unusual characters.
2153 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2154 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2155 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2161 # Check whether --with-pkgversion was given.
2162 if test "${with_pkgversion+set}" = set; then :
2163 withval=$with_pkgversion; case "$withval" in
2164 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2165 no) PKGVERSION= ;;
2166 *) PKGVERSION="($withval) " ;;
2167 esac
2168 else
2169 PKGVERSION="(GNU libc) "
2173 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2179 # Check whether --with-bugurl was given.
2180 if test "${with_bugurl+set}" = set; then :
2181 withval=$with_bugurl; case "$withval" in
2182 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2183 no) BUGURL=
2185 *) BUGURL="$withval"
2187 esac
2188 else
2189 BUGURL="https://www.gnu.org/software/libc/bugs.html"
2193 case ${BUGURL} in
2195 REPORT_BUGS_TO=
2196 REPORT_BUGS_TEXI=
2199 REPORT_BUGS_TO="<$BUGURL>"
2200 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2202 esac;
2207 cat >>confdefs.h <<_ACEOF
2208 #define PKGVERSION "$PKGVERSION"
2209 _ACEOF
2212 cat >>confdefs.h <<_ACEOF
2213 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2214 _ACEOF
2217 # Glibc should not depend on any header files
2220 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2221 # here to work around the Autoconf issue discussed in
2222 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2223 # AC_PROG_CPP
2225 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2226 # issue discussed in
2227 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2232 subdirs="$subdirs "
2235 # Make sure we can run config.sub.
2236 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2237 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2240 $as_echo_n "checking build system type... " >&6; }
2241 if ${ac_cv_build+:} false; then :
2242 $as_echo_n "(cached) " >&6
2243 else
2244 ac_build_alias=$build_alias
2245 test "x$ac_build_alias" = x &&
2246 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2247 test "x$ac_build_alias" = x &&
2248 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2249 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2250 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2254 $as_echo "$ac_cv_build" >&6; }
2255 case $ac_cv_build in
2256 *-*-*) ;;
2257 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2258 esac
2259 build=$ac_cv_build
2260 ac_save_IFS=$IFS; IFS='-'
2261 set x $ac_cv_build
2262 shift
2263 build_cpu=$1
2264 build_vendor=$2
2265 shift; shift
2266 # Remember, the first character of IFS is used to create $*,
2267 # except with old shells:
2268 build_os=$*
2269 IFS=$ac_save_IFS
2270 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2274 $as_echo_n "checking host system type... " >&6; }
2275 if ${ac_cv_host+:} false; then :
2276 $as_echo_n "(cached) " >&6
2277 else
2278 if test "x$host_alias" = x; then
2279 ac_cv_host=$ac_cv_build
2280 else
2281 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2282 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2287 $as_echo "$ac_cv_host" >&6; }
2288 case $ac_cv_host in
2289 *-*-*) ;;
2290 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2291 esac
2292 host=$ac_cv_host
2293 ac_save_IFS=$IFS; IFS='-'
2294 set x $ac_cv_host
2295 shift
2296 host_cpu=$1
2297 host_vendor=$2
2298 shift; shift
2299 # Remember, the first character of IFS is used to create $*,
2300 # except with old shells:
2301 host_os=$*
2302 IFS=$ac_save_IFS
2303 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2307 ac_ext=c
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312 if test -n "$ac_tool_prefix"; then
2313 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2314 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2316 $as_echo_n "checking for $ac_word... " >&6; }
2317 if ${ac_cv_prog_CC+:} false; then :
2318 $as_echo_n "(cached) " >&6
2319 else
2320 if test -n "$CC"; then
2321 ac_cv_prog_CC="$CC" # Let the user override the test.
2322 else
2323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 for as_dir in $PATH
2326 IFS=$as_save_IFS
2327 test -z "$as_dir" && as_dir=.
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2330 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2332 break 2
2334 done
2335 done
2336 IFS=$as_save_IFS
2340 CC=$ac_cv_prog_CC
2341 if test -n "$CC"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2343 $as_echo "$CC" >&6; }
2344 else
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2346 $as_echo "no" >&6; }
2351 if test -z "$ac_cv_prog_CC"; then
2352 ac_ct_CC=$CC
2353 # Extract the first word of "gcc", so it can be a program name with args.
2354 set dummy gcc; ac_word=$2
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2356 $as_echo_n "checking for $ac_word... " >&6; }
2357 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 if test -n "$ac_ct_CC"; then
2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2366 IFS=$as_save_IFS
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370 ac_cv_prog_ac_ct_CC="gcc"
2371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 break 2
2374 done
2375 done
2376 IFS=$as_save_IFS
2380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2381 if test -n "$ac_ct_CC"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2383 $as_echo "$ac_ct_CC" >&6; }
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2386 $as_echo "no" >&6; }
2389 if test "x$ac_ct_CC" = x; then
2390 CC=""
2391 else
2392 case $cross_compiling:$ac_tool_warned in
2393 yes:)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2396 ac_tool_warned=yes ;;
2397 esac
2398 CC=$ac_ct_CC
2400 else
2401 CC="$ac_cv_prog_CC"
2404 if test -z "$CC"; then
2405 if test -n "$ac_tool_prefix"; then
2406 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2407 set dummy ${ac_tool_prefix}cc; ac_word=$2
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2409 $as_echo_n "checking for $ac_word... " >&6; }
2410 if ${ac_cv_prog_CC+:} false; then :
2411 $as_echo_n "(cached) " >&6
2412 else
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2419 IFS=$as_save_IFS
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423 ac_cv_prog_CC="${ac_tool_prefix}cc"
2424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 break 2
2427 done
2428 done
2429 IFS=$as_save_IFS
2433 CC=$ac_cv_prog_CC
2434 if test -n "$CC"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2436 $as_echo "$CC" >&6; }
2437 else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439 $as_echo "no" >&6; }
2445 if test -z "$CC"; then
2446 # Extract the first word of "cc", so it can be a program name with args.
2447 set dummy cc; ac_word=$2
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2449 $as_echo_n "checking for $ac_word... " >&6; }
2450 if ${ac_cv_prog_CC+:} false; then :
2451 $as_echo_n "(cached) " >&6
2452 else
2453 if test -n "$CC"; then
2454 ac_cv_prog_CC="$CC" # Let the user override the test.
2455 else
2456 ac_prog_rejected=no
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2464 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2465 ac_prog_rejected=yes
2466 continue
2468 ac_cv_prog_CC="cc"
2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2472 done
2473 done
2474 IFS=$as_save_IFS
2476 if test $ac_prog_rejected = yes; then
2477 # We found a bogon in the path, so make sure we never use it.
2478 set dummy $ac_cv_prog_CC
2479 shift
2480 if test $# != 0; then
2481 # We chose a different compiler from the bogus one.
2482 # However, it has the same basename, so the bogon will be chosen
2483 # first if we set CC to just the basename; use the full file name.
2484 shift
2485 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2490 CC=$ac_cv_prog_CC
2491 if test -n "$CC"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2493 $as_echo "$CC" >&6; }
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2501 if test -z "$CC"; then
2502 if test -n "$ac_tool_prefix"; then
2503 for ac_prog in cl.exe
2505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if ${ac_cv_prog_CC+:} false; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2522 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2526 done
2527 done
2528 IFS=$as_save_IFS
2532 CC=$ac_cv_prog_CC
2533 if test -n "$CC"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2535 $as_echo "$CC" >&6; }
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2542 test -n "$CC" && break
2543 done
2545 if test -z "$CC"; then
2546 ac_ct_CC=$CC
2547 for ac_prog in cl.exe
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 if test -n "$ac_ct_CC"; then
2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2566 ac_cv_prog_ac_ct_CC="$ac_prog"
2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2570 done
2571 done
2572 IFS=$as_save_IFS
2576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2577 if test -n "$ac_ct_CC"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2579 $as_echo "$ac_ct_CC" >&6; }
2580 else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2586 test -n "$ac_ct_CC" && break
2587 done
2589 if test "x$ac_ct_CC" = x; then
2590 CC=""
2591 else
2592 case $cross_compiling:$ac_tool_warned in
2593 yes:)
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2596 ac_tool_warned=yes ;;
2597 esac
2598 CC=$ac_ct_CC
2605 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 as_fn_error $? "no acceptable C compiler found in \$PATH
2608 See \`config.log' for more details" "$LINENO" 5; }
2610 # Provide some information about the compiler.
2611 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2612 set X $ac_compile
2613 ac_compiler=$2
2614 for ac_option in --version -v -V -qversion; do
2615 { { ac_try="$ac_compiler $ac_option >&5"
2616 case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621 $as_echo "$ac_try_echo"; } >&5
2622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2623 ac_status=$?
2624 if test -s conftest.err; then
2625 sed '10a\
2626 ... rest of stderr output deleted ...
2627 10q' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2630 rm -f conftest.er1 conftest.err
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; }
2633 done
2635 EXEEXT=
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2637 $as_echo_n "checking for suffix of object files... " >&6; }
2638 if ${ac_cv_objext+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642 /* end confdefs.h. */
2645 main ()
2649 return 0;
2651 _ACEOF
2652 rm -f conftest.o conftest.obj
2653 if { { ac_try="$ac_compile"
2654 case "(($ac_try" in
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2657 esac
2658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659 $as_echo "$ac_try_echo"; } >&5
2660 (eval "$ac_compile") 2>&5
2661 ac_status=$?
2662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663 test $ac_status = 0; }; then :
2664 for ac_file in conftest.o conftest.obj conftest.*; do
2665 test -f "$ac_file" || continue;
2666 case $ac_file in
2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2669 break;;
2670 esac
2671 done
2672 else
2673 $as_echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 as_fn_error $? "cannot compute suffix of object files: cannot compile
2679 See \`config.log' for more details" "$LINENO" 5; }
2681 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2684 $as_echo "$ac_cv_objext" >&6; }
2685 OBJEXT=$ac_cv_objext
2686 ac_objext=$OBJEXT
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2688 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2689 if ${ac_cv_c_compiler_gnu+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691 else
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2696 main ()
2698 #ifndef __GNUC__
2699 choke me
2700 #endif
2703 return 0;
2705 _ACEOF
2706 if ac_fn_c_try_compile "$LINENO"; then :
2707 ac_compiler_gnu=yes
2708 else
2709 ac_compiler_gnu=no
2711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2716 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2717 if test $ac_compiler_gnu = yes; then
2718 GCC=yes
2719 else
2720 GCC=
2722 ac_test_CFLAGS=${CFLAGS+set}
2723 ac_save_CFLAGS=$CFLAGS
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2725 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2726 if ${ac_cv_prog_cc_g+:} false; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 ac_save_c_werror_flag=$ac_c_werror_flag
2730 ac_c_werror_flag=yes
2731 ac_cv_prog_cc_g=no
2732 CFLAGS="-g"
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2737 main ()
2741 return 0;
2743 _ACEOF
2744 if ac_fn_c_try_compile "$LINENO"; then :
2745 ac_cv_prog_cc_g=yes
2746 else
2747 CFLAGS=""
2748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h. */
2752 main ()
2756 return 0;
2758 _ACEOF
2759 if ac_fn_c_try_compile "$LINENO"; then :
2761 else
2762 ac_c_werror_flag=$ac_save_c_werror_flag
2763 CFLAGS="-g"
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2768 main ()
2772 return 0;
2774 _ACEOF
2775 if ac_fn_c_try_compile "$LINENO"; then :
2776 ac_cv_prog_cc_g=yes
2778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 ac_c_werror_flag=$ac_save_c_werror_flag
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2786 $as_echo "$ac_cv_prog_cc_g" >&6; }
2787 if test "$ac_test_CFLAGS" = set; then
2788 CFLAGS=$ac_save_CFLAGS
2789 elif test $ac_cv_prog_cc_g = yes; then
2790 if test "$GCC" = yes; then
2791 CFLAGS="-g -O2"
2792 else
2793 CFLAGS="-g"
2795 else
2796 if test "$GCC" = yes; then
2797 CFLAGS="-O2"
2798 else
2799 CFLAGS=
2803 ac_ext=c
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809 if test $host != $build; then
2810 for ac_prog in gcc cc
2812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2813 set dummy $ac_prog; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_BUILD_CC+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 if test -n "$BUILD_CC"; then
2820 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_BUILD_CC="$ac_prog"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2833 done
2834 done
2835 IFS=$as_save_IFS
2839 BUILD_CC=$ac_cv_prog_BUILD_CC
2840 if test -n "$BUILD_CC"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
2842 $as_echo "$BUILD_CC" >&6; }
2843 else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2849 test -n "$BUILD_CC" && break
2850 done
2854 # On Suns, sometimes $CPP names a directory.
2855 if test -n "$CPP" && test -d "$CPP"; then
2856 CPP=
2858 if test -z "$CPP"; then
2859 CPP="$CC -E"
2863 # We need the C++ compiler only for testing.
2864 ac_ext=cpp
2865 ac_cpp='$CXXCPP $CPPFLAGS'
2866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2869 if test -z "$CXX"; then
2870 if test -n "$CCC"; then
2871 CXX=$CCC
2872 else
2873 if test -n "$ac_tool_prefix"; then
2874 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_CXX+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 if test -n "$CXX"; then
2884 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2899 IFS=$as_save_IFS
2903 CXX=$ac_cv_prog_CXX
2904 if test -n "$CXX"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2906 $as_echo "$CXX" >&6; }
2907 else
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2913 test -n "$CXX" && break
2914 done
2916 if test -z "$CXX"; then
2917 ac_ct_CXX=$CXX
2918 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2920 # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy $ac_prog; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$ac_ct_CXX"; then
2928 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_CXX="$ac_prog"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2941 done
2942 done
2943 IFS=$as_save_IFS
2947 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2948 if test -n "$ac_ct_CXX"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2950 $as_echo "$ac_ct_CXX" >&6; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2957 test -n "$ac_ct_CXX" && break
2958 done
2960 if test "x$ac_ct_CXX" = x; then
2961 CXX="g++"
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969 CXX=$ac_ct_CXX
2975 # Provide some information about the compiler.
2976 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2977 set X $ac_compile
2978 ac_compiler=$2
2979 for ac_option in --version -v -V -qversion; do
2980 { { ac_try="$ac_compiler $ac_option >&5"
2981 case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984 esac
2985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 $as_echo "$ac_try_echo"; } >&5
2987 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2988 ac_status=$?
2989 if test -s conftest.err; then
2990 sed '10a\
2991 ... rest of stderr output deleted ...
2992 10q' conftest.err >conftest.er1
2993 cat conftest.er1 >&5
2995 rm -f conftest.er1 conftest.err
2996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2997 test $ac_status = 0; }
2998 done
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3001 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3002 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3009 main ()
3011 #ifndef __GNUC__
3012 choke me
3013 #endif
3016 return 0;
3018 _ACEOF
3019 if ac_fn_cxx_try_compile "$LINENO"; then :
3020 ac_compiler_gnu=yes
3021 else
3022 ac_compiler_gnu=no
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3029 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3030 if test $ac_compiler_gnu = yes; then
3031 GXX=yes
3032 else
3033 GXX=
3035 ac_test_CXXFLAGS=${CXXFLAGS+set}
3036 ac_save_CXXFLAGS=$CXXFLAGS
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3038 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3039 if ${ac_cv_prog_cxx_g+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3043 ac_cxx_werror_flag=yes
3044 ac_cv_prog_cxx_g=no
3045 CXXFLAGS="-g"
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h. */
3050 main ()
3054 return 0;
3056 _ACEOF
3057 if ac_fn_cxx_try_compile "$LINENO"; then :
3058 ac_cv_prog_cxx_g=yes
3059 else
3060 CXXFLAGS=""
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3065 main ()
3069 return 0;
3071 _ACEOF
3072 if ac_fn_cxx_try_compile "$LINENO"; then :
3074 else
3075 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3076 CXXFLAGS="-g"
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h. */
3081 main ()
3085 return 0;
3087 _ACEOF
3088 if ac_fn_cxx_try_compile "$LINENO"; then :
3089 ac_cv_prog_cxx_g=yes
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3099 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3100 if test "$ac_test_CXXFLAGS" = set; then
3101 CXXFLAGS=$ac_save_CXXFLAGS
3102 elif test $ac_cv_prog_cxx_g = yes; then
3103 if test "$GXX" = yes; then
3104 CXXFLAGS="-g -O2"
3105 else
3106 CXXFLAGS="-g"
3108 else
3109 if test "$GXX" = yes; then
3110 CXXFLAGS="-O2"
3111 else
3112 CXXFLAGS=
3115 ac_ext=c
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3121 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
3124 $as_echo_n "checking whether $CXX can link programs... " >&6; }
3125 if ${libc_cv_cxx_link_ok+:} false; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 ac_ext=cpp
3129 ac_cpp='$CXXCPP $CPPFLAGS'
3130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3134 # Default, dynamic case.
3135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3136 /* end confdefs.h. */
3139 main ()
3143 return 0;
3145 _ACEOF
3146 if ac_fn_cxx_try_link "$LINENO"; then :
3147 libc_cv_cxx_link_ok=yes
3148 else
3149 libc_cv_cxx_link_ok=no
3151 rm -f core conftest.err conftest.$ac_objext \
3152 conftest$ac_exeext conftest.$ac_ext
3153 # Static case.
3154 old_LDFLAGS="$LDFLAGS"
3155 LDFLAGS="$LDFLAGS -static"
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3159 #include <iostream>
3162 main()
3164 std::cout << "Hello, world!";
3165 return 0;
3168 _ACEOF
3169 if ac_fn_cxx_try_link "$LINENO"; then :
3171 else
3172 libc_cv_cxx_link_ok=no
3174 rm -f core conftest.err conftest.$ac_objext \
3175 conftest$ac_exeext conftest.$ac_ext
3176 LDFLAGS="$old_LDFLAGS"
3177 ac_ext=c
3178 ac_cpp='$CPP $CPPFLAGS'
3179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
3185 $as_echo "$libc_cv_cxx_link_ok" >&6; }
3186 if test $libc_cv_cxx_link_ok != yes; then :
3187 CXX=
3190 if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
3191 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3194 # This will get text that should go into config.make.
3195 config_vars=
3197 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3199 # Check whether --with-gd was given.
3200 if test "${with_gd+set}" = set; then :
3201 withval=$with_gd; case "$with_gd" in
3202 yes|''|no) ;;
3203 *) libgd_include="-I$withval/include"
3204 libgd_ldflags="-L$withval/lib" ;;
3205 esac
3210 # Check whether --with-gd-include was given.
3211 if test "${with_gd_include+set}" = set; then :
3212 withval=$with_gd_include; case "$with_gd_include" in
3213 ''|no) ;;
3214 *) libgd_include="-I$withval" ;;
3215 esac
3220 # Check whether --with-gd-lib was given.
3221 if test "${with_gd_lib+set}" = set; then :
3222 withval=$with_gd_lib; case "$with_gd_lib" in
3223 ''|no) ;;
3224 *) libgd_ldflags="-L$withval" ;;
3225 esac
3230 if test -n "$libgd_include"; then
3231 config_vars="$config_vars
3232 CFLAGS-memusagestat.c = $libgd_include"
3234 if test -n "$libgd_ldflags"; then
3235 config_vars="$config_vars
3236 libgd-LDFLAGS = $libgd_ldflags"
3240 # Check whether --with-binutils was given.
3241 if test "${with_binutils+set}" = set; then :
3242 withval=$with_binutils; path_binutils=$withval
3243 else
3244 path_binutils=''
3248 # Check whether --with-selinux was given.
3249 if test "${with_selinux+set}" = set; then :
3250 withval=$with_selinux; with_selinux=$withval
3251 else
3252 with_selinux=auto
3257 # Check whether --with-headers was given.
3258 if test "${with_headers+set}" = set; then :
3259 withval=$with_headers; sysheaders=$withval
3260 else
3261 sysheaders=''
3267 # Check whether --with-nonshared-cflags was given.
3268 if test "${with_nonshared_cflags+set}" = set; then :
3269 withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval
3270 else
3271 extra_nonshared_cflags=
3276 # Check whether --with-rtld-early-cflags was given.
3277 if test "${with_rtld_early_cflags+set}" = set; then :
3278 withval=$with_rtld_early_cflags; rtld_early_cflags=$withval
3279 else
3280 rtld_early_cflags=
3286 # Check whether --with-timeoutfactor was given.
3287 if test "${with_timeoutfactor+set}" = set; then :
3288 withval=$with_timeoutfactor; timeoutfactor=$withval
3289 else
3290 timeoutfactor=1
3293 cat >>confdefs.h <<_ACEOF
3294 #define TIMEOUTFACTOR $timeoutfactor
3295 _ACEOF
3298 # Check whether --enable-sanity-checks was given.
3299 if test "${enable_sanity_checks+set}" = set; then :
3300 enableval=$enable_sanity_checks; enable_sanity=$enableval
3301 else
3302 enable_sanity=yes
3306 # Check whether --enable-shared was given.
3307 if test "${enable_shared+set}" = set; then :
3308 enableval=$enable_shared; shared=$enableval
3309 else
3310 shared=yes
3313 # Check whether --enable-profile was given.
3314 if test "${enable_profile+set}" = set; then :
3315 enableval=$enable_profile; profile=$enableval
3316 else
3317 profile=no
3320 # Check whether --enable-default-pie was given.
3321 if test "${enable_default_pie+set}" = set; then :
3322 enableval=$enable_default_pie; default_pie=$enableval
3323 else
3324 default_pie=yes
3327 # Check whether --enable-timezone-tools was given.
3328 if test "${enable_timezone_tools+set}" = set; then :
3329 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
3330 else
3331 enable_timezone_tools=yes
3336 # Check whether --enable-hardcoded-path-in-tests was given.
3337 if test "${enable_hardcoded_path_in_tests+set}" = set; then :
3338 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
3339 else
3340 hardcoded_path_in_tests=no
3345 # Check whether --enable-hidden-plt was given.
3346 if test "${enable_hidden_plt+set}" = set; then :
3347 enableval=$enable_hidden_plt; hidden=$enableval
3348 else
3349 hidden=yes
3352 if test "x$hidden" = xno; then
3353 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3357 # Check whether --enable-bind-now was given.
3358 if test "${enable_bind_now+set}" = set; then :
3359 enableval=$enable_bind_now; bindnow=$enableval
3360 else
3361 bindnow=no
3365 if test "x$bindnow" = xyes; then
3366 $as_echo "#define BIND_NOW 1" >>confdefs.h
3370 # Check whether --enable-stack-protector was given.
3371 if test "${enable_stack_protector+set}" = set; then :
3372 enableval=$enable_stack_protector; enable_stack_protector=$enableval
3373 else
3374 enable_stack_protector=no
3377 case "$enable_stack_protector" in
3378 all|yes|no|strong) ;;
3379 *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;;
3380 esac
3382 # Check whether --enable-static-nss was given.
3383 if test "${enable_static_nss+set}" = set; then :
3384 enableval=$enable_static_nss; static_nss=$enableval
3385 else
3386 static_nss=no
3389 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3390 static_nss=yes
3391 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3395 # Check whether --enable-force-install was given.
3396 if test "${enable_force_install+set}" = set; then :
3397 enableval=$enable_force_install; force_install=$enableval
3398 else
3399 force_install=yes
3404 # Check whether --enable-maintainer-mode was given.
3405 if test "${enable_maintainer_mode+set}" = set; then :
3406 enableval=$enable_maintainer_mode; maintainer=$enableval
3407 else
3408 maintainer=no
3412 # Check whether --enable-kernel was given.
3413 if test "${enable_kernel+set}" = set; then :
3414 enableval=$enable_kernel; minimum_kernel=$enableval
3417 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3418 # Better nothing than this.
3419 minimum_kernel=""
3420 else
3421 if test "$minimum_kernel" = current; then
3422 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3426 # Check whether --enable-all-warnings was given.
3427 if test "${enable_all_warnings+set}" = set; then :
3428 enableval=$enable_all_warnings; all_warnings=$enableval
3433 # Check whether --enable-werror was given.
3434 if test "${enable_werror+set}" = set; then :
3435 enableval=$enable_werror; enable_werror=$enableval
3436 else
3437 enable_werror=yes
3442 # Check whether --enable-multi-arch was given.
3443 if test "${enable_multi_arch+set}" = set; then :
3444 enableval=$enable_multi_arch; multi_arch=$enableval
3445 else
3446 multi_arch=default
3450 # Check whether --enable-memory-tagging was given.
3451 if test "${enable_memory_tagging+set}" = set; then :
3452 enableval=$enable_memory_tagging; memory_tagging=$enableval
3453 else
3454 memory_tagging=no
3457 if test "$memory_tagging" = yes; then
3458 # Only enable this on architectures that support it.
3459 case $host_cpu in
3460 aarch64)
3461 $as_echo "#define USE_MTAG 1" >>confdefs.h
3464 esac
3468 # Check whether --enable-crypt was given.
3469 if test "${enable_crypt+set}" = set; then :
3470 enableval=$enable_crypt; build_crypt=$enableval
3471 else
3472 build_crypt=yes
3477 # Check whether --enable-nss-crypt was given.
3478 if test "${enable_nss_crypt+set}" = set; then :
3479 enableval=$enable_nss_crypt; nss_crypt=$enableval
3480 else
3481 nss_crypt=no
3484 if test x$build_libcrypt = xno && test x$nss_crypt = xyes; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&5
3486 $as_echo "$as_me: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&2;}
3487 nss_crypt=no
3489 if test x$nss_crypt = xyes; then
3490 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3491 if test $? -ne 0; then
3492 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3494 nspr_includes=-I$(nspr-config --includedir 2>/dev/null)
3495 if test $? -ne 0; then
3496 as_fn_error $? "cannot find include directory with nspr-config" "$LINENO" 5
3498 old_CFLAGS="$CFLAGS"
3499 CFLAGS="$CFLAGS $nss_includes $nspr_includes"
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503 typedef int PRBool;
3504 #include <hasht.h>
3505 #include <nsslowhash.h>
3506 void f (void) { NSSLOW_Init (); }
3508 main ()
3512 return 0;
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 libc_cv_nss_crypt=yes
3517 else
3518 as_fn_error $? "
3519 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 old_LIBS="$LIBS"
3523 old_LDFLAGS="$LDFLAGS"
3524 LIBS="$LIBS -lfreebl3"
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3527 typedef int PRBool;
3528 #include <hasht.h>
3529 #include <nsslowhash.h>
3531 main ()
3533 NSSLOW_Init();
3535 return 0;
3537 _ACEOF
3538 if ac_fn_c_try_link "$LINENO"; then :
3539 libc_cv_nss_crypt=yes
3540 else
3541 as_fn_error $? "
3542 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3544 rm -f core conftest.err conftest.$ac_objext \
3545 conftest$ac_exeext conftest.$ac_ext
3546 # Check to see if there is a static NSS cryptographic library.
3547 # If there isn't then we can't link anything with libcrypt.a,
3548 # and that might mean disabling some static tests.
3549 LDFLAGS="$LDFLAGS -static"
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3552 typedef int PRBool;
3553 #include <hasht.h>
3554 #include <nsslowhash.h>
3556 main ()
3558 NSSLOW_Init();
3560 return 0;
3562 _ACEOF
3563 if ac_fn_c_try_link "$LINENO"; then :
3564 libc_cv_static_nss_crypt=yes
3565 else
3566 libc_cv_static_nss_crypt=no
3568 rm -f core conftest.err conftest.$ac_objext \
3569 conftest$ac_exeext conftest.$ac_ext
3570 LDFLAGS="$old_LDFLAGS"
3571 CFLAGS="$old_CFLAGS"
3572 LIBS="$old_LIBS"
3573 else
3574 libc_cv_nss_crypt=no
3575 libc_cv_static_nss_crypt=no
3581 # Check whether --enable-systemtap was given.
3582 if test "${enable_systemtap+set}" = set; then :
3583 enableval=$enable_systemtap; systemtap=$enableval
3584 else
3585 systemtap=no
3588 if test "x$systemtap" != xno; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3590 $as_echo_n "checking for systemtap static probe support... " >&6; }
3591 if ${libc_cv_sdt+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 old_CFLAGS="$CFLAGS"
3595 CFLAGS="-std=gnu11 $CFLAGS"
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598 #include <sys/sdt.h>
3599 void foo (int i, void *p)
3601 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3602 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 libc_cv_sdt=yes
3607 else
3608 libc_cv_sdt=no
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 CFLAGS="$old_CFLAGS"
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3614 $as_echo "$libc_cv_sdt" >&6; }
3615 if test $libc_cv_sdt = yes; then
3616 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3618 elif test "x$systemtap" != xauto; then
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
3622 See \`config.log' for more details" "$LINENO" 5; }
3626 # Check whether --enable-build-nscd was given.
3627 if test "${enable_build_nscd+set}" = set; then :
3628 enableval=$enable_build_nscd; build_nscd=$enableval
3629 else
3630 build_nscd=default
3635 # Note the use of $use_nscd is near the bottom of the file.
3636 # Check whether --enable-nscd was given.
3637 if test "${enable_nscd+set}" = set; then :
3638 enableval=$enable_nscd; use_nscd=$enableval
3639 else
3640 use_nscd=yes
3644 # Check whether --enable-pt_chown was given.
3645 if test "${enable_pt_chown+set}" = set; then :
3646 enableval=$enable_pt_chown; build_pt_chown=$enableval
3647 else
3648 build_pt_chown=no
3652 if test "$build_pt_chown" = yes; then
3653 $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h
3657 # The abi-tags file uses a fairly simplistic model for name recognition that
3658 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
3659 # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
3660 # This doesn't get used much beyond that, so it's fairly safe.
3661 case "$host_os" in
3662 linux*)
3664 gnu*)
3665 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3667 esac
3669 # Check whether --enable-mathvec was given.
3670 if test "${enable_mathvec+set}" = set; then :
3671 enableval=$enable_mathvec; build_mathvec=$enableval
3672 else
3673 build_mathvec=notset
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3682 main ()
3685 #ifndef __CET__
3686 # error no CET compiler support
3687 #endif
3689 return 0;
3691 _ACEOF
3692 if ac_fn_c_try_cpp "$LINENO"; then :
3693 libc_cv_compiler_default_cet=yes
3694 else
3695 libc_cv_compiler_default_cet=no
3697 rm -f conftest.err conftest.i conftest.$ac_ext
3699 # Check whether --enable-cet was given.
3700 if test "${enable_cet+set}" = set; then :
3701 enableval=$enable_cet; enable_cet=$enableval
3702 else
3703 enable_cet=$libc_cv_compiler_default_cet
3707 # Check whether --enable-scv was given.
3708 if test "${enable_scv+set}" = set; then :
3709 enableval=$enable_scv; use_scv=$enableval
3710 else
3711 use_scv=yes
3715 if test "$use_scv" != "no"; then :
3716 $as_echo "#define USE_PPC_SCV 1" >>confdefs.h
3720 # We keep the original values in `$config_*' and never modify them, so we
3721 # can write them unchanged into config.make. Everything else uses
3722 # $machine, $vendor, and $os, and changes them whenever convenient.
3723 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3725 # Don't allow vendor == "unknown"
3726 test "$config_vendor" = unknown && config_vendor=
3727 config_os="`echo $config_os | sed 's/^unknown-//'`"
3729 # Some configurations imply other options.
3730 elf=yes
3732 # The configure fragment of a port can modify these to supplement
3733 # or override the table in the case statement below. No fragment should
3734 # ever change the config_* variables, however.
3735 machine=$config_machine
3736 vendor=$config_vendor
3737 os=$config_os
3738 base_os=''
3740 submachine=
3742 # Check whether --with-cpu was given.
3743 if test "${with_cpu+set}" = set; then :
3744 withval=$with_cpu; case "$withval" in
3745 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3746 no) ;;
3747 *) submachine="$withval" ;;
3748 esac
3753 # An preconfigure script can set this when it wants to disable the sanity
3754 # check below.
3755 libc_config_ok=no
3757 # A preconfigure script for a system that may or may not use fpu
3758 # sysdeps directories sets this to a preprocessor conditional for
3759 # whether to use such directories.
3760 with_fp_cond=1
3762 if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3763 then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3765 $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3766 for frag in $frags; do
3767 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3768 echo $ECHO_N "$name $ECHO_C" >&6
3769 . "$frag"
3770 done
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3772 $as_echo "" >&6; }
3777 ### By using the undocumented --enable-hacker-mode option for configure
3778 ### one can skip this test to make the configuration not fail for unsupported
3779 ### platforms.
3781 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
3782 case "$machine-$host_os" in
3783 *-linux* | *-gnu*)
3786 as_fn_error $? "
3787 *** The GNU C library is currently unavailable for this platform.
3788 *** If you are interested in seeing glibc on this platform visit
3789 *** the \"How to submit a new port\" in the wiki:
3790 *** https://sourceware.org/glibc/wiki/#Development
3791 *** and join the community!" "$LINENO" 5
3793 esac
3796 # Set base_machine if not set by a preconfigure fragment.
3797 test -n "$base_machine" || base_machine=$machine
3800 ### Locate tools.
3802 # Find a good install program. We prefer a C program (faster),
3803 # so one script is as good as another. But avoid the broken or
3804 # incompatible versions:
3805 # SysV /etc/install, /usr/sbin/install
3806 # SunOS /usr/etc/install
3807 # IRIX /sbin/install
3808 # AIX /bin/install
3809 # AmigaOS /C/install, which installs bootblocks on floppy discs
3810 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3813 # OS/2's system install, which has a completely different semantic
3814 # ./install, which can be erroneously created by make from ./install.sh.
3815 # Reject install programs that cannot install multiple files.
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3817 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3818 if test -z "$INSTALL"; then
3819 if ${ac_cv_path_install+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821 else
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 # Account for people who put trailing slashes in PATH elements.
3828 case $as_dir/ in #((
3829 ./ | .// | /[cC]/* | \
3830 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3831 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3832 /usr/ucb/* ) ;;
3834 # OSF1 and SCO ODT 3.0 have their own names for install.
3835 # Don't use installbsd from OSF since it installs stuff as root
3836 # by default.
3837 for ac_prog in ginstall scoinst install; do
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3840 if test $ac_prog = install &&
3841 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3842 # AIX install. It has an incompatible calling convention.
3844 elif test $ac_prog = install &&
3845 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3846 # program-specific install script used by HP pwplus--don't use.
3848 else
3849 rm -rf conftest.one conftest.two conftest.dir
3850 echo one > conftest.one
3851 echo two > conftest.two
3852 mkdir conftest.dir
3853 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3854 test -s conftest.one && test -s conftest.two &&
3855 test -s conftest.dir/conftest.one &&
3856 test -s conftest.dir/conftest.two
3857 then
3858 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3859 break 3
3863 done
3864 done
3866 esac
3868 done
3869 IFS=$as_save_IFS
3871 rm -rf conftest.one conftest.two conftest.dir
3874 if test "${ac_cv_path_install+set}" = set; then
3875 INSTALL=$ac_cv_path_install
3876 else
3877 # As a last resort, use the slow shell script. Don't cache a
3878 # value for INSTALL within a source directory, because that will
3879 # break other packages using the cache if that directory is
3880 # removed, or if the value is a relative name.
3881 INSTALL=$ac_install_sh
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3885 $as_echo "$INSTALL" >&6; }
3887 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3888 # It thinks the first close brace ends the variable substitution.
3889 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3891 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3893 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3895 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
3896 # The makefiles need to use a different form to find it in $srcdir.
3897 INSTALL='\$(..)./scripts/install-sh -c'
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3900 $as_echo_n "checking whether ln -s works... " >&6; }
3901 LN_S=$as_ln_s
3902 if test "$LN_S" = "ln -s"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904 $as_echo "yes" >&6; }
3905 else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3907 $as_echo "no, using $LN_S" >&6; }
3911 # Was a --with-binutils option given?
3912 if test -n "$path_binutils"; then
3913 # Make absolute; ensure a single trailing slash.
3914 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3915 CC="$CC -B$path_binutils"
3917 case "$CC" in
3918 *fuse-ld=lld*) LDNAME=ld.lld;;
3919 *) LDNAME=ld;;
3920 esac
3921 if test -z "$LD"; then
3922 LD=`$CC -print-prog-name=$LDNAME`
3924 if test -z "$AR"; then
3925 AR=`$CC -print-prog-name=ar`
3928 if test -z "$OBJCOPY"; then
3929 OBJCOPY=`$CC -print-prog-name=objcopy`
3932 if test -z "$GPROF"; then
3933 GPROF=`$CC -print-prog-name=gprof`
3936 if test -z "$READELF"; then
3937 READELF=`$CC -print-prog-name=readelf`
3940 if test -z "$OBJDUMP"; then
3941 OBJDUMP=`$CC -print-prog-name=objdump`
3944 if test -z "$NM"; then
3945 NM=`$CC -print-prog-name=nm`
3950 # Accept binutils 2.25 or newer.
3951 libc_cv_with_lld=no
3952 case $($LD --version) in
3953 "GNU gold"*)
3954 # Accept gold 1.14 or higher
3955 for ac_prog in $LD
3957 # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if ${ac_cv_prog_LD+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963 else
3964 if test -n "$LD"; then
3965 ac_cv_prog_LD="$LD" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_LD="$ac_prog"
3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3978 done
3979 done
3980 IFS=$as_save_IFS
3984 LD=$ac_cv_prog_LD
3985 if test -n "$LD"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3987 $as_echo "$LD" >&6; }
3988 else
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3994 test -n "$LD" && break
3995 done
3997 if test -z "$LD"; then
3998 ac_verc_fail=yes
3999 else
4000 # Found it, now check the version.
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4002 $as_echo_n "checking version of $LD... " >&6; }
4003 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4004 case $ac_prog_version in
4005 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4006 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*)
4007 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4008 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4010 esac
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4012 $as_echo "$ac_prog_version" >&6; }
4014 if test $ac_verc_fail = yes; then
4015 LD=: critic_missing="$critic_missing GNU gold"
4019 "LLD"*)
4020 # Accept LLD 13.0.0 or higher
4021 for ac_prog in $LD
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if ${ac_cv_prog_LD+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 if test -n "$LD"; then
4031 ac_cv_prog_LD="$LD" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_LD="$ac_prog"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4044 done
4045 done
4046 IFS=$as_save_IFS
4050 LD=$ac_cv_prog_LD
4051 if test -n "$LD"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4053 $as_echo "$LD" >&6; }
4054 else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4060 test -n "$LD" && break
4061 done
4063 if test -z "$LD"; then
4064 ac_verc_fail=yes
4065 else
4066 # Found it, now check the version.
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4068 $as_echo_n "checking version of $LD... " >&6; }
4069 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4070 case $ac_prog_version in
4071 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4072 1[3-9].*|[2-9][0-9].*)
4073 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4074 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4076 esac
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4078 $as_echo "$ac_prog_version" >&6; }
4080 if test $ac_verc_fail = yes; then
4081 LD=: critic_missing="$critic_missing LLD"
4084 libc_cv_with_lld=yes
4087 for ac_prog in $LD
4089 # Extract the first word of "$ac_prog", so it can be a program name with args.
4090 set dummy $ac_prog; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_LD+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -n "$LD"; then
4097 ac_cv_prog_LD="$LD" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4106 ac_cv_prog_LD="$ac_prog"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4110 done
4111 done
4112 IFS=$as_save_IFS
4116 LD=$ac_cv_prog_LD
4117 if test -n "$LD"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4119 $as_echo "$LD" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4126 test -n "$LD" && break
4127 done
4129 if test -z "$LD"; then
4130 ac_verc_fail=yes
4131 else
4132 # Found it, now check the version.
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4134 $as_echo_n "checking version of $LD... " >&6; }
4135 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4136 case $ac_prog_version in
4137 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4138 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4139 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4140 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4142 esac
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4144 $as_echo "$ac_prog_version" >&6; }
4146 if test $ac_verc_fail = yes; then
4147 LD=: critic_missing="$critic_missing GNU ld"
4151 esac
4152 config_vars="$config_vars
4153 with-lld = $libc_cv_with_lld"
4155 # These programs are version sensitive.
4156 for ac_prog in gnumake gmake make
4158 # Extract the first word of "$ac_prog", so it can be a program name with args.
4159 set dummy $ac_prog; ac_word=$2
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161 $as_echo_n "checking for $ac_word... " >&6; }
4162 if ${ac_cv_prog_MAKE+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 if test -n "$MAKE"; then
4166 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4167 else
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 ac_cv_prog_MAKE="$ac_prog"
4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4179 done
4180 done
4181 IFS=$as_save_IFS
4185 MAKE=$ac_cv_prog_MAKE
4186 if test -n "$MAKE"; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4188 $as_echo "$MAKE" >&6; }
4189 else
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 $as_echo "no" >&6; }
4195 test -n "$MAKE" && break
4196 done
4198 if test -z "$MAKE"; then
4199 ac_verc_fail=yes
4200 else
4201 # Found it, now check the version.
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4203 $as_echo_n "checking version of $MAKE... " >&6; }
4204 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4205 case $ac_prog_version in
4206 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4207 [4-9].* | [1-9][0-9]*)
4208 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4209 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4211 esac
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4213 $as_echo "$ac_prog_version" >&6; }
4215 if test $ac_verc_fail = yes; then
4216 critic_missing="$critic_missing make"
4220 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4222 # Extract the first word of "$ac_prog", so it can be a program name with args.
4223 set dummy $ac_prog; ac_word=$2
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225 $as_echo_n "checking for $ac_word... " >&6; }
4226 if ${ac_cv_prog_MSGFMT+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 if test -n "$MSGFMT"; then
4230 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239 ac_cv_prog_MSGFMT="$ac_prog"
4240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 break 2
4243 done
4244 done
4245 IFS=$as_save_IFS
4249 MSGFMT=$ac_cv_prog_MSGFMT
4250 if test -n "$MSGFMT"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4252 $as_echo "$MSGFMT" >&6; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4259 test -n "$MSGFMT" && break
4260 done
4262 if test -z "$MSGFMT"; then
4263 ac_verc_fail=yes
4264 else
4265 # Found it, now check the version.
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
4267 $as_echo_n "checking version of $MSGFMT... " >&6; }
4268 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4269 case $ac_prog_version in
4270 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4271 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4272 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4273 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4275 esac
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4277 $as_echo "$ac_prog_version" >&6; }
4279 if test $ac_verc_fail = yes; then
4280 MSGFMT=: aux_missing="$aux_missing msgfmt"
4283 for ac_prog in makeinfo
4285 # Extract the first word of "$ac_prog", so it can be a program name with args.
4286 set dummy $ac_prog; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if ${ac_cv_prog_MAKEINFO+:} false; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if test -n "$MAKEINFO"; then
4293 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302 ac_cv_prog_MAKEINFO="$ac_prog"
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4306 done
4307 done
4308 IFS=$as_save_IFS
4312 MAKEINFO=$ac_cv_prog_MAKEINFO
4313 if test -n "$MAKEINFO"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4315 $as_echo "$MAKEINFO" >&6; }
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4322 test -n "$MAKEINFO" && break
4323 done
4325 if test -z "$MAKEINFO"; then
4326 ac_verc_fail=yes
4327 else
4328 # Found it, now check the version.
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
4330 $as_echo_n "checking version of $MAKEINFO... " >&6; }
4331 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4332 case $ac_prog_version in
4333 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4334 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
4335 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4336 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4338 esac
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4340 $as_echo "$ac_prog_version" >&6; }
4342 if test $ac_verc_fail = yes; then
4343 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4346 for ac_prog in sed
4348 # Extract the first word of "$ac_prog", so it can be a program name with args.
4349 set dummy $ac_prog; ac_word=$2
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4351 $as_echo_n "checking for $ac_word... " >&6; }
4352 if ${ac_cv_prog_SED+:} false; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 if test -n "$SED"; then
4356 ac_cv_prog_SED="$SED" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4365 ac_cv_prog_SED="$ac_prog"
4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4369 done
4370 done
4371 IFS=$as_save_IFS
4375 SED=$ac_cv_prog_SED
4376 if test -n "$SED"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4378 $as_echo "$SED" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4385 test -n "$SED" && break
4386 done
4388 if test -z "$SED"; then
4389 ac_verc_fail=yes
4390 else
4391 # Found it, now check the version.
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
4393 $as_echo_n "checking version of $SED... " >&6; }
4394 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4395 case $ac_prog_version in
4396 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4397 3.0[2-9]*|3.[1-9]*|[4-9]*)
4398 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4399 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4401 esac
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4403 $as_echo "$ac_prog_version" >&6; }
4405 if test $ac_verc_fail = yes; then
4406 SED=: aux_missing="$aux_missing sed"
4409 for ac_prog in gawk
4411 # Extract the first word of "$ac_prog", so it can be a program name with args.
4412 set dummy $ac_prog; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if ${ac_cv_prog_AWK+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$AWK"; then
4419 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_AWK="$ac_prog"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4432 done
4433 done
4434 IFS=$as_save_IFS
4438 AWK=$ac_cv_prog_AWK
4439 if test -n "$AWK"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4441 $as_echo "$AWK" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4448 test -n "$AWK" && break
4449 done
4451 if test -z "$AWK"; then
4452 ac_verc_fail=yes
4453 else
4454 # Found it, now check the version.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
4456 $as_echo_n "checking version of $AWK... " >&6; }
4457 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4458 case $ac_prog_version in
4459 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4460 3.1.[2-9]*|3.[2-9]*|[4-9]*)
4461 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4462 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4464 esac
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4466 $as_echo "$ac_prog_version" >&6; }
4468 if test $ac_verc_fail = yes; then
4469 critic_missing="$critic_missing gawk"
4472 for ac_prog in bison
4474 # Extract the first word of "$ac_prog", so it can be a program name with args.
4475 set dummy $ac_prog; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if ${ac_cv_prog_BISON+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 if test -n "$BISON"; then
4482 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_prog_BISON="$ac_prog"
4492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4495 done
4496 done
4497 IFS=$as_save_IFS
4501 BISON=$ac_cv_prog_BISON
4502 if test -n "$BISON"; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4504 $as_echo "$BISON" >&6; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4511 test -n "$BISON" && break
4512 done
4514 if test -z "$BISON"; then
4515 ac_verc_fail=yes
4516 else
4517 # Found it, now check the version.
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
4519 $as_echo_n "checking version of $BISON... " >&6; }
4520 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
4521 case $ac_prog_version in
4522 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4523 2.7*|[3-9].*|[1-9][0-9]*)
4524 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4525 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4527 esac
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4529 $as_echo "$ac_prog_version" >&6; }
4531 if test $ac_verc_fail = yes; then
4532 critic_missing="$critic_missing bison"
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
4537 $as_echo_n "checking if $CC is sufficient to build libc... " >&6; }
4538 if ${libc_cv_compiler_ok+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4546 main ()
4549 #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
4550 #error insufficient compiler
4551 #endif
4553 return 0;
4555 _ACEOF
4556 if ac_fn_c_try_cpp "$LINENO"; then :
4557 libc_cv_compiler_ok=yes
4558 else
4559 libc_cv_compiler_ok=no
4561 rm -f conftest.err conftest.i conftest.$ac_ext
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
4564 $as_echo "$libc_cv_compiler_ok" >&6; }
4565 if test $libc_cv_compiler_ok != yes; then :
4566 critic_missing="$critic_missing compiler"
4569 if test "x$maintainer" = "xyes"; then
4570 for ac_prog in autoconf
4572 # Extract the first word of "$ac_prog", so it can be a program name with args.
4573 set dummy $ac_prog; ac_word=$2
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 $as_echo_n "checking for $ac_word... " >&6; }
4576 if ${ac_cv_prog_AUTOCONF+:} false; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 if test -n "$AUTOCONF"; then
4580 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4581 else
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589 ac_cv_prog_AUTOCONF="$ac_prog"
4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 break 2
4593 done
4594 done
4595 IFS=$as_save_IFS
4599 AUTOCONF=$ac_cv_prog_AUTOCONF
4600 if test -n "$AUTOCONF"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4602 $as_echo "$AUTOCONF" >&6; }
4603 else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4609 test -n "$AUTOCONF" && break
4610 done
4611 test -n "$AUTOCONF" || AUTOCONF="no"
4613 case "x$AUTOCONF" in
4614 xno|x|x:) AUTOCONF=no ;;
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
4617 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
4618 if ${libc_cv_autoconf_works+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
4622 libc_cv_autoconf_works=yes
4623 else
4624 libc_cv_autoconf_works=no
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
4628 $as_echo "$libc_cv_autoconf_works" >&6; }
4629 test $libc_cv_autoconf_works = yes || AUTOCONF=no
4631 esac
4632 if test "x$AUTOCONF" = xno; then
4633 aux_missing="$aux_missing autoconf"
4635 else
4636 AUTOCONF=no
4639 # Check for python3 if available, or else python.
4640 for ac_prog in python3 python
4642 # Extract the first word of "$ac_prog", so it can be a program name with args.
4643 set dummy $ac_prog; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_prog_PYTHON_PROG+:} false; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$PYTHON_PROG"; then
4650 ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659 ac_cv_prog_PYTHON_PROG="$ac_prog"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4663 done
4664 done
4665 IFS=$as_save_IFS
4669 PYTHON_PROG=$ac_cv_prog_PYTHON_PROG
4670 if test -n "$PYTHON_PROG"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
4672 $as_echo "$PYTHON_PROG" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4679 test -n "$PYTHON_PROG" && break
4680 done
4682 if test -z "$PYTHON_PROG"; then
4683 ac_verc_fail=yes
4684 else
4685 # Found it, now check the version.
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
4687 $as_echo_n "checking version of $PYTHON_PROG... " >&6; }
4688 ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
4689 case $ac_prog_version in
4690 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4691 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*)
4692 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4693 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4695 esac
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4697 $as_echo "$ac_prog_version" >&6; }
4699 if test $ac_verc_fail = yes; then
4700 critic_missing="$critic_missing python"
4703 PYTHON="$PYTHON_PROG -B"
4706 test -n "$critic_missing" && as_fn_error $? "
4707 *** These critical programs are missing or too old:$critic_missing
4708 *** Check the INSTALL file for required versions." "$LINENO" 5
4710 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4711 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4712 *** some features or tests will be disabled.
4713 *** Check the INSTALL file for required versions." >&5
4714 $as_echo "$as_me: WARNING:
4715 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4716 *** some features or tests will be disabled.
4717 *** Check the INSTALL file for required versions." >&2;}
4720 # Determine whether to use fpu or nofpu sysdeps directories.
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
4722 $as_echo_n "checking for use of fpu sysdeps directories... " >&6; }
4723 if ${libc_cv_with_fp+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 cat > conftest.c <<EOF
4727 #if $with_fp_cond
4728 int dummy;
4729 #else
4730 # error "no hardware floating point"
4731 #endif
4733 libc_cv_with_fp=no
4734 if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \
4735 1>&5 2>&5 ; then
4736 libc_cv_with_fp=yes
4738 rm -f conftest*
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
4741 $as_echo "$libc_cv_with_fp" >&6; }
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
4745 $as_echo_n "checking for -fstack-protector... " >&6; }
4746 if ${libc_cv_ssp+:} false; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
4750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4751 (eval $ac_try) 2>&5
4752 ac_status=$?
4753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4754 test $ac_status = 0; }; }; then :
4755 libc_cv_ssp=yes
4756 else
4757 libc_cv_ssp=no
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
4762 $as_echo "$libc_cv_ssp" >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
4765 $as_echo_n "checking for -fstack-protector-strong... " >&6; }
4766 if ${libc_cv_ssp_strong+:} false; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
4770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; }; }; then :
4775 libc_cv_ssp_strong=yes
4776 else
4777 libc_cv_ssp_strong=no
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
4782 $as_echo "$libc_cv_ssp_strong" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
4785 $as_echo_n "checking for -fstack-protector-all... " >&6; }
4786 if ${libc_cv_ssp_all+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
4790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4791 (eval $ac_try) 2>&5
4792 ac_status=$?
4793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4794 test $ac_status = 0; }; }; then :
4795 libc_cv_ssp_all=yes
4796 else
4797 libc_cv_ssp_all=no
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
4802 $as_echo "$libc_cv_ssp_all" >&6; }
4804 stack_protector=
4805 no_stack_protector=
4806 if test "$libc_cv_ssp" = yes; then
4807 no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
4808 $as_echo "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
4812 if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
4813 stack_protector="-fstack-protector"
4814 $as_echo "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
4816 elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then
4817 stack_protector="-fstack-protector-all"
4818 $as_echo "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
4820 elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then
4821 stack_protector="-fstack-protector-strong"
4822 $as_echo "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
4824 else
4825 stack_protector="-fno-stack-protector"
4826 $as_echo "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
4833 if test -n "$stack_protector"; then
4834 no_ssp=-fno-stack-protector
4835 else
4836 no_ssp=
4838 if test "$enable_stack_protector" != no; then
4839 as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
4843 # For the multi-arch option we need support in the assembler & linker.
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
4845 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
4846 if ${libc_cv_ld_gnu_indirect_function+:} false; then :
4847 $as_echo_n "(cached) " >&6
4848 else
4849 cat > conftest.S <<EOF
4850 .type foo,%gnu_indirect_function
4851 foo:
4852 .globl _start
4853 _start:
4854 .globl __start
4855 __start:
4856 .data
4857 #ifdef _LP64
4858 .quad foo
4859 #else
4860 .long foo
4861 #endif
4863 libc_cv_ld_gnu_indirect_function=no
4864 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4865 -nostartfiles -nostdlib $no_ssp \
4866 -o conftest conftest.S 1>&5 2>&5; then
4867 # Do a link to see if the backend supports IFUNC relocs.
4868 $READELF -r conftest 1>&5
4869 LC_ALL=C $READELF -Wr conftest | grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
4870 libc_cv_ld_gnu_indirect_function=yes
4873 rm -f conftest*
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
4876 $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; }
4878 # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
4880 $as_echo_n "checking for gcc attribute ifunc support... " >&6; }
4881 if ${libc_cv_gcc_indirect_function+:} false; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 cat > conftest.c <<EOF
4885 extern int func (int);
4886 int used_func (int a)
4888 return a;
4890 static void *resolver ()
4892 return &used_func;
4894 extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
4896 libc_cv_gcc_indirect_function=no
4897 if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \
4898 2>&5 ; then
4899 if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then
4900 libc_cv_gcc_indirect_function=yes
4903 rm -f conftest*
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
4906 $as_echo "$libc_cv_gcc_indirect_function" >&6; }
4908 # Check if linker supports textrel relocation with ifunc (used on elf/tests).
4909 # Note that it relies on libc_cv_ld_gnu_indirect_function test above.
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
4911 $as_echo_n "checking whether the linker supports textrels along with ifunc... " >&6; }
4912 if ${libc_cv_textrel_ifunc+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 cat > conftest.S <<EOF
4916 .type foo,%gnu_indirect_function
4917 foo:
4918 .globl _start
4919 _start:
4920 .globl __start
4921 __start:
4922 .data
4923 #ifdef _LP64
4924 .quad foo
4925 #else
4926 .long foo
4927 #endif
4928 .text
4929 .globl address
4930 address:
4931 #ifdef _LP64
4932 .quad address
4933 #else
4934 .long address
4935 #endif
4937 libc_cv_textrel_ifunc=no
4938 if test $libc_cv_ld_gnu_indirect_function = yes; then
4939 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
4940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4941 (eval $ac_try) 2>&5
4942 ac_status=$?
4943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4944 test $ac_status = 0; }; }; then
4945 libc_cv_textrel_ifunc=yes
4948 rm -f conftest*
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
4951 $as_echo "$libc_cv_textrel_ifunc" >&6; }
4954 # Check if CC supports attribute retain as it is used in attribute_used_retain macro.
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
4956 $as_echo_n "checking for GNU attribute retain support... " >&6; }
4957 if ${libc_cv_gnu_retain+:} false; then :
4958 $as_echo_n "(cached) " >&6
4959 else
4960 cat > conftest.c <<EOF
4961 static int var __attribute__ ((used, retain, section ("__libc_atexit")));
4963 libc_cv_gnu_retain=no
4964 if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \
4965 2>&5 ; then
4966 libc_cv_gnu_retain=yes
4968 rm -f conftest*
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
4971 $as_echo "$libc_cv_gnu_retain" >&6; }
4972 if test $libc_cv_gnu_retain = yes; then
4973 $as_echo "#define HAVE_GNU_RETAIN 1" >>confdefs.h
4976 config_vars="$config_vars
4977 have-gnu-retain = $libc_cv_gnu_retain"
4979 # Check if gcc warns about alias for function with incompatible types.
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
4981 $as_echo_n "checking if compiler warns about alias for function with incompatible types... " >&6; }
4982 if ${libc_cv_gcc_incompatible_alias+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 cat > conftest.c <<EOF
4986 int __redirect_foo (const void *s, int c);
4988 __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
4989 __typeof (__redirect_foo) *foo_impl (void)
4991 return 0;
4994 extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
4996 libc_cv_gcc_incompatible_alias=yes
4997 if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then
4998 libc_cv_gcc_incompatible_alias=no
5000 rm -f conftest*
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
5003 $as_echo "$libc_cv_gcc_incompatible_alias" >&6; }
5005 if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
5006 if test x"$multi_arch" = xyes; then
5007 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
5008 else
5009 multi_arch=no
5012 if test x"$libc_cv_gcc_indirect_function" != xyes; then
5013 # GCC 8+ emits a warning for alias with incompatible types and it might
5014 # fail to build ifunc resolvers aliases to either weak or internal
5015 # symbols. Disables multiarch build in this case.
5016 if test x"$libc_cv_gcc_incompatible_alias" = xyes; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
5018 $as_echo "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
5019 if test x"$multi_arch" = xyes; then
5020 as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
5023 $as_echo "$as_me: WARNING: Multi-arch is disabled." >&2;}
5024 multi_arch=no
5025 elif test x"$multi_arch" = xyes; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
5027 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
5028 $as_echo "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
5029 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
5032 multi_arch_d=
5033 if test x"$multi_arch" != xno; then
5034 multi_arch_d=/multiarch
5037 # Compute the list of sysdep directories for this configuration.
5038 # This can take a while to compute.
5039 sysdep_dir=$srcdir/sysdeps
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
5041 $as_echo_n "checking sysdep dirs... " >&6; }
5042 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
5043 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
5045 test "x$base_os" != x || case "$os" in
5046 gnu*)
5047 base_os=mach/hurd ;;
5048 linux*)
5049 base_os=unix/sysv ;;
5050 esac
5052 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
5053 tail=$os
5054 ostry=$os
5055 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
5056 ostry="$ostry /$o"
5057 tail=$o
5058 done
5059 o=`echo $tail | sed 's/[0-9]*$//'`
5060 if test $o != $tail; then
5061 ostry="$ostry /$o"
5063 # For linux-gnu, try linux-gnu, then linux.
5064 o=`echo $tail | sed 's/-.*$//'`
5065 if test $o != $tail; then
5066 ostry="$ostry /$o"
5069 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
5070 base=
5071 tail=$base_os
5072 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
5073 set $b
5074 base="$base /$1"
5075 tail="$2"
5076 done
5078 # For sparc/sparc32, try sparc/sparc32 and then sparc.
5079 mach=
5080 tail=$machine${submachine:+/$submachine}
5081 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
5082 set $m
5083 # Prepend the machine's FPU directory unless the architecture specific
5084 # preconfigure disables it.
5085 if test "$libc_cv_with_fp" = yes; then
5086 maybe_fpu=/fpu
5087 else
5088 maybe_fpu=/nofpu
5090 # For each machine term, try it with and then without /multiarch.
5091 for try_fpu in $maybe_fpu ''; do
5092 for try_multi in $multi_arch_d ''; do
5093 mach="$mach /$1$try_fpu$try_multi"
5094 done
5095 done
5096 tail="$2"
5097 done
5100 # Find what sysdep directories exist.
5101 sysnames=
5102 for b in $base ''; do
5103 for m0 in $mach ''; do
5104 for v in /$vendor ''; do
5105 test "$v" = / && continue
5106 for o in /$ostry ''; do
5107 test "$o" = / && continue
5108 for m in $mach ''; do
5109 try_suffix="$m0$b$v$o$m"
5110 if test -n "$try_suffix"; then
5111 try_srcdir="${srcdir}/"
5112 try="sysdeps$try_suffix"
5113 test -n "$enable_debug_configure" &&
5114 echo "$0 DEBUG: try $try" >&2
5115 if test -d "$try_srcdir$try"; then
5116 sysnames="$sysnames $try"
5117 { test -n "$o" || test -n "$b"; } && os_used=t
5118 { test -n "$m" || test -n "$m0"; } && machine_used=t
5119 case x${m0:-$m} in
5120 x*/$submachine) submachine_used=t ;;
5121 esac
5124 done
5125 done
5126 done
5127 done
5128 done
5130 # If the assembler supports gnu_indirect_function symbol type and the
5131 # architecture supports multi-arch, we enable multi-arch by default.
5132 case $sysnames in
5133 *"$multi_arch_d"*)
5136 test x"$multi_arch" = xdefault && multi_arch=no
5138 esac
5139 if test x"$multi_arch" != xno; then
5140 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
5145 if test -z "$os_used" && test "$os" != none; then
5146 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
5148 if test -z "$machine_used" && test "$machine" != none; then
5149 as_fn_error $? "The $machine is not supported." "$LINENO" 5
5151 if test -z "$submachine_used" && test -n "$submachine"; then
5152 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
5156 # We have now validated the configuration.
5158 # Expand the list of system names into a full list of directories
5159 # from each element's parent name and Implies file (if present).
5160 set $sysnames
5161 names=
5162 while test $# -gt 0; do
5163 name=$1
5164 shift
5166 case " $names " in *" $name "*)
5167 # Already in the list.
5168 continue
5169 esac
5171 # Report each name as we discover it, so there is no long pause in output.
5172 echo $ECHO_N "$name $ECHO_C" >&6
5174 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
5176 case $name in
5177 /*) xsrcdir= ;;
5178 *) xsrcdir=$srcdir/ ;;
5179 esac
5180 test -n "$enable_debug_configure" &&
5181 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
5183 for implies_file in Implies Implies-before Implies-after; do
5184 implies_type=`echo $implies_file | sed s/-/_/`
5185 eval ${implies_type}=
5186 if test -f $xsrcdir$name/$implies_file; then
5187 # Collect more names from the `Implies' file (removing comments).
5188 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
5189 for x in $implied_candidate; do
5190 found=no
5191 if test -d $xsrcdir$name_base/$x; then
5192 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
5193 found=yes
5195 try="sysdeps/$x"
5196 try_srcdir=$srcdir/
5197 test -n "$enable_debug_configure" &&
5198 echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
5199 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
5200 then
5201 eval "${implies_type}=\"\$${implies_type} \$try\""
5202 found=yes
5204 if test $found = no; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
5206 $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
5208 done
5210 done
5212 # Add NAME to the list of names.
5213 names="$names $name"
5215 # Find the parent of NAME, using the empty string if it has none.
5216 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
5218 test -n "$enable_debug_configure" &&
5219 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
5220 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
5222 # Add the names implied by NAME, and NAME's parent (if it has one), to
5223 # the list of names to be processed (the argument list). We prepend the
5224 # implied names to the list and append the parent. We want implied
5225 # directories to come before further directories inferred from the
5226 # configuration components; this ensures that for sysv4, unix/common
5227 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
5228 # after sysv4).
5229 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
5230 test -n "$sysnames" && set $sysnames
5231 done
5233 # Add the default directories.
5234 default_sysnames="sysdeps/generic"
5235 sysnames="$names $default_sysnames"
5237 # The other names were emitted during the scan.
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
5239 $as_echo "$default_sysnames" >&6; }
5241 # if using special system headers, find out the compiler's sekrit
5242 # header directory and add that to the list. NOTE: Only does the right
5243 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5244 if test -n "$sysheaders"; then
5245 SYSINCLUDES=-nostdinc
5246 for d in include include-fixed; do
5247 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5248 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5249 done
5250 SYSINCLUDES="$SYSINCLUDES \
5251 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5252 if test -n "$CXX"; then
5253 CXX_SYSINCLUDES=
5254 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
5255 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
5256 test "x$cxxheaders" != x &&
5257 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
5258 done
5264 # Obtain some C++ header file paths. This is used to make a local
5265 # copy of those headers in Makerules.
5266 if test -n "$CXX"; then
5267 find_cxx_header () {
5268 echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \
5269 | $AWK '$1 == "."{print $2}'
5271 CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
5272 CXX_CMATH_HEADER="$(find_cxx_header cmath)"
5273 CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)"
5279 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5280 # since this would lead to problems installing/building glibc.
5281 # LD_LIBRARY_PATH contains the current directory if one of the following
5282 # is true:
5283 # - one of the terminals (":" and ";") is the first or last sign
5284 # - two terminals occur directly after each other
5285 # - the path contains an element with a dot in it
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5287 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5288 case ${LD_LIBRARY_PATH} in
5289 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5290 ld_library_path_setting="contains current directory"
5293 ld_library_path_setting="ok"
5295 esac
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5297 $as_echo "$ld_library_path_setting" >&6; }
5298 if test "$ld_library_path_setting" != "ok"; then
5299 as_fn_error $? "
5300 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5301 *** building glibc. Please change the environment variable
5302 *** and run configure again." "$LINENO" 5
5305 # Extract the first word of "bash", so it can be a program name with args.
5306 set dummy bash; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if ${ac_cv_path_BASH_SHELL+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 case $BASH_SHELL in
5313 [\\/]* | ?:[\\/]*)
5314 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5320 IFS=$as_save_IFS
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 break 2
5328 done
5329 done
5330 IFS=$as_save_IFS
5332 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5334 esac
5336 BASH_SHELL=$ac_cv_path_BASH_SHELL
5337 if test -n "$BASH_SHELL"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5339 $as_echo "$BASH_SHELL" >&6; }
5340 else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5347 # Extract the first word of "perl", so it can be a program name with args.
5348 set dummy perl; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if ${ac_cv_path_PERL+:} false; then :
5352 $as_echo_n "(cached) " >&6
5353 else
5354 case $PERL in
5355 [\\/]* | ?:[\\/]*)
5356 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5374 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5376 esac
5378 PERL=$ac_cv_path_PERL
5379 if test -n "$PERL"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5381 $as_echo "$PERL" >&6; }
5382 else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5388 if test "$PERL" != no &&
5389 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5390 PERL=no
5392 # Extract the first word of "install-info", so it can be a program name with args.
5393 set dummy install-info; ac_word=$2
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 case $INSTALL_INFO in
5400 [\\/]* | ?:[\\/]*)
5401 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5406 for as_dir in $as_dummy
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5416 done
5417 done
5418 IFS=$as_save_IFS
5420 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5422 esac
5424 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5425 if test -n "$INSTALL_INFO"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5427 $as_echo "$INSTALL_INFO" >&6; }
5428 else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5436 $as_echo_n "checking for .set assembler directive... " >&6; }
5437 if ${libc_cv_asm_set_directive+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 cat > conftest.s <<EOF
5441 .text
5442 foo:
5443 .set glibc_conftest_frobozz,foo
5444 .globl glibc_conftest_frobozz
5446 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5447 # (but it doesn't work), so we must do a linking check to be sure.
5448 cat > conftest1.c <<\EOF
5449 extern int glibc_conftest_frobozz;
5450 void _start() { glibc_conftest_frobozz = 1; }
5452 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5453 -nostartfiles -nostdlib $no_ssp \
5454 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5455 libc_cv_asm_set_directive=yes
5456 else
5457 libc_cv_asm_set_directive=no
5459 rm -f conftest*
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5462 $as_echo "$libc_cv_asm_set_directive" >&6; }
5463 if test $libc_cv_asm_set_directive = yes; then
5464 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
5469 $as_echo_n "checking linker support for protected data symbol... " >&6; }
5470 if ${libc_cv_protected_data+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 cat > conftest.c <<EOF
5474 int bar __attribute__ ((visibility ("protected"))) = 1;
5476 libc_cv_protected_data=no
5477 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
5478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5479 (eval $ac_try) 2>&5
5480 ac_status=$?
5481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5482 test $ac_status = 0; }; }; then
5483 cat > conftest.c <<EOF
5484 extern int bar;
5485 int main (void) { return bar; }
5487 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
5488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5492 test $ac_status = 0; }; }; then
5493 libc_cv_protected_data=yes
5496 rm -f conftest.*
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
5500 $as_echo "$libc_cv_protected_data" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
5504 $as_echo_n "checking linker support for INSERT in linker script... " >&6; }
5505 if ${libc_cv_insert+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 cat > conftest.c <<EOF
5509 int __attribute__ ((section(".bar"))) bar = 0x12345678;
5510 int test (void) { return bar; }
5512 cat > conftest.t <<EOF
5513 SECTIONS
5515 .bar : { *(.bar) }
5517 INSERT AFTER .rela.dyn;
5519 libc_cv_insert=no
5520 if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
5521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5522 (eval $ac_try) 2>&5
5523 ac_status=$?
5524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5525 test $ac_status = 0; }; }; then
5526 libc_cv_insert=yes
5528 rm -f conftest.*
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
5532 $as_echo "$libc_cv_insert" >&6; }
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
5536 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
5537 if ${libc_cv_broken_alias_attribute+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 cat > conftest.c <<EOF
5541 extern int foo (int x) __asm ("xyzzy");
5542 int bar (int x) { return x; }
5543 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5544 extern int dfoo;
5545 extern __typeof (dfoo) dfoo __asm ("abccb");
5546 int dfoo = 1;
5548 libc_cv_broken_alias_attribute=yes
5549 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5551 (eval $ac_try) 2>&5
5552 ac_status=$?
5553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5554 test $ac_status = 0; }; }; then
5555 if grep 'xyzzy' conftest.s >/dev/null &&
5556 grep 'abccb' conftest.s >/dev/null; then
5557 libc_cv_broken_alias_attribute=no
5560 rm -f conftest.c conftest.s
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
5564 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
5565 if test $libc_cv_broken_alias_attribute = yes; then
5566 as_fn_error $? "working alias attribute support required" "$LINENO" 5
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
5570 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
5571 if ${libc_cv_have_sdata_section+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 echo "int i;" > conftest.c
5575 libc_cv_have_sdata_section=no
5576 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5577 | grep '\.sdata' >/dev/null; then
5578 libc_cv_have_sdata_section=yes
5580 rm -f conftest.c conftest.so
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
5584 $as_echo "$libc_cv_have_sdata_section" >&6; }
5585 if test $libc_cv_have_sdata_section = yes; then
5586 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
5591 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
5592 if ${libc_cv_cc_with_libunwind+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5596 cat > conftest.c <<EOF
5597 int main (void) { return 0; }
5599 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
5600 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
5601 libc_cv_cc_with_libunwind=yes
5602 else
5603 libc_cv_cc_with_libunwind=no
5605 rm -f conftest*
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
5608 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
5610 if test $libc_cv_cc_with_libunwind = yes; then
5611 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
5615 ASFLAGS_config=
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
5617 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
5618 if ${libc_cv_as_noexecstack+:} false; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 cat > conftest.c <<EOF
5622 void foo (void) { }
5624 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
5625 -S -o conftest.s conftest.c 1>&5'
5626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5627 (eval $ac_try) 2>&5
5628 ac_status=$?
5629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630 test $ac_status = 0; }; } \
5631 && grep .note.GNU-stack conftest.s >/dev/null \
5632 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
5633 -c -o conftest.o conftest.s 1>&5'
5634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; }; }
5639 then
5640 libc_cv_as_noexecstack=yes
5641 else
5642 libc_cv_as_noexecstack=no
5644 rm -f conftest*
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
5647 $as_echo "$libc_cv_as_noexecstack" >&6; }
5648 if test $libc_cv_as_noexecstack = yes; then
5649 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
5654 $as_echo_n "checking for linker that supports -z execstack... " >&6; }
5655 libc_linker_feature=no
5656 cat > conftest.c <<EOF
5657 int _start (void) { return 42; }
5659 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5660 -Wl,-z,execstack -nostdlib -nostartfiles
5661 -fPIC -shared -o conftest.so conftest.c
5662 1>&5'
5663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; }; }
5668 then
5669 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack -nostdlib \
5670 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5671 | grep "warning: -z execstack ignored" > /dev/null 2>&1; then
5672 true
5673 else
5674 libc_linker_feature=yes
5677 rm -f conftest*
5678 if test $libc_linker_feature = yes; then
5679 libc_cv_z_execstack=yes
5680 else
5681 libc_cv_z_execstack=no
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5684 $as_echo "$libc_linker_feature" >&6; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
5688 $as_echo_n "checking for linker that supports -z start-stop-gc... " >&6; }
5689 libc_linker_feature=no
5690 cat > conftest.c <<EOF
5691 int _start (void) { return 42; }
5693 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5694 -Wl,-z,start-stop-gc -nostdlib -nostartfiles
5695 -fPIC -shared -o conftest.so conftest.c
5696 1>&5'
5697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701 test $ac_status = 0; }; }
5702 then
5703 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc -nostdlib \
5704 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5705 | grep "warning: -z start-stop-gc ignored" > /dev/null 2>&1; then
5706 true
5707 else
5708 libc_linker_feature=yes
5711 rm -f conftest*
5712 if test $libc_linker_feature = yes; then
5713 libc_cv_z_start_stop_gc=yes
5714 else
5715 libc_cv_z_start_stop_gc=no
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5718 $as_echo "$libc_linker_feature" >&6; }
5719 config_vars="$config_vars
5720 have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
5723 $as_echo_n "checking for linker that supports --depaudit... " >&6; }
5724 libc_linker_feature=no
5725 cat > conftest.c <<EOF
5726 int _start (void) { return 42; }
5728 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5729 -Wl,--depaudit,x -nostdlib -nostartfiles
5730 -fPIC -shared -o conftest.so conftest.c
5731 1>&5'
5732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5736 test $ac_status = 0; }; }
5737 then
5738 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x -nostdlib \
5739 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5740 | grep "warning: --depaudit ignored" > /dev/null 2>&1; then
5741 true
5742 else
5743 libc_linker_feature=yes
5746 rm -f conftest*
5747 if test $libc_linker_feature = yes; then
5748 libc_cv_depaudit=yes
5749 else
5750 libc_cv_depaudit=no
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5753 $as_echo "$libc_linker_feature" >&6; }
5754 config_vars="$config_vars
5755 have-depaudit = $libc_cv_depaudit"
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
5758 $as_echo_n "checking for linker that supports -z pack-relative-relocs... " >&6; }
5759 libc_linker_feature=no
5760 cat > conftest.c <<EOF
5761 int _start (void) { return 42; }
5763 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5764 -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
5765 -fPIC -shared -o conftest.so conftest.c
5766 1>&5'
5767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5768 (eval $ac_try) 2>&5
5769 ac_status=$?
5770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5771 test $ac_status = 0; }; }
5772 then
5773 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs -nostdlib \
5774 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5775 | grep "warning: -z pack-relative-relocs ignored" > /dev/null 2>&1; then
5776 true
5777 else
5778 libc_linker_feature=yes
5781 rm -f conftest*
5782 if test $libc_linker_feature = yes; then
5783 libc_cv_dt_relr=yes
5784 else
5785 libc_cv_dt_relr=no
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5788 $as_echo "$libc_linker_feature" >&6; }
5789 config_vars="$config_vars
5790 have-dt-relr = $libc_cv_dt_relr"
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
5793 $as_echo_n "checking for linker that supports --no-dynamic-linker... " >&6; }
5794 libc_linker_feature=no
5795 cat > conftest.c <<EOF
5796 int _start (void) { return 42; }
5798 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5799 -Wl,--no-dynamic-linker -nostdlib -nostartfiles
5800 -fPIC -shared -o conftest.so conftest.c
5801 1>&5'
5802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5803 (eval $ac_try) 2>&5
5804 ac_status=$?
5805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5806 test $ac_status = 0; }; }
5807 then
5808 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
5809 -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
5810 | grep "warning: --no-dynamic-linker ignored" > /dev/null 2>&1; then
5811 true
5812 else
5813 libc_linker_feature=yes
5816 rm -f conftest*
5817 if test $libc_linker_feature = yes; then
5818 libc_cv_no_dynamic_linker=yes
5819 else
5820 libc_cv_no_dynamic_linker=no
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5823 $as_echo "$libc_linker_feature" >&6; }
5824 config_vars="$config_vars
5825 have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
5828 $as_echo_n "checking for -static-pie... " >&6; }
5829 if ${libc_cv_static_pie+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
5833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5837 test $ac_status = 0; }; }; then :
5838 libc_cv_static_pie=yes
5839 else
5840 libc_cv_static_pie=no
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
5845 $as_echo "$libc_cv_static_pie" >&6; }
5846 config_vars="$config_vars
5847 have-static-pie = $libc_cv_static_pie"
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
5850 $as_echo_n "checking for -fpie... " >&6; }
5851 if ${libc_cv_fpie+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
5855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5859 test $ac_status = 0; }; }; then :
5860 libc_cv_fpie=yes
5861 else
5862 libc_cv_fpie=no
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
5867 $as_echo "$libc_cv_fpie" >&6; }
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
5872 $as_echo_n "checking for GLOB_DAT reloc... " >&6; }
5873 if ${libc_cv_has_glob_dat+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 cat > conftest.c <<EOF
5877 extern int mumble;
5878 int foo (void) { return mumble; }
5880 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5881 -fPIC -shared -o conftest.so conftest.c
5882 -nostdlib -nostartfiles $no_ssp
5883 1>&5'
5884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5885 (eval $ac_try) 2>&5
5886 ac_status=$?
5887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5888 test $ac_status = 0; }; }
5889 then
5890 if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then
5891 libc_cv_has_glob_dat=yes
5892 else
5893 libc_cv_has_glob_dat=no
5895 else
5896 libc_cv_has_glob_dat=no
5898 rm -f conftest*
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
5901 $as_echo "$libc_cv_has_glob_dat" >&6; }
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5
5905 $as_echo_n "checking for -mtls-dialect=gnu2... " >&6; }
5906 if ${libc_cv_mtls_dialect_gnu2+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 cat > conftest.c <<EOF
5910 __thread int i;
5911 void foo (void)
5913 i = 10;
5916 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles
5917 conftest.c -o conftest 1>&5'
5918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5919 (eval $ac_try) 2>&5
5920 ac_status=$?
5921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5922 test $ac_status = 0; }; }
5923 then
5924 libc_cv_mtls_dialect_gnu2=yes
5925 else
5926 libc_cv_mtls_dialect_gnu2=no
5928 rm -f conftest*
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5
5931 $as_echo "$libc_cv_mtls_dialect_gnu2" >&6; }
5933 config_vars="$config_vars
5934 have-mtls-dialect-gnu2 = $libc_cv_mtls_dialect_gnu2"
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5
5937 $as_echo_n "checking if -Wno-ignored-attributes is required for aliases... " >&6; }
5938 if ${libc_cv_wno_ignored_attributes+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 cat > conftest.c <<EOF
5942 void __foo (void)
5945 extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
5946 extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
5948 libc_cv_wno_ignored_attributes=""
5949 if ! { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c'
5950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5951 (eval $ac_try) 2>&5
5952 ac_status=$?
5953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5954 test $ac_status = 0; }; }
5955 then
5956 libc_cv_wno_ignored_attributes="-Wno-ignored-attributes"
5958 rm -f conftest*
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5
5961 $as_echo "$libc_cv_wno_ignored_attributes" >&6; }
5962 config_vars="$config_vars
5963 config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
5966 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
5967 if ${libc_cv_have_section_quotes+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 cat > conftest.c <<EOF
5971 static const int foo
5972 __attribute__ ((section ("bar"))) = 1;
5974 if ${CC-cc} -S conftest.c -o conftest.s; then
5975 if grep '\.section.*"bar"' conftest.s >/dev/null; then
5976 libc_cv_have_section_quotes=yes
5977 else
5978 libc_cv_have_section_quotes=no
5980 else
5981 libc_cv_have_section_quotes=unknown
5983 rm -f conftest.{c,s}
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
5987 $as_echo "$libc_cv_have_section_quotes" >&6; }
5988 if test $libc_cv_have_section_quotes = yes; then
5989 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
5994 $as_echo_n "checking for __builtin_memset... " >&6; }
5995 if ${libc_cv_gcc_builtin_memset+:} false; then :
5996 $as_echo_n "(cached) " >&6
5997 else
5998 cat > conftest.c <<\EOF
5999 void zero (void *x)
6001 __builtin_memset (x, 0, 1000);
6004 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
6005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6009 test $ac_status = 0; }; };
6010 then
6011 libc_cv_gcc_builtin_memset=no
6012 else
6013 libc_cv_gcc_builtin_memset=yes
6015 rm -f conftest*
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
6018 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
6019 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6020 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
6025 $as_echo_n "checking for redirection of built-in functions... " >&6; }
6026 if ${libc_cv_gcc_builtin_redirection+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 cat > conftest.c <<\EOF
6030 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6031 char *foo (const char *a, const char *b)
6033 return __builtin_strstr (a, b);
6036 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
6037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6038 (eval $ac_try) 2>&5
6039 ac_status=$?
6040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6041 test $ac_status = 0; }; };
6042 then
6043 libc_cv_gcc_builtin_redirection=yes
6044 else
6045 libc_cv_gcc_builtin_redirection=no
6047 rm -f conftest*
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
6050 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
6051 if test "$libc_cv_gcc_builtin_redirection" = no; then
6052 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6056 $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6057 if ${libc_cv_cc_nofma+:} false; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 libc_cv_cc_nofma=
6061 for opt in -ffp-contract=off -mno-fused-madd; do
6062 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6067 test $ac_status = 0; }; }; then :
6068 libc_cv_cc_nofma=$opt; break
6070 done
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
6073 $as_echo "$libc_cv_cc_nofma" >&6; }
6076 if test -n "$submachine"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
6078 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
6079 if ${libc_cv_cc_submachine+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 libc_cv_cc_submachine=no
6083 for opt in "-march=$submachine" "-mcpu=$submachine"; do
6084 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6089 test $ac_status = 0; }; }; then :
6091 libc_cv_cc_submachine="$opt"
6092 break
6094 done
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
6097 $as_echo "$libc_cv_cc_submachine" >&6; }
6098 if test "x$libc_cv_cc_submachine" = xno; then
6099 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
6105 $as_echo_n "checking for compiler option that -fsignaling-nans... " >&6; }
6106 if ${libc_cv_cc_signaling_nans+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
6110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6111 (eval $ac_try) 2>&5
6112 ac_status=$?
6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114 test $ac_status = 0; }; }; then :
6115 libc_cv_cc_signaling_nans=-fsignaling-nans
6116 else
6117 libc_cv_cc_signaling_nans=
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
6122 $as_echo "$libc_cv_cc_signaling_nans" >&6; }
6123 config_vars="$config_vars
6124 config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6127 __attribute__ ((__optimize__))" >&5
6128 $as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6129 __attribute__ ((__optimize__))... " >&6; }
6130 if ${libc_cv_cc_loop_to_function+:} false; then :
6131 $as_echo_n "(cached) " >&6
6132 else
6133 cat > conftest.c <<EOF
6134 void
6135 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
6136 foo (void) {}
6138 libc_cv_cc_loop_to_function=no
6139 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
6140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6141 (eval $ac_try) 2>&5
6142 ac_status=$?
6143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6144 test $ac_status = 0; }; }
6145 then
6146 libc_cv_cc_loop_to_function=yes
6148 rm -f conftest*
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
6151 $as_echo "$libc_cv_cc_loop_to_function" >&6; }
6152 if test $libc_cv_cc_loop_to_function = yes; then
6153 $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
6159 $as_echo_n "checking for libgd... " >&6; }
6160 if test "$with_gd" != "no"; then
6161 old_CFLAGS="$CFLAGS"
6162 CFLAGS="$CFLAGS $libgd_include"
6163 old_LDFLAGS="$LDFLAGS"
6164 LDFLAGS="$LDFLAGS $libgd_ldflags"
6165 old_LIBS="$LIBS"
6166 LIBS="$LIBS -lgd -lpng -lz -lm"
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 #include <gd.h>
6171 main ()
6173 gdImagePng (0, 0)
6175 return 0;
6177 _ACEOF
6178 if ac_fn_c_try_link "$LINENO"; then :
6179 LIBGD=yes
6180 else
6181 LIBGD=no
6183 rm -f core conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6185 CFLAGS="$old_CFLAGS"
6186 LDFLAGS="$old_LDFLAGS"
6187 LIBS="$old_LIBS"
6188 else
6189 LIBGD=no
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
6192 $as_echo "$LIBGD" >&6; }
6195 # SELinux detection
6196 if test x$with_selinux = xno ; then
6197 have_selinux=no;
6198 else
6199 # See if we have the SELinux library
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
6201 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
6202 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 ac_check_lib_save_LIBS=$LIBS
6206 LIBS="-lselinux $LIBS"
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6210 /* Override any GCC internal prototype to avoid an error.
6211 Use char because int might match the return type of a GCC
6212 builtin and then its argument prototype would still apply. */
6213 #ifdef __cplusplus
6214 extern "C"
6215 #endif
6216 char is_selinux_enabled ();
6218 main ()
6220 return is_selinux_enabled ();
6222 return 0;
6224 _ACEOF
6225 if ac_fn_c_try_link "$LINENO"; then :
6226 ac_cv_lib_selinux_is_selinux_enabled=yes
6227 else
6228 ac_cv_lib_selinux_is_selinux_enabled=no
6230 rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6232 LIBS=$ac_check_lib_save_LIBS
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
6235 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
6236 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
6237 have_selinux=yes
6238 else
6239 have_selinux=no
6242 if test x$with_selinux = xyes ; then
6243 if test x$have_selinux = xno ; then
6244 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
6248 # Check if we're building with SELinux support.
6249 if test "x$have_selinux" = xyes; then
6251 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
6254 # See if we have the libaudit library
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
6256 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
6257 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 ac_check_lib_save_LIBS=$LIBS
6261 LIBS="-laudit $LIBS"
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6265 /* Override any GCC internal prototype to avoid an error.
6266 Use char because int might match the return type of a GCC
6267 builtin and then its argument prototype would still apply. */
6268 #ifdef __cplusplus
6269 extern "C"
6270 #endif
6271 char audit_log_user_avc_message ();
6273 main ()
6275 return audit_log_user_avc_message ();
6277 return 0;
6279 _ACEOF
6280 if ac_fn_c_try_link "$LINENO"; then :
6281 ac_cv_lib_audit_audit_log_user_avc_message=yes
6282 else
6283 ac_cv_lib_audit_audit_log_user_avc_message=no
6285 rm -f core conftest.err conftest.$ac_objext \
6286 conftest$ac_exeext conftest.$ac_ext
6287 LIBS=$ac_check_lib_save_LIBS
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
6290 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
6291 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
6292 have_libaudit=yes
6293 else
6294 have_libaudit=no
6297 if test "x$have_libaudit" = xyes; then
6299 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
6304 # See if we have the libcap library
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
6306 $as_echo_n "checking for cap_init in -lcap... " >&6; }
6307 if ${ac_cv_lib_cap_cap_init+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 ac_check_lib_save_LIBS=$LIBS
6311 LIBS="-lcap $LIBS"
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6315 /* Override any GCC internal prototype to avoid an error.
6316 Use char because int might match the return type of a GCC
6317 builtin and then its argument prototype would still apply. */
6318 #ifdef __cplusplus
6319 extern "C"
6320 #endif
6321 char cap_init ();
6323 main ()
6325 return cap_init ();
6327 return 0;
6329 _ACEOF
6330 if ac_fn_c_try_link "$LINENO"; then :
6331 ac_cv_lib_cap_cap_init=yes
6332 else
6333 ac_cv_lib_cap_cap_init=no
6335 rm -f core conftest.err conftest.$ac_objext \
6336 conftest$ac_exeext conftest.$ac_ext
6337 LIBS=$ac_check_lib_save_LIBS
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
6340 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
6341 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
6342 have_libcap=yes
6343 else
6344 have_libcap=no
6347 if test "x$have_libcap" = xyes; then
6349 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
6356 CPPUNDEFS=
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5
6358 $as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; }
6359 if ${libc_cv_predef_fortify_source+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6366 main ()
6369 #ifdef _FORTIFY_SOURCE
6370 # error bogon
6371 #endif
6373 return 0;
6375 _ACEOF
6376 if ac_fn_c_try_compile "$LINENO"; then :
6377 libc_cv_predef_fortify_source=no
6378 else
6379 libc_cv_predef_fortify_source=yes
6381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5
6384 $as_echo "$libc_cv_predef_fortify_source" >&6; }
6385 if test $libc_cv_predef_fortify_source = yes; then
6386 CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE"
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
6391 $as_echo_n "checking whether the assembler requires one version per symbol... " >&6; }
6392 if ${libc_cv_symver_needs_alias+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 cat > conftest.s <<EOF
6396 .text
6397 testfunc:
6398 .globl testfunc
6399 .symver testfunc, testfunc1@VERSION1
6400 .symver testfunc, testfunc1@VERSION2
6402 libc_cv_symver_needs_alias=no
6403 if ${CC-cc} $ASFLAGS -c conftest.s 2>&5; then
6404 libc_cv_symver_needs_alias=no
6405 else
6406 libc_cv_symver_needs_alias=yes
6408 rm conftest.*
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
6412 $as_echo "$libc_cv_symver_needs_alias" >&6; }
6413 if test "$libc_cv_symver_needs_alias" = yes; then
6414 $as_echo "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
6419 $as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; }
6420 if ${libc_cv_builtin_trap+:} false; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 libc_cv_builtin_trap=no
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6428 main ()
6430 __builtin_trap ()
6432 return 0;
6434 _ACEOF
6435 if ac_fn_c_try_compile "$LINENO"; then :
6437 libc_undefs=`$NM -u conftest.o |
6438 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
6439 2>&5` || {
6440 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
6442 echo >&5 "libc_undefs='$libc_undefs'"
6443 if test -z "$libc_undefs"; then
6444 libc_cv_builtin_trap=yes
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
6450 $as_echo "$libc_cv_builtin_trap" >&6; }
6451 if test $libc_cv_builtin_trap = yes; then
6452 $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
6456 ac_ext=cpp
6457 ac_cpp='$CXXCPP $CPPFLAGS'
6458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
6464 $as_echo_n "checking whether the C++ compiler supports thread_local... " >&6; }
6465 if ${libc_cv_cxx_thread_local+:} false; then :
6466 $as_echo_n "(cached) " >&6
6467 else
6469 old_CXXFLAGS="$CXXFLAGS"
6470 CXXFLAGS="$CXXFLAGS -std=gnu++11"
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6474 #include <thread>
6476 // Compiler support.
6477 struct S
6479 S ();
6480 ~S ();
6482 thread_local S s;
6483 S * get () { return &s; }
6485 // libstdc++ support.
6486 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
6487 #error __cxa_thread_atexit_impl not supported
6488 #endif
6490 _ACEOF
6491 if ac_fn_cxx_try_compile "$LINENO"; then :
6492 libc_cv_cxx_thread_local=yes
6493 else
6494 libc_cv_cxx_thread_local=no
6496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 CXXFLAGS="$old_CXXFLAGS"
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
6501 $as_echo "$libc_cv_cxx_thread_local" >&6; }
6504 ac_ext=c
6505 ac_cpp='$CPP $CPPFLAGS'
6506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6511 ### End of automated tests.
6512 ### Now run sysdeps configure fragments.
6514 # They also can set these variables.
6515 use_ldconfig=no
6516 ldd_rewrite_script=no
6517 libc_cv_sysconfdir=$sysconfdir
6518 libc_cv_localstatedir=$localstatedir
6519 libc_cv_gcc_unwind_find_fde=no
6520 libc_cv_idn=no
6521 pthread_in_libc=yes
6523 # Iterate over all the sysdep directories we will use, running their
6524 # configure fragments.
6525 for dir in $sysnames; do
6526 case $dir in
6527 /*) dest=$dir ;;
6528 *) dest=$srcdir/$dir ;;
6529 esac
6530 if test -r $dest/configure; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
6532 $as_echo "running configure fragment for $dir" >&6; }
6533 . $dest/configure
6535 done
6537 if test x"$build_mathvec" = xnotset; then
6538 build_mathvec=no
6540 config_vars="$config_vars
6541 build-mathvec = $build_mathvec"
6546 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6547 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
6552 # A sysdeps configure fragment can reset this if IFUNC is not actually
6553 # usable even though the assembler knows how to generate the symbol type.
6554 if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
6555 $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
6558 config_vars="$config_vars
6559 have-ifunc = $libc_cv_ld_gnu_indirect_function"
6561 if test x"$libc_cv_gcc_indirect_function" = xyes; then
6562 $as_echo "#define HAVE_GCC_IFUNC 1" >>confdefs.h
6565 config_vars="$config_vars
6566 have-gcc-ifunc = $libc_cv_gcc_indirect_function"
6568 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
6569 # configure fragment can override the value to prevent this AC_DEFINE.
6571 if test "x$use_nscd" != xno; then
6572 $as_echo "#define USE_NSCD 1" >>confdefs.h
6575 if test "x$build_nscd" = xdefault; then
6576 build_nscd=$use_nscd
6586 if test x$use_ldconfig = xyes; then
6587 $as_echo "#define USE_LDCONFIG 1" >>confdefs.h
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
6597 $as_echo_n "checking whether -fPIC is default... " >&6; }
6598 if ${libc_cv_pic_default+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 libc_cv_pic_default=yes
6602 cat > conftest.c <<EOF
6603 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6604 # error PIC is default.
6605 #endif
6607 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6608 libc_cv_pic_default=no
6610 rm -f conftest.*
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
6613 $as_echo "$libc_cv_pic_default" >&6; }
6614 config_vars="$config_vars
6615 build-pic-default = $libc_cv_pic_default"
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
6618 $as_echo_n "checking whether -fPIE is default... " >&6; }
6619 if ${libc_cv_cc_pie_default+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 libc_cv_cc_pie_default=yes
6623 cat > conftest.c <<EOF
6624 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
6625 # error PIE is default.
6626 #endif
6628 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6629 libc_cv_cc_pie_default=no
6631 rm -f conftest.*
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
6634 $as_echo "$libc_cv_cc_pie_default" >&6; }
6635 config_vars="$config_vars
6636 cc-pie-default = $libc_cv_cc_pie_default"
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
6639 $as_echo_n "checking if we can build programs as PIE... " >&6; }
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642 #ifdef PIE_UNSUPPORTED
6643 # error PIE is not supported
6644 #endif
6645 _ACEOF
6646 if ac_fn_c_try_compile "$LINENO"; then :
6647 libc_cv_pie_supported=yes
6648 else
6649 libc_cv_pie_supported=no
6651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
6653 $as_echo "$libc_cv_pie_supported" >&6; }
6654 # Disable build-pie-default if target does not support it or glibc is
6655 # configured with --disable-default-pie.
6656 if test "x$default_pie" = xno; then
6657 build_pie_default=no
6658 else
6659 build_pie_default=$libc_cv_pie_supported
6661 config_vars="$config_vars
6662 build-pie-default = $build_pie_default"
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
6665 $as_echo_n "checking if we can build static PIE programs... " >&6; }
6666 libc_cv_static_pie_supported=$libc_cv_pie_supported
6667 if test "x$libc_cv_pie_supported" != xno \
6668 -a "$libc_cv_no_dynamic_linker" = yes; then
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 #ifndef SUPPORT_STATIC_PIE
6672 # error static PIE is not supported
6673 #endif
6674 _ACEOF
6675 if ac_fn_c_try_compile "$LINENO"; then :
6676 libc_cv_static_pie_supported=yes
6677 else
6678 libc_cv_static_pie_supported=no
6680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
6683 $as_echo "$libc_cv_static_pie_supported" >&6; }
6685 # Enable static-pie only if it is available and glibc isn't configured
6686 # with --disable-default-pie.
6687 if test "x$default_pie" = xno; then
6688 libc_cv_static_pie=no
6689 else
6690 libc_cv_static_pie=$libc_cv_static_pie_supported
6692 if test "$libc_cv_static_pie" = "yes"; then
6693 $as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h
6696 config_vars="$config_vars
6697 enable-static-pie = $libc_cv_static_pie"
6699 # Set the `multidir' variable by grabbing the variable from the compiler.
6700 # We do it once and save the result in a generated makefile.
6701 libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
6711 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6712 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6716 if test "$pthread_in_libc" = yes; then
6717 $as_echo "#define PTHREAD_IN_LIBC 1" >>confdefs.h
6722 ac_config_files="$ac_config_files config.make Makefile"
6724 ac_config_commands="$ac_config_commands default"
6726 cat >confcache <<\_ACEOF
6727 # This file is a shell script that caches the results of configure
6728 # tests run on this system so they can be shared between configure
6729 # scripts and configure runs, see configure's option --config-cache.
6730 # It is not useful on other systems. If it contains results you don't
6731 # want to keep, you may remove or edit it.
6733 # config.status only pays attention to the cache file if you give it
6734 # the --recheck option to rerun configure.
6736 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6738 # following values.
6740 _ACEOF
6742 # The following way of writing the cache mishandles newlines in values,
6743 # but we know of no workaround that is simple, portable, and efficient.
6744 # So, we kill variables containing newlines.
6745 # Ultrix sh set writes to stderr and can't be redirected directly,
6746 # and sets the high bit in the cache file unless we assign to the vars.
6748 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6749 eval ac_val=\$$ac_var
6750 case $ac_val in #(
6751 *${as_nl}*)
6752 case $ac_var in #(
6753 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6754 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6755 esac
6756 case $ac_var in #(
6757 _ | IFS | as_nl) ;; #(
6758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6759 *) { eval $ac_var=; unset $ac_var;} ;;
6760 esac ;;
6761 esac
6762 done
6764 (set) 2>&1 |
6765 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6766 *${as_nl}ac_space=\ *)
6767 # `set' does not quote correctly, so add quotes: double-quote
6768 # substitution turns \\\\ into \\, and sed turns \\ into \.
6769 sed -n \
6770 "s/'/'\\\\''/g;
6771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6772 ;; #(
6774 # `set' quotes correctly as required by POSIX, so do not add quotes.
6775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6777 esac |
6778 sort
6780 sed '
6781 /^ac_cv_env_/b end
6782 t clear
6783 :clear
6784 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6785 t end
6786 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6787 :end' >>confcache
6788 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6789 if test -w "$cache_file"; then
6790 if test "x$cache_file" != "x/dev/null"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6792 $as_echo "$as_me: updating cache $cache_file" >&6;}
6793 if test ! -f "$cache_file" || test -h "$cache_file"; then
6794 cat confcache >"$cache_file"
6795 else
6796 case $cache_file in #(
6797 */* | ?:*)
6798 mv -f confcache "$cache_file"$$ &&
6799 mv -f "$cache_file"$$ "$cache_file" ;; #(
6801 mv -f confcache "$cache_file" ;;
6802 esac
6805 else
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6807 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6810 rm -f confcache
6812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6813 # Let make expand exec_prefix.
6814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6816 DEFS=-DHAVE_CONFIG_H
6818 ac_libobjs=
6819 ac_ltlibobjs=
6821 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6822 # 1. Remove the extension, and $U if already installed.
6823 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6824 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6825 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6826 # will be set to the directory where LIBOBJS objects are built.
6827 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6828 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6829 done
6830 LIBOBJS=$ac_libobjs
6832 LTLIBOBJS=$ac_ltlibobjs
6836 : "${CONFIG_STATUS=./config.status}"
6837 ac_write_fail=0
6838 ac_clean_files_save=$ac_clean_files
6839 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6841 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6842 as_write_fail=0
6843 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6844 #! $SHELL
6845 # Generated by $as_me.
6846 # Run this file to recreate the current configuration.
6847 # Compiler output produced by configure, useful for debugging
6848 # configure, is in config.log if it exists.
6850 debug=false
6851 ac_cs_recheck=false
6852 ac_cs_silent=false
6854 SHELL=\${CONFIG_SHELL-$SHELL}
6855 export SHELL
6856 _ASEOF
6857 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6858 ## -------------------- ##
6859 ## M4sh Initialization. ##
6860 ## -------------------- ##
6862 # Be more Bourne compatible
6863 DUALCASE=1; export DUALCASE # for MKS sh
6864 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6865 emulate sh
6866 NULLCMD=:
6867 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6868 # is contrary to our usage. Disable this feature.
6869 alias -g '${1+"$@"}'='"$@"'
6870 setopt NO_GLOB_SUBST
6871 else
6872 case `(set -o) 2>/dev/null` in #(
6873 *posix*) :
6874 set -o posix ;; #(
6875 *) :
6877 esac
6881 as_nl='
6883 export as_nl
6884 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6885 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6886 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6887 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6888 # Prefer a ksh shell builtin over an external printf program on Solaris,
6889 # but without wasting forks for bash or zsh.
6890 if test -z "$BASH_VERSION$ZSH_VERSION" \
6891 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6892 as_echo='print -r --'
6893 as_echo_n='print -rn --'
6894 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6895 as_echo='printf %s\n'
6896 as_echo_n='printf %s'
6897 else
6898 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6899 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6900 as_echo_n='/usr/ucb/echo -n'
6901 else
6902 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6903 as_echo_n_body='eval
6904 arg=$1;
6905 case $arg in #(
6906 *"$as_nl"*)
6907 expr "X$arg" : "X\\(.*\\)$as_nl";
6908 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6909 esac;
6910 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6912 export as_echo_n_body
6913 as_echo_n='sh -c $as_echo_n_body as_echo'
6915 export as_echo_body
6916 as_echo='sh -c $as_echo_body as_echo'
6919 # The user is always right.
6920 if test "${PATH_SEPARATOR+set}" != set; then
6921 PATH_SEPARATOR=:
6922 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6923 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6924 PATH_SEPARATOR=';'
6929 # IFS
6930 # We need space, tab and new line, in precisely that order. Quoting is
6931 # there to prevent editors from complaining about space-tab.
6932 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6933 # splitting by setting IFS to empty value.)
6934 IFS=" "" $as_nl"
6936 # Find who we are. Look in the path if we contain no directory separator.
6937 as_myself=
6938 case $0 in #((
6939 *[\\/]* ) as_myself=$0 ;;
6940 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6946 done
6947 IFS=$as_save_IFS
6950 esac
6951 # We did not find ourselves, most probably we were run as `sh COMMAND'
6952 # in which case we are not to be found in the path.
6953 if test "x$as_myself" = x; then
6954 as_myself=$0
6956 if test ! -f "$as_myself"; then
6957 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6958 exit 1
6961 # Unset variables that we do not need and which cause bugs (e.g. in
6962 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6963 # suppresses any "Segmentation fault" message there. '((' could
6964 # trigger a bug in pdksh 5.2.14.
6965 for as_var in BASH_ENV ENV MAIL MAILPATH
6966 do eval test x\${$as_var+set} = xset \
6967 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6968 done
6969 PS1='$ '
6970 PS2='> '
6971 PS4='+ '
6973 # NLS nuisances.
6974 LC_ALL=C
6975 export LC_ALL
6976 LANGUAGE=C
6977 export LANGUAGE
6979 # CDPATH.
6980 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6983 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6984 # ----------------------------------------
6985 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6986 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6987 # script with STATUS, using 1 if that was 0.
6988 as_fn_error ()
6990 as_status=$1; test $as_status -eq 0 && as_status=1
6991 if test "$4"; then
6992 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6993 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6995 $as_echo "$as_me: error: $2" >&2
6996 as_fn_exit $as_status
6997 } # as_fn_error
7000 # as_fn_set_status STATUS
7001 # -----------------------
7002 # Set $? to STATUS, without forking.
7003 as_fn_set_status ()
7005 return $1
7006 } # as_fn_set_status
7008 # as_fn_exit STATUS
7009 # -----------------
7010 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7011 as_fn_exit ()
7013 set +e
7014 as_fn_set_status $1
7015 exit $1
7016 } # as_fn_exit
7018 # as_fn_unset VAR
7019 # ---------------
7020 # Portably unset VAR.
7021 as_fn_unset ()
7023 { eval $1=; unset $1;}
7025 as_unset=as_fn_unset
7026 # as_fn_append VAR VALUE
7027 # ----------------------
7028 # Append the text in VALUE to the end of the definition contained in VAR. Take
7029 # advantage of any shell optimizations that allow amortized linear growth over
7030 # repeated appends, instead of the typical quadratic growth present in naive
7031 # implementations.
7032 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7033 eval 'as_fn_append ()
7035 eval $1+=\$2
7037 else
7038 as_fn_append ()
7040 eval $1=\$$1\$2
7042 fi # as_fn_append
7044 # as_fn_arith ARG...
7045 # ------------------
7046 # Perform arithmetic evaluation on the ARGs, and store the result in the
7047 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7048 # must be portable across $(()) and expr.
7049 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7050 eval 'as_fn_arith ()
7052 as_val=$(( $* ))
7054 else
7055 as_fn_arith ()
7057 as_val=`expr "$@" || test $? -eq 1`
7059 fi # as_fn_arith
7062 if expr a : '\(a\)' >/dev/null 2>&1 &&
7063 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7064 as_expr=expr
7065 else
7066 as_expr=false
7069 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7070 as_basename=basename
7071 else
7072 as_basename=false
7075 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7076 as_dirname=dirname
7077 else
7078 as_dirname=false
7081 as_me=`$as_basename -- "$0" ||
7082 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7083 X"$0" : 'X\(//\)$' \| \
7084 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7085 $as_echo X/"$0" |
7086 sed '/^.*\/\([^/][^/]*\)\/*$/{
7087 s//\1/
7090 /^X\/\(\/\/\)$/{
7091 s//\1/
7094 /^X\/\(\/\).*/{
7095 s//\1/
7098 s/.*/./; q'`
7100 # Avoid depending upon Character Ranges.
7101 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7102 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7103 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7104 as_cr_digits='0123456789'
7105 as_cr_alnum=$as_cr_Letters$as_cr_digits
7107 ECHO_C= ECHO_N= ECHO_T=
7108 case `echo -n x` in #(((((
7109 -n*)
7110 case `echo 'xy\c'` in
7111 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7112 xy) ECHO_C='\c';;
7113 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7114 ECHO_T=' ';;
7115 esac;;
7117 ECHO_N='-n';;
7118 esac
7120 rm -f conf$$ conf$$.exe conf$$.file
7121 if test -d conf$$.dir; then
7122 rm -f conf$$.dir/conf$$.file
7123 else
7124 rm -f conf$$.dir
7125 mkdir conf$$.dir 2>/dev/null
7127 if (echo >conf$$.file) 2>/dev/null; then
7128 if ln -s conf$$.file conf$$ 2>/dev/null; then
7129 as_ln_s='ln -s'
7130 # ... but there are two gotchas:
7131 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7132 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7133 # In both cases, we have to default to `cp -pR'.
7134 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7135 as_ln_s='cp -pR'
7136 elif ln conf$$.file conf$$ 2>/dev/null; then
7137 as_ln_s=ln
7138 else
7139 as_ln_s='cp -pR'
7141 else
7142 as_ln_s='cp -pR'
7144 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7145 rmdir conf$$.dir 2>/dev/null
7148 # as_fn_mkdir_p
7149 # -------------
7150 # Create "$as_dir" as a directory, including parents if necessary.
7151 as_fn_mkdir_p ()
7154 case $as_dir in #(
7155 -*) as_dir=./$as_dir;;
7156 esac
7157 test -d "$as_dir" || eval $as_mkdir_p || {
7158 as_dirs=
7159 while :; do
7160 case $as_dir in #(
7161 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7162 *) as_qdir=$as_dir;;
7163 esac
7164 as_dirs="'$as_qdir' $as_dirs"
7165 as_dir=`$as_dirname -- "$as_dir" ||
7166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7167 X"$as_dir" : 'X\(//\)[^/]' \| \
7168 X"$as_dir" : 'X\(//\)$' \| \
7169 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7170 $as_echo X"$as_dir" |
7171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7172 s//\1/
7175 /^X\(\/\/\)[^/].*/{
7176 s//\1/
7179 /^X\(\/\/\)$/{
7180 s//\1/
7183 /^X\(\/\).*/{
7184 s//\1/
7187 s/.*/./; q'`
7188 test -d "$as_dir" && break
7189 done
7190 test -z "$as_dirs" || eval "mkdir $as_dirs"
7191 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7194 } # as_fn_mkdir_p
7195 if mkdir -p . 2>/dev/null; then
7196 as_mkdir_p='mkdir -p "$as_dir"'
7197 else
7198 test -d ./-p && rmdir ./-p
7199 as_mkdir_p=false
7203 # as_fn_executable_p FILE
7204 # -----------------------
7205 # Test if FILE is an executable regular file.
7206 as_fn_executable_p ()
7208 test -f "$1" && test -x "$1"
7209 } # as_fn_executable_p
7210 as_test_x='test -x'
7211 as_executable_p=as_fn_executable_p
7213 # Sed expression to map a string onto a valid CPP name.
7214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7216 # Sed expression to map a string onto a valid variable name.
7217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7220 exec 6>&1
7221 ## ----------------------------------- ##
7222 ## Main body of $CONFIG_STATUS script. ##
7223 ## ----------------------------------- ##
7224 _ASEOF
7225 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7228 # Save the log message, to keep $0 and so on meaningful, and to
7229 # report actual input values of CONFIG_FILES etc. instead of their
7230 # values after options handling.
7231 ac_log="
7232 This file was extended by GNU C Library $as_me (see version.h), which was
7233 generated by GNU Autoconf 2.69. Invocation command line was
7235 CONFIG_FILES = $CONFIG_FILES
7236 CONFIG_HEADERS = $CONFIG_HEADERS
7237 CONFIG_LINKS = $CONFIG_LINKS
7238 CONFIG_COMMANDS = $CONFIG_COMMANDS
7239 $ $0 $@
7241 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7244 _ACEOF
7246 case $ac_config_files in *"
7247 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7248 esac
7250 case $ac_config_headers in *"
7251 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7252 esac
7255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7256 # Files that config.status was made for.
7257 config_files="$ac_config_files"
7258 config_headers="$ac_config_headers"
7259 config_commands="$ac_config_commands"
7261 _ACEOF
7263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7264 ac_cs_usage="\
7265 \`$as_me' instantiates files and other configuration actions
7266 from templates according to the current configuration. Unless the files
7267 and actions are specified as TAGs, all are instantiated by default.
7269 Usage: $0 [OPTION]... [TAG]...
7271 -h, --help print this help, then exit
7272 -V, --version print version number and configuration settings, then exit
7273 --config print configuration, then exit
7274 -q, --quiet, --silent
7275 do not print progress messages
7276 -d, --debug don't remove temporary files
7277 --recheck update $as_me by reconfiguring in the same conditions
7278 --file=FILE[:TEMPLATE]
7279 instantiate the configuration file FILE
7280 --header=FILE[:TEMPLATE]
7281 instantiate the configuration header FILE
7283 Configuration files:
7284 $config_files
7286 Configuration headers:
7287 $config_headers
7289 Configuration commands:
7290 $config_commands
7292 Report bugs to <https://sourceware.org/bugzilla/>.
7293 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
7294 General help using GNU software: <http://www.gnu.org/gethelp/>."
7296 _ACEOF
7297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7298 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7299 ac_cs_version="\\
7300 GNU C Library config.status (see version.h)
7301 configured by $0, generated by GNU Autoconf 2.69,
7302 with options \\"\$ac_cs_config\\"
7304 Copyright (C) 2012 Free Software Foundation, Inc.
7305 This config.status script is free software; the Free Software Foundation
7306 gives unlimited permission to copy, distribute and modify it."
7308 ac_pwd='$ac_pwd'
7309 srcdir='$srcdir'
7310 INSTALL='$INSTALL'
7311 test -n "\$AWK" || AWK=awk
7312 _ACEOF
7314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7315 # The default lists apply if the user does not specify any file.
7316 ac_need_defaults=:
7317 while test $# != 0
7319 case $1 in
7320 --*=?*)
7321 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7322 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7323 ac_shift=:
7325 --*=)
7326 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7327 ac_optarg=
7328 ac_shift=:
7331 ac_option=$1
7332 ac_optarg=$2
7333 ac_shift=shift
7335 esac
7337 case $ac_option in
7338 # Handling of the options.
7339 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7340 ac_cs_recheck=: ;;
7341 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7342 $as_echo "$ac_cs_version"; exit ;;
7343 --config | --confi | --conf | --con | --co | --c )
7344 $as_echo "$ac_cs_config"; exit ;;
7345 --debug | --debu | --deb | --de | --d | -d )
7346 debug=: ;;
7347 --file | --fil | --fi | --f )
7348 $ac_shift
7349 case $ac_optarg in
7350 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7351 '') as_fn_error $? "missing file argument" ;;
7352 esac
7353 as_fn_append CONFIG_FILES " '$ac_optarg'"
7354 ac_need_defaults=false;;
7355 --header | --heade | --head | --hea )
7356 $ac_shift
7357 case $ac_optarg in
7358 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7359 esac
7360 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7361 ac_need_defaults=false;;
7362 --he | --h)
7363 # Conflict between --help and --header
7364 as_fn_error $? "ambiguous option: \`$1'
7365 Try \`$0 --help' for more information.";;
7366 --help | --hel | -h )
7367 $as_echo "$ac_cs_usage"; exit ;;
7368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7369 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7370 ac_cs_silent=: ;;
7372 # This is an error.
7373 -*) as_fn_error $? "unrecognized option: \`$1'
7374 Try \`$0 --help' for more information." ;;
7376 *) as_fn_append ac_config_targets " $1"
7377 ac_need_defaults=false ;;
7379 esac
7380 shift
7381 done
7383 ac_configure_extra_args=
7385 if $ac_cs_silent; then
7386 exec 6>/dev/null
7387 ac_configure_extra_args="$ac_configure_extra_args --silent"
7390 _ACEOF
7391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7392 if \$ac_cs_recheck; then
7393 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7394 shift
7395 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7396 CONFIG_SHELL='$SHELL'
7397 export CONFIG_SHELL
7398 exec "\$@"
7401 _ACEOF
7402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7403 exec 5>>config.log
7405 echo
7406 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7407 ## Running $as_me. ##
7408 _ASBOX
7409 $as_echo "$ac_log"
7410 } >&5
7412 _ACEOF
7413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7415 # INIT-COMMANDS
7417 config_vars='$config_vars'
7419 _ACEOF
7421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7423 # Handling of arguments.
7424 for ac_config_target in $ac_config_targets
7426 case $ac_config_target in
7427 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7428 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
7429 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7430 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7432 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7433 esac
7434 done
7437 # If the user did not use the arguments to specify the items to instantiate,
7438 # then the envvar interface is used. Set only those that are not.
7439 # We use the long form for the default assignment because of an extremely
7440 # bizarre bug on SunOS 4.1.3.
7441 if $ac_need_defaults; then
7442 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7443 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7444 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7447 # Have a temporary directory for convenience. Make it in the build tree
7448 # simply because there is no reason against having it here, and in addition,
7449 # creating and moving files from /tmp can sometimes cause problems.
7450 # Hook for its removal unless debugging.
7451 # Note that there is a small window in which the directory will not be cleaned:
7452 # after its creation but before its name has been assigned to `$tmp'.
7453 $debug ||
7455 tmp= ac_tmp=
7456 trap 'exit_status=$?
7457 : "${ac_tmp:=$tmp}"
7458 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7460 trap 'as_fn_exit 1' 1 2 13 15
7462 # Create a (secure) tmp directory for tmp files.
7465 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7466 test -d "$tmp"
7467 } ||
7469 tmp=./conf$$-$RANDOM
7470 (umask 077 && mkdir "$tmp")
7471 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7472 ac_tmp=$tmp
7474 # Set up the scripts for CONFIG_FILES section.
7475 # No need to generate them if there are no CONFIG_FILES.
7476 # This happens for instance with `./config.status config.h'.
7477 if test -n "$CONFIG_FILES"; then
7480 ac_cr=`echo X | tr X '\015'`
7481 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7482 # But we know of no other shell where ac_cr would be empty at this
7483 # point, so we can use a bashism as a fallback.
7484 if test "x$ac_cr" = x; then
7485 eval ac_cr=\$\'\\r\'
7487 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7488 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7489 ac_cs_awk_cr='\\r'
7490 else
7491 ac_cs_awk_cr=$ac_cr
7494 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7495 _ACEOF
7499 echo "cat >conf$$subs.awk <<_ACEOF" &&
7500 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7501 echo "_ACEOF"
7502 } >conf$$subs.sh ||
7503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7504 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7505 ac_delim='%!_!# '
7506 for ac_last_try in false false false false false :; do
7507 . ./conf$$subs.sh ||
7508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7510 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7511 if test $ac_delim_n = $ac_delim_num; then
7512 break
7513 elif $ac_last_try; then
7514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7515 else
7516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7518 done
7519 rm -f conf$$subs.sh
7521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7522 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7523 _ACEOF
7524 sed -n '
7526 s/^/S["/; s/!.*/"]=/
7529 s/^[^!]*!//
7530 :repl
7531 t repl
7532 s/'"$ac_delim"'$//
7533 t delim
7536 s/\(.\{148\}\)..*/\1/
7537 t more1
7538 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7541 b repl
7542 :more1
7543 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7546 s/.\{148\}//
7547 t nl
7548 :delim
7550 s/\(.\{148\}\)..*/\1/
7551 t more2
7552 s/["\\]/\\&/g; s/^/"/; s/$/"/
7555 :more2
7556 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7559 s/.\{148\}//
7560 t delim
7561 ' <conf$$subs.awk | sed '
7562 /^[^""]/{
7564 s/\n//
7566 ' >>$CONFIG_STATUS || ac_write_fail=1
7567 rm -f conf$$subs.awk
7568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7569 _ACAWK
7570 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7571 for (key in S) S_is_set[key] = 1
7572 FS = "\a"
7576 line = $ 0
7577 nfields = split(line, field, "@")
7578 substed = 0
7579 len = length(field[1])
7580 for (i = 2; i < nfields; i++) {
7581 key = field[i]
7582 keylen = length(key)
7583 if (S_is_set[key]) {
7584 value = S[key]
7585 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7586 len += length(value) + length(field[++i])
7587 substed = 1
7588 } else
7589 len += 1 + keylen
7592 print line
7595 _ACAWK
7596 _ACEOF
7597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7598 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7599 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7600 else
7602 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7603 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7604 _ACEOF
7606 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7607 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7608 # trailing colons and then remove the whole line if VPATH becomes empty
7609 # (actually we leave an empty line to preserve line numbers).
7610 if test "x$srcdir" = x.; then
7611 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7613 s///
7614 s/^/:/
7615 s/[ ]*$/:/
7616 s/:\$(srcdir):/:/g
7617 s/:\${srcdir}:/:/g
7618 s/:@srcdir@:/:/g
7619 s/^:*//
7620 s/:*$//
7622 s/\(=[ ]*\).*/\1/
7624 s/\n//
7625 s/^[^=]*=[ ]*$//
7629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7630 fi # test -n "$CONFIG_FILES"
7632 # Set up the scripts for CONFIG_HEADERS section.
7633 # No need to generate them if there are no CONFIG_HEADERS.
7634 # This happens for instance with `./config.status Makefile'.
7635 if test -n "$CONFIG_HEADERS"; then
7636 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7637 BEGIN {
7638 _ACEOF
7640 # Transform confdefs.h into an awk script `defines.awk', embedded as
7641 # here-document in config.status, that substitutes the proper values into
7642 # config.h.in to produce config.h.
7644 # Create a delimiter string that does not exist in confdefs.h, to ease
7645 # handling of long lines.
7646 ac_delim='%!_!# '
7647 for ac_last_try in false false :; do
7648 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7649 if test -z "$ac_tt"; then
7650 break
7651 elif $ac_last_try; then
7652 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7653 else
7654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7656 done
7658 # For the awk script, D is an array of macro values keyed by name,
7659 # likewise P contains macro parameters if any. Preserve backslash
7660 # newline sequences.
7662 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7663 sed -n '
7664 s/.\{148\}/&'"$ac_delim"'/g
7665 t rset
7666 :rset
7667 s/^[ ]*#[ ]*define[ ][ ]*/ /
7668 t def
7670 :def
7671 s/\\$//
7672 t bsnl
7673 s/["\\]/\\&/g
7674 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7675 D["\1"]=" \3"/p
7676 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7678 :bsnl
7679 s/["\\]/\\&/g
7680 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7681 D["\1"]=" \3\\\\\\n"\\/p
7682 t cont
7683 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7684 t cont
7686 :cont
7688 s/.\{148\}/&'"$ac_delim"'/g
7689 t clear
7690 :clear
7691 s/\\$//
7692 t bsnlc
7693 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7695 :bsnlc
7696 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7697 b cont
7698 ' <confdefs.h | sed '
7699 s/'"$ac_delim"'/"\\\
7700 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7703 for (key in D) D_is_set[key] = 1
7704 FS = "\a"
7706 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7707 line = \$ 0
7708 split(line, arg, " ")
7709 if (arg[1] == "#") {
7710 defundef = arg[2]
7711 mac1 = arg[3]
7712 } else {
7713 defundef = substr(arg[1], 2)
7714 mac1 = arg[2]
7716 split(mac1, mac2, "(") #)
7717 macro = mac2[1]
7718 prefix = substr(line, 1, index(line, defundef) - 1)
7719 if (D_is_set[macro]) {
7720 # Preserve the white space surrounding the "#".
7721 print prefix "define", macro P[macro] D[macro]
7722 next
7723 } else {
7724 # Replace #undef with comments. This is necessary, for example,
7725 # in the case of _POSIX_SOURCE, which is predefined and required
7726 # on some systems where configure will not decide to define it.
7727 if (defundef == "undef") {
7728 print "/*", prefix defundef, macro, "*/"
7729 next
7733 { print }
7734 _ACAWK
7735 _ACEOF
7736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7737 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7738 fi # test -n "$CONFIG_HEADERS"
7741 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7742 shift
7743 for ac_tag
7745 case $ac_tag in
7746 :[FHLC]) ac_mode=$ac_tag; continue;;
7747 esac
7748 case $ac_mode$ac_tag in
7749 :[FHL]*:*);;
7750 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7751 :[FH]-) ac_tag=-:-;;
7752 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7753 esac
7754 ac_save_IFS=$IFS
7755 IFS=:
7756 set x $ac_tag
7757 IFS=$ac_save_IFS
7758 shift
7759 ac_file=$1
7760 shift
7762 case $ac_mode in
7763 :L) ac_source=$1;;
7764 :[FH])
7765 ac_file_inputs=
7766 for ac_f
7768 case $ac_f in
7769 -) ac_f="$ac_tmp/stdin";;
7770 *) # Look for the file first in the build tree, then in the source tree
7771 # (if the path is not absolute). The absolute path cannot be DOS-style,
7772 # because $ac_f cannot contain `:'.
7773 test -f "$ac_f" ||
7774 case $ac_f in
7775 [\\/$]*) false;;
7776 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7777 esac ||
7778 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7779 esac
7780 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7781 as_fn_append ac_file_inputs " '$ac_f'"
7782 done
7784 # Let's still pretend it is `configure' which instantiates (i.e., don't
7785 # use $as_me), people would be surprised to read:
7786 # /* config.h. Generated by config.status. */
7787 configure_input='Generated from '`
7788 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7789 `' by configure.'
7790 if test x"$ac_file" != x-; then
7791 configure_input="$ac_file. $configure_input"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7793 $as_echo "$as_me: creating $ac_file" >&6;}
7795 # Neutralize special characters interpreted by sed in replacement strings.
7796 case $configure_input in #(
7797 *\&* | *\|* | *\\* )
7798 ac_sed_conf_input=`$as_echo "$configure_input" |
7799 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7800 *) ac_sed_conf_input=$configure_input;;
7801 esac
7803 case $ac_tag in
7804 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7806 esac
7808 esac
7810 ac_dir=`$as_dirname -- "$ac_file" ||
7811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7812 X"$ac_file" : 'X\(//\)[^/]' \| \
7813 X"$ac_file" : 'X\(//\)$' \| \
7814 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7815 $as_echo X"$ac_file" |
7816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7817 s//\1/
7820 /^X\(\/\/\)[^/].*/{
7821 s//\1/
7824 /^X\(\/\/\)$/{
7825 s//\1/
7828 /^X\(\/\).*/{
7829 s//\1/
7832 s/.*/./; q'`
7833 as_dir="$ac_dir"; as_fn_mkdir_p
7834 ac_builddir=.
7836 case "$ac_dir" in
7837 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7839 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7840 # A ".." for each directory in $ac_dir_suffix.
7841 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7842 case $ac_top_builddir_sub in
7843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7845 esac ;;
7846 esac
7847 ac_abs_top_builddir=$ac_pwd
7848 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7849 # for backward compatibility:
7850 ac_top_builddir=$ac_top_build_prefix
7852 case $srcdir in
7853 .) # We are building in place.
7854 ac_srcdir=.
7855 ac_top_srcdir=$ac_top_builddir_sub
7856 ac_abs_top_srcdir=$ac_pwd ;;
7857 [\\/]* | ?:[\\/]* ) # Absolute name.
7858 ac_srcdir=$srcdir$ac_dir_suffix;
7859 ac_top_srcdir=$srcdir
7860 ac_abs_top_srcdir=$srcdir ;;
7861 *) # Relative name.
7862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7863 ac_top_srcdir=$ac_top_build_prefix$srcdir
7864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7865 esac
7866 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7869 case $ac_mode in
7872 # CONFIG_FILE
7875 case $INSTALL in
7876 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7877 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7878 esac
7879 _ACEOF
7881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7882 # If the template does not know about datarootdir, expand it.
7883 # FIXME: This hack should be removed a few years after 2.60.
7884 ac_datarootdir_hack=; ac_datarootdir_seen=
7885 ac_sed_dataroot='
7886 /datarootdir/ {
7890 /@datadir@/p
7891 /@docdir@/p
7892 /@infodir@/p
7893 /@localedir@/p
7894 /@mandir@/p'
7895 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7896 *datarootdir*) ac_datarootdir_seen=yes;;
7897 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7899 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7900 _ACEOF
7901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7902 ac_datarootdir_hack='
7903 s&@datadir@&$datadir&g
7904 s&@docdir@&$docdir&g
7905 s&@infodir@&$infodir&g
7906 s&@localedir@&$localedir&g
7907 s&@mandir@&$mandir&g
7908 s&\\\${datarootdir}&$datarootdir&g' ;;
7909 esac
7910 _ACEOF
7912 # Neutralize VPATH when `$srcdir' = `.'.
7913 # Shell code in configure.ac might set extrasub.
7914 # FIXME: do we really want to maintain this feature?
7915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7916 ac_sed_extra="$ac_vpsub
7917 $extrasub
7918 _ACEOF
7919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7922 s|@configure_input@|$ac_sed_conf_input|;t t
7923 s&@top_builddir@&$ac_top_builddir_sub&;t t
7924 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7925 s&@srcdir@&$ac_srcdir&;t t
7926 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7927 s&@top_srcdir@&$ac_top_srcdir&;t t
7928 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7929 s&@builddir@&$ac_builddir&;t t
7930 s&@abs_builddir@&$ac_abs_builddir&;t t
7931 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7932 s&@INSTALL@&$ac_INSTALL&;t t
7933 $ac_datarootdir_hack
7935 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7936 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7938 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7939 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7940 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7941 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7943 which seems to be undefined. Please make sure it is defined" >&5
7944 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7945 which seems to be undefined. Please make sure it is defined" >&2;}
7947 rm -f "$ac_tmp/stdin"
7948 case $ac_file in
7949 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7950 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7951 esac \
7952 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7956 # CONFIG_HEADER
7958 if test x"$ac_file" != x-; then
7960 $as_echo "/* $configure_input */" \
7961 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7962 } >"$ac_tmp/config.h" \
7963 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7964 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7966 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7967 else
7968 rm -f "$ac_file"
7969 mv "$ac_tmp/config.h" "$ac_file" \
7970 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7972 else
7973 $as_echo "/* $configure_input */" \
7974 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7975 || as_fn_error $? "could not create -" "$LINENO" 5
7979 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7980 $as_echo "$as_me: executing $ac_file commands" >&6;}
7982 esac
7985 case $ac_file$ac_mode in
7986 "default":C)
7987 case $CONFIG_FILES in *config.make*)
7988 echo "$config_vars" >> config.make;;
7989 esac
7990 test -d bits || mkdir bits ;;
7992 esac
7993 done # for ac_tag
7996 as_fn_exit 0
7997 _ACEOF
7998 ac_clean_files=$ac_clean_files_save
8000 test $ac_write_fail = 0 ||
8001 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8004 # configure is writing to config.log, and then calls config.status.
8005 # config.status does its own redirection, appending to config.log.
8006 # Unfortunately, on DOS this fails, as config.log is still kept open
8007 # by configure, so config.status won't be able to write to it; its
8008 # output is simply discarded. So we exec the FD to /dev/null,
8009 # effectively closing config.log, so it can be properly (re)opened and
8010 # appended to by config.status. When coming back to configure, we
8011 # need to make the FD available again.
8012 if test "$no_create" != yes; then
8013 ac_cs_success=:
8014 ac_config_status_args=
8015 test "$silent" = yes &&
8016 ac_config_status_args="$ac_config_status_args --quiet"
8017 exec 5>/dev/null
8018 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8019 exec 5>>config.log
8020 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8021 # would make configure fail if this is the last instruction.
8022 $ac_cs_success || as_fn_exit 1
8026 # CONFIG_SUBDIRS section.
8028 if test "$no_recursion" != yes; then
8030 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8031 # so they do not pile up.
8032 ac_sub_configure_args=
8033 ac_prev=
8034 eval "set x $ac_configure_args"
8035 shift
8036 for ac_arg
8038 if test -n "$ac_prev"; then
8039 ac_prev=
8040 continue
8042 case $ac_arg in
8043 -cache-file | --cache-file | --cache-fil | --cache-fi \
8044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8045 ac_prev=cache_file ;;
8046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8048 | --c=*)
8050 --config-cache | -C)
8052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8053 ac_prev=srcdir ;;
8054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8057 ac_prev=prefix ;;
8058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8060 --disable-option-checking)
8063 case $ac_arg in
8064 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8065 esac
8066 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
8067 esac
8068 done
8070 # Always prepend --prefix to ensure using the same prefix
8071 # in subdir configurations.
8072 ac_arg="--prefix=$prefix"
8073 case $ac_arg in
8074 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8075 esac
8076 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8078 # Pass --silent
8079 if test "$silent" = yes; then
8080 ac_sub_configure_args="--silent $ac_sub_configure_args"
8083 # Always prepend --disable-option-checking to silence warnings, since
8084 # different subdirs can have different --enable and --with options.
8085 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8087 ac_popdir=`pwd`
8088 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8090 # Do not complain, so a configure script can configure whichever
8091 # parts of a large source tree are present.
8092 test -d "$srcdir/$ac_dir" || continue
8094 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8096 $as_echo "$ac_msg" >&6
8097 as_dir="$ac_dir"; as_fn_mkdir_p
8098 ac_builddir=.
8100 case "$ac_dir" in
8101 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8103 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8104 # A ".." for each directory in $ac_dir_suffix.
8105 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8106 case $ac_top_builddir_sub in
8107 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8108 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8109 esac ;;
8110 esac
8111 ac_abs_top_builddir=$ac_pwd
8112 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8113 # for backward compatibility:
8114 ac_top_builddir=$ac_top_build_prefix
8116 case $srcdir in
8117 .) # We are building in place.
8118 ac_srcdir=.
8119 ac_top_srcdir=$ac_top_builddir_sub
8120 ac_abs_top_srcdir=$ac_pwd ;;
8121 [\\/]* | ?:[\\/]* ) # Absolute name.
8122 ac_srcdir=$srcdir$ac_dir_suffix;
8123 ac_top_srcdir=$srcdir
8124 ac_abs_top_srcdir=$srcdir ;;
8125 *) # Relative name.
8126 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8127 ac_top_srcdir=$ac_top_build_prefix$srcdir
8128 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8129 esac
8130 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8133 cd "$ac_dir"
8135 # Check for guested configure; otherwise get Cygnus style configure.
8136 if test -f "$ac_srcdir/configure.gnu"; then
8137 ac_sub_configure=$ac_srcdir/configure.gnu
8138 elif test -f "$ac_srcdir/configure"; then
8139 ac_sub_configure=$ac_srcdir/configure
8140 elif test -f "$ac_srcdir/configure.in"; then
8141 # This should be Cygnus configure.
8142 ac_sub_configure=$ac_aux_dir/configure
8143 else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8145 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8146 ac_sub_configure=
8149 # The recursion is here.
8150 if test -n "$ac_sub_configure"; then
8151 # Make the cache file name correct relative to the subdirectory.
8152 case $cache_file in
8153 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8154 *) # Relative name.
8155 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8156 esac
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8159 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8160 # The eval makes quoting arguments work.
8161 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8162 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8163 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8166 cd "$ac_popdir"
8167 done
8169 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8171 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}