2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for GNU C Library (see version.h).
5 # Report bugs to <https://sourceware.org/bugzilla/>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \
${$as_var+y} \
69 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
74 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
81 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself
=$0 ;;
91 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
120 _as_can_reexec
=no
; export _as_can_reexec
;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
129 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec
=; unset _as_can_reexec
;}
142 if test "x$CONFIG_SHELL" = x
; then
143 as_bourne_compatible
="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required
="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
186 if (eval "$as_required") 2>/dev
/null
192 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
198 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
204 *) as_dir
=$as_dir/ ;;
209 for as_base
in sh bash ksh sh5
; do
210 # Try only shells that exist, to save several forks.
211 as_shell
=$as_dir$as_base
212 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
213 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
215 CONFIG_SHELL
=$as_shell as_have_required
=yes
216 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
230 if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
231 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 if test x
$as_have_required = xno
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://sourceware.org/bugzilla/ about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Do nothing but, unlike ":", preserve the value of $?.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir
=.
/$as_dir;;
333 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
337 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs
="'$as_qdir' $as_dirs"
341 as_dir
=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
367 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p
()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
387 eval 'as_fn_append ()
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
412 as_val
=`expr "$@" || test $? -eq 1`
418 # Do nothing but, unlike ":", preserve the value of $?.
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
432 as_status
=$1; test $as_status -eq 0 && as_status
=1
434 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit
$as_status
441 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
448 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
454 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
460 as_me
=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
479 # Avoid depending upon Character Ranges.
480 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits
='0123456789'
484 as_cr_alnum
=$as_cr_Letters$as_cr_digits
487 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
488 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
507 chmod +x
"$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec
=no
; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
518 # Exit status is that of the last command.
523 # Determine whether it's possible to make 'echo' print without a newline.
524 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525 # for compatibility with existing Makefiles.
526 ECHO_C
= ECHO_N
= ECHO_T
=
527 case `echo -n x` in #(((((
529 case `echo 'xy\c'` in
530 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
539 # For backward compatibility with old third-party macros, we provide
540 # the shell variables $as_echo and $as_echo_n. New code should use
541 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542 as_echo
='printf %s\n'
543 as_echo_n
='printf %s'
546 rm -f conf$$ conf$$.exe conf$$.
file
547 if test -d conf$$.dir
; then
548 rm -f conf$$.dir
/conf$$.
file
551 mkdir conf$$.dir
2>/dev
/null
553 if (echo >conf$$.
file) 2>/dev
/null
; then
554 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
562 elif ln conf$$.
file conf$$
2>/dev
/null
; then
570 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
571 rmdir conf$$.dir
2>/dev
/null
573 if mkdir
-p .
2>/dev
/null
; then
574 as_mkdir_p
='mkdir -p "$as_dir"'
576 test -d .
/-p && rmdir .
/-p
581 as_executable_p
=as_fn_executable_p
583 # Sed expression to map a string onto a valid CPP name.
584 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586 # Sed expression to map a string onto a valid variable name.
587 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
594 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595 # so uname gets run too.
596 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
601 ac_default_prefix
=/usr
/local
603 ac_config_libobj_dir
=.
610 # Identity of this package.
611 PACKAGE_NAME
='GNU C Library'
612 PACKAGE_TARNAME
='glibc'
613 PACKAGE_VERSION
='(see version.h)'
614 PACKAGE_STRING
='GNU C Library (see version.h)'
615 PACKAGE_BUGREPORT
='https://sourceware.org/bugzilla/'
616 PACKAGE_URL
='https://www.gnu.org/software/glibc/'
618 ac_unique_file
="include/features.h"
619 enable_option_checking
=no
620 ac_subst_vars
='LTLIBOBJS
635 libc_cv_localstatedir
637 libc_cv_complocaledir
641 libc_cv_gcc_unwind_find_fde
644 libc_cv_cxx_thread_local
647 libc_cv_fortify_source
648 enable_fortify_source
653 libc_cv_cc_loop_to_function
654 libc_cv_cc_submachine
656 libc_cv_mtls_dialect_gnu2
661 libc_cv_cc_with_libunwind
663 libc_cv_protected_data
675 libc_cv_textrel_ifunc
703 libc_cv_static_nss_crypt
711 hardcoded_path_in_tests
712 enable_timezone_tools
714 extra_nonshared_cflags
769 program_transform_name
782 enable_option_checking
791 with_nonshared_cflags
792 with_rtld_early_cflags
798 enable_timezone_tools
799 enable_hardcoded_path_in_tests
802 enable_stack_protector
805 enable_maintainer_mode
810 enable_memory_tagging
820 enable_fortify_source
823 ac_precious_vars
='build_alias
837 # Initialize some variables set by options.
839 ac_init_version
=false
840 ac_unrecognized_opts
=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
851 program_transform_name
=s
,x
,x
,
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir
='${exec_prefix}/bin'
866 sbindir
='${exec_prefix}/sbin'
867 libexecdir
='${exec_prefix}/libexec'
868 datarootdir
='${prefix}/share'
869 datadir
='${datarootdir}'
870 sysconfdir
='${prefix}/etc'
871 sharedstatedir
='${prefix}/com'
872 localstatedir
='${prefix}/var'
873 runstatedir
='${localstatedir}/run'
874 includedir
='${prefix}/include'
875 oldincludedir
='/usr/include'
876 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir
='${datarootdir}/info'
882 libdir
='${exec_prefix}/lib'
883 localedir
='${datarootdir}/locale'
884 mandir
='${datarootdir}/man'
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\
$ac_option
898 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 case $ac_dashdash$ac_option in
907 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
909 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
912 -build |
--build |
--buil |
--bui |
--bu)
913 ac_prev
=build_alias
;;
914 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
915 build_alias
=$ac_optarg ;;
917 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
918 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
919 ac_prev
=cache_file
;;
920 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
921 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
922 cache_file
=$ac_optarg ;;
925 cache_file
=config.cache
;;
927 -datadir |
--datadir |
--datadi |
--datad)
929 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
930 datadir
=$ac_optarg ;;
932 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
933 |
--dataroo |
--dataro |
--datar)
934 ac_prev
=datarootdir
;;
935 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
936 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
937 datarootdir
=$ac_optarg ;;
939 -disable-* |
--disable-*)
940 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
943 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
944 ac_useropt_orig
=$ac_useropt
945 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep
=', ';;
953 eval enable_
$ac_useropt=no
;;
955 -docdir |
--docdir |
--docdi |
--doc |
--do)
957 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
960 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
962 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
965 -enable-* |
--enable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
970 ac_useropt_orig
=$ac_useropt
971 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep
=', ';;
979 eval enable_
$ac_useropt=\
$ac_optarg ;;
981 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
982 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
983 |
--exec |
--exe |
--ex)
984 ac_prev
=exec_prefix
;;
985 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
986 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
987 |
--exec=* |
--exe=* |
--ex=*)
988 exec_prefix
=$ac_optarg ;;
990 -gas |
--gas |
--ga |
--g)
991 # Obsolete; use --with-gas.
994 -help |
--help |
--hel |
--he |
-h)
996 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
997 ac_init_help
=recursive
;;
998 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
999 ac_init_help
=short
;;
1001 -host |
--host |
--hos |
--ho)
1002 ac_prev
=host_alias
;;
1003 -host=* |
--host=* |
--hos=* |
--ho=*)
1004 host_alias
=$ac_optarg ;;
1006 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1008 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1010 htmldir
=$ac_optarg ;;
1012 -includedir |
--includedir |
--includedi |
--included |
--include \
1013 |
--includ |
--inclu |
--incl |
--inc)
1014 ac_prev
=includedir
;;
1015 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1016 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1017 includedir
=$ac_optarg ;;
1019 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1021 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1022 infodir
=$ac_optarg ;;
1024 -libdir |
--libdir |
--libdi |
--libd)
1026 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1027 libdir
=$ac_optarg ;;
1029 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1030 |
--libexe |
--libex |
--libe)
1031 ac_prev
=libexecdir
;;
1032 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1033 |
--libexe=* |
--libex=* |
--libe=*)
1034 libexecdir
=$ac_optarg ;;
1036 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1037 ac_prev
=localedir
;;
1038 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1039 localedir
=$ac_optarg ;;
1041 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1042 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1043 ac_prev
=localstatedir
;;
1044 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1045 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1046 localstatedir
=$ac_optarg ;;
1048 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1050 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1051 mandir
=$ac_optarg ;;
1053 -nfp |
--nfp |
--nf)
1054 # Obsolete; use --without-fp.
1057 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1058 |
--no-cr |
--no-c |
-n)
1061 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1062 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1065 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1066 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1067 |
--oldin |
--oldi |
--old |
--ol |
--o)
1068 ac_prev
=oldincludedir
;;
1069 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1070 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1071 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1072 oldincludedir
=$ac_optarg ;;
1074 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1076 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1077 prefix
=$ac_optarg ;;
1079 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1080 |
--program-pre |
--program-pr |
--program-p)
1081 ac_prev
=program_prefix
;;
1082 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1083 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1084 program_prefix
=$ac_optarg ;;
1086 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1087 |
--program-suf |
--program-su |
--program-s)
1088 ac_prev
=program_suffix
;;
1089 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1090 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1091 program_suffix
=$ac_optarg ;;
1093 -program-transform-name |
--program-transform-name \
1094 |
--program-transform-nam |
--program-transform-na \
1095 |
--program-transform-n |
--program-transform- \
1096 |
--program-transform |
--program-transfor \
1097 |
--program-transfo |
--program-transf \
1098 |
--program-trans |
--program-tran \
1099 |
--progr-tra |
--program-tr |
--program-t)
1100 ac_prev
=program_transform_name
;;
1101 -program-transform-name=* |
--program-transform-name=* \
1102 |
--program-transform-nam=* |
--program-transform-na=* \
1103 |
--program-transform-n=* |
--program-transform-=* \
1104 |
--program-transform=* |
--program-transfor=* \
1105 |
--program-transfo=* |
--program-transf=* \
1106 |
--program-trans=* |
--program-tran=* \
1107 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1108 program_transform_name
=$ac_optarg ;;
1110 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1112 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1113 pdfdir
=$ac_optarg ;;
1115 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1117 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1120 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1121 |
-silent |
--silent |
--silen |
--sile |
--sil)
1124 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1125 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1126 |
--run |
--ru |
--r)
1127 ac_prev
=runstatedir
;;
1128 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1129 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1130 |
--run=* |
--ru=* |
--r=*)
1131 runstatedir
=$ac_optarg ;;
1133 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1135 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1137 sbindir
=$ac_optarg ;;
1139 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1140 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1141 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1143 ac_prev
=sharedstatedir
;;
1144 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1145 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1146 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1148 sharedstatedir
=$ac_optarg ;;
1150 -site |
--site |
--sit)
1152 -site=* |
--site=* |
--sit=*)
1155 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1157 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1158 srcdir
=$ac_optarg ;;
1160 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1161 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1162 ac_prev
=sysconfdir
;;
1163 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1164 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1165 sysconfdir
=$ac_optarg ;;
1167 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1168 ac_prev
=target_alias
;;
1169 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1170 target_alias
=$ac_optarg ;;
1172 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1175 -version |
--version |
--versio |
--versi |
--vers |
-V)
1176 ac_init_version
=: ;;
1179 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1182 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1183 ac_useropt_orig
=$ac_useropt
1184 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1189 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep
=', ';;
1192 eval with_
$ac_useropt=\
$ac_optarg ;;
1194 -without-* |
--without-*)
1195 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1198 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1199 ac_useropt_orig
=$ac_useropt
1200 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1205 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep
=', ';;
1208 eval with_
$ac_useropt=no
;;
1211 # Obsolete; use --with-x.
1214 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1215 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1216 ac_prev
=x_includes
;;
1217 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1218 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1219 x_includes
=$ac_optarg ;;
1221 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1222 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1223 ac_prev
=x_libraries
;;
1224 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1225 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1226 x_libraries
=$ac_optarg ;;
1228 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1229 Try \`$0 --help' for more information"
1233 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
1235 case $ac_envvar in #(
1236 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1237 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1239 eval $ac_envvar=\
$ac_optarg
1240 export $ac_envvar ;;
1243 # FIXME: should be removed in autoconf 3.0.
1244 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1246 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1253 if test -n "$ac_prev"; then
1254 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1255 as_fn_error $?
"missing argument to $ac_option"
1258 if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1261 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1262 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 # Check all directory arguments for consistency.
1267 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir runstatedir
1272 eval ac_val
=\$
$ac_var
1273 # Remove trailing slashes.
1276 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\
$ac_val;;
1279 # Be sure to have absolute directory names.
1281 [\\/$
]* | ?
:[\\/]* ) continue;;
1282 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1284 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1292 target
=$target_alias
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x
; then
1296 if test "x$build_alias" = x
; then
1297 cross_compiling
=maybe
1298 elif test "x$build_alias" != "x$host_alias"; then
1304 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1306 test "$silent" = yes && exec 6>/dev
/null
1309 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di
=`ls -di .` &&
1311 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $?
"working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $?
"pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted
=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir
=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 printf "%s\n" X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1349 ac_srcdir_defaulted
=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1353 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1367 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 for ac_var
in $ac_precious_vars; do
1370 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1372 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1383 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1442 --build=BUILD configure
for building on BUILD
[guessed
]
1443 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1447 if test -n "$ac_init_help"; then
1448 case $ac_init_help in
1449 short | recursive
) echo "Configuration of GNU C Library (see version.h):";;
1454 --disable-option-checking ignore unrecognized
--enable/--with options
1455 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1456 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1457 --disable-sanity-checks really
do not use threads
(should not be used except
1458 in special situations
) [default
=yes]
1459 --enable-shared build shared library
[default
=yes if GNU ld
]
1460 --enable-profile build profiled library
[default
=no
]
1461 --disable-default-pie Do not build glibc programs and the testsuite as PIE
1463 --disable-timezone-tools
1464 do not
install timezone tools
[default
=install]
1465 --enable-hardcoded-path-in-tests
1466 hardcode newly built glibc path
in tests
1468 --disable-hidden-plt do not hide internal
function calls to avoid PLT
1469 --enable-bind-now disable lazy relocations
in DSOs
1470 --enable-stack-protector=[yes|no|all|strong
]
1471 Use
-fstack-protector[-all|
-strong] to detect glibc
1473 --enable-static-nss build static NSS modules
[default
=no
]
1474 --disable-force-install don
't force installation of files from this package,
1475 even if they are older than the installed files
1476 --enable-maintainer-mode
1477 enable make rules and dependencies not useful (and
1478 sometimes confusing) to the casual installer
1479 --enable-kernel=VERSION compile for compatibility with kernel not older than
1481 --enable-all-warnings enable all useful warnings gcc can issue
1482 --disable-werror do not build with -Werror
1483 --enable-multi-arch enable single DSO with optimizations for multiple
1485 --enable-memory-tagging enable memory tagging if supported by the
1486 architecture [default=no]
1487 --enable-crypt build and install the legacy passphrase hashing
1489 --enable-nss-crypt enable libcrypt to use nss
1490 --enable-systemtap enable systemtap static probe points [default=no]
1491 --disable-build-nscd disable building and installing the nscd daemon
1492 --disable-nscd library functions will not contact the nscd daemon
1493 --enable-pt_chown Enable building and installing pt_chown
1494 --enable-mathvec Enable building and installing mathvec [default
1495 depends on architecture]
1496 --enable-cet enable Intel Control-flow Enforcement Technology
1498 --disable-scv syscalls will not use scv instruction, even if the
1499 kernel supports it, powerpc only
1500 --enable-fortify-source[=1|2|3]
1501 Use -D_FORTIFY_SOURCE=[1|2|3] to control code
1502 hardening, defaults to highest possible value
1503 supported by the build compiler.
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1509 --with-bugurl=URL Direct users to URL to report a bug
1510 --with-gd=DIR find libgd include dir and library with prefix DIR
1511 --with-gd-include=DIR find libgd include files in DIR
1512 --with-gd-lib=DIR find libgd library files in DIR
1513 --with-binutils=PATH specify location of binutils (as and ld)
1514 --with-selinux if building with SELinux support
1515 --with-headers=PATH location of system headers to use (for example
1516 /usr/src/linux/include) [default=compiler default]
1517 --with-nonshared-cflags=CFLAGS
1518 build nonshared libraries with additional CFLAGS
1519 --with-rtld-early-cflags=CFLAGS
1520 build early initialization with additional CFLAGS
1521 --with-timeoutfactor=NUM
1522 specify an integer to scale the timeout
1523 --with-cpu=CPU select code for CPU variant
1525 Some influential environment variables:
1526 CC C compiler command
1527 CFLAGS C compiler flags
1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1529 nonstandard directory <lib dir>
1530 LIBS libraries to pass to the linker, e.g. -l<library>
1531 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1532 you have headers in a nonstandard directory <include dir>
1534 CXX C++ compiler command
1535 CXXFLAGS C++ compiler flags
1537 Use these variables to override the choices made by `configure' or to
help
1538 it to
find libraries and programs with nonstandard names
/locations.
1540 Report bugs to
<https
://sourceware.org
/bugzilla
/>.
1541 GNU C Library home page
: <https
://www.gnu.org
/software
/glibc
/>.
1542 General
help using GNU software
: <https
://www.gnu.org
/gethelp
/>.
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1556 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1558 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1563 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1566 ac_abs_top_builddir
=$ac_pwd
1567 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir
=$ac_top_build_prefix
1572 .
) # We are building in place.
1574 ac_top_srcdir
=$ac_top_builddir_sub
1575 ac_abs_top_srcdir
=$ac_pwd ;;
1576 [\\/]* | ?
:[\\/]* ) # Absolute name.
1577 ac_srcdir
=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir
=$srcdir
1579 ac_abs_top_srcdir
=$srcdir ;;
1581 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1585 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1587 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1588 # Check for configure.gnu first; this name is used for a wrapper for
1589 # Metaconfig's "Configure" on case-insensitive file systems.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1597 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1606 GNU C Library configure
(see version.h
)
1607 generated by GNU Autoconf
2.71
1609 Copyright
(C
) 2021 Free Software Foundation
, Inc.
1610 This configure
script is free software
; the Free Software Foundation
1611 gives unlimited permission to copy
, distribute and modify it.
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile
()
1625 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1626 rm -f conftest.
$ac_objext conftest.beam
1627 if { { ac_try
="$ac_compile"
1629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 printf "%s\n" "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext
1649 printf "%s\n" "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_c_try_compile
1659 # ac_fn_cxx_try_compile LINENO
1660 # ----------------------------
1661 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_cxx_try_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest.beam
1666 if { { ac_try="$ac_compile"
1668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1669 *) ac_try_echo
=$ac_try;;
1671 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 printf "%s\n" "$ac_try_echo"; } >&5
1673 (eval "$ac_compile") 2>conftest.err
1675 if test -s conftest.err
; then
1676 grep -v '^ *+' conftest.err
>conftest.er1
1677 cat conftest.er1
>&5
1678 mv -f conftest.er1 conftest.err
1680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_cxx_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest.
$ac_objext
1688 printf "%s\n" "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.
$ac_ext >&5
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status
$ac_retval
1696 } # ac_fn_cxx_try_compile
1698 # ac_fn_cxx_try_link LINENO
1699 # -------------------------
1700 # Try to link conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_cxx_try_link
()
1703 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1704 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1705 if { { ac_try
="$ac_link"
1707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 printf "%s\n" "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>conftest.err
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_cxx_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest$ac_exeext && {
1724 test "$cross_compiling" = yes ||
1725 test -x conftest$ac_exeext
1730 printf "%s\n" "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1743 } # ac_fn_cxx_try_link
1745 # ac_fn_c_try_link LINENO
1746 # -----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded.
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1752 if { { ac_try="$ac_link"
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 printf "%s\n" "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 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 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest
$ac_exeext && {
1771 test "$cross_compiling" = yes ||
1772 test -x conftest
$ac_exeext
1777 printf "%s\n" "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.
$ac_ext >&5
1782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784 # interfere with the next link command; also delete a directory that is
1785 # left behind by Apple's compiler. We do this before executing the actions.
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status
$ac_retval
1790 } # ac_fn_c_try_link
1792 # ac_fn_c_try_cpp LINENO
1793 # ----------------------
1794 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1797 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1798 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 printf "%s\n" "$ac_try_echo"; } >&5
1805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } > conftest.i && {
1814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1820 printf "%s\n" "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1829 ac_configure_args_raw=
1834 ac_arg=`printf "%s\n" "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1836 as_fn_append ac_configure_args_raw " '$ac_arg'"
1839 case $ac_configure_args_raw in
1843 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1844 ac_unsafe_a="$ac_unsafe_z#~
"
1845 ac_safe_unquote="s
/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g
"
1846 ac_configure_args_raw=` printf "%s
\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1849 cat >config.log <<_ACEOF
1850 This file contains any messages produced by compilers while
1851 running configure, to aid debugging if configure makes a mistake.
1853 It was created by GNU C Library $as_me (see version.h), which was
1854 generated by GNU Autoconf 2.71. Invocation command line was
1856 $ $0$ac_configure_args_raw
1866 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1867 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1868 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1869 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1870 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1872 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1873 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1875 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1876 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1877 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1878 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1879 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1880 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1881 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 case $as_dir in #(((
1892 *) as_dir=$as_dir/ ;;
1894 printf "%s
\n" "PATH
: $as_dir"
1910 # Keep a trace of the command line.
1911 # Strip out --no-create and --no-recursion so they do not pile up.
1912 # Strip out --silent because we don't want to record it for future runs.
1913 # Also quote any args containing shell meta-characters.
1914 # Make two passes to allow for proper duplicate-argument suppression.
1918 ac_must_keep_next=false
1924 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926 | -silent | --silent | --silen | --sile | --sil)
1929 ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1932 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1934 as_fn_append ac_configure_args1 " '$ac_arg'"
1935 if test $ac_must_keep_next = true; then
1936 ac_must_keep_next=false # Got value, back to normal.
1939 *=* | --config-cache | -C | -disable-* | --disable-* \
1940 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1941 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1942 | -with-* | --with-* | -without-* | --without-* | --x)
1943 case "$ac_configure_args0 " in
1944 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1947 -* ) ac_must_keep_next=true ;;
1950 as_fn_append ac_configure_args " '$ac_arg'"
1955 { ac_configure_args0=; unset ac_configure_args0;}
1956 { ac_configure_args1=; unset ac_configure_args1;}
1958 # When interrupted or exit'd, cleanup temporary files, and complete
1959 # config.log. We remove comments because anyway the quotes in there
1960 # would cause problems or look ugly.
1961 # WARNING: Use '\'' to represent an apostrophe within the trap.
1962 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1963 trap 'exit_status=$?
1966 # Save into config.log some information that might help in debugging.
1970 printf "%s
\n" "## ---------------- ##
1971 ## Cache variables. ##
1972 ## ---------------- ##"
1974 # The following way of writing the cache mishandles newlines in values,
1976 for ac_var
in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1977 eval ac_val
=\$
$ac_var
1981 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1982 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1985 _ | IFS | as_nl
) ;; #(
1986 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
1987 *) { eval $ac_var=; unset $ac_var;} ;;
1992 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1993 *${as_nl}ac_space
=\
*)
1995 "s/'\''/'\''\\\\'\'''\''/g;
1996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2006 printf "%s\n" "## ----------------- ##
2007 ## Output variables. ##
2008 ## ----------------- ##"
2010 for ac_var
in $ac_subst_vars
2012 eval ac_val
=\$
$ac_var
2014 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2016 printf "%s\n" "$ac_var='\''$ac_val'\''"
2020 if test -n "$ac_subst_files"; then
2021 printf "%s\n" "## ------------------- ##
2022 ## File substitutions. ##
2023 ## ------------------- ##"
2025 for ac_var in $ac_subst_files
2027 eval ac_val=\$$ac_var
2029 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 printf "%s\n" "$ac_var='\''$ac_val'\''"
2036 if test -s confdefs.h
; then
2037 printf "%s\n" "## ----------- ##
2044 test "$ac_signal" != 0 &&
2045 printf "%s\n" "$as_me: caught signal $ac_signal"
2046 printf "%s\n" "$as_me: exit $exit_status"
2048 rm -f core
*.core core.conftest.
* &&
2049 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
2052 for ac_signal in 1 2 13 15; do
2053 trap 'ac_signal
='$ac_signal'; as_fn_exit
1' $ac_signal
2057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2058 rm -f -r conftest* confdefs.h
2060 printf "%s\n" "/* confdefs.h */" > confdefs.h
2062 # Predefined preprocessor variables.
2064 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2066 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2068 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2070 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2072 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2074 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2077 # Let the site file select an alternate cache file if it wants to.
2078 # Prefer an explicitly selected file to automatically selected ones.
2079 if test -n "$CONFIG_SITE"; then
2080 ac_site_files="$CONFIG_SITE"
2081 elif test "x$prefix" != xNONE; then
2082 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2084 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2087 for ac_site_file in $ac_site_files
2089 case $ac_site_file in #(
2093 ac_site_file=./$ac_site_file ;;
2095 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2097 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2098 sed 's
/^
/|
/' "$ac_site_file" >&5
2100 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2101 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
2102 as_fn_error $? "failed to load site script $ac_site_file
2103 See \`config.log
' for more details" "$LINENO" 5; }
2107 if test -r "$cache_file"; then
2108 # Some versions of bash will fail to source /dev/null (special files
2109 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2110 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2112 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2114 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2115 *) . "./$cache_file";;
2119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2120 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2124 # Test code for whether the C compiler supports C89 (global declarations)
2125 ac_c_conftest_c89_globals='
2126 /* Does the compiler advertise C89 conformance?
2127 Do not
test the value of __STDC__
, because some compilers
set it to
0
2128 while being otherwise adequately conformant.
*/
2129 #if !defined __STDC__
2130 # error "Compiler does not advertise C89 conformance"
2136 /* Most of the following tests are stolen from RCS
5.7 src
/conf.sh.
*/
2137 struct buf
{ int x
; };
2138 struct buf
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
2139 static char
*e
(p
, i
)
2145 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
2150 s
= g
(p
, va_arg
(v
,int
));
2155 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
2156 function prototypes and stuff
, but not \xHH hex character constants.
2157 These
do not provoke an error unfortunately
, instead are silently treated
2158 as an
"x". The following induces an error
, until -std is added to get
2159 proper ANSI mode. Curiously
\x00 != x always comes out true
, for an
2160 array size
at least. It is necessary to
write \x00 == 0 to get something
2161 that is true only with
-std.
*/
2162 int osf4_cc_array
['\''\x00'\'' == 0 ?
1 : -1];
2164 /* IBM C
6 for AIX is almost-ANSI by default
, but it replaces macro parameters
2165 inside
strings and character constants.
*/
2166 #define FOO(x) '\''x'\''
2167 int xlc6_cc_array
[FOO
(a
) == '\''x
'\'' ?
1 : -1];
2169 int
test (int i
, double x
);
2170 struct s1
{int
(*f
) (int a
);};
2171 struct s2
{int
(*f
) (double a
);};
2172 int pairnames
(int
, char
**, int
*(*)(struct buf
*, struct stat
*, int
),
2175 # Test code for whether the C compiler supports C89 (body of main).
2176 ac_c_conftest_c89_main='
2177 ok |
= (argc
== 0 || f
(e
, argv
, 0) != argv
[0] || f
(e
, argv
, 1) != argv
[1]);
2180 # Test code for whether the C compiler supports C99 (global declarations)
2181 ac_c_conftest_c99_globals='
2182 // Does the compiler advertise C99 conformance?
2183 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2184 # error "Compiler does not advertise C99 conformance"
2187 #include <stdbool.h>
2188 extern int puts
(const char
*);
2189 extern int
printf (const char
*, ...
);
2190 extern int dprintf
(int
, const char
*, ...
);
2191 extern void
*malloc
(size_t
);
2193 // Check varargs macros. These examples are taken from C99
6.10.3.5.
2194 // dprintf is used instead of fprintf to avoid needing to
declare
2196 #define debug(...) dprintf (2, __VA_ARGS__)
2197 #define showlist(...) puts (#__VA_ARGS__)
2198 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2200 test_varargs_macros
(void
)
2205 debug
("X = %d\n", x
);
2206 showlist
(The first
, second
, and third items.
);
2207 report
(x
>y
, "x is %d but y is %d", x
, y
);
2210 // Check long long types.
2211 #define BIG64 18446744073709551615ull
2212 #define BIG32 4294967295ul
2213 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2215 #error "your preprocessor is broken"
2219 #error "your preprocessor is broken"
2221 static long long int bignum
= -9223372036854775807LL;
2222 static unsigned long long int ubignum
= BIG64
;
2224 struct incomplete_array
2232 const wchar_t
*name
;
2236 typedef const char
*ccp
;
2239 test_restrict
(ccp restrict text
)
2241 // See
if C
++-style comments work.
2242 // Iterate through items via the restricted pointer.
2243 // Also check
for declarations
in for loops.
2244 for (unsigned int i
= 0; *(text
+i
) != '\''\
0'\''; ++i
)
2249 // Check varargs and va_copy.
2251 test_varargs
(const char
*format
, ...
)
2254 va_start
(args
, format
);
2256 va_copy
(args_copy
, args
);
2258 const char
*str
= "";
2266 case '\''s
'\'': // string
2267 str
= va_arg
(args_copy
, const char
*);
2269 case '\''d
'\'': // int
2270 number
= va_arg
(args_copy
, int
);
2272 case '\''f
'\'': // float
2273 fnumber
= va_arg
(args_copy
, double
);
2282 return *str
&& number
&& fnumber
;
2286 # Test code for whether the C compiler supports C99 (body of main).
2287 ac_c_conftest_c99_main='
2289 _Bool success
= false
;
2290 success |
= (argc
!= 0);
2293 if (test_restrict
("String literal") == 0)
2295 char
*restrict newvar
= "Another string";
2298 success
&= test_varargs
("s, d'\'' f .", "string", 65, 34.234);
2299 test_varargs_macros
();
2301 // Check flexible array members.
2302 struct incomplete_array
*ia
=
2303 malloc
(sizeof
(struct incomplete_array
) + (sizeof
(double
) * 10));
2305 for (int i
= 0; i
< ia-
>datasize
; ++i
)
2306 ia-
>data
[i
] = i
* 1.234;
2308 // Check named initializers.
2309 struct named_init ni
= {
2311 .name
= L
"Test wide string",
2312 .average
= 543.34343,
2317 int dynamic_array
[ni.number
];
2318 dynamic_array
[0] = argv
[0][0];
2319 dynamic_array
[ni.number
- 1] = 543;
2321 // work around unused variable warnings
2322 ok |
= (!success || bignum
== 0LL || ubignum
== 0uLL || newvar
[0] == '\''x
'\''
2323 || dynamic_array
[ni.number
- 1] != 543);
2326 # Test code for whether the C compiler supports C11 (global declarations)
2327 ac_c_conftest_c11_globals='
2328 // Does the compiler advertise C11 conformance?
2329 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2330 # error "Compiler does not advertise C11 conformance"
2334 char _Alignas
(double
) aligned_as_double
;
2335 char _Alignas
(0) no_special_alignment
;
2336 extern char aligned_as_int
;
2337 char _Alignas
(0) _Alignas
(int
) aligned_as_int
;
2342 int_alignment
= _Alignof
(int
),
2343 int_array_alignment
= _Alignof
(int
[100]),
2344 char_alignment
= _Alignof
(char
)
2346 _Static_assert
(0 < -_Alignof (int
), "_Alignof is signed");
2349 int _Noreturn does_not_return
(void
) { for (;;) continue; }
2351 // Check _Static_assert.
2352 struct test_static_assert
2355 _Static_assert
(sizeof
(int
) <= sizeof
(long int
),
2356 "_Static_assert does not work in struct");
2360 // Check UTF-8 literals.
2361 #define u8 syntax error!
2362 char const utf8_literal
[] = u8
"happens to be ASCII" "another string";
2364 // Check duplicate typedefs.
2365 typedef long
*long_ptr
;
2366 typedef long int
*long_ptr
;
2367 typedef long_ptr long_ptr
;
2369 // Anonymous structures and unions
-- taken from C11
6.7.2.1 Example
1.
2373 struct
{ int i
; int j
; };
2374 struct
{ int k
; long int l
; } w
;
2380 # Test code for whether the C compiler supports C11 (body of main).
2381 ac_c_conftest_c11_main='
2382 _Static_assert
((offsetof
(struct anonymous
, i
)
2383 == offsetof
(struct anonymous
, w.k
)),
2384 "Anonymous union alignment botch");
2390 # Test code for whether the C compiler supports C11 (complete).
2391 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2392 ${ac_c_conftest_c99_globals}
2393 ${ac_c_conftest_c11_globals}
2396 main (int argc, char **argv)
2399 ${ac_c_conftest_c89_main}
2400 ${ac_c_conftest_c99_main}
2401 ${ac_c_conftest_c11_main}
2406 # Test code for whether the C compiler supports C99 (complete).
2407 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2408 ${ac_c_conftest_c99_globals}
2411 main (int argc, char **argv)
2414 ${ac_c_conftest_c89_main}
2415 ${ac_c_conftest_c99_main}
2420 # Test code for whether the C compiler supports C89 (complete).
2421 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2424 main (int argc, char **argv)
2427 ${ac_c_conftest_c89_main}
2432 # Test code for whether the C++ compiler supports C++98 (global declarations)
2433 ac_cxx_conftest_cxx98_globals='
2434 // Does the compiler advertise C
++98 conformance?
2435 #if !defined __cplusplus || __cplusplus < 199711L
2436 # error "Compiler does not advertise C++98 conformance"
2439 // These inclusions are to reject old compilers that
2440 // lack the unsuffixed header files.
2442 #include <exception>
2444 // <cassert
> and
<cstring
> are
*not
* freestanding headers
in C
++98.
2445 extern void assert
(int
);
2447 extern int strcmp
(const char
*, const char
*);
2450 // Namespaces
, exceptions
, and templates were all added after
"C++ 2.0".
2451 using std
::exception
;
2456 void test_exception_syntax
()
2460 } catch
(const char
*s
) {
2461 // Extra parentheses suppress a warning when building autoconf itself
,
2462 // due to lint rules shared with
more typical C programs.
2463 assert
(!(strcmp
) (s
, "test"));
2467 template
<typename T
> struct test_template
2470 explicit test_template
(T t
) : val
(t
) {}
2471 template
<typename U
> T add
(U u
) { return static_cast
<T
>(u
) + val
; }
2474 } // anonymous namespace
2477 # Test code for whether the C++ compiler supports C++98 (body of main)
2478 ac_cxx_conftest_cxx98_main='
2482 test_exception_syntax
();
2483 test_template
<double
> tt
(2.0);
2484 assert
(tt.add
(4) == 6.0);
2485 assert
(true
&& !false
);
2489 # Test code for whether the C++ compiler supports C++11 (global declarations)
2490 ac_cxx_conftest_cxx11_globals='
2491 // Does the compiler advertise C
++ 2011 conformance?
2492 #if !defined __cplusplus || __cplusplus < 201103L
2493 # error "Compiler does not advertise C++11 conformance"
2498 constexpr int get_val
() { return 20; }
2509 delegate
(int n
) : n
(n
) {}
2510 delegate
(): delegate
(2354) {}
2512 virtual int getval
() { return this-
>n
; };
2517 class overridden
: public delegate
2520 overridden
(int n
): delegate
(n
) {}
2521 virtual int getval
() override final
{ return this-
>n
* 2; }
2527 nocopy
(int i
): i
(i
) {}
2529 nocopy
(const nocopy
&) = delete
;
2530 nocopy
& operator
=(const nocopy
&) = delete
;
2535 // for testing lambda expressions
2536 template
<typename Ret
, typename Fn
> Ret
eval(Fn f
, Ret v
)
2541 // for testing variadic templates and trailing
return types
2542 template
<typename V
> auto
sum(V first
) -> V
2546 template
<typename V
, typename... Args
> auto
sum(V first
, Args... rest
) -> V
2548 return first
+ sum(rest...
);
2553 # Test code for whether the C++ compiler supports C++11 (body of main)
2554 ac_cxx_conftest_cxx11_main='
2556 // Test auto and decltype
2558 auto a2
= 48573953.4;
2559 auto a3
= "String literal";
2562 for (auto i
= a3
; *i
; ++i
) { total
+= *i
; }
2564 decltype
(a2
) a4
= 34895.034;
2568 short sa
[cxx11test
::get_val
()] = { 0 };
2571 // Test initializer lists
2572 cxx11test
::testinit il
= { 4323, 435234.23544 };
2575 // Test range-based
for
2576 int array
[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2577 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2578 for (auto
&x
: array
) { x
+= 23; }
2581 // Test lambda expressions
2582 using cxx11test
::eval;
2583 assert
(eval ([](int x
) { return x
*2; }, 21) == 42);
2585 assert
(eval ([&](double x
) { return d
+= x
; }, 3.0) == 5.0);
2587 assert
(eval ([=](double x
) mutable
{ return d
+= x
; }, 4.0) == 9.0);
2591 // Test use of variadic templates
2592 using cxx11test
::sum;
2595 auto c
= sum(1.0, 2.0, 3.0);
2598 // Test constructor delegation
2599 cxx11test
::delegate d1
;
2600 cxx11test
::delegate d2
();
2601 cxx11test
::delegate d3
(45);
2604 // Test override and final
2605 cxx11test
::overridden o1
(55464);
2612 // Test template brackets
2613 test_template
<::test_template
<int
>> v
(test_template
<int
>(12));
2617 char const
*utf8
= u8
"UTF-8 string \u2500";
2618 char16_t const
*utf16
= u
"UTF-8 string \u2500";
2619 char32_t const
*utf32
= U
"UTF-32 string \u2500";
2623 # Test code for whether the C compiler supports C++11 (complete).
2624 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2625 ${ac_cxx_conftest_cxx11_globals}
2628 main (int argc, char **argv)
2631 ${ac_cxx_conftest_cxx98_main}
2632 ${ac_cxx_conftest_cxx11_main}
2637 # Test code for whether the C compiler supports C++98 (complete).
2638 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2640 main (int argc, char **argv)
2643 ${ac_cxx_conftest_cxx98_main}
2649 # Auxiliary files required by this configure script.
2650 ac_aux_files="install-sh config.guess config.sub"
2652 # Locations in which to look for auxiliary files.
2653 ac_aux_dir_candidates="${srcdir}/scripts"
2655 # Search for a directory containing all of the required auxiliary files,
2656 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2657 # If we don't
find one directory that contains all the files we need
,
2658 # we report the set of missing files from the *first* directory in
2659 # $ac_aux_dir_candidates and give up.
2660 ac_missing_aux_files
=""
2661 ac_first_candidate
=:
2662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2665 for as_dir
in $ac_aux_dir_candidates
2668 case $as_dir in #(((
2671 *) as_dir
=$as_dir/ ;;
2675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2676 ac_aux_dir_found
=yes
2678 for ac_aux
in $ac_aux_files
2680 # As a special case, if "install-sh" is required, that requirement
2681 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2682 # and $ac_install_sh is set appropriately for whichever one is found.
2683 if test x
"$ac_aux" = x
"install-sh"
2685 if test -f "${as_dir}install-sh"; then
2686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2687 ac_install_sh
="${as_dir}install-sh -c"
2688 elif test -f "${as_dir}install.sh"; then
2689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2690 ac_install_sh
="${as_dir}install.sh -c"
2691 elif test -f "${as_dir}shtool"; then
2692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2693 ac_install_sh
="${as_dir}shtool install -c"
2696 if $ac_first_candidate; then
2697 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2703 if test -f "${as_dir}${ac_aux}"; then
2704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2707 if $ac_first_candidate; then
2708 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2715 if test "$ac_aux_dir_found" = yes; then
2716 ac_aux_dir
="$as_dir"
2719 ac_first_candidate
=false
2728 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2732 # These three variables are undocumented and unsupported,
2733 # and are intended to be withdrawn in a future Autoconf release.
2734 # They can cause serious problems if a builder's source tree is in a directory
2735 # whose full name contains unusual characters.
2736 if test -f "${ac_aux_dir}config.guess"; then
2737 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2739 if test -f "${ac_aux_dir}config.sub"; then
2740 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2742 if test -f "$ac_aux_dir/configure"; then
2743 ac_configure
="$SHELL ${ac_aux_dir}configure"
2746 # Check that the precious variables saved in the cache have kept the same
2748 ac_cache_corrupted
=false
2749 for ac_var
in $ac_precious_vars; do
2750 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2751 eval ac_new_set
=\
$ac_env_${ac_var}_set
2752 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2753 eval ac_new_val
=\
$ac_env_${ac_var}_value
2754 case $ac_old_set,$ac_new_set in
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2757 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2758 ac_cache_corrupted
=: ;;
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2761 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2762 ac_cache_corrupted
=: ;;
2765 if test "x$ac_old_val" != "x$ac_new_val"; then
2766 # differences in whitespace do not lead to failure.
2767 ac_old_val_w
=`echo x $ac_old_val`
2768 ac_new_val_w
=`echo x $ac_new_val`
2769 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2771 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2772 ac_cache_corrupted
=:
2774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2775 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2776 eval $ac_var=\
$ac_old_val
2778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2779 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2781 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2784 # Pass precious variables to config.status.
2785 if test "$ac_new_set" = set; then
2787 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2788 *) ac_arg
=$ac_var=$ac_new_val ;;
2790 case " $ac_configure_args " in
2791 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2792 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2796 if $ac_cache_corrupted; then
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2798 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2800 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2801 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2802 and start over" "$LINENO" 5
2804 ## -------------------- ##
2805 ## Main body of script. ##
2806 ## -------------------- ##
2809 ac_cpp
='$CPP $CPPFLAGS'
2810 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2811 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2812 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2816 ac_config_headers
="$ac_config_headers config.h"
2822 # Check whether --with-pkgversion was given.
2823 if test ${with_pkgversion+y}
2825 withval
=$with_pkgversion; case "$withval" in
2826 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
2828 *) PKGVERSION
="($withval) " ;;
2831 PKGVERSION
="(GNU libc) "
2835 PKGVERSION_TEXI
=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2841 # Check whether --with-bugurl was given.
2842 if test ${with_bugurl+y}
2844 withval
=$with_bugurl; case "$withval" in
2845 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
2848 *) BUGURL
="$withval"
2852 BUGURL
="https://www.gnu.org/software/libc/bugs.html"
2862 REPORT_BUGS_TO
="<$BUGURL>"
2863 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
2870 printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h
2873 printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h
2876 # Glibc should not depend on any header files
2879 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2880 # here to work around the Autoconf issue discussed in
2881 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2884 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2885 # issue discussed in
2886 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2897 # Make sure we can run config.sub.
2898 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
2899 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2902 printf %s
"checking build system type... " >&6; }
2903 if test ${ac_cv_build+y}
2905 printf %s
"(cached) " >&6
2907 ac_build_alias
=$build_alias
2908 test "x$ac_build_alias" = x
&&
2909 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
2910 test "x$ac_build_alias" = x
&&
2911 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2912 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2913 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2917 printf "%s\n" "$ac_cv_build" >&6; }
2918 case $ac_cv_build in
2920 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2923 ac_save_IFS
=$IFS; IFS
='-'
2929 # Remember, the first character of IFS is used to create $*,
2930 # except with old shells:
2933 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2937 printf %s
"checking host system type... " >&6; }
2938 if test ${ac_cv_host+y}
2940 printf %s
"(cached) " >&6
2942 if test "x$host_alias" = x
; then
2943 ac_cv_host
=$ac_cv_build
2945 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2946 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2951 printf "%s\n" "$ac_cv_host" >&6; }
2954 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2957 ac_save_IFS
=$IFS; IFS
='-'
2963 # Remember, the first character of IFS is used to create $*,
2964 # except with old shells:
2967 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2981 ac_cpp
='$CPP $CPPFLAGS'
2982 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2985 if test -n "$ac_tool_prefix"; then
2986 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2987 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 printf %s
"checking for $ac_word... " >&6; }
2990 if test ${ac_cv_prog_CC+y}
2992 printf %s
"(cached) " >&6
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC
="$CC" # Let the user override the test.
2997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3001 case $as_dir in #(((
3004 *) as_dir
=$as_dir/ ;;
3006 for ac_exec_ext
in '' $ac_executable_extensions; do
3007 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3008 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3019 if test -n "$CC"; then
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3021 printf "%s\n" "$CC" >&6; }
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 printf "%s\n" "no" >&6; }
3029 if test -z "$ac_cv_prog_CC"; then
3031 # Extract the first word of "gcc", so it can be a program name with args.
3032 set dummy gcc
; ac_word
=$2
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 printf %s
"checking for $ac_word... " >&6; }
3035 if test ${ac_cv_prog_ac_ct_CC+y}
3037 printf %s
"(cached) " >&6
3039 if test -n "$ac_ct_CC"; then
3040 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3046 case $as_dir in #(((
3049 *) as_dir
=$as_dir/ ;;
3051 for ac_exec_ext
in '' $ac_executable_extensions; do
3052 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3053 ac_cv_prog_ac_ct_CC
="gcc"
3054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3063 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3064 if test -n "$ac_ct_CC"; then
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3066 printf "%s\n" "$ac_ct_CC" >&6; }
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 printf "%s\n" "no" >&6; }
3072 if test "x$ac_ct_CC" = x
; then
3075 case $cross_compiling:$ac_tool_warned in
3077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079 ac_tool_warned
=yes ;;
3087 if test -z "$CC"; then
3088 if test -n "$ac_tool_prefix"; then
3089 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3090 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 printf %s
"checking for $ac_word... " >&6; }
3093 if test ${ac_cv_prog_CC+y}
3095 printf %s
"(cached) " >&6
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC
="$CC" # Let the user override the test.
3100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3104 case $as_dir in #(((
3107 *) as_dir
=$as_dir/ ;;
3109 for ac_exec_ext
in '' $ac_executable_extensions; do
3110 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3111 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3122 if test -n "$CC"; then
3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 printf "%s\n" "$CC" >&6; }
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 printf "%s\n" "no" >&6; }
3133 if test -z "$CC"; then
3134 # Extract the first word of "cc", so it can be a program name with args.
3135 set dummy cc
; ac_word
=$2
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 printf %s
"checking for $ac_word... " >&6; }
3138 if test ${ac_cv_prog_CC+y}
3140 printf %s
"(cached) " >&6
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC
="$CC" # Let the user override the test.
3146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3150 case $as_dir in #(((
3153 *) as_dir
=$as_dir/ ;;
3155 for ac_exec_ext
in '' $ac_executable_extensions; do
3156 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3157 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3158 ac_prog_rejected
=yes
3162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3169 if test $ac_prog_rejected = yes; then
3170 # We found a bogon in the path, so make sure we never use it.
3171 set dummy
$ac_cv_prog_CC
3173 if test $# != 0; then
3174 # We chose a different compiler from the bogus one.
3175 # However, it has the same basename, so the bogon will be chosen
3176 # first if we set CC to just the basename; use the full file name.
3178 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3184 if test -n "$CC"; then
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 printf "%s\n" "$CC" >&6; }
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 printf "%s\n" "no" >&6; }
3194 if test -z "$CC"; then
3195 if test -n "$ac_tool_prefix"; then
3196 for ac_prog
in cl.exe
3198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3199 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 printf %s
"checking for $ac_word... " >&6; }
3202 if test ${ac_cv_prog_CC+y}
3204 printf %s
"(cached) " >&6
3206 if test -n "$CC"; then
3207 ac_cv_prog_CC
="$CC" # Let the user override the test.
3209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3213 case $as_dir in #(((
3216 *) as_dir
=$as_dir/ ;;
3218 for ac_exec_ext
in '' $ac_executable_extensions; do
3219 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3231 if test -n "$CC"; then
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233 printf "%s\n" "$CC" >&6; }
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 printf "%s\n" "no" >&6; }
3240 test -n "$CC" && break
3243 if test -z "$CC"; then
3245 for ac_prog
in cl.exe
3247 # Extract the first word of "$ac_prog", so it can be a program name with args.
3248 set dummy
$ac_prog; ac_word
=$2
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 printf %s
"checking for $ac_word... " >&6; }
3251 if test ${ac_cv_prog_ac_ct_CC+y}
3253 printf %s
"(cached) " >&6
3255 if test -n "$ac_ct_CC"; then
3256 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3262 case $as_dir in #(((
3265 *) as_dir
=$as_dir/ ;;
3267 for ac_exec_ext
in '' $ac_executable_extensions; do
3268 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_ac_ct_CC
="$ac_prog"
3270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3279 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3280 if test -n "$ac_ct_CC"; then
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3282 printf "%s\n" "$ac_ct_CC" >&6; }
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 printf "%s\n" "no" >&6; }
3289 test -n "$ac_ct_CC" && break
3292 if test "x$ac_ct_CC" = x
; then
3295 case $cross_compiling:$ac_tool_warned in
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3298 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3299 ac_tool_warned
=yes ;;
3306 if test -z "$CC"; then
3307 if test -n "$ac_tool_prefix"; then
3308 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3309 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 printf %s
"checking for $ac_word... " >&6; }
3312 if test ${ac_cv_prog_CC+y}
3314 printf %s
"(cached) " >&6
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC
="$CC" # Let the user override the test.
3319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3323 case $as_dir in #(((
3326 *) as_dir
=$as_dir/ ;;
3328 for ac_exec_ext
in '' $ac_executable_extensions; do
3329 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3341 if test -n "$CC"; then
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343 printf "%s\n" "$CC" >&6; }
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 printf "%s\n" "no" >&6; }
3351 if test -z "$ac_cv_prog_CC"; then
3353 # Extract the first word of "clang", so it can be a program name with args.
3354 set dummy clang
; ac_word
=$2
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 printf %s
"checking for $ac_word... " >&6; }
3357 if test ${ac_cv_prog_ac_ct_CC+y}
3359 printf %s
"(cached) " >&6
3361 if test -n "$ac_ct_CC"; then
3362 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3368 case $as_dir in #(((
3371 *) as_dir
=$as_dir/ ;;
3373 for ac_exec_ext
in '' $ac_executable_extensions; do
3374 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3375 ac_cv_prog_ac_ct_CC
="clang"
3376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3385 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3386 if test -n "$ac_ct_CC"; then
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3388 printf "%s\n" "$ac_ct_CC" >&6; }
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 printf "%s\n" "no" >&6; }
3394 if test "x$ac_ct_CC" = x
; then
3397 case $cross_compiling:$ac_tool_warned in
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3400 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3401 ac_tool_warned
=yes ;;
3412 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $?
"no acceptable C compiler found in \$PATH
3415 See \`config.log' for more details" "$LINENO" 5; }
3417 # Provide some information about the compiler.
3418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3421 for ac_option
in --version -v -V -qversion -version; do
3422 { { ac_try
="$ac_compiler $ac_option >&5"
3424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 printf "%s\n" "$ac_try_echo"; } >&5
3429 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3431 if test -s conftest.err; then
3433 ... rest of stderr output deleted ...
3434 10q' conftest.err >conftest.er1
3435 cat conftest.er1 >&5
3437 rm -f conftest.er1 conftest.err
3438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3444 printf %s "checking for suffix of object files... " >&6; }
3445 if test ${ac_cv_objext+y}
3447 printf %s "(cached) " >&6
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3460 rm -f conftest.o conftest.obj
3461 if { { ac_try="$ac_compile"
3463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3464 *) ac_try_echo
=$ac_try;;
3466 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 printf "%s\n" "$ac_try_echo"; } >&5
3468 (eval "$ac_compile") 2>&5
3470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3473 for ac_file
in conftest.o conftest.obj conftest.
*; do
3474 test -f "$ac_file" ||
continue;
3476 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
3477 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3482 printf "%s\n" "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.
$ac_ext >&5
3485 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error $?
"cannot compute suffix of object files: cannot compile
3488 See \`config.log' for more details" "$LINENO" 5; }
3490 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3493 printf "%s\n" "$ac_cv_objext" >&6; }
3494 OBJEXT
=$ac_cv_objext
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3497 printf %s
"checking whether the compiler supports GNU C... " >&6; }
3498 if test ${ac_cv_c_compiler_gnu+y}
3500 printf %s
"(cached) " >&6
3502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3516 if ac_fn_c_try_compile
"$LINENO"
3522 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3523 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3527 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3528 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3530 if test $ac_compiler_gnu = yes; then
3535 ac_test_CFLAGS
=${CFLAGS+y}
3536 ac_save_CFLAGS
=$CFLAGS
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3538 printf %s
"checking whether $CC accepts -g... " >&6; }
3539 if test ${ac_cv_prog_cc_g+y}
3541 printf %s
"(cached) " >&6
3543 ac_save_c_werror_flag
=$ac_c_werror_flag
3544 ac_c_werror_flag
=yes
3547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3548 /* end confdefs.h. */
3558 if ac_fn_c_try_compile
"$LINENO"
3563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3574 if ac_fn_c_try_compile
"$LINENO"
3578 ac_c_werror_flag
=$ac_save_c_werror_flag
3580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3591 if ac_fn_c_try_compile
"$LINENO"
3595 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3597 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3599 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3600 ac_c_werror_flag
=$ac_save_c_werror_flag
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3603 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3604 if test $ac_test_CFLAGS; then
3605 CFLAGS
=$ac_save_CFLAGS
3606 elif test $ac_cv_prog_cc_g = yes; then
3607 if test "$GCC" = yes; then
3613 if test "$GCC" = yes; then
3620 if test x
$ac_prog_cc_stdc = xno
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3623 printf %s
"checking for $CC option to enable C11 features... " >&6; }
3624 if test ${ac_cv_prog_cc_c11+y}
3626 printf %s
"(cached) " >&6
3628 ac_cv_prog_cc_c11
=no
3630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3632 $ac_c_conftest_c11_program
3634 for ac_arg
in '' -std=gnu11
3636 CC
="$ac_save_CC $ac_arg"
3637 if ac_fn_c_try_compile
"$LINENO"
3639 ac_cv_prog_cc_c11
=$ac_arg
3641 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3642 test "x$ac_cv_prog_cc_c11" != "xno" && break
3644 rm -f conftest.
$ac_ext
3648 if test "x$ac_cv_prog_cc_c11" = xno
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3651 printf "%s\n" "unsupported" >&6; }
3653 if test "x$ac_cv_prog_cc_c11" = x
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3656 printf "%s\n" "none needed" >&6; }
3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3659 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3660 CC
="$CC $ac_cv_prog_cc_c11"
3662 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c11
3666 if test x
$ac_prog_cc_stdc = xno
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3669 printf %s
"checking for $CC option to enable C99 features... " >&6; }
3670 if test ${ac_cv_prog_cc_c99+y}
3672 printf %s
"(cached) " >&6
3674 ac_cv_prog_cc_c99
=no
3676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678 $ac_c_conftest_c99_program
3680 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -qlanglvl=extc1x
-qlanglvl=extc99
-AC99 -D_STDC_C99=
3682 CC
="$ac_save_CC $ac_arg"
3683 if ac_fn_c_try_compile
"$LINENO"
3685 ac_cv_prog_cc_c99
=$ac_arg
3687 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3688 test "x$ac_cv_prog_cc_c99" != "xno" && break
3690 rm -f conftest.
$ac_ext
3694 if test "x$ac_cv_prog_cc_c99" = xno
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3697 printf "%s\n" "unsupported" >&6; }
3699 if test "x$ac_cv_prog_cc_c99" = x
3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3702 printf "%s\n" "none needed" >&6; }
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3705 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3706 CC
="$CC $ac_cv_prog_cc_c99"
3708 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
3712 if test x
$ac_prog_cc_stdc = xno
3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3715 printf %s
"checking for $CC option to enable C89 features... " >&6; }
3716 if test ${ac_cv_prog_cc_c89+y}
3718 printf %s
"(cached) " >&6
3720 ac_cv_prog_cc_c89
=no
3722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724 $ac_c_conftest_c89_program
3726 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3728 CC
="$ac_save_CC $ac_arg"
3729 if ac_fn_c_try_compile
"$LINENO"
3731 ac_cv_prog_cc_c89
=$ac_arg
3733 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3734 test "x$ac_cv_prog_cc_c89" != "xno" && break
3736 rm -f conftest.
$ac_ext
3740 if test "x$ac_cv_prog_cc_c89" = xno
3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3743 printf "%s\n" "unsupported" >&6; }
3745 if test "x$ac_cv_prog_cc_c89" = x
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3748 printf "%s\n" "none needed" >&6; }
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3751 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3752 CC
="$CC $ac_cv_prog_cc_c89"
3754 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
3760 ac_cpp
='$CPP $CPPFLAGS'
3761 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3765 if test $host != $build; then
3766 for ac_prog
in gcc cc
3768 # Extract the first word of "$ac_prog", so it can be a program name with args.
3769 set dummy
$ac_prog; ac_word
=$2
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 printf %s
"checking for $ac_word... " >&6; }
3772 if test ${ac_cv_prog_BUILD_CC+y}
3774 printf %s
"(cached) " >&6
3776 if test -n "$BUILD_CC"; then
3777 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
3779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3783 case $as_dir in #(((
3786 *) as_dir
=$as_dir/ ;;
3788 for ac_exec_ext
in '' $ac_executable_extensions; do
3789 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3790 ac_cv_prog_BUILD_CC
="$ac_prog"
3791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3800 BUILD_CC
=$ac_cv_prog_BUILD_CC
3801 if test -n "$BUILD_CC"; then
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3803 printf "%s\n" "$BUILD_CC" >&6; }
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 printf "%s\n" "no" >&6; }
3810 test -n "$BUILD_CC" && break
3815 # On Suns, sometimes $CPP names a directory.
3816 if test -n "$CPP" && test -d "$CPP"; then
3819 if test -z "$CPP"; then
3824 # We need the C++ compiler only for testing.
3832 ac_cpp
='$CXXCPP $CPPFLAGS'
3833 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3836 if test -z "$CXX"; then
3837 if test -n "$CCC"; then
3840 if test -n "$ac_tool_prefix"; then
3841 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
3843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3844 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 printf %s
"checking for $ac_word... " >&6; }
3847 if test ${ac_cv_prog_CXX+y}
3849 printf %s
"(cached) " >&6
3851 if test -n "$CXX"; then
3852 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3854 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3858 case $as_dir in #(((
3861 *) as_dir
=$as_dir/ ;;
3863 for ac_exec_ext
in '' $ac_executable_extensions; do
3864 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3865 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3876 if test -n "$CXX"; then
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3878 printf "%s\n" "$CXX" >&6; }
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 printf "%s\n" "no" >&6; }
3885 test -n "$CXX" && break
3888 if test -z "$CXX"; then
3890 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy
$ac_prog; ac_word
=$2
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 printf %s
"checking for $ac_word... " >&6; }
3896 if test ${ac_cv_prog_ac_ct_CXX+y}
3898 printf %s
"(cached) " >&6
3900 if test -n "$ac_ct_CXX"; then
3901 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3907 case $as_dir in #(((
3910 *) as_dir
=$as_dir/ ;;
3912 for ac_exec_ext
in '' $ac_executable_extensions; do
3913 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3914 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3924 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3925 if test -n "$ac_ct_CXX"; then
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3927 printf "%s\n" "$ac_ct_CXX" >&6; }
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 printf "%s\n" "no" >&6; }
3934 test -n "$ac_ct_CXX" && break
3937 if test "x$ac_ct_CXX" = x
; then
3940 case $cross_compiling:$ac_tool_warned in
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3943 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3944 ac_tool_warned
=yes ;;
3952 # Provide some information about the compiler.
3953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3956 for ac_option
in --version -v -V -qversion; do
3957 { { ac_try
="$ac_compiler $ac_option >&5"
3959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 printf "%s\n" "$ac_try_echo"; } >&5
3964 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3966 if test -s conftest.err; then
3968 ... rest of stderr output deleted ...
3969 10q' conftest.err >conftest.er1
3970 cat conftest.er1 >&5
3972 rm -f conftest.er1 conftest.err
3973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974 test $ac_status = 0; }
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3978 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3979 if test ${ac_cv_cxx_compiler_gnu+y}
3981 printf %s "(cached) " >&6
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3997 if ac_fn_cxx_try_compile "$LINENO"
4003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4004 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4008 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4011 if test $ac_compiler_gnu = yes; then
4016 ac_test_CXXFLAGS=${CXXFLAGS+y}
4017 ac_save_CXXFLAGS=$CXXFLAGS
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4019 printf %s "checking whether $CXX accepts -g... " >&6; }
4020 if test ${ac_cv_prog_cxx_g+y}
4022 printf %s "(cached) " >&6
4024 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4025 ac_cxx_werror_flag=yes
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4039 if ac_fn_cxx_try_compile "$LINENO"
4041 ac_cv_prog_cxx_g=yes
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4055 if ac_fn_cxx_try_compile "$LINENO"
4059 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4072 if ac_fn_cxx_try_compile "$LINENO"
4074 ac_cv_prog_cxx_g=yes
4076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4081 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4084 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4085 if test $ac_test_CXXFLAGS; then
4086 CXXFLAGS=$ac_save_CXXFLAGS
4087 elif test $ac_cv_prog_cxx_g = yes; then
4088 if test "$GXX" = yes; then
4094 if test "$GXX" = yes; then
4100 ac_prog_cxx_stdcxx=no
4101 if test x$ac_prog_cxx_stdcxx = xno
4103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4104 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4105 if test ${ac_cv_prog_cxx_cxx11+y}
4107 printf %s "(cached) " >&6
4109 ac_cv_prog_cxx_cxx11=no
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 $ac_cxx_conftest_cxx11_program
4115 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4117 CXX="$ac_save_CXX $ac_arg"
4118 if ac_fn_cxx_try_compile "$LINENO"
4120 ac_cv_prog_cxx_cxx11=$ac_arg
4122 rm -f core conftest.err conftest.$ac_objext conftest.beam
4123 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4125 rm -f conftest.$ac_ext
4129 if test "x$ac_cv_prog_cxx_cxx11" = xno
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4132 printf "%s\n" "unsupported" >&6; }
4134 if test "x$ac_cv_prog_cxx_cxx11" = x
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4137 printf "%s\n" "none needed" >&6; }
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4140 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4141 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4143 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4144 ac_prog_cxx_stdcxx=cxx11
4147 if test x$ac_prog_cxx_stdcxx = xno
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4150 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4151 if test ${ac_cv_prog_cxx_cxx98+y}
4153 printf %s "(cached) " >&6
4155 ac_cv_prog_cxx_cxx98=no
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159 $ac_cxx_conftest_cxx98_program
4161 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4163 CXX="$ac_save_CXX $ac_arg"
4164 if ac_fn_cxx_try_compile "$LINENO"
4166 ac_cv_prog_cxx_cxx98=$ac_arg
4168 rm -f core conftest.err conftest.$ac_objext conftest.beam
4169 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4171 rm -f conftest.$ac_ext
4175 if test "x$ac_cv_prog_cxx_cxx98" = xno
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4178 printf "%s\n" "unsupported" >&6; }
4180 if test "x$ac_cv_prog_cxx_cxx98" = x
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183 printf "%s\n" "none needed" >&6; }
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4186 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4187 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4189 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4190 ac_prog_cxx_stdcxx=cxx98
4195 ac_cpp='$CPP $CPPFLAGS'
4196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
4203 printf %s "checking whether $CXX can link programs... " >&6; }
4204 if test ${libc_cv_cxx_link_ok+y}
4206 printf %s "(cached) " >&6
4209 ac_cpp='$CXXCPP $CPPFLAGS'
4210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4214 # Default, dynamic case.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4226 if ac_fn_cxx_try_link "$LINENO"
4228 libc_cv_cxx_link_ok=yes
4230 libc_cv_cxx_link_ok=no
4232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4233 conftest$ac_exeext conftest.$ac_ext
4235 old_LDFLAGS="$LDFLAGS"
4236 LDFLAGS="$LDFLAGS -static"
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4245 std::cout << "Hello, world!";
4250 if ac_fn_cxx_try_link "$LINENO"
4254 libc_cv_cxx_link_ok=no
4256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4257 conftest$ac_exeext conftest.$ac_ext
4258 LDFLAGS="$old_LDFLAGS"
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
4267 printf "%s\n" "$libc_cv_cxx_link_ok" >&6; }
4268 if test $libc_cv_cxx_link_ok != yes
4273 if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
4274 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
4277 # This will get text that should go into config.make.
4280 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
4282 # Check whether --with-gd was given.
4283 if test ${with_gd+y}
4285 withval=$with_gd; case "$with_gd" in
4287 *) libgd_include="-I$withval/include"
4288 libgd_ldflags="-L$withval/lib" ;;
4294 # Check whether --with-gd-include was given.
4295 if test ${with_gd_include+y}
4297 withval=$with_gd_include; case "$with_gd_include" in
4299 *) libgd_include="-I$withval" ;;
4305 # Check whether --with-gd-lib was given.
4306 if test ${with_gd_lib+y}
4308 withval=$with_gd_lib; case "$with_gd_lib" in
4310 *) libgd_ldflags="-L$withval" ;;
4316 if test -n "$libgd_include"; then
4317 config_vars="$config_vars
4318 CFLAGS-memusagestat.c = $libgd_include"
4320 if test -n "$libgd_ldflags"; then
4321 config_vars="$config_vars
4322 libgd-LDFLAGS = $libgd_ldflags"
4326 # Check whether --with-binutils was given.
4327 if test ${with_binutils+y}
4329 withval=$with_binutils; path_binutils=$withval
4335 # Check whether --with-selinux was given.
4336 if test ${with_selinux+y}
4338 withval=$with_selinux; with_selinux=$withval
4345 # Check whether --with-headers was given.
4346 if test ${with_headers+y}
4348 withval=$with_headers; sysheaders=$withval
4356 # Check whether --with-nonshared-cflags was given.
4357 if test ${with_nonshared_cflags+y}
4359 withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval
4361 extra_nonshared_cflags=
4366 # Check whether --with-rtld-early-cflags was given.
4367 if test ${with_rtld_early_cflags+y}
4369 withval=$with_rtld_early_cflags; rtld_early_cflags=$withval
4377 # Check whether --with-timeoutfactor was given.
4378 if test ${with_timeoutfactor+y}
4380 withval=$with_timeoutfactor; timeoutfactor=$withval
4385 printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h
4388 # Check whether --enable-sanity-checks was given.
4389 if test ${enable_sanity_checks+y}
4391 enableval=$enable_sanity_checks; enable_sanity=$enableval
4397 # Check whether --enable-shared was given.
4398 if test ${enable_shared+y}
4400 enableval=$enable_shared; shared=$enableval
4405 # Check whether --enable-profile was given.
4406 if test ${enable_profile+y}
4408 enableval=$enable_profile; profile=$enableval
4413 # Check whether --enable-default-pie was given.
4414 if test ${enable_default_pie+y}
4416 enableval=$enable_default_pie; default_pie=$enableval
4421 # Check whether --enable-timezone-tools was given.
4422 if test ${enable_timezone_tools+y}
4424 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
4426 enable_timezone_tools=yes
4431 # Check whether --enable-hardcoded-path-in-tests was given.
4432 if test ${enable_hardcoded_path_in_tests+y}
4434 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
4436 hardcoded_path_in_tests=no
4441 # Check whether --enable-hidden-plt was given.
4442 if test ${enable_hidden_plt+y}
4444 enableval=$enable_hidden_plt; hidden=$enableval
4449 if test "x$hidden" = xno; then
4450 printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h
4454 # Check whether --enable-bind-now was given.
4455 if test ${enable_bind_now+y}
4457 enableval=$enable_bind_now; bindnow=$enableval
4463 if test "x$bindnow" = xyes; then
4464 printf "%s\n" "#define BIND_NOW 1" >>confdefs.h
4468 # Check whether --enable-stack-protector was given.
4469 if test ${enable_stack_protector+y}
4471 enableval=$enable_stack_protector; enable_stack_protector=$enableval
4473 enable_stack_protector=no
4476 case "$enable_stack_protector" in
4477 all|yes|no|strong) ;;
4478 *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;;
4481 # Check whether --enable-static-nss was given.
4482 if test ${enable_static_nss+y}
4484 enableval=$enable_static_nss; static_nss=$enableval
4489 if test x"$static_nss" = xyes || test x"$shared" = xno; then
4491 printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h
4495 # Check whether --enable-force-install was given.
4496 if test ${enable_force_install+y}
4498 enableval=$enable_force_install; force_install=$enableval
4505 # Check whether --enable-maintainer-mode was given.
4506 if test ${enable_maintainer_mode+y}
4508 enableval=$enable_maintainer_mode; maintainer=$enableval
4514 # Check whether --enable-kernel was given.
4515 if test ${enable_kernel+y}
4517 enableval=$enable_kernel; minimum_kernel=$enableval
4520 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
4521 # Better nothing than this.
4524 if test "$minimum_kernel" = current; then
4525 minimum_kernel=`uname
-r 2>/dev
/null
` || minimum_kernel=
4529 # Check whether --enable-all-warnings was given.
4530 if test ${enable_all_warnings+y}
4532 enableval=$enable_all_warnings; all_warnings=$enableval
4537 # Check whether --enable-werror was given.
4538 if test ${enable_werror+y}
4540 enableval=$enable_werror; enable_werror=$enableval
4547 # Check whether --enable-multi-arch was given.
4548 if test ${enable_multi_arch+y}
4550 enableval=$enable_multi_arch; multi_arch=$enableval
4556 # Check whether --enable-memory-tagging was given.
4557 if test ${enable_memory_tagging+y}
4559 enableval=$enable_memory_tagging; memory_tagging=$enableval
4564 if test "$memory_tagging" = yes; then
4565 # Only enable this on architectures that support it.
4568 printf "%s\n" "#define USE_MTAG 1" >>confdefs.h
4575 # Check whether --enable-crypt was given.
4576 if test ${enable_crypt+y}
4578 enableval=$enable_crypt; build_crypt=$enableval
4585 # Check whether --enable-nss-crypt was given.
4586 if test ${enable_nss_crypt+y}
4588 enableval=$enable_nss_crypt; nss_crypt=$enableval
4593 if test x$build_libcrypt = xno && test x$nss_crypt = xyes; then
4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&5
4595 printf "%s\n" "$as_me: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&2;}
4598 if test x$nss_crypt = xyes; then
4599 nss_includes=-I$(nss-config --includedir 2>/dev/null)
4600 if test $? -ne 0; then
4601 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
4603 nspr_includes=-I$(nspr-config --includedir 2>/dev/null)
4604 if test $? -ne 0; then
4605 as_fn_error $? "cannot find include directory with nspr-config" "$LINENO" 5
4607 old_CFLAGS="$CFLAGS"
4608 CFLAGS="$CFLAGS $nss_includes $nspr_includes"
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4614 #include <nsslowhash.h>
4615 void f (void) { NSSLOW_Init (); }
4624 if ac_fn_c_try_compile "$LINENO"
4626 libc_cv_nss_crypt=yes
4629 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
4631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4633 old_LDFLAGS="$LDFLAGS"
4634 LIBS="$LIBS -lfreebl3"
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4639 #include <nsslowhash.h>
4648 if ac_fn_c_try_link "$LINENO"
4650 libc_cv_nss_crypt=yes
4653 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
4655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4656 conftest$ac_exeext conftest.$ac_ext
4657 # Check to see if there is a static NSS cryptographic library.
4658 # If there isn't then we can't link anything with libcrypt.a,
4659 # and that might mean disabling some static tests.
4660 LDFLAGS="$LDFLAGS -static"
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4665 #include <nsslowhash.h>
4674 if ac_fn_c_try_link "$LINENO"
4676 libc_cv_static_nss_crypt=yes
4678 libc_cv_static_nss_crypt=no
4680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4681 conftest$ac_exeext conftest.$ac_ext
4682 LDFLAGS="$old_LDFLAGS"
4683 CFLAGS="$old_CFLAGS"
4686 libc_cv_nss_crypt=no
4687 libc_cv_static_nss_crypt=no
4693 # Check whether --enable-systemtap was given.
4694 if test ${enable_systemtap+y}
4696 enableval=$enable_systemtap; systemtap=$enableval
4701 if test "x$systemtap" != xno; then
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
4703 printf %s "checking for systemtap static probe support... " >&6; }
4704 if test ${libc_cv_sdt+y}
4706 printf %s "(cached) " >&6
4708 old_CFLAGS="$CFLAGS"
4709 CFLAGS="-std=gnu11 $CFLAGS"
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #include <sys/sdt.h>
4713 void foo (int i, void *p)
4715 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
4716 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
4719 if ac_fn_c_try_compile "$LINENO"
4725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4726 CFLAGS="$old_CFLAGS"
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
4729 printf "%s\n" "$libc_cv_sdt" >&6; }
4730 if test $libc_cv_sdt = yes; then
4731 printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h
4733 elif test "x$systemtap" != xauto; then
4734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4735 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4736 as_fn_error $? "systemtap support needs sys
/sdt.h with asm support
4737 See \
`config.log' for more details" "$LINENO" 5; }
4741 # Check whether --enable-build-nscd was given.
4742 if test ${enable_build_nscd+y}
4744 enableval=$enable_build_nscd; build_nscd=$enableval
4751 # Note the use of $use_nscd is near the bottom of the file.
4752 # Check whether --enable-nscd was given.
4753 if test ${enable_nscd+y}
4755 enableval=$enable_nscd; use_nscd=$enableval
4761 # Check whether --enable-pt_chown was given.
4762 if test ${enable_pt_chown+y}
4764 enableval=$enable_pt_chown; build_pt_chown=$enableval
4770 if test "$build_pt_chown" = yes; then
4771 printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h
4775 # The abi-tags file uses a fairly simplistic model for name recognition that
4776 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
4777 # $host_os of `gnu
*' here to be `gnu-gnu*' just so that it can tell.
4778 # This doesn't get used much beyond that, so it's fairly safe.
4783 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
4787 # Check whether --enable-mathvec was given.
4788 if test ${enable_mathvec+y}
4790 enableval
=$enable_mathvec; build_mathvec
=$enableval
4792 build_mathvec
=notset
4797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4805 # error no CET compiler support
4811 if ac_fn_c_try_cpp
"$LINENO"
4813 libc_cv_compiler_default_cet
=yes
4815 libc_cv_compiler_default_cet
=no
4817 rm -f conftest.err conftest.i conftest.
$ac_ext
4819 # Check whether --enable-cet was given.
4820 if test ${enable_cet+y}
4822 enableval
=$enable_cet; enable_cet
=$enableval
4824 enable_cet
=$libc_cv_compiler_default_cet
4828 # Check whether --enable-scv was given.
4829 if test ${enable_scv+y}
4831 enableval
=$enable_scv; use_scv
=$enableval
4837 if test "$use_scv" != "no"
4839 printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h
4843 # Check whether --enable-fortify-source was given.
4844 if test ${enable_fortify_source+y}
4846 enableval
=$enable_fortify_source; enable_fortify_source
=$enableval
4848 enable_fortify_source
=no
4851 case "$enable_fortify_source" in
4853 *) as_fn_error $?
"Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;;
4856 # We keep the original values in `$config_*' and never modify them, so we
4857 # can write them unchanged into config.make. Everything else uses
4858 # $machine, $vendor, and $os, and changes them whenever convenient.
4859 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
4861 # Don't allow vendor == "unknown"
4862 test "$config_vendor" = unknown
&& config_vendor
=
4863 config_os
="`echo $config_os | sed 's/^unknown-//'`"
4865 # Some configurations imply other options.
4868 # The configure fragment of a port can modify these to supplement
4869 # or override the table in the case statement below. No fragment should
4870 # ever change the config_* variables, however.
4871 machine
=$config_machine
4872 vendor
=$config_vendor
4878 # Check whether --with-cpu was given.
4879 if test ${with_cpu+y}
4881 withval
=$with_cpu; case "$withval" in
4882 yes|
'') as_fn_error $?
"--with-cpu requires an argument" "$LINENO" 5 ;;
4884 *) submachine
="$withval" ;;
4890 # An preconfigure script can set this when it wants to disable the sanity
4894 # A preconfigure script for a system that may or may not use fpu
4895 # sysdeps directories sets this to a preprocessor conditional for
4896 # whether to use such directories.
4899 if frags
=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
4902 printf %s
"checking for sysdeps preconfigure fragments... " >&6; }
4903 for frag
in $frags; do
4904 name
=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4905 echo $ECHO_N "$name $ECHO_C" >&6
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
4909 printf "%s\n" "" >&6; }
4914 ### By using the undocumented --enable-hacker-mode option for configure
4915 ### one can skip this test to make the configuration not fail for unsupported
4918 if test -z "$enable_hacker_mode" && test x
"$libc_config_ok" != xyes
; then
4919 case "$machine-$host_os" in
4924 *** The GNU C library is currently unavailable for this platform.
4925 *** If you are interested in seeing glibc on this platform visit
4926 *** the \"How to submit a new port\" in the wiki:
4927 *** https://sourceware.org/glibc/wiki/#Development
4928 *** and join the community!" "$LINENO" 5
4933 # Set base_machine if not set by a preconfigure fragment.
4934 test -n "$base_machine" || base_machine
=$machine
4940 # Find a good install program. We prefer a C program (faster),
4941 # so one script is as good as another. But avoid the broken or
4942 # incompatible versions:
4943 # SysV /etc/install, /usr/sbin/install
4944 # SunOS /usr/etc/install
4945 # IRIX /sbin/install
4947 # AmigaOS /C/install, which installs bootblocks on floppy discs
4948 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4949 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4950 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4951 # OS/2's system install, which has a completely different semantic
4952 # ./install, which can be erroneously created by make from ./install.sh.
4953 # Reject install programs that cannot install multiple files.
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4955 printf %s
"checking for a BSD-compatible install... " >&6; }
4956 if test -z "$INSTALL"; then
4957 if test ${ac_cv_path_install+y}
4959 printf %s
"(cached) " >&6
4961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4965 case $as_dir in #(((
4968 *) as_dir
=$as_dir/ ;;
4970 # Account for fact that we put trailing slashes in our PATH walk.
4973 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4974 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4977 # OSF1 and SCO ODT 3.0 have their own names for install.
4978 # Don't use installbsd from OSF since it installs stuff as root
4980 for ac_prog
in ginstall scoinst
install; do
4981 for ac_exec_ext
in '' $ac_executable_extensions; do
4982 if as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext"; then
4983 if test $ac_prog = install &&
4984 grep dspmsg
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4985 # AIX install. It has an incompatible calling convention.
4987 elif test $ac_prog = install &&
4988 grep pwplus
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4989 # program-specific install script used by HP pwplus--don't use.
4992 rm -rf conftest.one conftest.two conftest.dir
4993 echo one
> conftest.one
4994 echo two
> conftest.two
4996 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir/" &&
4997 test -s conftest.one
&& test -s conftest.two
&&
4998 test -s conftest.dir
/conftest.one
&&
4999 test -s conftest.dir
/conftest.two
5001 ac_cv_path_install
="$as_dir$ac_prog$ac_exec_ext -c"
5014 rm -rf conftest.one conftest.two conftest.dir
5017 if test ${ac_cv_path_install+y}; then
5018 INSTALL
=$ac_cv_path_install
5020 # As a last resort, use the slow shell script. Don't cache a
5021 # value for INSTALL within a source directory, because that will
5022 # break other packages using the cache if that directory is
5023 # removed, or if the value is a relative name.
5024 INSTALL
=$ac_install_sh
5027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5028 printf "%s\n" "$INSTALL" >&6; }
5030 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5031 # It thinks the first close brace ends the variable substitution.
5032 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5034 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5036 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5038 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
5039 # The makefiles need to use a different form to find it in $srcdir.
5040 INSTALL
='\$(..)./scripts/install-sh -c'
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5043 printf %s
"checking whether ln -s works... " >&6; }
5045 if test "$LN_S" = "ln -s"; then
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5047 printf "%s\n" "yes" >&6; }
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5050 printf "%s\n" "no, using $LN_S" >&6; }
5054 # Was a --with-binutils option given?
5055 if test -n "$path_binutils"; then
5056 # Make absolute; ensure a single trailing slash.
5057 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
5058 CC
="$CC -B$path_binutils"
5061 *fuse-ld
=lld
*) LDNAME
=ld.lld
;;
5064 if test -z "$LD"; then
5065 LD
=`$CC -print-prog-name=$LDNAME`
5067 if test -z "$AR"; then
5068 AR
=`$CC -print-prog-name=ar`
5071 if test -z "$OBJCOPY"; then
5072 OBJCOPY
=`$CC -print-prog-name=objcopy`
5075 if test -z "$GPROF"; then
5076 GPROF
=`$CC -print-prog-name=gprof`
5079 if test -z "$READELF"; then
5080 READELF
=`$CC -print-prog-name=readelf`
5083 if test -z "$OBJDUMP"; then
5084 OBJDUMP
=`$CC -print-prog-name=objdump`
5087 if test -z "$NM"; then
5088 NM
=`$CC -print-prog-name=nm`
5093 # Accept binutils 2.25 or newer.
5095 case $
($LD --version) in
5097 # Accept gold 1.14 or higher
5100 # Extract the first word of "$ac_prog", so it can be a program name with args.
5101 set dummy
$ac_prog; ac_word
=$2
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 printf %s
"checking for $ac_word... " >&6; }
5104 if test ${ac_cv_prog_LD+y}
5106 printf %s
"(cached) " >&6
5108 if test -n "$LD"; then
5109 ac_cv_prog_LD
="$LD" # Let the user override the test.
5111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5115 case $as_dir in #(((
5118 *) as_dir
=$as_dir/ ;;
5120 for ac_exec_ext
in '' $ac_executable_extensions; do
5121 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_LD
="$ac_prog"
5123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5133 if test -n "$LD"; then
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5135 printf "%s\n" "$LD" >&6; }
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 printf "%s\n" "no" >&6; }
5142 test -n "$LD" && break
5145 if test -z "$LD"; then
5148 # Found it, now check the version.
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5150 printf %s
"checking version of $LD... " >&6; }
5151 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5152 case $ac_prog_version in
5153 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5154 1.1[4-9]*|
1.
[2-9][0-9]*|
1.1[0-9][0-9]*|
[2-9].
*|
[1-9][0-9]*)
5155 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5156 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5160 printf "%s\n" "$ac_prog_version" >&6; }
5162 if test $ac_verc_fail = yes; then
5163 LD
=: critic_missing
="$critic_missing GNU gold"
5168 # Accept LLD 13.0.0 or higher
5171 # Extract the first word of "$ac_prog", so it can be a program name with args.
5172 set dummy
$ac_prog; ac_word
=$2
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 printf %s
"checking for $ac_word... " >&6; }
5175 if test ${ac_cv_prog_LD+y}
5177 printf %s
"(cached) " >&6
5179 if test -n "$LD"; then
5180 ac_cv_prog_LD
="$LD" # Let the user override the test.
5182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5186 case $as_dir in #(((
5189 *) as_dir
=$as_dir/ ;;
5191 for ac_exec_ext
in '' $ac_executable_extensions; do
5192 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5193 ac_cv_prog_LD
="$ac_prog"
5194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5204 if test -n "$LD"; then
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5206 printf "%s\n" "$LD" >&6; }
5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 printf "%s\n" "no" >&6; }
5213 test -n "$LD" && break
5216 if test -z "$LD"; then
5219 # Found it, now check the version.
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5221 printf %s
"checking version of $LD... " >&6; }
5222 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5223 case $ac_prog_version in
5224 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5225 1[3-9].
*|
[2-9][0-9].
*)
5226 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5227 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5231 printf "%s\n" "$ac_prog_version" >&6; }
5233 if test $ac_verc_fail = yes; then
5234 LD
=: critic_missing
="$critic_missing LLD"
5237 libc_cv_with_lld
=yes
5242 # Extract the first word of "$ac_prog", so it can be a program name with args.
5243 set dummy
$ac_prog; ac_word
=$2
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 printf %s
"checking for $ac_word... " >&6; }
5246 if test ${ac_cv_prog_LD+y}
5248 printf %s
"(cached) " >&6
5250 if test -n "$LD"; then
5251 ac_cv_prog_LD
="$LD" # Let the user override the test.
5253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5257 case $as_dir in #(((
5260 *) as_dir
=$as_dir/ ;;
5262 for ac_exec_ext
in '' $ac_executable_extensions; do
5263 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5264 ac_cv_prog_LD
="$ac_prog"
5265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5275 if test -n "$LD"; then
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5277 printf "%s\n" "$LD" >&6; }
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 printf "%s\n" "no" >&6; }
5284 test -n "$LD" && break
5287 if test -z "$LD"; then
5290 # Found it, now check the version.
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5292 printf %s
"checking version of $LD... " >&6; }
5293 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5294 case $ac_prog_version in
5295 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5296 2.1[0-9][0-9]*|
2.2[5-9]*|
2.
[3-9][0-9]*|
[3-9].
*|
[1-9][0-9]*)
5297 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5298 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5302 printf "%s\n" "$ac_prog_version" >&6; }
5304 if test $ac_verc_fail = yes; then
5305 LD
=: critic_missing
="$critic_missing GNU ld"
5310 config_vars
="$config_vars
5311 with-lld = $libc_cv_with_lld"
5313 # These programs are version sensitive.
5314 for ac_prog
in gnumake gmake
make
5316 # Extract the first word of "$ac_prog", so it can be a program name with args.
5317 set dummy
$ac_prog; ac_word
=$2
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 printf %s
"checking for $ac_word... " >&6; }
5320 if test ${ac_cv_prog_MAKE+y}
5322 printf %s
"(cached) " >&6
5324 if test -n "$MAKE"; then
5325 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5331 case $as_dir in #(((
5334 *) as_dir
=$as_dir/ ;;
5336 for ac_exec_ext
in '' $ac_executable_extensions; do
5337 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5338 ac_cv_prog_MAKE
="$ac_prog"
5339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5348 MAKE
=$ac_cv_prog_MAKE
5349 if test -n "$MAKE"; then
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5351 printf "%s\n" "$MAKE" >&6; }
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 printf "%s\n" "no" >&6; }
5358 test -n "$MAKE" && break
5361 if test -z "$MAKE"; then
5364 # Found it, now check the version.
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
5366 printf %s
"checking version of $MAKE... " >&6; }
5367 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5368 case $ac_prog_version in
5369 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5370 [4-9].
* |
[1-9][0-9]*)
5371 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5372 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5376 printf "%s\n" "$ac_prog_version" >&6; }
5378 if test $ac_verc_fail = yes; then
5379 critic_missing
="$critic_missing make"
5383 for ac_prog
in gnumsgfmt gmsgfmt msgfmt
5385 # Extract the first word of "$ac_prog", so it can be a program name with args.
5386 set dummy
$ac_prog; ac_word
=$2
5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 printf %s
"checking for $ac_word... " >&6; }
5389 if test ${ac_cv_prog_MSGFMT+y}
5391 printf %s
"(cached) " >&6
5393 if test -n "$MSGFMT"; then
5394 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
5396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5400 case $as_dir in #(((
5403 *) as_dir
=$as_dir/ ;;
5405 for ac_exec_ext
in '' $ac_executable_extensions; do
5406 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5407 ac_cv_prog_MSGFMT
="$ac_prog"
5408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5417 MSGFMT
=$ac_cv_prog_MSGFMT
5418 if test -n "$MSGFMT"; then
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5420 printf "%s\n" "$MSGFMT" >&6; }
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 printf "%s\n" "no" >&6; }
5427 test -n "$MSGFMT" && break
5430 if test -z "$MSGFMT"; then
5433 # Found it, now check the version.
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5435 printf %s
"checking version of $MSGFMT... " >&6; }
5436 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5437 case $ac_prog_version in
5438 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5439 0.10.3[6-9]* |
0.10.
[4-9][0-9]* |
0.1[1-9]* |
0.
[2-9][0-9]* |
[1-9].
*)
5440 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5441 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5445 printf "%s\n" "$ac_prog_version" >&6; }
5447 if test $ac_verc_fail = yes; then
5448 MSGFMT
=: aux_missing
="$aux_missing msgfmt"
5451 for ac_prog
in makeinfo
5453 # Extract the first word of "$ac_prog", so it can be a program name with args.
5454 set dummy
$ac_prog; ac_word
=$2
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 printf %s
"checking for $ac_word... " >&6; }
5457 if test ${ac_cv_prog_MAKEINFO+y}
5459 printf %s
"(cached) " >&6
5461 if test -n "$MAKEINFO"; then
5462 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5468 case $as_dir in #(((
5471 *) as_dir
=$as_dir/ ;;
5473 for ac_exec_ext
in '' $ac_executable_extensions; do
5474 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5475 ac_cv_prog_MAKEINFO
="$ac_prog"
5476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5485 MAKEINFO
=$ac_cv_prog_MAKEINFO
5486 if test -n "$MAKEINFO"; then
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5488 printf "%s\n" "$MAKEINFO" >&6; }
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 printf "%s\n" "no" >&6; }
5495 test -n "$MAKEINFO" && break
5498 if test -z "$MAKEINFO"; then
5501 # Found it, now check the version.
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5503 printf %s
"checking version of $MAKEINFO... " >&6; }
5504 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5505 case $ac_prog_version in
5506 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5507 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9].
*)
5508 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5509 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5513 printf "%s\n" "$ac_prog_version" >&6; }
5515 if test $ac_verc_fail = yes; then
5516 MAKEINFO
=: aux_missing
="$aux_missing makeinfo"
5521 # Extract the first word of "$ac_prog", so it can be a program name with args.
5522 set dummy
$ac_prog; ac_word
=$2
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 printf %s
"checking for $ac_word... " >&6; }
5525 if test ${ac_cv_prog_SED+y}
5527 printf %s
"(cached) " >&6
5529 if test -n "$SED"; then
5530 ac_cv_prog_SED
="$SED" # Let the user override the test.
5532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5536 case $as_dir in #(((
5539 *) as_dir
=$as_dir/ ;;
5541 for ac_exec_ext
in '' $ac_executable_extensions; do
5542 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_SED
="$ac_prog"
5544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5554 if test -n "$SED"; then
5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5556 printf "%s\n" "$SED" >&6; }
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 printf "%s\n" "no" >&6; }
5563 test -n "$SED" && break
5566 if test -z "$SED"; then
5569 # Found it, now check the version.
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5571 printf %s
"checking version of $SED... " >&6; }
5572 ac_prog_version
=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5573 case $ac_prog_version in
5574 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5575 3.0[2-9]*|
3.
[1-9]*|
[4-9]*)
5576 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5577 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5581 printf "%s\n" "$ac_prog_version" >&6; }
5583 if test $ac_verc_fail = yes; then
5584 SED
=: aux_missing
="$aux_missing sed"
5589 # Extract the first word of "$ac_prog", so it can be a program name with args.
5590 set dummy
$ac_prog; ac_word
=$2
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 printf %s
"checking for $ac_word... " >&6; }
5593 if test ${ac_cv_prog_AWK+y}
5595 printf %s
"(cached) " >&6
5597 if test -n "$AWK"; then
5598 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5604 case $as_dir in #(((
5607 *) as_dir
=$as_dir/ ;;
5609 for ac_exec_ext
in '' $ac_executable_extensions; do
5610 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_AWK
="$ac_prog"
5612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5622 if test -n "$AWK"; then
5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5624 printf "%s\n" "$AWK" >&6; }
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 printf "%s\n" "no" >&6; }
5631 test -n "$AWK" && break
5634 if test -z "$AWK"; then
5637 # Found it, now check the version.
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
5639 printf %s
"checking version of $AWK... " >&6; }
5640 ac_prog_version
=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5641 case $ac_prog_version in
5642 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5643 3.1.
[2-9]*|
3.
[2-9]*|
[4-9]*)
5644 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5645 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5649 printf "%s\n" "$ac_prog_version" >&6; }
5651 if test $ac_verc_fail = yes; then
5652 critic_missing
="$critic_missing gawk"
5655 for ac_prog
in bison
5657 # Extract the first word of "$ac_prog", so it can be a program name with args.
5658 set dummy
$ac_prog; ac_word
=$2
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5660 printf %s
"checking for $ac_word... " >&6; }
5661 if test ${ac_cv_prog_BISON+y}
5663 printf %s
"(cached) " >&6
5665 if test -n "$BISON"; then
5666 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5672 case $as_dir in #(((
5675 *) as_dir
=$as_dir/ ;;
5677 for ac_exec_ext
in '' $ac_executable_extensions; do
5678 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_BISON
="$ac_prog"
5680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5689 BISON
=$ac_cv_prog_BISON
5690 if test -n "$BISON"; then
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5692 printf "%s\n" "$BISON" >&6; }
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 printf "%s\n" "no" >&6; }
5699 test -n "$BISON" && break
5702 if test -z "$BISON"; then
5705 # Found it, now check the version.
5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5707 printf %s
"checking version of $BISON... " >&6; }
5708 ac_prog_version
=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
5709 case $ac_prog_version in
5710 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5711 2.7*|
[3-9].
*|
[1-9][0-9]*)
5712 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5713 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5717 printf "%s\n" "$ac_prog_version" >&6; }
5719 if test $ac_verc_fail = yes; then
5720 critic_missing
="$critic_missing bison"
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
5725 printf %s
"checking if $CC is sufficient to build libc... " >&6; }
5726 if test ${libc_cv_compiler_ok+y}
5728 printf %s
"(cached) " >&6
5731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5738 #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
5739 #error insufficient compiler
5745 if ac_fn_c_try_cpp
"$LINENO"
5747 libc_cv_compiler_ok
=yes
5749 libc_cv_compiler_ok
=no
5751 rm -f conftest.err conftest.i conftest.
$ac_ext
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
5754 printf "%s\n" "$libc_cv_compiler_ok" >&6; }
5755 if test $libc_cv_compiler_ok != yes
5757 critic_missing
="$critic_missing compiler"
5760 if test "x$maintainer" = "xyes"; then
5761 for ac_prog
in autoconf
5763 # Extract the first word of "$ac_prog", so it can be a program name with args.
5764 set dummy
$ac_prog; ac_word
=$2
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 printf %s
"checking for $ac_word... " >&6; }
5767 if test ${ac_cv_prog_AUTOCONF+y}
5769 printf %s
"(cached) " >&6
5771 if test -n "$AUTOCONF"; then
5772 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
5774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5778 case $as_dir in #(((
5781 *) as_dir
=$as_dir/ ;;
5783 for ac_exec_ext
in '' $ac_executable_extensions; do
5784 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_AUTOCONF
="$ac_prog"
5786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5795 AUTOCONF
=$ac_cv_prog_AUTOCONF
5796 if test -n "$AUTOCONF"; then
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5798 printf "%s\n" "$AUTOCONF" >&6; }
5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 printf "%s\n" "no" >&6; }
5805 test -n "$AUTOCONF" && break
5807 test -n "$AUTOCONF" || AUTOCONF
="no"
5809 case "x$AUTOCONF" in
5810 xno|x|x
:) AUTOCONF
=no
;;
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5813 printf %s
"checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5814 if test ${libc_cv_autoconf_works+y}
5816 printf %s
"(cached) " >&6
5818 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac
> /dev
/null
2>&1); then
5819 libc_cv_autoconf_works
=yes
5821 libc_cv_autoconf_works
=no
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5825 printf "%s\n" "$libc_cv_autoconf_works" >&6; }
5826 test $libc_cv_autoconf_works = yes || AUTOCONF
=no
5829 if test "x$AUTOCONF" = xno
; then
5830 aux_missing
="$aux_missing autoconf"
5836 # Check for python3 if available, or else python.
5837 for ac_prog
in python3 python
5839 # Extract the first word of "$ac_prog", so it can be a program name with args.
5840 set dummy
$ac_prog; ac_word
=$2
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 printf %s
"checking for $ac_word... " >&6; }
5843 if test ${ac_cv_prog_PYTHON_PROG+y}
5845 printf %s
"(cached) " >&6
5847 if test -n "$PYTHON_PROG"; then
5848 ac_cv_prog_PYTHON_PROG
="$PYTHON_PROG" # Let the user override the test.
5850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5854 case $as_dir in #(((
5857 *) as_dir
=$as_dir/ ;;
5859 for ac_exec_ext
in '' $ac_executable_extensions; do
5860 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_PYTHON_PROG
="$ac_prog"
5862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5871 PYTHON_PROG
=$ac_cv_prog_PYTHON_PROG
5872 if test -n "$PYTHON_PROG"; then
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
5874 printf "%s\n" "$PYTHON_PROG" >&6; }
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 printf "%s\n" "no" >&6; }
5881 test -n "$PYTHON_PROG" && break
5884 if test -z "$PYTHON_PROG"; then
5887 # Found it, now check the version.
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
5889 printf %s
"checking version of $PYTHON_PROG... " >&6; }
5890 ac_prog_version
=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
5891 case $ac_prog_version in
5892 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5893 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*)
5894 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5895 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5899 printf "%s\n" "$ac_prog_version" >&6; }
5901 if test $ac_verc_fail = yes; then
5902 critic_missing
="$critic_missing python"
5905 PYTHON
="$PYTHON_PROG -B"
5908 test -n "$critic_missing" && as_fn_error $?
"
5909 *** These critical programs are missing or too old:$critic_missing
5910 *** Check the INSTALL file for required versions." "$LINENO" 5
5912 test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
5913 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5914 *** some features or tests will be disabled.
5915 *** Check the INSTALL file for required versions." >&5
5916 printf "%s\n" "$as_me: WARNING:
5917 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5918 *** some features or tests will be disabled.
5919 *** Check the INSTALL file for required versions." >&2;}
5922 # Determine whether to use fpu or nofpu sysdeps directories.
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
5924 printf %s
"checking for use of fpu sysdeps directories... " >&6; }
5925 if test ${libc_cv_with_fp+y}
5927 printf %s
"(cached) " >&6
5929 cat > conftest.c
<<EOF
5933 # error "no hardware floating point"
5937 if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c
-o conftest.s \
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
5944 printf "%s\n" "$libc_cv_with_fp" >&6; }
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
5948 printf %s
"checking for -fstack-protector... " >&6; }
5949 if test ${libc_cv_ssp+y}
5951 printf %s
"(cached) " >&6
5953 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
5954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5958 test $ac_status = 0; }; }
5966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
5967 printf "%s\n" "$libc_cv_ssp" >&6; }
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
5970 printf %s
"checking for -fstack-protector-strong... " >&6; }
5971 if test ${libc_cv_ssp_strong+y}
5973 printf %s
"(cached) " >&6
5975 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
5976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5980 test $ac_status = 0; }; }
5982 libc_cv_ssp_strong
=yes
5984 libc_cv_ssp_strong
=no
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
5989 printf "%s\n" "$libc_cv_ssp_strong" >&6; }
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
5992 printf %s
"checking for -fstack-protector-all... " >&6; }
5993 if test ${libc_cv_ssp_all+y}
5995 printf %s
"(cached) " >&6
5997 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
5998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6002 test $ac_status = 0; }; }
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
6011 printf "%s\n" "$libc_cv_ssp_all" >&6; }
6015 if test "$libc_cv_ssp" = yes; then
6016 no_stack_protector
="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
6017 printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
6021 if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
6022 stack_protector
="-fstack-protector"
6023 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
6025 elif test "$enable_stack_protector" = all
&& test "$libc_cv_ssp_all" = yes; then
6026 stack_protector
="-fstack-protector-all"
6027 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
6029 elif test "$enable_stack_protector" = strong
&& test "$libc_cv_ssp_strong" = yes; then
6030 stack_protector
="-fstack-protector-strong"
6031 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
6034 stack_protector
="-fno-stack-protector"
6035 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
6042 if test -n "$stack_protector"; then
6043 no_ssp
=-fno-stack-protector
6047 if test "$enable_stack_protector" != no
; then
6048 as_fn_error $?
"--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
6052 # For the multi-arch option we need support in the assembler & linker.
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
6054 printf %s
"checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
6055 if test ${libc_cv_ld_gnu_indirect_function+y}
6057 printf %s
"(cached) " >&6
6059 cat > conftest.S
<<EOF
6060 .type foo,%gnu_indirect_function
6073 libc_cv_ld_gnu_indirect_function
=no
6074 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6075 -nostartfiles -nostdlib $no_ssp \
6076 -o conftest conftest.S
1>&5 2>&5; then
6077 # Do a link to see if the backend supports IFUNC relocs.
6078 $READELF -r conftest
1>&5
6079 LC_ALL
=C
$READELF -Wr conftest |
grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
6080 libc_cv_ld_gnu_indirect_function
=yes
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
6086 printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; }
6088 # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
6090 printf %s
"checking for gcc attribute ifunc support... " >&6; }
6091 if test ${libc_cv_gcc_indirect_function+y}
6093 printf %s
"(cached) " >&6
6095 cat > conftest.c
<<EOF
6096 extern int func (int);
6097 int used_func (int a)
6101 static void *resolver ()
6105 extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
6107 libc_cv_gcc_indirect_function
=no
6108 if ${CC-cc} -c conftest.c
-o conftest.o
1>&5 \
6110 if $READELF -s conftest.o |
grep IFUNC
>/dev
/null
2>&5; then
6111 libc_cv_gcc_indirect_function
=yes
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
6117 printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; }
6119 # Check if linker supports textrel relocation with ifunc (used on elf/tests).
6120 # Note that it relies on libc_cv_ld_gnu_indirect_function test above.
6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
6122 printf %s
"checking whether the linker supports textrels along with ifunc... " >&6; }
6123 if test ${libc_cv_textrel_ifunc+y}
6125 printf %s
"(cached) " >&6
6127 cat > conftest.S
<<EOF
6128 .type foo,%gnu_indirect_function
6149 libc_cv_textrel_ifunc
=no
6150 if test $libc_cv_ld_gnu_indirect_function = yes; then
6151 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
6152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156 test $ac_status = 0; }; }; then
6157 libc_cv_textrel_ifunc
=yes
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
6163 printf "%s\n" "$libc_cv_textrel_ifunc" >&6; }
6166 # Check if CC supports attribute retain as it is used in attribute_used_retain macro.
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
6168 printf %s
"checking for GNU attribute retain support... " >&6; }
6169 if test ${libc_cv_gnu_retain+y}
6171 printf %s
"(cached) " >&6
6173 cat > conftest.c
<<EOF
6174 static int var __attribute__ ((used, retain, section ("__libc_atexit")));
6176 libc_cv_gnu_retain
=no
6177 if ${CC-cc} -Werror -c conftest.c
-o /dev
/null
1>&5 \
6179 libc_cv_gnu_retain
=yes
6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
6184 printf "%s\n" "$libc_cv_gnu_retain" >&6; }
6185 if test $libc_cv_gnu_retain = yes; then
6186 printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h
6189 config_vars
="$config_vars
6190 have-gnu-retain = $libc_cv_gnu_retain"
6192 # Check if gcc warns about alias for function with incompatible types.
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
6194 printf %s
"checking if compiler warns about alias for function with incompatible types... " >&6; }
6195 if test ${libc_cv_gcc_incompatible_alias+y}
6197 printf %s
"(cached) " >&6
6199 cat > conftest.c
<<EOF
6200 int __redirect_foo (const void *s, int c);
6202 __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
6203 __typeof (__redirect_foo) *foo_impl (void)
6208 extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
6210 libc_cv_gcc_incompatible_alias
=yes
6211 if ${CC-cc} -Werror -c conftest.c
-o conftest.o
1>&5 2>&5 ; then
6212 libc_cv_gcc_incompatible_alias
=no
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
6217 printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; }
6219 if test x
"$libc_cv_ld_gnu_indirect_function" != xyes
; then
6220 if test x
"$multi_arch" = xyes
; then
6221 as_fn_error $?
"--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
6226 if test x
"$libc_cv_gcc_indirect_function" != xyes
; then
6227 # GCC 8+ emits a warning for alias with incompatible types and it might
6228 # fail to build ifunc resolvers aliases to either weak or internal
6229 # symbols. Disables multiarch build in this case.
6230 if test x
"$libc_cv_gcc_incompatible_alias" = xyes
; then
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
6232 printf "%s\n" "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
6233 if test x
"$multi_arch" = xyes
; then
6234 as_fn_error $?
"--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
6237 printf "%s\n" "$as_me: WARNING: Multi-arch is disabled." >&2;}
6239 elif test x
"$multi_arch" = xyes
; then
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
6241 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
6242 printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
6243 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
6247 if test x
"$multi_arch" != xno
; then
6248 multi_arch_d
=/multiarch
6251 # Compute the list of sysdep directories for this configuration.
6252 # This can take a while to compute.
6253 sysdep_dir
=$srcdir/sysdeps
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
6255 printf %s
"checking sysdep dirs... " >&6; }
6256 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
6257 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
6259 test "x$base_os" != x ||
case "$os" in
6261 base_os
=mach
/hurd
;;
6263 base_os
=unix
/sysv
;;
6266 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
6269 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
6273 o
=`echo $tail | sed 's/[0-9]*$//'`
6274 if test $o != $tail; then
6277 # For linux-gnu, try linux-gnu, then linux.
6278 o
=`echo $tail | sed 's/-.*$//'`
6279 if test $o != $tail; then
6283 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
6286 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
6292 # For sparc/sparc32, try sparc/sparc32 and then sparc.
6294 tail=$machine${submachine:+/$submachine}
6295 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
6297 # Prepend the machine's FPU directory unless the architecture specific
6298 # preconfigure disables it.
6299 if test "$libc_cv_with_fp" = yes; then
6304 # For each machine term, try it with and then without /multiarch.
6305 for try_fpu
in $maybe_fpu ''; do
6306 for try_multi
in $multi_arch_d ''; do
6307 mach
="$mach /$1$try_fpu$try_multi"
6314 # Find what sysdep directories exist.
6316 for b
in $base ''; do
6317 for m0
in $mach ''; do
6318 for v
in /$vendor ''; do
6319 test "$v" = / && continue
6320 for o
in /$ostry ''; do
6321 test "$o" = / && continue
6322 for m
in $mach ''; do
6323 try_suffix
="$m0$b$v$o$m"
6324 if test -n "$try_suffix"; then
6325 try_srcdir
="${srcdir}/"
6326 try
="sysdeps$try_suffix"
6327 test -n "$enable_debug_configure" &&
6328 echo "$0 DEBUG: try $try" >&2
6329 if test -d "$try_srcdir$try"; then
6330 sysnames
="$sysnames $try"
6331 { test -n "$o" ||
test -n "$b"; } && os_used
=t
6332 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
6334 x
*/$submachine) submachine_used
=t
;;
6344 # If the assembler supports gnu_indirect_function symbol type and the
6345 # architecture supports multi-arch, we enable multi-arch by default.
6350 test x
"$multi_arch" = xdefault
&& multi_arch
=no
6353 if test x
"$multi_arch" != xno
; then
6354 printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h
6359 if test -z "$os_used" && test "$os" != none
; then
6360 as_fn_error $?
"Operating system $os is not supported." "$LINENO" 5
6362 if test -z "$machine_used" && test "$machine" != none
; then
6363 as_fn_error $?
"The $machine is not supported." "$LINENO" 5
6365 if test -z "$submachine_used" && test -n "$submachine"; then
6366 as_fn_error $?
"The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
6370 # We have now validated the configuration.
6372 # Expand the list of system names into a full list of directories
6373 # from each element's parent name and Implies file (if present).
6376 while test $# -gt 0; do
6380 case " $names " in *" $name "*)
6381 # Already in the list.
6385 # Report each name as we discover it, so there is no long pause in output.
6386 echo $ECHO_N "$name $ECHO_C" >&6
6388 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
6392 *) xsrcdir
=$srcdir/ ;;
6394 test -n "$enable_debug_configure" &&
6395 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
6397 for implies_file
in Implies Implies-before Implies-after
; do
6398 implies_type
=`echo $implies_file | sed s/-/_/`
6399 eval ${implies_type}=
6400 if test -f $xsrcdir$name/$implies_file; then
6401 # Collect more names from the `Implies' file (removing comments).
6402 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
6403 for x
in $implied_candidate; do
6405 if test -d $xsrcdir$name_base/$x; then
6406 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
6411 test -n "$enable_debug_configure" &&
6412 echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
6413 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
6415 eval "${implies_type}=\"\$${implies_type} \$try\""
6418 if test $found = no
; then
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
6420 printf "%s\n" "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
6426 # Add NAME to the list of names.
6427 names
="$names $name"
6429 # Find the parent of NAME, using the empty string if it has none.
6430 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
6432 test -n "$enable_debug_configure" &&
6433 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
6434 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
6436 # Add the names implied by NAME, and NAME's parent (if it has one), to
6437 # the list of names to be processed (the argument list). We prepend the
6438 # implied names to the list and append the parent. We want implied
6439 # directories to come before further directories inferred from the
6440 # configuration components; this ensures that for sysv4, unix/common
6441 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
6443 sysnames
="`echo $Implies $* $Implies_before $parent $Implies_after`"
6444 test -n "$sysnames" && set $sysnames
6447 # Add the default directories.
6448 default_sysnames
="sysdeps/generic"
6449 sysnames
="$names $default_sysnames"
6451 # The other names were emitted during the scan.
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
6453 printf "%s\n" "$default_sysnames" >&6; }
6455 # if using special system headers, find out the compiler's sekrit
6456 # header directory and add that to the list. NOTE: Only does the right
6457 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
6458 if test -n "$sysheaders"; then
6459 SYSINCLUDES
=-nostdinc
6460 for d
in include include-fixed
; do
6461 i
=`$CC -print-file-name="$d"` && test "x$i" != x
&& test "x$i" != "x$d" &&
6462 SYSINCLUDES
="$SYSINCLUDES -isystem $i"
6464 SYSINCLUDES
="$SYSINCLUDES \
6465 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
6466 if test -n "$CXX"; then
6468 for cxxheaders
in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
6469 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
6470 test "x$cxxheaders" != x
&&
6471 CXX_SYSINCLUDES
="$CXX_SYSINCLUDES -isystem $cxxheaders"
6478 # Obtain some C++ header file paths. This is used to make a local
6479 # copy of those headers in Makerules.
6480 if test -n "$CXX"; then
6481 find_cxx_header
() {
6482 echo "#include <$1>" |
$CXX -H -fsyntax-only -x c
++ - 2>&1 \
6483 |
$AWK '$1 == "."{print $2}'
6485 CXX_CSTDLIB_HEADER
="$(find_cxx_header cstdlib)"
6486 CXX_CMATH_HEADER
="$(find_cxx_header cmath)"
6487 CXX_BITS_STD_ABS_H
="$(find_cxx_header bits/std_abs.h)"
6493 # Test if LD_LIBRARY_PATH contains the notation for the current directory
6494 # since this would lead to problems installing/building glibc.
6495 # LD_LIBRARY_PATH contains the current directory if one of the following
6497 # - one of the terminals (":" and ";") is the first or last sign
6498 # - two terminals occur directly after each other
6499 # - the path contains an element with a dot in it
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
6501 printf %s
"checking LD_LIBRARY_PATH variable... " >&6; }
6502 case ${LD_LIBRARY_PATH} in
6503 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
6504 ld_library_path_setting
="contains current directory"
6507 ld_library_path_setting
="ok"
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
6511 printf "%s\n" "$ld_library_path_setting" >&6; }
6512 if test "$ld_library_path_setting" != "ok"; then
6514 *** LD_LIBRARY_PATH shouldn't contain the current directory when
6515 *** building glibc. Please change the environment variable
6516 *** and run configure again." "$LINENO" 5
6519 # Extract the first word of "bash", so it can be a program name with args.
6520 set dummy bash
; ac_word
=$2
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 printf %s
"checking for $ac_word... " >&6; }
6523 if test ${ac_cv_path_BASH_SHELL+y}
6525 printf %s
"(cached) " >&6
6529 ac_cv_path_BASH_SHELL
="$BASH_SHELL" # Let the user override the test with a path.
6532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6536 case $as_dir in #(((
6539 *) as_dir
=$as_dir/ ;;
6541 for ac_exec_ext
in '' $ac_executable_extensions; do
6542 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6543 ac_cv_path_BASH_SHELL
="$as_dir$ac_word$ac_exec_ext"
6544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6551 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL
="no"
6555 BASH_SHELL
=$ac_cv_path_BASH_SHELL
6556 if test -n "$BASH_SHELL"; then
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
6558 printf "%s\n" "$BASH_SHELL" >&6; }
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 printf "%s\n" "no" >&6; }
6566 # Extract the first word of "perl", so it can be a program name with args.
6567 set dummy perl
; ac_word
=$2
6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 printf %s
"checking for $ac_word... " >&6; }
6570 if test ${ac_cv_path_PERL+y}
6572 printf %s
"(cached) " >&6
6576 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
6579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6583 case $as_dir in #(((
6586 *) as_dir
=$as_dir/ ;;
6588 for ac_exec_ext
in '' $ac_executable_extensions; do
6589 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6590 ac_cv_path_PERL
="$as_dir$ac_word$ac_exec_ext"
6591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6598 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
6602 PERL
=$ac_cv_path_PERL
6603 if test -n "$PERL"; then
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6605 printf "%s\n" "$PERL" >&6; }
6607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 printf "%s\n" "no" >&6; }
6612 if test "$PERL" != no
&&
6613 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
6616 # Extract the first word of "install-info", so it can be a program name with args.
6617 set dummy install-info
; ac_word
=$2
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619 printf %s
"checking for $ac_word... " >&6; }
6620 if test ${ac_cv_path_INSTALL_INFO+y}
6622 printf %s
"(cached) " >&6
6624 case $INSTALL_INFO in
6626 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6630 as_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
6631 for as_dir
in $as_dummy
6634 case $as_dir in #(((
6637 *) as_dir
=$as_dir/ ;;
6639 for ac_exec_ext
in '' $ac_executable_extensions; do
6640 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6641 ac_cv_path_INSTALL_INFO
="$as_dir$ac_word$ac_exec_ext"
6642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6649 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
6653 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6654 if test -n "$INSTALL_INFO"; then
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6656 printf "%s\n" "$INSTALL_INFO" >&6; }
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6659 printf "%s\n" "no" >&6; }
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
6665 printf %s
"checking for .set assembler directive... " >&6; }
6666 if test ${libc_cv_asm_set_directive+y}
6668 printf %s
"(cached) " >&6
6670 cat > conftest.s
<<EOF
6673 .set glibc_conftest_frobozz,foo
6674 .globl glibc_conftest_frobozz
6676 # The alpha-dec-osf1 assembler gives only a warning for `.set'
6677 # (but it doesn't work), so we must do a linking check to be sure.
6678 cat > conftest1.c
<<\EOF
6679 extern int glibc_conftest_frobozz
;
6680 void _start
() { glibc_conftest_frobozz
= 1; }
6682 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6683 -nostartfiles -nostdlib $no_ssp \
6684 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
6685 libc_cv_asm_set_directive
=yes
6687 libc_cv_asm_set_directive
=no
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
6692 printf "%s\n" "$libc_cv_asm_set_directive" >&6; }
6693 if test $libc_cv_asm_set_directive = yes; then
6694 printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
6699 printf %s
"checking linker support for protected data symbol... " >&6; }
6700 if test ${libc_cv_protected_data+y}
6702 printf %s
"(cached) " >&6
6704 cat > conftest.c
<<EOF
6705 int bar __attribute__ ((visibility ("protected"))) = 1;
6707 libc_cv_protected_data
=no
6708 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
6709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6713 test $ac_status = 0; }; }; then
6714 cat > conftest.c
<<EOF
6716 int main (void) { return bar; }
6718 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
6719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723 test $ac_status = 0; }; }; then
6724 libc_cv_protected_data
=yes
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
6731 printf "%s\n" "$libc_cv_protected_data" >&6; }
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
6735 printf %s
"checking linker support for INSERT in linker script... " >&6; }
6736 if test ${libc_cv_insert+y}
6738 printf %s
"(cached) " >&6
6740 cat > conftest.c
<<EOF
6741 int __attribute__ ((section(".bar"))) bar = 0x12345678;
6742 int test (void) { return bar; }
6744 cat > conftest.t
<<EOF
6749 INSERT AFTER .rela.dyn;
6752 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
6753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757 test $ac_status = 0; }; }; then
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
6764 printf "%s\n" "$libc_cv_insert" >&6; }
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
6768 printf %s
"checking for broken __attribute__((alias()))... " >&6; }
6769 if test ${libc_cv_broken_alias_attribute+y}
6771 printf %s
"(cached) " >&6
6773 cat > conftest.c
<<EOF
6774 extern int foo (int x) __asm ("xyzzy");
6775 int bar (int x) { return x; }
6776 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6778 extern __typeof (dfoo) dfoo __asm ("abccb");
6781 libc_cv_broken_alias_attribute
=yes
6782 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787 test $ac_status = 0; }; }; then
6788 if grep 'xyzzy' conftest.s
>/dev
/null
&&
6789 grep 'abccb' conftest.s
>/dev
/null
; then
6790 libc_cv_broken_alias_attribute
=no
6793 rm -f conftest.c conftest.s
6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
6797 printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; }
6798 if test $libc_cv_broken_alias_attribute = yes; then
6799 as_fn_error $?
"working alias attribute support required" "$LINENO" 5
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
6803 printf %s
"checking whether to put _rtld_local into .sdata section... " >&6; }
6804 if test ${libc_cv_have_sdata_section+y}
6806 printf %s
"(cached) " >&6
6808 echo "int i;" > conftest.c
6809 libc_cv_have_sdata_section
=no
6810 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c
-o conftest.so
2>&1 \
6811 |
grep '\.sdata' >/dev
/null
; then
6812 libc_cv_have_sdata_section
=yes
6814 rm -f conftest.c conftest.so
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
6818 printf "%s\n" "$libc_cv_have_sdata_section" >&6; }
6819 if test $libc_cv_have_sdata_section = yes; then
6820 printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h
6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
6825 printf %s
"checking for libunwind-support in compiler... " >&6; }
6826 if test ${libc_cv_cc_with_libunwind+y}
6828 printf %s
"(cached) " >&6
6831 cat > conftest.c
<<EOF
6832 int main (void) { return 0; }
6834 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6835 conftest.c
-v 2>&1 >/dev
/null |
grep ' -lunwind ' >/dev
/null
; then
6836 libc_cv_cc_with_libunwind
=yes
6838 libc_cv_cc_with_libunwind
=no
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
6843 printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; }
6845 if test $libc_cv_cc_with_libunwind = yes; then
6846 printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6852 printf %s
"checking whether --noexecstack is desirable for .S files... " >&6; }
6853 if test ${libc_cv_as_noexecstack+y}
6855 printf %s
"(cached) " >&6
6857 cat > conftest.c
<<EOF
6860 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS
6861 -S -o conftest.s conftest.c 1>&5'
6862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6866 test $ac_status = 0; }; } \
6867 && grep .note.GNU-stack conftest.s
>/dev
/null \
6868 && { ac_try
='${CC-cc} $ASFLAGS -Wa,--noexecstack
6869 -c -o conftest.o conftest.s 1>&5'
6870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6874 test $ac_status = 0; }; }
6876 libc_cv_as_noexecstack
=yes
6878 libc_cv_as_noexecstack
=no
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6883 printf "%s\n" "$libc_cv_as_noexecstack" >&6; }
6884 if test $libc_cv_as_noexecstack = yes; then
6885 ASFLAGS_config
="$ASFLAGS_config -Wa,--noexecstack"
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
6890 printf %s
"checking for linker that supports -z execstack... " >&6; }
6891 libc_linker_feature
=no
6892 cat > conftest.c
<<EOF
6893 int _start (void) { return 42; }
6895 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
6896 -Wl,-z,execstack -nostdlib -nostartfiles
6897 -fPIC -shared -o conftest.so conftest.c
6899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6903 test $ac_status = 0; }; }
6905 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack
-nostdlib \
6906 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
6907 |
grep "warning: -z execstack ignored" > /dev
/null
2>&1; then
6910 libc_linker_feature
=yes
6914 if test $libc_linker_feature = yes; then
6915 libc_cv_z_execstack
=yes
6917 libc_cv_z_execstack
=no
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6920 printf "%s\n" "$libc_linker_feature" >&6; }
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
6924 printf %s
"checking for linker that supports -z start-stop-gc... " >&6; }
6925 libc_linker_feature
=no
6926 cat > conftest.c
<<EOF
6927 int _start (void) { return 42; }
6929 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
6930 -Wl,-z,start-stop-gc -nostdlib -nostartfiles
6931 -fPIC -shared -o conftest.so conftest.c
6933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6937 test $ac_status = 0; }; }
6939 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc
-nostdlib \
6940 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
6941 |
grep "warning: -z start-stop-gc ignored" > /dev
/null
2>&1; then
6944 libc_linker_feature
=yes
6948 if test $libc_linker_feature = yes; then
6949 libc_cv_z_start_stop_gc
=yes
6951 libc_cv_z_start_stop_gc
=no
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6954 printf "%s\n" "$libc_linker_feature" >&6; }
6955 config_vars
="$config_vars
6956 have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
6959 printf %s
"checking for linker that supports --depaudit... " >&6; }
6960 libc_linker_feature
=no
6961 cat > conftest.c
<<EOF
6962 int _start (void) { return 42; }
6964 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
6965 -Wl,--depaudit,x -nostdlib -nostartfiles
6966 -fPIC -shared -o conftest.so conftest.c
6968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972 test $ac_status = 0; }; }
6974 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x
-nostdlib \
6975 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
6976 |
grep "warning: --depaudit ignored" > /dev
/null
2>&1; then
6979 libc_linker_feature
=yes
6983 if test $libc_linker_feature = yes; then
6984 libc_cv_depaudit
=yes
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6989 printf "%s\n" "$libc_linker_feature" >&6; }
6990 config_vars
="$config_vars
6991 have-depaudit = $libc_cv_depaudit"
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
6994 printf %s
"checking for linker that supports -z pack-relative-relocs... " >&6; }
6995 libc_linker_feature
=no
6996 cat > conftest.c
<<EOF
6997 int _start (void) { return 42; }
6999 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7000 -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
7001 -fPIC -shared -o conftest.so conftest.c
7003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007 test $ac_status = 0; }; }
7009 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs
-nostdlib \
7010 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
7011 |
grep "warning: -z pack-relative-relocs ignored" > /dev
/null
2>&1; then
7014 libc_linker_feature
=yes
7018 if test $libc_linker_feature = yes; then
7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7024 printf "%s\n" "$libc_linker_feature" >&6; }
7025 config_vars
="$config_vars
7026 have-dt-relr = $libc_cv_dt_relr"
7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
7029 printf %s
"checking for linker that supports --no-dynamic-linker... " >&6; }
7030 libc_linker_feature
=no
7031 cat > conftest.c
<<EOF
7032 int _start (void) { return 42; }
7034 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
7035 -Wl,--no-dynamic-linker -nostdlib -nostartfiles
7036 -fPIC -shared -o conftest.so conftest.c
7038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042 test $ac_status = 0; }; }
7044 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
7045 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
7046 |
grep "warning: --no-dynamic-linker ignored" > /dev
/null
2>&1; then
7049 libc_linker_feature
=yes
7053 if test $libc_linker_feature = yes; then
7054 libc_cv_no_dynamic_linker
=yes
7056 libc_cv_no_dynamic_linker
=no
7058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
7059 printf "%s\n" "$libc_linker_feature" >&6; }
7060 config_vars
="$config_vars
7061 have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
7064 printf %s
"checking for -static-pie... " >&6; }
7065 if test ${libc_cv_static_pie+y}
7067 printf %s
"(cached) " >&6
7069 if { ac_try
='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
7070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7074 test $ac_status = 0; }; }
7076 libc_cv_static_pie
=yes
7078 libc_cv_static_pie
=no
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
7083 printf "%s\n" "$libc_cv_static_pie" >&6; }
7084 config_vars
="$config_vars
7085 have-static-pie = $libc_cv_static_pie"
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
7088 printf %s
"checking for -fpie... " >&6; }
7089 if test ${libc_cv_fpie+y}
7091 printf %s
"(cached) " >&6
7093 if { ac_try
='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
7094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7098 test $ac_status = 0; }; }
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
7107 printf "%s\n" "$libc_cv_fpie" >&6; }
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
7112 printf %s
"checking for GLOB_DAT reloc... " >&6; }
7113 if test ${libc_cv_has_glob_dat+y}
7115 printf %s
"(cached) " >&6
7117 cat > conftest.c
<<EOF
7119 int foo (void) { return mumble; }
7121 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7122 -fPIC -shared -o conftest.so conftest.c
7123 -nostdlib -nostartfiles $no_ssp
7125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129 test $ac_status = 0; }; }
7131 if $READELF -rW conftest.so |
grep '_GLOB_DAT' > /dev
/null
; then
7132 libc_cv_has_glob_dat
=yes
7134 libc_cv_has_glob_dat
=no
7137 libc_cv_has_glob_dat
=no
7141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
7142 printf "%s\n" "$libc_cv_has_glob_dat" >&6; }
7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5
7146 printf %s
"checking for -mtls-dialect=gnu2... " >&6; }
7147 if test ${libc_cv_mtls_dialect_gnu2+y}
7149 printf %s
"(cached) " >&6
7151 cat > conftest.c
<<EOF
7158 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles
7159 conftest.c -o conftest 1>&5'
7160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164 test $ac_status = 0; }; }
7166 libc_cv_mtls_dialect_gnu2
=yes
7168 libc_cv_mtls_dialect_gnu2
=no
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5
7173 printf "%s\n" "$libc_cv_mtls_dialect_gnu2" >&6; }
7175 config_vars
="$config_vars
7176 have-mtls-dialect-gnu2 = $libc_cv_mtls_dialect_gnu2"
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5
7179 printf %s
"checking if -Wno-ignored-attributes is required for aliases... " >&6; }
7180 if test ${libc_cv_wno_ignored_attributes+y}
7182 printf %s
"(cached) " >&6
7184 cat > conftest.c
<<EOF
7188 extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
7189 extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
7191 libc_cv_wno_ignored_attributes
=""
7192 if ! { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c'
7193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7197 test $ac_status = 0; }; }
7199 libc_cv_wno_ignored_attributes
="-Wno-ignored-attributes"
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5
7204 printf "%s\n" "$libc_cv_wno_ignored_attributes" >&6; }
7205 config_vars
="$config_vars
7206 config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
7209 printf %s
"checking whether cc puts quotes around section names... " >&6; }
7210 if test ${libc_cv_have_section_quotes+y}
7212 printf %s
"(cached) " >&6
7214 cat > conftest.c
<<EOF
7215 static const int foo
7216 __attribute__ ((section ("bar"))) = 1;
7218 if ${CC-cc} -S conftest.c
-o conftest.s
; then
7219 if grep '\.section.*"bar"' conftest.s
>/dev
/null
; then
7220 libc_cv_have_section_quotes
=yes
7222 libc_cv_have_section_quotes
=no
7225 libc_cv_have_section_quotes
=unknown
7227 rm -f conftest.
{c
,s
}
7230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
7231 printf "%s\n" "$libc_cv_have_section_quotes" >&6; }
7232 if test $libc_cv_have_section_quotes = yes; then
7233 printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
7238 printf %s
"checking for __builtin_memset... " >&6; }
7239 if test ${libc_cv_gcc_builtin_memset+y}
7241 printf %s
"(cached) " >&6
7243 cat > conftest.c
<<\EOF
7246 __builtin_memset
(x
, 0, 1000);
7249 if { ac_try
='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
7250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7254 test $ac_status = 0; }; };
7256 libc_cv_gcc_builtin_memset
=no
7258 libc_cv_gcc_builtin_memset
=yes
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
7263 printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; }
7264 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7265 printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
7270 printf %s
"checking for redirection of built-in functions... " >&6; }
7271 if test ${libc_cv_gcc_builtin_redirection+y}
7273 printf %s
"(cached) " >&6
7275 cat > conftest.c
<<\EOF
7276 extern char
*strstr
(const char
*, const char
*) __asm
("my_strstr");
7277 char
*foo
(const char
*a
, const char
*b
)
7279 return __builtin_strstr
(a
, b
);
7282 if { ac_try
='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
7283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287 test $ac_status = 0; }; };
7289 libc_cv_gcc_builtin_redirection
=yes
7291 libc_cv_gcc_builtin_redirection
=no
7295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
7296 printf "%s\n" "$libc_cv_gcc_builtin_redirection" >&6; }
7297 if test "$libc_cv_gcc_builtin_redirection" = no
; then
7298 as_fn_error $?
"support for the symbol redirection needed" "$LINENO" 5
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
7302 printf %s
"checking for compiler option to disable generation of FMA instructions... " >&6; }
7303 if test ${libc_cv_cc_nofma+y}
7305 printf %s
"(cached) " >&6
7308 for opt
in -ffp-contract=off
-mno-fused-madd; do
7309 if { ac_try
='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7314 test $ac_status = 0; }; }
7316 libc_cv_cc_nofma
=$opt; break
7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
7321 printf "%s\n" "$libc_cv_cc_nofma" >&6; }
7324 if test -n "$submachine"; then
7325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7326 printf %s
"checking for compiler option for CPU variant... " >&6; }
7327 if test ${libc_cv_cc_submachine+y}
7329 printf %s
"(cached) " >&6
7331 libc_cv_cc_submachine
=no
7332 for opt
in "-march=$submachine" "-mcpu=$submachine"; do
7333 if { ac_try
='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; }; }
7341 libc_cv_cc_submachine
="$opt"
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7347 printf "%s\n" "$libc_cv_cc_submachine" >&6; }
7348 if test "x$libc_cv_cc_submachine" = xno
; then
7349 as_fn_error $?
"${CC-cc} does not support $submachine" "$LINENO" 5
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
7355 printf %s
"checking for compiler option that -fsignaling-nans... " >&6; }
7356 if test ${libc_cv_cc_signaling_nans+y}
7358 printf %s
"(cached) " >&6
7360 if { ac_try
='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
7361 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7365 test $ac_status = 0; }; }
7367 libc_cv_cc_signaling_nans
=-fsignaling-nans
7369 libc_cv_cc_signaling_nans
=
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
7374 printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; }
7375 config_vars
="$config_vars
7376 config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
7379 __attribute__ ((__optimize__))" >&5
7380 printf %s
"checking if $CC accepts -fno-tree-loop-distribute-patterns with \
7381 __attribute__ ((__optimize__))... " >&6; }
7382 if test ${libc_cv_cc_loop_to_function+y}
7384 printf %s
"(cached) " >&6
7386 cat > conftest.c
<<EOF
7388 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
7391 libc_cv_cc_loop_to_function
=no
7392 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
7393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7397 test $ac_status = 0; }; }
7399 libc_cv_cc_loop_to_function
=yes
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
7404 printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; }
7405 if test $libc_cv_cc_loop_to_function = yes; then
7406 printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
7411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
7412 printf %s
"checking for libgd... " >&6; }
7413 if test "$with_gd" != "no"; then
7414 old_CFLAGS
="$CFLAGS"
7415 CFLAGS
="$CFLAGS $libgd_include"
7416 old_LDFLAGS
="$LDFLAGS"
7417 LDFLAGS
="$LDFLAGS $libgd_ldflags"
7419 LIBS
="$LIBS -lgd -lpng -lz -lm"
7420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7431 if ac_fn_c_try_link
"$LINENO"
7437 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7438 conftest
$ac_exeext conftest.
$ac_ext
7439 CFLAGS
="$old_CFLAGS"
7440 LDFLAGS
="$old_LDFLAGS"
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
7446 printf "%s\n" "$LIBGD" >&6; }
7450 if test x
$with_selinux = xno
; then
7453 # See if we have the SELinux library
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
7455 printf %s
"checking for is_selinux_enabled in -lselinux... " >&6; }
7456 if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
7458 printf %s
"(cached) " >&6
7460 ac_check_lib_save_LIBS
=$LIBS
7461 LIBS
="-lselinux $LIBS"
7462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7465 /* Override any GCC internal prototype to avoid an error.
7466 Use char because int might match the return type of a GCC
7467 builtin and then its argument prototype would still apply. */
7468 char is_selinux_enabled ();
7472 return is_selinux_enabled ();
7477 if ac_fn_c_try_link
"$LINENO"
7479 ac_cv_lib_selinux_is_selinux_enabled
=yes
7481 ac_cv_lib_selinux_is_selinux_enabled
=no
7483 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7484 conftest
$ac_exeext conftest.
$ac_ext
7485 LIBS
=$ac_check_lib_save_LIBS
7487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7488 printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7489 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
7496 if test x
$with_selinux = xyes
; then
7497 if test x
$have_selinux = xno
; then
7498 as_fn_error $?
"SELinux explicitly required, but SELinux library not found" "$LINENO" 5
7502 # Check if we're building with SELinux support.
7503 if test "x$have_selinux" = xyes
; then
7505 printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
7508 # See if we have the libaudit library
7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
7510 printf %s
"checking for audit_log_user_avc_message in -laudit... " >&6; }
7511 if test ${ac_cv_lib_audit_audit_log_user_avc_message+y}
7513 printf %s
"(cached) " >&6
7515 ac_check_lib_save_LIBS
=$LIBS
7516 LIBS
="-laudit $LIBS"
7517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7520 /* Override any GCC internal prototype to avoid an error.
7521 Use char because int might match the return type of a GCC
7522 builtin and then its argument prototype would still apply. */
7523 char audit_log_user_avc_message ();
7527 return audit_log_user_avc_message ();
7532 if ac_fn_c_try_link
"$LINENO"
7534 ac_cv_lib_audit_audit_log_user_avc_message
=yes
7536 ac_cv_lib_audit_audit_log_user_avc_message
=no
7538 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7539 conftest
$ac_exeext conftest.
$ac_ext
7540 LIBS
=$ac_check_lib_save_LIBS
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7543 printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7544 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes
7551 if test "x$have_libaudit" = xyes
; then
7553 printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h
7558 # See if we have the libcap library
7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
7560 printf %s
"checking for cap_init in -lcap... " >&6; }
7561 if test ${ac_cv_lib_cap_cap_init+y}
7563 printf %s
"(cached) " >&6
7565 ac_check_lib_save_LIBS
=$LIBS
7567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7570 /* Override any GCC internal prototype to avoid an error.
7571 Use char because int might match the return type of a GCC
7572 builtin and then its argument prototype would still apply. */
7582 if ac_fn_c_try_link
"$LINENO"
7584 ac_cv_lib_cap_cap_init
=yes
7586 ac_cv_lib_cap_cap_init
=no
7588 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7589 conftest
$ac_exeext conftest.
$ac_ext
7590 LIBS
=$ac_check_lib_save_LIBS
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
7593 printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; }
7594 if test "x$ac_cv_lib_cap_cap_init" = xyes
7601 if test "x$have_libcap" = xyes
; then
7603 printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
7610 no_fortify_source
="-Wp,-U_FORTIFY_SOURCE"
7611 fortify_source
="${no_fortify_source}"
7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level" >&5
7614 printf %s
"checking for maximum supported _FORTIFY_SOURCE level... " >&6; }
7615 if test ${libc_cv_supported_fortify_source+y}
7617 printf %s
"(cached) " >&6
7620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7626 __builtin_dynamic_object_size("", 0)
7631 if ac_fn_c_try_link
"$LINENO"
7633 libc_cv_supported_fortify_source
=3
7635 libc_cv_supported_fortify_source
=2
7637 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7638 conftest
$ac_exeext conftest.
$ac_ext
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5
7642 printf "%s\n" "$libc_cv_supported_fortify_source" >&6; }
7644 case $enable_fortify_source in #(
7646 libc_cv_fortify_source
=yes enable_fortify_source
=$libc_cv_supported_fortify_source ;; #(
7648 libc_cv_fortify_source
=yes ;; #(
7650 if test $libc_cv_supported_fortify_source = 3
7652 libc_cv_fortify_source
=yes
7654 as_fn_error $?
"Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5
7657 libc_cv_fortify_source
=no
;;
7660 if test "$libc_cv_fortify_source" = yes
7662 fortify_source
="${fortify_source},-D_FORTIFY_SOURCE=${enable_fortify_source}"
7670 config_vars
="$config_vars
7671 supported-fortify = $libc_cv_supported_fortify_source"
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
7674 printf %s
"checking whether the assembler requires one version per symbol... " >&6; }
7675 if test ${libc_cv_symver_needs_alias+y}
7677 printf %s
"(cached) " >&6
7679 cat > conftest.s
<<EOF
7683 .symver testfunc, testfunc1@VERSION1
7684 .symver testfunc, testfunc1@VERSION2
7686 libc_cv_symver_needs_alias
=no
7687 if ${CC-cc} $ASFLAGS -c conftest.s
2>&5; then
7688 libc_cv_symver_needs_alias
=no
7690 libc_cv_symver_needs_alias
=yes
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
7696 printf "%s\n" "$libc_cv_symver_needs_alias" >&6; }
7697 if test "$libc_cv_symver_needs_alias" = yes; then
7698 printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
7703 printf %s
"checking for __builtin_trap with no external dependencies... " >&6; }
7704 if test ${libc_cv_builtin_trap+y}
7706 printf %s
"(cached) " >&6
7708 libc_cv_builtin_trap
=no
7709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7720 if ac_fn_c_try_compile
"$LINENO"
7723 libc_undefs
=`$NM -u conftest.o |
7724 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
7726 as_fn_error $?
"confusing output from $NM -u" "$LINENO" 5
7728 echo >&5 "libc_undefs='$libc_undefs'"
7729 if test -z "$libc_undefs"; then
7730 libc_cv_builtin_trap
=yes
7733 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
7736 printf "%s\n" "$libc_cv_builtin_trap" >&6; }
7737 if test $libc_cv_builtin_trap = yes; then
7738 printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
7743 ac_cpp
='$CXXCPP $CPPFLAGS'
7744 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7745 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7746 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
7750 printf %s
"checking whether the C++ compiler supports thread_local... " >&6; }
7751 if test ${libc_cv_cxx_thread_local+y}
7753 printf %s
"(cached) " >&6
7756 old_CXXFLAGS
="$CXXFLAGS"
7757 CXXFLAGS
="$CXXFLAGS -std=gnu++11"
7758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7763 // Compiler support.
7770 S * get () { return &s; }
7772 // libstdc++ support.
7773 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
7774 #error __cxa_thread_atexit_impl not supported
7778 if ac_fn_cxx_try_compile
"$LINENO"
7780 libc_cv_cxx_thread_local
=yes
7782 libc_cv_cxx_thread_local
=no
7784 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7785 CXXFLAGS
="$old_CXXFLAGS"
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
7789 printf "%s\n" "$libc_cv_cxx_thread_local" >&6; }
7793 ac_cpp
='$CPP $CPPFLAGS'
7794 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7795 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7796 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7799 ### End of automated tests.
7800 ### Now run sysdeps configure fragments.
7802 # They also can set these variables.
7804 ldd_rewrite_script
=no
7805 libc_cv_sysconfdir
=$sysconfdir
7806 libc_cv_localstatedir
=$localstatedir
7807 libc_cv_gcc_unwind_find_fde
=no
7811 # Iterate over all the sysdep directories we will use, running their
7812 # configure fragments.
7813 for dir
in $sysnames; do
7816 *) dest
=$srcdir/$dir ;;
7818 if test -r $dest/configure
; then
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7820 printf "%s\n" "running configure fragment for $dir" >&6; }
7825 if test x
"$build_mathvec" = xnotset
; then
7828 config_vars
="$config_vars
7829 build-mathvec = $build_mathvec"
7834 if test x
$libc_cv_gcc_unwind_find_fde = xyes
; then
7835 printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7840 # A sysdeps configure fragment can reset this if IFUNC is not actually
7841 # usable even though the assembler knows how to generate the symbol type.
7842 if test x
"$libc_cv_ld_gnu_indirect_function" = xyes
; then
7843 printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h
7846 config_vars
="$config_vars
7847 have-ifunc = $libc_cv_ld_gnu_indirect_function"
7849 if test x
"$libc_cv_gcc_indirect_function" = xyes
; then
7850 printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h
7853 config_vars
="$config_vars
7854 have-gcc-ifunc = $libc_cv_gcc_indirect_function"
7856 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
7857 # configure fragment can override the value to prevent this AC_DEFINE.
7859 if test "x$use_nscd" != xno
; then
7860 printf "%s\n" "#define USE_NSCD 1" >>confdefs.h
7863 if test "x$build_nscd" = xdefault
; then
7864 build_nscd
=$use_nscd
7874 if test x
$use_ldconfig = xyes
; then
7875 printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7885 printf %s
"checking whether -fPIC is default... " >&6; }
7886 if test ${libc_cv_pic_default+y}
7888 printf %s
"(cached) " >&6
7890 libc_cv_pic_default
=yes
7891 cat > conftest.c
<<EOF
7892 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7893 # error PIC is default.
7896 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7897 libc_cv_pic_default
=no
7901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
7902 printf "%s\n" "$libc_cv_pic_default" >&6; }
7903 config_vars
="$config_vars
7904 build-pic-default = $libc_cv_pic_default"
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
7907 printf %s
"checking whether -fPIE is default... " >&6; }
7908 if test ${libc_cv_cc_pie_default+y}
7910 printf %s
"(cached) " >&6
7912 libc_cv_cc_pie_default
=yes
7913 cat > conftest.c
<<EOF
7914 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
7915 # error PIE is default.
7918 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7919 libc_cv_cc_pie_default
=no
7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
7924 printf "%s\n" "$libc_cv_cc_pie_default" >&6; }
7925 config_vars
="$config_vars
7926 cc-pie-default = $libc_cv_cc_pie_default"
7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
7929 printf %s
"checking if we can build programs as PIE... " >&6; }
7930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7932 #ifdef PIE_UNSUPPORTED
7933 # error PIE is not supported
7936 if ac_fn_c_try_compile
"$LINENO"
7938 libc_cv_pie_supported
=yes
7940 libc_cv_pie_supported
=no
7942 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
7944 printf "%s\n" "$libc_cv_pie_supported" >&6; }
7945 # Disable build-pie-default if target does not support it or glibc is
7946 # configured with --disable-default-pie.
7947 if test "x$default_pie" = xno
; then
7948 build_pie_default
=no
7950 build_pie_default
=$libc_cv_pie_supported
7952 config_vars
="$config_vars
7953 build-pie-default = $build_pie_default"
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
7956 printf %s
"checking if we can build static PIE programs... " >&6; }
7957 libc_cv_static_pie_supported
=$libc_cv_pie_supported
7958 if test "x$libc_cv_pie_supported" != xno \
7959 -a "$libc_cv_no_dynamic_linker" = yes; then
7960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 #ifndef SUPPORT_STATIC_PIE
7963 # error static PIE is not supported
7966 if ac_fn_c_try_compile
"$LINENO"
7968 libc_cv_static_pie_supported
=yes
7970 libc_cv_static_pie_supported
=no
7972 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
7975 printf "%s\n" "$libc_cv_static_pie_supported" >&6; }
7977 # Enable static-pie only if it is available and glibc isn't configured
7978 # with --disable-default-pie.
7979 if test "x$default_pie" = xno
; then
7980 libc_cv_static_pie
=no
7982 libc_cv_static_pie
=$libc_cv_static_pie_supported
7984 if test "$libc_cv_static_pie" = "yes"; then
7985 printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h
7988 config_vars
="$config_vars
7989 enable-static-pie = $libc_cv_static_pie"
7991 # Set the `multidir' variable by grabbing the variable from the compiler.
7992 # We do it once and save the result in a generated makefile.
7993 libc_cv_multidir
=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
8003 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8004 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8008 if test "$pthread_in_libc" = yes; then
8009 printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h
8014 ac_config_files
="$ac_config_files config.make Makefile"
8016 ac_config_commands
="$ac_config_commands default"
8018 cat >confcache
<<\_ACEOF
8019 # This file is a shell script that caches the results of configure
8020 # tests run on this system so they can be shared between configure
8021 # scripts and configure runs, see configure's option --config-cache.
8022 # It is not useful on other systems. If it contains results you don't
8023 # want to keep, you may remove or edit it.
8025 # config.status only pays attention to the cache file if you give it
8026 # the --recheck option to rerun configure.
8028 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8029 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8034 # The following way of writing the cache mishandles newlines in values,
8035 # but we know of no workaround that is simple, portable, and efficient.
8036 # So, we kill variables containing newlines.
8037 # Ultrix sh set writes to stderr and can't be redirected directly,
8038 # and sets the high bit in the cache file unless we assign to the vars.
8040 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8041 eval ac_val
=\$
$ac_var
8045 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8046 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8049 _ | IFS | as_nl
) ;; #(
8050 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
8051 *) { eval $ac_var=; unset $ac_var;} ;;
8057 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8058 *${as_nl}ac_space
=\
*)
8059 # `set' does not quote correctly, so add quotes: double-quote
8060 # substitution turns \\\\ into \\, and sed turns \\ into \.
8063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8066 # `set' quotes correctly as required by POSIX, so do not add quotes.
8067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8076 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8078 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8080 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
8081 if test -w "$cache_file"; then
8082 if test "x$cache_file" != "x/dev/null"; then
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8084 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8085 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
8086 cat confcache
>"$cache_file"
8088 case $cache_file in #(
8090 mv -f confcache
"$cache_file"$$
&&
8091 mv -f "$cache_file"$$
"$cache_file" ;; #(
8093 mv -f confcache
"$cache_file" ;;
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8099 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8104 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8105 # Let make expand exec_prefix.
8106 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8108 DEFS
=-DHAVE_CONFIG_H
8113 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8114 # 1. Remove the extension, and $U if already installed.
8115 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
8116 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8117 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8118 # will be set to the directory where LIBOBJS objects are built.
8119 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8120 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
8124 LTLIBOBJS
=$ac_ltlibobjs
8128 : "${CONFIG_STATUS=./config.status}"
8130 ac_clean_files_save
=$ac_clean_files
8131 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8133 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8135 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8137 # Generated by $as_me.
8138 # Run this file to recreate the current configuration.
8139 # Compiler output produced by configure, useful for debugging
8140 # configure, is in config.log if it exists.
8146 SHELL=\${CONFIG_SHELL-$SHELL}
8149 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8150 ## -------------------- ##
8151 ## M4sh Initialization. ##
8152 ## -------------------- ##
8154 # Be more Bourne compatible
8155 DUALCASE
=1; export DUALCASE
# for MKS sh
8157 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
8161 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8162 # is contrary to our usage. Disable this feature.
8163 alias -g '${1+"$@"}'='"$@"'
8164 setopt NO_GLOB_SUBST
8166 case `(set -o) 2>/dev/null` in #(
8176 # Reset variables that may have inherited troublesome values from
8179 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8180 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8181 # side effect of setting IFS to empty, thus disabling word splitting.)
8182 # Quoting is to prevent editors from complaining about space-tab.
8192 # Ensure predictable behavior from utilities with locale-dependent output.
8198 # We cannot yet rely on "unset" to work, but we need these variables
8199 # to be unset--not just set to an empty or harmless value--now, to
8200 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8201 # also avoids known problems related to "unset" and subshell syntax
8202 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8203 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
8204 do eval test \
${$as_var+y} \
8205 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8208 # Ensure that fds 0, 1, and 2 are open.
8209 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
8210 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
8211 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
8213 # The user is always right.
8214 if ${PATH_SEPARATOR+false} :; then
8216 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
8217 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
8223 # Find who we are. Look in the path if we contain no directory separator.
8226 *[\\/]* ) as_myself
=$0 ;;
8227 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8231 case $as_dir in #(((
8234 *) as_dir
=$as_dir/ ;;
8236 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
8242 # We did not find ourselves, most probably we were run as `sh COMMAND'
8243 # in which case we are not to be found in the path.
8244 if test "x$as_myself" = x
; then
8247 if test ! -f "$as_myself"; then
8248 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8254 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8255 # ----------------------------------------
8256 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8257 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8258 # script with STATUS, using 1 if that was 0.
8261 as_status
=$1; test $as_status -eq 0 && as_status
=1
8263 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8266 printf "%s\n" "$as_me: error: $2" >&2
8267 as_fn_exit
$as_status
8272 # as_fn_set_status STATUS
8273 # -----------------------
8274 # Set $? to STATUS, without forking.
8278 } # as_fn_set_status
8282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8292 # Portably unset VAR.
8295 { eval $1=; unset $1;}
8297 as_unset
=as_fn_unset
8299 # as_fn_append VAR VALUE
8300 # ----------------------
8301 # Append the text in VALUE to the end of the definition contained in VAR. Take
8302 # advantage of any shell optimizations that allow amortized linear growth over
8303 # repeated appends, instead of the typical quadratic growth present in naive
8305 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
8307 eval 'as_fn_append ()
8318 # as_fn_arith ARG...
8319 # ------------------
8320 # Perform arithmetic evaluation on the ARGs, and store the result in the
8321 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8322 # must be portable across $(()) and expr.
8323 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
8325 eval 'as_fn_arith ()
8332 as_val
=`expr "$@" || test $? -eq 1`
8337 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8338 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8344 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8345 as_basename
=basename
8350 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8356 as_me
=`$as_basename -- "$0" ||
8357 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8358 X"$0" : 'X\(//\)$' \| \
8359 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8360 printf "%s\n" X/"$0" |
8361 sed '/^.*\/\([^/][^/]*\)\/*$/{
8375 # Avoid depending upon Character Ranges.
8376 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8377 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8378 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8379 as_cr_digits
='0123456789'
8380 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8383 # Determine whether it's possible to make 'echo' print without a newline.
8384 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8385 # for compatibility with existing Makefiles.
8386 ECHO_C
= ECHO_N
= ECHO_T
=
8387 case `echo -n x` in #(((((
8389 case `echo 'xy\c'` in
8390 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8392 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8399 # For backward compatibility with old third-party macros, we provide
8400 # the shell variables $as_echo and $as_echo_n. New code should use
8401 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8402 as_echo
='printf %s\n'
8403 as_echo_n
='printf %s'
8405 rm -f conf$$ conf$$.exe conf$$.
file
8406 if test -d conf$$.dir
; then
8407 rm -f conf$$.dir
/conf$$.
file
8410 mkdir conf$$.dir
2>/dev
/null
8412 if (echo >conf$$.
file) 2>/dev
/null
; then
8413 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8415 # ... but there are two gotchas:
8416 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8417 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8418 # In both cases, we have to default to `cp -pR'.
8419 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8421 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8429 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8430 rmdir conf$$.dir
2>/dev
/null
8435 # Create "$as_dir" as a directory, including parents if necessary.
8440 -*) as_dir
=.
/$as_dir;;
8442 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8446 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8447 *) as_qdir
=$as_dir;;
8449 as_dirs
="'$as_qdir' $as_dirs"
8450 as_dir
=`$as_dirname -- "$as_dir" ||
8451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8452 X"$as_dir" : 'X\(//\)[^/]' \| \
8453 X"$as_dir" : 'X\(//\)$' \| \
8454 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8455 printf "%s\n" X"$as_dir" |
8456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8473 test -d "$as_dir" && break
8475 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8476 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8480 if mkdir
-p .
2>/dev
/null
; then
8481 as_mkdir_p
='mkdir -p "$as_dir"'
8483 test -d .
/-p && rmdir .
/-p
8488 # as_fn_executable_p FILE
8489 # -----------------------
8490 # Test if FILE is an executable regular file.
8491 as_fn_executable_p
()
8493 test -f "$1" && test -x "$1"
8494 } # as_fn_executable_p
8496 as_executable_p
=as_fn_executable_p
8498 # Sed expression to map a string onto a valid CPP name.
8499 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8501 # Sed expression to map a string onto a valid variable name.
8502 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8506 ## ----------------------------------- ##
8507 ## Main body of $CONFIG_STATUS script. ##
8508 ## ----------------------------------- ##
8510 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8513 # Save the log message, to keep $0 and so on meaningful, and to
8514 # report actual input values of CONFIG_FILES etc. instead of their
8515 # values after options handling.
8517 This file was extended by GNU C Library $as_me (see version.h), which was
8518 generated by GNU Autoconf 2.71. Invocation command line was
8520 CONFIG_FILES = $CONFIG_FILES
8521 CONFIG_HEADERS = $CONFIG_HEADERS
8522 CONFIG_LINKS = $CONFIG_LINKS
8523 CONFIG_COMMANDS = $CONFIG_COMMANDS
8526 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8531 case $ac_config_files in *"
8532 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8535 case $ac_config_headers in *"
8536 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8541 # Files that config.status was made for.
8542 config_files="$ac_config_files"
8543 config_headers="$ac_config_headers"
8544 config_commands="$ac_config_commands"
8548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8550 \`$as_me' instantiates files and other configuration actions
8551 from templates according to the current configuration. Unless the files
8552 and actions are specified as TAGs, all are instantiated by default.
8554 Usage: $0 [OPTION]... [TAG]...
8556 -h, --help print this help, then exit
8557 -V, --version print version number and configuration settings, then exit
8558 --config print configuration, then exit
8559 -q, --quiet, --silent
8560 do not print progress messages
8561 -d, --debug don't remove temporary files
8562 --recheck update $as_me by reconfiguring in the same conditions
8563 --file=FILE[:TEMPLATE]
8564 instantiate the configuration file FILE
8565 --header=FILE[:TEMPLATE]
8566 instantiate the configuration header FILE
8568 Configuration files:
8571 Configuration headers:
8574 Configuration commands:
8577 Report bugs to <https://sourceware.org/bugzilla/>.
8578 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
8579 General help using GNU software: <https://www.gnu.org/gethelp/>."
8582 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8583 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8585 ac_cs_config='$ac_cs_config_escaped'
8587 GNU C Library config.status (see version.h)
8588 configured by $0, generated by GNU Autoconf 2.71,
8589 with options \\"\$ac_cs_config\\"
8591 Copyright (C) 2021 Free Software Foundation, Inc.
8592 This config.status script is free software; the Free Software Foundation
8593 gives unlimited permission to copy, distribute and modify it."
8598 test -n "\$AWK" || AWK=awk
8601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8602 # The default lists apply if the user does not specify any file.
8608 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8609 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8613 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8625 # Handling of the options.
8626 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8628 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8629 printf "%s\n" "$ac_cs_version"; exit ;;
8630 --config |
--confi |
--conf |
--con |
--co |
--c )
8631 printf "%s\n" "$ac_cs_config"; exit ;;
8632 --debug |
--debu |
--deb |
--de |
--d |
-d )
8634 --file |
--fil |
--fi |
--f )
8637 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8638 '') as_fn_error $?
"missing file argument" ;;
8640 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8641 ac_need_defaults
=false
;;
8642 --header |
--heade |
--head |
--hea )
8645 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8647 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8648 ac_need_defaults
=false
;;
8650 # Conflict between --help and --header
8651 as_fn_error $?
"ambiguous option: \`$1'
8652 Try \`$0 --help' for more information.";;
8653 --help |
--hel |
-h )
8654 printf "%s\n" "$ac_cs_usage"; exit ;;
8655 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8656 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8660 -*) as_fn_error $?
"unrecognized option: \`$1'
8661 Try \`$0 --help' for more information." ;;
8663 *) as_fn_append ac_config_targets
" $1"
8664 ac_need_defaults
=false
;;
8670 ac_configure_extra_args
=
8672 if $ac_cs_silent; then
8674 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8679 if \$ac_cs_recheck; then
8680 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8682 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8683 CONFIG_SHELL='$SHELL'
8689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8693 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8694 ## Running $as_me. ##
8696 printf "%s\n" "$ac_log"
8700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8704 config_vars='$config_vars'
8708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8710 # Handling of arguments.
8711 for ac_config_target
in $ac_config_targets
8713 case $ac_config_target in
8714 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8715 "config.make") CONFIG_FILES
="$CONFIG_FILES config.make" ;;
8716 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8717 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8719 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8724 # If the user did not use the arguments to specify the items to instantiate,
8725 # then the envvar interface is used. Set only those that are not.
8726 # We use the long form for the default assignment because of an extremely
8727 # bizarre bug on SunOS 4.1.3.
8728 if $ac_need_defaults; then
8729 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
8730 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
8731 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS
=$config_commands
8734 # Have a temporary directory for convenience. Make it in the build tree
8735 # simply because there is no reason against having it here, and in addition,
8736 # creating and moving files from /tmp can sometimes cause problems.
8737 # Hook for its removal unless debugging.
8738 # Note that there is a small window in which the directory will not be cleaned:
8739 # after its creation but before its name has been assigned to `$tmp'.
8743 trap 'exit_status=$?
8745 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8747 trap 'as_fn_exit 1' 1 2 13 15
8749 # Create a (secure) tmp directory for tmp files.
8752 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8756 tmp
=.
/conf$$
-$RANDOM
8757 (umask 077 && mkdir
"$tmp")
8758 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8761 # Set up the scripts for CONFIG_FILES section.
8762 # No need to generate them if there are no CONFIG_FILES.
8763 # This happens for instance with `./config.status config.h'.
8764 if test -n "$CONFIG_FILES"; then
8767 ac_cr
=`echo X | tr X '\015'`
8768 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8769 # But we know of no other shell where ac_cr would be empty at this
8770 # point, so we can use a bashism as a fallback.
8771 if test "x$ac_cr" = x
; then
8772 eval ac_cr
=\$
\'\\r
\'
8774 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8775 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8781 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8786 echo "cat >conf$$subs.awk <<_ACEOF" &&
8787 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8790 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8791 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8793 for ac_last_try in false false false false false :; do
8794 . ./conf$$subs.sh ||
8795 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8797 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8798 if test $ac_delim_n = $ac_delim_num; then
8800 elif $ac_last_try; then
8801 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8803 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8809 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8813 s/^/S["/; s
/!.
*/"]=/
8823 s/\(.\{148\}\)..*/\1/
8825 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8830 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8837 s/\(.\{148\}\)..*/\1/
8839 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8843 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8848 ' <conf$$subs.awk | sed '
8853 ' >>$CONFIG_STATUS || ac_write_fail=1
8854 rm -f conf$$subs.awk
8855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8857 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8858 for (key in S) S_is_set[key] = 1
8864 nfields = split(line, field, "@
")
8866 len = length(field[1])
8867 for (i = 2; i < nfields; i++) {
8869 keylen = length(key)
8870 if (S_is_set[key]) {
8872 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8873 len += length(value) + length(field[++i])
8884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8885 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8886 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8889 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8890 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8893 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8894 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8895 # trailing colons and then remove the whole line if VPATH becomes empty
8896 # (actually we leave an empty line to preserve line numbers).
8897 if test "x
$srcdir" = x.; then
8898 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8917 fi # test -n "$CONFIG_FILES"
8919 # Set up the scripts for CONFIG_HEADERS section.
8920 # No need to generate them if there are no CONFIG_HEADERS.
8921 # This happens for instance with `./config.status Makefile'.
8922 if test -n "$CONFIG_HEADERS"; then
8923 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8927 # Transform confdefs.h into an awk script `defines.awk', embedded as
8928 # here-document in config.status, that substitutes the proper values into
8929 # config.h.in to produce config.h.
8931 # Create a delimiter string that does not exist in confdefs.h, to ease
8932 # handling of long lines.
8934 for ac_last_try in false false :; do
8935 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8936 if test -z "$ac_tt"; then
8938 elif $ac_last_try; then
8939 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8941 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8945 # For the awk script, D is an array of macro values keyed by name,
8946 # likewise P contains macro parameters if any. Preserve backslash
8947 # newline sequences.
8949 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8951 s/.\{148\}/&'"$ac_delim"'/g
8954 s/^[ ]*#[ ]*define[ ][ ]*/ /
8961 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8963 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8967 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8968 D["\
1"]=" \
3\\\\\\n
"\\/p
8970 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8975 s/.\{148\}/&'"$ac_delim"'/g
8980 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8983 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8985 ' <confdefs.h | sed '
8986 s/'"$ac_delim"'/"\\\
8987 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8990 for (key in D) D_is_set[key] = 1
8993 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8995 split(line, arg, " ")
8996 if (arg[1] == "#") {
9000 defundef
= substr
(arg
[1], 2)
9003 split(mac1
, mac2
, "(") #)
9005 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
9006 if (D_is_set
[macro
]) {
9007 # Preserve the white space surrounding the "#".
9008 print prefix
"define", macro P
[macro
] D
[macro
]
9011 # Replace #undef with comments. This is necessary, for example,
9012 # in the case of _POSIX_SOURCE, which is predefined and required
9013 # on some systems where configure will not decide to define it.
9014 if (defundef
== "undef") {
9015 print
"/*", prefix defundef
, macro
, "*/"
9023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9024 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
9025 fi # test -n "$CONFIG_HEADERS"
9028 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9033 :[FHLC
]) ac_mode
=$ac_tag; continue;;
9035 case $ac_mode$ac_tag in
9037 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
9038 :[FH
]-) ac_tag
=-:-;;
9039 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
9056 -) ac_f
="$ac_tmp/stdin";;
9057 *) # Look for the file first in the build tree, then in the source tree
9058 # (if the path is not absolute). The absolute path cannot be DOS-style,
9059 # because $ac_f cannot contain `:'.
9063 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
9065 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9067 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9068 as_fn_append ac_file_inputs
" '$ac_f'"
9071 # Let's still pretend it is `configure' which instantiates (i.e., don't
9072 # use $as_me), people would be surprised to read:
9073 # /* config.h. Generated by config.status. */
9074 configure_input
='Generated from '`
9075 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9077 if test x
"$ac_file" != x-
; then
9078 configure_input
="$ac_file. $configure_input"
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9080 printf "%s\n" "$as_me: creating $ac_file" >&6;}
9082 # Neutralize special characters interpreted by sed in replacement strings.
9083 case $configure_input in #(
9084 *\
&* |
*\|
* |
*\\* )
9085 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
9086 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9087 *) ac_sed_conf_input
=$configure_input;;
9091 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
9092 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
9097 ac_dir
=`$as_dirname -- "$ac_file" ||
9098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9099 X"$ac_file" : 'X\(//\)[^/]' \| \
9100 X"$ac_file" : 'X\(//\)$' \| \
9101 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9102 printf "%s\n" X"$ac_file" |
9103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9120 as_dir
="$ac_dir"; as_fn_mkdir_p
9124 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9126 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9127 # A ".." for each directory in $ac_dir_suffix.
9128 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9129 case $ac_top_builddir_sub in
9130 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9131 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9134 ac_abs_top_builddir
=$ac_pwd
9135 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9136 # for backward compatibility:
9137 ac_top_builddir
=$ac_top_build_prefix
9140 .
) # We are building in place.
9142 ac_top_srcdir
=$ac_top_builddir_sub
9143 ac_abs_top_srcdir
=$ac_pwd ;;
9144 [\\/]* | ?
:[\\/]* ) # Absolute name.
9145 ac_srcdir
=$srcdir$ac_dir_suffix;
9146 ac_top_srcdir
=$srcdir
9147 ac_abs_top_srcdir
=$srcdir ;;
9149 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9150 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9151 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9153 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9163 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9164 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9169 # If the template does not know about datarootdir, expand it.
9170 # FIXME: This hack should be removed a few years after 2.60.
9171 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9182 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9183 *datarootdir
*) ac_datarootdir_seen
=yes;;
9184 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9186 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9189 ac_datarootdir_hack='
9190 s&@datadir@&$datadir&g
9191 s&@docdir@&$docdir&g
9192 s&@infodir@&$infodir&g
9193 s&@localedir@&$localedir&g
9194 s&@mandir@&$mandir&g
9195 s&\\\${datarootdir}&$datarootdir&g' ;;
9199 # Neutralize VPATH when `$srcdir' = `.'.
9200 # Shell code in configure.ac might set extrasub.
9201 # FIXME: do we really want to maintain this feature?
9202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9203 ac_sed_extra="$ac_vpsub
9206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9208 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9209 s|@configure_input@|
$ac_sed_conf_input|
;t t
9210 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9211 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9212 s
&@srcdir@
&$ac_srcdir&;t t
9213 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9214 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9215 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9216 s
&@builddir@
&$ac_builddir&;t t
9217 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9218 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9219 s
&@INSTALL@
&$ac_INSTALL&;t t
9220 $ac_datarootdir_hack
9222 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
9223 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9225 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9226 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9227 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9228 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9229 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9230 which seems to be undefined. Please make sure it is defined" >&5
9231 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9232 which seems to be undefined. Please make sure it is defined" >&2;}
9234 rm -f "$ac_tmp/stdin"
9236 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9237 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9245 if test x"$ac_file" != x-; then
9247 printf "%s\n" "/* $configure_input */" >&1 \
9248 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9249 } >"$ac_tmp/config.h" \
9250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9251 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9253 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9256 mv "$ac_tmp/config.h" "$ac_file" \
9257 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9260 printf "%s\n" "/* $configure_input */" >&1 \
9261 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9262 || as_fn_error $? "could not create -" "$LINENO" 5
9266 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9267 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
9272 case $ac_file$ac_mode in
9274 case $CONFIG_FILES in *config.make*)
9275 echo "$config_vars" >> config.make;;
9277 test -d bits || mkdir bits ;;
9285 ac_clean_files=$ac_clean_files_save
9287 test $ac_write_fail = 0 ||
9288 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9291 # configure is writing to config.log, and then calls config.status.
9292 # config.status does its own redirection, appending to config.log.
9293 # Unfortunately, on DOS this fails, as config.log is still kept open
9294 # by configure, so config.status won't be able to
write to it
; its
9295 # output is simply discarded. So we exec the FD to /dev/null,
9296 # effectively closing config.log, so it can be properly (re)opened and
9297 # appended to by config.status. When coming back to configure, we
9298 # need to make the FD available again.
9299 if test "$no_create" != yes; then
9301 ac_config_status_args
=
9302 test "$silent" = yes &&
9303 ac_config_status_args
="$ac_config_status_args --quiet"
9305 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9307 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9308 # would make configure fail if this is the last instruction.
9309 $ac_cs_success || as_fn_exit
1
9313 # CONFIG_SUBDIRS section.
9315 if test "$no_recursion" != yes; then
9317 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9318 # so they do not pile up.
9319 ac_sub_configure_args
=
9321 eval "set x $ac_configure_args"
9325 if test -n "$ac_prev"; then
9330 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
9331 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
9332 ac_prev
=cache_file
;;
9333 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
9334 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
9337 --config-cache |
-C)
9339 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
9341 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
9343 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
9345 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
9347 --disable-option-checking)
9351 *\'*) ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9353 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
9357 # Always prepend --prefix to ensure using the same prefix
9358 # in subdir configurations.
9359 ac_arg
="--prefix=$prefix"
9361 *\'*) ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9363 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
9366 if test "$silent" = yes; then
9367 ac_sub_configure_args
="--silent $ac_sub_configure_args"
9370 # Always prepend --disable-option-checking to silence warnings, since
9371 # different subdirs can have different --enable and --with options.
9372 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
9375 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
9377 # Do not complain, so a configure script can configure whichever
9378 # parts of a large source tree are present.
9379 test -d "$srcdir/$ac_dir" ||
continue
9381 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9383 printf "%s\n" "$ac_msg" >&6
9384 as_dir
="$ac_dir"; as_fn_mkdir_p
9388 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9390 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9391 # A ".." for each directory in $ac_dir_suffix.
9392 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9393 case $ac_top_builddir_sub in
9394 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9395 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9398 ac_abs_top_builddir
=$ac_pwd
9399 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9400 # for backward compatibility:
9401 ac_top_builddir
=$ac_top_build_prefix
9404 .
) # We are building in place.
9406 ac_top_srcdir
=$ac_top_builddir_sub
9407 ac_abs_top_srcdir
=$ac_pwd ;;
9408 [\\/]* | ?
:[\\/]* ) # Absolute name.
9409 ac_srcdir
=$srcdir$ac_dir_suffix;
9410 ac_top_srcdir
=$srcdir
9411 ac_abs_top_srcdir
=$srcdir ;;
9413 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9414 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9415 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9417 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9422 # Check for configure.gnu first; this name is used for a wrapper for
9423 # Metaconfig's "Configure" on case-insensitive file systems.
9424 if test -f "$ac_srcdir/configure.gnu"; then
9425 ac_sub_configure
=$ac_srcdir/configure.gnu
9426 elif test -f "$ac_srcdir/configure"; then
9427 ac_sub_configure
=$ac_srcdir/configure
9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9430 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9434 # The recursion is here.
9435 if test -n "$ac_sub_configure"; then
9436 # Make the cache file name correct relative to the subdirectory.
9438 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
9440 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
9443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
9444 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9445 # The eval makes quoting arguments work.
9446 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9447 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9448 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9454 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9456 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}