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_descriptor
661 libc_cv_cc_with_libunwind
663 libc_cv_protected_data
675 libc_cv_textrel_ifunc
707 hardcoded_path_in_tests
708 enable_timezone_tools
710 extra_nonshared_cflags
765 program_transform_name
778 enable_option_checking
787 with_nonshared_cflags
788 with_rtld_early_cflags
794 enable_timezone_tools
795 enable_hardcoded_path_in_tests
798 enable_stack_protector
801 enable_maintainer_mode
805 enable_memory_tagging
813 enable_fortify_source
816 ac_precious_vars
='build_alias
830 # Initialize some variables set by options.
832 ac_init_version
=false
833 ac_unrecognized_opts
=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name
=s
,x
,x
,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir
='${exec_prefix}/bin'
859 sbindir
='${exec_prefix}/sbin'
860 libexecdir
='${exec_prefix}/libexec'
861 datarootdir
='${prefix}/share'
862 datadir
='${datarootdir}'
863 sysconfdir
='${prefix}/etc'
864 sharedstatedir
='${prefix}/com'
865 localstatedir
='${prefix}/var'
866 runstatedir
='${localstatedir}/run'
867 includedir
='${prefix}/include'
868 oldincludedir
='/usr/include'
869 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir
='${datarootdir}/info'
875 libdir
='${exec_prefix}/lib'
876 localedir
='${datarootdir}/locale'
877 mandir
='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\
$ac_option
891 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 case $ac_dashdash$ac_option in
900 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
902 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
905 -build |
--build |
--buil |
--bui |
--bu)
906 ac_prev
=build_alias
;;
907 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
908 build_alias
=$ac_optarg ;;
910 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
911 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
912 ac_prev
=cache_file
;;
913 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
914 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
915 cache_file
=$ac_optarg ;;
918 cache_file
=config.cache
;;
920 -datadir |
--datadir |
--datadi |
--datad)
922 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
923 datadir
=$ac_optarg ;;
925 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
926 |
--dataroo |
--dataro |
--datar)
927 ac_prev
=datarootdir
;;
928 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
929 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
930 datarootdir
=$ac_optarg ;;
932 -disable-* |
--disable-*)
933 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
936 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
937 ac_useropt_orig
=$ac_useropt
938 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
943 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep
=', ';;
946 eval enable_
$ac_useropt=no
;;
948 -docdir |
--docdir |
--docdi |
--doc |
--do)
950 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
953 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
955 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
958 -enable-* |
--enable-*)
959 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
962 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
963 ac_useropt_orig
=$ac_useropt
964 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
969 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep
=', ';;
972 eval enable_
$ac_useropt=\
$ac_optarg ;;
974 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
975 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
976 |
--exec |
--exe |
--ex)
977 ac_prev
=exec_prefix
;;
978 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
979 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
980 |
--exec=* |
--exe=* |
--ex=*)
981 exec_prefix
=$ac_optarg ;;
983 -gas |
--gas |
--ga |
--g)
984 # Obsolete; use --with-gas.
987 -help |
--help |
--hel |
--he |
-h)
989 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
990 ac_init_help
=recursive
;;
991 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
992 ac_init_help
=short
;;
994 -host |
--host |
--hos |
--ho)
995 ac_prev
=host_alias
;;
996 -host=* |
--host=* |
--hos=* |
--ho=*)
997 host_alias
=$ac_optarg ;;
999 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1001 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1003 htmldir
=$ac_optarg ;;
1005 -includedir |
--includedir |
--includedi |
--included |
--include \
1006 |
--includ |
--inclu |
--incl |
--inc)
1007 ac_prev
=includedir
;;
1008 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1009 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1010 includedir
=$ac_optarg ;;
1012 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1014 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1015 infodir
=$ac_optarg ;;
1017 -libdir |
--libdir |
--libdi |
--libd)
1019 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1020 libdir
=$ac_optarg ;;
1022 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1023 |
--libexe |
--libex |
--libe)
1024 ac_prev
=libexecdir
;;
1025 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1026 |
--libexe=* |
--libex=* |
--libe=*)
1027 libexecdir
=$ac_optarg ;;
1029 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1030 ac_prev
=localedir
;;
1031 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1032 localedir
=$ac_optarg ;;
1034 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1035 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1036 ac_prev
=localstatedir
;;
1037 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1038 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1039 localstatedir
=$ac_optarg ;;
1041 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1043 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1044 mandir
=$ac_optarg ;;
1046 -nfp |
--nfp |
--nf)
1047 # Obsolete; use --without-fp.
1050 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1051 |
--no-cr |
--no-c |
-n)
1054 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1055 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1058 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1059 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1060 |
--oldin |
--oldi |
--old |
--ol |
--o)
1061 ac_prev
=oldincludedir
;;
1062 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1063 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1064 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1065 oldincludedir
=$ac_optarg ;;
1067 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1069 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1070 prefix
=$ac_optarg ;;
1072 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1073 |
--program-pre |
--program-pr |
--program-p)
1074 ac_prev
=program_prefix
;;
1075 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1076 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1077 program_prefix
=$ac_optarg ;;
1079 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1080 |
--program-suf |
--program-su |
--program-s)
1081 ac_prev
=program_suffix
;;
1082 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1083 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1084 program_suffix
=$ac_optarg ;;
1086 -program-transform-name |
--program-transform-name \
1087 |
--program-transform-nam |
--program-transform-na \
1088 |
--program-transform-n |
--program-transform- \
1089 |
--program-transform |
--program-transfor \
1090 |
--program-transfo |
--program-transf \
1091 |
--program-trans |
--program-tran \
1092 |
--progr-tra |
--program-tr |
--program-t)
1093 ac_prev
=program_transform_name
;;
1094 -program-transform-name=* |
--program-transform-name=* \
1095 |
--program-transform-nam=* |
--program-transform-na=* \
1096 |
--program-transform-n=* |
--program-transform-=* \
1097 |
--program-transform=* |
--program-transfor=* \
1098 |
--program-transfo=* |
--program-transf=* \
1099 |
--program-trans=* |
--program-tran=* \
1100 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1101 program_transform_name
=$ac_optarg ;;
1103 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1105 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1106 pdfdir
=$ac_optarg ;;
1108 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1110 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1113 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1114 |
-silent |
--silent |
--silen |
--sile |
--sil)
1117 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1118 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1119 |
--run |
--ru |
--r)
1120 ac_prev
=runstatedir
;;
1121 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1122 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1123 |
--run=* |
--ru=* |
--r=*)
1124 runstatedir
=$ac_optarg ;;
1126 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1128 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1130 sbindir
=$ac_optarg ;;
1132 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1133 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1134 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1136 ac_prev
=sharedstatedir
;;
1137 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1138 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1139 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1141 sharedstatedir
=$ac_optarg ;;
1143 -site |
--site |
--sit)
1145 -site=* |
--site=* |
--sit=*)
1148 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1150 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1151 srcdir
=$ac_optarg ;;
1153 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1154 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1155 ac_prev
=sysconfdir
;;
1156 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1157 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1158 sysconfdir
=$ac_optarg ;;
1160 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1161 ac_prev
=target_alias
;;
1162 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1163 target_alias
=$ac_optarg ;;
1165 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1168 -version |
--version |
--versio |
--versi |
--vers |
-V)
1169 ac_init_version
=: ;;
1172 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1175 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1176 ac_useropt_orig
=$ac_useropt
1177 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep
=', ';;
1185 eval with_
$ac_useropt=\
$ac_optarg ;;
1187 -without-* |
--without-*)
1188 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1191 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1192 ac_useropt_orig
=$ac_useropt
1193 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1198 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep
=', ';;
1201 eval with_
$ac_useropt=no
;;
1204 # Obsolete; use --with-x.
1207 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1208 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1209 ac_prev
=x_includes
;;
1210 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1211 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1212 x_includes
=$ac_optarg ;;
1214 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1215 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1216 ac_prev
=x_libraries
;;
1217 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1218 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1219 x_libraries
=$ac_optarg ;;
1221 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1226 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
1228 case $ac_envvar in #(
1229 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1230 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1232 eval $ac_envvar=\
$ac_optarg
1233 export $ac_envvar ;;
1236 # FIXME: should be removed in autoconf 3.0.
1237 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1239 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246 if test -n "$ac_prev"; then
1247 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1248 as_fn_error $?
"missing argument to $ac_option"
1251 if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1254 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1255 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259 # Check all directory arguments for consistency.
1260 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir runstatedir
1265 eval ac_val
=\$
$ac_var
1266 # Remove trailing slashes.
1269 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\
$ac_val;;
1272 # Be sure to have absolute directory names.
1274 [\\/$
]* | ?
:[\\/]* ) continue;;
1275 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1277 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1285 target
=$target_alias
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x
; then
1289 if test "x$build_alias" = x
; then
1290 cross_compiling
=maybe
1291 elif test "x$build_alias" != "x$host_alias"; then
1297 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1299 test "$silent" = yes && exec 6>/dev
/null
1302 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di
=`ls -di .` &&
1304 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error $?
"working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error $?
"pwd does not report name of working directory"
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted
=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir
=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 printf "%s\n" X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1342 ac_srcdir_defaulted
=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1346 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1348 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1360 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 for ac_var
in $ac_precious_vars; do
1363 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1365 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1370 # Report the --help message.
1372 if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
1376 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE. See below for descriptions of some of the useful variables.
1383 Defaults for the options are specified in brackets.
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
1390 -q, --quiet, --silent do not print \`checking ...' messages
1391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396 Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
1398 [$ac_default_prefix]
1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1407 For better control, use the options below.
1409 Fine tuning of the installation directories:
1410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1435 --build=BUILD configure
for building on BUILD
[guessed
]
1436 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive
) echo "Configuration of GNU C Library (see version.h):";;
1447 --disable-option-checking ignore unrecognized
--enable/--with options
1448 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1449 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1450 --disable-sanity-checks really
do not use threads
(should not be used except
1451 in special situations
) [default
=yes]
1452 --enable-shared build shared library
[default
=yes if GNU ld
]
1453 --enable-profile build profiled library
[default
=no
]
1454 --disable-default-pie Do not build glibc programs and the testsuite as PIE
1456 --disable-timezone-tools
1457 do not
install timezone tools
[default
=install]
1458 --enable-hardcoded-path-in-tests
1459 hardcode newly built glibc path
in tests
1461 --disable-hidden-plt do not hide internal
function calls to avoid PLT
1462 --enable-bind-now disable lazy relocations
in DSOs
1463 --enable-stack-protector=[yes|no|all|strong
]
1464 Use
-fstack-protector[-all|
-strong] to detect glibc
1466 --enable-static-nss build static NSS modules
[default
=no
]
1467 --disable-force-install don
't force installation of files from this package,
1468 even if they are older than the installed files
1469 --enable-maintainer-mode
1470 enable make rules and dependencies not useful (and
1471 sometimes confusing) to the casual installer
1472 --enable-kernel=VERSION compile for compatibility with kernel not older than
1474 --disable-werror do not build with -Werror
1475 --enable-multi-arch enable single DSO with optimizations for multiple
1477 --enable-memory-tagging enable memory tagging if supported by the
1478 architecture [default=no]
1479 --enable-systemtap enable systemtap static probe points [default=no]
1480 --disable-build-nscd disable building and installing the nscd daemon
1481 --disable-nscd library functions will not contact the nscd daemon
1482 --enable-pt_chown Enable building and installing pt_chown
1483 --enable-mathvec Enable building and installing mathvec [default
1484 depends on architecture]
1485 --enable-cet enable Intel Control-flow Enforcement Technology
1487 --disable-scv syscalls will not use scv instruction, even if the
1488 kernel supports it, powerpc only
1489 --enable-fortify-source[=1|2|3]
1490 Use -D_FORTIFY_SOURCE=[1|2|3] to control code
1491 hardening, defaults to highest possible value
1492 supported by the build compiler.
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1498 --with-bugurl=URL Direct users to URL to report a bug
1499 --with-gd=DIR find libgd include dir and library with prefix DIR
1500 --with-gd-include=DIR find libgd include files in DIR
1501 --with-gd-lib=DIR find libgd library files in DIR
1502 --with-binutils=PATH specify location of binutils (as and ld)
1503 --with-selinux if building with SELinux support
1504 --with-headers=PATH location of system headers to use (for example
1505 /usr/src/linux/include) [default=compiler default]
1506 --with-nonshared-cflags=CFLAGS
1507 build nonshared libraries with additional CFLAGS
1508 --with-rtld-early-cflags=CFLAGS
1509 build early initialization with additional CFLAGS
1510 --with-timeoutfactor=NUM
1511 specify an integer to scale the timeout
1512 --with-cpu=CPU select code for CPU variant
1514 Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
1519 LIBS libraries to pass to the linker, e.g. -l<library>
1520 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1521 you have headers in a nonstandard directory <include dir>
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
1526 Use these variables to override the choices made by `configure' or to
help
1527 it to
find libraries and programs with nonstandard names
/locations.
1529 Report bugs to
<https
://sourceware.org
/bugzilla
/>.
1530 GNU C Library home page
: <https
://www.gnu.org
/software
/glibc
/>.
1531 General
help using GNU software
: <https
://www.gnu.org
/gethelp
/>.
1536 if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1539 test -d "$ac_dir" ||
1540 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1545 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1547 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1552 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1555 ac_abs_top_builddir
=$ac_pwd
1556 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir
=$ac_top_build_prefix
1561 .
) # We are building in place.
1563 ac_top_srcdir
=$ac_top_builddir_sub
1564 ac_abs_top_srcdir
=$ac_pwd ;;
1565 [\\/]* | ?
:[\\/]* ) # Absolute name.
1566 ac_srcdir
=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir
=$srcdir
1568 ac_abs_top_srcdir
=$srcdir ;;
1570 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1574 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1576 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1577 # Check for configure.gnu first; this name is used for a wrapper for
1578 # Metaconfig's "Configure" on case-insensitive file systems.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1586 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1595 GNU C Library configure
(see version.h
)
1596 generated by GNU Autoconf
2.71
1598 Copyright
(C
) 2021 Free Software Foundation
, Inc.
1599 This configure
script is free software
; the Free Software Foundation
1600 gives unlimited permission to copy
, distribute and modify it.
1605 ## ------------------------ ##
1606 ## Autoconf initialization. ##
1607 ## ------------------------ ##
1609 # ac_fn_c_try_compile LINENO
1610 # --------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_compile
()
1614 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1615 rm -f conftest.
$ac_objext conftest.beam
1616 if { { ac_try
="$ac_compile"
1618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 printf "%s\n" "$ac_try_echo"; } >&5
1623 (eval "$ac_compile") 2>conftest.err
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest.$ac_objext
1638 printf "%s\n" "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1646 } # ac_fn_c_try_compile
1648 # ac_fn_cxx_try_compile LINENO
1649 # ----------------------------
1650 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_cxx_try_compile ()
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext conftest.beam
1655 if { { ac_try="$ac_compile"
1657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1658 *) ac_try_echo
=$ac_try;;
1660 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 printf "%s\n" "$ac_try_echo"; } >&5
1662 (eval "$ac_compile") 2>conftest.err
1664 if test -s conftest.err
; then
1665 grep -v '^ *+' conftest.err
>conftest.er1
1666 cat conftest.er1
>&5
1667 mv -f conftest.er1 conftest.err
1669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_cxx_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest.
$ac_objext
1677 printf "%s\n" "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.
$ac_ext >&5
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status
$ac_retval
1685 } # ac_fn_cxx_try_compile
1687 # ac_fn_cxx_try_link LINENO
1688 # -------------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_cxx_try_link
()
1692 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1693 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1694 if { { ac_try
="$ac_link"
1696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 printf "%s\n" "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_cxx_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 test -x conftest$ac_exeext
1719 printf "%s\n" "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1732 } # ac_fn_cxx_try_link
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
1742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1743 *) ac_try_echo
=$ac_try;;
1745 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 printf "%s\n" "$ac_try_echo"; } >&5
1747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1749 if test -s conftest.err
; then
1750 grep -v '^ *+' conftest.err
>conftest.er1
1751 cat conftest.er1
>&5
1752 mv -f conftest.er1 conftest.err
1754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } > conftest.i
&& {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1762 printf "%s\n" "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.
$ac_ext >&5
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status
$ac_retval
1772 # ac_fn_c_try_link LINENO
1773 # -----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded.
1777 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1778 rm -f conftest.
$ac_objext conftest.beam conftest
$ac_exeext
1779 if { { ac_try
="$ac_link"
1781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 printf "%s\n" "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>conftest.err
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest$ac_exeext && {
1798 test "$cross_compiling" = yes ||
1799 test -x conftest$ac_exeext
1804 printf "%s\n" "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status $ac_retval
1817 } # ac_fn_c_try_link
1818 ac_configure_args_raw=
1823 ac_arg=`printf "%s\n" "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1825 as_fn_append ac_configure_args_raw " '$ac_arg'"
1828 case $ac_configure_args_raw in
1832 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1833 ac_unsafe_a="$ac_unsafe_z#~
"
1834 ac_safe_unquote="s
/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g
"
1835 ac_configure_args_raw=` printf "%s
\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1838 cat >config.log <<_ACEOF
1839 This file contains any messages produced by compilers while
1840 running configure, to aid debugging if configure makes a mistake.
1842 It was created by GNU C Library $as_me (see version.h), which was
1843 generated by GNU Autoconf 2.71. Invocation command line was
1845 $ $0$ac_configure_args_raw
1855 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1856 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1857 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1858 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1859 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1861 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1862 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1864 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1865 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1866 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1867 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1868 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1869 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1870 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 case $as_dir in #(((
1881 *) as_dir=$as_dir/ ;;
1883 printf "%s
\n" "PATH
: $as_dir"
1899 # Keep a trace of the command line.
1900 # Strip out --no-create and --no-recursion so they do not pile up.
1901 # Strip out --silent because we don't want to record it for future runs.
1902 # Also quote any args containing shell meta-characters.
1903 # Make two passes to allow for proper duplicate-argument suppression.
1907 ac_must_keep_next=false
1913 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1915 | -silent | --silent | --silen | --sile | --sil)
1918 ac_arg=`printf "%s
\n" "$ac_arg" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1921 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1923 as_fn_append ac_configure_args1 " '$ac_arg'"
1924 if test $ac_must_keep_next = true; then
1925 ac_must_keep_next=false # Got value, back to normal.
1928 *=* | --config-cache | -C | -disable-* | --disable-* \
1929 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1930 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1931 | -with-* | --with-* | -without-* | --without-* | --x)
1932 case "$ac_configure_args0 " in
1933 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1936 -* ) ac_must_keep_next=true ;;
1939 as_fn_append ac_configure_args " '$ac_arg'"
1944 { ac_configure_args0=; unset ac_configure_args0;}
1945 { ac_configure_args1=; unset ac_configure_args1;}
1947 # When interrupted or exit'd, cleanup temporary files, and complete
1948 # config.log. We remove comments because anyway the quotes in there
1949 # would cause problems or look ugly.
1950 # WARNING: Use '\'' to represent an apostrophe within the trap.
1951 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1952 trap 'exit_status=$?
1955 # Save into config.log some information that might help in debugging.
1959 printf "%s
\n" "## ---------------- ##
1960 ## Cache variables. ##
1961 ## ---------------- ##"
1963 # The following way of writing the cache mishandles newlines in values,
1965 for ac_var
in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1966 eval ac_val
=\$
$ac_var
1970 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1971 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1974 _ | IFS | as_nl
) ;; #(
1975 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
1976 *) { eval $ac_var=; unset $ac_var;} ;;
1981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1982 *${as_nl}ac_space
=\
*)
1984 "s/'\''/'\''\\\\'\'''\''/g;
1985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1995 printf "%s\n" "## ----------------- ##
1996 ## Output variables. ##
1997 ## ----------------- ##"
1999 for ac_var
in $ac_subst_vars
2001 eval ac_val
=\$
$ac_var
2003 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005 printf "%s\n" "$ac_var='\''$ac_val'\''"
2009 if test -n "$ac_subst_files"; then
2010 printf "%s\n" "## ------------------- ##
2011 ## File substitutions. ##
2012 ## ------------------- ##"
2014 for ac_var in $ac_subst_files
2016 eval ac_val=\$$ac_var
2018 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 printf "%s\n" "$ac_var='\''$ac_val'\''"
2025 if test -s confdefs.h
; then
2026 printf "%s\n" "## ----------- ##
2033 test "$ac_signal" != 0 &&
2034 printf "%s\n" "$as_me: caught signal $ac_signal"
2035 printf "%s\n" "$as_me: exit $exit_status"
2037 rm -f core
*.core core.conftest.
* &&
2038 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
2041 for ac_signal in 1 2 13 15; do
2042 trap 'ac_signal
='$ac_signal'; as_fn_exit
1' $ac_signal
2046 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2047 rm -f -r conftest* confdefs.h
2049 printf "%s\n" "/* confdefs.h */" > confdefs.h
2051 # Predefined preprocessor variables.
2053 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2055 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2057 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2059 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2061 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2063 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2066 # Let the site file select an alternate cache file if it wants to.
2067 # Prefer an explicitly selected file to automatically selected ones.
2068 if test -n "$CONFIG_SITE"; then
2069 ac_site_files="$CONFIG_SITE"
2070 elif test "x$prefix" != xNONE; then
2071 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2073 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2076 for ac_site_file in $ac_site_files
2078 case $ac_site_file in #(
2082 ac_site_file=./$ac_site_file ;;
2084 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2086 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2087 sed 's
/^
/|
/' "$ac_site_file" >&5
2089 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2090 printf "%s
\n" "$as_me: error
: in \
`$ac_pwd':" >&2;}
2091 as_fn_error $? "failed to load site script $ac_site_file
2092 See \`config.log
' for more details" "$LINENO" 5; }
2096 if test -r "$cache_file"; then
2097 # Some versions of bash will fail to source /dev/null (special files
2098 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2099 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2101 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2103 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2104 *) . "./$cache_file";;
2108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2109 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2113 # Test code for whether the C compiler supports C89 (global declarations)
2114 ac_c_conftest_c89_globals='
2115 /* Does the compiler advertise C89 conformance?
2116 Do not
test the value of __STDC__
, because some compilers
set it to
0
2117 while being otherwise adequately conformant.
*/
2118 #if !defined __STDC__
2119 # error "Compiler does not advertise C89 conformance"
2125 /* Most of the following tests are stolen from RCS
5.7 src
/conf.sh.
*/
2126 struct buf
{ int x
; };
2127 struct buf
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
2128 static char
*e
(p
, i
)
2134 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
2139 s
= g
(p
, va_arg
(v
,int
));
2144 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
2145 function prototypes and stuff
, but not \xHH hex character constants.
2146 These
do not provoke an error unfortunately
, instead are silently treated
2147 as an
"x". The following induces an error
, until -std is added to get
2148 proper ANSI mode. Curiously
\x00 != x always comes out true
, for an
2149 array size
at least. It is necessary to
write \x00 == 0 to get something
2150 that is true only with
-std.
*/
2151 int osf4_cc_array
['\''\x00'\'' == 0 ?
1 : -1];
2153 /* IBM C
6 for AIX is almost-ANSI by default
, but it replaces macro parameters
2154 inside
strings and character constants.
*/
2155 #define FOO(x) '\''x'\''
2156 int xlc6_cc_array
[FOO
(a
) == '\''x
'\'' ?
1 : -1];
2158 int
test (int i
, double x
);
2159 struct s1
{int
(*f
) (int a
);};
2160 struct s2
{int
(*f
) (double a
);};
2161 int pairnames
(int
, char
**, int
*(*)(struct buf
*, struct stat
*, int
),
2164 # Test code for whether the C compiler supports C89 (body of main).
2165 ac_c_conftest_c89_main='
2166 ok |
= (argc
== 0 || f
(e
, argv
, 0) != argv
[0] || f
(e
, argv
, 1) != argv
[1]);
2169 # Test code for whether the C compiler supports C99 (global declarations)
2170 ac_c_conftest_c99_globals='
2171 // Does the compiler advertise C99 conformance?
2172 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2173 # error "Compiler does not advertise C99 conformance"
2176 #include <stdbool.h>
2177 extern int puts
(const char
*);
2178 extern int
printf (const char
*, ...
);
2179 extern int dprintf
(int
, const char
*, ...
);
2180 extern void
*malloc
(size_t
);
2182 // Check varargs macros. These examples are taken from C99
6.10.3.5.
2183 // dprintf is used instead of fprintf to avoid needing to
declare
2185 #define debug(...) dprintf (2, __VA_ARGS__)
2186 #define showlist(...) puts (#__VA_ARGS__)
2187 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2189 test_varargs_macros
(void
)
2194 debug
("X = %d\n", x
);
2195 showlist
(The first
, second
, and third items.
);
2196 report
(x
>y
, "x is %d but y is %d", x
, y
);
2199 // Check long long types.
2200 #define BIG64 18446744073709551615ull
2201 #define BIG32 4294967295ul
2202 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2204 #error "your preprocessor is broken"
2208 #error "your preprocessor is broken"
2210 static long long int bignum
= -9223372036854775807LL;
2211 static unsigned long long int ubignum
= BIG64
;
2213 struct incomplete_array
2221 const wchar_t
*name
;
2225 typedef const char
*ccp
;
2228 test_restrict
(ccp restrict text
)
2230 // See
if C
++-style comments work.
2231 // Iterate through items via the restricted pointer.
2232 // Also check
for declarations
in for loops.
2233 for (unsigned int i
= 0; *(text
+i
) != '\''\
0'\''; ++i
)
2238 // Check varargs and va_copy.
2240 test_varargs
(const char
*format
, ...
)
2243 va_start
(args
, format
);
2245 va_copy
(args_copy
, args
);
2247 const char
*str
= "";
2255 case '\''s
'\'': // string
2256 str
= va_arg
(args_copy
, const char
*);
2258 case '\''d
'\'': // int
2259 number
= va_arg
(args_copy
, int
);
2261 case '\''f
'\'': // float
2262 fnumber
= va_arg
(args_copy
, double
);
2271 return *str
&& number
&& fnumber
;
2275 # Test code for whether the C compiler supports C99 (body of main).
2276 ac_c_conftest_c99_main='
2278 _Bool success
= false
;
2279 success |
= (argc
!= 0);
2282 if (test_restrict
("String literal") == 0)
2284 char
*restrict newvar
= "Another string";
2287 success
&= test_varargs
("s, d'\'' f .", "string", 65, 34.234);
2288 test_varargs_macros
();
2290 // Check flexible array members.
2291 struct incomplete_array
*ia
=
2292 malloc
(sizeof
(struct incomplete_array
) + (sizeof
(double
) * 10));
2294 for (int i
= 0; i
< ia-
>datasize
; ++i
)
2295 ia-
>data
[i
] = i
* 1.234;
2297 // Check named initializers.
2298 struct named_init ni
= {
2300 .name
= L
"Test wide string",
2301 .average
= 543.34343,
2306 int dynamic_array
[ni.number
];
2307 dynamic_array
[0] = argv
[0][0];
2308 dynamic_array
[ni.number
- 1] = 543;
2310 // work around unused variable warnings
2311 ok |
= (!success || bignum
== 0LL || ubignum
== 0uLL || newvar
[0] == '\''x
'\''
2312 || dynamic_array
[ni.number
- 1] != 543);
2315 # Test code for whether the C compiler supports C11 (global declarations)
2316 ac_c_conftest_c11_globals='
2317 // Does the compiler advertise C11 conformance?
2318 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2319 # error "Compiler does not advertise C11 conformance"
2323 char _Alignas
(double
) aligned_as_double
;
2324 char _Alignas
(0) no_special_alignment
;
2325 extern char aligned_as_int
;
2326 char _Alignas
(0) _Alignas
(int
) aligned_as_int
;
2331 int_alignment
= _Alignof
(int
),
2332 int_array_alignment
= _Alignof
(int
[100]),
2333 char_alignment
= _Alignof
(char
)
2335 _Static_assert
(0 < -_Alignof (int
), "_Alignof is signed");
2338 int _Noreturn does_not_return
(void
) { for (;;) continue; }
2340 // Check _Static_assert.
2341 struct test_static_assert
2344 _Static_assert
(sizeof
(int
) <= sizeof
(long int
),
2345 "_Static_assert does not work in struct");
2349 // Check UTF-8 literals.
2350 #define u8 syntax error!
2351 char const utf8_literal
[] = u8
"happens to be ASCII" "another string";
2353 // Check duplicate typedefs.
2354 typedef long
*long_ptr
;
2355 typedef long int
*long_ptr
;
2356 typedef long_ptr long_ptr
;
2358 // Anonymous structures and unions
-- taken from C11
6.7.2.1 Example
1.
2362 struct
{ int i
; int j
; };
2363 struct
{ int k
; long int l
; } w
;
2369 # Test code for whether the C compiler supports C11 (body of main).
2370 ac_c_conftest_c11_main='
2371 _Static_assert
((offsetof
(struct anonymous
, i
)
2372 == offsetof
(struct anonymous
, w.k
)),
2373 "Anonymous union alignment botch");
2379 # Test code for whether the C compiler supports C11 (complete).
2380 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2381 ${ac_c_conftest_c99_globals}
2382 ${ac_c_conftest_c11_globals}
2385 main (int argc, char **argv)
2388 ${ac_c_conftest_c89_main}
2389 ${ac_c_conftest_c99_main}
2390 ${ac_c_conftest_c11_main}
2395 # Test code for whether the C compiler supports C99 (complete).
2396 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2397 ${ac_c_conftest_c99_globals}
2400 main (int argc, char **argv)
2403 ${ac_c_conftest_c89_main}
2404 ${ac_c_conftest_c99_main}
2409 # Test code for whether the C compiler supports C89 (complete).
2410 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2413 main (int argc, char **argv)
2416 ${ac_c_conftest_c89_main}
2421 # Test code for whether the C++ compiler supports C++98 (global declarations)
2422 ac_cxx_conftest_cxx98_globals='
2423 // Does the compiler advertise C
++98 conformance?
2424 #if !defined __cplusplus || __cplusplus < 199711L
2425 # error "Compiler does not advertise C++98 conformance"
2428 // These inclusions are to reject old compilers that
2429 // lack the unsuffixed header files.
2431 #include <exception>
2433 // <cassert
> and
<cstring
> are
*not
* freestanding headers
in C
++98.
2434 extern void assert
(int
);
2436 extern int strcmp
(const char
*, const char
*);
2439 // Namespaces
, exceptions
, and templates were all added after
"C++ 2.0".
2440 using std
::exception
;
2445 void test_exception_syntax
()
2449 } catch
(const char
*s
) {
2450 // Extra parentheses suppress a warning when building autoconf itself
,
2451 // due to lint rules shared with
more typical C programs.
2452 assert
(!(strcmp
) (s
, "test"));
2456 template
<typename T
> struct test_template
2459 explicit test_template
(T t
) : val
(t
) {}
2460 template
<typename U
> T add
(U u
) { return static_cast
<T
>(u
) + val
; }
2463 } // anonymous namespace
2466 # Test code for whether the C++ compiler supports C++98 (body of main)
2467 ac_cxx_conftest_cxx98_main='
2471 test_exception_syntax
();
2472 test_template
<double
> tt
(2.0);
2473 assert
(tt.add
(4) == 6.0);
2474 assert
(true
&& !false
);
2478 # Test code for whether the C++ compiler supports C++11 (global declarations)
2479 ac_cxx_conftest_cxx11_globals='
2480 // Does the compiler advertise C
++ 2011 conformance?
2481 #if !defined __cplusplus || __cplusplus < 201103L
2482 # error "Compiler does not advertise C++11 conformance"
2487 constexpr int get_val
() { return 20; }
2498 delegate
(int n
) : n
(n
) {}
2499 delegate
(): delegate
(2354) {}
2501 virtual int getval
() { return this-
>n
; };
2506 class overridden
: public delegate
2509 overridden
(int n
): delegate
(n
) {}
2510 virtual int getval
() override final
{ return this-
>n
* 2; }
2516 nocopy
(int i
): i
(i
) {}
2518 nocopy
(const nocopy
&) = delete
;
2519 nocopy
& operator
=(const nocopy
&) = delete
;
2524 // for testing lambda expressions
2525 template
<typename Ret
, typename Fn
> Ret
eval(Fn f
, Ret v
)
2530 // for testing variadic templates and trailing
return types
2531 template
<typename V
> auto
sum(V first
) -> V
2535 template
<typename V
, typename... Args
> auto
sum(V first
, Args... rest
) -> V
2537 return first
+ sum(rest...
);
2542 # Test code for whether the C++ compiler supports C++11 (body of main)
2543 ac_cxx_conftest_cxx11_main='
2545 // Test auto and decltype
2547 auto a2
= 48573953.4;
2548 auto a3
= "String literal";
2551 for (auto i
= a3
; *i
; ++i
) { total
+= *i
; }
2553 decltype
(a2
) a4
= 34895.034;
2557 short sa
[cxx11test
::get_val
()] = { 0 };
2560 // Test initializer lists
2561 cxx11test
::testinit il
= { 4323, 435234.23544 };
2564 // Test range-based
for
2565 int array
[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2566 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2567 for (auto
&x
: array
) { x
+= 23; }
2570 // Test lambda expressions
2571 using cxx11test
::eval;
2572 assert
(eval ([](int x
) { return x
*2; }, 21) == 42);
2574 assert
(eval ([&](double x
) { return d
+= x
; }, 3.0) == 5.0);
2576 assert
(eval ([=](double x
) mutable
{ return d
+= x
; }, 4.0) == 9.0);
2580 // Test use of variadic templates
2581 using cxx11test
::sum;
2584 auto c
= sum(1.0, 2.0, 3.0);
2587 // Test constructor delegation
2588 cxx11test
::delegate d1
;
2589 cxx11test
::delegate d2
();
2590 cxx11test
::delegate d3
(45);
2593 // Test override and final
2594 cxx11test
::overridden o1
(55464);
2601 // Test template brackets
2602 test_template
<::test_template
<int
>> v
(test_template
<int
>(12));
2606 char const
*utf8
= u8
"UTF-8 string \u2500";
2607 char16_t const
*utf16
= u
"UTF-8 string \u2500";
2608 char32_t const
*utf32
= U
"UTF-32 string \u2500";
2612 # Test code for whether the C compiler supports C++11 (complete).
2613 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2614 ${ac_cxx_conftest_cxx11_globals}
2617 main (int argc, char **argv)
2620 ${ac_cxx_conftest_cxx98_main}
2621 ${ac_cxx_conftest_cxx11_main}
2626 # Test code for whether the C compiler supports C++98 (complete).
2627 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2629 main (int argc, char **argv)
2632 ${ac_cxx_conftest_cxx98_main}
2638 # Auxiliary files required by this configure script.
2639 ac_aux_files="install-sh config.guess config.sub"
2641 # Locations in which to look for auxiliary files.
2642 ac_aux_dir_candidates="${srcdir}/scripts"
2644 # Search for a directory containing all of the required auxiliary files,
2645 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2646 # If we don't
find one directory that contains all the files we need
,
2647 # we report the set of missing files from the *first* directory in
2648 # $ac_aux_dir_candidates and give up.
2649 ac_missing_aux_files
=""
2650 ac_first_candidate
=:
2651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2654 for as_dir
in $ac_aux_dir_candidates
2657 case $as_dir in #(((
2660 *) as_dir
=$as_dir/ ;;
2664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2665 ac_aux_dir_found
=yes
2667 for ac_aux
in $ac_aux_files
2669 # As a special case, if "install-sh" is required, that requirement
2670 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2671 # and $ac_install_sh is set appropriately for whichever one is found.
2672 if test x
"$ac_aux" = x
"install-sh"
2674 if test -f "${as_dir}install-sh"; then
2675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2676 ac_install_sh
="${as_dir}install-sh -c"
2677 elif test -f "${as_dir}install.sh"; then
2678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2679 ac_install_sh
="${as_dir}install.sh -c"
2680 elif test -f "${as_dir}shtool"; then
2681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2682 ac_install_sh
="${as_dir}shtool install -c"
2685 if $ac_first_candidate; then
2686 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
2692 if test -f "${as_dir}${ac_aux}"; then
2693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2696 if $ac_first_candidate; then
2697 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
2704 if test "$ac_aux_dir_found" = yes; then
2705 ac_aux_dir
="$as_dir"
2708 ac_first_candidate
=false
2717 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2721 # These three variables are undocumented and unsupported,
2722 # and are intended to be withdrawn in a future Autoconf release.
2723 # They can cause serious problems if a builder's source tree is in a directory
2724 # whose full name contains unusual characters.
2725 if test -f "${ac_aux_dir}config.guess"; then
2726 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
2728 if test -f "${ac_aux_dir}config.sub"; then
2729 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
2731 if test -f "$ac_aux_dir/configure"; then
2732 ac_configure
="$SHELL ${ac_aux_dir}configure"
2735 # Check that the precious variables saved in the cache have kept the same
2737 ac_cache_corrupted
=false
2738 for ac_var
in $ac_precious_vars; do
2739 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2740 eval ac_new_set
=\
$ac_env_${ac_var}_set
2741 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2742 eval ac_new_val
=\
$ac_env_${ac_var}_value
2743 case $ac_old_set,$ac_new_set in
2745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2746 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2747 ac_cache_corrupted
=: ;;
2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2750 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2751 ac_cache_corrupted
=: ;;
2754 if test "x$ac_old_val" != "x$ac_new_val"; then
2755 # differences in whitespace do not lead to failure.
2756 ac_old_val_w
=`echo x $ac_old_val`
2757 ac_new_val_w
=`echo x $ac_new_val`
2758 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2760 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2761 ac_cache_corrupted
=:
2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2764 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2765 eval $ac_var=\
$ac_old_val
2767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2768 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2770 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2773 # Pass precious variables to config.status.
2774 if test "$ac_new_set" = set; then
2776 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2777 *) ac_arg
=$ac_var=$ac_new_val ;;
2779 case " $ac_configure_args " in
2780 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2781 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2785 if $ac_cache_corrupted; then
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2787 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2789 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2790 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2791 and start over" "$LINENO" 5
2793 ## -------------------- ##
2794 ## Main body of script. ##
2795 ## -------------------- ##
2798 ac_cpp
='$CPP $CPPFLAGS'
2799 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2805 ac_config_headers
="$ac_config_headers config.h"
2811 # Check whether --with-pkgversion was given.
2812 if test ${with_pkgversion+y}
2814 withval
=$with_pkgversion; case "$withval" in
2815 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
2817 *) PKGVERSION
="($withval) " ;;
2820 PKGVERSION
="(GNU libc) "
2824 PKGVERSION_TEXI
=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2830 # Check whether --with-bugurl was given.
2831 if test ${with_bugurl+y}
2833 withval
=$with_bugurl; case "$withval" in
2834 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
2837 *) BUGURL
="$withval"
2841 BUGURL
="https://www.gnu.org/software/libc/bugs.html"
2851 REPORT_BUGS_TO
="<$BUGURL>"
2852 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
2859 printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h
2862 printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h
2865 # Glibc should not depend on any header files
2868 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2869 # here to work around the Autoconf issue discussed in
2870 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2873 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2874 # issue discussed in
2875 # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2886 # Make sure we can run config.sub.
2887 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
2888 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2891 printf %s
"checking build system type... " >&6; }
2892 if test ${ac_cv_build+y}
2894 printf %s
"(cached) " >&6
2896 ac_build_alias
=$build_alias
2897 test "x$ac_build_alias" = x
&&
2898 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
2899 test "x$ac_build_alias" = x
&&
2900 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2901 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2902 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2906 printf "%s\n" "$ac_cv_build" >&6; }
2907 case $ac_cv_build in
2909 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2912 ac_save_IFS
=$IFS; IFS
='-'
2918 # Remember, the first character of IFS is used to create $*,
2919 # except with old shells:
2922 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2926 printf %s
"checking host system type... " >&6; }
2927 if test ${ac_cv_host+y}
2929 printf %s
"(cached) " >&6
2931 if test "x$host_alias" = x
; then
2932 ac_cv_host
=$ac_cv_build
2934 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2935 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2940 printf "%s\n" "$ac_cv_host" >&6; }
2943 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2946 ac_save_IFS
=$IFS; IFS
='-'
2952 # Remember, the first character of IFS is used to create $*,
2953 # except with old shells:
2956 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2970 ac_cpp
='$CPP $CPPFLAGS'
2971 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2972 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2973 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2976 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 printf %s
"checking for $ac_word... " >&6; }
2979 if test ${ac_cv_prog_CC+y}
2981 printf %s
"(cached) " >&6
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC
="$CC" # Let the user override the test.
2986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2990 case $as_dir in #(((
2993 *) as_dir
=$as_dir/ ;;
2995 for ac_exec_ext
in '' $ac_executable_extensions; do
2996 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3008 if test -n "$CC"; then
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 printf "%s\n" "$CC" >&6; }
3012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 printf "%s\n" "no" >&6; }
3018 if test -z "$ac_cv_prog_CC"; then
3020 # Extract the first word of "gcc", so it can be a program name with args.
3021 set dummy gcc
; ac_word
=$2
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 printf %s
"checking for $ac_word... " >&6; }
3024 if test ${ac_cv_prog_ac_ct_CC+y}
3026 printf %s
"(cached) " >&6
3028 if test -n "$ac_ct_CC"; then
3029 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3035 case $as_dir in #(((
3038 *) as_dir
=$as_dir/ ;;
3040 for ac_exec_ext
in '' $ac_executable_extensions; do
3041 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_ac_ct_CC
="gcc"
3043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3052 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3053 if test -n "$ac_ct_CC"; then
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3055 printf "%s\n" "$ac_ct_CC" >&6; }
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 printf "%s\n" "no" >&6; }
3061 if test "x$ac_ct_CC" = x
; then
3064 case $cross_compiling:$ac_tool_warned in
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3068 ac_tool_warned
=yes ;;
3076 if test -z "$CC"; then
3077 if test -n "$ac_tool_prefix"; then
3078 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3079 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 printf %s
"checking for $ac_word... " >&6; }
3082 if test ${ac_cv_prog_CC+y}
3084 printf %s
"(cached) " >&6
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC
="$CC" # Let the user override the test.
3089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3093 case $as_dir in #(((
3096 *) as_dir
=$as_dir/ ;;
3098 for ac_exec_ext
in '' $ac_executable_extensions; do
3099 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3111 if test -n "$CC"; then
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113 printf "%s\n" "$CC" >&6; }
3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 printf "%s\n" "no" >&6; }
3122 if test -z "$CC"; then
3123 # Extract the first word of "cc", so it can be a program name with args.
3124 set dummy cc
; ac_word
=$2
3125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 printf %s
"checking for $ac_word... " >&6; }
3127 if test ${ac_cv_prog_CC+y}
3129 printf %s
"(cached) " >&6
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC
="$CC" # Let the user override the test.
3135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3139 case $as_dir in #(((
3142 *) as_dir
=$as_dir/ ;;
3144 for ac_exec_ext
in '' $ac_executable_extensions; do
3145 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3146 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3147 ac_prog_rejected
=yes
3151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3158 if test $ac_prog_rejected = yes; then
3159 # We found a bogon in the path, so make sure we never use it.
3160 set dummy
$ac_cv_prog_CC
3162 if test $# != 0; then
3163 # We chose a different compiler from the bogus one.
3164 # However, it has the same basename, so the bogon will be chosen
3165 # first if we set CC to just the basename; use the full file name.
3167 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
3173 if test -n "$CC"; then
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 printf "%s\n" "$CC" >&6; }
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 printf "%s\n" "no" >&6; }
3183 if test -z "$CC"; then
3184 if test -n "$ac_tool_prefix"; then
3185 for ac_prog
in cl.exe
3187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3188 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 printf %s
"checking for $ac_word... " >&6; }
3191 if test ${ac_cv_prog_CC+y}
3193 printf %s
"(cached) " >&6
3195 if test -n "$CC"; then
3196 ac_cv_prog_CC
="$CC" # Let the user override the test.
3198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3202 case $as_dir in #(((
3205 *) as_dir
=$as_dir/ ;;
3207 for ac_exec_ext
in '' $ac_executable_extensions; do
3208 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3220 if test -n "$CC"; then
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 printf "%s\n" "$CC" >&6; }
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 printf "%s\n" "no" >&6; }
3229 test -n "$CC" && break
3232 if test -z "$CC"; then
3234 for ac_prog
in cl.exe
3236 # Extract the first word of "$ac_prog", so it can be a program name with args.
3237 set dummy
$ac_prog; ac_word
=$2
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 printf %s
"checking for $ac_word... " >&6; }
3240 if test ${ac_cv_prog_ac_ct_CC+y}
3242 printf %s
"(cached) " >&6
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3251 case $as_dir in #(((
3254 *) as_dir
=$as_dir/ ;;
3256 for ac_exec_ext
in '' $ac_executable_extensions; do
3257 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3258 ac_cv_prog_ac_ct_CC
="$ac_prog"
3259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3268 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3269 if test -n "$ac_ct_CC"; then
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271 printf "%s\n" "$ac_ct_CC" >&6; }
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 printf "%s\n" "no" >&6; }
3278 test -n "$ac_ct_CC" && break
3281 if test "x$ac_ct_CC" = x
; then
3284 case $cross_compiling:$ac_tool_warned in
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3287 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3288 ac_tool_warned
=yes ;;
3295 if test -z "$CC"; then
3296 if test -n "$ac_tool_prefix"; then
3297 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3298 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 printf %s
"checking for $ac_word... " >&6; }
3301 if test ${ac_cv_prog_CC+y}
3303 printf %s
"(cached) " >&6
3305 if test -n "$CC"; then
3306 ac_cv_prog_CC
="$CC" # Let the user override the test.
3308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3312 case $as_dir in #(((
3315 *) as_dir
=$as_dir/ ;;
3317 for ac_exec_ext
in '' $ac_executable_extensions; do
3318 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3319 ac_cv_prog_CC
="${ac_tool_prefix}clang"
3320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3330 if test -n "$CC"; then
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 printf "%s\n" "$CC" >&6; }
3334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 printf "%s\n" "no" >&6; }
3340 if test -z "$ac_cv_prog_CC"; then
3342 # Extract the first word of "clang", so it can be a program name with args.
3343 set dummy clang
; ac_word
=$2
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 printf %s
"checking for $ac_word... " >&6; }
3346 if test ${ac_cv_prog_ac_ct_CC+y}
3348 printf %s
"(cached) " >&6
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3357 case $as_dir in #(((
3360 *) as_dir
=$as_dir/ ;;
3362 for ac_exec_ext
in '' $ac_executable_extensions; do
3363 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_ac_ct_CC
="clang"
3365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3374 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3375 if test -n "$ac_ct_CC"; then
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3377 printf "%s\n" "$ac_ct_CC" >&6; }
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 printf "%s\n" "no" >&6; }
3383 if test "x$ac_ct_CC" = x
; then
3386 case $cross_compiling:$ac_tool_warned in
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3389 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3390 ac_tool_warned
=yes ;;
3401 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error $?
"no acceptable C compiler found in \$PATH
3404 See \`config.log' for more details" "$LINENO" 5; }
3406 # Provide some information about the compiler.
3407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3410 for ac_option
in --version -v -V -qversion -version; do
3411 { { ac_try
="$ac_compiler $ac_option >&5"
3413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 printf "%s\n" "$ac_try_echo"; } >&5
3418 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3420 if test -s conftest.err; then
3422 ... rest of stderr output deleted ...
3423 10q' conftest.err >conftest.er1
3424 cat conftest.er1 >&5
3426 rm -f conftest.er1 conftest.err
3427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3433 printf %s "checking for suffix of object files... " >&6; }
3434 if test ${ac_cv_objext+y}
3436 printf %s "(cached) " >&6
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3449 rm -f conftest.o conftest.obj
3450 if { { ac_try="$ac_compile"
3452 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3453 *) ac_try_echo
=$ac_try;;
3455 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 printf "%s\n" "$ac_try_echo"; } >&5
3457 (eval "$ac_compile") 2>&5
3459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }
3462 for ac_file
in conftest.o conftest.obj conftest.
*; do
3463 test -f "$ac_file" ||
continue;
3465 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
3466 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3471 printf "%s\n" "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.
$ac_ext >&5
3474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error $?
"cannot compute suffix of object files: cannot compile
3477 See \`config.log' for more details" "$LINENO" 5; }
3479 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3482 printf "%s\n" "$ac_cv_objext" >&6; }
3483 OBJEXT
=$ac_cv_objext
3485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3486 printf %s
"checking whether the compiler supports GNU C... " >&6; }
3487 if test ${ac_cv_c_compiler_gnu+y}
3489 printf %s
"(cached) " >&6
3491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3505 if ac_fn_c_try_compile
"$LINENO"
3511 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3512 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3516 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3517 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3519 if test $ac_compiler_gnu = yes; then
3524 ac_test_CFLAGS
=${CFLAGS+y}
3525 ac_save_CFLAGS
=$CFLAGS
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3527 printf %s
"checking whether $CC accepts -g... " >&6; }
3528 if test ${ac_cv_prog_cc_g+y}
3530 printf %s
"(cached) " >&6
3532 ac_save_c_werror_flag
=$ac_c_werror_flag
3533 ac_c_werror_flag
=yes
3536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3547 if ac_fn_c_try_compile
"$LINENO"
3552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3563 if ac_fn_c_try_compile
"$LINENO"
3567 ac_c_werror_flag
=$ac_save_c_werror_flag
3569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3580 if ac_fn_c_try_compile
"$LINENO"
3584 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3586 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3588 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3589 ac_c_werror_flag
=$ac_save_c_werror_flag
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3592 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3593 if test $ac_test_CFLAGS; then
3594 CFLAGS
=$ac_save_CFLAGS
3595 elif test $ac_cv_prog_cc_g = yes; then
3596 if test "$GCC" = yes; then
3602 if test "$GCC" = yes; then
3609 if test x
$ac_prog_cc_stdc = xno
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3612 printf %s
"checking for $CC option to enable C11 features... " >&6; }
3613 if test ${ac_cv_prog_cc_c11+y}
3615 printf %s
"(cached) " >&6
3617 ac_cv_prog_cc_c11
=no
3619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621 $ac_c_conftest_c11_program
3623 for ac_arg
in '' -std=gnu11
3625 CC
="$ac_save_CC $ac_arg"
3626 if ac_fn_c_try_compile
"$LINENO"
3628 ac_cv_prog_cc_c11
=$ac_arg
3630 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3631 test "x$ac_cv_prog_cc_c11" != "xno" && break
3633 rm -f conftest.
$ac_ext
3637 if test "x$ac_cv_prog_cc_c11" = xno
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3640 printf "%s\n" "unsupported" >&6; }
3642 if test "x$ac_cv_prog_cc_c11" = x
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3645 printf "%s\n" "none needed" >&6; }
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3648 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3649 CC
="$CC $ac_cv_prog_cc_c11"
3651 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c11
3655 if test x
$ac_prog_cc_stdc = xno
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3658 printf %s
"checking for $CC option to enable C99 features... " >&6; }
3659 if test ${ac_cv_prog_cc_c99+y}
3661 printf %s
"(cached) " >&6
3663 ac_cv_prog_cc_c99
=no
3665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667 $ac_c_conftest_c99_program
3669 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -qlanglvl=extc1x
-qlanglvl=extc99
-AC99 -D_STDC_C99=
3671 CC
="$ac_save_CC $ac_arg"
3672 if ac_fn_c_try_compile
"$LINENO"
3674 ac_cv_prog_cc_c99
=$ac_arg
3676 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3677 test "x$ac_cv_prog_cc_c99" != "xno" && break
3679 rm -f conftest.
$ac_ext
3683 if test "x$ac_cv_prog_cc_c99" = xno
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3686 printf "%s\n" "unsupported" >&6; }
3688 if test "x$ac_cv_prog_cc_c99" = x
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3691 printf "%s\n" "none needed" >&6; }
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3694 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3695 CC
="$CC $ac_cv_prog_cc_c99"
3697 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c99
3701 if test x
$ac_prog_cc_stdc = xno
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3704 printf %s
"checking for $CC option to enable C89 features... " >&6; }
3705 if test ${ac_cv_prog_cc_c89+y}
3707 printf %s
"(cached) " >&6
3709 ac_cv_prog_cc_c89
=no
3711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713 $ac_c_conftest_c89_program
3715 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3717 CC
="$ac_save_CC $ac_arg"
3718 if ac_fn_c_try_compile
"$LINENO"
3720 ac_cv_prog_cc_c89
=$ac_arg
3722 rm -f core conftest.err conftest.
$ac_objext conftest.beam
3723 test "x$ac_cv_prog_cc_c89" != "xno" && break
3725 rm -f conftest.
$ac_ext
3729 if test "x$ac_cv_prog_cc_c89" = xno
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3732 printf "%s\n" "unsupported" >&6; }
3734 if test "x$ac_cv_prog_cc_c89" = x
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3737 printf "%s\n" "none needed" >&6; }
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3740 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3741 CC
="$CC $ac_cv_prog_cc_c89"
3743 ac_cv_prog_cc_stdc
=$ac_cv_prog_cc_c89
3749 ac_cpp
='$CPP $CPPFLAGS'
3750 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3754 if test $host != $build; then
3755 for ac_prog
in gcc cc
3757 # Extract the first word of "$ac_prog", so it can be a program name with args.
3758 set dummy
$ac_prog; ac_word
=$2
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 printf %s
"checking for $ac_word... " >&6; }
3761 if test ${ac_cv_prog_BUILD_CC+y}
3763 printf %s
"(cached) " >&6
3765 if test -n "$BUILD_CC"; then
3766 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
3768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3772 case $as_dir in #(((
3775 *) as_dir
=$as_dir/ ;;
3777 for ac_exec_ext
in '' $ac_executable_extensions; do
3778 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_BUILD_CC
="$ac_prog"
3780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3789 BUILD_CC
=$ac_cv_prog_BUILD_CC
3790 if test -n "$BUILD_CC"; then
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3792 printf "%s\n" "$BUILD_CC" >&6; }
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795 printf "%s\n" "no" >&6; }
3799 test -n "$BUILD_CC" && break
3804 # On Suns, sometimes $CPP names a directory.
3805 if test -n "$CPP" && test -d "$CPP"; then
3808 if test -z "$CPP"; then
3813 # We need the C++ compiler only for testing.
3821 ac_cpp
='$CXXCPP $CPPFLAGS'
3822 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3823 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3824 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3825 if test -z "$CXX"; then
3826 if test -n "$CCC"; then
3829 if test -n "$ac_tool_prefix"; then
3830 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
3832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3833 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 printf %s
"checking for $ac_word... " >&6; }
3836 if test ${ac_cv_prog_CXX+y}
3838 printf %s
"(cached) " >&6
3840 if test -n "$CXX"; then
3841 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3847 case $as_dir in #(((
3850 *) as_dir
=$as_dir/ ;;
3852 for ac_exec_ext
in '' $ac_executable_extensions; do
3853 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3854 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3865 if test -n "$CXX"; then
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3867 printf "%s\n" "$CXX" >&6; }
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 printf "%s\n" "no" >&6; }
3874 test -n "$CXX" && break
3877 if test -z "$CXX"; then
3879 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC clang
++
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy
$ac_prog; ac_word
=$2
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 printf %s
"checking for $ac_word... " >&6; }
3885 if test ${ac_cv_prog_ac_ct_CXX+y}
3887 printf %s
"(cached) " >&6
3889 if test -n "$ac_ct_CXX"; then
3890 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3896 case $as_dir in #(((
3899 *) as_dir
=$as_dir/ ;;
3901 for ac_exec_ext
in '' $ac_executable_extensions; do
3902 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3903 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3913 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3914 if test -n "$ac_ct_CXX"; then
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3916 printf "%s\n" "$ac_ct_CXX" >&6; }
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 printf "%s\n" "no" >&6; }
3923 test -n "$ac_ct_CXX" && break
3926 if test "x$ac_ct_CXX" = x
; then
3929 case $cross_compiling:$ac_tool_warned in
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3932 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3933 ac_tool_warned
=yes ;;
3941 # Provide some information about the compiler.
3942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3945 for ac_option
in --version -v -V -qversion; do
3946 { { ac_try
="$ac_compiler $ac_option >&5"
3948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952 printf "%s\n" "$ac_try_echo"; } >&5
3953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3955 if test -s conftest.err; then
3957 ... rest of stderr output deleted ...
3958 10q' conftest.err >conftest.er1
3959 cat conftest.er1 >&5
3961 rm -f conftest.er1 conftest.err
3962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3967 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3968 if test ${ac_cv_cxx_compiler_gnu+y}
3970 printf %s "(cached) " >&6
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3986 if ac_fn_cxx_try_compile "$LINENO"
3992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3993 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3997 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4000 if test $ac_compiler_gnu = yes; then
4005 ac_test_CXXFLAGS=${CXXFLAGS+y}
4006 ac_save_CXXFLAGS=$CXXFLAGS
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4008 printf %s "checking whether $CXX accepts -g... " >&6; }
4009 if test ${ac_cv_prog_cxx_g+y}
4011 printf %s "(cached) " >&6
4013 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4014 ac_cxx_werror_flag=yes
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4028 if ac_fn_cxx_try_compile "$LINENO"
4030 ac_cv_prog_cxx_g=yes
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4044 if ac_fn_cxx_try_compile "$LINENO"
4048 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4061 if ac_fn_cxx_try_compile "$LINENO"
4063 ac_cv_prog_cxx_g=yes
4065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4070 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4073 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4074 if test $ac_test_CXXFLAGS; then
4075 CXXFLAGS=$ac_save_CXXFLAGS
4076 elif test $ac_cv_prog_cxx_g = yes; then
4077 if test "$GXX" = yes; then
4083 if test "$GXX" = yes; then
4089 ac_prog_cxx_stdcxx=no
4090 if test x$ac_prog_cxx_stdcxx = xno
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4093 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4094 if test ${ac_cv_prog_cxx_cxx11+y}
4096 printf %s "(cached) " >&6
4098 ac_cv_prog_cxx_cxx11=no
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102 $ac_cxx_conftest_cxx11_program
4104 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4106 CXX="$ac_save_CXX $ac_arg"
4107 if ac_fn_cxx_try_compile "$LINENO"
4109 ac_cv_prog_cxx_cxx11=$ac_arg
4111 rm -f core conftest.err conftest.$ac_objext conftest.beam
4112 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4114 rm -f conftest.$ac_ext
4118 if test "x$ac_cv_prog_cxx_cxx11" = xno
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4121 printf "%s\n" "unsupported" >&6; }
4123 if test "x$ac_cv_prog_cxx_cxx11" = x
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4126 printf "%s\n" "none needed" >&6; }
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4129 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4130 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4132 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4133 ac_prog_cxx_stdcxx=cxx11
4136 if test x$ac_prog_cxx_stdcxx = xno
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4139 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4140 if test ${ac_cv_prog_cxx_cxx98+y}
4142 printf %s "(cached) " >&6
4144 ac_cv_prog_cxx_cxx98=no
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148 $ac_cxx_conftest_cxx98_program
4150 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4152 CXX="$ac_save_CXX $ac_arg"
4153 if ac_fn_cxx_try_compile "$LINENO"
4155 ac_cv_prog_cxx_cxx98=$ac_arg
4157 rm -f core conftest.err conftest.$ac_objext conftest.beam
4158 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4160 rm -f conftest.$ac_ext
4164 if test "x$ac_cv_prog_cxx_cxx98" = xno
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4167 printf "%s\n" "unsupported" >&6; }
4169 if test "x$ac_cv_prog_cxx_cxx98" = x
4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4172 printf "%s\n" "none needed" >&6; }
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4175 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4176 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4178 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4179 ac_prog_cxx_stdcxx=cxx98
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
4192 printf %s "checking whether $CXX can link programs... " >&6; }
4193 if test ${libc_cv_cxx_link_ok+y}
4195 printf %s "(cached) " >&6
4198 ac_cpp='$CXXCPP $CPPFLAGS'
4199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4203 # Default, dynamic case.
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4215 if ac_fn_cxx_try_link "$LINENO"
4217 libc_cv_cxx_link_ok=yes
4219 libc_cv_cxx_link_ok=no
4221 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4222 conftest$ac_exeext conftest.$ac_ext
4224 old_LDFLAGS="$LDFLAGS"
4225 LDFLAGS="$LDFLAGS -static"
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4234 std::cout << "Hello, world!";
4239 if ac_fn_cxx_try_link "$LINENO"
4243 libc_cv_cxx_link_ok=no
4245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4246 conftest$ac_exeext conftest.$ac_ext
4247 LDFLAGS="$old_LDFLAGS"
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
4256 printf "%s\n" "$libc_cv_cxx_link_ok" >&6; }
4257 if test $libc_cv_cxx_link_ok != yes
4262 if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
4263 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
4266 # This will get text that should go into config.make.
4269 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
4271 # Check whether --with-gd was given.
4272 if test ${with_gd+y}
4274 withval=$with_gd; case "$with_gd" in
4276 *) libgd_include="-I$withval/include"
4277 libgd_ldflags="-L$withval/lib" ;;
4283 # Check whether --with-gd-include was given.
4284 if test ${with_gd_include+y}
4286 withval=$with_gd_include; case "$with_gd_include" in
4288 *) libgd_include="-I$withval" ;;
4294 # Check whether --with-gd-lib was given.
4295 if test ${with_gd_lib+y}
4297 withval=$with_gd_lib; case "$with_gd_lib" in
4299 *) libgd_ldflags="-L$withval" ;;
4305 if test -n "$libgd_include"; then
4306 config_vars="$config_vars
4307 CFLAGS-memusagestat.c = $libgd_include"
4309 if test -n "$libgd_ldflags"; then
4310 config_vars="$config_vars
4311 libgd-LDFLAGS = $libgd_ldflags"
4315 # Check whether --with-binutils was given.
4316 if test ${with_binutils+y}
4318 withval=$with_binutils; path_binutils=$withval
4324 # Check whether --with-selinux was given.
4325 if test ${with_selinux+y}
4327 withval=$with_selinux; with_selinux=$withval
4334 # Check whether --with-headers was given.
4335 if test ${with_headers+y}
4337 withval=$with_headers; sysheaders=$withval
4345 # Check whether --with-nonshared-cflags was given.
4346 if test ${with_nonshared_cflags+y}
4348 withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval
4350 extra_nonshared_cflags=
4355 # Check whether --with-rtld-early-cflags was given.
4356 if test ${with_rtld_early_cflags+y}
4358 withval=$with_rtld_early_cflags; rtld_early_cflags=$withval
4366 # Check whether --with-timeoutfactor was given.
4367 if test ${with_timeoutfactor+y}
4369 withval=$with_timeoutfactor; timeoutfactor=$withval
4374 printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h
4377 # Check whether --enable-sanity-checks was given.
4378 if test ${enable_sanity_checks+y}
4380 enableval=$enable_sanity_checks; enable_sanity=$enableval
4386 # Check whether --enable-shared was given.
4387 if test ${enable_shared+y}
4389 enableval=$enable_shared; shared=$enableval
4394 # Check whether --enable-profile was given.
4395 if test ${enable_profile+y}
4397 enableval=$enable_profile; profile=$enableval
4402 # Check whether --enable-default-pie was given.
4403 if test ${enable_default_pie+y}
4405 enableval=$enable_default_pie; default_pie=$enableval
4410 # Check whether --enable-timezone-tools was given.
4411 if test ${enable_timezone_tools+y}
4413 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
4415 enable_timezone_tools=yes
4420 # Check whether --enable-hardcoded-path-in-tests was given.
4421 if test ${enable_hardcoded_path_in_tests+y}
4423 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
4425 hardcoded_path_in_tests=no
4430 # Check whether --enable-hidden-plt was given.
4431 if test ${enable_hidden_plt+y}
4433 enableval=$enable_hidden_plt; hidden=$enableval
4438 if test "x$hidden" = xno; then
4439 printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h
4443 # Check whether --enable-bind-now was given.
4444 if test ${enable_bind_now+y}
4446 enableval=$enable_bind_now; bindnow=$enableval
4452 if test "x$bindnow" = xyes; then
4453 printf "%s\n" "#define BIND_NOW 1" >>confdefs.h
4457 # Check whether --enable-stack-protector was given.
4458 if test ${enable_stack_protector+y}
4460 enableval=$enable_stack_protector; enable_stack_protector=$enableval
4462 enable_stack_protector=no
4465 case "$enable_stack_protector" in
4466 all|yes|no|strong) ;;
4467 *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;;
4470 # Check whether --enable-static-nss was given.
4471 if test ${enable_static_nss+y}
4473 enableval=$enable_static_nss; static_nss=$enableval
4478 if test x"$static_nss" = xyes || test x"$shared" = xno; then
4480 printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h
4484 # Check whether --enable-force-install was given.
4485 if test ${enable_force_install+y}
4487 enableval=$enable_force_install; force_install=$enableval
4494 # Check whether --enable-maintainer-mode was given.
4495 if test ${enable_maintainer_mode+y}
4497 enableval=$enable_maintainer_mode; maintainer=$enableval
4503 # Check whether --enable-kernel was given.
4504 if test ${enable_kernel+y}
4506 enableval=$enable_kernel; minimum_kernel=$enableval
4509 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
4510 # Better nothing than this.
4513 if test "$minimum_kernel" = current; then
4514 minimum_kernel=`uname
-r 2>/dev
/null
` || minimum_kernel=
4518 # Check whether --enable-werror was given.
4519 if test ${enable_werror+y}
4521 enableval=$enable_werror; enable_werror=$enableval
4528 # Check whether --enable-multi-arch was given.
4529 if test ${enable_multi_arch+y}
4531 enableval=$enable_multi_arch; multi_arch=$enableval
4537 # Check whether --enable-memory-tagging was given.
4538 if test ${enable_memory_tagging+y}
4540 enableval=$enable_memory_tagging; memory_tagging=$enableval
4545 if test "$memory_tagging" = yes; then
4546 # Only enable this on architectures that support it.
4549 printf "%s\n" "#define USE_MTAG 1" >>confdefs.h
4556 # Check whether --enable-systemtap was given.
4557 if test ${enable_systemtap+y}
4559 enableval=$enable_systemtap; systemtap=$enableval
4564 if test "x$systemtap" != xno; then
4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
4567 printf %s "checking for systemtap static probe support... " >&6; }
4568 if test ${libc_cv_sdt+y}
4570 printf %s "(cached) " >&6
4572 old_CFLAGS="$CFLAGS"
4573 CFLAGS="-std=gnu11 $CFLAGS"
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #include <sys/sdt.h>
4577 void foo (int i, void *p)
4579 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
4580 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
4583 if ac_fn_c_try_compile "$LINENO"
4589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4590 CFLAGS="$old_CFLAGS"
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
4593 printf "%s\n" "$libc_cv_sdt" >&6; }
4594 if test $libc_cv_sdt = yes; then
4595 printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h
4597 elif test "x$systemtap" != xauto; then
4598 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4599 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4600 as_fn_error $? "systemtap support needs sys
/sdt.h with asm support
4601 See \
`config.log' for more details" "$LINENO" 5; }
4605 # Check whether --enable-build-nscd was given.
4606 if test ${enable_build_nscd+y}
4608 enableval=$enable_build_nscd; build_nscd=$enableval
4615 # Note the use of $use_nscd is near the bottom of the file.
4616 # Check whether --enable-nscd was given.
4617 if test ${enable_nscd+y}
4619 enableval=$enable_nscd; use_nscd=$enableval
4625 # Check whether --enable-pt_chown was given.
4626 if test ${enable_pt_chown+y}
4628 enableval=$enable_pt_chown; build_pt_chown=$enableval
4634 if test "$build_pt_chown" = yes; then
4635 printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h
4639 # The abi-tags file uses a fairly simplistic model for name recognition that
4640 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
4641 # $host_os of `gnu
*' here to be `gnu-gnu*' just so that it can tell.
4642 # This doesn't get used much beyond that, so it's fairly safe.
4647 host_os
=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
4651 # Check whether --enable-mathvec was given.
4652 if test ${enable_mathvec+y}
4654 enableval
=$enable_mathvec; build_mathvec
=$enableval
4656 build_mathvec
=notset
4661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4669 # error no CET compiler support
4675 if ac_fn_c_try_cpp
"$LINENO"
4677 libc_cv_compiler_default_cet
=yes
4679 libc_cv_compiler_default_cet
=no
4681 rm -f conftest.err conftest.i conftest.
$ac_ext
4683 # Check whether --enable-cet was given.
4684 if test ${enable_cet+y}
4686 enableval
=$enable_cet; enable_cet
=$enableval
4688 enable_cet
=$libc_cv_compiler_default_cet
4692 # Check whether --enable-scv was given.
4693 if test ${enable_scv+y}
4695 enableval
=$enable_scv; use_scv
=$enableval
4701 if test "$use_scv" != "no"
4703 printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h
4707 # Check whether --enable-fortify-source was given.
4708 if test ${enable_fortify_source+y}
4710 enableval
=$enable_fortify_source; enable_fortify_source
=$enableval
4712 enable_fortify_source
=no
4715 case "$enable_fortify_source" in
4717 *) as_fn_error $?
"Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;;
4720 # We keep the original values in `$config_*' and never modify them, so we
4721 # can write them unchanged into config.make. Everything else uses
4722 # $machine, $vendor, and $os, and changes them whenever convenient.
4723 config_machine
=$host_cpu config_vendor
=$host_vendor config_os
=$host_os
4725 # Don't allow vendor == "unknown"
4726 test "$config_vendor" = unknown
&& config_vendor
=
4727 config_os
="`echo $config_os | sed 's/^unknown-//'`"
4729 # Some configurations imply other options.
4732 # The configure fragment of a port can modify these to supplement
4733 # or override the table in the case statement below. No fragment should
4734 # ever change the config_* variables, however.
4735 machine
=$config_machine
4736 vendor
=$config_vendor
4742 # Check whether --with-cpu was given.
4743 if test ${with_cpu+y}
4745 withval
=$with_cpu; case "$withval" in
4746 yes|
'') as_fn_error $?
"--with-cpu requires an argument" "$LINENO" 5 ;;
4748 *) submachine
="$withval" ;;
4754 # An preconfigure script can set this when it wants to disable the sanity
4758 # A preconfigure script for a system that may or may not use fpu
4759 # sysdeps directories sets this to a preprocessor conditional for
4760 # whether to use such directories.
4763 # A preconfigure script may define another name to TLS descriptor variant
4764 mtls_descriptor
=gnu2
4766 if frags
=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
4769 printf %s
"checking for sysdeps preconfigure fragments... " >&6; }
4770 for frag
in $frags; do
4771 name
=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4772 echo $ECHO_N "$name $ECHO_C" >&6
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
4776 printf "%s\n" "" >&6; }
4781 ### By using the undocumented --enable-hacker-mode option for configure
4782 ### one can skip this test to make the configuration not fail for unsupported
4785 if test -z "$enable_hacker_mode" && test x
"$libc_config_ok" != xyes
; then
4786 case "$machine-$host_os" in
4791 *** The GNU C library is currently unavailable for this platform.
4792 *** If you are interested in seeing glibc on this platform visit
4793 *** the \"How to submit a new port\" in the wiki:
4794 *** https://sourceware.org/glibc/wiki/#Development
4795 *** and join the community!" "$LINENO" 5
4800 # Set base_machine if not set by a preconfigure fragment.
4801 test -n "$base_machine" || base_machine
=$machine
4807 # Find a good install program. We prefer a C program (faster),
4808 # so one script is as good as another. But avoid the broken or
4809 # incompatible versions:
4810 # SysV /etc/install, /usr/sbin/install
4811 # SunOS /usr/etc/install
4812 # IRIX /sbin/install
4814 # AmigaOS /C/install, which installs bootblocks on floppy discs
4815 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4818 # OS/2's system install, which has a completely different semantic
4819 # ./install, which can be erroneously created by make from ./install.sh.
4820 # Reject install programs that cannot install multiple files.
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4822 printf %s
"checking for a BSD-compatible install... " >&6; }
4823 if test -z "$INSTALL"; then
4824 if test ${ac_cv_path_install+y}
4826 printf %s
"(cached) " >&6
4828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4832 case $as_dir in #(((
4835 *) as_dir
=$as_dir/ ;;
4837 # Account for fact that we put trailing slashes in our PATH walk.
4840 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4841 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4844 # OSF1 and SCO ODT 3.0 have their own names for install.
4845 # Don't use installbsd from OSF since it installs stuff as root
4847 for ac_prog
in ginstall scoinst
install; do
4848 for ac_exec_ext
in '' $ac_executable_extensions; do
4849 if as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext"; then
4850 if test $ac_prog = install &&
4851 grep dspmsg
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4852 # AIX install. It has an incompatible calling convention.
4854 elif test $ac_prog = install &&
4855 grep pwplus
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4856 # program-specific install script used by HP pwplus--don't use.
4859 rm -rf conftest.one conftest.two conftest.dir
4860 echo one
> conftest.one
4861 echo two
> conftest.two
4863 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir/" &&
4864 test -s conftest.one
&& test -s conftest.two
&&
4865 test -s conftest.dir
/conftest.one
&&
4866 test -s conftest.dir
/conftest.two
4868 ac_cv_path_install
="$as_dir$ac_prog$ac_exec_ext -c"
4881 rm -rf conftest.one conftest.two conftest.dir
4884 if test ${ac_cv_path_install+y}; then
4885 INSTALL
=$ac_cv_path_install
4887 # As a last resort, use the slow shell script. Don't cache a
4888 # value for INSTALL within a source directory, because that will
4889 # break other packages using the cache if that directory is
4890 # removed, or if the value is a relative name.
4891 INSTALL
=$ac_install_sh
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4895 printf "%s\n" "$INSTALL" >&6; }
4897 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4898 # It thinks the first close brace ends the variable substitution.
4899 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4901 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4903 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4905 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4906 # The makefiles need to use a different form to find it in $srcdir.
4907 INSTALL
='\$(..)./scripts/install-sh -c'
4909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4910 printf %s
"checking whether ln -s works... " >&6; }
4912 if test "$LN_S" = "ln -s"; then
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4914 printf "%s\n" "yes" >&6; }
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4917 printf "%s\n" "no, using $LN_S" >&6; }
4921 # Was a --with-binutils option given?
4922 if test -n "$path_binutils"; then
4923 # Make absolute; ensure a single trailing slash.
4924 path_binutils
=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4925 CC
="$CC -B$path_binutils"
4928 *fuse-ld
=lld
*) LDNAME
=ld.lld
;;
4931 if test -z "$LD"; then
4932 LD
=`$CC -print-prog-name=$LDNAME`
4934 if test -z "$AR"; then
4935 AR
=`$CC -print-prog-name=ar`
4938 if test -z "$OBJCOPY"; then
4939 OBJCOPY
=`$CC -print-prog-name=objcopy`
4942 if test -z "$GPROF"; then
4943 GPROF
=`$CC -print-prog-name=gprof`
4946 if test -z "$READELF"; then
4947 READELF
=`$CC -print-prog-name=readelf`
4950 if test -z "$OBJDUMP"; then
4951 OBJDUMP
=`$CC -print-prog-name=objdump`
4954 if test -z "$NM"; then
4955 NM
=`$CC -print-prog-name=nm`
4960 # Accept binutils 2.25 or newer.
4962 case $
($LD --version) in
4964 # Accept gold 1.14 or higher
4967 # Extract the first word of "$ac_prog", so it can be a program name with args.
4968 set dummy
$ac_prog; ac_word
=$2
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 printf %s
"checking for $ac_word... " >&6; }
4971 if test ${ac_cv_prog_LD+y}
4973 printf %s
"(cached) " >&6
4975 if test -n "$LD"; then
4976 ac_cv_prog_LD
="$LD" # Let the user override the test.
4978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4982 case $as_dir in #(((
4985 *) as_dir
=$as_dir/ ;;
4987 for ac_exec_ext
in '' $ac_executable_extensions; do
4988 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4989 ac_cv_prog_LD
="$ac_prog"
4990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5000 if test -n "$LD"; then
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5002 printf "%s\n" "$LD" >&6; }
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 printf "%s\n" "no" >&6; }
5009 test -n "$LD" && break
5012 if test -z "$LD"; then
5015 # Found it, now check the version.
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5017 printf %s
"checking version of $LD... " >&6; }
5018 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5019 case $ac_prog_version in
5020 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5021 1.1[4-9]*|
1.
[2-9][0-9]*|
1.1[0-9][0-9]*|
[2-9].
*|
[1-9][0-9]*)
5022 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5023 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5027 printf "%s\n" "$ac_prog_version" >&6; }
5029 if test $ac_verc_fail = yes; then
5030 LD
=: critic_missing
="$critic_missing GNU gold"
5035 # Accept LLD 13.0.0 or higher
5038 # Extract the first word of "$ac_prog", so it can be a program name with args.
5039 set dummy
$ac_prog; ac_word
=$2
5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 printf %s
"checking for $ac_word... " >&6; }
5042 if test ${ac_cv_prog_LD+y}
5044 printf %s
"(cached) " >&6
5046 if test -n "$LD"; then
5047 ac_cv_prog_LD
="$LD" # Let the user override the test.
5049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5053 case $as_dir in #(((
5056 *) as_dir
=$as_dir/ ;;
5058 for ac_exec_ext
in '' $ac_executable_extensions; do
5059 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5060 ac_cv_prog_LD
="$ac_prog"
5061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5071 if test -n "$LD"; then
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5073 printf "%s\n" "$LD" >&6; }
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 printf "%s\n" "no" >&6; }
5080 test -n "$LD" && break
5083 if test -z "$LD"; then
5086 # Found it, now check the version.
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5088 printf %s
"checking version of $LD... " >&6; }
5089 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5090 case $ac_prog_version in
5091 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5092 1[3-9].
*|
[2-9][0-9].
*)
5093 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5094 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5098 printf "%s\n" "$ac_prog_version" >&6; }
5100 if test $ac_verc_fail = yes; then
5101 LD
=: critic_missing
="$critic_missing LLD"
5104 libc_cv_with_lld
=yes
5109 # Extract the first word of "$ac_prog", so it can be a program name with args.
5110 set dummy
$ac_prog; ac_word
=$2
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112 printf %s
"checking for $ac_word... " >&6; }
5113 if test ${ac_cv_prog_LD+y}
5115 printf %s
"(cached) " >&6
5117 if test -n "$LD"; then
5118 ac_cv_prog_LD
="$LD" # Let the user override the test.
5120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5124 case $as_dir in #(((
5127 *) as_dir
=$as_dir/ ;;
5129 for ac_exec_ext
in '' $ac_executable_extensions; do
5130 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5131 ac_cv_prog_LD
="$ac_prog"
5132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5142 if test -n "$LD"; then
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5144 printf "%s\n" "$LD" >&6; }
5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 printf "%s\n" "no" >&6; }
5151 test -n "$LD" && break
5154 if test -z "$LD"; then
5157 # Found it, now check the version.
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
5159 printf %s
"checking version of $LD... " >&6; }
5160 ac_prog_version
=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
5161 case $ac_prog_version in
5162 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5163 2.1[0-9][0-9]*|
2.2[5-9]*|
2.
[3-9][0-9]*|
[3-9].
*|
[1-9][0-9]*)
5164 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5165 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5169 printf "%s\n" "$ac_prog_version" >&6; }
5171 if test $ac_verc_fail = yes; then
5172 LD
=: critic_missing
="$critic_missing GNU ld"
5177 config_vars
="$config_vars
5178 with-lld = $libc_cv_with_lld"
5180 # These programs are version sensitive.
5181 for ac_prog
in gnumake gmake
make
5183 # Extract the first word of "$ac_prog", so it can be a program name with args.
5184 set dummy
$ac_prog; ac_word
=$2
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 printf %s
"checking for $ac_word... " >&6; }
5187 if test ${ac_cv_prog_MAKE+y}
5189 printf %s
"(cached) " >&6
5191 if test -n "$MAKE"; then
5192 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
5194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5198 case $as_dir in #(((
5201 *) as_dir
=$as_dir/ ;;
5203 for ac_exec_ext
in '' $ac_executable_extensions; do
5204 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_MAKE
="$ac_prog"
5206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5215 MAKE
=$ac_cv_prog_MAKE
5216 if test -n "$MAKE"; then
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5218 printf "%s\n" "$MAKE" >&6; }
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 printf "%s\n" "no" >&6; }
5225 test -n "$MAKE" && break
5228 if test -z "$MAKE"; then
5231 # Found it, now check the version.
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
5233 printf %s
"checking version of $MAKE... " >&6; }
5234 ac_prog_version
=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5235 case $ac_prog_version in
5236 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5237 [4-9].
* |
[1-9][0-9]*)
5238 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5239 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5243 printf "%s\n" "$ac_prog_version" >&6; }
5245 if test $ac_verc_fail = yes; then
5246 critic_missing
="$critic_missing make"
5250 for ac_prog
in gnumsgfmt gmsgfmt msgfmt
5252 # Extract the first word of "$ac_prog", so it can be a program name with args.
5253 set dummy
$ac_prog; ac_word
=$2
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 printf %s
"checking for $ac_word... " >&6; }
5256 if test ${ac_cv_prog_MSGFMT+y}
5258 printf %s
"(cached) " >&6
5260 if test -n "$MSGFMT"; then
5261 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
5263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5267 case $as_dir in #(((
5270 *) as_dir
=$as_dir/ ;;
5272 for ac_exec_ext
in '' $ac_executable_extensions; do
5273 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5274 ac_cv_prog_MSGFMT
="$ac_prog"
5275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5284 MSGFMT
=$ac_cv_prog_MSGFMT
5285 if test -n "$MSGFMT"; then
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5287 printf "%s\n" "$MSGFMT" >&6; }
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 printf "%s\n" "no" >&6; }
5294 test -n "$MSGFMT" && break
5297 if test -z "$MSGFMT"; then
5300 # Found it, now check the version.
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5302 printf %s
"checking version of $MSGFMT... " >&6; }
5303 ac_prog_version
=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5304 case $ac_prog_version in
5305 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5306 0.10.3[6-9]* |
0.10.
[4-9][0-9]* |
0.1[1-9]* |
0.
[2-9][0-9]* |
[1-9].
*)
5307 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5308 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5312 printf "%s\n" "$ac_prog_version" >&6; }
5314 if test $ac_verc_fail = yes; then
5315 MSGFMT
=: aux_missing
="$aux_missing msgfmt"
5318 for ac_prog
in makeinfo
5320 # Extract the first word of "$ac_prog", so it can be a program name with args.
5321 set dummy
$ac_prog; ac_word
=$2
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 printf %s
"checking for $ac_word... " >&6; }
5324 if test ${ac_cv_prog_MAKEINFO+y}
5326 printf %s
"(cached) " >&6
5328 if test -n "$MAKEINFO"; then
5329 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5335 case $as_dir in #(((
5338 *) as_dir
=$as_dir/ ;;
5340 for ac_exec_ext
in '' $ac_executable_extensions; do
5341 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_MAKEINFO
="$ac_prog"
5343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5352 MAKEINFO
=$ac_cv_prog_MAKEINFO
5353 if test -n "$MAKEINFO"; then
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5355 printf "%s\n" "$MAKEINFO" >&6; }
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 printf "%s\n" "no" >&6; }
5362 test -n "$MAKEINFO" && break
5365 if test -z "$MAKEINFO"; then
5368 # Found it, now check the version.
5369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5370 printf %s
"checking version of $MAKEINFO... " >&6; }
5371 ac_prog_version
=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5372 case $ac_prog_version in
5373 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5374 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9].
*)
5375 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5376 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5380 printf "%s\n" "$ac_prog_version" >&6; }
5382 if test $ac_verc_fail = yes; then
5383 MAKEINFO
=: aux_missing
="$aux_missing makeinfo"
5388 # Extract the first word of "$ac_prog", so it can be a program name with args.
5389 set dummy
$ac_prog; ac_word
=$2
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 printf %s
"checking for $ac_word... " >&6; }
5392 if test ${ac_cv_prog_SED+y}
5394 printf %s
"(cached) " >&6
5396 if test -n "$SED"; then
5397 ac_cv_prog_SED
="$SED" # Let the user override the test.
5399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5403 case $as_dir in #(((
5406 *) as_dir
=$as_dir/ ;;
5408 for ac_exec_ext
in '' $ac_executable_extensions; do
5409 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5410 ac_cv_prog_SED
="$ac_prog"
5411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5421 if test -n "$SED"; then
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5423 printf "%s\n" "$SED" >&6; }
5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 printf "%s\n" "no" >&6; }
5430 test -n "$SED" && break
5433 if test -z "$SED"; then
5436 # Found it, now check the version.
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5438 printf %s
"checking version of $SED... " >&6; }
5439 ac_prog_version
=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5440 case $ac_prog_version in
5441 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5442 3.0[2-9]*|
3.
[1-9]*|
[4-9]*)
5443 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5444 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5448 printf "%s\n" "$ac_prog_version" >&6; }
5450 if test $ac_verc_fail = yes; then
5451 SED
=: aux_missing
="$aux_missing sed"
5456 # Extract the first word of "$ac_prog", so it can be a program name with args.
5457 set dummy
$ac_prog; ac_word
=$2
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5459 printf %s
"checking for $ac_word... " >&6; }
5460 if test ${ac_cv_prog_AWK+y}
5462 printf %s
"(cached) " >&6
5464 if test -n "$AWK"; then
5465 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5471 case $as_dir in #(((
5474 *) as_dir
=$as_dir/ ;;
5476 for ac_exec_ext
in '' $ac_executable_extensions; do
5477 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_AWK
="$ac_prog"
5479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5489 if test -n "$AWK"; then
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5491 printf "%s\n" "$AWK" >&6; }
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 printf "%s\n" "no" >&6; }
5498 test -n "$AWK" && break
5501 if test -z "$AWK"; then
5504 # Found it, now check the version.
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
5506 printf %s
"checking version of $AWK... " >&6; }
5507 ac_prog_version
=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5508 case $ac_prog_version in
5509 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5510 3.1.
[2-9]*|
3.
[2-9]*|
[4-9]*)
5511 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5512 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5516 printf "%s\n" "$ac_prog_version" >&6; }
5518 if test $ac_verc_fail = yes; then
5519 critic_missing
="$critic_missing gawk"
5522 for ac_prog
in bison
5524 # Extract the first word of "$ac_prog", so it can be a program name with args.
5525 set dummy
$ac_prog; ac_word
=$2
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 printf %s
"checking for $ac_word... " >&6; }
5528 if test ${ac_cv_prog_BISON+y}
5530 printf %s
"(cached) " >&6
5532 if test -n "$BISON"; then
5533 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5539 case $as_dir in #(((
5542 *) as_dir
=$as_dir/ ;;
5544 for ac_exec_ext
in '' $ac_executable_extensions; do
5545 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5546 ac_cv_prog_BISON
="$ac_prog"
5547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5556 BISON
=$ac_cv_prog_BISON
5557 if test -n "$BISON"; then
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5559 printf "%s\n" "$BISON" >&6; }
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 printf "%s\n" "no" >&6; }
5566 test -n "$BISON" && break
5569 if test -z "$BISON"; then
5572 # Found it, now check the version.
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5574 printf %s
"checking version of $BISON... " >&6; }
5575 ac_prog_version
=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
5576 case $ac_prog_version in
5577 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5578 2.7*|
[3-9].
*|
[1-9][0-9]*)
5579 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5580 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5584 printf "%s\n" "$ac_prog_version" >&6; }
5586 if test $ac_verc_fail = yes; then
5587 critic_missing
="$critic_missing bison"
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
5592 printf %s
"checking if $CC is sufficient to build libc... " >&6; }
5593 if test ${libc_cv_compiler_ok+y}
5595 printf %s
"(cached) " >&6
5598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5605 #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2)
5606 #error insufficient compiler
5612 if ac_fn_c_try_cpp
"$LINENO"
5614 libc_cv_compiler_ok
=yes
5616 libc_cv_compiler_ok
=no
5618 rm -f conftest.err conftest.i conftest.
$ac_ext
5620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
5621 printf "%s\n" "$libc_cv_compiler_ok" >&6; }
5622 if test $libc_cv_compiler_ok != yes
5624 critic_missing
="$critic_missing compiler"
5627 if test "x$maintainer" = "xyes"; then
5628 for ac_prog
in autoconf
5630 # Extract the first word of "$ac_prog", so it can be a program name with args.
5631 set dummy
$ac_prog; ac_word
=$2
5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 printf %s
"checking for $ac_word... " >&6; }
5634 if test ${ac_cv_prog_AUTOCONF+y}
5636 printf %s
"(cached) " >&6
5638 if test -n "$AUTOCONF"; then
5639 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
5641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5645 case $as_dir in #(((
5648 *) as_dir
=$as_dir/ ;;
5650 for ac_exec_ext
in '' $ac_executable_extensions; do
5651 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_AUTOCONF
="$ac_prog"
5653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5662 AUTOCONF
=$ac_cv_prog_AUTOCONF
5663 if test -n "$AUTOCONF"; then
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5665 printf "%s\n" "$AUTOCONF" >&6; }
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 printf "%s\n" "no" >&6; }
5672 test -n "$AUTOCONF" && break
5674 test -n "$AUTOCONF" || AUTOCONF
="no"
5676 case "x$AUTOCONF" in
5677 xno|x|x
:) AUTOCONF
=no
;;
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5680 printf %s
"checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5681 if test ${libc_cv_autoconf_works+y}
5683 printf %s
"(cached) " >&6
5685 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac
> /dev
/null
2>&1); then
5686 libc_cv_autoconf_works
=yes
5688 libc_cv_autoconf_works
=no
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5692 printf "%s\n" "$libc_cv_autoconf_works" >&6; }
5693 test $libc_cv_autoconf_works = yes || AUTOCONF
=no
5696 if test "x$AUTOCONF" = xno
; then
5697 aux_missing
="$aux_missing autoconf"
5703 # Check for python3 if available, or else python.
5704 for ac_prog
in python3 python
5706 # Extract the first word of "$ac_prog", so it can be a program name with args.
5707 set dummy
$ac_prog; ac_word
=$2
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 printf %s
"checking for $ac_word... " >&6; }
5710 if test ${ac_cv_prog_PYTHON_PROG+y}
5712 printf %s
"(cached) " >&6
5714 if test -n "$PYTHON_PROG"; then
5715 ac_cv_prog_PYTHON_PROG
="$PYTHON_PROG" # Let the user override the test.
5717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5721 case $as_dir in #(((
5724 *) as_dir
=$as_dir/ ;;
5726 for ac_exec_ext
in '' $ac_executable_extensions; do
5727 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_PYTHON_PROG
="$ac_prog"
5729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5738 PYTHON_PROG
=$ac_cv_prog_PYTHON_PROG
5739 if test -n "$PYTHON_PROG"; then
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
5741 printf "%s\n" "$PYTHON_PROG" >&6; }
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 printf "%s\n" "no" >&6; }
5748 test -n "$PYTHON_PROG" && break
5751 if test -z "$PYTHON_PROG"; then
5754 # Found it, now check the version.
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5
5756 printf %s
"checking version of $PYTHON_PROG... " >&6; }
5757 ac_prog_version
=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'`
5758 case $ac_prog_version in
5759 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5760 3.
[4-9]*|
3.
[1-9][0-9]*|
[4-9].
*|
[1-9][0-9]*)
5761 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5762 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5766 printf "%s\n" "$ac_prog_version" >&6; }
5768 if test $ac_verc_fail = yes; then
5769 critic_missing
="$critic_missing python"
5772 PYTHON
="$PYTHON_PROG -B"
5775 test -n "$critic_missing" && as_fn_error $?
"
5776 *** These critical programs are missing or too old:$critic_missing
5777 *** Check the INSTALL file for required versions." "$LINENO" 5
5779 test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
5780 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5781 *** some features or tests will be disabled.
5782 *** Check the INSTALL file for required versions." >&5
5783 printf "%s\n" "$as_me: WARNING:
5784 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5785 *** some features or tests will be disabled.
5786 *** Check the INSTALL file for required versions." >&2;}
5789 # Determine whether to use fpu or nofpu sysdeps directories.
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5
5791 printf %s
"checking for use of fpu sysdeps directories... " >&6; }
5792 if test ${libc_cv_with_fp+y}
5794 printf %s
"(cached) " >&6
5796 cat > conftest.c
<<EOF
5800 # error "no hardware floating point"
5804 if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c
-o conftest.s \
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5
5811 printf "%s\n" "$libc_cv_with_fp" >&6; }
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
5815 printf %s
"checking for -fstack-protector... " >&6; }
5816 if test ${libc_cv_ssp+y}
5818 printf %s
"(cached) " >&6
5820 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
5821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5825 test $ac_status = 0; }; }
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
5834 printf "%s\n" "$libc_cv_ssp" >&6; }
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
5837 printf %s
"checking for -fstack-protector-strong... " >&6; }
5838 if test ${libc_cv_ssp_strong+y}
5840 printf %s
"(cached) " >&6
5842 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
5843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5847 test $ac_status = 0; }; }
5849 libc_cv_ssp_strong
=yes
5851 libc_cv_ssp_strong
=no
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
5856 printf "%s\n" "$libc_cv_ssp_strong" >&6; }
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5
5859 printf %s
"checking for -fstack-protector-all... " >&6; }
5860 if test ${libc_cv_ssp_all+y}
5862 printf %s
"(cached) " >&6
5864 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null'
5865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5869 test $ac_status = 0; }; }
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5
5878 printf "%s\n" "$libc_cv_ssp_all" >&6; }
5882 if test "$libc_cv_ssp" = yes; then
5883 no_stack_protector
="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0"
5884 printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h
5888 if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then
5889 stack_protector
="-fstack-protector"
5890 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h
5892 elif test "$enable_stack_protector" = all
&& test "$libc_cv_ssp_all" = yes; then
5893 stack_protector
="-fstack-protector-all"
5894 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h
5896 elif test "$enable_stack_protector" = strong
&& test "$libc_cv_ssp_strong" = yes; then
5897 stack_protector
="-fstack-protector-strong"
5898 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h
5901 stack_protector
="-fno-stack-protector"
5902 printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h
5909 if test -n "$stack_protector"; then
5910 no_ssp
=-fno-stack-protector
5914 if test "$enable_stack_protector" != no
; then
5915 as_fn_error $?
"--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5
5919 # For the multi-arch option we need support in the assembler & linker.
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
5921 printf %s
"checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
5922 if test ${libc_cv_ld_gnu_indirect_function+y}
5924 printf %s
"(cached) " >&6
5926 cat > conftest.S
<<EOF
5927 .type foo,%gnu_indirect_function
5940 libc_cv_ld_gnu_indirect_function
=no
5941 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5942 -nostartfiles -nostdlib $no_ssp \
5943 -o conftest conftest.S
1>&5 2>&5; then
5944 # Do a link to see if the backend supports IFUNC relocs.
5945 $READELF -r conftest
1>&5
5946 LC_ALL
=C
$READELF -Wr conftest |
grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && {
5947 libc_cv_ld_gnu_indirect_function
=yes
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
5953 printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; }
5955 # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
5957 printf %s
"checking for gcc attribute ifunc support... " >&6; }
5958 if test ${libc_cv_gcc_indirect_function+y}
5960 printf %s
"(cached) " >&6
5962 cat > conftest.c
<<EOF
5963 extern int func (int);
5964 int used_func (int a)
5968 static void *resolver ()
5972 extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
5974 libc_cv_gcc_indirect_function
=no
5975 if ${CC-cc} -c conftest.c
-o conftest.o
1>&5 \
5977 if $READELF -s conftest.o |
grep IFUNC
>/dev
/null
2>&5; then
5978 libc_cv_gcc_indirect_function
=yes
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
5984 printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; }
5986 # Check if linker supports textrel relocation with ifunc (used on elf/tests).
5987 # Note that it relies on libc_cv_ld_gnu_indirect_function test above.
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5
5989 printf %s
"checking whether the linker supports textrels along with ifunc... " >&6; }
5990 if test ${libc_cv_textrel_ifunc+y}
5992 printf %s
"(cached) " >&6
5994 cat > conftest.S
<<EOF
5995 .type foo,%gnu_indirect_function
6016 libc_cv_textrel_ifunc
=no
6017 if test $libc_cv_ld_gnu_indirect_function = yes; then
6018 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S'
6019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6023 test $ac_status = 0; }; }; then
6024 libc_cv_textrel_ifunc
=yes
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5
6030 printf "%s\n" "$libc_cv_textrel_ifunc" >&6; }
6033 # Check if CC supports attribute retain as it is used in attribute_used_retain macro.
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5
6035 printf %s
"checking for GNU attribute retain support... " >&6; }
6036 if test ${libc_cv_gnu_retain+y}
6038 printf %s
"(cached) " >&6
6040 cat > conftest.c
<<EOF
6041 static int var __attribute__ ((used, retain, section ("__libc_atexit")));
6043 libc_cv_gnu_retain
=no
6044 if ${CC-cc} -Werror -c conftest.c
-o /dev
/null
1>&5 \
6046 libc_cv_gnu_retain
=yes
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5
6051 printf "%s\n" "$libc_cv_gnu_retain" >&6; }
6052 if test $libc_cv_gnu_retain = yes; then
6053 printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h
6056 config_vars
="$config_vars
6057 have-gnu-retain = $libc_cv_gnu_retain"
6059 # Check if gcc warns about alias for function with incompatible types.
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5
6061 printf %s
"checking if compiler warns about alias for function with incompatible types... " >&6; }
6062 if test ${libc_cv_gcc_incompatible_alias+y}
6064 printf %s
"(cached) " >&6
6066 cat > conftest.c
<<EOF
6067 int __redirect_foo (const void *s, int c);
6069 __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo");
6070 __typeof (__redirect_foo) *foo_impl (void)
6075 extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo")));
6077 libc_cv_gcc_incompatible_alias
=yes
6078 if ${CC-cc} -Werror -c conftest.c
-o conftest.o
1>&5 2>&5 ; then
6079 libc_cv_gcc_incompatible_alias
=no
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5
6084 printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; }
6086 if test x
"$libc_cv_ld_gnu_indirect_function" != xyes
; then
6087 if test x
"$multi_arch" = xyes
; then
6088 as_fn_error $?
"--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
6093 if test x
"$libc_cv_gcc_indirect_function" != xyes
; then
6094 # GCC 8+ emits a warning for alias with incompatible types and it might
6095 # fail to build ifunc resolvers aliases to either weak or internal
6096 # symbols. Disables multiarch build in this case.
6097 if test x
"$libc_cv_gcc_incompatible_alias" = xyes
; then
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5
6099 printf "%s\n" "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;}
6100 if test x
"$multi_arch" = xyes
; then
6101 as_fn_error $?
"--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5
6104 printf "%s\n" "$as_me: WARNING: Multi-arch is disabled." >&2;}
6106 elif test x
"$multi_arch" = xyes
; then
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
6108 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
6109 printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
6110 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
6114 if test x
"$multi_arch" != xno
; then
6115 multi_arch_d
=/multiarch
6118 # Compute the list of sysdep directories for this configuration.
6119 # This can take a while to compute.
6120 sysdep_dir
=$srcdir/sysdeps
6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
6122 printf %s
"checking sysdep dirs... " >&6; }
6123 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
6124 os
="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
6126 test "x$base_os" != x ||
case "$os" in
6128 base_os
=mach
/hurd
;;
6130 base_os
=unix
/sysv
;;
6133 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
6136 while o
=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
6140 o
=`echo $tail | sed 's/[0-9]*$//'`
6141 if test $o != $tail; then
6144 # For linux-gnu, try linux-gnu, then linux.
6145 o
=`echo $tail | sed 's/-.*$//'`
6146 if test $o != $tail; then
6150 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
6153 while b
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
6159 # For sparc/sparc32, try sparc/sparc32 and then sparc.
6161 tail=$machine${submachine:+/$submachine}
6162 while m
=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
6164 # Prepend the machine's FPU directory unless the architecture specific
6165 # preconfigure disables it.
6166 if test "$libc_cv_with_fp" = yes; then
6171 # For each machine term, try it with and then without /multiarch.
6172 for try_fpu
in $maybe_fpu ''; do
6173 for try_multi
in $multi_arch_d ''; do
6174 mach
="$mach /$1$try_fpu$try_multi"
6181 # Find what sysdep directories exist.
6183 for b
in $base ''; do
6184 for m0
in $mach ''; do
6185 for v
in /$vendor ''; do
6186 test "$v" = / && continue
6187 for o
in /$ostry ''; do
6188 test "$o" = / && continue
6189 for m
in $mach ''; do
6190 try_suffix
="$m0$b$v$o$m"
6191 if test -n "$try_suffix"; then
6192 try_srcdir
="${srcdir}/"
6193 try
="sysdeps$try_suffix"
6194 test -n "$enable_debug_configure" &&
6195 echo "$0 DEBUG: try $try" >&2
6196 if test -d "$try_srcdir$try"; then
6197 sysnames
="$sysnames $try"
6198 { test -n "$o" ||
test -n "$b"; } && os_used
=t
6199 { test -n "$m" ||
test -n "$m0"; } && machine_used
=t
6201 x
*/$submachine) submachine_used
=t
;;
6211 # If the assembler supports gnu_indirect_function symbol type and the
6212 # architecture supports multi-arch, we enable multi-arch by default.
6217 test x
"$multi_arch" = xdefault
&& multi_arch
=no
6220 if test x
"$multi_arch" != xno
; then
6221 printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h
6226 if test -z "$os_used" && test "$os" != none
; then
6227 as_fn_error $?
"Operating system $os is not supported." "$LINENO" 5
6229 if test -z "$machine_used" && test "$machine" != none
; then
6230 as_fn_error $?
"The $machine is not supported." "$LINENO" 5
6232 if test -z "$submachine_used" && test -n "$submachine"; then
6233 as_fn_error $?
"The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
6237 # We have now validated the configuration.
6239 # Expand the list of system names into a full list of directories
6240 # from each element's parent name and Implies file (if present).
6243 while test $# -gt 0; do
6247 case " $names " in *" $name "*)
6248 # Already in the list.
6252 # Report each name as we discover it, so there is no long pause in output.
6253 echo $ECHO_N "$name $ECHO_C" >&6
6255 name_base
=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
6259 *) xsrcdir
=$srcdir/ ;;
6261 test -n "$enable_debug_configure" &&
6262 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
6264 for implies_file
in Implies Implies-before Implies-after
; do
6265 implies_type
=`echo $implies_file | sed s/-/_/`
6266 eval ${implies_type}=
6267 if test -f $xsrcdir$name/$implies_file; then
6268 # Collect more names from the `Implies' file (removing comments).
6269 implied_candidate
="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
6270 for x
in $implied_candidate; do
6272 if test -d $xsrcdir$name_base/$x; then
6273 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
6278 test -n "$enable_debug_configure" &&
6279 echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2
6280 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
6282 eval "${implies_type}=\"\$${implies_type} \$try\""
6285 if test $found = no
; then
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
6287 printf "%s\n" "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
6293 # Add NAME to the list of names.
6294 names
="$names $name"
6296 # Find the parent of NAME, using the empty string if it has none.
6297 parent
="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
6299 test -n "$enable_debug_configure" &&
6300 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
6301 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
6303 # Add the names implied by NAME, and NAME's parent (if it has one), to
6304 # the list of names to be processed (the argument list). We prepend the
6305 # implied names to the list and append the parent. We want implied
6306 # directories to come before further directories inferred from the
6307 # configuration components; this ensures that for sysv4, unix/common
6308 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
6310 sysnames
="`echo $Implies $* $Implies_before $parent $Implies_after`"
6311 test -n "$sysnames" && set $sysnames
6314 # Add the default directories.
6315 default_sysnames
="sysdeps/generic"
6316 sysnames
="$names $default_sysnames"
6318 # The other names were emitted during the scan.
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
6320 printf "%s\n" "$default_sysnames" >&6; }
6322 # if using special system headers, find out the compiler's sekrit
6323 # header directory and add that to the list. NOTE: Only does the right
6324 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
6325 if test -n "$sysheaders"; then
6326 SYSINCLUDES
=-nostdinc
6327 for d
in include include-fixed
; do
6328 i
=`$CC -print-file-name="$d"` && test "x$i" != x
&& test "x$i" != "x$d" &&
6329 SYSINCLUDES
="$SYSINCLUDES -isystem $i"
6331 SYSINCLUDES
="$SYSINCLUDES \
6332 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
6333 if test -n "$CXX"; then
6335 for cxxheaders
in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
6336 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
6337 test "x$cxxheaders" != x
&&
6338 CXX_SYSINCLUDES
="$CXX_SYSINCLUDES -isystem $cxxheaders"
6345 # Obtain some C++ header file paths. This is used to make a local
6346 # copy of those headers in Makerules.
6347 if test -n "$CXX"; then
6348 find_cxx_header
() {
6349 echo "#include <$1>" |
$CXX -H -fsyntax-only -x c
++ - 2>&1 \
6350 |
$AWK '$1 == "."{print $2}'
6352 CXX_CSTDLIB_HEADER
="$(find_cxx_header cstdlib)"
6353 CXX_CMATH_HEADER
="$(find_cxx_header cmath)"
6354 CXX_BITS_STD_ABS_H
="$(find_cxx_header bits/std_abs.h)"
6360 # Test if LD_LIBRARY_PATH contains the notation for the current directory
6361 # since this would lead to problems installing/building glibc.
6362 # LD_LIBRARY_PATH contains the current directory if one of the following
6364 # - one of the terminals (":" and ";") is the first or last sign
6365 # - two terminals occur directly after each other
6366 # - the path contains an element with a dot in it
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
6368 printf %s
"checking LD_LIBRARY_PATH variable... " >&6; }
6369 case ${LD_LIBRARY_PATH} in
6370 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
6371 ld_library_path_setting
="contains current directory"
6374 ld_library_path_setting
="ok"
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
6378 printf "%s\n" "$ld_library_path_setting" >&6; }
6379 if test "$ld_library_path_setting" != "ok"; then
6381 *** LD_LIBRARY_PATH shouldn't contain the current directory when
6382 *** building glibc. Please change the environment variable
6383 *** and run configure again." "$LINENO" 5
6386 # Extract the first word of "bash", so it can be a program name with args.
6387 set dummy bash
; ac_word
=$2
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 printf %s
"checking for $ac_word... " >&6; }
6390 if test ${ac_cv_path_BASH_SHELL+y}
6392 printf %s
"(cached) " >&6
6396 ac_cv_path_BASH_SHELL
="$BASH_SHELL" # Let the user override the test with a path.
6399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6403 case $as_dir in #(((
6406 *) as_dir
=$as_dir/ ;;
6408 for ac_exec_ext
in '' $ac_executable_extensions; do
6409 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6410 ac_cv_path_BASH_SHELL
="$as_dir$ac_word$ac_exec_ext"
6411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6418 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL
="no"
6422 BASH_SHELL
=$ac_cv_path_BASH_SHELL
6423 if test -n "$BASH_SHELL"; then
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
6425 printf "%s\n" "$BASH_SHELL" >&6; }
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 printf "%s\n" "no" >&6; }
6433 # Extract the first word of "perl", so it can be a program name with args.
6434 set dummy perl
; ac_word
=$2
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 printf %s
"checking for $ac_word... " >&6; }
6437 if test ${ac_cv_path_PERL+y}
6439 printf %s
"(cached) " >&6
6443 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
6446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6450 case $as_dir in #(((
6453 *) as_dir
=$as_dir/ ;;
6455 for ac_exec_ext
in '' $ac_executable_extensions; do
6456 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6457 ac_cv_path_PERL
="$as_dir$ac_word$ac_exec_ext"
6458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6465 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="no"
6469 PERL
=$ac_cv_path_PERL
6470 if test -n "$PERL"; then
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6472 printf "%s\n" "$PERL" >&6; }
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 printf "%s\n" "no" >&6; }
6479 if test "$PERL" != no
&&
6480 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
6483 # Extract the first word of "install-info", so it can be a program name with args.
6484 set dummy install-info
; ac_word
=$2
6485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 printf %s
"checking for $ac_word... " >&6; }
6487 if test ${ac_cv_path_INSTALL_INFO+y}
6489 printf %s
"(cached) " >&6
6491 case $INSTALL_INFO in
6493 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
6496 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6497 as_dummy
="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
6498 for as_dir
in $as_dummy
6501 case $as_dir in #(((
6504 *) as_dir
=$as_dir/ ;;
6506 for ac_exec_ext
in '' $ac_executable_extensions; do
6507 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6508 ac_cv_path_INSTALL_INFO
="$as_dir$ac_word$ac_exec_ext"
6509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6516 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
="no"
6520 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
6521 if test -n "$INSTALL_INFO"; then
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6523 printf "%s\n" "$INSTALL_INFO" >&6; }
6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 printf "%s\n" "no" >&6; }
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
6532 printf %s
"checking for .set assembler directive... " >&6; }
6533 if test ${libc_cv_asm_set_directive+y}
6535 printf %s
"(cached) " >&6
6537 cat > conftest.s
<<EOF
6540 .set glibc_conftest_frobozz,foo
6541 .globl glibc_conftest_frobozz
6543 # The alpha-dec-osf1 assembler gives only a warning for `.set'
6544 # (but it doesn't work), so we must do a linking check to be sure.
6545 cat > conftest1.c
<<\EOF
6546 extern int glibc_conftest_frobozz
;
6547 void _start
() { glibc_conftest_frobozz
= 1; }
6549 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6550 -nostartfiles -nostdlib $no_ssp \
6551 -o conftest conftest.s conftest1.c
1>&5 2>&5; then
6552 libc_cv_asm_set_directive
=yes
6554 libc_cv_asm_set_directive
=no
6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
6559 printf "%s\n" "$libc_cv_asm_set_directive" >&6; }
6560 if test $libc_cv_asm_set_directive = yes; then
6561 printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
6566 printf %s
"checking linker support for protected data symbol... " >&6; }
6567 if test ${libc_cv_protected_data+y}
6569 printf %s
"(cached) " >&6
6571 cat > conftest.c
<<EOF
6572 int bar __attribute__ ((visibility ("protected"))) = 1;
6574 libc_cv_protected_data
=no
6575 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so'
6576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6580 test $ac_status = 0; }; }; then
6581 cat > conftest.c
<<EOF
6583 int main (void) { return bar; }
6585 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
6586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590 test $ac_status = 0; }; }; then
6591 libc_cv_protected_data
=yes
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
6598 printf "%s\n" "$libc_cv_protected_data" >&6; }
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5
6602 printf %s
"checking linker support for INSERT in linker script... " >&6; }
6603 if test ${libc_cv_insert+y}
6605 printf %s
"(cached) " >&6
6607 cat > conftest.c
<<EOF
6608 int __attribute__ ((section(".bar"))) bar = 0x12345678;
6609 int test (void) { return bar; }
6611 cat > conftest.t
<<EOF
6616 INSERT AFTER .rela.dyn;
6619 if { ac_try
='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so'
6620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; }; then
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5
6631 printf "%s\n" "$libc_cv_insert" >&6; }
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
6635 printf %s
"checking for broken __attribute__((alias()))... " >&6; }
6636 if test ${libc_cv_broken_alias_attribute+y}
6638 printf %s
"(cached) " >&6
6640 cat > conftest.c
<<EOF
6641 extern int foo (int x) __asm ("xyzzy");
6642 int bar (int x) { return x; }
6643 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6645 extern __typeof (dfoo) dfoo __asm ("abccb");
6648 libc_cv_broken_alias_attribute
=yes
6649 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654 test $ac_status = 0; }; }; then
6655 if grep 'xyzzy' conftest.s
>/dev
/null
&&
6656 grep 'abccb' conftest.s
>/dev
/null
; then
6657 libc_cv_broken_alias_attribute
=no
6660 rm -f conftest.c conftest.s
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
6664 printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; }
6665 if test $libc_cv_broken_alias_attribute = yes; then
6666 as_fn_error $?
"working alias attribute support required" "$LINENO" 5
6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
6670 printf %s
"checking whether to put _rtld_local into .sdata section... " >&6; }
6671 if test ${libc_cv_have_sdata_section+y}
6673 printf %s
"(cached) " >&6
6675 echo "int i;" > conftest.c
6676 libc_cv_have_sdata_section
=no
6677 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c
-o conftest.so
2>&1 \
6678 |
grep '\.sdata' >/dev
/null
; then
6679 libc_cv_have_sdata_section
=yes
6681 rm -f conftest.c conftest.so
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
6685 printf "%s\n" "$libc_cv_have_sdata_section" >&6; }
6686 if test $libc_cv_have_sdata_section = yes; then
6687 printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
6692 printf %s
"checking for libunwind-support in compiler... " >&6; }
6693 if test ${libc_cv_cc_with_libunwind+y}
6695 printf %s
"(cached) " >&6
6698 cat > conftest.c
<<EOF
6699 int main (void) { return 0; }
6701 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6702 conftest.c
-v 2>&1 >/dev
/null |
grep ' -lunwind ' >/dev
/null
; then
6703 libc_cv_cc_with_libunwind
=yes
6705 libc_cv_cc_with_libunwind
=no
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
6710 printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; }
6712 if test $libc_cv_cc_with_libunwind = yes; then
6713 printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6719 printf %s
"checking whether --noexecstack is desirable for .S files... " >&6; }
6720 if test ${libc_cv_as_noexecstack+y}
6722 printf %s
"(cached) " >&6
6724 cat > conftest.c
<<EOF
6727 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS
6728 -S -o conftest.s conftest.c 1>&5'
6729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733 test $ac_status = 0; }; } \
6734 && grep .note.GNU-stack conftest.s
>/dev
/null \
6735 && { ac_try
='${CC-cc} $ASFLAGS -Wa,--noexecstack
6736 -c -o conftest.o conftest.s 1>&5'
6737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741 test $ac_status = 0; }; }
6743 libc_cv_as_noexecstack
=yes
6745 libc_cv_as_noexecstack
=no
6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6750 printf "%s\n" "$libc_cv_as_noexecstack" >&6; }
6751 if test $libc_cv_as_noexecstack = yes; then
6752 ASFLAGS_config
="$ASFLAGS_config -Wa,--noexecstack"
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
6757 printf %s
"checking for linker that supports -z execstack... " >&6; }
6758 libc_linker_feature
=no
6759 cat > conftest.c
<<EOF
6760 int _start (void) { return 42; }
6762 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
6763 -Wl,-z,execstack -nostdlib -nostartfiles
6764 -fPIC -shared -o conftest.so conftest.c
6766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6770 test $ac_status = 0; }; }
6772 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack
-nostdlib \
6773 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
6774 |
grep "warning: -z execstack ignored" > /dev
/null
2>&1; then
6777 libc_linker_feature
=yes
6781 if test $libc_linker_feature = yes; then
6782 libc_cv_z_execstack
=yes
6784 libc_cv_z_execstack
=no
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6787 printf "%s\n" "$libc_linker_feature" >&6; }
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5
6791 printf %s
"checking for linker that supports -z start-stop-gc... " >&6; }
6792 libc_linker_feature
=no
6793 cat > conftest.c
<<EOF
6794 int _start (void) { return 42; }
6796 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
6797 -Wl,-z,start-stop-gc -nostdlib -nostartfiles
6798 -fPIC -shared -o conftest.so conftest.c
6800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; }; }
6806 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc
-nostdlib \
6807 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
6808 |
grep "warning: -z start-stop-gc ignored" > /dev
/null
2>&1; then
6811 libc_linker_feature
=yes
6815 if test $libc_linker_feature = yes; then
6816 libc_cv_z_start_stop_gc
=yes
6818 libc_cv_z_start_stop_gc
=no
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6821 printf "%s\n" "$libc_linker_feature" >&6; }
6822 config_vars
="$config_vars
6823 have-z-start-stop-gc = $libc_cv_z_start_stop_gc"
6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5
6826 printf %s
"checking for linker that supports --depaudit... " >&6; }
6827 libc_linker_feature
=no
6828 cat > conftest.c
<<EOF
6829 int _start (void) { return 42; }
6831 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
6832 -Wl,--depaudit,x -nostdlib -nostartfiles
6833 -fPIC -shared -o conftest.so conftest.c
6835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6839 test $ac_status = 0; }; }
6841 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x
-nostdlib \
6842 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
6843 |
grep "warning: --depaudit ignored" > /dev
/null
2>&1; then
6846 libc_linker_feature
=yes
6850 if test $libc_linker_feature = yes; then
6851 libc_cv_depaudit
=yes
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6856 printf "%s\n" "$libc_linker_feature" >&6; }
6857 config_vars
="$config_vars
6858 have-depaudit = $libc_cv_depaudit"
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5
6861 printf %s
"checking for linker that supports -z pack-relative-relocs... " >&6; }
6862 libc_linker_feature
=no
6863 cat > conftest.c
<<EOF
6864 int _start (void) { return 42; }
6866 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
6867 -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles
6868 -fPIC -shared -o conftest.so conftest.c
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 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs
-nostdlib \
6877 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
6878 |
grep "warning: -z pack-relative-relocs ignored" > /dev
/null
2>&1; then
6881 libc_linker_feature
=yes
6885 if test $libc_linker_feature = yes; then
6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6891 printf "%s\n" "$libc_linker_feature" >&6; }
6892 config_vars
="$config_vars
6893 have-dt-relr = $libc_cv_dt_relr"
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5
6896 printf %s
"checking for linker that supports --no-dynamic-linker... " >&6; }
6897 libc_linker_feature
=no
6898 cat > conftest.c
<<EOF
6899 int _start (void) { return 42; }
6901 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
6902 -Wl,--no-dynamic-linker -nostdlib -nostartfiles
6903 -fPIC -shared -o conftest.so conftest.c
6905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909 test $ac_status = 0; }; }
6911 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \
6912 -nostartfiles -fPIC -shared -o conftest.so conftest.c
2>&1 \
6913 |
grep "warning: --no-dynamic-linker ignored" > /dev
/null
2>&1; then
6916 libc_linker_feature
=yes
6920 if test $libc_linker_feature = yes; then
6921 libc_cv_no_dynamic_linker
=yes
6923 libc_cv_no_dynamic_linker
=no
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6926 printf "%s\n" "$libc_linker_feature" >&6; }
6927 config_vars
="$config_vars
6928 have-no-dynamic-linker = $libc_cv_no_dynamic_linker"
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5
6931 printf %s
"checking for -static-pie... " >&6; }
6932 if test ${libc_cv_static_pie+y}
6934 printf %s
"(cached) " >&6
6936 if { ac_try
='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null'
6937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941 test $ac_status = 0; }; }
6943 libc_cv_static_pie
=yes
6945 libc_cv_static_pie
=no
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5
6950 printf "%s\n" "$libc_cv_static_pie" >&6; }
6951 config_vars
="$config_vars
6952 have-static-pie = $libc_cv_static_pie"
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
6955 printf %s
"checking for -fpie... " >&6; }
6956 if test ${libc_cv_fpie+y}
6958 printf %s
"(cached) " >&6
6960 if { ac_try
='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
6961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6965 test $ac_status = 0; }; }
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
6974 printf "%s\n" "$libc_cv_fpie" >&6; }
6978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
6979 printf %s
"checking for GLOB_DAT reloc... " >&6; }
6980 if test ${libc_cv_has_glob_dat+y}
6982 printf %s
"(cached) " >&6
6984 cat > conftest.c
<<EOF
6986 int foo (void) { return mumble; }
6988 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6989 -fPIC -shared -o conftest.so conftest.c
6990 -nostdlib -nostartfiles $no_ssp
6992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996 test $ac_status = 0; }; }
6998 if $READELF -rW conftest.so |
grep '_GLOB_DAT' > /dev
/null
; then
6999 libc_cv_has_glob_dat
=yes
7001 libc_cv_has_glob_dat
=no
7004 libc_cv_has_glob_dat
=no
7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
7009 printf "%s\n" "$libc_cv_has_glob_dat" >&6; }
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tls descriptor support" >&5
7013 printf %s
"checking for tls descriptor support... " >&6; }
7014 if test ${libc_cv_mtls_descriptor+y}
7016 printf %s
"(cached) " >&6
7018 cat > conftest.c
<<EOF
7025 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=$mtls_descriptor -nostdlib -nostartfiles
7026 -shared conftest.c -o conftest 1>&5'
7027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7031 test $ac_status = 0; }; }
7033 libc_cv_mtls_descriptor
=$mtls_descriptor
7035 libc_cv_mtls_descriptor
=no
7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_descriptor" >&5
7040 printf "%s\n" "$libc_cv_mtls_descriptor" >&6; }
7042 config_vars
="$config_vars
7043 have-mtls-descriptor = $libc_cv_mtls_descriptor"
7045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5
7046 printf %s
"checking if -Wno-ignored-attributes is required for aliases... " >&6; }
7047 if test ${libc_cv_wno_ignored_attributes+y}
7049 printf %s
"(cached) " >&6
7051 cat > conftest.c
<<EOF
7055 extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo")));
7056 extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo")));
7058 libc_cv_wno_ignored_attributes
=""
7059 if ! { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c'
7060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064 test $ac_status = 0; }; }
7066 libc_cv_wno_ignored_attributes
="-Wno-ignored-attributes"
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5
7071 printf "%s\n" "$libc_cv_wno_ignored_attributes" >&6; }
7072 config_vars
="$config_vars
7073 config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes"
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
7076 printf %s
"checking whether cc puts quotes around section names... " >&6; }
7077 if test ${libc_cv_have_section_quotes+y}
7079 printf %s
"(cached) " >&6
7081 cat > conftest.c
<<EOF
7082 static const int foo
7083 __attribute__ ((section ("bar"))) = 1;
7085 if ${CC-cc} -S conftest.c
-o conftest.s
; then
7086 if grep '\.section.*"bar"' conftest.s
>/dev
/null
; then
7087 libc_cv_have_section_quotes
=yes
7089 libc_cv_have_section_quotes
=no
7092 libc_cv_have_section_quotes
=unknown
7094 rm -f conftest.
{c
,s
}
7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
7098 printf "%s\n" "$libc_cv_have_section_quotes" >&6; }
7099 if test $libc_cv_have_section_quotes = yes; then
7100 printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
7105 printf %s
"checking for __builtin_memset... " >&6; }
7106 if test ${libc_cv_gcc_builtin_memset+y}
7108 printf %s
"(cached) " >&6
7110 cat > conftest.c
<<\EOF
7113 __builtin_memset
(x
, 0, 1000);
7116 if { ac_try
='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null'
7117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7121 test $ac_status = 0; }; };
7123 libc_cv_gcc_builtin_memset
=no
7125 libc_cv_gcc_builtin_memset
=yes
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
7130 printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; }
7131 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7132 printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
7137 printf %s
"checking for redirection of built-in functions... " >&6; }
7138 if test ${libc_cv_gcc_builtin_redirection+y}
7140 printf %s
"(cached) " >&6
7142 cat > conftest.c
<<\EOF
7143 extern char
*strstr
(const char
*, const char
*) __asm
("my_strstr");
7144 char
*foo
(const char
*a
, const char
*b
)
7146 return __builtin_strstr
(a
, b
);
7149 if { ac_try
='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null'
7150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7154 test $ac_status = 0; }; };
7156 libc_cv_gcc_builtin_redirection
=yes
7158 libc_cv_gcc_builtin_redirection
=no
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
7163 printf "%s\n" "$libc_cv_gcc_builtin_redirection" >&6; }
7164 if test "$libc_cv_gcc_builtin_redirection" = no
; then
7165 as_fn_error $?
"support for the symbol redirection needed" "$LINENO" 5
7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
7169 printf %s
"checking for compiler option to disable generation of FMA instructions... " >&6; }
7170 if test ${libc_cv_cc_nofma+y}
7172 printf %s
"(cached) " >&6
7175 for opt
in -ffp-contract=off
-mno-fused-madd; do
7176 if { ac_try
='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7181 test $ac_status = 0; }; }
7183 libc_cv_cc_nofma
=$opt; break
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
7188 printf "%s\n" "$libc_cv_cc_nofma" >&6; }
7191 if test -n "$submachine"; then
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7193 printf %s
"checking for compiler option for CPU variant... " >&6; }
7194 if test ${libc_cv_cc_submachine+y}
7196 printf %s
"(cached) " >&6
7198 libc_cv_cc_submachine
=no
7199 for opt
in "-march=$submachine" "-mcpu=$submachine"; do
7200 if { ac_try
='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7205 test $ac_status = 0; }; }
7208 libc_cv_cc_submachine
="$opt"
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7214 printf "%s\n" "$libc_cv_cc_submachine" >&6; }
7215 if test "x$libc_cv_cc_submachine" = xno
; then
7216 as_fn_error $?
"${CC-cc} does not support $submachine" "$LINENO" 5
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5
7222 printf %s
"checking for compiler option that -fsignaling-nans... " >&6; }
7223 if test ${libc_cv_cc_signaling_nans+y}
7225 printf %s
"(cached) " >&6
7227 if { ac_try
='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null'
7228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7232 test $ac_status = 0; }; }
7234 libc_cv_cc_signaling_nans
=-fsignaling-nans
7236 libc_cv_cc_signaling_nans
=
7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5
7241 printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; }
7242 config_vars
="$config_vars
7243 config-cflags-signaling-nans = $libc_cv_cc_signaling_nans"
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
7246 __attribute__ ((__optimize__))" >&5
7247 printf %s
"checking if $CC accepts -fno-tree-loop-distribute-patterns with \
7248 __attribute__ ((__optimize__))... " >&6; }
7249 if test ${libc_cv_cc_loop_to_function+y}
7251 printf %s
"(cached) " >&6
7253 cat > conftest.c
<<EOF
7255 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
7258 libc_cv_cc_loop_to_function
=no
7259 if { ac_try
='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
7260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7264 test $ac_status = 0; }; }
7266 libc_cv_cc_loop_to_function
=yes
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
7271 printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; }
7272 if test $libc_cv_cc_loop_to_function = yes; then
7273 printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
7279 printf %s
"checking for libgd... " >&6; }
7280 if test "$with_gd" != "no"; then
7281 old_CFLAGS
="$CFLAGS"
7282 CFLAGS
="$CFLAGS $libgd_include"
7283 old_LDFLAGS
="$LDFLAGS"
7284 LDFLAGS
="$LDFLAGS $libgd_ldflags"
7286 LIBS
="$LIBS -lgd -lpng -lz -lm"
7287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7298 if ac_fn_c_try_link
"$LINENO"
7304 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7305 conftest
$ac_exeext conftest.
$ac_ext
7306 CFLAGS
="$old_CFLAGS"
7307 LDFLAGS
="$old_LDFLAGS"
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
7313 printf "%s\n" "$LIBGD" >&6; }
7317 if test x
$with_selinux = xno
; then
7320 # See if we have the SELinux library
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
7322 printf %s
"checking for is_selinux_enabled in -lselinux... " >&6; }
7323 if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
7325 printf %s
"(cached) " >&6
7327 ac_check_lib_save_LIBS
=$LIBS
7328 LIBS
="-lselinux $LIBS"
7329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7332 /* Override any GCC internal prototype to avoid an error.
7333 Use char because int might match the return type of a GCC
7334 builtin and then its argument prototype would still apply. */
7335 char is_selinux_enabled ();
7339 return is_selinux_enabled ();
7344 if ac_fn_c_try_link
"$LINENO"
7346 ac_cv_lib_selinux_is_selinux_enabled
=yes
7348 ac_cv_lib_selinux_is_selinux_enabled
=no
7350 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7351 conftest
$ac_exeext conftest.
$ac_ext
7352 LIBS
=$ac_check_lib_save_LIBS
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7355 printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7356 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
7363 if test x
$with_selinux = xyes
; then
7364 if test x
$have_selinux = xno
; then
7365 as_fn_error $?
"SELinux explicitly required, but SELinux library not found" "$LINENO" 5
7369 # Check if we're building with SELinux support.
7370 if test "x$have_selinux" = xyes
; then
7372 printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
7375 # See if we have the libaudit library
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
7377 printf %s
"checking for audit_log_user_avc_message in -laudit... " >&6; }
7378 if test ${ac_cv_lib_audit_audit_log_user_avc_message+y}
7380 printf %s
"(cached) " >&6
7382 ac_check_lib_save_LIBS
=$LIBS
7383 LIBS
="-laudit $LIBS"
7384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7387 /* Override any GCC internal prototype to avoid an error.
7388 Use char because int might match the return type of a GCC
7389 builtin and then its argument prototype would still apply. */
7390 char audit_log_user_avc_message ();
7394 return audit_log_user_avc_message ();
7399 if ac_fn_c_try_link
"$LINENO"
7401 ac_cv_lib_audit_audit_log_user_avc_message
=yes
7403 ac_cv_lib_audit_audit_log_user_avc_message
=no
7405 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7406 conftest
$ac_exeext conftest.
$ac_ext
7407 LIBS
=$ac_check_lib_save_LIBS
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7410 printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7411 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes
7418 if test "x$have_libaudit" = xyes
; then
7420 printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h
7425 # See if we have the libcap library
7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
7427 printf %s
"checking for cap_init in -lcap... " >&6; }
7428 if test ${ac_cv_lib_cap_cap_init+y}
7430 printf %s
"(cached) " >&6
7432 ac_check_lib_save_LIBS
=$LIBS
7434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7437 /* Override any GCC internal prototype to avoid an error.
7438 Use char because int might match the return type of a GCC
7439 builtin and then its argument prototype would still apply. */
7449 if ac_fn_c_try_link
"$LINENO"
7451 ac_cv_lib_cap_cap_init
=yes
7453 ac_cv_lib_cap_cap_init
=no
7455 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7456 conftest
$ac_exeext conftest.
$ac_ext
7457 LIBS
=$ac_check_lib_save_LIBS
7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
7460 printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; }
7461 if test "x$ac_cv_lib_cap_cap_init" = xyes
7468 if test "x$have_libcap" = xyes
; then
7470 printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h
7477 no_fortify_source
="-Wp,-U_FORTIFY_SOURCE"
7478 fortify_source
="${no_fortify_source}"
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level" >&5
7481 printf %s
"checking for maximum supported _FORTIFY_SOURCE level... " >&6; }
7482 if test ${libc_cv_supported_fortify_source+y}
7484 printf %s
"(cached) " >&6
7487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7493 __builtin_dynamic_object_size("", 0)
7498 if ac_fn_c_try_link
"$LINENO"
7500 libc_cv_supported_fortify_source
=3
7502 libc_cv_supported_fortify_source
=2
7504 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7505 conftest
$ac_exeext conftest.
$ac_ext
7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5
7509 printf "%s\n" "$libc_cv_supported_fortify_source" >&6; }
7511 case $enable_fortify_source in #(
7513 libc_cv_fortify_source
=yes enable_fortify_source
=$libc_cv_supported_fortify_source ;; #(
7515 libc_cv_fortify_source
=yes ;; #(
7517 if test $libc_cv_supported_fortify_source = 3
7519 libc_cv_fortify_source
=yes
7521 as_fn_error $?
"Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5
7524 libc_cv_fortify_source
=no
;;
7527 if test "$libc_cv_fortify_source" = yes
7529 fortify_source
="${fortify_source},-D_FORTIFY_SOURCE=${enable_fortify_source}"
7537 config_vars
="$config_vars
7538 supported-fortify = $libc_cv_supported_fortify_source"
7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
7541 printf %s
"checking whether the assembler requires one version per symbol... " >&6; }
7542 if test ${libc_cv_symver_needs_alias+y}
7544 printf %s
"(cached) " >&6
7546 cat > conftest.s
<<EOF
7550 .symver testfunc, testfunc1@VERSION1
7551 .symver testfunc, testfunc1@VERSION2
7553 libc_cv_symver_needs_alias
=no
7554 if ${CC-cc} $ASFLAGS -c conftest.s
2>&5; then
7555 libc_cv_symver_needs_alias
=no
7557 libc_cv_symver_needs_alias
=yes
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5
7563 printf "%s\n" "$libc_cv_symver_needs_alias" >&6; }
7564 if test "$libc_cv_symver_needs_alias" = yes; then
7565 printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
7570 printf %s
"checking for __builtin_trap with no external dependencies... " >&6; }
7571 if test ${libc_cv_builtin_trap+y}
7573 printf %s
"(cached) " >&6
7575 libc_cv_builtin_trap
=no
7576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7587 if ac_fn_c_try_compile
"$LINENO"
7590 libc_undefs
=`$NM -u conftest.o |
7591 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
7593 as_fn_error $?
"confusing output from $NM -u" "$LINENO" 5
7595 echo >&5 "libc_undefs='$libc_undefs'"
7596 if test -z "$libc_undefs"; then
7597 libc_cv_builtin_trap
=yes
7600 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
7603 printf "%s\n" "$libc_cv_builtin_trap" >&6; }
7604 if test $libc_cv_builtin_trap = yes; then
7605 printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
7610 ac_cpp
='$CXXCPP $CPPFLAGS'
7611 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
7617 printf %s
"checking whether the C++ compiler supports thread_local... " >&6; }
7618 if test ${libc_cv_cxx_thread_local+y}
7620 printf %s
"(cached) " >&6
7623 old_CXXFLAGS
="$CXXFLAGS"
7624 CXXFLAGS
="$CXXFLAGS -std=gnu++11"
7625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7630 // Compiler support.
7637 S * get () { return &s; }
7639 // libstdc++ support.
7640 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
7641 #error __cxa_thread_atexit_impl not supported
7645 if ac_fn_cxx_try_compile
"$LINENO"
7647 libc_cv_cxx_thread_local
=yes
7649 libc_cv_cxx_thread_local
=no
7651 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7652 CXXFLAGS
="$old_CXXFLAGS"
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
7656 printf "%s\n" "$libc_cv_cxx_thread_local" >&6; }
7660 ac_cpp
='$CPP $CPPFLAGS'
7661 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7662 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7663 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7666 ### End of automated tests.
7667 ### Now run sysdeps configure fragments.
7669 # They also can set these variables.
7671 ldd_rewrite_script
=no
7672 libc_cv_sysconfdir
=$sysconfdir
7673 libc_cv_localstatedir
=$localstatedir
7674 libc_cv_gcc_unwind_find_fde
=no
7678 # Iterate over all the sysdep directories we will use, running their
7679 # configure fragments.
7680 for dir
in $sysnames; do
7683 *) dest
=$srcdir/$dir ;;
7685 if test -r $dest/configure
; then
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7687 printf "%s\n" "running configure fragment for $dir" >&6; }
7692 if test x
"$build_mathvec" = xnotset
; then
7695 config_vars
="$config_vars
7696 build-mathvec = $build_mathvec"
7701 if test x
$libc_cv_gcc_unwind_find_fde = xyes
; then
7702 printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7707 # A sysdeps configure fragment can reset this if IFUNC is not actually
7708 # usable even though the assembler knows how to generate the symbol type.
7709 if test x
"$libc_cv_ld_gnu_indirect_function" = xyes
; then
7710 printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h
7713 config_vars
="$config_vars
7714 have-ifunc = $libc_cv_ld_gnu_indirect_function"
7716 if test x
"$libc_cv_gcc_indirect_function" = xyes
; then
7717 printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h
7720 config_vars
="$config_vars
7721 have-gcc-ifunc = $libc_cv_gcc_indirect_function"
7723 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
7724 # configure fragment can override the value to prevent this AC_DEFINE.
7726 if test "x$use_nscd" != xno
; then
7727 printf "%s\n" "#define USE_NSCD 1" >>confdefs.h
7730 if test "x$build_nscd" = xdefault
; then
7731 build_nscd
=$use_nscd
7741 if test x
$use_ldconfig = xyes
; then
7742 printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7752 printf %s
"checking whether -fPIC is default... " >&6; }
7753 if test ${libc_cv_pic_default+y}
7755 printf %s
"(cached) " >&6
7757 libc_cv_pic_default
=yes
7758 cat > conftest.c
<<EOF
7759 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7760 # error PIC is default.
7763 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7764 libc_cv_pic_default
=no
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
7769 printf "%s\n" "$libc_cv_pic_default" >&6; }
7770 config_vars
="$config_vars
7771 build-pic-default = $libc_cv_pic_default"
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
7774 printf %s
"checking whether -fPIE is default... " >&6; }
7775 if test ${libc_cv_cc_pie_default+y}
7777 printf %s
"(cached) " >&6
7779 libc_cv_cc_pie_default
=yes
7780 cat > conftest.c
<<EOF
7781 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
7782 # error PIE is default.
7785 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7786 libc_cv_cc_pie_default
=no
7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5
7791 printf "%s\n" "$libc_cv_cc_pie_default" >&6; }
7792 config_vars
="$config_vars
7793 cc-pie-default = $libc_cv_cc_pie_default"
7795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5
7796 printf %s
"checking if we can build programs as PIE... " >&6; }
7797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7799 #ifdef PIE_UNSUPPORTED
7800 # error PIE is not supported
7803 if ac_fn_c_try_compile
"$LINENO"
7805 libc_cv_pie_supported
=yes
7807 libc_cv_pie_supported
=no
7809 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5
7811 printf "%s\n" "$libc_cv_pie_supported" >&6; }
7812 # Disable build-pie-default if target does not support it or glibc is
7813 # configured with --disable-default-pie.
7814 if test "x$default_pie" = xno
; then
7815 build_pie_default
=no
7817 build_pie_default
=$libc_cv_pie_supported
7819 config_vars
="$config_vars
7820 build-pie-default = $build_pie_default"
7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5
7823 printf %s
"checking if we can build static PIE programs... " >&6; }
7824 libc_cv_static_pie_supported
=$libc_cv_pie_supported
7825 if test "x$libc_cv_pie_supported" != xno \
7826 -a "$libc_cv_no_dynamic_linker" = yes; then
7827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7829 #ifndef SUPPORT_STATIC_PIE
7830 # error static PIE is not supported
7833 if ac_fn_c_try_compile
"$LINENO"
7835 libc_cv_static_pie_supported
=yes
7837 libc_cv_static_pie_supported
=no
7839 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5
7842 printf "%s\n" "$libc_cv_static_pie_supported" >&6; }
7844 # Enable static-pie only if it is available and glibc isn't configured
7845 # with --disable-default-pie.
7846 if test "x$default_pie" = xno
; then
7847 libc_cv_static_pie
=no
7849 libc_cv_static_pie
=$libc_cv_static_pie_supported
7851 if test "$libc_cv_static_pie" = "yes"; then
7852 printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h
7855 config_vars
="$config_vars
7856 enable-static-pie = $libc_cv_static_pie"
7858 # Set the `multidir' variable by grabbing the variable from the compiler.
7859 # We do it once and save the result in a generated makefile.
7860 libc_cv_multidir
=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory`
7870 VERSION
=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7871 RELEASE
=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7875 if test "$pthread_in_libc" = yes; then
7876 printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h
7881 ac_config_files
="$ac_config_files config.make Makefile"
7883 ac_config_commands
="$ac_config_commands default"
7885 cat >confcache
<<\_ACEOF
7886 # This file is a shell script that caches the results of configure
7887 # tests run on this system so they can be shared between configure
7888 # scripts and configure runs, see configure's option --config-cache.
7889 # It is not useful on other systems. If it contains results you don't
7890 # want to keep, you may remove or edit it.
7892 # config.status only pays attention to the cache file if you give it
7893 # the --recheck option to rerun configure.
7895 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7896 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7901 # The following way of writing the cache mishandles newlines in values,
7902 # but we know of no workaround that is simple, portable, and efficient.
7903 # So, we kill variables containing newlines.
7904 # Ultrix sh set writes to stderr and can't be redirected directly,
7905 # and sets the high bit in the cache file unless we assign to the vars.
7907 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7908 eval ac_val
=\$
$ac_var
7912 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7913 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7916 _ | IFS | as_nl
) ;; #(
7917 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7918 *) { eval $ac_var=; unset $ac_var;} ;;
7924 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7925 *${as_nl}ac_space
=\
*)
7926 # `set' does not quote correctly, so add quotes: double-quote
7927 # substitution turns \\\\ into \\, and sed turns \\ into \.
7930 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7933 # `set' quotes correctly as required by POSIX, so do not add quotes.
7934 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7943 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7945 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7947 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7948 if test -w "$cache_file"; then
7949 if test "x$cache_file" != "x/dev/null"; then
7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7951 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7952 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7953 cat confcache
>"$cache_file"
7955 case $cache_file in #(
7957 mv -f confcache
"$cache_file"$$
&&
7958 mv -f "$cache_file"$$
"$cache_file" ;; #(
7960 mv -f confcache
"$cache_file" ;;
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7966 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7971 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7972 # Let make expand exec_prefix.
7973 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7975 DEFS
=-DHAVE_CONFIG_H
7980 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7981 # 1. Remove the extension, and $U if already installed.
7982 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7983 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7984 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7985 # will be set to the directory where LIBOBJS objects are built.
7986 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7987 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7991 LTLIBOBJS
=$ac_ltlibobjs
7995 : "${CONFIG_STATUS=./config.status}"
7997 ac_clean_files_save
=$ac_clean_files
7998 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8000 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8002 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8004 # Generated by $as_me.
8005 # Run this file to recreate the current configuration.
8006 # Compiler output produced by configure, useful for debugging
8007 # configure, is in config.log if it exists.
8013 SHELL=\${CONFIG_SHELL-$SHELL}
8016 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
8017 ## -------------------- ##
8018 ## M4sh Initialization. ##
8019 ## -------------------- ##
8021 # Be more Bourne compatible
8022 DUALCASE
=1; export DUALCASE
# for MKS sh
8024 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
8028 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8029 # is contrary to our usage. Disable this feature.
8030 alias -g '${1+"$@"}'='"$@"'
8031 setopt NO_GLOB_SUBST
8033 case `(set -o) 2>/dev/null` in #(
8043 # Reset variables that may have inherited troublesome values from
8046 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8047 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8048 # side effect of setting IFS to empty, thus disabling word splitting.)
8049 # Quoting is to prevent editors from complaining about space-tab.
8059 # Ensure predictable behavior from utilities with locale-dependent output.
8065 # We cannot yet rely on "unset" to work, but we need these variables
8066 # to be unset--not just set to an empty or harmless value--now, to
8067 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8068 # also avoids known problems related to "unset" and subshell syntax
8069 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8070 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
8071 do eval test \
${$as_var+y} \
8072 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
8075 # Ensure that fds 0, 1, and 2 are open.
8076 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
8077 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
8078 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
8080 # The user is always right.
8081 if ${PATH_SEPARATOR+false} :; then
8083 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
8084 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
8090 # Find who we are. Look in the path if we contain no directory separator.
8093 *[\\/]* ) as_myself
=$0 ;;
8094 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8098 case $as_dir in #(((
8101 *) as_dir
=$as_dir/ ;;
8103 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
8109 # We did not find ourselves, most probably we were run as `sh COMMAND'
8110 # in which case we are not to be found in the path.
8111 if test "x$as_myself" = x
; then
8114 if test ! -f "$as_myself"; then
8115 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8121 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8122 # ----------------------------------------
8123 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8124 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8125 # script with STATUS, using 1 if that was 0.
8128 as_status
=$1; test $as_status -eq 0 && as_status
=1
8130 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8133 printf "%s\n" "$as_me: error: $2" >&2
8134 as_fn_exit
$as_status
8139 # as_fn_set_status STATUS
8140 # -----------------------
8141 # Set $? to STATUS, without forking.
8145 } # as_fn_set_status
8149 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8159 # Portably unset VAR.
8162 { eval $1=; unset $1;}
8164 as_unset
=as_fn_unset
8166 # as_fn_append VAR VALUE
8167 # ----------------------
8168 # Append the text in VALUE to the end of the definition contained in VAR. Take
8169 # advantage of any shell optimizations that allow amortized linear growth over
8170 # repeated appends, instead of the typical quadratic growth present in naive
8172 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
8174 eval 'as_fn_append ()
8185 # as_fn_arith ARG...
8186 # ------------------
8187 # Perform arithmetic evaluation on the ARGs, and store the result in the
8188 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8189 # must be portable across $(()) and expr.
8190 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
8192 eval 'as_fn_arith ()
8199 as_val
=`expr "$@" || test $? -eq 1`
8204 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8205 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8211 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8212 as_basename
=basename
8217 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8223 as_me
=`$as_basename -- "$0" ||
8224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8225 X"$0" : 'X\(//\)$' \| \
8226 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8227 printf "%s\n" X/"$0" |
8228 sed '/^.*\/\([^/][^/]*\)\/*$/{
8242 # Avoid depending upon Character Ranges.
8243 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8244 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8245 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8246 as_cr_digits
='0123456789'
8247 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8250 # Determine whether it's possible to make 'echo' print without a newline.
8251 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8252 # for compatibility with existing Makefiles.
8253 ECHO_C
= ECHO_N
= ECHO_T
=
8254 case `echo -n x` in #(((((
8256 case `echo 'xy\c'` in
8257 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8259 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8266 # For backward compatibility with old third-party macros, we provide
8267 # the shell variables $as_echo and $as_echo_n. New code should use
8268 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8269 as_echo
='printf %s\n'
8270 as_echo_n
='printf %s'
8272 rm -f conf$$ conf$$.exe conf$$.
file
8273 if test -d conf$$.dir
; then
8274 rm -f conf$$.dir
/conf$$.
file
8277 mkdir conf$$.dir
2>/dev
/null
8279 if (echo >conf$$.
file) 2>/dev
/null
; then
8280 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8282 # ... but there are two gotchas:
8283 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8284 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8285 # In both cases, we have to default to `cp -pR'.
8286 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
8288 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8296 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8297 rmdir conf$$.dir
2>/dev
/null
8302 # Create "$as_dir" as a directory, including parents if necessary.
8307 -*) as_dir
=.
/$as_dir;;
8309 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
8313 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8314 *) as_qdir
=$as_dir;;
8316 as_dirs
="'$as_qdir' $as_dirs"
8317 as_dir
=`$as_dirname -- "$as_dir" ||
8318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8319 X"$as_dir" : 'X\(//\)[^/]' \| \
8320 X"$as_dir" : 'X\(//\)$' \| \
8321 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8322 printf "%s\n" X"$as_dir" |
8323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8340 test -d "$as_dir" && break
8342 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
8343 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8347 if mkdir
-p .
2>/dev
/null
; then
8348 as_mkdir_p
='mkdir -p "$as_dir"'
8350 test -d .
/-p && rmdir .
/-p
8355 # as_fn_executable_p FILE
8356 # -----------------------
8357 # Test if FILE is an executable regular file.
8358 as_fn_executable_p
()
8360 test -f "$1" && test -x "$1"
8361 } # as_fn_executable_p
8363 as_executable_p
=as_fn_executable_p
8365 # Sed expression to map a string onto a valid CPP name.
8366 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8368 # Sed expression to map a string onto a valid variable name.
8369 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8373 ## ----------------------------------- ##
8374 ## Main body of $CONFIG_STATUS script. ##
8375 ## ----------------------------------- ##
8377 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8380 # Save the log message, to keep $0 and so on meaningful, and to
8381 # report actual input values of CONFIG_FILES etc. instead of their
8382 # values after options handling.
8384 This file was extended by GNU C Library $as_me (see version.h), which was
8385 generated by GNU Autoconf 2.71. Invocation command line was
8387 CONFIG_FILES = $CONFIG_FILES
8388 CONFIG_HEADERS = $CONFIG_HEADERS
8389 CONFIG_LINKS = $CONFIG_LINKS
8390 CONFIG_COMMANDS = $CONFIG_COMMANDS
8393 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8398 case $ac_config_files in *"
8399 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8402 case $ac_config_headers in *"
8403 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
8407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8408 # Files that config.status was made for.
8409 config_files="$ac_config_files"
8410 config_headers="$ac_config_headers"
8411 config_commands="$ac_config_commands"
8415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8417 \`$as_me' instantiates files and other configuration actions
8418 from templates according to the current configuration. Unless the files
8419 and actions are specified as TAGs, all are instantiated by default.
8421 Usage: $0 [OPTION]... [TAG]...
8423 -h, --help print this help, then exit
8424 -V, --version print version number and configuration settings, then exit
8425 --config print configuration, then exit
8426 -q, --quiet, --silent
8427 do not print progress messages
8428 -d, --debug don't remove temporary files
8429 --recheck update $as_me by reconfiguring in the same conditions
8430 --file=FILE[:TEMPLATE]
8431 instantiate the configuration file FILE
8432 --header=FILE[:TEMPLATE]
8433 instantiate the configuration header FILE
8435 Configuration files:
8438 Configuration headers:
8441 Configuration commands:
8444 Report bugs to <https://sourceware.org/bugzilla/>.
8445 GNU C Library home page: <https://www.gnu.org/software/glibc/>.
8446 General help using GNU software: <https://www.gnu.org/gethelp/>."
8449 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8450 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8452 ac_cs_config='$ac_cs_config_escaped'
8454 GNU C Library config.status (see version.h)
8455 configured by $0, generated by GNU Autoconf 2.71,
8456 with options \\"\$ac_cs_config\\"
8458 Copyright (C) 2021 Free Software Foundation, Inc.
8459 This config.status script is free software; the Free Software Foundation
8460 gives unlimited permission to copy, distribute and modify it."
8465 test -n "\$AWK" || AWK=awk
8468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8469 # The default lists apply if the user does not specify any file.
8475 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8476 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8480 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8492 # Handling of the options.
8493 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8495 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8496 printf "%s\n" "$ac_cs_version"; exit ;;
8497 --config |
--confi |
--conf |
--con |
--co |
--c )
8498 printf "%s\n" "$ac_cs_config"; exit ;;
8499 --debug |
--debu |
--deb |
--de |
--d |
-d )
8501 --file |
--fil |
--fi |
--f )
8504 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8505 '') as_fn_error $?
"missing file argument" ;;
8507 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8508 ac_need_defaults
=false
;;
8509 --header |
--heade |
--head |
--hea )
8512 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8514 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
8515 ac_need_defaults
=false
;;
8517 # Conflict between --help and --header
8518 as_fn_error $?
"ambiguous option: \`$1'
8519 Try \`$0 --help' for more information.";;
8520 --help |
--hel |
-h )
8521 printf "%s\n" "$ac_cs_usage"; exit ;;
8522 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8523 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8527 -*) as_fn_error $?
"unrecognized option: \`$1'
8528 Try \`$0 --help' for more information." ;;
8530 *) as_fn_append ac_config_targets
" $1"
8531 ac_need_defaults
=false
;;
8537 ac_configure_extra_args
=
8539 if $ac_cs_silent; then
8541 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8546 if \$ac_cs_recheck; then
8547 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8549 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8550 CONFIG_SHELL='$SHELL'
8556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8560 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8561 ## Running $as_me. ##
8563 printf "%s\n" "$ac_log"
8567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8571 config_vars='$config_vars'
8575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8577 # Handling of arguments.
8578 for ac_config_target
in $ac_config_targets
8580 case $ac_config_target in
8581 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
8582 "config.make") CONFIG_FILES
="$CONFIG_FILES config.make" ;;
8583 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8584 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8586 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8591 # If the user did not use the arguments to specify the items to instantiate,
8592 # then the envvar interface is used. Set only those that are not.
8593 # We use the long form for the default assignment because of an extremely
8594 # bizarre bug on SunOS 4.1.3.
8595 if $ac_need_defaults; then
8596 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
8597 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
8598 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS
=$config_commands
8601 # Have a temporary directory for convenience. Make it in the build tree
8602 # simply because there is no reason against having it here, and in addition,
8603 # creating and moving files from /tmp can sometimes cause problems.
8604 # Hook for its removal unless debugging.
8605 # Note that there is a small window in which the directory will not be cleaned:
8606 # after its creation but before its name has been assigned to `$tmp'.
8610 trap 'exit_status=$?
8612 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8614 trap 'as_fn_exit 1' 1 2 13 15
8616 # Create a (secure) tmp directory for tmp files.
8619 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8623 tmp
=.
/conf$$
-$RANDOM
8624 (umask 077 && mkdir
"$tmp")
8625 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8628 # Set up the scripts for CONFIG_FILES section.
8629 # No need to generate them if there are no CONFIG_FILES.
8630 # This happens for instance with `./config.status config.h'.
8631 if test -n "$CONFIG_FILES"; then
8634 ac_cr
=`echo X | tr X '\015'`
8635 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8636 # But we know of no other shell where ac_cr would be empty at this
8637 # point, so we can use a bashism as a fallback.
8638 if test "x$ac_cr" = x
; then
8639 eval ac_cr
=\$
\'\\r
\'
8641 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8642 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8648 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8653 echo "cat >conf$$subs.awk <<_ACEOF" &&
8654 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8657 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8658 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8660 for ac_last_try in false false false false false :; do
8661 . ./conf$$subs.sh ||
8662 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8664 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8665 if test $ac_delim_n = $ac_delim_num; then
8667 elif $ac_last_try; then
8668 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8670 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8676 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8680 s/^/S["/; s
/!.
*/"]=/
8690 s/\(.\{148\}\)..*/\1/
8692 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8697 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8704 s/\(.\{148\}\)..*/\1/
8706 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8710 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8715 ' <conf$$subs.awk | sed '
8720 ' >>$CONFIG_STATUS || ac_write_fail=1
8721 rm -f conf$$subs.awk
8722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8724 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8725 for (key in S) S_is_set[key] = 1
8731 nfields = split(line, field, "@
")
8733 len = length(field[1])
8734 for (i = 2; i < nfields; i++) {
8736 keylen = length(key)
8737 if (S_is_set[key]) {
8739 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8740 len += length(value) + length(field[++i])
8751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8752 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8753 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8756 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8757 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8760 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8761 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8762 # trailing colons and then remove the whole line if VPATH becomes empty
8763 # (actually we leave an empty line to preserve line numbers).
8764 if test "x
$srcdir" = x.; then
8765 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8784 fi # test -n "$CONFIG_FILES"
8786 # Set up the scripts for CONFIG_HEADERS section.
8787 # No need to generate them if there are no CONFIG_HEADERS.
8788 # This happens for instance with `./config.status Makefile'.
8789 if test -n "$CONFIG_HEADERS"; then
8790 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
8794 # Transform confdefs.h into an awk script `defines.awk', embedded as
8795 # here-document in config.status, that substitutes the proper values into
8796 # config.h.in to produce config.h.
8798 # Create a delimiter string that does not exist in confdefs.h, to ease
8799 # handling of long lines.
8801 for ac_last_try in false false :; do
8802 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
8803 if test -z "$ac_tt"; then
8805 elif $ac_last_try; then
8806 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
8808 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8812 # For the awk script, D is an array of macro values keyed by name,
8813 # likewise P contains macro parameters if any. Preserve backslash
8814 # newline sequences.
8816 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8818 s/.\{148\}/&'"$ac_delim"'/g
8821 s/^[ ]*#[ ]*define[ ][ ]*/ /
8828 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
8830 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
8834 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
8835 D["\
1"]=" \
3\\\\\\n
"\\/p
8837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
8842 s/.\{148\}/&'"$ac_delim"'/g
8847 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
8850 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
8852 ' <confdefs.h | sed '
8853 s/'"$ac_delim"'/"\\\
8854 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8857 for (key in D) D_is_set[key] = 1
8860 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8862 split(line, arg, " ")
8863 if (arg[1] == "#") {
8867 defundef
= substr
(arg
[1], 2)
8870 split(mac1
, mac2
, "(") #)
8872 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
8873 if (D_is_set
[macro
]) {
8874 # Preserve the white space surrounding the "#".
8875 print prefix
"define", macro P
[macro
] D
[macro
]
8878 # Replace #undef with comments. This is necessary, for example,
8879 # in the case of _POSIX_SOURCE, which is predefined and required
8880 # on some systems where configure will not decide to define it.
8881 if (defundef
== "undef") {
8882 print
"/*", prefix defundef
, macro
, "*/"
8890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8891 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
8892 fi # test -n "$CONFIG_HEADERS"
8895 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8900 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8902 case $ac_mode$ac_tag in
8904 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
8905 :[FH
]-) ac_tag
=-:-;;
8906 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8923 -) ac_f
="$ac_tmp/stdin";;
8924 *) # Look for the file first in the build tree, then in the source tree
8925 # (if the path is not absolute). The absolute path cannot be DOS-style,
8926 # because $ac_f cannot contain `:'.
8930 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8932 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8934 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8935 as_fn_append ac_file_inputs
" '$ac_f'"
8938 # Let's still pretend it is `configure' which instantiates (i.e., don't
8939 # use $as_me), people would be surprised to read:
8940 # /* config.h. Generated by config.status. */
8941 configure_input
='Generated from '`
8942 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8944 if test x
"$ac_file" != x-
; then
8945 configure_input
="$ac_file. $configure_input"
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8947 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8949 # Neutralize special characters interpreted by sed in replacement strings.
8950 case $configure_input in #(
8951 *\
&* |
*\|
* |
*\\* )
8952 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
8953 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8954 *) ac_sed_conf_input
=$configure_input;;
8958 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
8959 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
8964 ac_dir
=`$as_dirname -- "$ac_file" ||
8965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8966 X"$ac_file" : 'X\(//\)[^/]' \| \
8967 X"$ac_file" : 'X\(//\)$' \| \
8968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8969 printf "%s\n" X"$ac_file" |
8970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8987 as_dir
="$ac_dir"; as_fn_mkdir_p
8991 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8993 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8994 # A ".." for each directory in $ac_dir_suffix.
8995 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8996 case $ac_top_builddir_sub in
8997 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8998 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9001 ac_abs_top_builddir
=$ac_pwd
9002 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9003 # for backward compatibility:
9004 ac_top_builddir
=$ac_top_build_prefix
9007 .
) # We are building in place.
9009 ac_top_srcdir
=$ac_top_builddir_sub
9010 ac_abs_top_srcdir
=$ac_pwd ;;
9011 [\\/]* | ?
:[\\/]* ) # Absolute name.
9012 ac_srcdir
=$srcdir$ac_dir_suffix;
9013 ac_top_srcdir
=$srcdir
9014 ac_abs_top_srcdir
=$srcdir ;;
9016 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9017 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9018 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9020 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9030 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9031 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
9035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9036 # If the template does not know about datarootdir, expand it.
9037 # FIXME: This hack should be removed a few years after 2.60.
9038 ac_datarootdir_hack
=; ac_datarootdir_seen
=
9049 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9050 *datarootdir
*) ac_datarootdir_seen
=yes;;
9051 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9053 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9056 ac_datarootdir_hack='
9057 s&@datadir@&$datadir&g
9058 s&@docdir@&$docdir&g
9059 s&@infodir@&$infodir&g
9060 s&@localedir@&$localedir&g
9061 s&@mandir@&$mandir&g
9062 s&\\\${datarootdir}&$datarootdir&g' ;;
9066 # Neutralize VPATH when `$srcdir' = `.'.
9067 # Shell code in configure.ac might set extrasub.
9068 # FIXME: do we really want to maintain this feature?
9069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9070 ac_sed_extra="$ac_vpsub
9073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
9075 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9076 s|@configure_input@|
$ac_sed_conf_input|
;t t
9077 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
9078 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
9079 s
&@srcdir@
&$ac_srcdir&;t t
9080 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
9081 s
&@top_srcdir@
&$ac_top_srcdir&;t t
9082 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
9083 s
&@builddir@
&$ac_builddir&;t t
9084 s
&@abs_builddir@
&$ac_abs_builddir&;t t
9085 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
9086 s
&@INSTALL@
&$ac_INSTALL&;t t
9087 $ac_datarootdir_hack
9089 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
9090 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
9092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9093 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
9094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9095 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
9096 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
9097 which seems to be undefined. Please make sure it is defined" >&5
9098 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
9099 which seems to be undefined. Please make sure it is defined" >&2;}
9101 rm -f "$ac_tmp/stdin"
9103 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9104 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9112 if test x"$ac_file" != x-; then
9114 printf "%s\n" "/* $configure_input */" >&1 \
9115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9116 } >"$ac_tmp/config.h" \
9117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9118 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9120 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9123 mv "$ac_tmp/config.h" "$ac_file" \
9124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9127 printf "%s\n" "/* $configure_input */" >&1 \
9128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9129 || as_fn_error $? "could not create -" "$LINENO" 5
9133 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9134 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
9139 case $ac_file$ac_mode in
9141 case $CONFIG_FILES in *config.make*)
9142 echo "$config_vars" >> config.make;;
9144 test -d bits || mkdir bits ;;
9152 ac_clean_files=$ac_clean_files_save
9154 test $ac_write_fail = 0 ||
9155 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9158 # configure is writing to config.log, and then calls config.status.
9159 # config.status does its own redirection, appending to config.log.
9160 # Unfortunately, on DOS this fails, as config.log is still kept open
9161 # by configure, so config.status won't be able to
write to it
; its
9162 # output is simply discarded. So we exec the FD to /dev/null,
9163 # effectively closing config.log, so it can be properly (re)opened and
9164 # appended to by config.status. When coming back to configure, we
9165 # need to make the FD available again.
9166 if test "$no_create" != yes; then
9168 ac_config_status_args
=
9169 test "$silent" = yes &&
9170 ac_config_status_args
="$ac_config_status_args --quiet"
9172 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9174 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9175 # would make configure fail if this is the last instruction.
9176 $ac_cs_success || as_fn_exit
1
9180 # CONFIG_SUBDIRS section.
9182 if test "$no_recursion" != yes; then
9184 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9185 # so they do not pile up.
9186 ac_sub_configure_args
=
9188 eval "set x $ac_configure_args"
9192 if test -n "$ac_prev"; then
9197 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
9198 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
9199 ac_prev
=cache_file
;;
9200 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
9201 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
9204 --config-cache |
-C)
9206 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
9208 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
9210 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
9212 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
9214 --disable-option-checking)
9218 *\'*) ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9220 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
9224 # Always prepend --prefix to ensure using the same prefix
9225 # in subdir configurations.
9226 ac_arg
="--prefix=$prefix"
9228 *\'*) ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9230 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
9233 if test "$silent" = yes; then
9234 ac_sub_configure_args
="--silent $ac_sub_configure_args"
9237 # Always prepend --disable-option-checking to silence warnings, since
9238 # different subdirs can have different --enable and --with options.
9239 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
9242 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
9244 # Do not complain, so a configure script can configure whichever
9245 # parts of a large source tree are present.
9246 test -d "$srcdir/$ac_dir" ||
continue
9248 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9250 printf "%s\n" "$ac_msg" >&6
9251 as_dir
="$ac_dir"; as_fn_mkdir_p
9255 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9257 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9258 # A ".." for each directory in $ac_dir_suffix.
9259 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9260 case $ac_top_builddir_sub in
9261 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
9262 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
9265 ac_abs_top_builddir
=$ac_pwd
9266 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
9267 # for backward compatibility:
9268 ac_top_builddir
=$ac_top_build_prefix
9271 .
) # We are building in place.
9273 ac_top_srcdir
=$ac_top_builddir_sub
9274 ac_abs_top_srcdir
=$ac_pwd ;;
9275 [\\/]* | ?
:[\\/]* ) # Absolute name.
9276 ac_srcdir
=$srcdir$ac_dir_suffix;
9277 ac_top_srcdir
=$srcdir
9278 ac_abs_top_srcdir
=$srcdir ;;
9280 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
9281 ac_top_srcdir
=$ac_top_build_prefix$srcdir
9282 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
9284 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
9289 # Check for configure.gnu first; this name is used for a wrapper for
9290 # Metaconfig's "Configure" on case-insensitive file systems.
9291 if test -f "$ac_srcdir/configure.gnu"; then
9292 ac_sub_configure
=$ac_srcdir/configure.gnu
9293 elif test -f "$ac_srcdir/configure"; then
9294 ac_sub_configure
=$ac_srcdir/configure
9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9297 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9301 # The recursion is here.
9302 if test -n "$ac_sub_configure"; then
9303 # Make the cache file name correct relative to the subdirectory.
9305 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
9307 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
9310 { 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
9311 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9312 # The eval makes quoting arguments work.
9313 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9314 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9315 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9321 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9323 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}