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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
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.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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 :
206 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
211 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
214 test -z "$as_dir" && as_dir
=.
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 :
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
239 if test "x$CONFIG_SHELL" != x
; then :
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.
247 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
249 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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."
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."
278 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
289 # Portably unset VAR.
292 { eval $1=; unset $1;}
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 # Create "$as_dir" as a directory, including parents if necessary.
321 -*) as_dir
=.
/$as_dir;;
323 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
327 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 test -d "$as_dir" && break
356 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
357 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
376 eval 'as_fn_append ()
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 :
400 as_val
=`expr "$@" || test $? -eq 1`
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.
412 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
421 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
428 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
434 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
440 as_me
=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
498 # Exit status is that of the last command.
502 ECHO_C
= ECHO_N
= ECHO_T
=
503 case `echo -n x` in #(((((
505 case `echo 'xy\c'` in
506 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
515 rm -f conf$$ conf$$.exe conf$$.
file
516 if test -d conf$$.dir
; then
517 rm -f conf$$.dir
/conf$$.
file
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
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 ||
531 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
545 test -d .
/-p && rmdir .
/-p
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
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`
570 ac_default_prefix
=/usr
/local
572 ac_config_libobj_dir
=.
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
604 libc_cv_localstatedir
606 libc_cv_complocaledir
610 libc_cv_gcc_unwind_find_fde
613 libc_cv_cxx_thread_local
616 libc_cv_fortify_source
617 enable_fortify_source
622 libc_cv_cc_loop_to_function
623 libc_cv_cc_submachine
625 libc_cv_mtls_dialect_gnu2
630 libc_cv_cc_with_libunwind
632 libc_cv_protected_data
644 libc_cv_textrel_ifunc
672 libc_cv_static_nss_crypt
680 hardcoded_path_in_tests
681 enable_timezone_tools
683 extra_nonshared_cflags
737 program_transform_name
750 enable_option_checking
759 with_nonshared_cflags
760 with_rtld_early_cflags
766 enable_timezone_tools
767 enable_hardcoded_path_in_tests
770 enable_stack_protector
773 enable_maintainer_mode
778 enable_memory_tagging
788 enable_fortify_source
791 ac_precious_vars
='build_alias
805 # Initialize some variables set by options.
807 ac_init_version
=false
808 ac_unrecognized_opts
=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
819 program_transform_name
=s
,x
,x
,
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir
='${exec_prefix}/bin'
834 sbindir
='${exec_prefix}/sbin'
835 libexecdir
='${exec_prefix}/libexec'
836 datarootdir
='${prefix}/share'
837 datadir
='${datarootdir}'
838 sysconfdir
='${prefix}/etc'
839 sharedstatedir
='${prefix}/com'
840 localstatedir
='${prefix}/var'
841 includedir
='${prefix}/include'
842 oldincludedir
='/usr/include'
843 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir
='${datarootdir}/info'
849 libdir
='${exec_prefix}/lib'
850 localedir
='${datarootdir}/locale'
851 mandir
='${datarootdir}/man'
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\
$ac_option
865 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 # Accept the important Cygnus configure options, so we can diagnose typos.
872 case $ac_dashdash$ac_option in
876 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
878 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
881 -build |
--build |
--buil |
--bui |
--bu)
882 ac_prev
=build_alias
;;
883 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
884 build_alias
=$ac_optarg ;;
886 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
887 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
888 ac_prev
=cache_file
;;
889 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
890 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
891 cache_file
=$ac_optarg ;;
894 cache_file
=config.cache
;;
896 -datadir |
--datadir |
--datadi |
--datad)
898 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
899 datadir
=$ac_optarg ;;
901 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
902 |
--dataroo |
--dataro |
--datar)
903 ac_prev
=datarootdir
;;
904 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
905 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
906 datarootdir
=$ac_optarg ;;
908 -disable-* |
--disable-*)
909 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
912 as_fn_error $?
"invalid feature name: $ac_useropt"
913 ac_useropt_orig
=$ac_useropt
914 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
919 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep
=', ';;
922 eval enable_
$ac_useropt=no
;;
924 -docdir |
--docdir |
--docdi |
--doc |
--do)
926 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
929 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
931 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
934 -enable-* |
--enable-*)
935 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
938 as_fn_error $?
"invalid feature name: $ac_useropt"
939 ac_useropt_orig
=$ac_useropt
940 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
945 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep
=', ';;
948 eval enable_
$ac_useropt=\
$ac_optarg ;;
950 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
951 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
952 |
--exec |
--exe |
--ex)
953 ac_prev
=exec_prefix
;;
954 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
955 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
956 |
--exec=* |
--exe=* |
--ex=*)
957 exec_prefix
=$ac_optarg ;;
959 -gas |
--gas |
--ga |
--g)
960 # Obsolete; use --with-gas.
963 -help |
--help |
--hel |
--he |
-h)
965 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
966 ac_init_help
=recursive
;;
967 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
968 ac_init_help
=short
;;
970 -host |
--host |
--hos |
--ho)
971 ac_prev
=host_alias
;;
972 -host=* |
--host=* |
--hos=* |
--ho=*)
973 host_alias
=$ac_optarg ;;
975 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
977 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
979 htmldir
=$ac_optarg ;;
981 -includedir |
--includedir |
--includedi |
--included |
--include \
982 |
--includ |
--inclu |
--incl |
--inc)
983 ac_prev
=includedir
;;
984 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
985 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
986 includedir
=$ac_optarg ;;
988 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
990 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
991 infodir
=$ac_optarg ;;
993 -libdir |
--libdir |
--libdi |
--libd)
995 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
998 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
999 |
--libexe |
--libex |
--libe)
1000 ac_prev
=libexecdir
;;
1001 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1002 |
--libexe=* |
--libex=* |
--libe=*)
1003 libexecdir
=$ac_optarg ;;
1005 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1006 ac_prev
=localedir
;;
1007 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1008 localedir
=$ac_optarg ;;
1010 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1011 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1012 ac_prev
=localstatedir
;;
1013 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1014 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1015 localstatedir
=$ac_optarg ;;
1017 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1019 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1020 mandir
=$ac_optarg ;;
1022 -nfp |
--nfp |
--nf)
1023 # Obsolete; use --without-fp.
1026 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1027 |
--no-cr |
--no-c |
-n)
1030 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1031 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1034 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1035 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1036 |
--oldin |
--oldi |
--old |
--ol |
--o)
1037 ac_prev
=oldincludedir
;;
1038 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1039 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1040 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1041 oldincludedir
=$ac_optarg ;;
1043 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1045 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1046 prefix
=$ac_optarg ;;
1048 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1049 |
--program-pre |
--program-pr |
--program-p)
1050 ac_prev
=program_prefix
;;
1051 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1052 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1053 program_prefix
=$ac_optarg ;;
1055 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1056 |
--program-suf |
--program-su |
--program-s)
1057 ac_prev
=program_suffix
;;
1058 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1059 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1060 program_suffix
=$ac_optarg ;;
1062 -program-transform-name |
--program-transform-name \
1063 |
--program-transform-nam |
--program-transform-na \
1064 |
--program-transform-n |
--program-transform- \
1065 |
--program-transform |
--program-transfor \
1066 |
--program-transfo |
--program-transf \
1067 |
--program-trans |
--program-tran \
1068 |
--progr-tra |
--program-tr |
--program-t)
1069 ac_prev
=program_transform_name
;;
1070 -program-transform-name=* |
--program-transform-name=* \
1071 |
--program-transform-nam=* |
--program-transform-na=* \
1072 |
--program-transform-n=* |
--program-transform-=* \
1073 |
--program-transform=* |
--program-transfor=* \
1074 |
--program-transfo=* |
--program-transf=* \
1075 |
--program-trans=* |
--program-tran=* \
1076 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1077 program_transform_name
=$ac_optarg ;;
1079 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1081 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1082 pdfdir
=$ac_optarg ;;
1084 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1086 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1089 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1090 |
-silent |
--silent |
--silen |
--sile |
--sil)
1093 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1095 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1097 sbindir
=$ac_optarg ;;
1099 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1100 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1101 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1103 ac_prev
=sharedstatedir
;;
1104 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1105 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1106 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1108 sharedstatedir
=$ac_optarg ;;
1110 -site |
--site |
--sit)
1112 -site=* |
--site=* |
--sit=*)
1115 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1117 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1118 srcdir
=$ac_optarg ;;
1120 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1121 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1122 ac_prev
=sysconfdir
;;
1123 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1124 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1125 sysconfdir
=$ac_optarg ;;
1127 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1128 ac_prev
=target_alias
;;
1129 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1130 target_alias
=$ac_optarg ;;
1132 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1135 -version |
--version |
--versio |
--versi |
--vers |
-V)
1136 ac_init_version
=: ;;
1139 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1142 as_fn_error $?
"invalid package name: $ac_useropt"
1143 ac_useropt_orig
=$ac_useropt
1144 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1149 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep
=', ';;
1152 eval with_
$ac_useropt=\
$ac_optarg ;;
1154 -without-* |
--without-*)
1155 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1158 as_fn_error $?
"invalid package name: $ac_useropt"
1159 ac_useropt_orig
=$ac_useropt
1160 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1165 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep
=', ';;
1168 eval with_
$ac_useropt=no
;;
1171 # Obsolete; use --with-x.
1174 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1175 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1176 ac_prev
=x_includes
;;
1177 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1178 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1179 x_includes
=$ac_optarg ;;
1181 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1182 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1183 ac_prev
=x_libraries
;;
1184 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1185 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1186 x_libraries
=$ac_optarg ;;
1188 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1193 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1197 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1199 eval $ac_envvar=\
$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213 if test -n "$ac_prev"; then
1214 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $?
"missing argument to $ac_option"
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1221 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 # Check all directory arguments for consistency.
1227 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1232 eval ac_val
=\$
$ac_var
1233 # Remove trailing slashes.
1236 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\
$ac_val;;
1239 # Be sure to have absolute directory names.
1241 [\\/$
]* | ?
:[\\/]* ) continue;;
1242 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1244 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1252 target
=$target_alias
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x
; then
1256 if test "x$build_alias" = x
; then
1257 cross_compiling
=maybe
1258 elif test "x$build_alias" != "x$host_alias"; then
1264 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1266 test "$silent" = yes && exec 6>/dev
/null
1269 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di
=`ls -di .` &&
1271 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $?
"working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $?
"pwd does not report name of working directory"
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted
=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir
=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1309 ac_srcdir_defaulted
=no
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1313 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1315 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1327 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 for ac_var
in $ac_precious_vars; do
1330 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1332 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1337 # Report the --help message.
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1343 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1350 Defaults for the options are specified in brackets.
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1374 For better control, use the options below.
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1401 --build=BUILD configure
for building on BUILD
[guessed
]
1402 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive
) echo "Configuration of GNU C Library (see version.h):";;
1413 --disable-option-checking ignore unrecognized
--enable/--with options
1414 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1415 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1416 --disable-sanity-checks really
do not use threads
(should not be used except
1417 in special situations
) [default
=yes]
1418 --enable-shared build shared library
[default
=yes if GNU ld
]
1419 --enable-profile build profiled library
[default
=no
]
1420 --disable-default-pie Do not build glibc programs and the testsuite as PIE
1422 --disable-timezone-tools
1423 do not
install timezone tools
[default
=install]
1424 --enable-hardcoded-path-in-tests
1425 hardcode newly built glibc path
in tests
1427 --disable-hidden-plt do not hide internal
function calls to avoid PLT
1428 --enable-bind-now disable lazy relocations
in DSOs
1429 --enable-stack-protector=[yes|no|all|strong
]
1430 Use
-fstack-protector[-all|
-strong] to detect glibc
1432 --enable-static-nss build static NSS modules
[default
=no
]
1433 --disable-force-install don
't force installation of files from this package,
1434 even if they are older than the installed files
1435 --enable-maintainer-mode
1436 enable make rules and dependencies not useful (and
1437 sometimes confusing) to the casual installer
1438 --enable-kernel=VERSION compile for compatibility with kernel not older than
1440 --enable-all-warnings enable all useful warnings gcc can issue
1441 --disable-werror do not build with -Werror
1442 --enable-multi-arch enable single DSO with optimizations for multiple
1444 --enable-memory-tagging enable memory tagging if supported by the
1445 architecture [default=no]
1446 --disable-crypt do not build nor install the passphrase hashing
1448 --enable-nss-crypt enable libcrypt to use nss
1449 --enable-systemtap enable systemtap static probe points [default=no]
1450 --disable-build-nscd disable building and installing the nscd daemon
1451 --disable-nscd library functions will not contact the nscd daemon
1452 --enable-pt_chown Enable building and installing pt_chown
1453 --enable-mathvec Enable building and installing mathvec [default
1454 depends on architecture]
1455 --enable-cet enable Intel Control-flow Enforcement Technology
1457 --disable-scv syscalls will not use scv instruction, even if the
1458 kernel supports it, powerpc only
1459 --enable-fortify-source[=1|2|3]
1460 Use -D_FORTIFY_SOURCE=[1|2|3] to control code
1461 hardening, defaults to highest possible value
1462 supported by the build compiler.
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1468 --with-bugurl=URL Direct users to URL to report a bug
1469 --with-gd=DIR find libgd include dir and library with prefix DIR
1470 --with-gd-include=DIR find libgd include files in DIR
1471 --with-gd-lib=DIR find libgd library files in DIR
1472 --with-binutils=PATH specify location of binutils (as and ld)
1473 --with-selinux if building with SELinux support
1474 --with-headers=PATH location of system headers to use (for example
1475 /usr/src/linux/include) [default=compiler default]
1476 --with-nonshared-cflags=CFLAGS
1477 build nonshared libraries with additional CFLAGS
1478 --with-rtld-early-cflags=CFLAGS
1479 build early initialization with additional CFLAGS
1480 --with-timeoutfactor=NUM
1481 specify an integer to scale the timeout
1482 --with-cpu=CPU select code for CPU variant
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 LIBS libraries to pass to the linker, e.g. -l<library>
1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1491 you have headers in a nonstandard directory <include dir>
1493 CXX C++ compiler command
1494 CXXFLAGS C++ compiler flags
1496 Use these variables to override the choices made by `configure' or to
help
1497 it to
find libraries and programs with nonstandard names
/locations.
1499 Report bugs to
<https
://sourceware.org
/bugzilla
/>.
1500 GNU C Library home page
: <https
://www.gnu.org
/software
/glibc
/>.
1501 General
help using GNU software
: <http
://www.gnu.org
/gethelp
/>.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1515 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1517 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1522 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir
=$ac_pwd
1526 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir
=$ac_top_build_prefix
1531 .
) # We are building in place.
1533 ac_top_srcdir
=$ac_top_builddir_sub
1534 ac_abs_top_srcdir
=$ac_pwd ;;
1535 [\\/]* | ?
:[\\/]* ) # Absolute name.
1536 ac_srcdir
=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir
=$srcdir
1538 ac_abs_top_srcdir
=$srcdir ;;
1540 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1564 GNU C Library configure
(see version.h
)
1565 generated by GNU Autoconf
2.69
1567 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1568 This configure
script is free software
; the Free Software Foundation
1569 gives unlimited permission to copy
, distribute and modify it.
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1578 # ac_fn_c_try_compile LINENO
1579 # --------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_compile
()
1583 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1584 rm -f conftest.
$ac_objext
1585 if { { ac_try
="$ac_compile"
1587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext; then :
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1614 } # ac_fn_c_try_compile
1616 # ac_fn_cxx_try_compile LINENO
1617 # ----------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_cxx_try_compile ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1626 *) ac_try_echo
=$ac_try;;
1628 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1632 if test -s conftest.err
; then
1633 grep -v '^ *+' conftest.err
>conftest.er1
1634 cat conftest.er1
>&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_cxx_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.
$ac_objext; then :
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.
$ac_ext >&5
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status
$ac_retval
1652 } # ac_fn_cxx_try_compile
1654 # ac_fn_cxx_try_link LINENO
1655 # -------------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_cxx_try_link
()
1659 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1660 rm -f conftest.
$ac_objext conftest
$ac_exeext
1661 if { { ac_try
="$ac_link"
1663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>conftest.err
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_cxx_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest$ac_exeext && {
1680 test "$cross_compiling" = yes ||
1681 test -x conftest$ac_exeext
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1698 } # ac_fn_cxx_try_link
1700 # ac_fn_c_try_link LINENO
1701 # -----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded.
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext conftest$ac_exeext
1707 if { { ac_try="$ac_link"
1709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1710 *) ac_try_echo
=$ac_try;;
1712 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>conftest.err
1716 if test -s conftest.err
; then
1717 grep -v '^ *+' conftest.err
>conftest.er1
1718 cat conftest.er1
>&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest
$ac_exeext && {
1726 test "$cross_compiling" = yes ||
1727 test -x conftest
$ac_exeext
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.
$ac_ext >&5
1736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1738 # interfere with the next link command; also delete a directory that is
1739 # left behind by Apple's compiler. We do this before executing the actions.
1740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status
$ac_retval
1744 } # ac_fn_c_try_link
1746 # ac_fn_c_try_cpp LINENO
1747 # ----------------------
1748 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1752 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } > conftest.i && {
1768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1782 cat >config.log <<_ACEOF
1783 This file contains any messages produced by compilers while
1784 running configure, to aid debugging if configure makes a mistake.
1786 It was created by GNU C Library $as_me (see version.h), which was
1787 generated by GNU Autoconf 2.69. Invocation command line was
1799 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1800 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1801 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1802 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1803 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1805 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1806 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1808 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1809 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1810 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1811 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1812 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1813 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1814 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822 test -z "$as_dir" && as_dir=.
1823 $as_echo "PATH: $as_dir"
1839 # Keep a trace of the command line.
1840 # Strip out --no-create and --no-recursion so they do not pile up.
1841 # Strip out --silent because we don't want to record it for future runs.
1842 # Also quote any args containing shell meta-characters.
1843 # Make two passes to allow for proper duplicate-argument suppression.
1847 ac_must_keep_next=false
1853 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1855 | -silent | --silent | --silen | --sile | --sil)
1858 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1861 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1863 as_fn_append ac_configure_args1 " '$ac_arg'"
1864 if test $ac_must_keep_next = true; then
1865 ac_must_keep_next=false # Got value, back to normal.
1868 *=* | --config-cache | -C | -disable-* | --disable-* \
1869 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1870 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1871 | -with-* | --with-* | -without-* | --without-* | --x)
1872 case "$ac_configure_args0 " in
1873 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1876 -* ) ac_must_keep_next=true ;;
1879 as_fn_append ac_configure_args " '$ac_arg'"
1884 { ac_configure_args0=; unset ac_configure_args0;}
1885 { ac_configure_args1=; unset ac_configure_args1;}
1887 # When interrupted or exit'd, cleanup temporary files, and complete
1888 # config.log. We remove comments because anyway the quotes in there
1889 # would cause problems or look ugly.
1890 # WARNING: Use '\'' to represent an apostrophe within the trap.
1891 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1892 trap 'exit_status=$?
1893 # Save into config.log some information that might help in debugging.
1897 $as_echo "## ---------------- ##
1898 ## Cache variables. ##
1899 ## ---------------- ##"
1901 # The following way of writing the cache mishandles newlines in values,
1903 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1904 eval ac_val=\$$ac_var
1908 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1909 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1912 _ | IFS | as_nl) ;; #(
1913 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1914 *) { eval $ac_var=; unset $ac_var;} ;;
1919 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1920 *${as_nl}ac_space=\ *)
1922 "s/'\''/'\''\\\\'\'''\''/g;
1923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1926 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1933 $as_echo "## ----------------- ##
1934 ## Output variables. ##
1935 ## ----------------- ##"
1937 for ac_var in $ac_subst_vars
1939 eval ac_val=\$$ac_var
1941 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1943 $as_echo "$ac_var='\''$ac_val'\''"
1947 if test -n "$ac_subst_files"; then
1948 $as_echo "## ------------------- ##
1949 ## File substitutions. ##
1950 ## ------------------- ##"
1952 for ac_var in $ac_subst_files
1954 eval ac_val=\$$ac_var
1956 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1958 $as_echo "$ac_var='\''$ac_val'\''"
1963 if test -s confdefs.h; then
1964 $as_echo "## ----------- ##
1971 test "$ac_signal" != 0 &&
1972 $as_echo "$as_me: caught signal $ac_signal"
1973 $as_echo "$as_me: exit $exit_status"
1975 rm -f core *.core core.conftest.* &&
1976 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1979 for ac_signal in 1 2 13 15; do
1980 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1984 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1985 rm -f -r conftest* confdefs.h
1987 $as_echo "/* confdefs.h */" > confdefs.h
1989 # Predefined preprocessor variables.
1991 cat >>confdefs.h <<_ACEOF
1992 #define PACKAGE_NAME "$PACKAGE_NAME"
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_STRING "$PACKAGE_STRING"
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_URL "$PACKAGE_URL"
2016 # Let the site file select an alternate cache file if it wants to.
2017 # Prefer an explicitly selected file to automatically selected ones.
2020 if test -n "$CONFIG_SITE"; then
2021 # We do not want a PATH search for config.site.
2022 case $CONFIG_SITE in #((
2023 -*) ac_site_file1=./$CONFIG_SITE;;
2024 */*) ac_site_file1=$CONFIG_SITE;;
2025 *) ac_site_file1=./$CONFIG_SITE;;
2027 elif test "x$prefix" != xNONE; then
2028 ac_site_file1=$prefix/share/config.site
2029 ac_site_file2=$prefix/etc/config.site
2031 ac_site_file1=$ac_default_prefix/share/config.site
2032 ac_site_file2=$ac_default_prefix/etc/config.site
2034 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2036 test "x$ac_site_file" = xNONE && continue
2037 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2039 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2040 sed 's/^/| /' "$ac_site_file" >&5
2042 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2044 as_fn_error $? "failed to load site
script $ac_site_file
2045 See \
`config.log' for more details" "$LINENO" 5; }
2049 if test -r "$cache_file"; then
2050 # Some versions of bash will fail to source /dev/null (special files
2051 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2052 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2054 $as_echo "$as_me: loading cache $cache_file" >&6;}
2056 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2057 *) . "./$cache_file";;
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2062 $as_echo "$as_me: creating cache $cache_file" >&6;}
2066 # Check that the precious variables saved in the cache have kept the same
2068 ac_cache_corrupted=false
2069 for ac_var in $ac_precious_vars; do
2070 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2071 eval ac_new_set=\$ac_env_${ac_var}_set
2072 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2073 eval ac_new_val=\$ac_env_${ac_var}_value
2074 case $ac_old_set,$ac_new_set in
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2077 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2078 ac_cache_corrupted=: ;;
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2081 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2082 ac_cache_corrupted=: ;;
2085 if test "x$ac_old_val" != "x$ac_new_val"; then
2086 # differences in whitespace do not lead to failure.
2087 ac_old_val_w=`echo x
$ac_old_val`
2088 ac_new_val_w=`echo x
$ac_new_val`
2089 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2091 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2092 ac_cache_corrupted=:
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2095 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2096 eval $ac_var=\$ac_old_val
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2099 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2101 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2104 # Pass precious variables to config.status.
2105 if test "$ac_new_set" = set; then
2107 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2108 *) ac_arg=$ac_var=$ac_new_val ;;
2110 case " $ac_configure_args " in
2111 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2112 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2116 if $ac_cache_corrupted; then
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2120 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2121 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2123 ## -------------------- ##
2124 ## Main body of script. ##
2125 ## -------------------- ##
2128 ac_cpp='$CPP $CPPFLAGS'
2129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2135 ac_config_headers="$ac_config_headers config.h"
2138 for ac_dir in scripts "$srcdir"/scripts; do
2139 if test -f "$ac_dir/install-sh"; then
2141 ac_install_sh="$ac_aux_dir/install-sh -c"
2143 elif test -f "$ac_dir/install.sh"; then
2145 ac_install_sh="$ac_aux_dir/install.sh -c"
2147 elif test -f "$ac_dir/shtool"; then
2149 ac_install_sh="$ac_aux_dir/shtool install -c"
2153 if test -z "$ac_aux_dir"; then
2154 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2157 # These three variables are undocumented and unsupported,
2158 # and are intended to be withdrawn in a future Autoconf release.
2159 # They can cause serious problems if a builder's source tree is in a directory
2160 # whose full name contains unusual characters.
2161 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2162 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2163 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2169 # Check whether --with-pkgversion was given.
2170 if test "${with_pkgversion+set}" = set; then :
2171 withval=$with_pkgversion; case "$withval" in
2172 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2174 *) PKGVERSION="($withval) " ;;
2177 PKGVERSION="(GNU libc) "
2181 PKGVERSION_TEXI=`echo "$PKGVERSION" |
sed 's/@/@@/g'`
2187 # Check whether --with-bugurl was given.
2188 if test "${with_bugurl+set}" = set; then :
2189 withval=$with_bugurl; case "$withval" in
2190 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2193 *) BUGURL="$withval"
2197 BUGURL="https://www.gnu.org/software/libc/bugs.html"
2207 REPORT_BUGS_TO="<$BUGURL>"
2208 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" |
sed 's/@/@@/g'`}
2215 cat >>confdefs.h <<_ACEOF
2216 #define PKGVERSION "$PKGVERSION"
2220 cat >>confdefs.h <<_ACEOF
2221 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2225 # Glibc should not depend on any header files
2228 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2229 # here to work around the Autoconf issue discussed in
2230 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2233 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2234 # issue discussed in
2235 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2243 # Make sure we can run config.sub.
2244 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2245 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2248 $as_echo_n "checking build system type... " >&6; }
2249 if ${ac_cv_build+:} false; then :
2250 $as_echo_n "(cached) " >&6
2252 ac_build_alias=$build_alias
2253 test "x$ac_build_alias" = x &&
2254 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2255 test "x$ac_build_alias" = x &&
2256 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2257 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2258 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2262 $as_echo "$ac_cv_build" >&6; }
2263 case $ac_cv_build in
2265 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2268 ac_save_IFS=$IFS; IFS='-'
2274 # Remember, the first character of IFS is used to create $*,
2275 # except with old shells:
2278 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2282 $as_echo_n "checking host system type... " >&6; }
2283 if ${ac_cv_host+:} false; then :
2284 $as_echo_n "(cached) " >&6
2286 if test "x$host_alias" = x; then
2287 ac_cv_host=$ac_cv_build
2289 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2290 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2295 $as_echo "$ac_cv_host" >&6; }
2298 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2301 ac_save_IFS=$IFS; IFS='-'
2307 # Remember, the first character of IFS is used to create $*,
2308 # except with old shells:
2311 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320 if test -n "$ac_tool_prefix"; then
2321 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2322 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2324 $as_echo_n "checking for $ac_word... " >&6; }
2325 if ${ac_cv_prog_CC+:} false; then :
2326 $as_echo_n "(cached) " >&6
2328 if test -n "$CC"; then
2329 ac_cv_prog_CC="$CC" # Let the user override the test.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 if test -n "$CC"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2351 $as_echo "$CC" >&6; }
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2354 $as_echo "no" >&6; }
2359 if test -z "$ac_cv_prog_CC"; then
2361 # Extract the first word of "gcc", so it can be a program name with args.
2362 set dummy gcc; ac_word=$2
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2364 $as_echo_n "checking for $ac_word... " >&6; }
2365 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2366 $as_echo_n "(cached) " >&6
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_ac_ct_CC="gcc"
2379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2389 if test -n "$ac_ct_CC"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2391 $as_echo "$ac_ct_CC" >&6; }
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2394 $as_echo "no" >&6; }
2397 if test "x$ac_ct_CC" = x; then
2400 case $cross_compiling:$ac_tool_warned in
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2404 ac_tool_warned=yes ;;
2412 if test -z "$CC"; then
2413 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2415 set dummy ${ac_tool_prefix}cc; ac_word=$2
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417 $as_echo_n "checking for $ac_word... " >&6; }
2418 if ${ac_cv_prog_CC+:} false; then :
2419 $as_echo_n "(cached) " >&6
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431 ac_cv_prog_CC="${ac_tool_prefix}cc"
2432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 if test -n "$CC"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2444 $as_echo "$CC" >&6; }
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447 $as_echo "no" >&6; }
2453 if test -z "$CC"; then
2454 # Extract the first word of "cc", so it can be a program name with args.
2455 set dummy cc; ac_word=$2
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if ${ac_cv_prog_CC+:} false; then :
2459 $as_echo_n "(cached) " >&6
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2472 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2473 ac_prog_rejected=yes
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 if test $ac_prog_rejected = yes; then
2485 # We found a bogon in the path, so make sure we never use it.
2486 set dummy $ac_cv_prog_CC
2488 if test $# != 0; then
2489 # We chose a different compiler from the bogus one.
2490 # However, it has the same basename, so the bogon will be chosen
2491 # first if we set CC to just the basename; use the full file name.
2493 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2499 if test -n "$CC"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2501 $as_echo "$CC" >&6; }
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504 $as_echo "no" >&6; }
2509 if test -z "$CC"; then
2510 if test -n "$ac_tool_prefix"; then
2511 for ac_prog in cl.exe
2513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_CC+:} false; then :
2518 $as_echo_n "(cached) " >&6
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 if test -n "$CC"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2543 $as_echo "$CC" >&6; }
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2550 test -n "$CC" && break
2553 if test -z "$CC"; then
2555 for ac_prog in cl.exe
2557 # Extract the first word of "$ac_prog", so it can be a program name with args.
2558 set dummy $ac_prog; ac_word=$2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 $as_echo_n "checking for $ac_word... " >&6; }
2561 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2562 $as_echo_n "(cached) " >&6
2564 if test -n "$ac_ct_CC"; then
2565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2574 ac_cv_prog_ac_ct_CC="$ac_prog"
2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2585 if test -n "$ac_ct_CC"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2587 $as_echo "$ac_ct_CC" >&6; }
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590 $as_echo "no" >&6; }
2594 test -n "$ac_ct_CC" && break
2597 if test "x$ac_ct_CC" = x; then
2600 case $cross_compiling:$ac_tool_warned in
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2604 ac_tool_warned=yes ;;
2613 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2616 See \
`config.log' for more details" "$LINENO" 5; }
2618 # Provide some information about the compiler.
2619 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2622 for ac_option in --version -v -V -qversion; do
2623 { { ac_try="$ac_compiler $ac_option >&5"
2625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2626 *) ac_try_echo
=$ac_try;;
2628 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2629 $as_echo "$ac_try_echo"; } >&5
2630 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2632 if test -s conftest.err
; then
2634 ... rest of stderr output deleted ...
2635 10q' conftest.err
>conftest.er1
2636 cat conftest.er1
>&5
2638 rm -f conftest.er1 conftest.err
2639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2640 test $ac_status = 0; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2645 $as_echo_n "checking for suffix of object files... " >&6; }
2646 if ${ac_cv_objext+:} false
; then :
2647 $as_echo_n "(cached) " >&6
2649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2660 rm -f conftest.o conftest.obj
2661 if { { ac_try
="$ac_compile"
2663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667 $as_echo "$ac_try_echo"; } >&5
2668 (eval "$ac_compile") 2>&5
2670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671 test $ac_status = 0; }; then :
2672 for ac_file in conftest.o conftest.obj conftest.*; do
2673 test -f "$ac_file" || continue;
2675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2681 $as_echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2687 See \
`config.log' for more details" "$LINENO" 5; }
2689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2692 $as_echo "$ac_cv_objext" >&6; }
2693 OBJEXT=$ac_cv_objext
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2697 if ${ac_cv_c_compiler_gnu+:} false; then :
2698 $as_echo_n "(cached) " >&6
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2714 if ac_fn_c_try_compile "$LINENO"; then :
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2725 if test $ac_compiler_gnu = yes; then
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_save_CFLAGS=$CFLAGS
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2733 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2734 if ${ac_cv_prog_cc_g+:} false; then :
2735 $as_echo_n "(cached) " >&6
2737 ac_save_c_werror_flag=$ac_c_werror_flag
2738 ac_c_werror_flag=yes
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2752 if ac_fn_c_try_compile "$LINENO"; then :
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2767 if ac_fn_c_try_compile "$LINENO"; then :
2770 ac_c_werror_flag=$ac_save_c_werror_flag
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2783 if ac_fn_c_try_compile "$LINENO"; then :
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 ac_c_werror_flag=$ac_save_c_werror_flag
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2794 $as_echo "$ac_cv_prog_cc_g" >&6; }
2795 if test "$ac_test_CFLAGS" = set; then
2796 CFLAGS=$ac_save_CFLAGS
2797 elif test $ac_cv_prog_cc_g = yes; then
2798 if test "$GCC" = yes; then
2804 if test "$GCC" = yes; then
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2817 if test $host != $build; then
2818 for ac_prog in gcc cc
2820 # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy $ac_prog; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if ${ac_cv_prog_BUILD_CC+:} false; then :
2825 $as_echo_n "(cached) " >&6
2827 if test -n "$BUILD_CC"; then
2828 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_BUILD_CC="$ac_prog"
2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 BUILD_CC=$ac_cv_prog_BUILD_CC
2848 if test -n "$BUILD_CC"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
2850 $as_echo "$BUILD_CC" >&6; }
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2857 test -n "$BUILD_CC" && break
2862 # On Suns, sometimes $CPP names a directory.
2863 if test -n "$CPP" && test -d "$CPP"; then
2866 if test -z "$CPP"; then
2871 # We need the C++ compiler only for testing.
2873 ac_cpp='$CXXCPP $CPPFLAGS'
2874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2877 if test -z "$CXX"; then
2878 if test -n "$CCC"; then
2881 if test -n "$ac_tool_prefix"; then
2882 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_CXX+:} false; then :
2889 $as_echo_n "(cached) " >&6
2891 if test -n "$CXX"; then
2892 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 if test -n "$CXX"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2914 $as_echo "$CXX" >&6; }
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2921 test -n "$CXX" && break
2924 if test -z "$CXX"; then
2926 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2928 # Extract the first word of "$ac_prog", so it can be a program name with args.
2929 set dummy $ac_prog; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2933 $as_echo_n "(cached) " >&6
2935 if test -n "$ac_ct_CXX"; then
2936 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_CXX="$ac_prog"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2956 if test -n "$ac_ct_CXX"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2958 $as_echo "$ac_ct_CXX" >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2965 test -n "$ac_ct_CXX" && break
2968 if test "x$ac_ct_CXX" = x; then
2971 case $cross_compiling:$ac_tool_warned in
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2983 # Provide some information about the compiler.
2984 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2987 for ac_option in --version -v -V -qversion; do
2988 { { ac_try="$ac_compiler $ac_option >&5"
2990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2991 *) ac_try_echo
=$ac_try;;
2993 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994 $as_echo "$ac_try_echo"; } >&5
2995 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2997 if test -s conftest.err
; then
2999 ... rest of stderr output deleted ...
3000 10q' conftest.err
>conftest.er1
3001 cat conftest.er1
>&5
3003 rm -f conftest.er1 conftest.err
3004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3009 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3010 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3011 $as_echo_n "(cached) " >&6
3013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3014 /* end confdefs.h. */
3027 if ac_fn_cxx_try_compile
"$LINENO"; then :
3032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3033 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3037 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3038 if test $ac_compiler_gnu = yes; then
3043 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3044 ac_save_CXXFLAGS
=$CXXFLAGS
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3046 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3047 if ${ac_cv_prog_cxx_g+:} false
; then :
3048 $as_echo_n "(cached) " >&6
3050 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3051 ac_cxx_werror_flag
=yes
3054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3055 /* end confdefs.h. */
3065 if ac_fn_cxx_try_compile
"$LINENO"; then :
3066 ac_cv_prog_cxx_g
=yes
3069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h. */
3080 if ac_fn_cxx_try_compile
"$LINENO"; then :
3083 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h. */
3096 if ac_fn_cxx_try_compile
"$LINENO"; then :
3097 ac_cv_prog_cxx_g
=yes
3099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3104 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3107 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3108 if test "$ac_test_CXXFLAGS" = set; then
3109 CXXFLAGS
=$ac_save_CXXFLAGS
3110 elif test $ac_cv_prog_cxx_g = yes; then
3111 if test "$GXX" = yes; then
3117 if test "$GXX" = yes; then
3124 ac_cpp
='$CPP $CPPFLAGS'
3125 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3126 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3127 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3129 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
3132 $as_echo_n "checking whether $CXX can link programs... " >&6; }
3133 if ${libc_cv_cxx_link_ok+:} false
; then :
3134 $as_echo_n "(cached) " >&6
3137 ac_cpp
='$CXXCPP $CPPFLAGS'
3138 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3142 # Default, dynamic case.
3143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3144 /* end confdefs.h. */
3154 if ac_fn_cxx_try_link
"$LINENO"; then :
3155 libc_cv_cxx_link_ok
=yes
3157 libc_cv_cxx_link_ok
=no
3159 rm -f core conftest.err conftest.
$ac_objext \
3160 conftest
$ac_exeext conftest.
$ac_ext
3162 old_LDFLAGS
="$LDFLAGS"
3163 LDFLAGS
="$LDFLAGS -static"
3164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3172 std::cout << "Hello, world!";
3177 if ac_fn_cxx_try_link
"$LINENO"; then :
3180 libc_cv_cxx_link_ok
=no
3182 rm -f core conftest.err conftest.
$ac_objext \
3183 conftest
$ac_exeext conftest.
$ac_ext
3184 LDFLAGS
="$old_LDFLAGS"
3186 ac_cpp
='$CPP $CPPFLAGS'
3187 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
3193 $as_echo "$libc_cv_cxx_link_ok" >&6; }
3194 if test $libc_cv_cxx_link_ok != yes; then :
3198 if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
3199 as_fn_error $?
"you must configure in a separate build directory" "$LINENO" 5
3202 # This will get text that should go into config.make.
3205 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3207 # Check whether --with-gd was given.
3208 if test "${with_gd+set}" = set; then :
3209 withval
=$with_gd; case "$with_gd" in
3211 *) libgd_include
="-I$withval/include"
3212 libgd_ldflags
="-L$withval/lib" ;;
3218 # Check whether --with-gd-include was given.
3219 if test "${with_gd_include+set}" = set; then :
3220 withval
=$with_gd_include; case "$with_gd_include" in
3222 *) libgd_include
="-I$withval" ;;
3228 # Check whether --with-gd-lib was given.
3229 if test "${with_gd_lib+set}" = set; then :
3230 withval
=$with_gd_lib; case "$with_gd_lib" in
3232 *) libgd_ldflags
="-L$withval" ;;
3238 if test -n "$libgd_include"; then
3239 config_vars
="$config_vars
3240 CFLAGS-memusagestat.c = $libgd_include"
3242 if test -n "$libgd_ldflags"; then
3243 config_vars
="$config_vars
3244 libgd-LDFLAGS = $libgd_ldflags"
3248 # Check whether --with-binutils was given.
3249 if test "${with_binutils+set}" = set; then :
3250 withval
=$with_binutils; path_binutils
=$withval
3256 # Check whether --with-selinux was given.
3257 if test "${with_selinux+set}" = set; then :
3258 withval
=$with_selinux; with_selinux
=$withval
3265 # Check whether --with-headers was given.
3266 if test "${with_headers+set}" = set; then :
3267 withval
=$with_headers; sysheaders
=$withval
3275 # Check whether --with-nonshared-cflags was given.
3276 if test "${with_nonshared_cflags+set}" = set; then :
3277 withval
=$with_nonshared_cflags; extra_nonshared_cflags
=$withval
3279 extra_nonshared_cflags
=
3284 # Check whether --with-rtld-early-cflags was given.
3285 if test "${with_rtld_early_cflags+set}" = set; then :
3286 withval
=$with_rtld_early_cflags; rtld_early_cflags
=$withval
3294 # Check whether --with-timeoutfactor was given.
3295 if test "${with_timeoutfactor+set}" = set; then :
3296 withval
=$with_timeoutfactor; timeoutfactor
=$withval
3301 cat >>confdefs.h
<<_ACEOF
3302 #define TIMEOUTFACTOR $timeoutfactor
3306 # Check whether --enable-sanity-checks was given.
3307 if test "${enable_sanity_checks+set}" = set; then :
3308 enableval
=$enable_sanity_checks; enable_sanity
=$enableval
3314 # Check whether --enable-shared was given.
3315 if test "${enable_shared+set}" = set; then :
3316 enableval
=$enable_shared; shared
=$enableval
3321 # Check whether --enable-profile was given.
3322 if test "${enable_profile+set}" = set; then :
3323 enableval
=$enable_profile; profile
=$enableval
3328 # Check whether --enable-default-pie was given.
3329 if test "${enable_default_pie+set}" = set; then :
3330 enableval
=$enable_default_pie; default_pie
=$enableval
3335 # Check whether --enable-timezone-tools was given.
3336 if test "${enable_timezone_tools+set}" = set; then :
3337 enableval
=$enable_timezone_tools; enable_timezone_tools
=$enableval
3339 enable_timezone_tools
=yes
3344 # Check whether --enable-hardcoded-path-in-tests was given.
3345 if test "${enable_hardcoded_path_in_tests+set}" = set; then :
3346 enableval
=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests
=$enableval
3348 hardcoded_path_in_tests
=no
3353 # Check whether --enable-hidden-plt was given.
3354 if test "${enable_hidden_plt+set}" = set; then :
3355 enableval
=$enable_hidden_plt; hidden
=$enableval
3360 if test "x$hidden" = xno
; then
3361 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3365 # Check whether --enable-bind-now was given.
3366 if test "${enable_bind_now+set}" = set; then :
3367 enableval
=$enable_bind_now; bindnow
=$enableval
3373 if test "x$bindnow" = xyes
; then
3374 $as_echo "#define BIND_NOW 1" >>confdefs.h
3378 # Check whether --enable-stack-protector was given.
3379 if test "${enable_stack_protector+set}" = set; then :
3380 enableval
=$enable_stack_protector; enable_stack_protector
=$enableval
3382 enable_stack_protector
=no
3385 case "$enable_stack_protector" in
3386 all|
yes|no|strong
) ;;
3387 *) as_fn_error $?
"Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;;
3390 # Check whether --enable-static-nss was given.
3391 if test "${enable_static_nss+set}" = set; then :
3392 enableval
=$enable_static_nss; static_nss
=$enableval
3397 if test x
"$static_nss" = xyes ||
test x
"$shared" = xno
; then
3399 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3403 # Check whether --enable-force-install was given.
3404 if test "${enable_force_install+set}" = set; then :
3405 enableval
=$enable_force_install; force_install
=$enableval
3412 # Check whether --enable-maintainer-mode was given.
3413 if test "${enable_maintainer_mode+set}" = set; then :
3414 enableval
=$enable_maintainer_mode; maintainer
=$enableval
3420 # Check whether --enable-kernel was given.
3421 if test "${enable_kernel+set}" = set; then :
3422 enableval
=$enable_kernel; minimum_kernel
=$enableval
3425 if test "$minimum_kernel" = yes ||
test "$minimum_kernel" = no
; then
3426 # Better nothing than this.
3429 if test "$minimum_kernel" = current
; then
3430 minimum_kernel
=`uname -r 2>/dev/null` || minimum_kernel
=
3434 # Check whether --enable-all-warnings was given.
3435 if test "${enable_all_warnings+set}" = set; then :
3436 enableval
=$enable_all_warnings; all_warnings
=$enableval
3441 # Check whether --enable-werror was given.
3442 if test "${enable_werror+set}" = set; then :
3443 enableval
=$enable_werror; enable_werror
=$enableval
3450 # Check whether --enable-multi-arch was given.
3451 if test "${enable_multi_arch+set}" = set; then :
3452 enableval
=$enable_multi_arch; multi_arch
=$enableval
3458 # Check whether --enable-memory-tagging was given.
3459 if test "${enable_memory_tagging+set}" = set; then :
3460 enableval
=$enable_memory_tagging; memory_tagging
=$enableval
3465 if test "$memory_tagging" = yes; then
3466 # Only enable this on architectures that support it.
3469 $as_echo "#define USE_MTAG 1" >>confdefs.h
3476 # Check whether --enable-crypt was given.
3477 if test "${enable_crypt+set}" = set; then :
3478 enableval
=$enable_crypt; build_crypt
=$enableval
3485 # Check whether --enable-nss-crypt was given.
3486 if test "${enable_nss_crypt+set}" = set; then :
3487 enableval
=$enable_nss_crypt; nss_crypt
=$enableval
3492 if test x
$build_libcrypt = xno
&& test x
$nss_crypt = xyes
; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&5
3494 $as_echo "$as_me: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&2;}
3497 if test x
$nss_crypt = xyes
; then
3498 nss_includes
=-I$
(nss-config
--includedir 2>/dev
/null
)
3499 if test $?
-ne 0; then
3500 as_fn_error $?
"cannot find include directory with nss-config" "$LINENO" 5
3502 nspr_includes
=-I$
(nspr-config
--includedir 2>/dev
/null
)
3503 if test $?
-ne 0; then
3504 as_fn_error $?
"cannot find include directory with nspr-config" "$LINENO" 5
3506 old_CFLAGS
="$CFLAGS"
3507 CFLAGS
="$CFLAGS $nss_includes $nspr_includes"
3509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3513 #include <nsslowhash.h>
3514 void f (void) { NSSLOW_Init (); }
3523 if ac_fn_c_try_compile
"$LINENO"; then :
3524 libc_cv_nss_crypt
=yes
3527 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3531 old_LDFLAGS
="$LDFLAGS"
3532 LIBS
="$LIBS -lfreebl3"
3533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3537 #include <nsslowhash.h>
3546 if ac_fn_c_try_link
"$LINENO"; then :
3547 libc_cv_nss_crypt
=yes
3550 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3552 rm -f core conftest.err conftest.
$ac_objext \
3553 conftest
$ac_exeext conftest.
$ac_ext
3554 # Check to see if there is a static NSS cryptographic library.
3555 # If there isn't then we can't link anything with libcrypt.a,
3556 # and that might mean disabling some static tests.
3557 LDFLAGS
="$LDFLAGS -static"
3558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3562 #include <nsslowhash.h>
3571 if ac_fn_c_try_link
"$LINENO"; then :
3572 libc_cv_static_nss_crypt
=yes
3574 libc_cv_static_nss_crypt
=no
3576 rm -f core conftest.err conftest.
$ac_objext \
3577 conftest
$ac_exeext conftest.
$ac_ext
3578 LDFLAGS
="$old_LDFLAGS"
3579 CFLAGS
="$old_CFLAGS"
3582 libc_cv_nss_crypt
=no
3583 libc_cv_static_nss_crypt
=no
3589 # Check whether --enable-systemtap was given.
3590 if test "${enable_systemtap+set}" = set; then :
3591 enableval
=$enable_systemtap; systemtap
=$enableval
3596 if test "x$systemtap" != xno
; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3598 $as_echo_n "checking for systemtap static probe support... " >&6; }
3599 if ${libc_cv_sdt+:} false
; then :
3600 $as_echo_n "(cached) " >&6
3602 old_CFLAGS
="$CFLAGS"
3603 CFLAGS
="-std=gnu11 $CFLAGS"
3604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 #include <sys/sdt.h>
3607 void foo (int i, void *p)
3609 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3610 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3613 if ac_fn_c_try_compile
"$LINENO"; then :
3618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3619 CFLAGS
="$old_CFLAGS"
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3622 $as_echo "$libc_cv_sdt" >&6; }
3623 if test $libc_cv_sdt = yes; then
3624 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3626 elif test "x$systemtap" != xauto
; then
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $?
"systemtap support needs sys/sdt.h with asm support
3630 See \`config.log' for more details" "$LINENO" 5; }
3634 # Check whether --enable-build-nscd was given.
3635 if test "${enable_build_nscd+set}" = set; then :
3636 enableval
=$enable_build_nscd; build_nscd
=$enableval
3643 # Note the use of $use_nscd is near the bottom of the file.
3644 # Check whether --enable-nscd was given.
3645 if test "${enable_nscd+set}" = set; then :
3646 enableval
=$enable_nscd; use_nscd
=$enableval
3652 # Check whether --enable-pt_chown was given.
3653 if test "${enable_pt_chown+set}" = set; then :
3654 enableval
=$enable_pt_chown; build_pt_chown
=$enableval
3660 if test "$build_pt_chown" = yes; then
3661 $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h
3665 # The abi-tags file uses a fairly simplistic model for name recognition that
3666 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
3667 # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
3668 # This doesn't get used much beyond that, so it's fairly safe.
3673 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3677 # Check whether --enable-mathvec was given.
3678 if test "${enable_mathvec+set}" = set; then :
3679 enableval
=$enable_mathvec; build_mathvec
=$enableval
3681 build_mathvec
=notset
3686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3694 # error no CET compiler support
3700 if ac_fn_c_try_cpp
"$LINENO"; then :
3701 libc_cv_compiler_default_cet
=yes
3703 libc_cv_compiler_default_cet
=no
3705 rm -f conftest.err conftest.i conftest.
$ac_ext
3707 # Check whether --enable-cet was given.
3708 if test "${enable_cet+set}" = set; then :
3709 enableval
=$enable_cet; enable_cet
=$enableval
3711 enable_cet
=$libc_cv_compiler_default_cet
3715 # Check whether --enable-scv was given.
3716 if test "${enable_scv+set}" = set; then :
3717 enableval
=$enable_scv; use_scv
=$enableval
3723 if test "$use_scv" != "no"; then :
3724 $as_echo "#define USE_PPC_SCV 1" >>confdefs.h
3728 # Check whether --enable-fortify-source was given.
3729 if test "${enable_fortify_source+set}" = set; then :
3730 enableval
=$enable_fortify_source; enable_fortify_source
=$enableval
3732 enable_fortify_source
=no
3735 case "$enable_fortify_source" in
3737 *) as_fn_error $?
"Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;;
3740 # We keep the original values in `$config_*' and never modify them, so we
3741 # can write them unchanged into config.make. Everything else uses
3742 # $machine, $vendor, and $os, and changes them whenever convenient.
3743 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
3745 # Don't allow vendor == "unknown"
3746 test "$config_vendor" = unknown
&& config_vendor
=
3747 config_os
="`echo $config_os | sed 's/^unknown-//'`"
3749 # Some configurations imply other options.
3752 # The configure fragment of a port can modify these to supplement
3753 # or override the table in the case statement below. No fragment should
3754 # ever change the config_* variables, however.
3755 machine
=$config_machine
3756 vendor
=$config_vendor
3762 # Check whether --with-cpu was given.
3763 if test "${with_cpu+set}" = set; then :
3764 withval
=$with_cpu; case "$withval" in
3765 yes|
'') as_fn_error $?
"--with-cpu requires an argument" "$LINENO" 5 ;;
3767 *) submachine
="$withval" ;;
3773 # An preconfigure script can set this when it wants to disable the sanity
3777 # A preconfigure script for a system that may or may not use fpu
3778 # sysdeps directories sets this to a preprocessor conditional for
3779 # whether to use such directories.
3782 if frags
=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3785 $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3786 for frag
in $frags; do
3787 name
=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3788 echo $ECHO_N "$name $ECHO_C" >&6
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3797 ### By using the undocumented --enable-hacker-mode option for configure
3798 ### one can skip this test to make the configuration not fail for unsupported
3801 if test -z "$enable_hacker_mode" && test x
"$libc_config_ok" != xyes
; then
3802 case "$machine-$host_os" in
3807 *** The GNU C library is currently unavailable for this platform.
3808 *** If you are interested in seeing glibc on this platform visit
3809 *** the \"How to submit a new port\" in the wiki:
3810 *** https://sourceware.org/glibc/wiki/#Development
3811 *** and join the community!" "$LINENO" 5
3816 # Set base_machine if not set by a preconfigure fragment.
3817 test -n "$base_machine" || base_machine
=$machine
3822 # Find a good install program. We prefer a C program (faster),
3823 # so one script is as good as another. But avoid the broken or
3824 # incompatible versions:
3825 # SysV /etc/install, /usr/sbin/install
3826 # SunOS /usr/etc/install
3827 # IRIX /sbin/install
3829 # AmigaOS /C/install, which installs bootblocks on floppy discs
3830 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3831 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3832 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3833 # OS/2's system install, which has a completely different semantic
3834 # ./install, which can be erroneously created by make from ./install.sh.
3835 # Reject install programs that cannot install multiple files.
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3837 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3838 if test -z "$INSTALL"; then
3839 if ${ac_cv_path_install+:} false
; then :
3840 $as_echo_n "(cached) " >&6
3842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir
=.
3847 # Account for people who put trailing slashes in PATH elements.
3848 case $as_dir/ in #((
3849 .
/ | .
// |
/[cC
]/* | \
3850 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3851 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3854 # OSF1 and SCO ODT 3.0 have their own names for install.
3855 # Don't use installbsd from OSF since it installs stuff as root
3857 for ac_prog
in ginstall scoinst
install; do
3858 for ac_exec_ext
in '' $ac_executable_extensions; do
3859 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3860 if test $ac_prog = install &&
3861 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3862 # AIX install. It has an incompatible calling convention.
3864 elif test $ac_prog = install &&
3865 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3866 # program-specific install script used by HP pwplus--don't use.
3869 rm -rf conftest.one conftest.two conftest.dir
3870 echo one
> conftest.one
3871 echo two
> conftest.two
3873 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3874 test -s conftest.one
&& test -s conftest.two
&&
3875 test -s conftest.dir
/conftest.one
&&
3876 test -s conftest.dir
/conftest.two
3878 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3891 rm -rf conftest.one conftest.two conftest.dir
3894 if test "${ac_cv_path_install+set}" = set; then
3895 INSTALL
=$ac_cv_path_install
3897 # As a last resort, use the slow shell script. Don't cache a
3898 # value for INSTALL within a source directory, because that will
3899 # break other packages using the cache if that directory is
3900 # removed, or if the value is a relative name.
3901 INSTALL
=$ac_install_sh
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3905 $as_echo "$INSTALL" >&6; }
3907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3908 # It thinks the first close brace ends the variable substitution.
3909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3913 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3915 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
3916 # The makefiles need to use a different form to find it in $srcdir.
3917 INSTALL
='\$(..)./scripts/install-sh -c'
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3920 $as_echo_n "checking whether ln -s works... " >&6; }
3922 if test "$LN_S" = "ln -s"; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3924 $as_echo "yes" >&6; }
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3927 $as_echo "no, using $LN_S" >&6; }
3931 # Was a --with-binutils option given?
3932 if test -n "$path_binutils"; then
3933 # Make absolute; ensure a single trailing slash.
3934 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3935 CC
="$CC -B$path_binutils"
3938 *fuse-ld
=lld
*) LDNAME
=ld.lld
;;
3941 if test -z "$LD"; then
3942 LD
=`$CC -print-prog-name=$LDNAME`
3944 if test -z "$AR"; then
3945 AR
=`$CC -print-prog-name=ar`
3948 if test -z "$OBJCOPY"; then
3949 OBJCOPY
=`$CC -print-prog-name=objcopy`
3952 if test -z "$GPROF"; then
3953 GPROF
=`$CC -print-prog-name=gprof`
3956 if test -z "$READELF"; then
3957 READELF
=`$CC -print-prog-name=readelf`
3960 if test -z "$OBJDUMP"; then
3961 OBJDUMP
=`$CC -print-prog-name=objdump`
3964 if test -z "$NM"; then
3965 NM
=`$CC -print-prog-name=nm`
3970 # Accept binutils 2.25 or newer.
3972 case $
($LD --version) in
3974 # Accept gold 1.14 or higher
3977 # Extract the first word of "$ac_prog", so it can be a program name with args.
3978 set dummy
$ac_prog; ac_word
=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if ${ac_cv_prog_LD+:} false
; then :
3982 $as_echo_n "(cached) " >&6
3984 if test -n "$LD"; then
3985 ac_cv_prog_LD
="$LD" # Let the user override the test.
3987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3991 test -z "$as_dir" && as_dir
=.
3992 for ac_exec_ext
in '' $ac_executable_extensions; do
3993 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3994 ac_cv_prog_LD
="$ac_prog"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 if test -n "$LD"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4007 $as_echo "$LD" >&6; }
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4014 test -n "$LD" && break
4017 if test -z "$LD"; then
4020 # Found it, now check the version.
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4022 $as_echo_n "checking version of $LD... " >&6; }
4023 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4024 case $ac_prog_version in
4025 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
4026 1.1[4-9]*|
1.
[2-9][0-9]*|
1.1[0-9][0-9]*|
[2-9].
*|
[1-9][0-9]*)
4027 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
4028 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4032 $as_echo "$ac_prog_version" >&6; }
4034 if test $ac_verc_fail = yes; then
4035 LD
=: critic_missing
="$critic_missing GNU gold"
4040 # Accept LLD 13.0.0 or higher
4043 # Extract the first word of "$ac_prog", so it can be a program name with args.
4044 set dummy
$ac_prog; ac_word
=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if ${ac_cv_prog_LD+:} false
; then :
4048 $as_echo_n "(cached) " >&6
4050 if test -n "$LD"; then
4051 ac_cv_prog_LD
="$LD" # Let the user override the test.
4053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir
=.
4058 for ac_exec_ext
in '' $ac_executable_extensions; do
4059 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_LD
="$ac_prog"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 if test -n "$LD"; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4073 $as_echo "$LD" >&6; }
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4080 test -n "$LD" && break
4083 if test -z "$LD"; then
4086 # Found it, now check the version.
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4088 $as_echo_n "checking version of $LD... " >&6; }
4089 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4090 case $ac_prog_version in
4091 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
4092 1[3-9].
*|
[2-9][0-9].
*)
4093 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
4094 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4098 $as_echo "$ac_prog_version" >&6; }
4100 if test $ac_verc_fail = yes; then
4101 LD
=: critic_missing
="$critic_missing LLD"
4104 libc_cv_with_lld
=yes
4109 # Extract the first word of "$ac_prog", so it can be a program name with args.
4110 set dummy
$ac_prog; ac_word
=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if ${ac_cv_prog_LD+:} false
; then :
4114 $as_echo_n "(cached) " >&6
4116 if test -n "$LD"; then
4117 ac_cv_prog_LD
="$LD" # Let the user override the test.
4119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4123 test -z "$as_dir" && as_dir
=.
4124 for ac_exec_ext
in '' $ac_executable_extensions; do
4125 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_LD
="$ac_prog"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 if test -n "$LD"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4139 $as_echo "$LD" >&6; }
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4146 test -n "$LD" && break
4149 if test -z "$LD"; then
4152 # Found it, now check the version.
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4154 $as_echo_n "checking version of $LD... " >&6; }
4155 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4156 case $ac_prog_version in
4157 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
4158 2.1[0-9][0-9]*|
2.2[5-9]*|
2.
[3-9][0-9]*|
[3-9].
*|
[1-9][0-9]*)
4159 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
4160 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4164 $as_echo "$ac_prog_version" >&6; }
4166 if test $ac_verc_fail = yes; then
4167 LD
=: critic_missing
="$critic_missing GNU ld"
4172 config_vars
="$config_vars
4173 with-lld = $libc_cv_with_lld"
4175 # These programs are version sensitive.
4176 for ac_prog
in gnumake gmake
make
4178 # Extract the first word of "$ac_prog", so it can be a program name with args.
4179 set dummy
$ac_prog; ac_word
=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_MAKE+:} false
; then :
4183 $as_echo_n "(cached) " >&6
4185 if test -n "$MAKE"; then
4186 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4192 test -z "$as_dir" && as_dir
=.
4193 for ac_exec_ext
in '' $ac_executable_extensions; do
4194 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_MAKE
="$ac_prog"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 MAKE
=$ac_cv_prog_MAKE
4206 if test -n "$MAKE"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4208 $as_echo "$MAKE" >&6; }
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4215 test -n "$MAKE" && break
4218 if test -z "$MAKE"; then
4221 # Found it, now check the version.
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4223 $as_echo_n "checking version of $MAKE... " >&6; }
4224 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4225 case $ac_prog_version in
4226 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
4227 [4-9].
* |
[1-9][0-9]*)
4228 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
4229 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4233 $as_echo "$ac_prog_version" >&6; }
4235 if test $ac_verc_fail = yes; then
4236 critic_missing
="$critic_missing make"
4240 for ac_prog
in gnumsgfmt gmsgfmt msgfmt
4242 # Extract the first word of "$ac_prog", so it can be a program name with args.
4243 set dummy
$ac_prog; ac_word
=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_MSGFMT+:} false
; then :
4247 $as_echo_n "(cached) " >&6
4249 if test -n "$MSGFMT"; then
4250 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
4252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir
=.
4257 for ac_exec_ext
in '' $ac_executable_extensions; do
4258 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_MSGFMT
="$ac_prog"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 MSGFMT
=$ac_cv_prog_MSGFMT
4270 if test -n "$MSGFMT"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4272 $as_echo "$MSGFMT" >&6; }
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4279 test -n "$MSGFMT" && break
4282 if test -z "$MSGFMT"; then
4285 # Found it, now check the version.
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
4287 $as_echo_n "checking version of $MSGFMT... " >&6; }
4288 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4289 case $ac_prog_version in
4290 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
4291 0.10.3[6-9]* |
0.10.
[4-9][0-9]* |
0.1[1-9]* |
0.
[2-9][0-9]* |
[1-9].
*)
4292 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
4293 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4297 $as_echo "$ac_prog_version" >&6; }
4299 if test $ac_verc_fail = yes; then
4300 MSGFMT
=: aux_missing
="$aux_missing msgfmt"
4303 for ac_prog
in makeinfo
4305 # Extract the first word of "$ac_prog", so it can be a program name with args.
4306 set dummy
$ac_prog; ac_word
=$2
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308 $as_echo_n "checking for $ac_word... " >&6; }
4309 if ${ac_cv_prog_MAKEINFO+:} false
; then :
4310 $as_echo_n "(cached) " >&6
4312 if test -n "$MAKEINFO"; then
4313 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
4315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir
=.
4320 for ac_exec_ext
in '' $ac_executable_extensions; do
4321 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4322 ac_cv_prog_MAKEINFO
="$ac_prog"
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 MAKEINFO
=$ac_cv_prog_MAKEINFO
4333 if test -n "$MAKEINFO"; then
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4335 $as_echo "$MAKEINFO" >&6; }
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 $as_echo "no" >&6; }
4342 test -n "$MAKEINFO" && break
4345 if test -z "$MAKEINFO"; then
4348 # Found it, now check the version.
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
4350 $as_echo_n "checking version of $MAKEINFO... " >&6; }
4351 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4352 case $ac_prog_version in
4353 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
4354 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9].
*)
4355 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
4356 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4360 $as_echo "$ac_prog_version" >&6; }
4362 if test $ac_verc_fail = yes; then
4363 MAKEINFO
=: aux_missing
="$aux_missing makeinfo"
4368 # Extract the first word of "$ac_prog", so it can be a program name with args.
4369 set dummy
$ac_prog; ac_word
=$2
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4371 $as_echo_n "checking for $ac_word... " >&6; }
4372 if ${ac_cv_prog_SED+:} false
; then :
4373 $as_echo_n "(cached) " >&6
4375 if test -n "$SED"; then
4376 ac_cv_prog_SED
="$SED" # Let the user override the test.
4378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4382 test -z "$as_dir" && as_dir
=.
4383 for ac_exec_ext
in '' $ac_executable_extensions; do
4384 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4385 ac_cv_prog_SED
="$ac_prog"
4386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 if test -n "$SED"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4398 $as_echo "$SED" >&6; }
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4405 test -n "$SED" && break
4408 if test -z "$SED"; then
4411 # Found it, now check the version.
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
4413 $as_echo_n "checking version of $SED... " >&6; }
4414 ac_prog_version
=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4415 case $ac_prog_version in
4416 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
4417 3.0[2-9]*|
3.
[1-9]*|
[4-9]*)
4418 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
4419 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4423 $as_echo "$ac_prog_version" >&6; }
4425 if test $ac_verc_fail = yes; then
4426 SED
=: aux_missing
="$aux_missing sed"
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy
$ac_prog; ac_word
=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_prog_AWK+:} false
; then :
4436 $as_echo_n "(cached) " >&6
4438 if test -n "$AWK"; then
4439 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4445 test -z "$as_dir" && as_dir
=.
4446 for ac_exec_ext
in '' $ac_executable_extensions; do
4447 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4448 ac_cv_prog_AWK
="$ac_prog"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 if test -n "$AWK"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4461 $as_echo "$AWK" >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4468 test -n "$AWK" && break
4471 if test -z "$AWK"; then
4474 # Found it, now check the version.
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
4476 $as_echo_n "checking version of $AWK... " >&6; }
4477 ac_prog_version
=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4478 case $ac_prog_version in
4479 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
4480 3.1.
[2-9]*|
3.
[2-9]*|
[4-9]*)
4481 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
4482 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4486 $as_echo "$ac_prog_version" >&6; }
4488 if test $ac_verc_fail = yes; then
4489 critic_missing
="$critic_missing gawk"
4492 for ac_prog
in bison
4494 # Extract the first word of "$ac_prog", so it can be a program name with args.
4495 set dummy
$ac_prog; ac_word
=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if ${ac_cv_prog_BISON+:} false
; then :
4499 $as_echo_n "(cached) " >&6
4501 if test -n "$BISON"; then
4502 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
4504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4508 test -z "$as_dir" && as_dir
=.
4509 for ac_exec_ext
in '' $ac_executable_extensions; do
4510 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_prog_BISON
="$ac_prog"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 BISON
=$ac_cv_prog_BISON
4522 if test -n "$BISON"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4524 $as_echo "$BISON" >&6; }
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4531 test -n "$BISON" && break
4534 if test -z "$BISON"; then
4537 # Found it, now check the version.
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
4539 $as_echo_n "checking version of $BISON... " >&6; }
4540 ac_prog_version
=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
4541 case $ac_prog_version in
4542 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
4543 2.7*|
[3-9].
*|
[1-9][0-9]*)
4544 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
4545 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4549 $as_echo "$ac_prog_version" >&6; }
4551 if test $ac_verc_fail = yes; then
4552 critic_missing
="$critic_missing bison"
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
4557 $as_echo_n "checking if $CC is sufficient to build libc... " >&6; }
4558 if ${libc_cv_compiler_ok+:} false
; then :
4559 $as_echo_n "(cached) " >&6
4562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4569 #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
4570 #error insufficient compiler
4576 if ac_fn_c_try_cpp
"$LINENO"; then :
4577 libc_cv_compiler_ok
=yes
4579 libc_cv_compiler_ok
=no
4581 rm -f conftest.err conftest.i conftest.
$ac_ext
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
4584 $as_echo "$libc_cv_compiler_ok" >&6; }
4585 if test $libc_cv_compiler_ok != yes; then :
4586 critic_missing
="$critic_missing compiler"
4589 if test "x$maintainer" = "xyes"; then
4590 for ac_prog
in autoconf
4592 # Extract the first word of "$ac_prog", so it can be a program name with args.
4593 set dummy
$ac_prog; ac_word
=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_AUTOCONF+:} false
; then :
4597 $as_echo_n "(cached) " >&6
4599 if test -n "$AUTOCONF"; then
4600 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
4602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir
=.
4607 for ac_exec_ext
in '' $ac_executable_extensions; do
4608 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_AUTOCONF
="$ac_prog"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 AUTOCONF
=$ac_cv_prog_AUTOCONF
4620 if test -n "$AUTOCONF"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4622 $as_echo "$AUTOCONF" >&6; }
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4629 test -n "$AUTOCONF" && break
4631 test -n "$AUTOCONF" || AUTOCONF
="no"
4633 case "x$AUTOCONF" in
4634 xno|x|x
:) AUTOCONF
=no
;;
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
4637 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
4638 if ${libc_cv_autoconf_works+:} false
; then :
4639 $as_echo_n "(cached) " >&6
4641 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac
> /dev
/null
2>&1); then
4642 libc_cv_autoconf_works
=yes
4644 libc_cv_autoconf_works
=no
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
4648 $as_echo "$libc_cv_autoconf_works" >&6; }
4649 test $libc_cv_autoconf_works = yes || AUTOCONF
=no
4652 if test "x$AUTOCONF" = xno
; then
4653 aux_missing
="$aux_missing autoconf"
4659 # Check for python3 if available, or else python.
4660 for ac_prog
in python3 python
4662 # Extract the first word of "$ac_prog", so it can be a program name with args.
4663 set dummy
$ac_prog; ac_word
=$2
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if ${ac_cv_prog_PYTHON_PROG+:} false
; then :
4667 $as_echo_n "(cached) " >&6
4669 if test -n "$PYTHON_PROG"; then
4670 ac_cv_prog_PYTHON_PROG
="$PYTHON_PROG" # Let the user override the test.
4672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4676 test -z "$as_dir" && as_dir
=.
4677 for ac_exec_ext
in '' $ac_executable_extensions; do
4678 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_prog_PYTHON_PROG
="$ac_prog"
4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 PYTHON_PROG
=$ac_cv_prog_PYTHON_PROG
4690 if test -n "$PYTHON_PROG"; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
4692 $as_echo "$PYTHON_PROG" >&6; }
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4699 test -n "$PYTHON_PROG" && break
4702 if test -z "$PYTHON_PROG"; then
4705 # Found it, now check the version.
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
4707 $as_echo_n "checking version of $PYTHON_PROG... " >&6; }
4708 ac_prog_version
=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
4709 case $ac_prog_version in
4710 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
4711 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*)
4712 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
4713 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4717 $as_echo "$ac_prog_version" >&6; }
4719 if test $ac_verc_fail = yes; then
4720 critic_missing
="$critic_missing python"
4723 PYTHON
="$PYTHON_PROG -B"
4726 test -n "$critic_missing" && as_fn_error $?
"
4727 *** These critical programs are missing or too old:$critic_missing
4728 *** Check the INSTALL file for required versions." "$LINENO" 5
4730 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
4731 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4732 *** some features or tests will be disabled.
4733 *** Check the INSTALL file for required versions." >&5
4734 $as_echo "$as_me: WARNING:
4735 *** These auxiliary programs are missing or incompatible versions:$aux_missing
4736 *** some features or tests will be disabled.
4737 *** Check the INSTALL file for required versions." >&2;}
4740 # Determine whether to use fpu or nofpu sysdeps directories.
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
4742 $as_echo_n "checking for use of fpu sysdeps directories... " >&6; }
4743 if ${libc_cv_with_fp+:} false
; then :
4744 $as_echo_n "(cached) " >&6
4746 cat > conftest.c
<<EOF
4750 # error "no hardware floating point"
4754 if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c
-o conftest.s \
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
4761 $as_echo "$libc_cv_with_fp" >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
4765 $as_echo_n "checking for -fstack-protector... " >&6; }
4766 if ${libc_cv_ssp+:} false
; then :
4767 $as_echo_n "(cached) " >&6
4769 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
4770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4774 test $ac_status = 0; }; }; then :
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
4782 $as_echo "$libc_cv_ssp" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
4785 $as_echo_n "checking for -fstack-protector-strong... " >&6; }
4786 if ${libc_cv_ssp_strong+:} false
; then :
4787 $as_echo_n "(cached) " >&6
4789 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
4790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4794 test $ac_status = 0; }; }; then :
4795 libc_cv_ssp_strong
=yes
4797 libc_cv_ssp_strong
=no
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
4802 $as_echo "$libc_cv_ssp_strong" >&6; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
4805 $as_echo_n "checking for -fstack-protector-all... " >&6; }
4806 if ${libc_cv_ssp_all+:} false
; then :
4807 $as_echo_n "(cached) " >&6
4809 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
4810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4814 test $ac_status = 0; }; }; then :
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
4822 $as_echo "$libc_cv_ssp_all" >&6; }
4826 if test "$libc_cv_ssp" = yes; then
4827 no_stack_protector
="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
4828 $as_echo "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
4832 if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
4833 stack_protector
="-fstack-protector"
4834 $as_echo "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
4836 elif test "$enable_stack_protector" = all
&& test "$libc_cv_ssp_all" = yes; then
4837 stack_protector
="-fstack-protector-all"
4838 $as_echo "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
4840 elif test "$enable_stack_protector" = strong
&& test "$libc_cv_ssp_strong" = yes; then
4841 stack_protector
="-fstack-protector-strong"
4842 $as_echo "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
4845 stack_protector
="-fno-stack-protector"
4846 $as_echo "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
4853 if test -n "$stack_protector"; then
4854 no_ssp
=-fno-stack-protector
4858 if test "$enable_stack_protector" != no
; then
4859 as_fn_error $?
"--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
4863 # For the multi-arch option we need support in the assembler & linker.
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
4865 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
4866 if ${libc_cv_ld_gnu_indirect_function+:} false
; then :
4867 $as_echo_n "(cached) " >&6
4869 cat > conftest.S
<<EOF
4870 .type foo,%gnu_indirect_function
4883 libc_cv_ld_gnu_indirect_function
=no
4884 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4885 -nostartfiles -nostdlib $no_ssp \
4886 -o conftest conftest.S
1>&5 2>&5; then
4887 # Do a link to see if the backend supports IFUNC relocs.
4888 $READELF -r conftest
1>&5
4889 LC_ALL
=C
$READELF -Wr conftest |
grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
4890 libc_cv_ld_gnu_indirect_function
=yes
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
4896 $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; }
4898 # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
4900 $as_echo_n "checking for gcc attribute ifunc support... " >&6; }
4901 if ${libc_cv_gcc_indirect_function+:} false
; then :
4902 $as_echo_n "(cached) " >&6
4904 cat > conftest.c
<<EOF
4905 extern int func (int);
4906 int used_func (int a)
4910 static void *resolver ()
4914 extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
4916 libc_cv_gcc_indirect_function
=no
4917 if ${CC-cc} -c conftest.c
-o conftest.o
1>&5 \
4919 if $READELF -s conftest.o |
grep IFUNC
>/dev
/null
2>&5; then
4920 libc_cv_gcc_indirect_function
=yes
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
4926 $as_echo "$libc_cv_gcc_indirect_function" >&6; }
4928 # Check if linker supports textrel relocation with ifunc (used on elf/tests).
4929 # Note that it relies on libc_cv_ld_gnu_indirect_function test above.
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
4931 $as_echo_n "checking whether the linker supports textrels along with ifunc... " >&6; }
4932 if ${libc_cv_textrel_ifunc+:} false
; then :
4933 $as_echo_n "(cached) " >&6
4935 cat > conftest.S
<<EOF
4936 .type foo,%gnu_indirect_function
4957 libc_cv_textrel_ifunc
=no
4958 if test $libc_cv_ld_gnu_indirect_function = yes; then
4959 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
4960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }; }; then
4965 libc_cv_textrel_ifunc
=yes
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
4971 $as_echo "$libc_cv_textrel_ifunc" >&6; }
4974 # Check if CC supports attribute retain as it is used in attribute_used_retain macro.
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
4976 $as_echo_n "checking for GNU attribute retain support... " >&6; }
4977 if ${libc_cv_gnu_retain+:} false
; then :
4978 $as_echo_n "(cached) " >&6
4980 cat > conftest.c
<<EOF
4981 static int var __attribute__ ((used, retain, section ("__libc_atexit")));
4983 libc_cv_gnu_retain
=no
4984 if ${CC-cc} -Werror -c conftest.c
-o /dev
/null
1>&5 \
4986 libc_cv_gnu_retain
=yes
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
4991 $as_echo "$libc_cv_gnu_retain" >&6; }
4992 if test $libc_cv_gnu_retain = yes; then
4993 $as_echo "#define HAVE_GNU_RETAIN 1" >>confdefs.h
4996 config_vars
="$config_vars
4997 have-gnu-retain = $libc_cv_gnu_retain"
4999 # Check if gcc warns about alias for function with incompatible types.
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
5001 $as_echo_n "checking if compiler warns about alias for function with incompatible types... " >&6; }
5002 if ${libc_cv_gcc_incompatible_alias+:} false
; then :
5003 $as_echo_n "(cached) " >&6
5005 cat > conftest.c
<<EOF
5006 int __redirect_foo (const void *s, int c);
5008 __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
5009 __typeof (__redirect_foo) *foo_impl (void)
5014 extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
5016 libc_cv_gcc_incompatible_alias
=yes
5017 if ${CC-cc} -Werror -c conftest.c
-o conftest.o
1>&5 2>&5 ; then
5018 libc_cv_gcc_incompatible_alias
=no
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
5023 $as_echo "$libc_cv_gcc_incompatible_alias" >&6; }
5025 if test x
"$libc_cv_ld_gnu_indirect_function" != xyes
; then
5026 if test x
"$multi_arch" = xyes
; then
5027 as_fn_error $?
"--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
5032 if test x
"$libc_cv_gcc_indirect_function" != xyes
; then
5033 # GCC 8+ emits a warning for alias with incompatible types and it might
5034 # fail to build ifunc resolvers aliases to either weak or internal
5035 # symbols. Disables multiarch build in this case.
5036 if test x
"$libc_cv_gcc_incompatible_alias" = xyes
; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
5038 $as_echo "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
5039 if test x
"$multi_arch" = xyes
; then
5040 as_fn_error $?
"--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
5043 $as_echo "$as_me: WARNING: Multi-arch is disabled." >&2;}
5045 elif test x
"$multi_arch" = xyes
; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
5047 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
5048 $as_echo "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
5049 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
5053 if test x
"$multi_arch" != xno
; then
5054 multi_arch_d
=/multiarch
5057 # Compute the list of sysdep directories for this configuration.
5058 # This can take a while to compute.
5059 sysdep_dir
=$srcdir/sysdeps
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
5061 $as_echo_n "checking sysdep dirs... " >&6; }
5062 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
5063 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
5065 test "x$base_os" != x ||
case "$os" in
5067 base_os
=mach
/hurd
;;
5069 base_os
=unix
/sysv
;;
5072 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
5075 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
5079 o
=`echo $tail | sed 's/[0-9]*$//'`
5080 if test $o != $tail; then
5083 # For linux-gnu, try linux-gnu, then linux.
5084 o
=`echo $tail | sed 's/-.*$//'`
5085 if test $o != $tail; then
5089 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
5092 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
5098 # For sparc/sparc32, try sparc/sparc32 and then sparc.
5100 tail=$machine${submachine:+/$submachine}
5101 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
5103 # Prepend the machine's FPU directory unless the architecture specific
5104 # preconfigure disables it.
5105 if test "$libc_cv_with_fp" = yes; then
5110 # For each machine term, try it with and then without /multiarch.
5111 for try_fpu
in $maybe_fpu ''; do
5112 for try_multi
in $multi_arch_d ''; do
5113 mach
="$mach /$1$try_fpu$try_multi"
5120 # Find what sysdep directories exist.
5122 for b
in $base ''; do
5123 for m0
in $mach ''; do
5124 for v
in /$vendor ''; do
5125 test "$v" = / && continue
5126 for o
in /$ostry ''; do
5127 test "$o" = / && continue
5128 for m
in $mach ''; do
5129 try_suffix
="$m0$b$v$o$m"
5130 if test -n "$try_suffix"; then
5131 try_srcdir
="${srcdir}/"
5132 try
="sysdeps$try_suffix"
5133 test -n "$enable_debug_configure" &&
5134 echo "$0 DEBUG: try $try" >&2
5135 if test -d "$try_srcdir$try"; then
5136 sysnames
="$sysnames $try"
5137 { test -n "$o" ||
test -n "$b"; } && os_used
=t
5138 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
5140 x
*/$submachine) submachine_used
=t
;;
5150 # If the assembler supports gnu_indirect_function symbol type and the
5151 # architecture supports multi-arch, we enable multi-arch by default.
5156 test x
"$multi_arch" = xdefault
&& multi_arch
=no
5159 if test x
"$multi_arch" != xno
; then
5160 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
5165 if test -z "$os_used" && test "$os" != none
; then
5166 as_fn_error $?
"Operating system $os is not supported." "$LINENO" 5
5168 if test -z "$machine_used" && test "$machine" != none
; then
5169 as_fn_error $?
"The $machine is not supported." "$LINENO" 5
5171 if test -z "$submachine_used" && test -n "$submachine"; then
5172 as_fn_error $?
"The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
5176 # We have now validated the configuration.
5178 # Expand the list of system names into a full list of directories
5179 # from each element's parent name and Implies file (if present).
5182 while test $# -gt 0; do
5186 case " $names " in *" $name "*)
5187 # Already in the list.
5191 # Report each name as we discover it, so there is no long pause in output.
5192 echo $ECHO_N "$name $ECHO_C" >&6
5194 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
5198 *) xsrcdir
=$srcdir/ ;;
5200 test -n "$enable_debug_configure" &&
5201 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
5203 for implies_file
in Implies Implies-before Implies-after
; do
5204 implies_type
=`echo $implies_file | sed s/-/_/`
5205 eval ${implies_type}=
5206 if test -f $xsrcdir$name/$implies_file; then
5207 # Collect more names from the `Implies' file (removing comments).
5208 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
5209 for x
in $implied_candidate; do
5211 if test -d $xsrcdir$name_base/$x; then
5212 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
5217 test -n "$enable_debug_configure" &&
5218 echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
5219 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
5221 eval "${implies_type}=\"\$${implies_type} \$try\""
5224 if test $found = no
; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
5226 $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
5232 # Add NAME to the list of names.
5233 names
="$names $name"
5235 # Find the parent of NAME, using the empty string if it has none.
5236 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
5238 test -n "$enable_debug_configure" &&
5239 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
5240 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
5242 # Add the names implied by NAME, and NAME's parent (if it has one), to
5243 # the list of names to be processed (the argument list). We prepend the
5244 # implied names to the list and append the parent. We want implied
5245 # directories to come before further directories inferred from the
5246 # configuration components; this ensures that for sysv4, unix/common
5247 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
5249 sysnames
="`echo $Implies $* $Implies_before $parent $Implies_after`"
5250 test -n "$sysnames" && set $sysnames
5253 # Add the default directories.
5254 default_sysnames
="sysdeps/generic"
5255 sysnames
="$names $default_sysnames"
5257 # The other names were emitted during the scan.
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
5259 $as_echo "$default_sysnames" >&6; }
5261 # if using special system headers, find out the compiler's sekrit
5262 # header directory and add that to the list. NOTE: Only does the right
5263 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5264 if test -n "$sysheaders"; then
5265 SYSINCLUDES
=-nostdinc
5266 for d
in include include-fixed
; do
5267 i
=`$CC -print-file-name="$d"` && test "x$i" != x
&& test "x$i" != "x$d" &&
5268 SYSINCLUDES
="$SYSINCLUDES -isystem $i"
5270 SYSINCLUDES
="$SYSINCLUDES \
5271 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5272 if test -n "$CXX"; then
5274 for cxxheaders
in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
5275 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
5276 test "x$cxxheaders" != x
&&
5277 CXX_SYSINCLUDES
="$CXX_SYSINCLUDES -isystem $cxxheaders"
5284 # Obtain some C++ header file paths. This is used to make a local
5285 # copy of those headers in Makerules.
5286 if test -n "$CXX"; then
5287 find_cxx_header
() {
5288 echo "#include <$1>" |
$CXX -H -fsyntax-only -x c
++ - 2>&1 \
5289 |
$AWK '$1 == "."{print $2}'
5291 CXX_CSTDLIB_HEADER
="$(find_cxx_header cstdlib)"
5292 CXX_CMATH_HEADER
="$(find_cxx_header cmath)"
5293 CXX_BITS_STD_ABS_H
="$(find_cxx_header bits/std_abs.h)"
5299 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5300 # since this would lead to problems installing/building glibc.
5301 # LD_LIBRARY_PATH contains the current directory if one of the following
5303 # - one of the terminals (":" and ";") is the first or last sign
5304 # - two terminals occur directly after each other
5305 # - the path contains an element with a dot in it
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5307 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5308 case ${LD_LIBRARY_PATH} in
5309 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
5310 ld_library_path_setting
="contains current directory"
5313 ld_library_path_setting
="ok"
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5317 $as_echo "$ld_library_path_setting" >&6; }
5318 if test "$ld_library_path_setting" != "ok"; then
5320 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5321 *** building glibc. Please change the environment variable
5322 *** and run configure again." "$LINENO" 5
5325 # Extract the first word of "bash", so it can be a program name with args.
5326 set dummy bash
; ac_word
=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if ${ac_cv_path_BASH_SHELL+:} false
; then :
5330 $as_echo_n "(cached) " >&6
5334 ac_cv_path_BASH_SHELL
="$BASH_SHELL" # Let the user override the test with a path.
5337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5341 test -z "$as_dir" && as_dir
=.
5342 for ac_exec_ext
in '' $ac_executable_extensions; do
5343 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_path_BASH_SHELL
="$as_dir/$ac_word$ac_exec_ext"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL
="no"
5356 BASH_SHELL
=$ac_cv_path_BASH_SHELL
5357 if test -n "$BASH_SHELL"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5359 $as_echo "$BASH_SHELL" >&6; }
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5367 # Extract the first word of "perl", so it can be a program name with args.
5368 set dummy perl
; ac_word
=$2
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if ${ac_cv_path_PERL+:} false
; then :
5372 $as_echo_n "(cached) " >&6
5376 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
5379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5383 test -z "$as_dir" && as_dir
=.
5384 for ac_exec_ext
in '' $ac_executable_extensions; do
5385 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5386 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
5398 PERL
=$ac_cv_path_PERL
5399 if test -n "$PERL"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5401 $as_echo "$PERL" >&6; }
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5408 if test "$PERL" != no
&&
5409 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5412 # Extract the first word of "install-info", so it can be a program name with args.
5413 set dummy install-info
; ac_word
=$2
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415 $as_echo_n "checking for $ac_word... " >&6; }
5416 if ${ac_cv_path_INSTALL_INFO+:} false
; then :
5417 $as_echo_n "(cached) " >&6
5419 case $INSTALL_INFO in
5421 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5425 as_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5426 for as_dir
in $as_dummy
5429 test -z "$as_dir" && as_dir
=.
5430 for ac_exec_ext
in '' $ac_executable_extensions; do
5431 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
5444 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5445 if test -n "$INSTALL_INFO"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5447 $as_echo "$INSTALL_INFO" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5456 $as_echo_n "checking for .set assembler directive... " >&6; }
5457 if ${libc_cv_asm_set_directive+:} false
; then :
5458 $as_echo_n "(cached) " >&6
5460 cat > conftest.s
<<EOF
5463 .set glibc_conftest_frobozz,foo
5464 .globl glibc_conftest_frobozz
5466 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5467 # (but it doesn't work), so we must do a linking check to be sure.
5468 cat > conftest1.c
<<\EOF
5469 extern int glibc_conftest_frobozz
;
5470 void _start
() { glibc_conftest_frobozz
= 1; }
5472 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5473 -nostartfiles -nostdlib $no_ssp \
5474 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
5475 libc_cv_asm_set_directive
=yes
5477 libc_cv_asm_set_directive
=no
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5482 $as_echo "$libc_cv_asm_set_directive" >&6; }
5483 if test $libc_cv_asm_set_directive = yes; then
5484 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
5489 $as_echo_n "checking linker support for protected data symbol... " >&6; }
5490 if ${libc_cv_protected_data+:} false
; then :
5491 $as_echo_n "(cached) " >&6
5493 cat > conftest.c
<<EOF
5494 int bar __attribute__ ((visibility ("protected"))) = 1;
5496 libc_cv_protected_data
=no
5497 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
5498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5502 test $ac_status = 0; }; }; then
5503 cat > conftest.c
<<EOF
5505 int main (void) { return bar; }
5507 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
5508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5512 test $ac_status = 0; }; }; then
5513 libc_cv_protected_data
=yes
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
5520 $as_echo "$libc_cv_protected_data" >&6; }
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
5524 $as_echo_n "checking linker support for INSERT in linker script... " >&6; }
5525 if ${libc_cv_insert+:} false
; then :
5526 $as_echo_n "(cached) " >&6
5528 cat > conftest.c
<<EOF
5529 int __attribute__ ((section(".bar"))) bar = 0x12345678;
5530 int test (void) { return bar; }
5532 cat > conftest.t
<<EOF
5537 INSERT AFTER .rela.dyn;
5540 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
5541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5545 test $ac_status = 0; }; }; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
5552 $as_echo "$libc_cv_insert" >&6; }
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
5556 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
5557 if ${libc_cv_broken_alias_attribute+:} false
; then :
5558 $as_echo_n "(cached) " >&6
5560 cat > conftest.c
<<EOF
5561 extern int foo (int x) __asm ("xyzzy");
5562 int bar (int x) { return x; }
5563 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5565 extern __typeof (dfoo) dfoo __asm ("abccb");
5568 libc_cv_broken_alias_attribute
=yes
5569 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5574 test $ac_status = 0; }; }; then
5575 if grep 'xyzzy' conftest.s
>/dev
/null
&&
5576 grep 'abccb' conftest.s
>/dev
/null
; then
5577 libc_cv_broken_alias_attribute
=no
5580 rm -f conftest.c conftest.s
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
5584 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
5585 if test $libc_cv_broken_alias_attribute = yes; then
5586 as_fn_error $?
"working alias attribute support required" "$LINENO" 5
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
5590 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
5591 if ${libc_cv_have_sdata_section+:} false
; then :
5592 $as_echo_n "(cached) " >&6
5594 echo "int i;" > conftest.c
5595 libc_cv_have_sdata_section
=no
5596 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c
-o conftest.so
2>&1 \
5597 |
grep '\.sdata' >/dev
/null
; then
5598 libc_cv_have_sdata_section
=yes
5600 rm -f conftest.c conftest.so
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
5604 $as_echo "$libc_cv_have_sdata_section" >&6; }
5605 if test $libc_cv_have_sdata_section = yes; then
5606 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
5611 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
5612 if ${libc_cv_cc_with_libunwind+:} false
; then :
5613 $as_echo_n "(cached) " >&6
5616 cat > conftest.c
<<EOF
5617 int main (void) { return 0; }
5619 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
5620 conftest.c
-v 2>&1 >/dev
/null |
grep ' -lunwind ' >/dev
/null
; then
5621 libc_cv_cc_with_libunwind
=yes
5623 libc_cv_cc_with_libunwind
=no
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
5628 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
5630 if test $libc_cv_cc_with_libunwind = yes; then
5631 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
5637 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
5638 if ${libc_cv_as_noexecstack+:} false
; then :
5639 $as_echo_n "(cached) " >&6
5641 cat > conftest.c
<<EOF
5644 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS
5645 -S -o conftest.s conftest.c 1>&5'
5646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5650 test $ac_status = 0; }; } \
5651 && grep .note.GNU-stack conftest.s
>/dev
/null \
5652 && { ac_try
='${CC-cc} $ASFLAGS -Wa,--noexecstack
5653 -c -o conftest.o conftest.s 1>&5'
5654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5658 test $ac_status = 0; }; }
5660 libc_cv_as_noexecstack
=yes
5662 libc_cv_as_noexecstack
=no
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
5667 $as_echo "$libc_cv_as_noexecstack" >&6; }
5668 if test $libc_cv_as_noexecstack = yes; then
5669 ASFLAGS_config
="$ASFLAGS_config -Wa,--noexecstack"
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
5674 $as_echo_n "checking for linker that supports -z execstack... " >&6; }
5675 libc_linker_feature
=no
5676 cat > conftest.c
<<EOF
5677 int _start (void) { return 42; }
5679 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5680 -Wl,-z,execstack -nostdlib -nostartfiles
5681 -fPIC -shared -o conftest.so conftest.c
5683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687 test $ac_status = 0; }; }
5689 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack
-nostdlib \
5690 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
5691 |
grep "warning: -z execstack ignored" > /dev
/null
2>&1; then
5694 libc_linker_feature
=yes
5698 if test $libc_linker_feature = yes; then
5699 libc_cv_z_execstack
=yes
5701 libc_cv_z_execstack
=no
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5704 $as_echo "$libc_linker_feature" >&6; }
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
5708 $as_echo_n "checking for linker that supports -z start-stop-gc... " >&6; }
5709 libc_linker_feature
=no
5710 cat > conftest.c
<<EOF
5711 int _start (void) { return 42; }
5713 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5714 -Wl,-z,start-stop-gc -nostdlib -nostartfiles
5715 -fPIC -shared -o conftest.so conftest.c
5717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5721 test $ac_status = 0; }; }
5723 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc
-nostdlib \
5724 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
5725 |
grep "warning: -z start-stop-gc ignored" > /dev
/null
2>&1; then
5728 libc_linker_feature
=yes
5732 if test $libc_linker_feature = yes; then
5733 libc_cv_z_start_stop_gc
=yes
5735 libc_cv_z_start_stop_gc
=no
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5738 $as_echo "$libc_linker_feature" >&6; }
5739 config_vars
="$config_vars
5740 have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
5743 $as_echo_n "checking for linker that supports --depaudit... " >&6; }
5744 libc_linker_feature
=no
5745 cat > conftest.c
<<EOF
5746 int _start (void) { return 42; }
5748 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5749 -Wl,--depaudit,x -nostdlib -nostartfiles
5750 -fPIC -shared -o conftest.so conftest.c
5752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5756 test $ac_status = 0; }; }
5758 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x
-nostdlib \
5759 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
5760 |
grep "warning: --depaudit ignored" > /dev
/null
2>&1; then
5763 libc_linker_feature
=yes
5767 if test $libc_linker_feature = yes; then
5768 libc_cv_depaudit
=yes
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5773 $as_echo "$libc_linker_feature" >&6; }
5774 config_vars
="$config_vars
5775 have-depaudit = $libc_cv_depaudit"
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
5778 $as_echo_n "checking for linker that supports -z pack-relative-relocs... " >&6; }
5779 libc_linker_feature
=no
5780 cat > conftest.c
<<EOF
5781 int _start (void) { return 42; }
5783 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5784 -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
5785 -fPIC -shared -o conftest.so conftest.c
5787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791 test $ac_status = 0; }; }
5793 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs
-nostdlib \
5794 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
5795 |
grep "warning: -z pack-relative-relocs ignored" > /dev
/null
2>&1; then
5798 libc_linker_feature
=yes
5802 if test $libc_linker_feature = yes; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5808 $as_echo "$libc_linker_feature" >&6; }
5809 config_vars
="$config_vars
5810 have-dt-relr = $libc_cv_dt_relr"
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
5813 $as_echo_n "checking for linker that supports --no-dynamic-linker... " >&6; }
5814 libc_linker_feature
=no
5815 cat > conftest.c
<<EOF
5816 int _start (void) { return 42; }
5818 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
5819 -Wl,--no-dynamic-linker -nostdlib -nostartfiles
5820 -fPIC -shared -o conftest.so conftest.c
5822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5826 test $ac_status = 0; }; }
5828 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
5829 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
5830 |
grep "warning: --no-dynamic-linker ignored" > /dev
/null
2>&1; then
5833 libc_linker_feature
=yes
5837 if test $libc_linker_feature = yes; then
5838 libc_cv_no_dynamic_linker
=yes
5840 libc_cv_no_dynamic_linker
=no
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5843 $as_echo "$libc_linker_feature" >&6; }
5844 config_vars
="$config_vars
5845 have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
5848 $as_echo_n "checking for -static-pie... " >&6; }
5849 if ${libc_cv_static_pie+:} false
; then :
5850 $as_echo_n "(cached) " >&6
5852 if { ac_try
='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
5853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5857 test $ac_status = 0; }; }; then :
5858 libc_cv_static_pie
=yes
5860 libc_cv_static_pie
=no
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
5865 $as_echo "$libc_cv_static_pie" >&6; }
5866 config_vars
="$config_vars
5867 have-static-pie = $libc_cv_static_pie"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
5870 $as_echo_n "checking for -fpie... " >&6; }
5871 if ${libc_cv_fpie+:} false
; then :
5872 $as_echo_n "(cached) " >&6
5874 if { ac_try
='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
5875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879 test $ac_status = 0; }; }; then :
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
5887 $as_echo "$libc_cv_fpie" >&6; }
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
5892 $as_echo_n "checking for GLOB_DAT reloc... " >&6; }
5893 if ${libc_cv_has_glob_dat+:} false
; then :
5894 $as_echo_n "(cached) " >&6
5896 cat > conftest.c
<<EOF
5898 int foo (void) { return mumble; }
5900 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5901 -fPIC -shared -o conftest.so conftest.c
5902 -nostdlib -nostartfiles $no_ssp
5904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5908 test $ac_status = 0; }; }
5910 if $READELF -rW conftest.so |
grep '_GLOB_DAT' > /dev
/null
; then
5911 libc_cv_has_glob_dat
=yes
5913 libc_cv_has_glob_dat
=no
5916 libc_cv_has_glob_dat
=no
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
5921 $as_echo "$libc_cv_has_glob_dat" >&6; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5
5925 $as_echo_n "checking for -mtls-dialect=gnu2... " >&6; }
5926 if ${libc_cv_mtls_dialect_gnu2+:} false
; then :
5927 $as_echo_n "(cached) " >&6
5929 cat > conftest.c
<<EOF
5936 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles
5937 conftest.c -o conftest 1>&5'
5938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942 test $ac_status = 0; }; }
5944 libc_cv_mtls_dialect_gnu2
=yes
5946 libc_cv_mtls_dialect_gnu2
=no
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5
5951 $as_echo "$libc_cv_mtls_dialect_gnu2" >&6; }
5953 config_vars
="$config_vars
5954 have-mtls-dialect-gnu2 = $libc_cv_mtls_dialect_gnu2"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5
5957 $as_echo_n "checking if -Wno-ignored-attributes is required for aliases... " >&6; }
5958 if ${libc_cv_wno_ignored_attributes+:} false
; then :
5959 $as_echo_n "(cached) " >&6
5961 cat > conftest.c
<<EOF
5965 extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
5966 extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
5968 libc_cv_wno_ignored_attributes
=""
5969 if ! { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c'
5970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5974 test $ac_status = 0; }; }
5976 libc_cv_wno_ignored_attributes
="-Wno-ignored-attributes"
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5
5981 $as_echo "$libc_cv_wno_ignored_attributes" >&6; }
5982 config_vars
="$config_vars
5983 config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
5986 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
5987 if ${libc_cv_have_section_quotes+:} false
; then :
5988 $as_echo_n "(cached) " >&6
5990 cat > conftest.c
<<EOF
5991 static const int foo
5992 __attribute__ ((section ("bar"))) = 1;
5994 if ${CC-cc} -S conftest.c
-o conftest.s
; then
5995 if grep '\.section.*"bar"' conftest.s
>/dev
/null
; then
5996 libc_cv_have_section_quotes
=yes
5998 libc_cv_have_section_quotes
=no
6001 libc_cv_have_section_quotes
=unknown
6003 rm -f conftest.
{c
,s
}
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6007 $as_echo "$libc_cv_have_section_quotes" >&6; }
6008 if test $libc_cv_have_section_quotes = yes; then
6009 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
6014 $as_echo_n "checking for __builtin_memset... " >&6; }
6015 if ${libc_cv_gcc_builtin_memset+:} false
; then :
6016 $as_echo_n "(cached) " >&6
6018 cat > conftest.c
<<\EOF
6021 __builtin_memset
(x
, 0, 1000);
6024 if { ac_try
='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
6025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6029 test $ac_status = 0; }; };
6031 libc_cv_gcc_builtin_memset
=no
6033 libc_cv_gcc_builtin_memset
=yes
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
6038 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
6039 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6040 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
6045 $as_echo_n "checking for redirection of built-in functions... " >&6; }
6046 if ${libc_cv_gcc_builtin_redirection+:} false
; then :
6047 $as_echo_n "(cached) " >&6
6049 cat > conftest.c
<<\EOF
6050 extern char
*strstr
(const char
*, const char
*) __asm
("my_strstr");
6051 char
*foo
(const char
*a
, const char
*b
)
6053 return __builtin_strstr
(a
, b
);
6056 if { ac_try
='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
6057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6061 test $ac_status = 0; }; };
6063 libc_cv_gcc_builtin_redirection
=yes
6065 libc_cv_gcc_builtin_redirection
=no
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
6070 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
6071 if test "$libc_cv_gcc_builtin_redirection" = no
; then
6072 as_fn_error $?
"support for the symbol redirection needed" "$LINENO" 5
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6076 $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6077 if ${libc_cv_cc_nofma+:} false
; then :
6078 $as_echo_n "(cached) " >&6
6081 for opt
in -ffp-contract=off
-mno-fused-madd; do
6082 if { ac_try
='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6087 test $ac_status = 0; }; }; then :
6088 libc_cv_cc_nofma
=$opt; break
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
6093 $as_echo "$libc_cv_cc_nofma" >&6; }
6096 if test -n "$submachine"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
6098 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
6099 if ${libc_cv_cc_submachine+:} false
; then :
6100 $as_echo_n "(cached) " >&6
6102 libc_cv_cc_submachine
=no
6103 for opt
in "-march=$submachine" "-mcpu=$submachine"; do
6104 if { ac_try
='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109 test $ac_status = 0; }; }; then :
6111 libc_cv_cc_submachine
="$opt"
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
6117 $as_echo "$libc_cv_cc_submachine" >&6; }
6118 if test "x$libc_cv_cc_submachine" = xno
; then
6119 as_fn_error $?
"${CC-cc} does not support $submachine" "$LINENO" 5
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
6125 $as_echo_n "checking for compiler option that -fsignaling-nans... " >&6; }
6126 if ${libc_cv_cc_signaling_nans+:} false
; then :
6127 $as_echo_n "(cached) " >&6
6129 if { ac_try
='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
6130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6134 test $ac_status = 0; }; }; then :
6135 libc_cv_cc_signaling_nans
=-fsignaling-nans
6137 libc_cv_cc_signaling_nans
=
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
6142 $as_echo "$libc_cv_cc_signaling_nans" >&6; }
6143 config_vars
="$config_vars
6144 config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6147 __attribute__ ((__optimize__))" >&5
6148 $as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6149 __attribute__ ((__optimize__))... " >&6; }
6150 if ${libc_cv_cc_loop_to_function+:} false
; then :
6151 $as_echo_n "(cached) " >&6
6153 cat > conftest.c
<<EOF
6155 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
6158 libc_cv_cc_loop_to_function
=no
6159 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
6160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6164 test $ac_status = 0; }; }
6166 libc_cv_cc_loop_to_function
=yes
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
6171 $as_echo "$libc_cv_cc_loop_to_function" >&6; }
6172 if test $libc_cv_cc_loop_to_function = yes; then
6173 $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
6179 $as_echo_n "checking for libgd... " >&6; }
6180 if test "$with_gd" != "no"; then
6181 old_CFLAGS
="$CFLAGS"
6182 CFLAGS
="$CFLAGS $libgd_include"
6183 old_LDFLAGS
="$LDFLAGS"
6184 LDFLAGS
="$LDFLAGS $libgd_ldflags"
6186 LIBS
="$LIBS -lgd -lpng -lz -lm"
6187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6198 if ac_fn_c_try_link
"$LINENO"; then :
6203 rm -f core conftest.err conftest.
$ac_objext \
6204 conftest
$ac_exeext conftest.
$ac_ext
6205 CFLAGS
="$old_CFLAGS"
6206 LDFLAGS
="$old_LDFLAGS"
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
6212 $as_echo "$LIBGD" >&6; }
6216 if test x
$with_selinux = xno
; then
6219 # See if we have the SELinux library
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
6221 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
6222 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false
; then :
6223 $as_echo_n "(cached) " >&6
6225 ac_check_lib_save_LIBS
=$LIBS
6226 LIBS
="-lselinux $LIBS"
6227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6230 /* Override any GCC internal prototype to avoid an error.
6231 Use char because int might match the return type of a GCC
6232 builtin and then its argument prototype would still apply. */
6236 char is_selinux_enabled ();
6240 return is_selinux_enabled ();
6245 if ac_fn_c_try_link
"$LINENO"; then :
6246 ac_cv_lib_selinux_is_selinux_enabled
=yes
6248 ac_cv_lib_selinux_is_selinux_enabled
=no
6250 rm -f core conftest.err conftest.
$ac_objext \
6251 conftest
$ac_exeext conftest.
$ac_ext
6252 LIBS
=$ac_check_lib_save_LIBS
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
6255 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
6256 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
; then :
6262 if test x
$with_selinux = xyes
; then
6263 if test x
$have_selinux = xno
; then
6264 as_fn_error $?
"SELinux explicitly required, but SELinux library not found" "$LINENO" 5
6268 # Check if we're building with SELinux support.
6269 if test "x$have_selinux" = xyes
; then
6271 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
6274 # See if we have the libaudit library
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
6276 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
6277 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false
; then :
6278 $as_echo_n "(cached) " >&6
6280 ac_check_lib_save_LIBS
=$LIBS
6281 LIBS
="-laudit $LIBS"
6282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6285 /* Override any GCC internal prototype to avoid an error.
6286 Use char because int might match the return type of a GCC
6287 builtin and then its argument prototype would still apply. */
6291 char audit_log_user_avc_message ();
6295 return audit_log_user_avc_message ();
6300 if ac_fn_c_try_link
"$LINENO"; then :
6301 ac_cv_lib_audit_audit_log_user_avc_message
=yes
6303 ac_cv_lib_audit_audit_log_user_avc_message
=no
6305 rm -f core conftest.err conftest.
$ac_objext \
6306 conftest
$ac_exeext conftest.
$ac_ext
6307 LIBS
=$ac_check_lib_save_LIBS
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
6310 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
6311 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes
; then :
6317 if test "x$have_libaudit" = xyes
; then
6319 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
6324 # See if we have the libcap library
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
6326 $as_echo_n "checking for cap_init in -lcap... " >&6; }
6327 if ${ac_cv_lib_cap_cap_init+:} false
; then :
6328 $as_echo_n "(cached) " >&6
6330 ac_check_lib_save_LIBS
=$LIBS
6332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6335 /* Override any GCC internal prototype to avoid an error.
6336 Use char because int might match the return type of a GCC
6337 builtin and then its argument prototype would still apply. */
6350 if ac_fn_c_try_link
"$LINENO"; then :
6351 ac_cv_lib_cap_cap_init
=yes
6353 ac_cv_lib_cap_cap_init
=no
6355 rm -f core conftest.err conftest.
$ac_objext \
6356 conftest
$ac_exeext conftest.
$ac_ext
6357 LIBS
=$ac_check_lib_save_LIBS
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
6360 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
6361 if test "x$ac_cv_lib_cap_cap_init" = xyes
; then :
6367 if test "x$have_libcap" = xyes
; then
6369 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
6376 no_fortify_source
="-Wp,-U_FORTIFY_SOURCE"
6377 fortify_source
="${no_fortify_source}"
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_dynamic_object_size" >&5
6380 $as_echo_n "checking for __builtin_dynamic_object_size... " >&6; }
6381 if ${libc_cv___builtin_dynamic_object_size+:} false
; then :
6382 $as_echo_n "(cached) " >&6
6385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6391 __builtin_dynamic_object_size("", 0)
6396 if ac_fn_c_try_link
"$LINENO"; then :
6397 libc_cv___builtin_dynamic_object_size
=yes
6398 if test "$enable_fortify_source" = yes; then :
6399 enable_fortify_source
=3
6402 libc_cv___builtin_dynamic_object_size
=no
6403 if test "$enable_fortify_source" = yes; then :
6404 enable_fortify_source
=2
6407 rm -f core conftest.err conftest.
$ac_objext \
6408 conftest
$ac_exeext conftest.
$ac_ext
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv___builtin_dynamic_object_size" >&5
6412 $as_echo "$libc_cv___builtin_dynamic_object_size" >&6; }
6414 case $enable_fortify_source in #(
6416 libc_cv_fortify_source
=yes ;; #(
6418 if test "$libc_cv___builtin_dynamic_object_size" = yes; then :
6419 libc_cv_fortify_source
=yes
6421 as_fn_error $?
"Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5
6424 libc_cv_fortify_source
=no
;;
6427 if test "$libc_cv_fortify_source" = yes; then :
6428 fortify_source
="${fortify_source},-D_FORTIFY_SOURCE=${enable_fortify_source}"
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
6438 $as_echo_n "checking whether the assembler requires one version per symbol... " >&6; }
6439 if ${libc_cv_symver_needs_alias+:} false
; then :
6440 $as_echo_n "(cached) " >&6
6442 cat > conftest.s
<<EOF
6446 .symver testfunc, testfunc1@VERSION1
6447 .symver testfunc, testfunc1@VERSION2
6449 libc_cv_symver_needs_alias
=no
6450 if ${CC-cc} $ASFLAGS -c conftest.s
2>&5; then
6451 libc_cv_symver_needs_alias
=no
6453 libc_cv_symver_needs_alias
=yes
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
6459 $as_echo "$libc_cv_symver_needs_alias" >&6; }
6460 if test "$libc_cv_symver_needs_alias" = yes; then
6461 $as_echo "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
6466 $as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; }
6467 if ${libc_cv_builtin_trap+:} false
; then :
6468 $as_echo_n "(cached) " >&6
6470 libc_cv_builtin_trap
=no
6471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6482 if ac_fn_c_try_compile
"$LINENO"; then :
6484 libc_undefs
=`$NM -u conftest.o |
6485 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
6487 as_fn_error $?
"confusing output from $NM -u" "$LINENO" 5
6489 echo >&5 "libc_undefs='$libc_undefs'"
6490 if test -z "$libc_undefs"; then
6491 libc_cv_builtin_trap
=yes
6494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
6497 $as_echo "$libc_cv_builtin_trap" >&6; }
6498 if test $libc_cv_builtin_trap = yes; then
6499 $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
6504 ac_cpp
='$CXXCPP $CPPFLAGS'
6505 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6506 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6507 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
6511 $as_echo_n "checking whether the C++ compiler supports thread_local... " >&6; }
6512 if ${libc_cv_cxx_thread_local+:} false
; then :
6513 $as_echo_n "(cached) " >&6
6516 old_CXXFLAGS
="$CXXFLAGS"
6517 CXXFLAGS
="$CXXFLAGS -std=gnu++11"
6518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6523 // Compiler support.
6530 S * get () { return &s; }
6532 // libstdc++ support.
6533 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
6534 #error __cxa_thread_atexit_impl not supported
6538 if ac_fn_cxx_try_compile
"$LINENO"; then :
6539 libc_cv_cxx_thread_local
=yes
6541 libc_cv_cxx_thread_local
=no
6543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6544 CXXFLAGS
="$old_CXXFLAGS"
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
6548 $as_echo "$libc_cv_cxx_thread_local" >&6; }
6552 ac_cpp
='$CPP $CPPFLAGS'
6553 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6558 ### End of automated tests.
6559 ### Now run sysdeps configure fragments.
6561 # They also can set these variables.
6563 ldd_rewrite_script
=no
6564 libc_cv_sysconfdir
=$sysconfdir
6565 libc_cv_localstatedir
=$localstatedir
6566 libc_cv_gcc_unwind_find_fde
=no
6570 # Iterate over all the sysdep directories we will use, running their
6571 # configure fragments.
6572 for dir
in $sysnames; do
6575 *) dest
=$srcdir/$dir ;;
6577 if test -r $dest/configure
; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
6579 $as_echo "running configure fragment for $dir" >&6; }
6584 if test x
"$build_mathvec" = xnotset
; then
6587 config_vars
="$config_vars
6588 build-mathvec = $build_mathvec"
6593 if test x
$libc_cv_gcc_unwind_find_fde = xyes
; then
6594 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
6599 # A sysdeps configure fragment can reset this if IFUNC is not actually
6600 # usable even though the assembler knows how to generate the symbol type.
6601 if test x
"$libc_cv_ld_gnu_indirect_function" = xyes
; then
6602 $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
6605 config_vars
="$config_vars
6606 have-ifunc = $libc_cv_ld_gnu_indirect_function"
6608 if test x
"$libc_cv_gcc_indirect_function" = xyes
; then
6609 $as_echo "#define HAVE_GCC_IFUNC 1" >>confdefs.h
6612 config_vars
="$config_vars
6613 have-gcc-ifunc = $libc_cv_gcc_indirect_function"
6615 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
6616 # configure fragment can override the value to prevent this AC_DEFINE.
6618 if test "x$use_nscd" != xno
; then
6619 $as_echo "#define USE_NSCD 1" >>confdefs.h
6622 if test "x$build_nscd" = xdefault
; then
6623 build_nscd
=$use_nscd
6633 if test x
$use_ldconfig = xyes
; then
6634 $as_echo "#define USE_LDCONFIG 1" >>confdefs.h
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
6644 $as_echo_n "checking whether -fPIC is default... " >&6; }
6645 if ${libc_cv_pic_default+:} false
; then :
6646 $as_echo_n "(cached) " >&6
6648 libc_cv_pic_default
=yes
6649 cat > conftest.c
<<EOF
6650 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6651 # error PIC is default.
6654 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6655 libc_cv_pic_default
=no
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
6660 $as_echo "$libc_cv_pic_default" >&6; }
6661 config_vars
="$config_vars
6662 build-pic-default = $libc_cv_pic_default"
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
6665 $as_echo_n "checking whether -fPIE is default... " >&6; }
6666 if ${libc_cv_cc_pie_default+:} false
; then :
6667 $as_echo_n "(cached) " >&6
6669 libc_cv_cc_pie_default
=yes
6670 cat > conftest.c
<<EOF
6671 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
6672 # error PIE is default.
6675 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6676 libc_cv_cc_pie_default
=no
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
6681 $as_echo "$libc_cv_cc_pie_default" >&6; }
6682 config_vars
="$config_vars
6683 cc-pie-default = $libc_cv_cc_pie_default"
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
6686 $as_echo_n "checking if we can build programs as PIE... " >&6; }
6687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 #ifdef PIE_UNSUPPORTED
6690 # error PIE is not supported
6693 if ac_fn_c_try_compile
"$LINENO"; then :
6694 libc_cv_pie_supported
=yes
6696 libc_cv_pie_supported
=no
6698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
6700 $as_echo "$libc_cv_pie_supported" >&6; }
6701 # Disable build-pie-default if target does not support it or glibc is
6702 # configured with --disable-default-pie.
6703 if test "x$default_pie" = xno
; then
6704 build_pie_default
=no
6706 build_pie_default
=$libc_cv_pie_supported
6708 config_vars
="$config_vars
6709 build-pie-default = $build_pie_default"
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
6712 $as_echo_n "checking if we can build static PIE programs... " >&6; }
6713 libc_cv_static_pie_supported
=$libc_cv_pie_supported
6714 if test "x$libc_cv_pie_supported" != xno \
6715 -a "$libc_cv_no_dynamic_linker" = yes; then
6716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 #ifndef SUPPORT_STATIC_PIE
6719 # error static PIE is not supported
6722 if ac_fn_c_try_compile
"$LINENO"; then :
6723 libc_cv_static_pie_supported
=yes
6725 libc_cv_static_pie_supported
=no
6727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
6730 $as_echo "$libc_cv_static_pie_supported" >&6; }
6732 # Enable static-pie only if it is available and glibc isn't configured
6733 # with --disable-default-pie.
6734 if test "x$default_pie" = xno
; then
6735 libc_cv_static_pie
=no
6737 libc_cv_static_pie
=$libc_cv_static_pie_supported
6739 if test "$libc_cv_static_pie" = "yes"; then
6740 $as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h
6743 config_vars
="$config_vars
6744 enable-static-pie = $libc_cv_static_pie"
6746 # Set the `multidir' variable by grabbing the variable from the compiler.
6747 # We do it once and save the result in a generated makefile.
6748 libc_cv_multidir
=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
6758 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6759 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6763 if test "$pthread_in_libc" = yes; then
6764 $as_echo "#define PTHREAD_IN_LIBC 1" >>confdefs.h
6769 ac_config_files
="$ac_config_files config.make Makefile"
6771 ac_config_commands
="$ac_config_commands default"
6773 cat >confcache
<<\_ACEOF
6774 # This file is a shell script that caches the results of configure
6775 # tests run on this system so they can be shared between configure
6776 # scripts and configure runs, see configure's option --config-cache.
6777 # It is not useful on other systems. If it contains results you don't
6778 # want to keep, you may remove or edit it.
6780 # config.status only pays attention to the cache file if you give it
6781 # the --recheck option to rerun configure.
6783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6789 # The following way of writing the cache mishandles newlines in values,
6790 # but we know of no workaround that is simple, portable, and efficient.
6791 # So, we kill variables containing newlines.
6792 # Ultrix sh set writes to stderr and can't be redirected directly,
6793 # and sets the high bit in the cache file unless we assign to the vars.
6795 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6796 eval ac_val
=\$
$ac_var
6800 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6801 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6804 _ | IFS | as_nl
) ;; #(
6805 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6806 *) { eval $ac_var=; unset $ac_var;} ;;
6812 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6813 *${as_nl}ac_space
=\
*)
6814 # `set' does not quote correctly, so add quotes: double-quote
6815 # substitution turns \\\\ into \\, and sed turns \\ into \.
6818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6821 # `set' quotes correctly as required by POSIX, so do not add quotes.
6822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6835 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6836 if test -w "$cache_file"; then
6837 if test "x$cache_file" != "x/dev/null"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6839 $as_echo "$as_me: updating cache $cache_file" >&6;}
6840 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6841 cat confcache
>"$cache_file"
6843 case $cache_file in #(
6845 mv -f confcache
"$cache_file"$$
&&
6846 mv -f "$cache_file"$$
"$cache_file" ;; #(
6848 mv -f confcache
"$cache_file" ;;
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6854 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6859 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6860 # Let make expand exec_prefix.
6861 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6863 DEFS
=-DHAVE_CONFIG_H
6868 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6869 # 1. Remove the extension, and $U if already installed.
6870 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6871 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6872 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6873 # will be set to the directory where LIBOBJS objects are built.
6874 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6875 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6879 LTLIBOBJS
=$ac_ltlibobjs
6883 : "${CONFIG_STATUS=./config.status}"
6885 ac_clean_files_save
=$ac_clean_files
6886 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6888 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6890 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6892 # Generated by $as_me.
6893 # Run this file to recreate the current configuration.
6894 # Compiler output produced by configure, useful for debugging
6895 # configure, is in config.log if it exists.
6901 SHELL=\${CONFIG_SHELL-$SHELL}
6904 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6905 ## -------------------- ##
6906 ## M4sh Initialization. ##
6907 ## -------------------- ##
6909 # Be more Bourne compatible
6910 DUALCASE
=1; export DUALCASE
# for MKS sh
6911 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6914 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6915 # is contrary to our usage. Disable this feature.
6916 alias -g '${1+"$@"}'='"$@"'
6917 setopt NO_GLOB_SUBST
6919 case `(set -o) 2>/dev/null` in #(
6931 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6932 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6933 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6934 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6935 # Prefer a ksh shell builtin over an external printf program on Solaris,
6936 # but without wasting forks for bash or zsh.
6937 if test -z "$BASH_VERSION$ZSH_VERSION" \
6938 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6939 as_echo='print
-r --'
6940 as_echo_n='print
-rn --'
6941 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6942 as_echo='printf %s
\n'
6943 as_echo_n='printf %s
'
6945 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6946 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6947 as_echo_n='/usr
/ucb
/echo -n'
6949 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6950 as_echo_n_body='eval
6954 expr "X$arg" : "X\\(.*\\)$as_nl";
6955 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6957 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6959 export as_echo_n_body
6960 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6963 as_echo='sh
-c $as_echo_body as_echo
'
6966 # The user is always right.
6967 if test "${PATH_SEPARATOR+set}" != set; then
6969 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6970 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6977 # We need space, tab and new line, in precisely that order. Quoting is
6978 # there to prevent editors from complaining about space-tab.
6979 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6980 # splitting by setting IFS to empty value.)
6983 # Find who we are. Look in the path if we contain no directory separator.
6986 *[\\/]* ) as_myself=$0 ;;
6987 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 test -z "$as_dir" && as_dir=.
6992 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6998 # We did not find ourselves, most probably we were run as `sh COMMAND'
6999 # in which case we are not to be found in the path.
7000 if test "x$as_myself" = x
; then
7003 if test ! -f "$as_myself"; then
7004 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7008 # Unset variables that we do not need and which cause bugs (e.g. in
7009 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7010 # suppresses any "Segmentation fault" message there. '((' could
7011 # trigger a bug in pdksh 5.2.14.
7012 for as_var
in BASH_ENV ENV MAIL MAILPATH
7013 do eval test x\
${$as_var+set} = xset \
7014 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7027 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7030 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7031 # ----------------------------------------
7032 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7033 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7034 # script with STATUS, using 1 if that was 0.
7037 as_status
=$1; test $as_status -eq 0 && as_status
=1
7039 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7040 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7042 $as_echo "$as_me: error: $2" >&2
7043 as_fn_exit
$as_status
7047 # as_fn_set_status STATUS
7048 # -----------------------
7049 # Set $? to STATUS, without forking.
7053 } # as_fn_set_status
7057 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7067 # Portably unset VAR.
7070 { eval $1=; unset $1;}
7072 as_unset
=as_fn_unset
7073 # as_fn_append VAR VALUE
7074 # ----------------------
7075 # Append the text in VALUE to the end of the definition contained in VAR. Take
7076 # advantage of any shell optimizations that allow amortized linear growth over
7077 # repeated appends, instead of the typical quadratic growth present in naive
7079 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7080 eval 'as_fn_append ()
7091 # as_fn_arith ARG...
7092 # ------------------
7093 # Perform arithmetic evaluation on the ARGs, and store the result in the
7094 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7095 # must be portable across $(()) and expr.
7096 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7097 eval 'as_fn_arith ()
7104 as_val
=`expr "$@" || test $? -eq 1`
7109 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7110 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7116 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7117 as_basename
=basename
7122 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7128 as_me
=`$as_basename -- "$0" ||
7129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7130 X"$0" : 'X\(//\)$' \| \
7131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7133 sed '/^.*\/\([^/][^/]*\)\/*$/{
7147 # Avoid depending upon Character Ranges.
7148 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7149 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7150 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7151 as_cr_digits
='0123456789'
7152 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7154 ECHO_C
= ECHO_N
= ECHO_T
=
7155 case `echo -n x` in #(((((
7157 case `echo 'xy\c'` in
7158 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7160 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7167 rm -f conf$$ conf$$.exe conf$$.
file
7168 if test -d conf$$.dir
; then
7169 rm -f conf$$.dir
/conf$$.
file
7172 mkdir conf$$.dir
2>/dev
/null
7174 if (echo >conf$$.
file) 2>/dev
/null
; then
7175 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7177 # ... but there are two gotchas:
7178 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7179 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7180 # In both cases, we have to default to `cp -pR'.
7181 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7183 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7191 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7192 rmdir conf$$.dir
2>/dev
/null
7197 # Create "$as_dir" as a directory, including parents if necessary.
7202 -*) as_dir
=.
/$as_dir;;
7204 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7208 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7209 *) as_qdir
=$as_dir;;
7211 as_dirs
="'$as_qdir' $as_dirs"
7212 as_dir
=`$as_dirname -- "$as_dir" ||
7213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7214 X"$as_dir" : 'X\(//\)[^/]' \| \
7215 X"$as_dir" : 'X\(//\)$' \| \
7216 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7217 $as_echo X"$as_dir" |
7218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7235 test -d "$as_dir" && break
7237 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7238 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7242 if mkdir
-p .
2>/dev
/null
; then
7243 as_mkdir_p
='mkdir -p "$as_dir"'
7245 test -d .
/-p && rmdir .
/-p
7250 # as_fn_executable_p FILE
7251 # -----------------------
7252 # Test if FILE is an executable regular file.
7253 as_fn_executable_p
()
7255 test -f "$1" && test -x "$1"
7256 } # as_fn_executable_p
7258 as_executable_p
=as_fn_executable_p
7260 # Sed expression to map a string onto a valid CPP name.
7261 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7263 # Sed expression to map a string onto a valid variable name.
7264 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7268 ## ----------------------------------- ##
7269 ## Main body of $CONFIG_STATUS script. ##
7270 ## ----------------------------------- ##
7272 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7275 # Save the log message, to keep $0 and so on meaningful, and to
7276 # report actual input values of CONFIG_FILES etc. instead of their
7277 # values after options handling.
7279 This file was extended by GNU C Library $as_me (see version.h), which was
7280 generated by GNU Autoconf 2.69. Invocation command line was
7282 CONFIG_FILES = $CONFIG_FILES
7283 CONFIG_HEADERS = $CONFIG_HEADERS
7284 CONFIG_LINKS = $CONFIG_LINKS
7285 CONFIG_COMMANDS = $CONFIG_COMMANDS
7288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7293 case $ac_config_files in *"
7294 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7297 case $ac_config_headers in *"
7298 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7303 # Files that config.status was made for.
7304 config_files="$ac_config_files"
7305 config_headers="$ac_config_headers"
7306 config_commands="$ac_config_commands"
7310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7312 \`$as_me' instantiates files and other configuration actions
7313 from templates according to the current configuration. Unless the files
7314 and actions are specified as TAGs, all are instantiated by default.
7316 Usage: $0 [OPTION]... [TAG]...
7318 -h, --help print this help, then exit
7319 -V, --version print version number and configuration settings, then exit
7320 --config print configuration, then exit
7321 -q, --quiet, --silent
7322 do not print progress messages
7323 -d, --debug don't remove temporary files
7324 --recheck update $as_me by reconfiguring in the same conditions
7325 --file=FILE[:TEMPLATE]
7326 instantiate the configuration file FILE
7327 --header=FILE[:TEMPLATE]
7328 instantiate the configuration header FILE
7330 Configuration files:
7333 Configuration headers:
7336 Configuration commands:
7339 Report bugs to <https://sourceware.org/bugzilla/>.
7340 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
7341 General help using GNU software: <http://www.gnu.org/gethelp/>."
7344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7345 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7347 GNU C Library config.status (see version.h)
7348 configured by $0, generated by GNU Autoconf 2.69,
7349 with options \\"\$ac_cs_config\\"
7351 Copyright (C) 2012 Free Software Foundation, Inc.
7352 This config.status script is free software; the Free Software Foundation
7353 gives unlimited permission to copy, distribute and modify it."
7358 test -n "\$AWK" || AWK=awk
7361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7362 # The default lists apply if the user does not specify any file.
7368 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7369 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7373 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7385 # Handling of the options.
7386 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7388 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7389 $as_echo "$ac_cs_version"; exit ;;
7390 --config |
--confi |
--conf |
--con |
--co |
--c )
7391 $as_echo "$ac_cs_config"; exit ;;
7392 --debug |
--debu |
--deb |
--de |
--d |
-d )
7394 --file |
--fil |
--fi |
--f )
7397 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7398 '') as_fn_error $?
"missing file argument" ;;
7400 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7401 ac_need_defaults
=false
;;
7402 --header |
--heade |
--head |
--hea )
7405 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7407 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7408 ac_need_defaults
=false
;;
7410 # Conflict between --help and --header
7411 as_fn_error $?
"ambiguous option: \`$1'
7412 Try \`$0 --help' for more information.";;
7413 --help |
--hel |
-h )
7414 $as_echo "$ac_cs_usage"; exit ;;
7415 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7416 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7420 -*) as_fn_error $?
"unrecognized option: \`$1'
7421 Try \`$0 --help' for more information." ;;
7423 *) as_fn_append ac_config_targets
" $1"
7424 ac_need_defaults
=false
;;
7430 ac_configure_extra_args
=
7432 if $ac_cs_silent; then
7434 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7439 if \$ac_cs_recheck; then
7440 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7442 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7443 CONFIG_SHELL='$SHELL'
7449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7453 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7454 ## Running $as_me. ##
7460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7464 config_vars='$config_vars'
7468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7470 # Handling of arguments.
7471 for ac_config_target
in $ac_config_targets
7473 case $ac_config_target in
7474 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7475 "config.make") CONFIG_FILES
="$CONFIG_FILES config.make" ;;
7476 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7477 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
7479 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7484 # If the user did not use the arguments to specify the items to instantiate,
7485 # then the envvar interface is used. Set only those that are not.
7486 # We use the long form for the default assignment because of an extremely
7487 # bizarre bug on SunOS 4.1.3.
7488 if $ac_need_defaults; then
7489 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7490 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7491 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7494 # Have a temporary directory for convenience. Make it in the build tree
7495 # simply because there is no reason against having it here, and in addition,
7496 # creating and moving files from /tmp can sometimes cause problems.
7497 # Hook for its removal unless debugging.
7498 # Note that there is a small window in which the directory will not be cleaned:
7499 # after its creation but before its name has been assigned to `$tmp'.
7503 trap 'exit_status=$?
7505 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7507 trap 'as_fn_exit 1' 1 2 13 15
7509 # Create a (secure) tmp directory for tmp files.
7512 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7516 tmp
=.
/conf$$
-$RANDOM
7517 (umask 077 && mkdir
"$tmp")
7518 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7521 # Set up the scripts for CONFIG_FILES section.
7522 # No need to generate them if there are no CONFIG_FILES.
7523 # This happens for instance with `./config.status config.h'.
7524 if test -n "$CONFIG_FILES"; then
7527 ac_cr
=`echo X | tr X '\015'`
7528 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7529 # But we know of no other shell where ac_cr would be empty at this
7530 # point, so we can use a bashism as a fallback.
7531 if test "x$ac_cr" = x
; then
7532 eval ac_cr
=\$
\'\\r
\'
7534 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7535 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7541 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7546 echo "cat >conf$$subs.awk <<_ACEOF" &&
7547 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7550 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7551 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7553 for ac_last_try in false false false false false :; do
7554 . ./conf$$subs.sh ||
7555 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7557 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7558 if test $ac_delim_n = $ac_delim_num; then
7560 elif $ac_last_try; then
7561 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7563 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7569 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7573 s/^/S["/; s
/!.
*/"]=/
7583 s/\(.\{148\}\)..*/\1/
7585 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7590 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7597 s/\(.\{148\}\)..*/\1/
7599 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7603 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7608 ' <conf$$subs.awk | sed '
7613 ' >>$CONFIG_STATUS || ac_write_fail=1
7614 rm -f conf$$subs.awk
7615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7617 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7618 for (key in S) S_is_set[key] = 1
7624 nfields = split(line, field, "@
")
7626 len = length(field[1])
7627 for (i = 2; i < nfields; i++) {
7629 keylen = length(key)
7630 if (S_is_set[key]) {
7632 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7633 len += length(value) + length(field[++i])
7644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7645 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7646 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7649 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7650 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7653 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7654 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7655 # trailing colons and then remove the whole line if VPATH becomes empty
7656 # (actually we leave an empty line to preserve line numbers).
7657 if test "x
$srcdir" = x.; then
7658 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7677 fi # test -n "$CONFIG_FILES"
7679 # Set up the scripts for CONFIG_HEADERS section.
7680 # No need to generate them if there are no CONFIG_HEADERS.
7681 # This happens for instance with `./config.status Makefile'.
7682 if test -n "$CONFIG_HEADERS"; then
7683 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7687 # Transform confdefs.h into an awk script `defines.awk', embedded as
7688 # here-document in config.status, that substitutes the proper values into
7689 # config.h.in to produce config.h.
7691 # Create a delimiter string that does not exist in confdefs.h, to ease
7692 # handling of long lines.
7694 for ac_last_try in false false :; do
7695 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7696 if test -z "$ac_tt"; then
7698 elif $ac_last_try; then
7699 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7701 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7705 # For the awk script, D is an array of macro values keyed by name,
7706 # likewise P contains macro parameters if any. Preserve backslash
7707 # newline sequences.
7709 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7711 s/.\{148\}/&'"$ac_delim"'/g
7714 s/^[ ]*#[ ]*define[ ][ ]*/ /
7721 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7723 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7727 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7728 D["\
1"]=" \
3\\\\\\n
"\\/p
7730 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7735 s/.\{148\}/&'"$ac_delim"'/g
7740 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7743 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7745 ' <confdefs.h | sed '
7746 s/'"$ac_delim"'/"\\\
7747 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7750 for (key in D) D_is_set[key] = 1
7753 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7755 split(line, arg, " ")
7756 if (arg[1] == "#") {
7760 defundef
= substr
(arg
[1], 2)
7763 split(mac1
, mac2
, "(") #)
7765 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7766 if (D_is_set
[macro
]) {
7767 # Preserve the white space surrounding the "#".
7768 print prefix
"define", macro P
[macro
] D
[macro
]
7771 # Replace #undef with comments. This is necessary, for example,
7772 # in the case of _POSIX_SOURCE, which is predefined and required
7773 # on some systems where configure will not decide to define it.
7774 if (defundef
== "undef") {
7775 print
"/*", prefix defundef
, macro
, "*/"
7783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7784 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
7785 fi # test -n "$CONFIG_HEADERS"
7788 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7793 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7795 case $ac_mode$ac_tag in
7797 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7798 :[FH
]-) ac_tag
=-:-;;
7799 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7816 -) ac_f
="$ac_tmp/stdin";;
7817 *) # Look for the file first in the build tree, then in the source tree
7818 # (if the path is not absolute). The absolute path cannot be DOS-style,
7819 # because $ac_f cannot contain `:'.
7823 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7825 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7827 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7828 as_fn_append ac_file_inputs
" '$ac_f'"
7831 # Let's still pretend it is `configure' which instantiates (i.e., don't
7832 # use $as_me), people would be surprised to read:
7833 # /* config.h. Generated by config.status. */
7834 configure_input
='Generated from '`
7835 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7837 if test x
"$ac_file" != x-
; then
7838 configure_input
="$ac_file. $configure_input"
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7840 $as_echo "$as_me: creating $ac_file" >&6;}
7842 # Neutralize special characters interpreted by sed in replacement strings.
7843 case $configure_input in #(
7844 *\
&* |
*\|
* |
*\\* )
7845 ac_sed_conf_input
=`$as_echo "$configure_input" |
7846 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7847 *) ac_sed_conf_input
=$configure_input;;
7851 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
7852 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
7857 ac_dir
=`$as_dirname -- "$ac_file" ||
7858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7859 X"$ac_file" : 'X\(//\)[^/]' \| \
7860 X"$ac_file" : 'X\(//\)$' \| \
7861 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7862 $as_echo X"$ac_file" |
7863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7880 as_dir
="$ac_dir"; as_fn_mkdir_p
7884 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7886 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7887 # A ".." for each directory in $ac_dir_suffix.
7888 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7889 case $ac_top_builddir_sub in
7890 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7891 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7894 ac_abs_top_builddir
=$ac_pwd
7895 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7896 # for backward compatibility:
7897 ac_top_builddir
=$ac_top_build_prefix
7900 .
) # We are building in place.
7902 ac_top_srcdir
=$ac_top_builddir_sub
7903 ac_abs_top_srcdir
=$ac_pwd ;;
7904 [\\/]* | ?
:[\\/]* ) # Absolute name.
7905 ac_srcdir
=$srcdir$ac_dir_suffix;
7906 ac_top_srcdir
=$srcdir
7907 ac_abs_top_srcdir
=$srcdir ;;
7909 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7910 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7911 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7913 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7923 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7924 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7929 # If the template does not know about datarootdir, expand it.
7930 # FIXME: This hack should be removed a few years after 2.60.
7931 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7942 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7943 *datarootdir
*) ac_datarootdir_seen
=yes;;
7944 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7946 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7949 ac_datarootdir_hack='
7950 s&@datadir@&$datadir&g
7951 s&@docdir@&$docdir&g
7952 s&@infodir@&$infodir&g
7953 s&@localedir@&$localedir&g
7954 s&@mandir@&$mandir&g
7955 s&\\\${datarootdir}&$datarootdir&g' ;;
7959 # Neutralize VPATH when `$srcdir' = `.'.
7960 # Shell code in configure.ac might set extrasub.
7961 # FIXME: do we really want to maintain this feature?
7962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7963 ac_sed_extra="$ac_vpsub
7966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7968 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7969 s|@configure_input@|
$ac_sed_conf_input|
;t t
7970 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7971 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7972 s
&@srcdir@
&$ac_srcdir&;t t
7973 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7974 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7975 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7976 s
&@builddir@
&$ac_builddir&;t t
7977 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7978 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7979 s
&@INSTALL@
&$ac_INSTALL&;t t
7980 $ac_datarootdir_hack
7982 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
7983 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
7985 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7986 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
7987 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7988 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7990 which seems to be undefined. Please make sure it is defined" >&5
7991 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7992 which seems to be undefined. Please make sure it is defined" >&2;}
7994 rm -f "$ac_tmp/stdin"
7996 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7997 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8005 if test x"$ac_file" != x-; then
8007 $as_echo "/* $configure_input */" \
8008 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8009 } >"$ac_tmp/config.h" \
8010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8011 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8013 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8016 mv "$ac_tmp/config.h" "$ac_file" \
8017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8020 $as_echo "/* $configure_input */" \
8021 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8022 || as_fn_error $? "could not create -" "$LINENO" 5
8026 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8027 $as_echo "$as_me: executing $ac_file commands" >&6;}
8032 case $ac_file$ac_mode in
8034 case $CONFIG_FILES in *config.make*)
8035 echo "$config_vars" >> config.make;;
8037 test -d bits || mkdir bits ;;
8045 ac_clean_files=$ac_clean_files_save
8047 test $ac_write_fail = 0 ||
8048 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8051 # configure is writing to config.log, and then calls config.status.
8052 # config.status does its own redirection, appending to config.log.
8053 # Unfortunately, on DOS this fails, as config.log is still kept open
8054 # by configure, so config.status won't be able to
write to it
; its
8055 # output is simply discarded. So we exec the FD to /dev/null,
8056 # effectively closing config.log, so it can be properly (re)opened and
8057 # appended to by config.status. When coming back to configure, we
8058 # need to make the FD available again.
8059 if test "$no_create" != yes; then
8061 ac_config_status_args
=
8062 test "$silent" = yes &&
8063 ac_config_status_args
="$ac_config_status_args --quiet"
8065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8068 # would make configure fail if this is the last instruction.
8069 $ac_cs_success || as_fn_exit
1
8073 # CONFIG_SUBDIRS section.
8075 if test "$no_recursion" != yes; then
8077 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8078 # so they do not pile up.
8079 ac_sub_configure_args
=
8081 eval "set x $ac_configure_args"
8085 if test -n "$ac_prev"; then
8090 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
8091 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
8092 ac_prev
=cache_file
;;
8093 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
8094 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
8097 --config-cache |
-C)
8099 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
8101 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
8103 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
8105 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
8107 --disable-option-checking)
8111 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8113 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
8117 # Always prepend --prefix to ensure using the same prefix
8118 # in subdir configurations.
8119 ac_arg
="--prefix=$prefix"
8121 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8123 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
8126 if test "$silent" = yes; then
8127 ac_sub_configure_args
="--silent $ac_sub_configure_args"
8130 # Always prepend --disable-option-checking to silence warnings, since
8131 # different subdirs can have different --enable and --with options.
8132 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
8135 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
8137 # Do not complain, so a configure script can configure whichever
8138 # parts of a large source tree are present.
8139 test -d "$srcdir/$ac_dir" ||
continue
8141 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8143 $as_echo "$ac_msg" >&6
8144 as_dir
="$ac_dir"; as_fn_mkdir_p
8148 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8150 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8151 # A ".." for each directory in $ac_dir_suffix.
8152 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8153 case $ac_top_builddir_sub in
8154 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8155 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8158 ac_abs_top_builddir
=$ac_pwd
8159 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8160 # for backward compatibility:
8161 ac_top_builddir
=$ac_top_build_prefix
8164 .
) # We are building in place.
8166 ac_top_srcdir
=$ac_top_builddir_sub
8167 ac_abs_top_srcdir
=$ac_pwd ;;
8168 [\\/]* | ?
:[\\/]* ) # Absolute name.
8169 ac_srcdir
=$srcdir$ac_dir_suffix;
8170 ac_top_srcdir
=$srcdir
8171 ac_abs_top_srcdir
=$srcdir ;;
8173 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8174 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8175 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8177 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8182 # Check for guested configure; otherwise get Cygnus style configure.
8183 if test -f "$ac_srcdir/configure.gnu"; then
8184 ac_sub_configure
=$ac_srcdir/configure.gnu
8185 elif test -f "$ac_srcdir/configure"; then
8186 ac_sub_configure
=$ac_srcdir/configure
8187 elif test -f "$ac_srcdir/configure.in"; then
8188 # This should be Cygnus configure.
8189 ac_sub_configure
=$ac_aux_dir/configure
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8192 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8196 # The recursion is here.
8197 if test -n "$ac_sub_configure"; then
8198 # Make the cache file name correct relative to the subdirectory.
8200 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
8202 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
8205 { $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
8206 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8207 # The eval makes quoting arguments work.
8208 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8209 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8210 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8216 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8218 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}