* Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release @ 2024-01-01 13:18 Andreas K. Huettel 2024-01-02 9:14 ` Florian Weimer ` (5 more replies) 0 siblings, 6 replies; 31+ messages in thread From: Andreas K. Huettel @ 2024-01-01 13:18 UTC (permalink / raw) To: libc-alpha [-- Attachment #1: Type: text/plain, Size: 2014 bytes --] Hi all, first of all, a happy new year to all of you. Let us hope for a more peaceful 2024. We follow for the upcoming glibc 2.39 the same schedule as usual. - January 1-11, "slushy ABI freeze" * No new ABI additions. * ABI corrections should be reviewed, RM approval not required. * Avoid any changes that require action by the ports (including all that require ulps regeneration) * Bug fixes. * Monday patch review switches to reviewing critical bug list and ABI issues. The planning section of our 2.39 wiki page lists at the moment the following items: https://sourceware.org/glibc/wiki/Release/2.39#Planning * Release blockers - Revert to original qsort implementation and apply subsequent mergesort changes with heapsort as fallback. Attempts to make changes to qsort have shown deep application dependencies on undocumented behaviour. In order to preserver application compatibility we need to revert the less conservative changes. It would be good to revert to the original known state and then copy in some of the final changes. - AArch64 SME support https://patchwork.sourceware.org/project/glibc/list/?series=28136 * Desirable this release? - Add clone3 support for multiple architectures (mips and arm missing) - Remove ia64-linux-gnu - Implement C23 <stdbit.h> Please update what is in the meantime done / obsolete / ..., ideally with links to the commits or bugs. What else should we add here that still needs to go into 2.39? - January 12-31, "hard ABI freeze" * Noncritical bug fixes. * No ABI changes without RM discussion. * High risk bug fixes should be discussed on the list. - February 1 * glibc 2.39 release If you have any comments or objections, please reply to the list. Cheers, Andreas -- Andreas K. Hüttel dilfridge@gentoo.org Gentoo Linux developer (council, comrel, toolchain, base-system, perl, libreoffice) https://wiki.gentoo.org/wiki/User:Dilfridge [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release 2024-01-01 13:18 Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release Andreas K. Huettel @ 2024-01-02 9:14 ` Florian Weimer 2024-01-02 9:21 ` autoconf 2.72 ? (Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release) Andreas K. Huettel ` (4 subsequent siblings) 5 siblings, 0 replies; 31+ messages in thread From: Florian Weimer @ 2024-01-02 9:14 UTC (permalink / raw) To: Andreas K. Huettel; +Cc: libc-alpha * Andreas K. Huettel: > - Implement C23 <stdbit.h> I plan to review this for real this week. ^ permalink raw reply [flat|nested] 31+ messages in thread
* autoconf 2.72 ? (Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release) 2024-01-01 13:18 Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release Andreas K. Huettel 2024-01-02 9:14 ` Florian Weimer @ 2024-01-02 9:21 ` Andreas K. Huettel 2024-01-02 10:27 ` Florian Weimer 2024-01-02 19:17 ` [PATCH, test conversion, RFC] Convert to autoconf 2.72 (no patches) Andreas K. Hüttel 2024-01-02 14:39 ` Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release Adhemerval Zanella Netto ` (3 subsequent siblings) 5 siblings, 2 replies; 31+ messages in thread From: Andreas K. Huettel @ 2024-01-02 9:21 UTC (permalink / raw) To: libc-alpha; +Cc: Andreas K. Huettel [-- Attachment #1: Type: text/plain, Size: 627 bytes --] Am Montag, 1. Januar 2024, 14:18:01 CET schrieb Andreas K. Huettel: > > What else should we add here that still needs to go into 2.39? > Given that it contains the fixes for recent C compilers, would updating to autoconf 2.72 (released in november) make sense? I admit this is rather fresh, but otoh some advance planning makes sense here. I can regenerate and prepare a patch, but would definitely appreciate more eyes on it then. -- Andreas K. Hüttel dilfridge@gentoo.org Gentoo Linux developer (council, comrel, toolchain, base-system, perl, libreoffice) https://wiki.gentoo.org/wiki/User:Dilfridge [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: autoconf 2.72 ? (Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release) 2024-01-02 9:21 ` autoconf 2.72 ? (Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release) Andreas K. Huettel @ 2024-01-02 10:27 ` Florian Weimer 2024-01-02 17:35 ` Paul Eggert 2024-01-02 19:17 ` [PATCH, test conversion, RFC] Convert to autoconf 2.72 (no patches) Andreas K. Hüttel 1 sibling, 1 reply; 31+ messages in thread From: Florian Weimer @ 2024-01-02 10:27 UTC (permalink / raw) To: Andreas K. Huettel; +Cc: libc-alpha * Andreas K. Huettel: > Am Montag, 1. Januar 2024, 14:18:01 CET schrieb Andreas K. Huettel: >> >> What else should we add here that still needs to go into 2.39? >> > > Given that it contains the fixes for recent C compilers, would updating > to autoconf 2.72 (released in november) make sense? > > I admit this is rather fresh, but otoh some advance planning makes sense here. > > I can regenerate and prepare a patch, but would definitely appreciate > more eyes on it then. Does it actually change the generated script much? Thanks, Florian ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: autoconf 2.72 ? (Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release) 2024-01-02 10:27 ` Florian Weimer @ 2024-01-02 17:35 ` Paul Eggert 0 siblings, 0 replies; 31+ messages in thread From: Paul Eggert @ 2024-01-02 17:35 UTC (permalink / raw) To: Florian Weimer, Andreas K. Huettel; +Cc: libc-alpha On 2024-01-02 02:27, Florian Weimer wrote: > Does it actually change the generated script much? I expect the main reason to change would be what Andreas mentioned, namely, that scripts generated by Autoconf 2.72 work with C2x compilers that do not accept old-style function definitions and declarations, whereas scripts generated by older Autoconf versions do not. This was the main reason that Autoconf 2.72 was created. If memory serves, this is not an issue for gcc -std=gnu2x, which still supports old-style functions as an extension; but it is an issue for recent-enough clang. ^ permalink raw reply [flat|nested] 31+ messages in thread
* [PATCH, test conversion, RFC] Convert to autoconf 2.72 (no patches) 2024-01-02 9:21 ` autoconf 2.72 ? (Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release) Andreas K. Huettel 2024-01-02 10:27 ` Florian Weimer @ 2024-01-02 19:17 ` Andreas K. Hüttel 2024-01-02 21:30 ` Florian Weimer 2024-01-10 18:37 ` Carlos O'Donell 1 sibling, 2 replies; 31+ messages in thread From: Andreas K. Hüttel @ 2024-01-02 19:17 UTC (permalink / raw) To: libc-alpha; +Cc: Andreas K. Huettel From: "Andreas K. Huettel" <dilfridge@gentoo.org> --- aclocal.m4 | 2 +- configure | 1305 ++++++++++------- manual/install.texi | 2 +- sysdeps/aarch64/configure | 155 +- sysdeps/arc/configure | 120 +- sysdeps/arm/configure | 134 +- sysdeps/hppa/configure | 7 +- sysdeps/i386/configure | 7 +- sysdeps/ieee754/ldbl-opt/configure | 12 +- sysdeps/loongarch/configure | 21 +- sysdeps/mach/configure | 229 +-- sysdeps/mach/hurd/configure | 12 +- sysdeps/mips/configure | 120 +- sysdeps/nios2/configure | 120 +- sysdeps/powerpc/powerpc32/fpu/configure | 14 +- sysdeps/powerpc/powerpc64/configure | 14 +- sysdeps/powerpc/powerpc64/le/configure | 55 +- .../powerpc64/le/fpu/multiarch/configure | 12 +- sysdeps/riscv/configure | 7 +- sysdeps/s390/configure | 103 +- sysdeps/s390/s390-64/configure | 14 +- sysdeps/sparc/sparc32/configure | 127 +- sysdeps/unix/sysv/linux/configure | 17 +- sysdeps/unix/sysv/linux/loongarch/configure | 112 +- sysdeps/unix/sysv/linux/mips/configure | 191 +-- sysdeps/unix/sysv/linux/powerpc/configure | 24 +- .../sysv/linux/powerpc/powerpc64/configure | 148 +- sysdeps/unix/sysv/linux/riscv/configure | 114 +- sysdeps/x86/configure | 35 +- sysdeps/x86_64/configure | 12 +- 30 files changed, 1730 insertions(+), 1515 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index a097d66a49..d8c613faf7 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -2,7 +2,7 @@ dnl We require that everyone use exactly the same Autoconf version so that dnl the internal functions defined and used by the main configure script dnl match those expected by the fragments. When changing this version, dnl install.texi also needs to be updated. -m4_define([GLIBC_AUTOCONF_VERSION], [2.71]) +m4_define([GLIBC_AUTOCONF_VERSION], [2.72]) m4_if(m4_defn([AC_AUTOCONF_VERSION]), GLIBC_AUTOCONF_VERSION, [], [m4_fatal(m4_flatten( Exactly version GLIBC_AUTOCONF_VERSION of Autoconf is required but you have diff --git a/configure b/configure index 59ff1e415d..3fdca4c78e 100755 --- a/configure +++ b/configure @@ -1,11 +1,11 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for GNU C Library (see version.h). +# Generated by GNU Autoconf 2.72 for GNU C Library (see version.h). # # Report bugs to <https://sourceware.org/bugzilla/>. # # -# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, # Inc. # # @@ -17,7 +17,6 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -26,12 +25,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi @@ -103,7 +103,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -133,15 +133,14 @@ case $- in # (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="as_nop=: -if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 + as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: @@ -149,12 +148,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else \$as_nop - case \`(set -o) 2>/dev/null\` in #( +else case e in #( + e) case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi " @@ -172,8 +172,9 @@ as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : -else \$as_nop - exitcode=1; echo positional parameters were not saved. +else case e in #( + e) exitcode=1; echo positional parameters were not saved. ;; +esac fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) @@ -186,14 +187,15 @@ test -x / || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes -else $as_nop - as_have_required=no +else case e in #( + e) as_have_required=no ;; +esac fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do @@ -226,12 +228,13 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +else case e in #( + e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes -fi +fi ;; +esac fi @@ -253,7 +256,7 @@ case $- in # (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi @@ -273,7 +276,8 @@ $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 -fi +fi ;; +esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} @@ -312,14 +316,6 @@ as_fn_exit () as_fn_set_status $1 exit $1 } # as_fn_exit -# as_fn_nop -# --------- -# Do nothing but, unlike ":", preserve the value of $?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop # as_fn_mkdir_p # ------------- @@ -388,11 +384,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -406,21 +403,14 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith -# as_fn_nop -# --------- -# Do nothing but, unlike ":", preserve the value of $?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- @@ -494,6 +484,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits /[$]LINENO/= ' <$as_myself | sed ' + t clear + :clear s/[$]LINENO.*/&-/ t lineno b @@ -542,7 +534,6 @@ esac as_echo='printf %s\n' as_echo_n='printf %s' - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -554,9 +545,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -581,10 +572,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated test -n "$DJDIR" || exec 7<&0 </dev/null @@ -933,7 +926,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -959,7 +952,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1172,7 +1165,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1188,7 +1181,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1218,8 +1211,8 @@ do | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" + -*) as_fn_error $? "unrecognized option: '$ac_option' +Try '$0 --help' for more information" ;; *=*) @@ -1227,7 +1220,7 @@ Try \`$0 --help' for more information" # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + as_fn_error $? "invalid variable name: '$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; @@ -1277,7 +1270,7 @@ do as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done -# There might be people who depend on the old broken behavior: `$host' +# There might be people who depend on the old broken behavior: '$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias @@ -1345,7 +1338,7 @@ if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` @@ -1373,7 +1366,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. +'configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1387,11 +1380,11 @@ Configuration: --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages + -q, --quiet, --silent do not print 'checking ...' messages --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' + -C, --config-cache alias for '--cache-file=config.cache' -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] + --srcdir=DIR find the sources in DIR [configure dir or '..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @@ -1399,10 +1392,10 @@ Installation directories: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +By default, 'make install' will install all the files in +'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify +an installation prefix other than '$ac_default_prefix' using '--prefix', +for instance '--prefix=\$HOME'. For better control, use the options below. @@ -1523,7 +1516,7 @@ Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags -Use these variables to override the choices made by `configure' or to help +Use these variables to override the choices made by 'configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to <https://sourceware.org/bugzilla/>. @@ -1593,9 +1586,9 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF GNU C Library configure (see version.h) -generated by GNU Autoconf 2.71 +generated by GNU Autoconf 2.72 -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1634,11 +1627,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1673,11 +1667,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1715,11 +1710,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -1758,11 +1754,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1800,11 +1797,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -1840,7 +1838,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GNU C Library $as_me (see version.h), which was -generated by GNU Autoconf 2.71. Invocation command line was +generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -2086,10 +2084,10 @@ esac printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi done @@ -2125,9 +2123,7 @@ struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; +static char *e (char **p, int i) { return p[i]; } @@ -2141,6 +2137,21 @@ static char *f (char * (*g) (char **, int), char **p, ...) return s; } +/* C89 style stringification. */ +#define noexpand_stringify(a) #a +const char *stringified = noexpand_stringify(arbitrary+token=sequence); + +/* C89 style token pasting. Exercises some of the corner cases that + e.g. old MSVC gets wrong, but not very hard. */ +#define noexpand_concat(a,b) a##b +#define expand_concat(a,b) noexpand_concat(a,b) +extern int vA; +extern int vbee; +#define aye A +#define bee B +int *pvA = &expand_concat(v,aye); +int *pvbee = &noexpand_concat(v,bee); + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated @@ -2168,16 +2179,19 @@ ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' -// Does the compiler advertise C99 conformance? +/* Does the compiler advertise C99 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif +// See if C++-style comments work. + #include <stdbool.h> extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); +extern void free (void *); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare @@ -2227,7 +2241,6 @@ typedef const char *ccp; static inline int test_restrict (ccp restrict text) { - // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) @@ -2293,6 +2306,8 @@ ac_c_conftest_c99_main=' ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; + // Work around memory leak warnings. + free (ia); // Check named initializers. struct named_init ni = { @@ -2314,7 +2329,7 @@ ac_c_conftest_c99_main=' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' -// Does the compiler advertise C11 conformance? +/* Does the compiler advertise C11 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif @@ -2713,8 +2728,9 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; +esac fi @@ -2742,12 +2758,12 @@ for ac_var in $ac_precious_vars; do eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -2756,18 +2772,18 @@ printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. @@ -2783,11 +2799,11 @@ printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi done if $ac_cache_corrupted; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## @@ -2816,9 +2832,10 @@ then : no) PKGVERSION= ;; *) PKGVERSION="($withval) " ;; esac -else $as_nop - PKGVERSION="(GNU libc) " - +else case e in #( + e) PKGVERSION="(GNU libc) " + ;; +esac fi PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'` @@ -2837,9 +2854,10 @@ then : *) BUGURL="$withval" ;; esac -else $as_nop - BUGURL="https://www.gnu.org/software/libc/bugs.html" - +else case e in #( + e) BUGURL="https://www.gnu.org/software/libc/bugs.html" + ;; +esac fi case ${BUGURL} in @@ -2892,15 +2910,16 @@ printf %s "checking build system type... " >&6; } if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_build_alias=$build_alias +else case e in #( + e) ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 printf "%s\n" "$ac_cv_build" >&6; } @@ -2927,14 +2946,15 @@ printf %s "checking host system type... " >&6; } if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "x$host_alias" = x; then +else case e in #( + e) if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 printf "%s\n" "$ac_cv_host" >&6; } @@ -2979,8 +2999,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3002,7 +3022,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -3024,8 +3045,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3047,7 +3068,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -3082,8 +3104,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3105,7 +3127,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -3127,8 +3150,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no @@ -3167,7 +3190,8 @@ if test $ac_prog_rejected = yes; then ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -3191,8 +3215,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3214,7 +3238,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -3240,8 +3265,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3263,7 +3288,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -3301,8 +3327,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3324,7 +3350,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -3346,8 +3373,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3369,7 +3396,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -3398,10 +3426,10 @@ fi fi -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 @@ -3434,8 +3462,8 @@ printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3467,16 +3495,18 @@ then : break;; esac done -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext +rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } @@ -3487,8 +3517,8 @@ printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3505,12 +3535,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } @@ -3528,8 +3560,8 @@ printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_c_werror_flag=$ac_c_werror_flag +else case e in #( + e) ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" @@ -3547,8 +3579,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes -else $as_nop - CFLAGS="" +else case e in #( + e) CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3563,8 +3595,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - ac_c_werror_flag=$ac_save_c_werror_flag +else case e in #( + e) ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3581,12 +3613,15 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag + ac_c_werror_flag=$ac_save_c_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } @@ -3613,8 +3648,8 @@ printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c11=no +else case e in #( + e) ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3631,25 +3666,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c11" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" + CC="$CC $ac_cv_prog_cc_c11" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 + ac_prog_cc_stdc=c11 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -3659,8 +3697,8 @@ printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c99=no +else case e in #( + e) ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3677,25 +3715,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c99" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } - CC="$CC $ac_cv_prog_cc_c99" + CC="$CC $ac_cv_prog_cc_c99" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 + ac_prog_cc_stdc=c99 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -3705,8 +3746,8 @@ printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c89=no +else case e in #( + e) ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3723,25 +3764,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c89" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } - CC="$CC $ac_cv_prog_cc_c89" + CC="$CC $ac_cv_prog_cc_c89" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 + ac_prog_cc_stdc=c89 ;; +esac fi fi @@ -3761,8 +3805,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_BUILD_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$BUILD_CC"; then +else case e in #( + e) if test -n "$BUILD_CC"; then ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3784,7 +3828,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi BUILD_CC=$ac_cv_prog_BUILD_CC if test -n "$BUILD_CC"; then @@ -3836,8 +3881,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in #( + e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3859,7 +3904,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -3885,8 +3931,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CXX"; then +else case e in #( + e) if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3908,7 +3954,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then @@ -3968,8 +4015,8 @@ printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3986,12 +4033,14 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } @@ -4009,8 +4058,8 @@ printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_cxx_werror_flag=$ac_cxx_werror_flag +else case e in #( + e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" @@ -4028,8 +4077,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes -else $as_nop - CXXFLAGS="" +else case e in #( + e) CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4044,8 +4093,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : -else $as_nop - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else case e in #( + e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4062,12 +4111,15 @@ if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag + ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } @@ -4094,8 +4146,8 @@ printf %s "checking for $CXX option to enable C++11 features... " >&6; } if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_cxx11=no +else case e in #( + e) ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4112,25 +4164,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx11" = x +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx11" + CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 - ac_prog_cxx_stdcxx=cxx11 + ac_prog_cxx_stdcxx=cxx11 ;; +esac fi fi if test x$ac_prog_cxx_stdcxx = xno @@ -4140,8 +4195,8 @@ printf %s "checking for $CXX option to enable C++98 features... " >&6; } if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_cxx98=no +else case e in #( + e) ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4158,25 +4213,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx98" = x +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx98" + CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 - ac_prog_cxx_stdcxx=cxx98 + ac_prog_cxx_stdcxx=cxx98 ;; +esac fi fi @@ -4193,8 +4251,8 @@ printf %s "checking whether $CXX can link programs... " >&6; } if test ${libc_cv_cxx_link_ok+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=cpp +else case e in #( + e) ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' @@ -4215,8 +4273,9 @@ _ACEOF if ac_fn_cxx_try_link "$LINENO" then : libc_cv_cxx_link_ok=yes -else $as_nop - libc_cv_cxx_link_ok=no +else case e in #( + e) libc_cv_cxx_link_ok=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -4239,8 +4298,9 @@ _ACEOF if ac_fn_cxx_try_link "$LINENO" then : -else $as_nop - libc_cv_cxx_link_ok=no +else case e in #( + e) libc_cv_cxx_link_ok=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -4250,7 +4310,8 @@ ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5 printf "%s\n" "$libc_cv_cxx_link_ok" >&6; } @@ -4316,8 +4377,9 @@ fi if test ${with_binutils+y} then : withval=$with_binutils; path_binutils=$withval -else $as_nop - path_binutils='' +else case e in #( + e) path_binutils='' ;; +esac fi @@ -4325,8 +4387,9 @@ fi if test ${with_selinux+y} then : withval=$with_selinux; with_selinux=$withval -else $as_nop - with_selinux=auto +else case e in #( + e) with_selinux=auto ;; +esac fi @@ -4335,8 +4398,9 @@ fi if test ${with_headers+y} then : withval=$with_headers; sysheaders=$withval -else $as_nop - sysheaders='' +else case e in #( + e) sysheaders='' ;; +esac fi @@ -4346,8 +4410,9 @@ fi if test ${with_nonshared_cflags+y} then : withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval -else $as_nop - extra_nonshared_cflags= +else case e in #( + e) extra_nonshared_cflags= ;; +esac fi @@ -4356,8 +4421,9 @@ fi if test ${with_rtld_early_cflags+y} then : withval=$with_rtld_early_cflags; rtld_early_cflags=$withval -else $as_nop - rtld_early_cflags= +else case e in #( + e) rtld_early_cflags= ;; +esac fi @@ -4367,8 +4433,9 @@ fi if test ${with_timeoutfactor+y} then : withval=$with_timeoutfactor; timeoutfactor=$withval -else $as_nop - timeoutfactor=1 +else case e in #( + e) timeoutfactor=1 ;; +esac fi printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h @@ -4378,8 +4445,9 @@ printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h if test ${enable_sanity_checks+y} then : enableval=$enable_sanity_checks; enable_sanity=$enableval -else $as_nop - enable_sanity=yes +else case e in #( + e) enable_sanity=yes ;; +esac fi @@ -4387,32 +4455,36 @@ fi if test ${enable_shared+y} then : enableval=$enable_shared; shared=$enableval -else $as_nop - shared=yes +else case e in #( + e) shared=yes ;; +esac fi # Check whether --enable-profile was given. if test ${enable_profile+y} then : enableval=$enable_profile; profile=$enableval -else $as_nop - profile=no +else case e in #( + e) profile=no ;; +esac fi # Check whether --enable-default-pie was given. if test ${enable_default_pie+y} then : enableval=$enable_default_pie; default_pie=$enableval -else $as_nop - default_pie=yes +else case e in #( + e) default_pie=yes ;; +esac fi # Check whether --enable-timezone-tools was given. if test ${enable_timezone_tools+y} then : enableval=$enable_timezone_tools; enable_timezone_tools=$enableval -else $as_nop - enable_timezone_tools=yes +else case e in #( + e) enable_timezone_tools=yes ;; +esac fi @@ -4421,8 +4493,9 @@ fi if test ${enable_hardcoded_path_in_tests+y} then : enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval -else $as_nop - hardcoded_path_in_tests=no +else case e in #( + e) hardcoded_path_in_tests=no ;; +esac fi @@ -4431,8 +4504,9 @@ fi if test ${enable_hidden_plt+y} then : enableval=$enable_hidden_plt; hidden=$enableval -else $as_nop - hidden=yes +else case e in #( + e) hidden=yes ;; +esac fi if test "x$hidden" = xno; then @@ -4444,8 +4518,9 @@ fi if test ${enable_bind_now+y} then : enableval=$enable_bind_now; bindnow=$enableval -else $as_nop - bindnow=no +else case e in #( + e) bindnow=no ;; +esac fi @@ -4458,8 +4533,9 @@ fi if test ${enable_stack_protector+y} then : enableval=$enable_stack_protector; enable_stack_protector=$enableval -else $as_nop - enable_stack_protector=no +else case e in #( + e) enable_stack_protector=no ;; +esac fi case "$enable_stack_protector" in @@ -4471,8 +4547,9 @@ esac if test ${enable_static_nss+y} then : enableval=$enable_static_nss; static_nss=$enableval -else $as_nop - static_nss=no +else case e in #( + e) static_nss=no ;; +esac fi if test x"$static_nss" = xyes || test x"$shared" = xno; then @@ -4485,8 +4562,9 @@ fi if test ${enable_force_install+y} then : enableval=$enable_force_install; force_install=$enableval -else $as_nop - force_install=yes +else case e in #( + e) force_install=yes ;; +esac fi @@ -4495,8 +4573,9 @@ fi if test ${enable_maintainer_mode+y} then : enableval=$enable_maintainer_mode; maintainer=$enableval -else $as_nop - maintainer=no +else case e in #( + e) maintainer=no ;; +esac fi @@ -4519,8 +4598,9 @@ fi if test ${enable_werror+y} then : enableval=$enable_werror; enable_werror=$enableval -else $as_nop - enable_werror=yes +else case e in #( + e) enable_werror=yes ;; +esac fi @@ -4529,8 +4609,9 @@ fi if test ${enable_multi_arch+y} then : enableval=$enable_multi_arch; multi_arch=$enableval -else $as_nop - multi_arch=default +else case e in #( + e) multi_arch=default ;; +esac fi @@ -4538,8 +4619,9 @@ fi if test ${enable_memory_tagging+y} then : enableval=$enable_memory_tagging; memory_tagging=$enableval -else $as_nop - memory_tagging=no +else case e in #( + e) memory_tagging=no ;; +esac fi if test "$memory_tagging" = yes; then @@ -4557,8 +4639,9 @@ fi if test ${enable_systemtap+y} then : enableval=$enable_systemtap; systemtap=$enableval -else $as_nop - systemtap=no +else case e in #( + e) systemtap=no ;; +esac fi if test "x$systemtap" != xno; then @@ -4568,8 +4651,8 @@ printf %s "checking for systemtap static probe support... " >&6; } if test ${libc_cv_sdt+y} then : printf %s "(cached) " >&6 -else $as_nop - old_CFLAGS="$CFLAGS" +else case e in #( + e) old_CFLAGS="$CFLAGS" CFLAGS="-std=gnu11 $CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4583,11 +4666,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_sdt=yes -else $as_nop - libc_cv_sdt=no +else case e in #( + e) libc_cv_sdt=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS="$old_CFLAGS" + CFLAGS="$old_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5 printf "%s\n" "$libc_cv_sdt" >&6; } @@ -4595,10 +4680,10 @@ printf "%s\n" "$libc_cv_sdt" >&6; } printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h elif test "x$systemtap" != xauto; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "systemtap support needs sys/sdt.h with asm support -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi fi @@ -4606,8 +4691,9 @@ fi if test ${enable_build_nscd+y} then : enableval=$enable_build_nscd; build_nscd=$enableval -else $as_nop - build_nscd=default +else case e in #( + e) build_nscd=default ;; +esac fi @@ -4617,8 +4703,9 @@ fi if test ${enable_nscd+y} then : enableval=$enable_nscd; use_nscd=$enableval -else $as_nop - use_nscd=yes +else case e in #( + e) use_nscd=yes ;; +esac fi @@ -4626,8 +4713,9 @@ fi if test ${enable_pt_chown+y} then : enableval=$enable_pt_chown; build_pt_chown=$enableval -else $as_nop - build_pt_chown=no +else case e in #( + e) build_pt_chown=no ;; +esac fi @@ -4652,8 +4740,9 @@ esac if test ${enable_mathvec+y} then : enableval=$enable_mathvec; build_mathvec=$enableval -else $as_nop - build_mathvec=notset +else case e in #( + e) build_mathvec=notset ;; +esac fi @@ -4675,8 +4764,9 @@ _ACEOF if ac_fn_c_try_cpp "$LINENO" then : libc_cv_compiler_default_cet=yes -else $as_nop - libc_cv_compiler_default_cet=no +else case e in #( + e) libc_cv_compiler_default_cet=no ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -4684,8 +4774,9 @@ rm -f conftest.err conftest.i conftest.$ac_ext if test ${enable_cet+y} then : enableval=$enable_cet; enable_cet=$enableval -else $as_nop - enable_cet=$libc_cv_compiler_default_cet +else case e in #( + e) enable_cet=$libc_cv_compiler_default_cet ;; +esac fi @@ -4693,8 +4784,9 @@ fi if test ${enable_scv+y} then : enableval=$enable_scv; use_scv=$enableval -else $as_nop - use_scv=yes +else case e in #( + e) use_scv=yes ;; +esac fi @@ -4708,8 +4800,9 @@ fi if test ${enable_fortify_source+y} then : enableval=$enable_fortify_source; enable_fortify_source=$enableval -else $as_nop - enable_fortify_source=no +else case e in #( + e) enable_fortify_source=no ;; +esac fi case "$enable_fortify_source" in @@ -4821,8 +4914,8 @@ if test -z "$INSTALL"; then if test ${ac_cv_path_install+y} then : printf %s "(cached) " >&6 -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS @@ -4876,7 +4969,8 @@ esac IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir - + ;; +esac fi if test ${ac_cv_path_install+y}; then INSTALL=$ac_cv_path_install @@ -4968,8 +5062,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LD"; then +else case e in #( + e) if test -n "$LD"; then ac_cv_prog_LD="$LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4991,7 +5085,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi LD=$ac_cv_prog_LD if test -n "$LD"; then @@ -5039,8 +5134,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LD"; then +else case e in #( + e) if test -n "$LD"; then ac_cv_prog_LD="$LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5062,7 +5157,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi LD=$ac_cv_prog_LD if test -n "$LD"; then @@ -5110,8 +5206,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LD"; then +else case e in #( + e) if test -n "$LD"; then ac_cv_prog_LD="$LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5133,7 +5229,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi LD=$ac_cv_prog_LD if test -n "$LD"; then @@ -5184,8 +5281,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MAKE+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MAKE"; then +else case e in #( + e) if test -n "$MAKE"; then ac_cv_prog_MAKE="$MAKE" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5207,7 +5304,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MAKE=$ac_cv_prog_MAKE if test -n "$MAKE"; then @@ -5253,8 +5351,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MSGFMT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MSGFMT"; then +else case e in #( + e) if test -n "$MSGFMT"; then ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5276,7 +5374,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MSGFMT=$ac_cv_prog_MSGFMT if test -n "$MSGFMT"; then @@ -5321,8 +5420,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MAKEINFO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MAKEINFO"; then +else case e in #( + e) if test -n "$MAKEINFO"; then ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5344,7 +5443,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MAKEINFO=$ac_cv_prog_MAKEINFO if test -n "$MAKEINFO"; then @@ -5389,8 +5489,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_SED+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$SED"; then +else case e in #( + e) if test -n "$SED"; then ac_cv_prog_SED="$SED" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5412,7 +5512,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi SED=$ac_cv_prog_SED if test -n "$SED"; then @@ -5457,8 +5558,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in #( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5480,7 +5581,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -5525,8 +5627,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_BISON+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$BISON"; then +else case e in #( + e) if test -n "$BISON"; then ac_cv_prog_BISON="$BISON" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5548,7 +5650,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi BISON=$ac_cv_prog_BISON if test -n "$BISON"; then @@ -5590,8 +5693,8 @@ printf %s "checking if $CC is sufficient to build libc... " >&6; } if test ${libc_cv_compiler_ok+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5609,10 +5712,12 @@ _ACEOF if ac_fn_c_try_cpp "$LINENO" then : libc_cv_compiler_ok=yes -else $as_nop - libc_cv_compiler_ok=no +else case e in #( + e) libc_cv_compiler_ok=no ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5 printf "%s\n" "$libc_cv_compiler_ok" >&6; } @@ -5631,8 +5736,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AUTOCONF+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AUTOCONF"; then +else case e in #( + e) if test -n "$AUTOCONF"; then ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5654,7 +5759,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AUTOCONF=$ac_cv_prog_AUTOCONF if test -n "$AUTOCONF"; then @@ -5678,12 +5784,13 @@ printf %s "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; } if test ${libc_cv_autoconf_works+y} then : printf %s "(cached) " >&6 -else $as_nop - if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then +else case e in #( + e) if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then libc_cv_autoconf_works=yes else libc_cv_autoconf_works=no - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5 printf "%s\n" "$libc_cv_autoconf_works" >&6; } @@ -5707,8 +5814,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_PYTHON_PROG+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$PYTHON_PROG"; then +else case e in #( + e) if test -n "$PYTHON_PROG"; then ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5730,7 +5837,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi PYTHON_PROG=$ac_cv_prog_PYTHON_PROG if test -n "$PYTHON_PROG"; then @@ -5789,8 +5897,8 @@ printf %s "checking for use of fpu sysdeps directories... " >&6; } if test ${libc_cv_with_fp+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF #if $with_fp_cond int dummy; #else @@ -5802,7 +5910,8 @@ if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \ 1>&5 2>&5 ; then libc_cv_with_fp=yes fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5 printf "%s\n" "$libc_cv_with_fp" >&6; } @@ -5813,8 +5922,8 @@ printf %s "checking for -fstack-protector... " >&6; } if test ${libc_cv_ssp+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -5822,10 +5931,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_ssp=yes -else $as_nop - libc_cv_ssp=no +else case e in #( + e) libc_cv_ssp=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5 printf "%s\n" "$libc_cv_ssp" >&6; } @@ -5835,8 +5946,8 @@ printf %s "checking for -fstack-protector-strong... " >&6; } if test ${libc_cv_ssp_strong+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -5844,10 +5955,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_ssp_strong=yes -else $as_nop - libc_cv_ssp_strong=no +else case e in #( + e) libc_cv_ssp_strong=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5 printf "%s\n" "$libc_cv_ssp_strong" >&6; } @@ -5857,8 +5970,8 @@ printf %s "checking for -fstack-protector-all... " >&6; } if test ${libc_cv_ssp_all+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -5866,10 +5979,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_ssp_all=yes -else $as_nop - libc_cv_ssp_all=no +else case e in #( + e) libc_cv_ssp_all=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5 printf "%s\n" "$libc_cv_ssp_all" >&6; } @@ -5919,8 +6034,8 @@ printf %s "checking for assembler and linker STT_GNU_IFUNC support... " >&6; } if test ${libc_cv_ld_gnu_indirect_function+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.S <<EOF +else case e in #( + e) cat > conftest.S <<EOF .type foo,%gnu_indirect_function foo: .globl _start @@ -5944,7 +6059,8 @@ if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ libc_cv_ld_gnu_indirect_function=yes } fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5 printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; } @@ -5955,8 +6071,8 @@ printf %s "checking for gcc attribute ifunc support... " >&6; } if test ${libc_cv_gcc_indirect_function+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF extern int func (int); int used_func (int a) { @@ -5975,7 +6091,8 @@ if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \ libc_cv_gcc_indirect_function=yes fi fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5 printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; } @@ -5987,8 +6104,8 @@ printf %s "checking whether the linker supports textrels along with ifunc... " > if test ${libc_cv_textrel_ifunc+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.S <<EOF +else case e in #( + e) cat > conftest.S <<EOF .type foo,%gnu_indirect_function foo: .globl _start @@ -6021,7 +6138,8 @@ if test $libc_cv_ld_gnu_indirect_function = yes; then libc_cv_textrel_ifunc=yes fi fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5 printf "%s\n" "$libc_cv_textrel_ifunc" >&6; } @@ -6033,8 +6151,8 @@ printf %s "checking for GNU attribute retain support... " >&6; } if test ${libc_cv_gnu_retain+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF static int var __attribute__ ((used, retain, section ("__libc_atexit"))); EOF libc_cv_gnu_retain=no @@ -6042,7 +6160,8 @@ if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \ 2>&5 ; then libc_cv_gnu_retain=yes fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5 printf "%s\n" "$libc_cv_gnu_retain" >&6; } @@ -6059,8 +6178,8 @@ printf %s "checking if compiler warns about alias for function with incompatible if test ${libc_cv_gcc_incompatible_alias+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF int __redirect_foo (const void *s, int c); __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo"); @@ -6075,7 +6194,8 @@ libc_cv_gcc_incompatible_alias=yes if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then libc_cv_gcc_incompatible_alias=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5 printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; } @@ -6387,8 +6507,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_BASH_SHELL+y} then : printf %s "(cached) " >&6 -else $as_nop - case $BASH_SHELL in +else case e in #( + e) case $BASH_SHELL in [\\/]* | ?:[\\/]*) ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path. ;; @@ -6414,6 +6534,7 @@ IFS=$as_save_IFS test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no" ;; +esac ;; esac fi BASH_SHELL=$ac_cv_path_BASH_SHELL @@ -6434,8 +6555,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PERL+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PERL in +else case e in #( + e) case $PERL in [\\/]* | ?:[\\/]*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; @@ -6461,6 +6582,7 @@ IFS=$as_save_IFS test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" ;; +esac ;; esac fi PERL=$ac_cv_path_PERL @@ -6484,8 +6606,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_INSTALL_INFO+y} then : printf %s "(cached) " >&6 -else $as_nop - case $INSTALL_INFO in +else case e in #( + e) case $INSTALL_INFO in [\\/]* | ?:[\\/]*) ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. ;; @@ -6512,6 +6634,7 @@ IFS=$as_save_IFS test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" ;; +esac ;; esac fi INSTALL_INFO=$ac_cv_path_INSTALL_INFO @@ -6530,8 +6653,8 @@ printf %s "checking for .set assembler directive... " >&6; } if test ${libc_cv_asm_set_directive+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<EOF +else case e in #( + e) cat > conftest.s <<EOF .text foo: .set glibc_conftest_frobozz,foo @@ -6550,7 +6673,8 @@ if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ else libc_cv_asm_set_directive=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5 printf "%s\n" "$libc_cv_asm_set_directive" >&6; } @@ -6564,8 +6688,8 @@ printf %s "checking linker support for protected data symbol... " >&6; } if test ${libc_cv_protected_data+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF int bar __attribute__ ((visibility ("protected"))) = 1; EOF libc_cv_protected_data=no @@ -6589,7 +6713,8 @@ EOF fi fi rm -f conftest.* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5 printf "%s\n" "$libc_cv_protected_data" >&6; } @@ -6600,8 +6725,8 @@ printf %s "checking linker support for INSERT in linker script... " >&6; } if test ${libc_cv_insert+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF int __attribute__ ((section(".bar"))) bar = 0x12345678; int test (void) { return bar; } EOF @@ -6622,7 +6747,8 @@ EOF libc_cv_insert=yes fi rm -f conftest.* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5 printf "%s\n" "$libc_cv_insert" >&6; } @@ -6633,8 +6759,8 @@ printf %s "checking for broken __attribute__((alias()))... " >&6; } if test ${libc_cv_broken_alias_attribute+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF extern int foo (int x) __asm ("xyzzy"); int bar (int x) { return x; } extern __typeof (bar) foo __attribute ((weak, alias ("bar"))); @@ -6655,7 +6781,8 @@ EOF fi fi rm -f conftest.c conftest.s - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5 printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; } @@ -6668,15 +6795,16 @@ printf %s "checking whether to put _rtld_local into .sdata section... " >&6; } if test ${libc_cv_have_sdata_section+y} then : printf %s "(cached) " >&6 -else $as_nop - echo "int i;" > conftest.c +else case e in #( + e) echo "int i;" > conftest.c libc_cv_have_sdata_section=no if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \ | grep '\.sdata' >/dev/null; then libc_cv_have_sdata_section=yes fi rm -f conftest.c conftest.so - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5 printf "%s\n" "$libc_cv_have_sdata_section" >&6; } @@ -6690,8 +6818,8 @@ printf %s "checking for libunwind-support in compiler... " >&6; } if test ${libc_cv_cc_with_libunwind+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat > conftest.c <<EOF int main (void) { return 0; } EOF @@ -6701,7 +6829,8 @@ EOF else libc_cv_cc_with_libunwind=no fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5 printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; } @@ -6717,8 +6846,8 @@ printf %s "checking whether --noexecstack is desirable for .S files... " >&6; } if test ${libc_cv_as_noexecstack+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF void foo (void) { } EOF if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS @@ -6741,7 +6870,8 @@ then else libc_cv_as_noexecstack=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5 printf "%s\n" "$libc_cv_as_noexecstack" >&6; } @@ -6929,8 +7059,8 @@ printf %s "checking for -static-pie... " >&6; } if test ${libc_cv_static_pie+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -6938,10 +7068,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_static_pie=yes -else $as_nop - libc_cv_static_pie=no +else case e in #( + e) libc_cv_static_pie=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5 printf "%s\n" "$libc_cv_static_pie" >&6; } @@ -6953,8 +7085,8 @@ printf %s "checking for -fpie... " >&6; } if test ${libc_cv_fpie+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -6962,10 +7094,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_fpie=yes -else $as_nop - libc_cv_fpie=no +else case e in #( + e) libc_cv_fpie=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5 printf "%s\n" "$libc_cv_fpie" >&6; } @@ -6977,8 +7111,8 @@ printf %s "checking for GLOB_DAT reloc... " >&6; } if test ${libc_cv_has_glob_dat+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF extern int mumble; int foo (void) { return mumble; } EOF @@ -7000,7 +7134,8 @@ then else libc_cv_has_glob_dat=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5 printf "%s\n" "$libc_cv_has_glob_dat" >&6; } @@ -7011,8 +7146,8 @@ printf %s "checking for -mtls-dialect=gnu2... " >&6; } if test ${libc_cv_mtls_dialect_gnu2+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF __thread int i; void foo (void) { @@ -7031,7 +7166,8 @@ then else libc_cv_mtls_dialect_gnu2=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5 printf "%s\n" "$libc_cv_mtls_dialect_gnu2" >&6; } @@ -7044,8 +7180,8 @@ printf %s "checking if -Wno-ignored-attributes is required for aliases... " >&6; if test ${libc_cv_wno_ignored_attributes+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF void __foo (void) { } @@ -7062,7 +7198,8 @@ if ! { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c' then libc_cv_wno_ignored_attributes="-Wno-ignored-attributes" fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5 printf "%s\n" "$libc_cv_wno_ignored_attributes" >&6; } @@ -7074,8 +7211,8 @@ printf %s "checking whether cc puts quotes around section names... " >&6; } if test ${libc_cv_have_section_quotes+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF static const int foo __attribute__ ((section ("bar"))) = 1; EOF @@ -7089,7 +7226,8 @@ EOF libc_cv_have_section_quotes=unknown fi rm -f conftest.{c,s} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5 printf "%s\n" "$libc_cv_have_section_quotes" >&6; } @@ -7103,8 +7241,8 @@ printf %s "checking for __builtin_memset... " >&6; } if test ${libc_cv_gcc_builtin_memset+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<\EOF +else case e in #( + e) cat > conftest.c <<\EOF void zero (void *x) { __builtin_memset (x, 0, 1000); @@ -7121,7 +7259,8 @@ then else libc_cv_gcc_builtin_memset=yes fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5 printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; } @@ -7135,8 +7274,8 @@ printf %s "checking for redirection of built-in functions... " >&6; } if test ${libc_cv_gcc_builtin_redirection+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<\EOF +else case e in #( + e) cat > conftest.c <<\EOF extern char *strstr (const char *, const char *) __asm ("my_strstr"); char *foo (const char *a, const char *b) { @@ -7154,7 +7293,8 @@ then else libc_cv_gcc_builtin_redirection=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5 printf "%s\n" "$libc_cv_gcc_builtin_redirection" >&6; } @@ -7167,8 +7307,8 @@ printf %s "checking for compiler option to disable generation of FMA instruction if test ${libc_cv_cc_nofma+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_cc_nofma= +else case e in #( + e) libc_cv_cc_nofma= for opt in -ffp-contract=off -mno-fused-madd; do if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -7179,7 +7319,8 @@ for opt in -ffp-contract=off -mno-fused-madd; do then : libc_cv_cc_nofma=$opt; break fi -done +done ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5 printf "%s\n" "$libc_cv_cc_nofma" >&6; } @@ -7191,8 +7332,8 @@ printf %s "checking for compiler option for CPU variant... " >&6; } if test ${libc_cv_cc_submachine+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_cc_submachine=no +else case e in #( + e) libc_cv_cc_submachine=no for opt in "-march=$submachine" "-mcpu=$submachine"; do if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -7205,7 +7346,8 @@ then : libc_cv_cc_submachine="$opt" break fi - done + done ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5 printf "%s\n" "$libc_cv_cc_submachine" >&6; } @@ -7220,8 +7362,8 @@ printf %s "checking for compiler option that -fsignaling-nans... " >&6; } if test ${libc_cv_cc_signaling_nans+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -7229,10 +7371,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_cc_signaling_nans=-fsignaling-nans -else $as_nop - libc_cv_cc_signaling_nans= +else case e in #( + e) libc_cv_cc_signaling_nans= ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5 printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; } @@ -7246,8 +7390,8 @@ __attribute__ ((__optimize__))... " >&6; } if test ${libc_cv_cc_loop_to_function+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF void __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns"))) foo (void) {} @@ -7262,7 +7406,8 @@ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c' then libc_cv_cc_loop_to_function=yes fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5 printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; } @@ -7295,8 +7440,9 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : LIBGD=yes -else $as_nop - LIBGD=no +else case e in #( + e) LIBGD=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -7320,16 +7466,22 @@ printf %s "checking for is_selinux_enabled in -lselinux... " >&6; } if test ${ac_cv_lib_selinux_is_selinux_enabled+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lselinux $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char is_selinux_enabled (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char is_selinux_enabled (void); int main (void) { @@ -7341,20 +7493,23 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_selinux_is_selinux_enabled=yes -else $as_nop - ac_cv_lib_selinux_is_selinux_enabled=no +else case e in #( + e) ac_cv_lib_selinux_is_selinux_enabled=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes then : have_selinux=yes -else $as_nop - have_selinux=no +else case e in #( + e) have_selinux=no ;; +esac fi if test x$with_selinux = xyes ; then @@ -7375,16 +7530,22 @@ printf %s "checking for audit_log_user_avc_message in -laudit... " >&6; } if test ${ac_cv_lib_audit_audit_log_user_avc_message+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-laudit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char audit_log_user_avc_message (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char audit_log_user_avc_message (void); int main (void) { @@ -7396,20 +7557,23 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_audit_audit_log_user_avc_message=yes -else $as_nop - ac_cv_lib_audit_audit_log_user_avc_message=no +else case e in #( + e) ac_cv_lib_audit_audit_log_user_avc_message=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5 printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; } if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes then : have_libaudit=yes -else $as_nop - have_libaudit=no +else case e in #( + e) have_libaudit=no ;; +esac fi if test "x$have_libaudit" = xyes; then @@ -7425,16 +7589,22 @@ printf %s "checking for cap_init in -lcap... " >&6; } if test ${ac_cv_lib_cap_cap_init+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcap $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char cap_init (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char cap_init (void); int main (void) { @@ -7446,20 +7616,23 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_cap_cap_init=yes -else $as_nop - ac_cv_lib_cap_cap_init=no +else case e in #( + e) ac_cv_lib_cap_cap_init=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5 printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; } if test "x$ac_cv_lib_cap_cap_init" = xyes then : have_libcap=yes -else $as_nop - have_libcap=no +else case e in #( + e) have_libcap=no ;; +esac fi if test "x$have_libcap" = xyes; then @@ -7479,8 +7652,8 @@ printf %s "checking for maximum supported _FORTIFY_SOURCE level... " >&6; } if test ${libc_cv_supported_fortify_source+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7495,12 +7668,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : libc_cv_supported_fortify_source=3 -else $as_nop - libc_cv_supported_fortify_source=2 +else case e in #( + e) libc_cv_supported_fortify_source=2 ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5 printf "%s\n" "$libc_cv_supported_fortify_source" >&6; } @@ -7514,8 +7689,9 @@ case $enable_fortify_source in #( if test $libc_cv_supported_fortify_source = 3 then : libc_cv_fortify_source=yes -else $as_nop - as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 ;; +esac fi ;; #( *) : libc_cv_fortify_source=no ;; @@ -7539,8 +7715,8 @@ printf %s "checking whether the assembler requires one version per symbol... " > if test ${libc_cv_symver_needs_alias+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<EOF +else case e in #( + e) cat > conftest.s <<EOF .text testfunc: .globl testfunc @@ -7554,7 +7730,8 @@ EOF libc_cv_symver_needs_alias=yes fi rm conftest.* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5 printf "%s\n" "$libc_cv_symver_needs_alias" >&6; } @@ -7568,8 +7745,8 @@ printf %s "checking for __builtin_trap with no external dependencies... " >&6; } if test ${libc_cv_builtin_trap+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_builtin_trap=no +else case e in #( + e) libc_cv_builtin_trap=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7594,7 +7771,8 @@ if test -z "$libc_undefs"; then libc_cv_builtin_trap=yes fi fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5 printf "%s\n" "$libc_cv_builtin_trap" >&6; } @@ -7615,8 +7793,8 @@ printf %s "checking whether the C++ compiler supports thread_local... " >&6; } if test ${libc_cv_cxx_thread_local+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) old_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -std=gnu++11" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -7642,12 +7820,14 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : libc_cv_cxx_thread_local=yes -else $as_nop - libc_cv_cxx_thread_local=no +else case e in #( + e) libc_cv_cxx_thread_local=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS="$old_CXXFLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5 printf "%s\n" "$libc_cv_cxx_thread_local" >&6; } @@ -7750,8 +7930,8 @@ printf %s "checking whether -fPIC is default... " >&6; } if test ${libc_cv_pic_default+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_pic_default=yes +else case e in #( + e) libc_cv_pic_default=yes cat > conftest.c <<EOF #if defined __PIC__ || defined __pic__ || defined PIC || defined pic # error PIC is default. @@ -7760,7 +7940,8 @@ EOF if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then libc_cv_pic_default=no fi -rm -f conftest.* +rm -f conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5 printf "%s\n" "$libc_cv_pic_default" >&6; } @@ -7772,8 +7953,8 @@ printf %s "checking whether -fPIE is default... " >&6; } if test ${libc_cv_cc_pie_default+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_cc_pie_default=yes +else case e in #( + e) libc_cv_cc_pie_default=yes cat > conftest.c <<EOF #if defined __PIE__ || defined __pie__ || defined PIE || defined pie # error PIE is default. @@ -7782,7 +7963,8 @@ EOF if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then libc_cv_cc_pie_default=no fi -rm -f conftest.* +rm -f conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5 printf "%s\n" "$libc_cv_cc_pie_default" >&6; } @@ -7800,8 +7982,9 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_pie_supported=yes -else $as_nop - libc_cv_pie_supported=no +else case e in #( + e) libc_cv_pie_supported=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5 @@ -7830,8 +8013,9 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_static_pie_supported=yes -else $as_nop - libc_cv_static_pie_supported=no +else case e in #( + e) libc_cv_static_pie_supported=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi @@ -7889,8 +8073,8 @@ cat >confcache <<\_ACEOF # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the +# 'ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF @@ -7920,14 +8104,14 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote + # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) - # `set' quotes correctly as required by POSIX, so do not add quotes. + # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | @@ -8017,7 +8201,6 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -8026,12 +8209,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi @@ -8103,7 +8287,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -8132,7 +8316,6 @@ as_fn_error () } # as_fn_error - # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -8172,11 +8355,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -8190,11 +8374,12 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -8277,9 +8462,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -8360,10 +8545,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 @@ -8379,7 +8566,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # values after options handling. ac_log=" This file was extended by GNU C Library $as_me (see version.h), which was -generated by GNU Autoconf 2.71. Invocation command line was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -8411,7 +8598,7 @@ _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions +'$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. @@ -8449,10 +8636,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ GNU C Library config.status (see version.h) -configured by $0, generated by GNU Autoconf 2.71, +configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -8512,8 +8699,8 @@ do ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; + as_fn_error $? "ambiguous option: '$1' +Try '$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ @@ -8521,8 +8708,8 @@ Try \`$0 --help' for more information.";; ac_cs_silent=: ;; # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; + -*) as_fn_error $? "unrecognized option: '$1' +Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; @@ -8580,7 +8767,7 @@ do "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -8600,7 +8787,7 @@ fi # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. +# after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= @@ -8624,7 +8811,7 @@ ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. +# This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then @@ -8782,13 +8969,13 @@ fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. +# This happens for instance with './config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF -# Transform confdefs.h into an awk script `defines.awk', embedded as +# Transform confdefs.h into an awk script 'defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. @@ -8898,7 +9085,7 @@ do esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -8920,19 +9107,19 @@ do -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. + # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done - # Let's still pretend it is `configure' which instantiates (i.e., don't + # Let's still pretend it is 'configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` @@ -9060,7 +9247,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 esac _ACEOF -# Neutralize VPATH when `$srcdir' = `.'. +# Neutralize VPATH when '$srcdir' = '.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -9090,9 +9277,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" diff --git a/manual/install.texi b/manual/install.texi index ac5310731b..7a27974abc 100644 --- a/manual/install.texi +++ b/manual/install.texi @@ -647,7 +647,7 @@ If you change any of the @file{configure.ac} files you will also need @itemize @bullet @item -GNU @code{autoconf} 2.71 (exactly) +GNU @code{autoconf} 2.72 (exactly) @end itemize @noindent diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure index ca57edce47..90e5c18757 100644 --- a/sysdeps/aarch64/configure +++ b/sysdeps/aarch64/configure @@ -14,14 +14,14 @@ printf "%s\n" "#define SUPPORT_STATIC_PIE 1" >>confdefs.h # the dynamic linker via %ifdef. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -35,13 +35,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -50,14 +51,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -65,35 +66,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -107,13 +97,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -122,14 +113,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -137,32 +128,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 printf %s "checking for big endian... " >&6; } if test ${libc_cv_aarch64_be+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __AARCH64EB__ yes @@ -170,14 +162,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_aarch64_be=yes -else $as_nop - libc_cv_aarch64_be=no +else case e in #( + e) libc_cv_aarch64_be=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_be" >&5 printf "%s\n" "$libc_cv_aarch64_be" >&6; } @@ -199,8 +193,8 @@ printf %s "checking for BTI support... " >&6; } if test ${libc_cv_aarch64_bti+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF void foo (void) { } EOF libc_cv_aarch64_bti=no @@ -225,7 +219,8 @@ EOF then libc_cv_aarch64_bti=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_bti" >&5 printf "%s\n" "$libc_cv_aarch64_bti" >&6; } @@ -246,8 +241,8 @@ printf %s "checking if pac-ret is enabled... " >&6; } if test ${libc_cv_aarch64_pac_ret+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF int bar (void); int foo (void) { return bar () + 1; } EOF @@ -267,7 +262,8 @@ EOF then libc_cv_aarch64_pac_ret=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_pac_ret" >&5 printf "%s\n" "$libc_cv_aarch64_pac_ret" >&6; } @@ -282,8 +278,8 @@ printf %s "checking for variant PCS support... " >&6; } if test ${libc_cv_aarch64_variant_pcs+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.S <<EOF +else case e in #( + e) cat > conftest.S <<EOF .global foo .type foo, %function .variant_pcs foo @@ -310,7 +306,8 @@ EOF then libc_cv_aarch64_variant_pcs=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_variant_pcs" >&5 printf "%s\n" "$libc_cv_aarch64_variant_pcs" >&6; } @@ -323,8 +320,8 @@ printf %s "checking for SVE support in assembler... " >&6; } if test ${libc_cv_aarch64_sve_asm+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<\EOF +else case e in #( + e) cat > conftest.s <<\EOF ptrue p0.b EOF if { ac_try='${CC-cc} -c -march=armv8.2-a+sve conftest.s 1>&5' @@ -337,7 +334,8 @@ if { ac_try='${CC-cc} -c -march=armv8.2-a+sve conftest.s 1>&5' else libc_cv_aarch64_sve_asm=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_sve_asm" >&5 printf "%s\n" "$libc_cv_aarch64_sve_asm" >&6; } @@ -356,8 +354,8 @@ printf %s "checking for availability of SVE ACLE... " >&6; } if test ${libc_cv_aarch64_sve_acle+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF #include <arm_sve.h> EOF if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fsyntax-only -ffreestanding conftest.c' @@ -370,7 +368,8 @@ EOF else libc_cv_aarch64_sve_acle=no fi - rm conftest.c + rm conftest.c ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_sve_acle" >&5 printf "%s\n" "$libc_cv_aarch64_sve_acle" >&6; } diff --git a/sysdeps/arc/configure b/sysdeps/arc/configure index 7b27e26490..08e4f23f89 100644 --- a/sysdeps/arc/configure +++ b/sysdeps/arc/configure @@ -13,14 +13,14 @@ printf "%s\n" "#define ASM_LINE_SEP $libc_cv_asm_line_sep" >>confdefs.h # For big endian ABI, generate a symbol for selecting right dynamic linker -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -34,13 +34,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -49,14 +50,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -64,35 +65,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -106,13 +96,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -121,14 +112,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -136,32 +127,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 printf %s "checking for big endian... " >&6; } if test ${libc_cv_arc_be+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __BIG_ENDIAN__ yes @@ -169,14 +161,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_arc_be=yes -else $as_nop - libc_cv_arc_be=no +else case e in #( + e) libc_cv_arc_be=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arc_be" >&5 printf "%s\n" "$libc_cv_arc_be" >&6; } diff --git a/sysdeps/arm/configure b/sysdeps/arm/configure index 35e2918922..4cd0152be5 100644 --- a/sysdeps/arm/configure +++ b/sysdeps/arm/configure @@ -10,14 +10,14 @@ # the dynamic linker via %ifdef. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -31,13 +31,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -46,14 +47,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -61,35 +62,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -103,13 +93,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -118,14 +109,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -133,32 +124,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the ARM hard-float ABI" >&5 printf %s "checking whether the compiler is using the ARM hard-float ABI... " >&6; } if test ${libc_cv_arm_pcs_vfp+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __ARM_PCS_VFP yes @@ -166,14 +158,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_arm_pcs_vfp=yes -else $as_nop - libc_cv_arm_pcs_vfp=no +else case e in #( + e) libc_cv_arm_pcs_vfp=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcs_vfp" >&5 printf "%s\n" "$libc_cv_arm_pcs_vfp" >&6; } @@ -192,8 +186,8 @@ printf %s "checking whether PC-relative relocs in movw/movt work properly... " > if test ${libc_cv_arm_pcrel_movw+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat > conftest.s <<\EOF .syntax unified .arm @@ -227,7 +221,8 @@ LC_ALL=C $READELF -dr conftest.so > conftest.dr 2>&5 && grep -F 'TEXTREL R_ARM_NONE' conftest.dr > /dev/null || libc_cv_arm_pcrel_movw=yes } -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcrel_movw" >&5 printf "%s\n" "$libc_cv_arm_pcrel_movw" >&6; } @@ -244,8 +239,8 @@ printf %s "checking whether TPOFF relocs with addends are assembled correctly... if test ${libc_cv_arm_tpoff_addend+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat > conftest.s <<\EOF .syntax unified .arm @@ -274,7 +269,8 @@ $1 ~ /0x0+/ && $2 ~ /[0-9a-f]+/ { END { exit(result) } ' conftest.x 2>&5 && libc_cv_arm_tpoff_addend=yes } -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_tpoff_addend" >&5 printf "%s\n" "$libc_cv_arm_tpoff_addend" >&6; } diff --git a/sysdeps/hppa/configure b/sysdeps/hppa/configure index cf5f9e5d7e..0390946d88 100644 --- a/sysdeps/hppa/configure +++ b/sysdeps/hppa/configure @@ -5,8 +5,8 @@ printf %s "checking for assembler line separator... " >&6; } if test ${libc_cv_asm_line_sep+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<EOF +else case e in #( + e) cat > conftest.s <<EOF nop ; is_old_puffin EOF if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' @@ -24,7 +24,8 @@ else fi libc_cv_asm_line_sep=';' fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_line_sep" >&5 printf "%s\n" "$libc_cv_asm_line_sep" >&6; } diff --git a/sysdeps/i386/configure b/sysdeps/i386/configure index f5c3a281ac..012084b945 100644 --- a/sysdeps/i386/configure +++ b/sysdeps/i386/configure @@ -56,8 +56,8 @@ printf %s "checking for linker static PIE support... " >&6; } if test ${libc_cv_ld_static_pie+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<\EOF +else case e in #( + e) cat > conftest.s <<\EOF .text .global _start _start: @@ -75,7 +75,8 @@ EOF libc_cv_ld_static_pie=yes fi fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_static_pie" >&5 printf "%s\n" "$libc_cv_ld_static_pie" >&6; } diff --git a/sysdeps/ieee754/ldbl-opt/configure b/sysdeps/ieee754/ldbl-opt/configure index 68d8d7b465..bc6552da0b 100644 --- a/sysdeps/ieee754/ldbl-opt/configure +++ b/sysdeps/ieee754/ldbl-opt/configure @@ -7,8 +7,8 @@ printf %s "checking whether $CC $CFLAGS supports -mlong-double-128... " >&6; } if test ${libc_cv_mlong_double_128+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mlong-double-128" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28,11 +28,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mlong_double_128=yes -else $as_nop - libc_cv_mlong_double_128=no +else case e in #( + e) libc_cv_mlong_double_128=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -CFLAGS="$save_CFLAGS" +CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mlong_double_128" >&5 printf "%s\n" "$libc_cv_mlong_double_128" >&6; } diff --git a/sysdeps/loongarch/configure b/sysdeps/loongarch/configure index 30b60d1983..133e433f48 100644 --- a/sysdeps/loongarch/configure +++ b/sysdeps/loongarch/configure @@ -9,8 +9,8 @@ printf %s "checking if ${CC-cc} is sufficient to build static PIE on LoongArch.. if test ${libc_cv_static_pie_on_loongarch+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat > conftest.S <<\EOF .global _start .type _start, @function @@ -48,7 +48,8 @@ EOF then libc_cv_static_pie_on_loongarch=yes fi - rm -rf conftest* + rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_on_loongarch" >&5 printf "%s\n" "$libc_cv_static_pie_on_loongarch" >&6; } @@ -64,8 +65,8 @@ printf %s "checking whether $CC supports option -mcmodel=medium... " >&6; } if test ${libc_cv_loongarch_cmodel_medium+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) if { ac_try='${CC-cc} -c $CFLAGS -mcmodel=medium /dev/null 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 @@ -75,7 +76,8 @@ else $as_nop libc_cv_loongarch_cmodel_medium=yes else libc_cv_loongarch_cmodel_medium=no - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_cmodel_medium" >&5 printf "%s\n" "$libc_cv_loongarch_cmodel_medium" >&6; } @@ -88,8 +90,8 @@ printf %s "checking for vector support in assembler... " >&6; } if test ${libc_cv_loongarch_vec_asm+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<\EOF +else case e in #( + e) cat > conftest.s <<\EOF vld $vr0, $sp, 0 EOF if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest 1>&5' @@ -102,7 +104,8 @@ if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest 1>&5' else libc_cv_loongarch_vec_asm=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_vec_asm" >&5 printf "%s\n" "$libc_cv_loongarch_vec_asm" >&6; } diff --git a/sysdeps/mach/configure b/sysdeps/mach/configure index f15160d0d8..5779efd1ef 100644 --- a/sysdeps/mach/configure +++ b/sysdeps/mach/configure @@ -11,18 +11,20 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -40,8 +42,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MIG+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MIG"; then +else case e in #( + e) if test -n "$MIG"; then ac_cv_prog_MIG="$MIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -63,7 +65,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MIG=$ac_cv_prog_MIG if test -n "$MIG"; then @@ -85,8 +88,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MIG+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_MIG"; then +else case e in #( + e) if test -n "$ac_ct_MIG"; then ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -108,7 +111,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_MIG=$ac_cv_prog_ac_ct_MIG if test -n "$ac_ct_MIG"; then @@ -153,16 +157,18 @@ ac_fn_c_check_header_preproc "$LINENO" "mach/mach_types.h" "ac_cv_header_mach_ma if test "x$ac_cv_header_mach_mach_types_h" = xyes then : -else $as_nop - as_fn_error $? "cannot find Mach headers" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "cannot find Mach headers" "$LINENO" 5 ;; +esac fi ac_fn_c_check_header_preproc "$LINENO" "mach/mach_types.defs" "ac_cv_header_mach_mach_types_defs" if test "x$ac_cv_header_mach_mach_types_defs" = xyes then : -else $as_nop - as_fn_error $? "cannot find Mach .defs files" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "cannot find Mach .defs files" "$LINENO" 5 ;; +esac fi @@ -173,8 +179,8 @@ printf %s "checking for task_t in mach/mach_types.h... " >&6; } if test ${libc_cv_mach_task_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <mach/mach_types.h> int @@ -188,10 +194,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mach_task_t=task_t -else $as_nop - libc_cv_mach_task_t=task_port_t +else case e in #( + e) libc_cv_mach_task_t=task_port_t ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_task_t" >&5 printf "%s\n" "$libc_cv_mach_task_t" >&6; } @@ -203,8 +211,8 @@ printf %s "checking for thread_t in mach/mach_types.h... " >&6; } if test ${libc_cv_mach_thread_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <mach/mach_types.h> int @@ -218,10 +226,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mach_thread_t=thread_t -else $as_nop - libc_cv_mach_thread_t=thread_port_t +else case e in #( + e) libc_cv_mach_thread_t=thread_port_t ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_thread_t" >&5 printf "%s\n" "$libc_cv_mach_thread_t" >&6; } @@ -234,8 +244,8 @@ printf %s "checking for creation_time in task_basic_info... " >&6; } if test ${libc_cv_mach_task_creation_time+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <mach/task_info.h> int @@ -252,10 +262,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mach_task_creation_time=yes -else $as_nop - libc_cv_mach_task_creation_time=no +else case e in #( + e) libc_cv_mach_task_creation_time=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_task_creation_time" >&5 printf "%s\n" "$libc_cv_mach_task_creation_time" >&6; } @@ -269,7 +281,7 @@ for ifc in mach mach4 gnumach \ processor processor_set task task_notify thread_act vm_map \ memory_object memory_object_default i386/mach_i386 x86_64/mach_i386 \ ; do - as_ac_Header=`printf "%s\n" "ac_cv_header_mach/${ifc}.defs" | $as_tr_sh` + as_ac_Header=`printf "%s\n" "ac_cv_header_mach/${ifc}.defs" | sed "$as_sed_sh"` ac_fn_c_check_header_preproc "$LINENO" "mach/${ifc}.defs" "$as_ac_Header" if eval test \"x\$"$as_ac_Header"\" = x"yes" then : @@ -281,14 +293,14 @@ if test "x$mach_interface_list" = x; then as_fn_error $? "what manner of Mach is this?" "$LINENO" 5 fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -302,13 +314,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -317,14 +330,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -332,35 +345,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP -fi - + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -374,13 +376,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -389,14 +392,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -404,45 +407,48 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for host_page_size in mach_host.defs" >&5 printf %s "checking for host_page_size in mach_host.defs... " >&6; } if test ${libc_cv_mach_host_page_size+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <mach/mach_host.defs> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "host_page_size" >/dev/null 2>&1 + $EGREP_TRADITIONAL "host_page_size" >/dev/null 2>&1 then : libc_cv_mach_host_page_size=yes -else $as_nop - libc_cv_mach_host_page_size=no +else case e in #( + e) libc_cv_mach_host_page_size=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_host_page_size" >&5 printf "%s\n" "$libc_cv_mach_host_page_size" >&6; } @@ -455,13 +461,14 @@ ac_fn_c_check_header_preproc "$LINENO" "mach/machine/ndr_def.h" "ac_cv_header_ma if test "x$ac_cv_header_mach_machine_ndr_def_h" = xyes then : DEFINES="$DEFINES -DNDR_DEF_HEADER='<mach/machine/ndr_def.h>'" -else $as_nop - ac_fn_c_check_header_preproc "$LINENO" "machine/ndr_def.h" "ac_cv_header_machine_ndr_def_h" +else case e in #( + e) ac_fn_c_check_header_preproc "$LINENO" "machine/ndr_def.h" "ac_cv_header_machine_ndr_def_h" if test "x$ac_cv_header_machine_ndr_def_h" = xyes then : DEFINES="$DEFINES -DNDR_DEF_HEADER='<machine/ndr_def.h>'" fi - + ;; +esac fi @@ -470,21 +477,23 @@ printf %s "checking for i386_io_perm_modify in mach_i386.defs... " >&6; } if test ${libc_cv_mach_i386_ioports+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <mach/machine/mach_i386.defs> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "i386_io_perm_modify" >/dev/null 2>&1 + $EGREP_TRADITIONAL "i386_io_perm_modify" >/dev/null 2>&1 then : libc_cv_mach_i386_ioports=yes -else $as_nop - libc_cv_mach_i386_ioports=no +else case e in #( + e) libc_cv_mach_i386_ioports=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_i386_ioports" >&5 printf "%s\n" "$libc_cv_mach_i386_ioports" >&6; } @@ -498,21 +507,23 @@ printf %s "checking for i386_set_gdt in mach_i386.defs... " >&6; } if test ${libc_cv_mach_i386_gdt+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <mach/machine/mach_i386.defs> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "i386_set_gdt" >/dev/null 2>&1 + $EGREP_TRADITIONAL "i386_set_gdt" >/dev/null 2>&1 then : libc_cv_mach_i386_gdt=yes -else $as_nop - libc_cv_mach_i386_gdt=no +else case e in #( + e) libc_cv_mach_i386_gdt=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_i386_gdt" >&5 printf "%s\n" "$libc_cv_mach_i386_gdt" >&6; } diff --git a/sysdeps/mach/hurd/configure b/sysdeps/mach/hurd/configure index 33d3e1fc0f..6f10546cef 100644 --- a/sysdeps/mach/hurd/configure +++ b/sysdeps/mach/hurd/configure @@ -15,8 +15,8 @@ printf %s "checking Hurd header version... " >&6; } if test ${libc_cv_hurd_version+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <hurd/version.h> int @@ -34,10 +34,12 @@ _ACEOF if ac_fn_c_try_cpp "$LINENO" then : libc_cv_hurd_version=ok -else $as_nop - libc_cv_hurd_version=bad +else case e in #( + e) libc_cv_hurd_version=bad ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_version" >&5 printf "%s\n" "$libc_cv_hurd_version" >&6; } diff --git a/sysdeps/mips/configure b/sysdeps/mips/configure index 1e8c6711e6..60dbd947e2 100644 --- a/sysdeps/mips/configure +++ b/sysdeps/mips/configure @@ -6,14 +6,14 @@ printf "%s\n" "#define HIDDEN_VAR_NEEDS_DYNAMIC_RELOC 1" >>confdefs.h -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -27,13 +27,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -42,14 +43,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -57,35 +58,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -99,13 +89,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -114,14 +105,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -129,32 +120,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the 2008 NaN encoding" >&5 printf %s "checking whether the compiler is using the 2008 NaN encoding... " >&6; } if test ${libc_cv_mips_nan2008+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ dnl #ifdef __mips_nan2008 @@ -162,14 +154,16 @@ yes #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_mips_nan2008=yes -else $as_nop - libc_cv_mips_nan2008=no +else case e in #( + e) libc_cv_mips_nan2008=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_nan2008" >&5 printf "%s\n" "$libc_cv_mips_nan2008" >&6; } diff --git a/sysdeps/nios2/configure b/sysdeps/nios2/configure index 2fb230cbaa..d25684d5ad 100644 --- a/sysdeps/nios2/configure +++ b/sysdeps/nios2/configure @@ -4,14 +4,14 @@ # Nios II big endian is not yet supported. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -25,13 +25,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -40,14 +41,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -55,35 +56,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -97,13 +87,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -112,14 +103,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -127,32 +118,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 printf %s "checking for big endian... " >&6; } if test ${libc_cv_nios2_be+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __nios2_big_endian__ yes @@ -160,14 +152,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_nios2_be=yes -else $as_nop - libc_cv_nios2_be=no +else case e in #( + e) libc_cv_nios2_be=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_nios2_be" >&5 printf "%s\n" "$libc_cv_nios2_be" >&6; } diff --git a/sysdeps/powerpc/powerpc32/fpu/configure b/sysdeps/powerpc/powerpc32/fpu/configure index da6fbb11bf..4d285c7617 100644 --- a/sysdeps/powerpc/powerpc32/fpu/configure +++ b/sysdeps/powerpc/powerpc32/fpu/configure @@ -7,8 +7,8 @@ printf %s "checking for fcfid use... " >&6; } if test ${libc_cv_ppc_fcfid+y} then : printf %s "(cached) " >&6 -else $as_nop - echo 'double foo (int x) { return (double) x; }' > conftest.c +else case e in #( + e) echo 'double foo (int x) { return (double) x; }' > conftest.c libc_cv_ppc_fcfid=no if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -20,7 +20,8 @@ if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' libc_cv_ppc_fcfid=yes fi fi -rm -rf conftest* +rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fcfid" >&5 printf "%s\n" "$libc_cv_ppc_fcfid" >&6; } @@ -35,8 +36,8 @@ printf %s "checking for fctidz use... " >&6; } if test ${libc_cv_ppc_fctidz+y} then : printf %s "(cached) " >&6 -else $as_nop - echo 'long long int foo (double x) { return (long long int) x; }' > conftest.c +else case e in #( + e) echo 'long long int foo (double x) { return (long long int) x; }' > conftest.c libc_cv_ppc_fctidz=no if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -48,7 +49,8 @@ if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' libc_cv_ppc_fctidz=yes fi fi -rm -rf conftest* +rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fctidz" >&5 printf "%s\n" "$libc_cv_ppc_fctidz" >&6; } diff --git a/sysdeps/powerpc/powerpc64/configure b/sysdeps/powerpc/powerpc64/configure index 6d8153ed50..8fd6fb5fa4 100644 --- a/sysdeps/powerpc/powerpc64/configure +++ b/sysdeps/powerpc/powerpc64/configure @@ -9,8 +9,8 @@ printf %s "checking for support for overlapping .opd entries... " >&6; } if test ${libc_cv_overlapping_opd+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_overlapping_opd=no +else case e in #( + e) libc_cv_overlapping_opd=no echo 'void foo (void) {}' > conftest.c if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -27,7 +27,8 @@ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s 1>&5' fi fi rm -f conftest.c conftest.s - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_overlapping_opd" >&5 printf "%s\n" "$libc_cv_overlapping_opd" >&6; } @@ -45,8 +46,8 @@ printf %s "checking if the compiler supports @notoc... " >&6; } if test ${libc_cv_ppc64_notoc+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF int bar (void); int foo (void) { return bar () + 1; } EOF @@ -66,7 +67,8 @@ EOF then libc_cv_ppc64_notoc=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_notoc" >&5 printf "%s\n" "$libc_cv_ppc64_notoc" >&6; } diff --git a/sysdeps/powerpc/powerpc64/le/configure b/sysdeps/powerpc/powerpc64/le/configure index 3ec457b10b..7092f61bd4 100644 --- a/sysdeps/powerpc/powerpc64/le/configure +++ b/sysdeps/powerpc/powerpc64/le/configure @@ -9,8 +9,8 @@ printf %s "checking if the target machine is at least POWER8... " >&6; } if test ${libc_cv_target_power8_ok+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -22,10 +22,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_target_power8_ok=yes -else $as_nop - libc_cv_target_power8_ok=no +else case e in #( + e) libc_cv_target_power8_ok=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_target_power8_ok" >&5 printf "%s\n" "$libc_cv_target_power8_ok" >&6; } @@ -42,8 +44,8 @@ printf %s "checking if the compiler supports -mno-gnu-attribute... " >&6; } if test ${libc_cv_no_gnu_attr_ok+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -52,10 +54,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_no_gnu_attr_ok=yes -else $as_nop - libc_cv_no_gnu_attr_ok=no +else case e in #( + e) libc_cv_no_gnu_attr_ok=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_no_gnu_attr_ok" >&5 printf "%s\n" "$libc_cv_no_gnu_attr_ok" >&6; } @@ -70,8 +74,8 @@ printf %s "checking if $CC compiles signbit with 128-bit floating point type... if test ${libc_cv_compiler_powerpc64le_ice+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mabi=ieeelongdouble -Wno-psabi" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -86,11 +90,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_compiler_powerpc64le_ice=yes -else $as_nop - libc_cv_compiler_powerpc64le_ice=no +else case e in #( + e) libc_cv_compiler_powerpc64le_ice=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -CFLAGS="$save_CFLAGS" +CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ice" >&5 printf "%s\n" "$libc_cv_compiler_powerpc64le_ice" >&6; } @@ -104,8 +110,8 @@ printf %s "checking if $CC compiles with -mabi=ieeelongdouble and -mlong-double- if test ${libc_cv_compiler_powerpc64le_ldbl128_mabi+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mabi=ieeelongdouble -mlong-double-128" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -116,11 +122,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_compiler_powerpc64le_ldbl128_mabi=yes -else $as_nop - libc_cv_compiler_powerpc64le_ldbl128_mabi=no +else case e in #( + e) libc_cv_compiler_powerpc64le_ldbl128_mabi=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -CFLAGS="$save_CFLAGS" +CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ldbl128_mabi" >&5 printf "%s\n" "$libc_cv_compiler_powerpc64le_ldbl128_mabi" >&6; } @@ -138,8 +146,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJCOPY+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJCOPY"; then +else case e in #( + e) if test -n "$OBJCOPY"; then ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -161,7 +169,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJCOPY=$ac_cv_prog_OBJCOPY if test -n "$OBJCOPY"; then diff --git a/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure b/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure index 130e3bebc7..61f0c713d7 100644 --- a/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure +++ b/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure @@ -8,8 +8,8 @@ printf %s "checking if the compiler supports -mcpu=power10... " >&6; } if test ${libc_cv_mcpu_power10+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -18,10 +18,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mcpu_power10=yes -else $as_nop - libc_cv_mcpu_power10=no +else case e in #( + e) libc_cv_mcpu_power10=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mcpu_power10" >&5 printf "%s\n" "$libc_cv_mcpu_power10" >&6; } diff --git a/sysdeps/riscv/configure b/sysdeps/riscv/configure index acd1f5e743..60f532c833 100644 --- a/sysdeps/riscv/configure +++ b/sysdeps/riscv/configure @@ -7,8 +7,8 @@ printf %s "checking for R_RISCV_ALIGN linker relaxation support... " >&6; } if test ${libc_cv_riscv_r_align+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.S <<EOF +else case e in #( + e) cat > conftest.S <<EOF .align 3 foo: li a0,42 @@ -24,7 +24,8 @@ EOF then libc_cv_riscv_r_align=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_riscv_r_align" >&5 printf "%s\n" "$libc_cv_riscv_r_align" >&6; } diff --git a/sysdeps/s390/configure b/sysdeps/s390/configure index d1056cb325..67c3755c16 100644 --- a/sysdeps/s390/configure +++ b/sysdeps/s390/configure @@ -6,8 +6,8 @@ printf %s "checking for __builtin_tbegin... " >&6; } if test ${libc_cv_gcc_builtin_tbegin+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<\EOF +else case e in #( + e) cat > conftest.c <<\EOF #include <htmintrin.h> void testtransaction () { @@ -28,7 +28,8 @@ then else libc_cv_gcc_builtin_tbegin=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_tbegin" >&5 printf "%s\n" "$libc_cv_gcc_builtin_tbegin" >&6; } @@ -44,8 +45,8 @@ printf %s "checking for S390 vector instruction support... " >&6; } if test ${libc_cv_asm_s390_vx+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -61,10 +62,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_asm_s390_vx=yes -else $as_nop - libc_cv_asm_s390_vx=no +else case e in #( + e) libc_cv_asm_s390_vx=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_vx" >&5 printf "%s\n" "$libc_cv_asm_s390_vx" >&6; } @@ -83,8 +86,8 @@ printf %s "checking for S390 vector support in gcc... " >&6; } if test ${libc_cv_gcc_s390_vx+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -97,10 +100,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_gcc_s390_vx=yes -else $as_nop - libc_cv_gcc_s390_vx=no +else case e in #( + e) libc_cv_gcc_s390_vx=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_s390_vx" >&5 printf "%s\n" "$libc_cv_gcc_s390_vx" >&6; } @@ -116,8 +121,8 @@ printf %s "checking for S390 arch13 zarch instruction support... " >&6; } if test ${libc_cv_asm_s390_arch13+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -135,10 +140,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_asm_s390_arch13=yes -else $as_nop - libc_cv_asm_s390_arch13=no +else case e in #( + e) libc_cv_asm_s390_arch13=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_arch13" >&5 printf "%s\n" "$libc_cv_asm_s390_arch13" >&6; } @@ -154,8 +161,8 @@ printf %s "checking for S390 z10 zarch instruction support as default... " >&6; if test ${libc_cv_asm_s390_min_z10_zarch+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -173,10 +180,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_asm_s390_min_z10_zarch=yes -else $as_nop - libc_cv_asm_s390_min_z10_zarch=no +else case e in #( + e) libc_cv_asm_s390_min_z10_zarch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z10_zarch" >&5 printf "%s\n" "$libc_cv_asm_s390_min_z10_zarch" >&6; } @@ -192,8 +201,8 @@ printf %s "checking for S390 z196 zarch instruction support as default... " >&6; if test ${libc_cv_asm_s390_min_z196_zarch+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -208,10 +217,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_asm_s390_min_z196_zarch=yes -else $as_nop - libc_cv_asm_s390_min_z196_zarch=no +else case e in #( + e) libc_cv_asm_s390_min_z196_zarch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z196_zarch" >&5 printf "%s\n" "$libc_cv_asm_s390_min_z196_zarch" >&6; } @@ -227,8 +238,8 @@ printf %s "checking for S390 z13 zarch instruction support as default... " >&6; if test ${libc_cv_asm_s390_min_z13_zarch+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -245,10 +256,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_asm_s390_min_z13_zarch=yes -else $as_nop - libc_cv_asm_s390_min_z13_zarch=no +else case e in #( + e) libc_cv_asm_s390_min_z13_zarch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z13_zarch" >&5 printf "%s\n" "$libc_cv_asm_s390_min_z13_zarch" >&6; } @@ -264,8 +277,8 @@ printf %s "checking for S390 arch13 zarch instruction support as default... " >& if test ${libc_cv_asm_s390_min_arch13_zarch+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -281,10 +294,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_asm_s390_min_arch13_zarch=yes -else $as_nop - libc_cv_asm_s390_min_arch13_zarch=no +else case e in #( + e) libc_cv_asm_s390_min_arch13_zarch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_arch13_zarch" >&5 printf "%s\n" "$libc_cv_asm_s390_min_arch13_zarch" >&6; } @@ -301,8 +316,8 @@ printf %s "checking if $CC is sufficient to build libc on s390x... " >&6; } if test ${libc_cv_compiler_ok_on_s390x+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -321,10 +336,12 @@ _ACEOF if ac_fn_c_try_cpp "$LINENO" then : libc_cv_compiler_ok_on_s390x=yes -else $as_nop - libc_cv_compiler_ok_on_s390x=no +else case e in #( + e) libc_cv_compiler_ok_on_s390x=no ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok_on_s390x" >&5 printf "%s\n" "$libc_cv_compiler_ok_on_s390x" >&6; } diff --git a/sysdeps/s390/s390-64/configure b/sysdeps/s390/s390-64/configure index 824ae9c129..b0766a554b 100644 --- a/sysdeps/s390/s390-64/configure +++ b/sysdeps/s390/s390-64/configure @@ -29,8 +29,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_libc_cv_s390x_staticpie_req_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$libc_cv_s390x_staticpie_req_LD"; then +else case e in #( + e) if test -n "$libc_cv_s390x_staticpie_req_LD"; then ac_cv_prog_libc_cv_s390x_staticpie_req_LD="$libc_cv_s390x_staticpie_req_LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -52,7 +52,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi libc_cv_s390x_staticpie_req_LD=$ac_cv_prog_libc_cv_s390x_staticpie_req_LD if test -n "$libc_cv_s390x_staticpie_req_LD"; then @@ -104,8 +105,8 @@ if { as_var=\ libc_cv_s390x_staticpie_req_runtime; eval test \${$as_var+y}; } then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest1.c <<EOF +else case e in #( + e) cat > conftest1.c <<EOF __thread int * foo; void @@ -154,7 +155,8 @@ EOF then libc_cv_s390x_staticpie_req_runtime=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi eval ac_res=\$\ libc_cv_s390x_staticpie_req_runtime diff --git a/sysdeps/sparc/sparc32/configure b/sysdeps/sparc/sparc32/configure index b6603ba2f9..5d2f4864d2 100644 --- a/sysdeps/sparc/sparc32/configure +++ b/sysdeps/sparc/sparc32/configure @@ -4,14 +4,14 @@ # Test if compiler targets at least sparcv8. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -25,13 +25,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -40,14 +41,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -55,35 +56,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -97,13 +87,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -112,14 +103,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -127,32 +118,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for at least sparcv8 support" >&5 printf %s "checking for at least sparcv8 support... " >&6; } if test ${libc_cv_sparcv8+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined (__sparc_v8__) || defined (__sparc_v9__) yes @@ -160,14 +152,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_sparcv8=yes -else $as_nop - libc_cv_sparcv8=no +else case e in #( + e) libc_cv_sparcv8=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparcv8" >&5 printf "%s\n" "$libc_cv_sparcv8" >&6; } @@ -183,8 +177,8 @@ printf %s "checking for external libatomic calls... " >&6; } if test ${libc_cv_cas_uses_libatomic+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF _Bool foo (int *ptr, int *expected, int desired) { return __atomic_compare_exchange_n (ptr, expected, desired, 0, @@ -203,7 +197,8 @@ EOF fi fi rm -f conftest.c conftest.s - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cas_uses_libatomic" >&5 printf "%s\n" "$libc_cv_cas_uses_libatomic" >&6; } diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure index 70f7937333..4d642e953b 100644 --- a/sysdeps/unix/sysv/linux/configure +++ b/sysdeps/unix/sysv/linux/configure @@ -12,8 +12,8 @@ printf %s "checking installed Linux kernel header files... " >&6; } if test ${libc_cv_linux320+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <linux/version.h> #if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < (3 *65536+ 2 *256+ 0) /* 3.2.0 */ @@ -30,10 +30,12 @@ _ACEOF if ac_fn_c_try_cpp "$LINENO" then : libc_cv_linux320='3.2.0 or later' -else $as_nop - libc_cv_linux320='missing or too old!' +else case e in #( + e) libc_cv_linux320='missing or too old!' ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_linux320" >&5 printf "%s\n" "$libc_cv_linux320" >&6; } @@ -91,8 +93,9 @@ _ACEOF if ac_fn_c_try_cpp "$LINENO" then : libc_minimum_kernel=ok -else $as_nop - libc_minimum_kernel='too old!' +else case e in #( + e) libc_minimum_kernel='too old!' ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_minimum_kernel" >&5 diff --git a/sysdeps/unix/sysv/linux/loongarch/configure b/sysdeps/unix/sysv/linux/loongarch/configure index 0d1159e923..914943f914 100644 --- a/sysdeps/unix/sysv/linux/loongarch/configure +++ b/sysdeps/unix/sysv/linux/loongarch/configure @@ -6,14 +6,14 @@ arch_minimum_kernel=5.19.0 libc_cv_loongarch_int_abi=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -27,13 +27,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -42,14 +43,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -57,35 +58,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -99,13 +89,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -114,14 +105,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -129,24 +120,25 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -154,7 +146,7 @@ __SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "4 8 8" >/dev/null 2>&1 + $EGREP_TRADITIONAL "4 8 8" >/dev/null 2>&1 then : libc_cv_loongarch_int_abi=lp64 fi @@ -173,7 +165,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_loongarch_float_abi=d fi @@ -187,7 +179,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_loongarch_float_abi=s fi diff --git a/sysdeps/unix/sysv/linux/mips/configure b/sysdeps/unix/sysv/linux/mips/configure index a060901de4..6e3402c111 100644 --- a/sysdeps/unix/sysv/linux/mips/configure +++ b/sysdeps/unix/sysv/linux/mips/configure @@ -19,8 +19,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_abi=o32 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (_MIPS_SIM != _ABIN32) @@ -37,8 +37,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_abi=n32 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (_MIPS_SIM != _ABI64) @@ -56,9 +56,11 @@ if ac_fn_c_try_compile "$LINENO" then : libc_mips_abi=n64 fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -83,8 +85,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_float=soft -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !defined(__mips_hard_float) @@ -102,7 +104,8 @@ if ac_fn_c_try_compile "$LINENO" then : libc_mips_float=hard fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -148,8 +151,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_o32_fp=32 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (__mips_fpr != 0) || !defined(_MIPS_SPFPSET) || (_MIPS_SPFPSET != 16) @@ -166,8 +169,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_o32_fp=xx -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (__mips_fpr != 0) @@ -184,8 +187,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_o32_fp=xxo -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (__mips_fpr != 64) || !defined(_MIPS_SPFPSET) || (_MIPS_SPFPSET != 16) @@ -202,8 +205,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_o32_fp=64a -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (__mips_fpr != 64) @@ -221,13 +224,17 @@ if ac_fn_c_try_compile "$LINENO" then : libc_mips_o32_fp=64 fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi @@ -241,8 +248,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test $ac_status = 0; }; } then : libc_cv_mips_fp64=yes -else $as_nop - libc_cv_mips_fp64=no +else case e in #( + e) libc_cv_mips_fp64=no ;; +esac fi if { ac_try='${CC-cc} -Werror -modd-spreg -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -252,8 +260,9 @@ fi test $ac_status = 0; }; } then : libc_cv_mips_modd_spreg=yes -else $as_nop - libc_cv_mips_modd_spreg=no +else case e in #( + e) libc_cv_mips_modd_spreg=no ;; +esac fi fi config_vars="$config_vars @@ -281,22 +290,23 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_mode_switch=yes -else $as_nop - libc_mips_mode_switch=no +else case e in #( + e) libc_mips_mode_switch=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext config_vars="$config_vars mips-mode-switch = ${libc_mips_mode_switch}" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -310,13 +320,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -325,14 +336,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -340,35 +351,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -382,13 +382,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -397,14 +398,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -412,32 +413,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the 2008 NaN encoding" >&5 printf %s "checking whether the compiler is using the 2008 NaN encoding... " >&6; } if test ${libc_cv_mips_nan2008+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ dnl #ifdef __mips_nan2008 @@ -445,14 +447,16 @@ yes #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_mips_nan2008=yes -else $as_nop - libc_cv_mips_nan2008=no +else case e in #( + e) libc_cv_mips_nan2008=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_nan2008" >&5 printf "%s\n" "$libc_cv_mips_nan2008" >&6; } @@ -515,8 +519,8 @@ printf %s "checking whether the compiler must use executable stack... " >&6; } if test ${libc_cv_mips_force_execstack+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_mips_force_execstack=no +else case e in #( + e) libc_cv_mips_force_execstack=no if test $libc_mips_float = hard; then if test -n "$minimum_kernel"; then @@ -528,7 +532,8 @@ else $as_nop else libc_cv_mips_force_execstack=yes fi - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_force_execstack" >&5 printf "%s\n" "$libc_cv_mips_force_execstack" >&6; } diff --git a/sysdeps/unix/sysv/linux/powerpc/configure b/sysdeps/unix/sysv/linux/powerpc/configure index d6d091a4c2..61ae675c1a 100644 --- a/sysdeps/unix/sysv/linux/powerpc/configure +++ b/sysdeps/unix/sysv/linux/powerpc/configure @@ -7,8 +7,8 @@ printf %s "checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended form if test ${libc_cv_mlong_double_128ibm+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mlong-double-128" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28,11 +28,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mlong_double_128ibm=yes -else $as_nop - libc_cv_mlong_double_128ibm=no +else case e in #( + e) libc_cv_mlong_double_128ibm=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -CFLAGS="$save_CFLAGS" +CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mlong_double_128ibm" >&5 printf "%s\n" "$libc_cv_mlong_double_128ibm" >&6; } @@ -43,8 +45,8 @@ printf %s "checking whether $CC $CFLAGS supports -mabi=ibmlongdouble... " >&6; } if test ${libc_cv_mabi_ibmlongdouble+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mlong-double-128 -mabi=ibmlongdouble" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -64,11 +66,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mabi_ibmlongdouble=yes -else $as_nop - libc_cv_mabi_ibmlongdouble=no +else case e in #( + e) libc_cv_mabi_ibmlongdouble=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS="$save_CFLAGS" + CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mabi_ibmlongdouble" >&5 printf "%s\n" "$libc_cv_mabi_ibmlongdouble" >&6; } diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure b/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure index cf1b70c745..5dd70689fc 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure @@ -17,14 +17,14 @@ esac # Define default-abi according to compiler flags. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -38,13 +38,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -53,14 +54,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -68,35 +69,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -110,13 +100,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -125,14 +116,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -140,32 +131,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the PowerPC64 ELFv2 ABI" >&5 printf %s "checking whether the compiler is using the PowerPC64 ELFv2 ABI... " >&6; } if test ${libc_cv_ppc64_elfv2_abi+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if _CALL_ELF == 2 yes @@ -173,14 +165,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_ppc64_elfv2_abi=yes -else $as_nop - libc_cv_ppc64_elfv2_abi=no +else case e in #( + e) libc_cv_ppc64_elfv2_abi=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_elfv2_abi" >&5 printf "%s\n" "$libc_cv_ppc64_elfv2_abi" >&6; } @@ -199,8 +193,8 @@ printf %s "checking whether the compiler defines _CALL_ELF... " >&6; } if test ${libc_cv_ppc64_def_call_elf+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _CALL_ELF yes @@ -208,14 +202,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_ppc64_def_call_elf=yes -else $as_nop - libc_cv_ppc64_def_call_elf=no +else case e in #( + e) libc_cv_ppc64_def_call_elf=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_def_call_elf" >&5 printf "%s\n" "$libc_cv_ppc64_def_call_elf" >&6; } @@ -229,8 +225,8 @@ printf %s "checking the machine type to set minimum kernel version... " >&6; } if test ${libc_cv_ppc64_le+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ yes @@ -238,14 +234,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : arch_minimum_kernel=3.10.0 -else $as_nop - libc_cv_ppc64_le=no +else case e in #( + e) libc_cv_ppc64_le=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_le" >&5 printf "%s\n" "$libc_cv_ppc64_le" >&6; } diff --git a/sysdeps/unix/sysv/linux/riscv/configure b/sysdeps/unix/sysv/linux/riscv/configure index 79bf5efa25..08aed0d805 100755 --- a/sysdeps/unix/sysv/linux/riscv/configure +++ b/sysdeps/unix/sysv/linux/riscv/configure @@ -6,14 +6,14 @@ arch_minimum_kernel=4.15.0 libc_cv_riscv_int_abi=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -27,13 +27,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -42,14 +43,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -57,35 +58,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -99,13 +89,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -114,14 +105,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -129,24 +120,25 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -154,7 +146,7 @@ __SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "4 8 8" >/dev/null 2>&1 + $EGREP_TRADITIONAL "4 8 8" >/dev/null 2>&1 then : libc_cv_riscv_int_abi=lp64 fi @@ -166,7 +158,7 @@ __SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "4 4 4" >/dev/null 2>&1 + $EGREP_TRADITIONAL "4 4 4" >/dev/null 2>&1 then : libc_cv_riscv_int_abi=ilp32 fi @@ -189,7 +181,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_riscv_float_abi=d fi @@ -203,7 +195,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_riscv_float_abi= fi diff --git a/sysdeps/x86/configure b/sysdeps/x86/configure index a2f9a7c2c6..47a22080a9 100644 --- a/sysdeps/x86/configure +++ b/sysdeps/x86/configure @@ -8,8 +8,8 @@ printf %s "checking whether CET can be enabled... " >&6; } if test ${libc_cv_x86_cet_available+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF #if !defined __CET__ || __CET__ != 3 # error CET isn't available. #endif @@ -24,7 +24,8 @@ EOF else libc_cv_x86_cet_available=no fi - rm -rf conftest* + rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_available" >&5 printf "%s\n" "$libc_cv_x86_cet_available" >&6; } @@ -39,8 +40,8 @@ printf %s "checking whether assembler supports CET... " >&6; } if test ${libc_cv_x86_cet_as+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<EOF +else case e in #( + e) cat > conftest.s <<EOF incsspd %ecx EOF if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest.o 1>&5' @@ -53,7 +54,8 @@ EOF else libc_cv_x86_cet_as=no fi - rm -rf conftest* + rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_as" >&5 printf "%s\n" "$libc_cv_x86_cet_as" >&6; } @@ -77,8 +79,8 @@ printf %s "checking for linker x86 ISA level support... " >&6; } if test ${libc_cv_include_x86_isa_level+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest1.S <<EOF +else case e in #( + e) cat > conftest1.S <<EOF #ifdef __LP64__ # define P2ALIGN 3 #else @@ -140,7 +142,8 @@ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -nostartfiles -nostdlib -r -o conftest c libc_cv_include_x86_isa_level=yes fi fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_include_x86_isa_level" >&5 printf "%s\n" "$libc_cv_include_x86_isa_level" >&6; } @@ -152,8 +155,8 @@ printf %s "checking for LAHF/SAHF instruction support... " >&6; } if test ${libc_cv_have_x86_lahf_sahf+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_have_x86_lahf_sahf=no +else case e in #( + e) libc_cv_have_x86_lahf_sahf=no if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fverbose-asm -S -o - -x c /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 @@ -161,7 +164,8 @@ else $as_nop printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } | grep -qE '(-msahf\b|-march=x86-64-v)'; then libc_cv_have_x86_lahf_sahf=yes - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_x86_lahf_sahf" >&5 printf "%s\n" "$libc_cv_have_x86_lahf_sahf" >&6; } @@ -174,8 +178,8 @@ printf %s "checking for MOVBE instruction support... " >&6; } if test ${libc_cv_have_x86_movbe+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_have_x86_movbe=no +else case e in #( + e) libc_cv_have_x86_movbe=no if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fverbose-asm -S -o - -x c /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 @@ -183,7 +187,8 @@ else $as_nop printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } | grep -qE '(-mmovbe\b|-march=x86-64-v([3-9]|[1-9][0-9]))'; then libc_cv_have_x86_movbe=yes - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_x86_movbe" >&5 printf "%s\n" "$libc_cv_have_x86_movbe" >&6; } diff --git a/sysdeps/x86_64/configure b/sysdeps/x86_64/configure index e307467afa..51324d460b 100755 --- a/sysdeps/x86_64/configure +++ b/sysdeps/x86_64/configure @@ -6,8 +6,8 @@ printf %s "checking -mprefer-vector-width=128... " >&6; } if test ${libc_cv_cc_mprefer_vector_width+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} -mprefer-vector-width=128 -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} -mprefer-vector-width=128 -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -15,10 +15,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_cc_mprefer_vector_width=yes -else $as_nop - libc_cv_cc_mprefer_vector_width=no +else case e in #( + e) libc_cv_cc_mprefer_vector_width=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_mprefer_vector_width" >&5 printf "%s\n" "$libc_cv_cc_mprefer_vector_width" >&6; } -- 2.41.0 ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH, test conversion, RFC] Convert to autoconf 2.72 (no patches) 2024-01-02 19:17 ` [PATCH, test conversion, RFC] Convert to autoconf 2.72 (no patches) Andreas K. Hüttel @ 2024-01-02 21:30 ` Florian Weimer 2024-01-03 4:13 ` Paul Eggert 2024-01-10 18:37 ` Carlos O'Donell 1 sibling, 1 reply; 31+ messages in thread From: Florian Weimer @ 2024-01-02 21:30 UTC (permalink / raw) To: Andreas K. Hüttel; +Cc: libc-alpha * Andreas K. Hüttel: > @@ -2125,9 +2123,7 @@ struct stat; > /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ > struct buf { int x; }; > struct buf * (*rcsopen) (struct buf *, struct stat *, int); > -static char *e (p, i) > - char **p; > - int i; > +static char *e (char **p, int i) > { > return p[i]; > } Is this the critical change? Thanks, Florian ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH, test conversion, RFC] Convert to autoconf 2.72 (no patches) 2024-01-02 21:30 ` Florian Weimer @ 2024-01-03 4:13 ` Paul Eggert 0 siblings, 0 replies; 31+ messages in thread From: Paul Eggert @ 2024-01-03 4:13 UTC (permalink / raw) To: Florian Weimer, Andreas K. Hüttel; +Cc: libc-alpha On 2024-01-02 13:30, Florian Weimer wrote: > * Andreas K. Hüttel: > >> @@ -2125,9 +2123,7 @@ struct stat; >> /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ >> struct buf { int x; }; >> struct buf * (*rcsopen) (struct buf *, struct stat *, int); >> -static char *e (p, i) >> - char **p; >> - int i; >> +static char *e (char **p, int i) >> { >> return p[i]; >> } > Is this the critical change? I think so, yes. There are other places where the patch switches from K&R to C89 style, such as the following, but I think these all work with C23 too, even in the unpatched version: /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char is_selinux_enabled (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char is_selinux_enabled (void); ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH, test conversion, RFC] Convert to autoconf 2.72 (no patches) 2024-01-02 19:17 ` [PATCH, test conversion, RFC] Convert to autoconf 2.72 (no patches) Andreas K. Hüttel 2024-01-02 21:30 ` Florian Weimer @ 2024-01-10 18:37 ` Carlos O'Donell 2024-06-11 9:35 ` Simon Chopin 1 sibling, 1 reply; 31+ messages in thread From: Carlos O'Donell @ 2024-01-10 18:37 UTC (permalink / raw) To: Andreas K. Hüttel, libc-alpha On 1/2/24 14:17, Andreas K. Hüttel wrote: > From: "Andreas K. Huettel" <dilfridge@gentoo.org> I support moving to autoconf 2.72 for glibc 2.40. I do *not* support moving to autoconf 2.72 for glibc 2.39 (upcoming release). I think we should not make such changes in the freeze window. The only impact that I'm aware of is that clang can't build a patched glibc. Since you're patching glibc to build it with clang you can further patch it to reconfigure with autoconf 2.72. When we officially support clang for building glibc then we need to fix this issue. -- Cheers, Carlos. ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: [PATCH, test conversion, RFC] Convert to autoconf 2.72 (no patches) 2024-01-10 18:37 ` Carlos O'Donell @ 2024-06-11 9:35 ` Simon Chopin 2024-06-11 21:48 ` [PATCH v2] " Andreas K. Hüttel 0 siblings, 1 reply; 31+ messages in thread From: Simon Chopin @ 2024-06-11 9:35 UTC (permalink / raw) To: Carlos O'Donell; +Cc: Andreas K. Hüttel, libc-alpha FWIW, after reviewing the (loooong) diff, I'm also in favor or moving to autoconf 2.72 for glibc 2.40. I was hesitant at first since its availability in Debian is only through `experimental` at the moment, but since the configure scripts are checked into the repo it shouldn't be much of an issue. On mer. 10 janv. 2024 13:37:18, Carlos O'Donell wrote: > On 1/2/24 14:17, Andreas K. Hüttel wrote: > > From: "Andreas K. Huettel" <dilfridge@gentoo.org> > > I support moving to autoconf 2.72 for glibc 2.40. > > I do *not* support moving to autoconf 2.72 for glibc 2.39 (upcoming release). > > I think we should not make such changes in the freeze window. > > The only impact that I'm aware of is that clang can't build a patched glibc. > > Since you're patching glibc to build it with clang you can further patch it > to reconfigure with autoconf 2.72. When we officially support clang for > building glibc then we need to fix this issue. > > -- > Cheers, > Carlos. > ^ permalink raw reply [flat|nested] 31+ messages in thread
* [PATCH v2] Convert to autoconf 2.72 (no patches) 2024-06-11 9:35 ` Simon Chopin @ 2024-06-11 21:48 ` Andreas K. Hüttel 0 siblings, 0 replies; 31+ messages in thread From: Andreas K. Hüttel @ 2024-06-11 21:48 UTC (permalink / raw) To: libc-alpha, simon.chopin, carlos; +Cc: Andreas K. Hüttel [v2: regenerated since it didn't apply anymore... diffing the diffs results in a few unrelated context changes, but also extra code blocks in arm, loong, hurd, riscv, x86 that are updated also, include INSTALL and install.texi update] Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> --- INSTALL | 2 +- aclocal.m4 | 2 +- configure | 1305 ++++++++++------- manual/install.texi | 2 +- sysdeps/aarch64/configure | 155 +- sysdeps/arc/configure | 120 +- sysdeps/arm/configure | 146 +- sysdeps/hppa/configure | 7 +- sysdeps/i386/configure | 7 +- sysdeps/ieee754/ldbl-opt/configure | 12 +- sysdeps/loongarch/configure | 33 +- sysdeps/mach/configure | 229 +-- sysdeps/mach/hurd/configure | 133 +- sysdeps/mips/configure | 120 +- sysdeps/nios2/configure | 120 +- sysdeps/powerpc/powerpc32/fpu/configure | 14 +- sysdeps/powerpc/powerpc64/configure | 14 +- sysdeps/powerpc/powerpc64/le/configure | 55 +- .../powerpc64/le/fpu/multiarch/configure | 12 +- sysdeps/riscv/configure | 15 +- sysdeps/s390/configure | 103 +- sysdeps/s390/s390-64/configure | 7 +- sysdeps/sparc/sparc32/configure | 127 +- sysdeps/unix/sysv/linux/configure | 17 +- sysdeps/unix/sysv/linux/loongarch/configure | 112 +- sysdeps/unix/sysv/linux/mips/configure | 191 +-- sysdeps/unix/sysv/linux/powerpc/configure | 24 +- .../sysv/linux/powerpc/powerpc64/configure | 148 +- sysdeps/unix/sysv/linux/riscv/configure | 114 +- sysdeps/x86/configure | 28 +- sysdeps/x86_64/configure | 40 +- 31 files changed, 1815 insertions(+), 1599 deletions(-) diff --git a/INSTALL b/INSTALL index c8c524527b..e20c7354e8 100644 --- a/INSTALL +++ b/INSTALL @@ -591,7 +591,7 @@ build the GNU C Library: If you change any of the 'configure.ac' files you will also need - * GNU 'autoconf' 2.71 (exactly) + * GNU 'autoconf' 2.72 (exactly) and if you change any of the message translation files you will need diff --git a/aclocal.m4 b/aclocal.m4 index a097d66a49..d8c613faf7 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -2,7 +2,7 @@ dnl We require that everyone use exactly the same Autoconf version so that dnl the internal functions defined and used by the main configure script dnl match those expected by the fragments. When changing this version, dnl install.texi also needs to be updated. -m4_define([GLIBC_AUTOCONF_VERSION], [2.71]) +m4_define([GLIBC_AUTOCONF_VERSION], [2.72]) m4_if(m4_defn([AC_AUTOCONF_VERSION]), GLIBC_AUTOCONF_VERSION, [], [m4_fatal(m4_flatten( Exactly version GLIBC_AUTOCONF_VERSION of Autoconf is required but you have diff --git a/configure b/configure index 432e40a592..1df2f2e6d1 100755 --- a/configure +++ b/configure @@ -1,11 +1,11 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.71 for GNU C Library (see version.h). +# Generated by GNU Autoconf 2.72 for GNU C Library (see version.h). # # Report bugs to <https://sourceware.org/bugzilla/>. # # -# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, # Inc. # # @@ -17,7 +17,6 @@ # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -26,12 +25,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi @@ -103,7 +103,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -133,15 +133,14 @@ case $- in # (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then - as_bourne_compatible="as_nop=: -if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 + as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh NULLCMD=: @@ -149,12 +148,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST -else \$as_nop - case \`(set -o) 2>/dev/null\` in #( +else case e in #( + e) case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi " @@ -172,8 +172,9 @@ as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ) then : -else \$as_nop - exitcode=1; echo positional parameters were not saved. +else case e in #( + e) exitcode=1; echo positional parameters were not saved. ;; +esac fi test x\$exitcode = x0 || exit 1 blah=\$(echo \$(echo blah)) @@ -186,14 +187,15 @@ test -x / || exit 1" if (eval "$as_required") 2>/dev/null then : as_have_required=yes -else $as_nop - as_have_required=no +else case e in #( + e) as_have_required=no ;; +esac fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null then : -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do @@ -226,12 +228,13 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - if { test -f "$SHELL" || test -f "$SHELL.exe"; } && +else case e in #( + e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null then : CONFIG_SHELL=$SHELL as_have_required=yes -fi +fi ;; +esac fi @@ -253,7 +256,7 @@ case $- in # (((( esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail -# out after a failed `exec'. +# out after a failed 'exec'. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi @@ -273,7 +276,8 @@ $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 -fi +fi ;; +esac fi fi SHELL=${CONFIG_SHELL-/bin/sh} @@ -312,14 +316,6 @@ as_fn_exit () as_fn_set_status $1 exit $1 } # as_fn_exit -# as_fn_nop -# --------- -# Do nothing but, unlike ":", preserve the value of $?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop # as_fn_mkdir_p # ------------- @@ -388,11 +384,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -406,21 +403,14 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith -# as_fn_nop -# --------- -# Do nothing but, unlike ":", preserve the value of $?. -as_fn_nop () -{ - return $? -} -as_nop=as_fn_nop # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- @@ -494,6 +484,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits /[$]LINENO/= ' <$as_myself | sed ' + t clear + :clear s/[$]LINENO.*/&-/ t lineno b @@ -542,7 +534,6 @@ esac as_echo='printf %s\n' as_echo_n='printf %s' - rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file @@ -554,9 +545,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -581,10 +572,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated test -n "$DJDIR" || exec 7<&0 </dev/null @@ -933,7 +926,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -959,7 +952,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid feature name: \`$ac_useropt'" + as_fn_error $? "invalid feature name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1172,7 +1165,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1188,7 +1181,7 @@ do ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && - as_fn_error $? "invalid package name: \`$ac_useropt'" + as_fn_error $? "invalid package name: '$ac_useropt'" ac_useropt_orig=$ac_useropt ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in @@ -1218,8 +1211,8 @@ do | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; - -*) as_fn_error $? "unrecognized option: \`$ac_option' -Try \`$0 --help' for more information" + -*) as_fn_error $? "unrecognized option: '$ac_option' +Try '$0 --help' for more information" ;; *=*) @@ -1227,7 +1220,7 @@ Try \`$0 --help' for more information" # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) - as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + as_fn_error $? "invalid variable name: '$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; @@ -1277,7 +1270,7 @@ do as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done -# There might be people who depend on the old broken behavior: `$host' +# There might be people who depend on the old broken behavior: '$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias @@ -1345,7 +1338,7 @@ if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi -ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` @@ -1373,7 +1366,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. +'configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1387,11 +1380,11 @@ Configuration: --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking ...' messages + -q, --quiet, --silent do not print 'checking ...' messages --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' + -C, --config-cache alias for '--cache-file=config.cache' -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] + --srcdir=DIR find the sources in DIR [configure dir or '..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @@ -1399,10 +1392,10 @@ Installation directories: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. +By default, 'make install' will install all the files in +'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify +an installation prefix other than '$ac_default_prefix' using '--prefix', +for instance '--prefix=\$HOME'. For better control, use the options below. @@ -1523,7 +1516,7 @@ Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags -Use these variables to override the choices made by `configure' or to help +Use these variables to override the choices made by 'configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to <https://sourceware.org/bugzilla/>. @@ -1593,9 +1586,9 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF GNU C Library configure (see version.h) -generated by GNU Autoconf 2.71 +generated by GNU Autoconf 2.72 -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -1634,11 +1627,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1673,11 +1667,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } && test -s conftest.$ac_objext then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1715,11 +1710,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -1758,11 +1754,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval @@ -1800,11 +1797,12 @@ printf "%s\n" "$ac_try_echo"; } >&5 } then : ac_retval=0 -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 - ac_retval=1 + ac_retval=1 ;; +esac fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would @@ -1840,7 +1838,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GNU C Library $as_me (see version.h), which was -generated by GNU Autoconf 2.71. Invocation command line was +generated by GNU Autoconf 2.72. Invocation command line was $ $0$ac_configure_args_raw @@ -2086,10 +2084,10 @@ esac printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ - || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi done @@ -2125,9 +2123,7 @@ struct stat; /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ struct buf { int x; }; struct buf * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; +static char *e (char **p, int i) { return p[i]; } @@ -2141,6 +2137,21 @@ static char *f (char * (*g) (char **, int), char **p, ...) return s; } +/* C89 style stringification. */ +#define noexpand_stringify(a) #a +const char *stringified = noexpand_stringify(arbitrary+token=sequence); + +/* C89 style token pasting. Exercises some of the corner cases that + e.g. old MSVC gets wrong, but not very hard. */ +#define noexpand_concat(a,b) a##b +#define expand_concat(a,b) noexpand_concat(a,b) +extern int vA; +extern int vbee; +#define aye A +#define bee B +int *pvA = &expand_concat(v,aye); +int *pvbee = &noexpand_concat(v,bee); + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not \xHH hex character constants. These do not provoke an error unfortunately, instead are silently treated @@ -2168,16 +2179,19 @@ ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); # Test code for whether the C compiler supports C99 (global declarations) ac_c_conftest_c99_globals=' -// Does the compiler advertise C99 conformance? +/* Does the compiler advertise C99 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L # error "Compiler does not advertise C99 conformance" #endif +// See if C++-style comments work. + #include <stdbool.h> extern int puts (const char *); extern int printf (const char *, ...); extern int dprintf (int, const char *, ...); extern void *malloc (size_t); +extern void free (void *); // Check varargs macros. These examples are taken from C99 6.10.3.5. // dprintf is used instead of fprintf to avoid needing to declare @@ -2227,7 +2241,6 @@ typedef const char *ccp; static inline int test_restrict (ccp restrict text) { - // See if C++-style comments work. // Iterate through items via the restricted pointer. // Also check for declarations in for loops. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) @@ -2293,6 +2306,8 @@ ac_c_conftest_c99_main=' ia->datasize = 10; for (int i = 0; i < ia->datasize; ++i) ia->data[i] = i * 1.234; + // Work around memory leak warnings. + free (ia); // Check named initializers. struct named_init ni = { @@ -2314,7 +2329,7 @@ ac_c_conftest_c99_main=' # Test code for whether the C compiler supports C11 (global declarations) ac_c_conftest_c11_globals=' -// Does the compiler advertise C11 conformance? +/* Does the compiler advertise C11 conformance? */ #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L # error "Compiler does not advertise C11 conformance" #endif @@ -2713,8 +2728,9 @@ IFS=$as_save_IFS if $as_found then : -else $as_nop - as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; +esac fi @@ -2742,12 +2758,12 @@ for ac_var in $ac_precious_vars; do eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) @@ -2756,18 +2772,18 @@ printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 -printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 -printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 -printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 -printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. @@ -2783,11 +2799,11 @@ printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} fi done if $ac_cache_corrupted; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## @@ -2816,9 +2832,10 @@ then : no) PKGVERSION= ;; *) PKGVERSION="($withval) " ;; esac -else $as_nop - PKGVERSION="(GNU libc) " - +else case e in #( + e) PKGVERSION="(GNU libc) " + ;; +esac fi PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'` @@ -2837,9 +2854,10 @@ then : *) BUGURL="$withval" ;; esac -else $as_nop - BUGURL="https://www.gnu.org/software/libc/bugs.html" - +else case e in #( + e) BUGURL="https://www.gnu.org/software/libc/bugs.html" + ;; +esac fi case ${BUGURL} in @@ -2892,15 +2910,16 @@ printf %s "checking build system type... " >&6; } if test ${ac_cv_build+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_build_alias=$build_alias +else case e in #( + e) ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 printf "%s\n" "$ac_cv_build" >&6; } @@ -2927,14 +2946,15 @@ printf %s "checking host system type... " >&6; } if test ${ac_cv_host+y} then : printf %s "(cached) " >&6 -else $as_nop - if test "x$host_alias" = x; then +else case e in #( + e) if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 printf "%s\n" "$ac_cv_host" >&6; } @@ -2979,8 +2999,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3002,7 +3022,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -3024,8 +3045,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3047,7 +3068,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -3082,8 +3104,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3105,7 +3127,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -3127,8 +3150,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no @@ -3167,7 +3190,8 @@ if test $ac_prog_rejected = yes; then ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" fi fi -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -3191,8 +3215,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3214,7 +3238,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -3240,8 +3265,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3263,7 +3288,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -3301,8 +3327,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CC"; then +else case e in #( + e) if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3324,7 +3350,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CC=$ac_cv_prog_CC if test -n "$CC"; then @@ -3346,8 +3373,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CC"; then +else case e in #( + e) if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3369,7 +3396,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then @@ -3398,10 +3426,10 @@ fi fi -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 @@ -3434,8 +3462,8 @@ printf %s "checking for suffix of object files... " >&6; } if test ${ac_cv_objext+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3467,16 +3495,18 @@ then : break;; esac done -else $as_nop - printf "%s\n" "$as_me: failed program was:" >&5 +else case e in #( + e) printf "%s\n" "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } ;; +esac fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext +rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 printf "%s\n" "$ac_cv_objext" >&6; } @@ -3487,8 +3517,8 @@ printf %s "checking whether the compiler supports GNU C... " >&6; } if test ${ac_cv_c_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3505,12 +3535,14 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } @@ -3528,8 +3560,8 @@ printf %s "checking whether $CC accepts -g... " >&6; } if test ${ac_cv_prog_cc_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_c_werror_flag=$ac_c_werror_flag +else case e in #( + e) ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" @@ -3547,8 +3579,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes -else $as_nop - CFLAGS="" +else case e in #( + e) CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3563,8 +3595,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : -else $as_nop - ac_c_werror_flag=$ac_save_c_werror_flag +else case e in #( + e) ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3581,12 +3613,15 @@ if ac_fn_c_try_compile "$LINENO" then : ac_cv_prog_cc_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag + ac_c_werror_flag=$ac_save_c_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } @@ -3613,8 +3648,8 @@ printf %s "checking for $CC option to enable C11 features... " >&6; } if test ${ac_cv_prog_cc_c11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c11=no +else case e in #( + e) ac_cv_prog_cc_c11=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3631,25 +3666,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c11" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c11" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" + CC="$CC $ac_cv_prog_cc_c11" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 + ac_prog_cc_stdc=c11 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -3659,8 +3697,8 @@ printf %s "checking for $CC option to enable C99 features... " >&6; } if test ${ac_cv_prog_cc_c99+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c99=no +else case e in #( + e) ac_cv_prog_cc_c99=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3677,25 +3715,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c99" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c99" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c99" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c99" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } - CC="$CC $ac_cv_prog_cc_c99" + CC="$CC $ac_cv_prog_cc_c99" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 + ac_prog_cc_stdc=c99 ;; +esac fi fi if test x$ac_prog_cc_stdc = xno @@ -3705,8 +3746,8 @@ printf %s "checking for $CC option to enable C89 features... " >&6; } if test ${ac_cv_prog_cc_c89+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cc_c89=no +else case e in #( + e) ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -3723,25 +3764,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext -CC=$ac_save_CC +CC=$ac_save_CC ;; +esac fi if test "x$ac_cv_prog_cc_c89" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cc_c89" = x +else case e in #( + e) if test "x$ac_cv_prog_cc_c89" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } - CC="$CC $ac_cv_prog_cc_c89" + CC="$CC $ac_cv_prog_cc_c89" ;; +esac fi ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 + ac_prog_cc_stdc=c89 ;; +esac fi fi @@ -3761,8 +3805,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_BUILD_CC+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$BUILD_CC"; then +else case e in #( + e) if test -n "$BUILD_CC"; then ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3784,7 +3828,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi BUILD_CC=$ac_cv_prog_BUILD_CC if test -n "$BUILD_CC"; then @@ -3836,8 +3881,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$CXX"; then +else case e in #( + e) if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3859,7 +3904,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then @@ -3885,8 +3931,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_CXX+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_CXX"; then +else case e in #( + e) if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -3908,7 +3954,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then @@ -3968,8 +4015,8 @@ printf %s "checking whether the compiler supports GNU C++... " >&6; } if test ${ac_cv_cxx_compiler_gnu+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int @@ -3986,12 +4033,14 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_compiler_gnu=yes -else $as_nop - ac_compiler_gnu=no +else case e in #( + e) ac_compiler_gnu=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } @@ -4009,8 +4058,8 @@ printf %s "checking whether $CXX accepts -g... " >&6; } if test ${ac_cv_prog_cxx_g+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_save_cxx_werror_flag=$ac_cxx_werror_flag +else case e in #( + e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" @@ -4028,8 +4077,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes -else $as_nop - CXXFLAGS="" +else case e in #( + e) CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4044,8 +4093,8 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : -else $as_nop - ac_cxx_werror_flag=$ac_save_cxx_werror_flag +else case e in #( + e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4062,12 +4111,15 @@ if ac_fn_cxx_try_compile "$LINENO" then : ac_cv_prog_cxx_g=yes fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag + ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } @@ -4094,8 +4146,8 @@ printf %s "checking for $CXX option to enable C++11 features... " >&6; } if test ${ac_cv_prog_cxx_cxx11+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_cxx11=no +else case e in #( + e) ac_cv_prog_cxx_cxx11=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4112,25 +4164,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx11" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx11" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx11" = x +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx11" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx11" + CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 - ac_prog_cxx_stdcxx=cxx11 + ac_prog_cxx_stdcxx=cxx11 ;; +esac fi fi if test x$ac_prog_cxx_stdcxx = xno @@ -4140,8 +4195,8 @@ printf %s "checking for $CXX option to enable C++98 features... " >&6; } if test ${ac_cv_prog_cxx_cxx98+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_cv_prog_cxx_cxx98=no +else case e in #( + e) ac_cv_prog_cxx_cxx98=no ac_save_CXX=$CXX cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4158,25 +4213,28 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam test "x$ac_cv_prog_cxx_cxx98" != "xno" && break done rm -f conftest.$ac_ext -CXX=$ac_save_CXX +CXX=$ac_save_CXX ;; +esac fi if test "x$ac_cv_prog_cxx_cxx98" = xno then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 printf "%s\n" "unsupported" >&6; } -else $as_nop - if test "x$ac_cv_prog_cxx_cxx98" = x +else case e in #( + e) if test "x$ac_cv_prog_cxx_cxx98" = x then : { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 printf "%s\n" "none needed" >&6; } -else $as_nop - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } - CXX="$CXX $ac_cv_prog_cxx_cxx98" + CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; +esac fi ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 - ac_prog_cxx_stdcxx=cxx98 + ac_prog_cxx_stdcxx=cxx98 ;; +esac fi fi @@ -4193,8 +4251,8 @@ printf %s "checking whether $CXX can link programs... " >&6; } if test ${libc_cv_cxx_link_ok+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_ext=cpp +else case e in #( + e) ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' @@ -4215,8 +4273,9 @@ _ACEOF if ac_fn_cxx_try_link "$LINENO" then : libc_cv_cxx_link_ok=yes -else $as_nop - libc_cv_cxx_link_ok=no +else case e in #( + e) libc_cv_cxx_link_ok=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -4239,8 +4298,9 @@ _ACEOF if ac_fn_cxx_try_link "$LINENO" then : -else $as_nop - libc_cv_cxx_link_ok=no +else case e in #( + e) libc_cv_cxx_link_ok=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -4250,7 +4310,8 @@ ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5 printf "%s\n" "$libc_cv_cxx_link_ok" >&6; } @@ -4316,8 +4377,9 @@ fi if test ${with_binutils+y} then : withval=$with_binutils; path_binutils=$withval -else $as_nop - path_binutils='' +else case e in #( + e) path_binutils='' ;; +esac fi @@ -4325,8 +4387,9 @@ fi if test ${with_selinux+y} then : withval=$with_selinux; with_selinux=$withval -else $as_nop - with_selinux=auto +else case e in #( + e) with_selinux=auto ;; +esac fi @@ -4335,8 +4398,9 @@ fi if test ${with_headers+y} then : withval=$with_headers; sysheaders=$withval -else $as_nop - sysheaders='' +else case e in #( + e) sysheaders='' ;; +esac fi @@ -4346,8 +4410,9 @@ fi if test ${with_nonshared_cflags+y} then : withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval -else $as_nop - extra_nonshared_cflags= +else case e in #( + e) extra_nonshared_cflags= ;; +esac fi @@ -4356,8 +4421,9 @@ fi if test ${with_rtld_early_cflags+y} then : withval=$with_rtld_early_cflags; rtld_early_cflags=$withval -else $as_nop - rtld_early_cflags= +else case e in #( + e) rtld_early_cflags= ;; +esac fi @@ -4367,8 +4433,9 @@ fi if test ${with_timeoutfactor+y} then : withval=$with_timeoutfactor; timeoutfactor=$withval -else $as_nop - timeoutfactor=1 +else case e in #( + e) timeoutfactor=1 ;; +esac fi printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h @@ -4378,8 +4445,9 @@ printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h if test ${enable_sanity_checks+y} then : enableval=$enable_sanity_checks; enable_sanity=$enableval -else $as_nop - enable_sanity=yes +else case e in #( + e) enable_sanity=yes ;; +esac fi @@ -4387,32 +4455,36 @@ fi if test ${enable_shared+y} then : enableval=$enable_shared; shared=$enableval -else $as_nop - shared=yes +else case e in #( + e) shared=yes ;; +esac fi # Check whether --enable-profile was given. if test ${enable_profile+y} then : enableval=$enable_profile; profile=$enableval -else $as_nop - profile=no +else case e in #( + e) profile=no ;; +esac fi # Check whether --enable-default-pie was given. if test ${enable_default_pie+y} then : enableval=$enable_default_pie; default_pie=$enableval -else $as_nop - default_pie=yes +else case e in #( + e) default_pie=yes ;; +esac fi # Check whether --enable-timezone-tools was given. if test ${enable_timezone_tools+y} then : enableval=$enable_timezone_tools; enable_timezone_tools=$enableval -else $as_nop - enable_timezone_tools=yes +else case e in #( + e) enable_timezone_tools=yes ;; +esac fi @@ -4421,8 +4493,9 @@ fi if test ${enable_hardcoded_path_in_tests+y} then : enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval -else $as_nop - hardcoded_path_in_tests=no +else case e in #( + e) hardcoded_path_in_tests=no ;; +esac fi @@ -4431,8 +4504,9 @@ fi if test ${enable_hidden_plt+y} then : enableval=$enable_hidden_plt; hidden=$enableval -else $as_nop - hidden=yes +else case e in #( + e) hidden=yes ;; +esac fi if test "x$hidden" = xno; then @@ -4444,8 +4518,9 @@ fi if test ${enable_bind_now+y} then : enableval=$enable_bind_now; bindnow=$enableval -else $as_nop - bindnow=no +else case e in #( + e) bindnow=no ;; +esac fi @@ -4458,8 +4533,9 @@ fi if test ${enable_stack_protector+y} then : enableval=$enable_stack_protector; enable_stack_protector=$enableval -else $as_nop - enable_stack_protector=no +else case e in #( + e) enable_stack_protector=no ;; +esac fi case "$enable_stack_protector" in @@ -4471,8 +4547,9 @@ esac if test ${enable_static_nss+y} then : enableval=$enable_static_nss; static_nss=$enableval -else $as_nop - static_nss=no +else case e in #( + e) static_nss=no ;; +esac fi if test x"$static_nss" = xyes || test x"$shared" = xno; then @@ -4485,8 +4562,9 @@ fi if test ${enable_force_install+y} then : enableval=$enable_force_install; force_install=$enableval -else $as_nop - force_install=yes +else case e in #( + e) force_install=yes ;; +esac fi @@ -4495,8 +4573,9 @@ fi if test ${enable_maintainer_mode+y} then : enableval=$enable_maintainer_mode; maintainer=$enableval -else $as_nop - maintainer=no +else case e in #( + e) maintainer=no ;; +esac fi @@ -4519,8 +4598,9 @@ fi if test ${enable_werror+y} then : enableval=$enable_werror; enable_werror=$enableval -else $as_nop - enable_werror=yes +else case e in #( + e) enable_werror=yes ;; +esac fi @@ -4529,8 +4609,9 @@ fi if test ${enable_multi_arch+y} then : enableval=$enable_multi_arch; multi_arch=$enableval -else $as_nop - multi_arch=default +else case e in #( + e) multi_arch=default ;; +esac fi @@ -4538,8 +4619,9 @@ fi if test ${enable_memory_tagging+y} then : enableval=$enable_memory_tagging; memory_tagging=$enableval -else $as_nop - memory_tagging=no +else case e in #( + e) memory_tagging=no ;; +esac fi if test "$memory_tagging" = yes; then @@ -4557,8 +4639,9 @@ fi if test ${enable_systemtap+y} then : enableval=$enable_systemtap; systemtap=$enableval -else $as_nop - systemtap=no +else case e in #( + e) systemtap=no ;; +esac fi if test "x$systemtap" != xno; then @@ -4568,8 +4651,8 @@ printf %s "checking for systemtap static probe support... " >&6; } if test ${libc_cv_sdt+y} then : printf %s "(cached) " >&6 -else $as_nop - old_CFLAGS="$CFLAGS" +else case e in #( + e) old_CFLAGS="$CFLAGS" CFLAGS="-std=gnu11 $CFLAGS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -4583,11 +4666,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_sdt=yes -else $as_nop - libc_cv_sdt=no +else case e in #( + e) libc_cv_sdt=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS="$old_CFLAGS" + CFLAGS="$old_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5 printf "%s\n" "$libc_cv_sdt" >&6; } @@ -4595,10 +4680,10 @@ printf "%s\n" "$libc_cv_sdt" >&6; } printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h elif test "x$systemtap" != xauto; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} as_fn_error $? "systemtap support needs sys/sdt.h with asm support -See \`config.log' for more details" "$LINENO" 5; } +See 'config.log' for more details" "$LINENO" 5; } fi fi @@ -4606,8 +4691,9 @@ fi if test ${enable_build_nscd+y} then : enableval=$enable_build_nscd; build_nscd=$enableval -else $as_nop - build_nscd=default +else case e in #( + e) build_nscd=default ;; +esac fi @@ -4617,8 +4703,9 @@ fi if test ${enable_nscd+y} then : enableval=$enable_nscd; use_nscd=$enableval -else $as_nop - use_nscd=yes +else case e in #( + e) use_nscd=yes ;; +esac fi @@ -4626,8 +4713,9 @@ fi if test ${enable_pt_chown+y} then : enableval=$enable_pt_chown; build_pt_chown=$enableval -else $as_nop - build_pt_chown=no +else case e in #( + e) build_pt_chown=no ;; +esac fi @@ -4652,8 +4740,9 @@ esac if test ${enable_mathvec+y} then : enableval=$enable_mathvec; build_mathvec=$enableval -else $as_nop - build_mathvec=notset +else case e in #( + e) build_mathvec=notset ;; +esac fi @@ -4675,8 +4764,9 @@ _ACEOF if ac_fn_c_try_cpp "$LINENO" then : libc_cv_compiler_default_cet=yes -else $as_nop - libc_cv_compiler_default_cet=no +else case e in #( + e) libc_cv_compiler_default_cet=no ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext @@ -4684,8 +4774,9 @@ rm -f conftest.err conftest.i conftest.$ac_ext if test ${enable_cet+y} then : enableval=$enable_cet; enable_cet=$enableval -else $as_nop - enable_cet=$libc_cv_compiler_default_cet +else case e in #( + e) enable_cet=$libc_cv_compiler_default_cet ;; +esac fi @@ -4693,8 +4784,9 @@ fi if test ${enable_scv+y} then : enableval=$enable_scv; use_scv=$enableval -else $as_nop - use_scv=yes +else case e in #( + e) use_scv=yes ;; +esac fi @@ -4708,8 +4800,9 @@ fi if test ${enable_fortify_source+y} then : enableval=$enable_fortify_source; enable_fortify_source=$enableval -else $as_nop - enable_fortify_source=no +else case e in #( + e) enable_fortify_source=no ;; +esac fi case "$enable_fortify_source" in @@ -4824,8 +4917,8 @@ if test -z "$INSTALL"; then if test ${ac_cv_path_install+y} then : printf %s "(cached) " >&6 -else $as_nop - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +else case e in #( + e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS @@ -4879,7 +4972,8 @@ esac IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir - + ;; +esac fi if test ${ac_cv_path_install+y}; then INSTALL=$ac_cv_path_install @@ -4971,8 +5065,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LD"; then +else case e in #( + e) if test -n "$LD"; then ac_cv_prog_LD="$LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -4994,7 +5088,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi LD=$ac_cv_prog_LD if test -n "$LD"; then @@ -5042,8 +5137,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LD"; then +else case e in #( + e) if test -n "$LD"; then ac_cv_prog_LD="$LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5065,7 +5160,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi LD=$ac_cv_prog_LD if test -n "$LD"; then @@ -5113,8 +5209,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_LD+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$LD"; then +else case e in #( + e) if test -n "$LD"; then ac_cv_prog_LD="$LD" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5136,7 +5232,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi LD=$ac_cv_prog_LD if test -n "$LD"; then @@ -5187,8 +5284,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MAKE+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MAKE"; then +else case e in #( + e) if test -n "$MAKE"; then ac_cv_prog_MAKE="$MAKE" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5210,7 +5307,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MAKE=$ac_cv_prog_MAKE if test -n "$MAKE"; then @@ -5256,8 +5354,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MSGFMT+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MSGFMT"; then +else case e in #( + e) if test -n "$MSGFMT"; then ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5279,7 +5377,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MSGFMT=$ac_cv_prog_MSGFMT if test -n "$MSGFMT"; then @@ -5324,8 +5423,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MAKEINFO+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MAKEINFO"; then +else case e in #( + e) if test -n "$MAKEINFO"; then ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5347,7 +5446,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MAKEINFO=$ac_cv_prog_MAKEINFO if test -n "$MAKEINFO"; then @@ -5392,8 +5492,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_SED+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$SED"; then +else case e in #( + e) if test -n "$SED"; then ac_cv_prog_SED="$SED" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5415,7 +5515,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi SED=$ac_cv_prog_SED if test -n "$SED"; then @@ -5460,8 +5561,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AWK+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AWK"; then +else case e in #( + e) if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5483,7 +5584,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then @@ -5528,8 +5630,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_BISON+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$BISON"; then +else case e in #( + e) if test -n "$BISON"; then ac_cv_prog_BISON="$BISON" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5551,7 +5653,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi BISON=$ac_cv_prog_BISON if test -n "$BISON"; then @@ -5593,8 +5696,8 @@ printf %s "checking if $CC is sufficient to build libc... " >&6; } if test ${libc_cv_compiler_ok+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5612,10 +5715,12 @@ _ACEOF if ac_fn_c_try_cpp "$LINENO" then : libc_cv_compiler_ok=yes -else $as_nop - libc_cv_compiler_ok=no +else case e in #( + e) libc_cv_compiler_ok=no ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5 printf "%s\n" "$libc_cv_compiler_ok" >&6; } @@ -5634,8 +5739,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_AUTOCONF+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$AUTOCONF"; then +else case e in #( + e) if test -n "$AUTOCONF"; then ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5657,7 +5762,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi AUTOCONF=$ac_cv_prog_AUTOCONF if test -n "$AUTOCONF"; then @@ -5681,12 +5787,13 @@ printf %s "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; } if test ${libc_cv_autoconf_works+y} then : printf %s "(cached) " >&6 -else $as_nop - if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then +else case e in #( + e) if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then libc_cv_autoconf_works=yes else libc_cv_autoconf_works=no - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5 printf "%s\n" "$libc_cv_autoconf_works" >&6; } @@ -5710,8 +5817,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_PYTHON_PROG+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$PYTHON_PROG"; then +else case e in #( + e) if test -n "$PYTHON_PROG"; then ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5733,7 +5840,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi PYTHON_PROG=$ac_cv_prog_PYTHON_PROG if test -n "$PYTHON_PROG"; then @@ -5792,8 +5900,8 @@ printf %s "checking for use of fpu sysdeps directories... " >&6; } if test ${libc_cv_with_fp+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF #if $with_fp_cond int dummy; #else @@ -5805,7 +5913,8 @@ if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \ 1>&5 2>&5 ; then libc_cv_with_fp=yes fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5 printf "%s\n" "$libc_cv_with_fp" >&6; } @@ -5816,8 +5925,8 @@ printf %s "checking for -fstack-protector... " >&6; } if test ${libc_cv_ssp+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -5825,10 +5934,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_ssp=yes -else $as_nop - libc_cv_ssp=no +else case e in #( + e) libc_cv_ssp=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5 printf "%s\n" "$libc_cv_ssp" >&6; } @@ -5838,8 +5949,8 @@ printf %s "checking for -fstack-protector-strong... " >&6; } if test ${libc_cv_ssp_strong+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -5847,10 +5958,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_ssp_strong=yes -else $as_nop - libc_cv_ssp_strong=no +else case e in #( + e) libc_cv_ssp_strong=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5 printf "%s\n" "$libc_cv_ssp_strong" >&6; } @@ -5860,8 +5973,8 @@ printf %s "checking for -fstack-protector-all... " >&6; } if test ${libc_cv_ssp_all+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -5869,10 +5982,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_ssp_all=yes -else $as_nop - libc_cv_ssp_all=no +else case e in #( + e) libc_cv_ssp_all=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5 printf "%s\n" "$libc_cv_ssp_all" >&6; } @@ -5922,8 +6037,8 @@ printf %s "checking for assembler and linker STT_GNU_IFUNC support... " >&6; } if test ${libc_cv_ld_gnu_indirect_function+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.S <<EOF +else case e in #( + e) cat > conftest.S <<EOF .type foo,%gnu_indirect_function foo: .globl _start @@ -5947,7 +6062,8 @@ if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ libc_cv_ld_gnu_indirect_function=yes } fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5 printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; } @@ -5958,8 +6074,8 @@ printf %s "checking for gcc attribute ifunc support... " >&6; } if test ${libc_cv_gcc_indirect_function+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF extern int func (int); int used_func (int a) { @@ -5978,7 +6094,8 @@ if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \ libc_cv_gcc_indirect_function=yes fi fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5 printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; } @@ -5990,8 +6107,8 @@ printf %s "checking whether the linker supports textrels along with ifunc... " > if test ${libc_cv_textrel_ifunc+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.S <<EOF +else case e in #( + e) cat > conftest.S <<EOF .type foo,%gnu_indirect_function foo: .globl _start @@ -6024,7 +6141,8 @@ if test $libc_cv_ld_gnu_indirect_function = yes; then libc_cv_textrel_ifunc=yes fi fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5 printf "%s\n" "$libc_cv_textrel_ifunc" >&6; } @@ -6036,8 +6154,8 @@ printf %s "checking for GNU attribute retain support... " >&6; } if test ${libc_cv_gnu_retain+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF static int var __attribute__ ((used, retain, section ("__libc_atexit"))); EOF libc_cv_gnu_retain=no @@ -6045,7 +6163,8 @@ if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \ 2>&5 ; then libc_cv_gnu_retain=yes fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5 printf "%s\n" "$libc_cv_gnu_retain" >&6; } @@ -6062,8 +6181,8 @@ printf %s "checking if compiler warns about alias for function with incompatible if test ${libc_cv_gcc_incompatible_alias+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF int __redirect_foo (const void *s, int c); __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo"); @@ -6078,7 +6197,8 @@ libc_cv_gcc_incompatible_alias=yes if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then libc_cv_gcc_incompatible_alias=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5 printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; } @@ -6390,8 +6510,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_BASH_SHELL+y} then : printf %s "(cached) " >&6 -else $as_nop - case $BASH_SHELL in +else case e in #( + e) case $BASH_SHELL in [\\/]* | ?:[\\/]*) ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path. ;; @@ -6417,6 +6537,7 @@ IFS=$as_save_IFS test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no" ;; +esac ;; esac fi BASH_SHELL=$ac_cv_path_BASH_SHELL @@ -6437,8 +6558,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_PERL+y} then : printf %s "(cached) " >&6 -else $as_nop - case $PERL in +else case e in #( + e) case $PERL in [\\/]* | ?:[\\/]*) ac_cv_path_PERL="$PERL" # Let the user override the test with a path. ;; @@ -6464,6 +6585,7 @@ IFS=$as_save_IFS test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" ;; +esac ;; esac fi PERL=$ac_cv_path_PERL @@ -6487,8 +6609,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_path_INSTALL_INFO+y} then : printf %s "(cached) " >&6 -else $as_nop - case $INSTALL_INFO in +else case e in #( + e) case $INSTALL_INFO in [\\/]* | ?:[\\/]*) ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. ;; @@ -6515,6 +6637,7 @@ IFS=$as_save_IFS test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" ;; +esac ;; esac fi INSTALL_INFO=$ac_cv_path_INSTALL_INFO @@ -6533,8 +6656,8 @@ printf %s "checking for .set assembler directive... " >&6; } if test ${libc_cv_asm_set_directive+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<EOF +else case e in #( + e) cat > conftest.s <<EOF .text foo: .set glibc_conftest_frobozz,foo @@ -6553,7 +6676,8 @@ if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ else libc_cv_asm_set_directive=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5 printf "%s\n" "$libc_cv_asm_set_directive" >&6; } @@ -6567,8 +6691,8 @@ printf %s "checking linker support for protected data symbol... " >&6; } if test ${libc_cv_protected_data+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF int bar __attribute__ ((visibility ("protected"))) = 1; EOF libc_cv_protected_data=no @@ -6592,7 +6716,8 @@ EOF fi fi rm -f conftest.* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5 printf "%s\n" "$libc_cv_protected_data" >&6; } @@ -6603,8 +6728,8 @@ printf %s "checking linker support for INSERT in linker script... " >&6; } if test ${libc_cv_insert+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF int __attribute__ ((section(".bar"))) bar = 0x12345678; int test (void) { return bar; } EOF @@ -6625,7 +6750,8 @@ EOF libc_cv_insert=yes fi rm -f conftest.* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5 printf "%s\n" "$libc_cv_insert" >&6; } @@ -6636,8 +6762,8 @@ printf %s "checking for broken __attribute__((alias()))... " >&6; } if test ${libc_cv_broken_alias_attribute+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF extern int foo (int x) __asm ("xyzzy"); int bar (int x) { return x; } extern __typeof (bar) foo __attribute ((weak, alias ("bar"))); @@ -6658,7 +6784,8 @@ EOF fi fi rm -f conftest.c conftest.s - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5 printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; } @@ -6671,15 +6798,16 @@ printf %s "checking whether to put _rtld_local into .sdata section... " >&6; } if test ${libc_cv_have_sdata_section+y} then : printf %s "(cached) " >&6 -else $as_nop - echo "int i;" > conftest.c +else case e in #( + e) echo "int i;" > conftest.c libc_cv_have_sdata_section=no if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \ | grep '\.sdata' >/dev/null; then libc_cv_have_sdata_section=yes fi rm -f conftest.c conftest.so - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5 printf "%s\n" "$libc_cv_have_sdata_section" >&6; } @@ -6693,8 +6821,8 @@ printf %s "checking for libunwind-support in compiler... " >&6; } if test ${libc_cv_cc_with_libunwind+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat > conftest.c <<EOF int main (void) { return 0; } EOF @@ -6704,7 +6832,8 @@ EOF else libc_cv_cc_with_libunwind=no fi - rm -f conftest* + rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5 printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; } @@ -6720,8 +6849,8 @@ printf %s "checking whether --noexecstack is desirable for .S files... " >&6; } if test ${libc_cv_as_noexecstack+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF void foo (void) { } EOF if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS @@ -6744,7 +6873,8 @@ then else libc_cv_as_noexecstack=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5 printf "%s\n" "$libc_cv_as_noexecstack" >&6; } @@ -6932,8 +7062,8 @@ printf %s "checking for -static-pie... " >&6; } if test ${libc_cv_static_pie+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -6941,10 +7071,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_static_pie=yes -else $as_nop - libc_cv_static_pie=no +else case e in #( + e) libc_cv_static_pie=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5 printf "%s\n" "$libc_cv_static_pie" >&6; } @@ -6956,8 +7088,8 @@ printf %s "checking for -fpie... " >&6; } if test ${libc_cv_fpie+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -6965,10 +7097,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_fpie=yes -else $as_nop - libc_cv_fpie=no +else case e in #( + e) libc_cv_fpie=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5 printf "%s\n" "$libc_cv_fpie" >&6; } @@ -6980,8 +7114,8 @@ printf %s "checking for GLOB_DAT reloc... " >&6; } if test ${libc_cv_has_glob_dat+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF extern int mumble; int foo (void) { return mumble; } EOF @@ -7003,7 +7137,8 @@ then else libc_cv_has_glob_dat=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5 printf "%s\n" "$libc_cv_has_glob_dat" >&6; } @@ -7014,8 +7149,8 @@ printf %s "checking for tls descriptor support... " >&6; } if test ${libc_cv_mtls_descriptor+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF __thread int i; void foo (void) { @@ -7034,7 +7169,8 @@ then else libc_cv_mtls_descriptor=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_descriptor" >&5 printf "%s\n" "$libc_cv_mtls_descriptor" >&6; } @@ -7047,8 +7183,8 @@ printf %s "checking if -Wno-ignored-attributes is required for aliases... " >&6; if test ${libc_cv_wno_ignored_attributes+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF void __foo (void) { } @@ -7065,7 +7201,8 @@ if ! { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c' then libc_cv_wno_ignored_attributes="-Wno-ignored-attributes" fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5 printf "%s\n" "$libc_cv_wno_ignored_attributes" >&6; } @@ -7077,8 +7214,8 @@ printf %s "checking whether cc puts quotes around section names... " >&6; } if test ${libc_cv_have_section_quotes+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF static const int foo __attribute__ ((section ("bar"))) = 1; EOF @@ -7092,7 +7229,8 @@ EOF libc_cv_have_section_quotes=unknown fi rm -f conftest.{c,s} - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5 printf "%s\n" "$libc_cv_have_section_quotes" >&6; } @@ -7106,8 +7244,8 @@ printf %s "checking for __builtin_memset... " >&6; } if test ${libc_cv_gcc_builtin_memset+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<\EOF +else case e in #( + e) cat > conftest.c <<\EOF void zero (void *x) { __builtin_memset (x, 0, 1000); @@ -7124,7 +7262,8 @@ then else libc_cv_gcc_builtin_memset=yes fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5 printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; } @@ -7138,8 +7277,8 @@ printf %s "checking for redirection of built-in functions... " >&6; } if test ${libc_cv_gcc_builtin_redirection+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<\EOF +else case e in #( + e) cat > conftest.c <<\EOF extern char *strstr (const char *, const char *) __asm ("my_strstr"); char *foo (const char *a, const char *b) { @@ -7157,7 +7296,8 @@ then else libc_cv_gcc_builtin_redirection=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5 printf "%s\n" "$libc_cv_gcc_builtin_redirection" >&6; } @@ -7170,8 +7310,8 @@ printf %s "checking for compiler option to disable generation of FMA instruction if test ${libc_cv_cc_nofma+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_cc_nofma= +else case e in #( + e) libc_cv_cc_nofma= for opt in -ffp-contract=off -mno-fused-madd; do if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -7182,7 +7322,8 @@ for opt in -ffp-contract=off -mno-fused-madd; do then : libc_cv_cc_nofma=$opt; break fi -done +done ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5 printf "%s\n" "$libc_cv_cc_nofma" >&6; } @@ -7194,8 +7335,8 @@ printf %s "checking for compiler option for CPU variant... " >&6; } if test ${libc_cv_cc_submachine+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_cc_submachine=no +else case e in #( + e) libc_cv_cc_submachine=no for opt in "-march=$submachine" "-mcpu=$submachine"; do if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -7208,7 +7349,8 @@ then : libc_cv_cc_submachine="$opt" break fi - done + done ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5 printf "%s\n" "$libc_cv_cc_submachine" >&6; } @@ -7223,8 +7365,8 @@ printf %s "checking for compiler option that -fsignaling-nans... " >&6; } if test ${libc_cv_cc_signaling_nans+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -7232,10 +7374,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_cc_signaling_nans=-fsignaling-nans -else $as_nop - libc_cv_cc_signaling_nans= +else case e in #( + e) libc_cv_cc_signaling_nans= ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5 printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; } @@ -7249,8 +7393,8 @@ __attribute__ ((__optimize__))... " >&6; } if test ${libc_cv_cc_loop_to_function+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF void __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns"))) foo (void) {} @@ -7265,7 +7409,8 @@ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c' then libc_cv_cc_loop_to_function=yes fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5 printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; } @@ -7298,8 +7443,9 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : LIBGD=yes -else $as_nop - LIBGD=no +else case e in #( + e) LIBGD=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext @@ -7323,16 +7469,22 @@ printf %s "checking for is_selinux_enabled in -lselinux... " >&6; } if test ${ac_cv_lib_selinux_is_selinux_enabled+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lselinux $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char is_selinux_enabled (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char is_selinux_enabled (void); int main (void) { @@ -7344,20 +7496,23 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_selinux_is_selinux_enabled=yes -else $as_nop - ac_cv_lib_selinux_is_selinux_enabled=no +else case e in #( + e) ac_cv_lib_selinux_is_selinux_enabled=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes then : have_selinux=yes -else $as_nop - have_selinux=no +else case e in #( + e) have_selinux=no ;; +esac fi if test x$with_selinux = xyes ; then @@ -7378,16 +7533,22 @@ printf %s "checking for audit_log_user_avc_message in -laudit... " >&6; } if test ${ac_cv_lib_audit_audit_log_user_avc_message+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-laudit $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char audit_log_user_avc_message (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char audit_log_user_avc_message (void); int main (void) { @@ -7399,20 +7560,23 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_audit_audit_log_user_avc_message=yes -else $as_nop - ac_cv_lib_audit_audit_log_user_avc_message=no +else case e in #( + e) ac_cv_lib_audit_audit_log_user_avc_message=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5 printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; } if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes then : have_libaudit=yes -else $as_nop - have_libaudit=no +else case e in #( + e) have_libaudit=no ;; +esac fi if test "x$have_libaudit" = xyes; then @@ -7428,16 +7592,22 @@ printf %s "checking for cap_init in -lcap... " >&6; } if test ${ac_cv_lib_cap_cap_init+y} then : printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS +else case e in #( + e) ac_check_lib_save_LIBS=$LIBS LIBS="-lcap $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char cap_init (); + builtin and then its argument prototype would still apply. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char cap_init (void); int main (void) { @@ -7449,20 +7619,23 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : ac_cv_lib_cap_cap_init=yes -else $as_nop - ac_cv_lib_cap_cap_init=no +else case e in #( + e) ac_cv_lib_cap_cap_init=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +LIBS=$ac_check_lib_save_LIBS ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5 printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; } if test "x$ac_cv_lib_cap_cap_init" = xyes then : have_libcap=yes -else $as_nop - have_libcap=no +else case e in #( + e) have_libcap=no ;; +esac fi if test "x$have_libcap" = xyes; then @@ -7482,8 +7655,8 @@ printf %s "checking for maximum supported _FORTIFY_SOURCE level... " >&6; } if test ${libc_cv_supported_fortify_source+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7498,12 +7671,14 @@ _ACEOF if ac_fn_c_try_link "$LINENO" then : libc_cv_supported_fortify_source=3 -else $as_nop - libc_cv_supported_fortify_source=2 +else case e in #( + e) libc_cv_supported_fortify_source=2 ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam \ conftest$ac_exeext conftest.$ac_ext - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5 printf "%s\n" "$libc_cv_supported_fortify_source" >&6; } @@ -7517,8 +7692,9 @@ case $enable_fortify_source in #( if test $libc_cv_supported_fortify_source = 3 then : libc_cv_fortify_source=yes -else $as_nop - as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 ;; +esac fi ;; #( *) : libc_cv_fortify_source=no ;; @@ -7542,8 +7718,8 @@ printf %s "checking whether the assembler requires one version per symbol... " > if test ${libc_cv_symver_needs_alias+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<EOF +else case e in #( + e) cat > conftest.s <<EOF .text testfunc: .globl testfunc @@ -7557,7 +7733,8 @@ EOF libc_cv_symver_needs_alias=yes fi rm conftest.* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5 printf "%s\n" "$libc_cv_symver_needs_alias" >&6; } @@ -7571,8 +7748,8 @@ printf %s "checking for __builtin_trap with no external dependencies... " >&6; } if test ${libc_cv_builtin_trap+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_builtin_trap=no +else case e in #( + e) libc_cv_builtin_trap=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -7597,7 +7774,8 @@ if test -z "$libc_undefs"; then libc_cv_builtin_trap=yes fi fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5 printf "%s\n" "$libc_cv_builtin_trap" >&6; } @@ -7618,8 +7796,8 @@ printf %s "checking whether the C++ compiler supports thread_local... " >&6; } if test ${libc_cv_cxx_thread_local+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) old_CXXFLAGS="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -std=gnu++11" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -7645,12 +7823,14 @@ _ACEOF if ac_fn_cxx_try_compile "$LINENO" then : libc_cv_cxx_thread_local=yes -else $as_nop - libc_cv_cxx_thread_local=no +else case e in #( + e) libc_cv_cxx_thread_local=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CXXFLAGS="$old_CXXFLAGS" - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5 printf "%s\n" "$libc_cv_cxx_thread_local" >&6; } @@ -7753,8 +7933,8 @@ printf %s "checking whether -fPIC is default... " >&6; } if test ${libc_cv_pic_default+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_pic_default=yes +else case e in #( + e) libc_cv_pic_default=yes cat > conftest.c <<EOF #if defined __PIC__ || defined __pic__ || defined PIC || defined pic # error PIC is default. @@ -7763,7 +7943,8 @@ EOF if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then libc_cv_pic_default=no fi -rm -f conftest.* +rm -f conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5 printf "%s\n" "$libc_cv_pic_default" >&6; } @@ -7775,8 +7956,8 @@ printf %s "checking whether -fPIE is default... " >&6; } if test ${libc_cv_cc_pie_default+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_cc_pie_default=yes +else case e in #( + e) libc_cv_cc_pie_default=yes cat > conftest.c <<EOF #if defined __PIE__ || defined __pie__ || defined PIE || defined pie # error PIE is default. @@ -7785,7 +7966,8 @@ EOF if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then libc_cv_cc_pie_default=no fi -rm -f conftest.* +rm -f conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5 printf "%s\n" "$libc_cv_cc_pie_default" >&6; } @@ -7803,8 +7985,9 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_pie_supported=yes -else $as_nop - libc_cv_pie_supported=no +else case e in #( + e) libc_cv_pie_supported=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5 @@ -7833,8 +8016,9 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_static_pie_supported=yes -else $as_nop - libc_cv_static_pie_supported=no +else case e in #( + e) libc_cv_static_pie_supported=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi @@ -7892,8 +8076,8 @@ cat >confcache <<\_ACEOF # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the +# 'ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* 'ac_cv_foo' will be assigned the # following values. _ACEOF @@ -7923,14 +8107,14 @@ printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) - # `set' does not quote correctly, so add quotes: double-quote + # 'set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) - # `set' quotes correctly as required by POSIX, so do not add quotes. + # 'set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | @@ -8020,7 +8204,6 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh -as_nop=: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 then : emulate sh @@ -8029,12 +8212,13 @@ then : # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST -else $as_nop - case `(set -o) 2>/dev/null` in #( +else case e in #( + e) case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; +esac ;; esac fi @@ -8106,7 +8290,7 @@ IFS=$as_save_IFS ;; esac -# We did not find ourselves, most probably we were run as `sh COMMAND' +# We did not find ourselves, most probably we were run as 'sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 @@ -8135,7 +8319,6 @@ as_fn_error () } # as_fn_error - # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. @@ -8175,11 +8358,12 @@ then : { eval $1+=\$2 }' -else $as_nop - as_fn_append () +else case e in #( + e) as_fn_append () { eval $1=\$$1\$2 - } + } ;; +esac fi # as_fn_append # as_fn_arith ARG... @@ -8193,11 +8377,12 @@ then : { as_val=$(( $* )) }' -else $as_nop - as_fn_arith () +else case e in #( + e) as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` - } + } ;; +esac fi # as_fn_arith @@ -8280,9 +8465,9 @@ if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -pR'. + # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. + # In both cases, we have to default to 'cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then @@ -8363,10 +8548,12 @@ as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" +as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated # Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" +as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed '$as_sed_sh'" # deprecated exec 6>&1 @@ -8382,7 +8569,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # values after options handling. ac_log=" This file was extended by GNU C Library $as_me (see version.h), which was -generated by GNU Autoconf 2.71. Invocation command line was +generated by GNU Autoconf 2.72. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -8414,7 +8601,7 @@ _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ -\`$as_me' instantiates files and other configuration actions +'$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. @@ -8452,10 +8639,10 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config='$ac_cs_config_escaped' ac_cs_version="\\ GNU C Library config.status (see version.h) -configured by $0, generated by GNU Autoconf 2.71, +configured by $0, generated by GNU Autoconf 2.72, with options \\"\$ac_cs_config\\" -Copyright (C) 2021 Free Software Foundation, Inc. +Copyright (C) 2023 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." @@ -8515,8 +8702,8 @@ do ac_need_defaults=false;; --he | --h) # Conflict between --help and --header - as_fn_error $? "ambiguous option: \`$1' -Try \`$0 --help' for more information.";; + as_fn_error $? "ambiguous option: '$1' +Try '$0 --help' for more information.";; --help | --hel | -h ) printf "%s\n" "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ @@ -8524,8 +8711,8 @@ Try \`$0 --help' for more information.";; ac_cs_silent=: ;; # This is an error. - -*) as_fn_error $? "unrecognized option: \`$1' -Try \`$0 --help' for more information." ;; + -*) as_fn_error $? "unrecognized option: '$1' +Try '$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; @@ -8583,7 +8770,7 @@ do "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; esac done @@ -8603,7 +8790,7 @@ fi # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: -# after its creation but before its name has been assigned to `$tmp'. +# after its creation but before its name has been assigned to '$tmp'. $debug || { tmp= ac_tmp= @@ -8627,7 +8814,7 @@ ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. -# This happens for instance with `./config.status config.h'. +# This happens for instance with './config.status config.h'. if test -n "$CONFIG_FILES"; then @@ -8785,13 +8972,13 @@ fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. -# This happens for instance with `./config.status Makefile'. +# This happens for instance with './config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF -# Transform confdefs.h into an awk script `defines.awk', embedded as +# Transform confdefs.h into an awk script 'defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. @@ -8901,7 +9088,7 @@ do esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -8923,19 +9110,19 @@ do -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, - # because $ac_f cannot contain `:'. + # because $ac_f cannot contain ':'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done - # Let's still pretend it is `configure' which instantiates (i.e., don't + # Let's still pretend it is 'configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` @@ -9063,7 +9250,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 esac _ACEOF -# Neutralize VPATH when `$srcdir' = `.'. +# Neutralize VPATH when '$srcdir' = '.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 @@ -9093,9 +9280,9 @@ test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&5 -printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" diff --git a/manual/install.texi b/manual/install.texi index 7c44594617..3bb2f08b94 100644 --- a/manual/install.texi +++ b/manual/install.texi @@ -643,7 +643,7 @@ If you change any of the @file{configure.ac} files you will also need @itemize @bullet @item -GNU @code{autoconf} 2.71 (exactly) +GNU @code{autoconf} 2.72 (exactly) @end itemize @noindent diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure index 9606137e8d..4bd5496a4a 100755 --- a/sysdeps/aarch64/configure +++ b/sysdeps/aarch64/configure @@ -14,14 +14,14 @@ printf "%s\n" "#define SUPPORT_STATIC_PIE 1" >>confdefs.h # the dynamic linker via %ifdef. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -35,13 +35,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -50,14 +51,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -65,35 +66,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -107,13 +97,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -122,14 +113,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -137,32 +128,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 printf %s "checking for big endian... " >&6; } if test ${libc_cv_aarch64_be+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __AARCH64EB__ yes @@ -170,14 +162,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_aarch64_be=yes -else $as_nop - libc_cv_aarch64_be=no +else case e in #( + e) libc_cv_aarch64_be=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_be" >&5 printf "%s\n" "$libc_cv_aarch64_be" >&6; } @@ -199,8 +193,8 @@ printf %s "checking for BTI support... " >&6; } if test ${libc_cv_aarch64_bti+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF void foo (void) { } EOF libc_cv_aarch64_bti=no @@ -225,7 +219,8 @@ EOF then libc_cv_aarch64_bti=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_bti" >&5 printf "%s\n" "$libc_cv_aarch64_bti" >&6; } @@ -246,8 +241,8 @@ printf %s "checking if pac-ret is enabled... " >&6; } if test ${libc_cv_aarch64_pac_ret+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF int bar (void); int foo (void) { return bar () + 1; } EOF @@ -267,7 +262,8 @@ EOF then libc_cv_aarch64_pac_ret=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_pac_ret" >&5 printf "%s\n" "$libc_cv_aarch64_pac_ret" >&6; } @@ -282,8 +278,8 @@ printf %s "checking for variant PCS support... " >&6; } if test ${libc_cv_aarch64_variant_pcs+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.S <<EOF +else case e in #( + e) cat > conftest.S <<EOF .global foo .type foo, %function .variant_pcs foo @@ -310,7 +306,8 @@ EOF then libc_cv_aarch64_variant_pcs=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_variant_pcs" >&5 printf "%s\n" "$libc_cv_aarch64_variant_pcs" >&6; } @@ -323,8 +320,8 @@ printf %s "checking for SVE support in assembler... " >&6; } if test ${libc_cv_aarch64_sve_asm+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<\EOF +else case e in #( + e) cat > conftest.s <<\EOF .arch armv8.2-a+sve ptrue p0.b EOF @@ -338,7 +335,8 @@ if { ac_try='${CC-cc} -c conftest.s 1>&5' else libc_cv_aarch64_sve_asm=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_sve_asm" >&5 printf "%s\n" "$libc_cv_aarch64_sve_asm" >&6; } @@ -357,8 +355,8 @@ printf %s "checking for availability of SVE ACLE... " >&6; } if test ${libc_cv_aarch64_sve_acle+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF #include <arm_sve.h> EOF if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fsyntax-only -ffreestanding conftest.c' @@ -371,7 +369,8 @@ EOF else libc_cv_aarch64_sve_acle=no fi - rm conftest.c + rm conftest.c ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_sve_acle" >&5 printf "%s\n" "$libc_cv_aarch64_sve_acle" >&6; } diff --git a/sysdeps/arc/configure b/sysdeps/arc/configure index 7b27e26490..08e4f23f89 100644 --- a/sysdeps/arc/configure +++ b/sysdeps/arc/configure @@ -13,14 +13,14 @@ printf "%s\n" "#define ASM_LINE_SEP $libc_cv_asm_line_sep" >>confdefs.h # For big endian ABI, generate a symbol for selecting right dynamic linker -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -34,13 +34,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -49,14 +50,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -64,35 +65,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -106,13 +96,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -121,14 +112,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -136,32 +127,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 printf %s "checking for big endian... " >&6; } if test ${libc_cv_arc_be+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __BIG_ENDIAN__ yes @@ -169,14 +161,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_arc_be=yes -else $as_nop - libc_cv_arc_be=no +else case e in #( + e) libc_cv_arc_be=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arc_be" >&5 printf "%s\n" "$libc_cv_arc_be" >&6; } diff --git a/sysdeps/arm/configure b/sysdeps/arm/configure index 4ef4d46cbd..935e022c74 100644 --- a/sysdeps/arm/configure +++ b/sysdeps/arm/configure @@ -10,14 +10,14 @@ # the dynamic linker via %ifdef. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -31,13 +31,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -46,14 +47,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -61,35 +62,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -103,13 +93,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -118,14 +109,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -133,32 +124,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the ARM hard-float ABI" >&5 printf %s "checking whether the compiler is using the ARM hard-float ABI... " >&6; } if test ${libc_cv_arm_pcs_vfp+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __ARM_PCS_VFP yes @@ -166,14 +158,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_arm_pcs_vfp=yes -else $as_nop - libc_cv_arm_pcs_vfp=no +else case e in #( + e) libc_cv_arm_pcs_vfp=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcs_vfp" >&5 printf "%s\n" "$libc_cv_arm_pcs_vfp" >&6; } @@ -192,8 +186,8 @@ printf %s "checking whether VFP supports 32 registers... " >&6; } if test ${libc_cv_arm_pcs_vfp_d32+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -206,10 +200,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_arm_pcs_vfp_d32=yes -else $as_nop - libc_cv_arm_pcs_vfp_d32=no +else case e in #( + e) libc_cv_arm_pcs_vfp_d32=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcs_vfp_d32" >&5 printf "%s\n" "$libc_cv_arm_pcs_vfp_d32" >&6; } @@ -224,8 +220,8 @@ printf %s "checking whether PC-relative relocs in movw/movt work properly... " > if test ${libc_cv_arm_pcrel_movw+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat > conftest.s <<\EOF .syntax unified .arm @@ -259,7 +255,8 @@ LC_ALL=C $READELF -dr conftest.so > conftest.dr 2>&5 && grep -F 'TEXTREL R_ARM_NONE' conftest.dr > /dev/null || libc_cv_arm_pcrel_movw=yes } -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcrel_movw" >&5 printf "%s\n" "$libc_cv_arm_pcrel_movw" >&6; } @@ -276,8 +273,8 @@ printf %s "checking whether TPOFF relocs with addends are assembled correctly... if test ${libc_cv_arm_tpoff_addend+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat > conftest.s <<\EOF .syntax unified .arm @@ -306,7 +303,8 @@ $1 ~ /0x0+/ && $2 ~ /[0-9a-f]+/ { END { exit(result) } ' conftest.x 2>&5 && libc_cv_arm_tpoff_addend=yes } -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_tpoff_addend" >&5 printf "%s\n" "$libc_cv_arm_tpoff_addend" >&6; } diff --git a/sysdeps/hppa/configure b/sysdeps/hppa/configure index cf5f9e5d7e..0390946d88 100644 --- a/sysdeps/hppa/configure +++ b/sysdeps/hppa/configure @@ -5,8 +5,8 @@ printf %s "checking for assembler line separator... " >&6; } if test ${libc_cv_asm_line_sep+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<EOF +else case e in #( + e) cat > conftest.s <<EOF nop ; is_old_puffin EOF if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5' @@ -24,7 +24,8 @@ else fi libc_cv_asm_line_sep=';' fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_line_sep" >&5 printf "%s\n" "$libc_cv_asm_line_sep" >&6; } diff --git a/sysdeps/i386/configure b/sysdeps/i386/configure index 84656cef6e..a618692adf 100644 --- a/sysdeps/i386/configure +++ b/sysdeps/i386/configure @@ -61,8 +61,8 @@ printf %s "checking for linker static PIE support... " >&6; } if test ${libc_cv_ld_static_pie+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<\EOF +else case e in #( + e) cat > conftest.s <<\EOF .text .global _start _start: @@ -80,7 +80,8 @@ EOF libc_cv_ld_static_pie=yes fi fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_static_pie" >&5 printf "%s\n" "$libc_cv_ld_static_pie" >&6; } diff --git a/sysdeps/ieee754/ldbl-opt/configure b/sysdeps/ieee754/ldbl-opt/configure index 68d8d7b465..bc6552da0b 100644 --- a/sysdeps/ieee754/ldbl-opt/configure +++ b/sysdeps/ieee754/ldbl-opt/configure @@ -7,8 +7,8 @@ printf %s "checking whether $CC $CFLAGS supports -mlong-double-128... " >&6; } if test ${libc_cv_mlong_double_128+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mlong-double-128" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28,11 +28,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mlong_double_128=yes -else $as_nop - libc_cv_mlong_double_128=no +else case e in #( + e) libc_cv_mlong_double_128=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -CFLAGS="$save_CFLAGS" +CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mlong_double_128" >&5 printf "%s\n" "$libc_cv_mlong_double_128" >&6; } diff --git a/sysdeps/loongarch/configure b/sysdeps/loongarch/configure index afcef6cd22..d3d9fec910 100644 --- a/sysdeps/loongarch/configure +++ b/sysdeps/loongarch/configure @@ -9,8 +9,8 @@ printf %s "checking if ${CC-cc} is sufficient to build static PIE on LoongArch.. if test ${libc_cv_static_pie_on_loongarch+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat > conftest.S <<\EOF .global _start .type _start, @function @@ -48,7 +48,8 @@ EOF then libc_cv_static_pie_on_loongarch=yes fi - rm -rf conftest* + rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_on_loongarch" >&5 printf "%s\n" "$libc_cv_static_pie_on_loongarch" >&6; } @@ -64,8 +65,8 @@ printf %s "checking whether $CC supports option -mcmodel=medium... " >&6; } if test ${libc_cv_loongarch_cmodel_medium+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) if { ac_try='${CC-cc} -c $CFLAGS -mcmodel=medium /dev/null 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 @@ -75,7 +76,8 @@ else $as_nop libc_cv_loongarch_cmodel_medium=yes else libc_cv_loongarch_cmodel_medium=no - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_cmodel_medium" >&5 printf "%s\n" "$libc_cv_loongarch_cmodel_medium" >&6; } @@ -88,8 +90,8 @@ printf %s "checking for vector support in assembler... " >&6; } if test ${libc_cv_loongarch_vec_asm+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<\EOF +else case e in #( + e) cat > conftest.s <<\EOF vld $vr0, $sp, 0 EOF if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest 1>&5' @@ -102,7 +104,8 @@ if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest 1>&5' else libc_cv_loongarch_vec_asm=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_vec_asm" >&5 printf "%s\n" "$libc_cv_loongarch_vec_asm" >&6; } @@ -116,8 +119,8 @@ printf %s "checking for vector support in compiler... " >&6; } if test ${libc_cv_loongarch_vec_com+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -131,10 +134,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_loongarch_vec_com=yes -else $as_nop - libc_cv_loongarch_vec_com=no +else case e in #( + e) libc_cv_loongarch_vec_com=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_loongarch_vec_com" >&5 printf "%s\n" "$libc_cv_loongarch_vec_com" >&6; } diff --git a/sysdeps/mach/configure b/sysdeps/mach/configure index f15160d0d8..5779efd1ef 100644 --- a/sysdeps/mach/configure +++ b/sysdeps/mach/configure @@ -11,18 +11,20 @@ printf %s "checking for $2... " >&6; } if eval test \${$3+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO" then : eval "$3=yes" -else $as_nop - eval "$3=no" +else case e in #( + e) eval "$3=no" ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext ;; +esac fi eval ac_res=\$$3 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 @@ -40,8 +42,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_MIG+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$MIG"; then +else case e in #( + e) if test -n "$MIG"; then ac_cv_prog_MIG="$MIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -63,7 +65,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi MIG=$ac_cv_prog_MIG if test -n "$MIG"; then @@ -85,8 +88,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_ac_ct_MIG+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$ac_ct_MIG"; then +else case e in #( + e) if test -n "$ac_ct_MIG"; then ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -108,7 +111,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi ac_ct_MIG=$ac_cv_prog_ac_ct_MIG if test -n "$ac_ct_MIG"; then @@ -153,16 +157,18 @@ ac_fn_c_check_header_preproc "$LINENO" "mach/mach_types.h" "ac_cv_header_mach_ma if test "x$ac_cv_header_mach_mach_types_h" = xyes then : -else $as_nop - as_fn_error $? "cannot find Mach headers" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "cannot find Mach headers" "$LINENO" 5 ;; +esac fi ac_fn_c_check_header_preproc "$LINENO" "mach/mach_types.defs" "ac_cv_header_mach_mach_types_defs" if test "x$ac_cv_header_mach_mach_types_defs" = xyes then : -else $as_nop - as_fn_error $? "cannot find Mach .defs files" "$LINENO" 5 +else case e in #( + e) as_fn_error $? "cannot find Mach .defs files" "$LINENO" 5 ;; +esac fi @@ -173,8 +179,8 @@ printf %s "checking for task_t in mach/mach_types.h... " >&6; } if test ${libc_cv_mach_task_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <mach/mach_types.h> int @@ -188,10 +194,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mach_task_t=task_t -else $as_nop - libc_cv_mach_task_t=task_port_t +else case e in #( + e) libc_cv_mach_task_t=task_port_t ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_task_t" >&5 printf "%s\n" "$libc_cv_mach_task_t" >&6; } @@ -203,8 +211,8 @@ printf %s "checking for thread_t in mach/mach_types.h... " >&6; } if test ${libc_cv_mach_thread_t+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <mach/mach_types.h> int @@ -218,10 +226,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mach_thread_t=thread_t -else $as_nop - libc_cv_mach_thread_t=thread_port_t +else case e in #( + e) libc_cv_mach_thread_t=thread_port_t ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_thread_t" >&5 printf "%s\n" "$libc_cv_mach_thread_t" >&6; } @@ -234,8 +244,8 @@ printf %s "checking for creation_time in task_basic_info... " >&6; } if test ${libc_cv_mach_task_creation_time+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <mach/task_info.h> int @@ -252,10 +262,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mach_task_creation_time=yes -else $as_nop - libc_cv_mach_task_creation_time=no +else case e in #( + e) libc_cv_mach_task_creation_time=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_task_creation_time" >&5 printf "%s\n" "$libc_cv_mach_task_creation_time" >&6; } @@ -269,7 +281,7 @@ for ifc in mach mach4 gnumach \ processor processor_set task task_notify thread_act vm_map \ memory_object memory_object_default i386/mach_i386 x86_64/mach_i386 \ ; do - as_ac_Header=`printf "%s\n" "ac_cv_header_mach/${ifc}.defs" | $as_tr_sh` + as_ac_Header=`printf "%s\n" "ac_cv_header_mach/${ifc}.defs" | sed "$as_sed_sh"` ac_fn_c_check_header_preproc "$LINENO" "mach/${ifc}.defs" "$as_ac_Header" if eval test \"x\$"$as_ac_Header"\" = x"yes" then : @@ -281,14 +293,14 @@ if test "x$mach_interface_list" = x; then as_fn_error $? "what manner of Mach is this?" "$LINENO" 5 fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -302,13 +314,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -317,14 +330,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -332,35 +345,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP -fi - + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -374,13 +376,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -389,14 +392,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -404,45 +407,48 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for host_page_size in mach_host.defs" >&5 printf %s "checking for host_page_size in mach_host.defs... " >&6; } if test ${libc_cv_mach_host_page_size+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <mach/mach_host.defs> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "host_page_size" >/dev/null 2>&1 + $EGREP_TRADITIONAL "host_page_size" >/dev/null 2>&1 then : libc_cv_mach_host_page_size=yes -else $as_nop - libc_cv_mach_host_page_size=no +else case e in #( + e) libc_cv_mach_host_page_size=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_host_page_size" >&5 printf "%s\n" "$libc_cv_mach_host_page_size" >&6; } @@ -455,13 +461,14 @@ ac_fn_c_check_header_preproc "$LINENO" "mach/machine/ndr_def.h" "ac_cv_header_ma if test "x$ac_cv_header_mach_machine_ndr_def_h" = xyes then : DEFINES="$DEFINES -DNDR_DEF_HEADER='<mach/machine/ndr_def.h>'" -else $as_nop - ac_fn_c_check_header_preproc "$LINENO" "machine/ndr_def.h" "ac_cv_header_machine_ndr_def_h" +else case e in #( + e) ac_fn_c_check_header_preproc "$LINENO" "machine/ndr_def.h" "ac_cv_header_machine_ndr_def_h" if test "x$ac_cv_header_machine_ndr_def_h" = xyes then : DEFINES="$DEFINES -DNDR_DEF_HEADER='<machine/ndr_def.h>'" fi - + ;; +esac fi @@ -470,21 +477,23 @@ printf %s "checking for i386_io_perm_modify in mach_i386.defs... " >&6; } if test ${libc_cv_mach_i386_ioports+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <mach/machine/mach_i386.defs> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "i386_io_perm_modify" >/dev/null 2>&1 + $EGREP_TRADITIONAL "i386_io_perm_modify" >/dev/null 2>&1 then : libc_cv_mach_i386_ioports=yes -else $as_nop - libc_cv_mach_i386_ioports=no +else case e in #( + e) libc_cv_mach_i386_ioports=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_i386_ioports" >&5 printf "%s\n" "$libc_cv_mach_i386_ioports" >&6; } @@ -498,21 +507,23 @@ printf %s "checking for i386_set_gdt in mach_i386.defs... " >&6; } if test ${libc_cv_mach_i386_gdt+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <mach/machine/mach_i386.defs> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "i386_set_gdt" >/dev/null 2>&1 + $EGREP_TRADITIONAL "i386_set_gdt" >/dev/null 2>&1 then : libc_cv_mach_i386_gdt=yes -else $as_nop - libc_cv_mach_i386_gdt=no +else case e in #( + e) libc_cv_mach_i386_gdt=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_i386_gdt" >&5 printf "%s\n" "$libc_cv_mach_i386_gdt" >&6; } diff --git a/sysdeps/mach/hurd/configure b/sysdeps/mach/hurd/configure index cd5af1cd20..6ca3bab511 100644 --- a/sysdeps/mach/hurd/configure +++ b/sysdeps/mach/hurd/configure @@ -15,8 +15,8 @@ printf %s "checking Hurd header version... " >&6; } if test ${libc_cv_hurd_version+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <hurd/version.h> int @@ -34,10 +34,12 @@ _ACEOF if ac_fn_c_try_cpp "$LINENO" then : libc_cv_hurd_version=ok -else $as_nop - libc_cv_hurd_version=bad +else case e in #( + e) libc_cv_hurd_version=bad ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_version" >&5 printf "%s\n" "$libc_cv_hurd_version" >&6; } @@ -47,15 +49,14 @@ fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -69,13 +70,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -84,14 +86,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -99,35 +101,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -141,13 +132,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -156,14 +148,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -171,45 +163,48 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for proc_getchildren_rusage in process.defs" >&5 printf %s "checking for proc_getchildren_rusage in process.defs... " >&6; } if test ${libc_cv_hurd_rpc_proc_getchildren_rusage+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <hurd/process.defs> _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "proc_getchildren_rusage" >/dev/null 2>&1 + $EGREP_TRADITIONAL "proc_getchildren_rusage" >/dev/null 2>&1 then : libc_cv_hurd_rpc_proc_getchildren_rusage=yes -else $as_nop - libc_cv_hurd_rpc_proc_getchildren_rusage=no +else case e in #( + e) libc_cv_hurd_rpc_proc_getchildren_rusage=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_rpc_proc_getchildren_rusage" >&5 printf "%s\n" "$libc_cv_hurd_rpc_proc_getchildren_rusage" >&6; } diff --git a/sysdeps/mips/configure b/sysdeps/mips/configure index 1e8c6711e6..60dbd947e2 100644 --- a/sysdeps/mips/configure +++ b/sysdeps/mips/configure @@ -6,14 +6,14 @@ printf "%s\n" "#define HIDDEN_VAR_NEEDS_DYNAMIC_RELOC 1" >>confdefs.h -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -27,13 +27,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -42,14 +43,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -57,35 +58,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -99,13 +89,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -114,14 +105,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -129,32 +120,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the 2008 NaN encoding" >&5 printf %s "checking whether the compiler is using the 2008 NaN encoding... " >&6; } if test ${libc_cv_mips_nan2008+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ dnl #ifdef __mips_nan2008 @@ -162,14 +154,16 @@ yes #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_mips_nan2008=yes -else $as_nop - libc_cv_mips_nan2008=no +else case e in #( + e) libc_cv_mips_nan2008=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_nan2008" >&5 printf "%s\n" "$libc_cv_mips_nan2008" >&6; } diff --git a/sysdeps/nios2/configure b/sysdeps/nios2/configure index 2fb230cbaa..d25684d5ad 100644 --- a/sysdeps/nios2/configure +++ b/sysdeps/nios2/configure @@ -4,14 +4,14 @@ # Nios II big endian is not yet supported. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -25,13 +25,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -40,14 +41,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -55,35 +56,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -97,13 +87,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -112,14 +103,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -127,32 +118,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5 printf %s "checking for big endian... " >&6; } if test ${libc_cv_nios2_be+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __nios2_big_endian__ yes @@ -160,14 +152,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_nios2_be=yes -else $as_nop - libc_cv_nios2_be=no +else case e in #( + e) libc_cv_nios2_be=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_nios2_be" >&5 printf "%s\n" "$libc_cv_nios2_be" >&6; } diff --git a/sysdeps/powerpc/powerpc32/fpu/configure b/sysdeps/powerpc/powerpc32/fpu/configure index da6fbb11bf..4d285c7617 100644 --- a/sysdeps/powerpc/powerpc32/fpu/configure +++ b/sysdeps/powerpc/powerpc32/fpu/configure @@ -7,8 +7,8 @@ printf %s "checking for fcfid use... " >&6; } if test ${libc_cv_ppc_fcfid+y} then : printf %s "(cached) " >&6 -else $as_nop - echo 'double foo (int x) { return (double) x; }' > conftest.c +else case e in #( + e) echo 'double foo (int x) { return (double) x; }' > conftest.c libc_cv_ppc_fcfid=no if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -20,7 +20,8 @@ if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' libc_cv_ppc_fcfid=yes fi fi -rm -rf conftest* +rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fcfid" >&5 printf "%s\n" "$libc_cv_ppc_fcfid" >&6; } @@ -35,8 +36,8 @@ printf %s "checking for fctidz use... " >&6; } if test ${libc_cv_ppc_fctidz+y} then : printf %s "(cached) " >&6 -else $as_nop - echo 'long long int foo (double x) { return (long long int) x; }' > conftest.c +else case e in #( + e) echo 'long long int foo (double x) { return (long long int) x; }' > conftest.c libc_cv_ppc_fctidz=no if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -48,7 +49,8 @@ if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' libc_cv_ppc_fctidz=yes fi fi -rm -rf conftest* +rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fctidz" >&5 printf "%s\n" "$libc_cv_ppc_fctidz" >&6; } diff --git a/sysdeps/powerpc/powerpc64/configure b/sysdeps/powerpc/powerpc64/configure index 9df2ceaa1f..3e3a83505a 100644 --- a/sysdeps/powerpc/powerpc64/configure +++ b/sysdeps/powerpc/powerpc64/configure @@ -9,8 +9,8 @@ printf %s "checking for support for overlapping .opd entries... " >&6; } if test ${libc_cv_overlapping_opd+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_overlapping_opd=no +else case e in #( + e) libc_cv_overlapping_opd=no echo 'void foo (void) {}' > conftest.c if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $libc_cv_cc_submachine -S conftest.c -o conftest.s 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -27,7 +27,8 @@ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $libc_cv_cc_submachine -S conftest.c -o fi fi rm -f conftest.c conftest.s - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_overlapping_opd" >&5 printf "%s\n" "$libc_cv_overlapping_opd" >&6; } @@ -45,8 +46,8 @@ printf %s "checking if the compiler supports @notoc... " >&6; } if test ${libc_cv_ppc64_notoc+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF int bar (void); int foo (void) { return bar () + 1; } EOF @@ -66,7 +67,8 @@ EOF then libc_cv_ppc64_notoc=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_notoc" >&5 printf "%s\n" "$libc_cv_ppc64_notoc" >&6; } diff --git a/sysdeps/powerpc/powerpc64/le/configure b/sysdeps/powerpc/powerpc64/le/configure index 3ec457b10b..7092f61bd4 100644 --- a/sysdeps/powerpc/powerpc64/le/configure +++ b/sysdeps/powerpc/powerpc64/le/configure @@ -9,8 +9,8 @@ printf %s "checking if the target machine is at least POWER8... " >&6; } if test ${libc_cv_target_power8_ok+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -22,10 +22,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_target_power8_ok=yes -else $as_nop - libc_cv_target_power8_ok=no +else case e in #( + e) libc_cv_target_power8_ok=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_target_power8_ok" >&5 printf "%s\n" "$libc_cv_target_power8_ok" >&6; } @@ -42,8 +44,8 @@ printf %s "checking if the compiler supports -mno-gnu-attribute... " >&6; } if test ${libc_cv_no_gnu_attr_ok+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -52,10 +54,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_no_gnu_attr_ok=yes -else $as_nop - libc_cv_no_gnu_attr_ok=no +else case e in #( + e) libc_cv_no_gnu_attr_ok=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_no_gnu_attr_ok" >&5 printf "%s\n" "$libc_cv_no_gnu_attr_ok" >&6; } @@ -70,8 +74,8 @@ printf %s "checking if $CC compiles signbit with 128-bit floating point type... if test ${libc_cv_compiler_powerpc64le_ice+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mabi=ieeelongdouble -Wno-psabi" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -86,11 +90,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_compiler_powerpc64le_ice=yes -else $as_nop - libc_cv_compiler_powerpc64le_ice=no +else case e in #( + e) libc_cv_compiler_powerpc64le_ice=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -CFLAGS="$save_CFLAGS" +CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ice" >&5 printf "%s\n" "$libc_cv_compiler_powerpc64le_ice" >&6; } @@ -104,8 +110,8 @@ printf %s "checking if $CC compiles with -mabi=ieeelongdouble and -mlong-double- if test ${libc_cv_compiler_powerpc64le_ldbl128_mabi+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mabi=ieeelongdouble -mlong-double-128" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -116,11 +122,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_compiler_powerpc64le_ldbl128_mabi=yes -else $as_nop - libc_cv_compiler_powerpc64le_ldbl128_mabi=no +else case e in #( + e) libc_cv_compiler_powerpc64le_ldbl128_mabi=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -CFLAGS="$save_CFLAGS" +CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ldbl128_mabi" >&5 printf "%s\n" "$libc_cv_compiler_powerpc64le_ldbl128_mabi" >&6; } @@ -138,8 +146,8 @@ printf %s "checking for $ac_word... " >&6; } if test ${ac_cv_prog_OBJCOPY+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -n "$OBJCOPY"; then +else case e in #( + e) if test -n "$OBJCOPY"; then ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -161,7 +169,8 @@ done done IFS=$as_save_IFS -fi +fi ;; +esac fi OBJCOPY=$ac_cv_prog_OBJCOPY if test -n "$OBJCOPY"; then diff --git a/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure b/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure index 130e3bebc7..61f0c713d7 100644 --- a/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure +++ b/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure @@ -8,8 +8,8 @@ printf %s "checking if the compiler supports -mcpu=power10... " >&6; } if test ${libc_cv_mcpu_power10+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -18,10 +18,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mcpu_power10=yes -else $as_nop - libc_cv_mcpu_power10=no +else case e in #( + e) libc_cv_mcpu_power10=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mcpu_power10" >&5 printf "%s\n" "$libc_cv_mcpu_power10" >&6; } diff --git a/sysdeps/riscv/configure b/sysdeps/riscv/configure index c8f01709f8..3ae4ae3bdb 100644 --- a/sysdeps/riscv/configure +++ b/sysdeps/riscv/configure @@ -7,8 +7,8 @@ printf %s "checking for R_RISCV_ALIGN linker relaxation support... " >&6; } if test ${libc_cv_riscv_r_align+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.S <<EOF +else case e in #( + e) cat > conftest.S <<EOF .align 3 foo: li a0,42 @@ -24,7 +24,8 @@ EOF then libc_cv_riscv_r_align=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_riscv_r_align" >&5 printf "%s\n" "$libc_cv_riscv_r_align" >&6; } @@ -36,8 +37,8 @@ printf %s "checking if the toolchain is sufficient to build static PIE on RISC-V if test ${libc_cv_static_pie_on_riscv+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat > conftest1.S <<\EOF .globl _start .type _start, @function @@ -71,7 +72,8 @@ EOF then libc_cv_static_pie_on_riscv=yes fi - rm -rf conftest* + rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_on_riscv" >&5 printf "%s\n" "$libc_cv_static_pie_on_riscv" >&6; } @@ -80,3 +82,4 @@ if test "$libc_cv_static_pie_on_riscv" = yes; then printf "%s\n" "#define SUPPORT_STATIC_PIE 1" >>confdefs.h fi + diff --git a/sysdeps/s390/configure b/sysdeps/s390/configure index d1056cb325..67c3755c16 100644 --- a/sysdeps/s390/configure +++ b/sysdeps/s390/configure @@ -6,8 +6,8 @@ printf %s "checking for __builtin_tbegin... " >&6; } if test ${libc_cv_gcc_builtin_tbegin+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<\EOF +else case e in #( + e) cat > conftest.c <<\EOF #include <htmintrin.h> void testtransaction () { @@ -28,7 +28,8 @@ then else libc_cv_gcc_builtin_tbegin=no fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_tbegin" >&5 printf "%s\n" "$libc_cv_gcc_builtin_tbegin" >&6; } @@ -44,8 +45,8 @@ printf %s "checking for S390 vector instruction support... " >&6; } if test ${libc_cv_asm_s390_vx+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -61,10 +62,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_asm_s390_vx=yes -else $as_nop - libc_cv_asm_s390_vx=no +else case e in #( + e) libc_cv_asm_s390_vx=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_vx" >&5 printf "%s\n" "$libc_cv_asm_s390_vx" >&6; } @@ -83,8 +86,8 @@ printf %s "checking for S390 vector support in gcc... " >&6; } if test ${libc_cv_gcc_s390_vx+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -97,10 +100,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_gcc_s390_vx=yes -else $as_nop - libc_cv_gcc_s390_vx=no +else case e in #( + e) libc_cv_gcc_s390_vx=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_s390_vx" >&5 printf "%s\n" "$libc_cv_gcc_s390_vx" >&6; } @@ -116,8 +121,8 @@ printf %s "checking for S390 arch13 zarch instruction support... " >&6; } if test ${libc_cv_asm_s390_arch13+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -135,10 +140,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_asm_s390_arch13=yes -else $as_nop - libc_cv_asm_s390_arch13=no +else case e in #( + e) libc_cv_asm_s390_arch13=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_arch13" >&5 printf "%s\n" "$libc_cv_asm_s390_arch13" >&6; } @@ -154,8 +161,8 @@ printf %s "checking for S390 z10 zarch instruction support as default... " >&6; if test ${libc_cv_asm_s390_min_z10_zarch+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -173,10 +180,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_asm_s390_min_z10_zarch=yes -else $as_nop - libc_cv_asm_s390_min_z10_zarch=no +else case e in #( + e) libc_cv_asm_s390_min_z10_zarch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z10_zarch" >&5 printf "%s\n" "$libc_cv_asm_s390_min_z10_zarch" >&6; } @@ -192,8 +201,8 @@ printf %s "checking for S390 z196 zarch instruction support as default... " >&6; if test ${libc_cv_asm_s390_min_z196_zarch+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -208,10 +217,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_asm_s390_min_z196_zarch=yes -else $as_nop - libc_cv_asm_s390_min_z196_zarch=no +else case e in #( + e) libc_cv_asm_s390_min_z196_zarch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z196_zarch" >&5 printf "%s\n" "$libc_cv_asm_s390_min_z196_zarch" >&6; } @@ -227,8 +238,8 @@ printf %s "checking for S390 z13 zarch instruction support as default... " >&6; if test ${libc_cv_asm_s390_min_z13_zarch+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -245,10 +256,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_asm_s390_min_z13_zarch=yes -else $as_nop - libc_cv_asm_s390_min_z13_zarch=no +else case e in #( + e) libc_cv_asm_s390_min_z13_zarch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_z13_zarch" >&5 printf "%s\n" "$libc_cv_asm_s390_min_z13_zarch" >&6; } @@ -264,8 +277,8 @@ printf %s "checking for S390 arch13 zarch instruction support as default... " >& if test ${libc_cv_asm_s390_min_arch13_zarch+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -281,10 +294,12 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_asm_s390_min_arch13_zarch=yes -else $as_nop - libc_cv_asm_s390_min_arch13_zarch=no +else case e in #( + e) libc_cv_asm_s390_min_arch13_zarch=no ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_s390_min_arch13_zarch" >&5 printf "%s\n" "$libc_cv_asm_s390_min_arch13_zarch" >&6; } @@ -301,8 +316,8 @@ printf %s "checking if $CC is sufficient to build libc on s390x... " >&6; } if test ${libc_cv_compiler_ok_on_s390x+y} then : printf %s "(cached) " >&6 -else $as_nop - +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -321,10 +336,12 @@ _ACEOF if ac_fn_c_try_cpp "$LINENO" then : libc_cv_compiler_ok_on_s390x=yes -else $as_nop - libc_cv_compiler_ok_on_s390x=no +else case e in #( + e) libc_cv_compiler_ok_on_s390x=no ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok_on_s390x" >&5 printf "%s\n" "$libc_cv_compiler_ok_on_s390x" >&6; } diff --git a/sysdeps/s390/s390-64/configure b/sysdeps/s390/s390-64/configure index c8e25b242f..33c28614c2 100644 --- a/sysdeps/s390/s390-64/configure +++ b/sysdeps/s390/s390-64/configure @@ -10,8 +10,8 @@ if { as_var=\ libc_cv_s390x_staticpie_req_runtime; eval test \${$as_var+y}; } then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest1.c <<EOF +else case e in #( + e) cat > conftest1.c <<EOF __thread int * foo; void @@ -77,7 +77,8 @@ EOF then libc_cv_s390x_staticpie_req_runtime=yes fi - rm -rf conftest.* + rm -rf conftest.* ;; +esac fi eval ac_res=\$\ libc_cv_s390x_staticpie_req_runtime diff --git a/sysdeps/sparc/sparc32/configure b/sysdeps/sparc/sparc32/configure index b6603ba2f9..5d2f4864d2 100644 --- a/sysdeps/sparc/sparc32/configure +++ b/sysdeps/sparc/sparc32/configure @@ -4,14 +4,14 @@ # Test if compiler targets at least sparcv8. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -25,13 +25,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -40,14 +41,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -55,35 +56,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -97,13 +87,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -112,14 +103,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -127,32 +118,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for at least sparcv8 support" >&5 printf %s "checking for at least sparcv8 support... " >&6; } if test ${libc_cv_sparcv8+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined (__sparc_v8__) || defined (__sparc_v9__) yes @@ -160,14 +152,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_sparcv8=yes -else $as_nop - libc_cv_sparcv8=no +else case e in #( + e) libc_cv_sparcv8=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparcv8" >&5 printf "%s\n" "$libc_cv_sparcv8" >&6; } @@ -183,8 +177,8 @@ printf %s "checking for external libatomic calls... " >&6; } if test ${libc_cv_cas_uses_libatomic+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF _Bool foo (int *ptr, int *expected, int desired) { return __atomic_compare_exchange_n (ptr, expected, desired, 0, @@ -203,7 +197,8 @@ EOF fi fi rm -f conftest.c conftest.s - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cas_uses_libatomic" >&5 printf "%s\n" "$libc_cv_cas_uses_libatomic" >&6; } diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure index 70f7937333..4d642e953b 100644 --- a/sysdeps/unix/sysv/linux/configure +++ b/sysdeps/unix/sysv/linux/configure @@ -12,8 +12,8 @@ printf %s "checking installed Linux kernel header files... " >&6; } if test ${libc_cv_linux320+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <linux/version.h> #if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < (3 *65536+ 2 *256+ 0) /* 3.2.0 */ @@ -30,10 +30,12 @@ _ACEOF if ac_fn_c_try_cpp "$LINENO" then : libc_cv_linux320='3.2.0 or later' -else $as_nop - libc_cv_linux320='missing or too old!' +else case e in #( + e) libc_cv_linux320='missing or too old!' ;; +esac fi -rm -f conftest.err conftest.i conftest.$ac_ext +rm -f conftest.err conftest.i conftest.$ac_ext ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_linux320" >&5 printf "%s\n" "$libc_cv_linux320" >&6; } @@ -91,8 +93,9 @@ _ACEOF if ac_fn_c_try_cpp "$LINENO" then : libc_minimum_kernel=ok -else $as_nop - libc_minimum_kernel='too old!' +else case e in #( + e) libc_minimum_kernel='too old!' ;; +esac fi rm -f conftest.err conftest.i conftest.$ac_ext { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_minimum_kernel" >&5 diff --git a/sysdeps/unix/sysv/linux/loongarch/configure b/sysdeps/unix/sysv/linux/loongarch/configure index 0d1159e923..914943f914 100644 --- a/sysdeps/unix/sysv/linux/loongarch/configure +++ b/sysdeps/unix/sysv/linux/loongarch/configure @@ -6,14 +6,14 @@ arch_minimum_kernel=5.19.0 libc_cv_loongarch_int_abi=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -27,13 +27,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -42,14 +43,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -57,35 +58,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -99,13 +89,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -114,14 +105,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -129,24 +120,25 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -154,7 +146,7 @@ __SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "4 8 8" >/dev/null 2>&1 + $EGREP_TRADITIONAL "4 8 8" >/dev/null 2>&1 then : libc_cv_loongarch_int_abi=lp64 fi @@ -173,7 +165,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_loongarch_float_abi=d fi @@ -187,7 +179,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_loongarch_float_abi=s fi diff --git a/sysdeps/unix/sysv/linux/mips/configure b/sysdeps/unix/sysv/linux/mips/configure index a060901de4..6e3402c111 100644 --- a/sysdeps/unix/sysv/linux/mips/configure +++ b/sysdeps/unix/sysv/linux/mips/configure @@ -19,8 +19,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_abi=o32 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (_MIPS_SIM != _ABIN32) @@ -37,8 +37,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_abi=n32 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (_MIPS_SIM != _ABI64) @@ -56,9 +56,11 @@ if ac_fn_c_try_compile "$LINENO" then : libc_mips_abi=n64 fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -83,8 +85,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_float=soft -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if !defined(__mips_hard_float) @@ -102,7 +104,8 @@ if ac_fn_c_try_compile "$LINENO" then : libc_mips_float=hard fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext @@ -148,8 +151,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_o32_fp=32 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (__mips_fpr != 0) || !defined(_MIPS_SPFPSET) || (_MIPS_SPFPSET != 16) @@ -166,8 +169,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_o32_fp=xx -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (__mips_fpr != 0) @@ -184,8 +187,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_o32_fp=xxo -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (__mips_fpr != 64) || !defined(_MIPS_SPFPSET) || (_MIPS_SPFPSET != 16) @@ -202,8 +205,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_o32_fp=64a -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if (__mips_fpr != 64) @@ -221,13 +224,17 @@ if ac_fn_c_try_compile "$LINENO" then : libc_mips_o32_fp=64 fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi @@ -241,8 +248,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext test $ac_status = 0; }; } then : libc_cv_mips_fp64=yes -else $as_nop - libc_cv_mips_fp64=no +else case e in #( + e) libc_cv_mips_fp64=no ;; +esac fi if { ac_try='${CC-cc} -Werror -modd-spreg -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -252,8 +260,9 @@ fi test $ac_status = 0; }; } then : libc_cv_mips_modd_spreg=yes -else $as_nop - libc_cv_mips_modd_spreg=no +else case e in #( + e) libc_cv_mips_modd_spreg=no ;; +esac fi fi config_vars="$config_vars @@ -281,22 +290,23 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_mips_mode_switch=yes -else $as_nop - libc_mips_mode_switch=no +else case e in #( + e) libc_mips_mode_switch=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext config_vars="$config_vars mips-mode-switch = ${libc_mips_mode_switch}" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -310,13 +320,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -325,14 +336,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -340,35 +351,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -382,13 +382,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -397,14 +398,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -412,32 +413,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the 2008 NaN encoding" >&5 printf %s "checking whether the compiler is using the 2008 NaN encoding... " >&6; } if test ${libc_cv_mips_nan2008+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ dnl #ifdef __mips_nan2008 @@ -445,14 +447,16 @@ yes #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_mips_nan2008=yes -else $as_nop - libc_cv_mips_nan2008=no +else case e in #( + e) libc_cv_mips_nan2008=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_nan2008" >&5 printf "%s\n" "$libc_cv_mips_nan2008" >&6; } @@ -515,8 +519,8 @@ printf %s "checking whether the compiler must use executable stack... " >&6; } if test ${libc_cv_mips_force_execstack+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_mips_force_execstack=no +else case e in #( + e) libc_cv_mips_force_execstack=no if test $libc_mips_float = hard; then if test -n "$minimum_kernel"; then @@ -528,7 +532,8 @@ else $as_nop else libc_cv_mips_force_execstack=yes fi - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mips_force_execstack" >&5 printf "%s\n" "$libc_cv_mips_force_execstack" >&6; } diff --git a/sysdeps/unix/sysv/linux/powerpc/configure b/sysdeps/unix/sysv/linux/powerpc/configure index d6d091a4c2..61ae675c1a 100644 --- a/sysdeps/unix/sysv/linux/powerpc/configure +++ b/sysdeps/unix/sysv/linux/powerpc/configure @@ -7,8 +7,8 @@ printf %s "checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended form if test ${libc_cv_mlong_double_128ibm+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mlong-double-128" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -28,11 +28,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mlong_double_128ibm=yes -else $as_nop - libc_cv_mlong_double_128ibm=no +else case e in #( + e) libc_cv_mlong_double_128ibm=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -CFLAGS="$save_CFLAGS" +CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mlong_double_128ibm" >&5 printf "%s\n" "$libc_cv_mlong_double_128ibm" >&6; } @@ -43,8 +45,8 @@ printf %s "checking whether $CC $CFLAGS supports -mabi=ibmlongdouble... " >&6; } if test ${libc_cv_mabi_ibmlongdouble+y} then : printf %s "(cached) " >&6 -else $as_nop - save_CFLAGS="$CFLAGS" +else case e in #( + e) save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mlong-double-128 -mabi=ibmlongdouble" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -64,11 +66,13 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : libc_cv_mabi_ibmlongdouble=yes -else $as_nop - libc_cv_mabi_ibmlongdouble=no +else case e in #( + e) libc_cv_mabi_ibmlongdouble=no ;; +esac fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS="$save_CFLAGS" + CFLAGS="$save_CFLAGS" ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mabi_ibmlongdouble" >&5 printf "%s\n" "$libc_cv_mabi_ibmlongdouble" >&6; } diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure b/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure index cf1b70c745..5dd70689fc 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/configure @@ -17,14 +17,14 @@ esac # Define default-abi according to compiler flags. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -38,13 +38,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -53,14 +54,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -68,35 +69,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -110,13 +100,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -125,14 +116,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -140,32 +131,33 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the PowerPC64 ELFv2 ABI" >&5 printf %s "checking whether the compiler is using the PowerPC64 ELFv2 ABI... " >&6; } if test ${libc_cv_ppc64_elfv2_abi+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if _CALL_ELF == 2 yes @@ -173,14 +165,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_ppc64_elfv2_abi=yes -else $as_nop - libc_cv_ppc64_elfv2_abi=no +else case e in #( + e) libc_cv_ppc64_elfv2_abi=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_elfv2_abi" >&5 printf "%s\n" "$libc_cv_ppc64_elfv2_abi" >&6; } @@ -199,8 +193,8 @@ printf %s "checking whether the compiler defines _CALL_ELF... " >&6; } if test ${libc_cv_ppc64_def_call_elf+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _CALL_ELF yes @@ -208,14 +202,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_ppc64_def_call_elf=yes -else $as_nop - libc_cv_ppc64_def_call_elf=no +else case e in #( + e) libc_cv_ppc64_def_call_elf=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_def_call_elf" >&5 printf "%s\n" "$libc_cv_ppc64_def_call_elf" >&6; } @@ -229,8 +225,8 @@ printf %s "checking the machine type to set minimum kernel version... " >&6; } if test ${libc_cv_ppc64_le+y} then : printf %s "(cached) " >&6 -else $as_nop - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ yes @@ -238,14 +234,16 @@ else $as_nop _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : arch_minimum_kernel=3.10.0 -else $as_nop - libc_cv_ppc64_le=no +else case e in #( + e) libc_cv_ppc64_le=no ;; +esac fi rm -rf conftest* - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_le" >&5 printf "%s\n" "$libc_cv_ppc64_le" >&6; } diff --git a/sysdeps/unix/sysv/linux/riscv/configure b/sysdeps/unix/sysv/linux/riscv/configure index 79bf5efa25..08aed0d805 100755 --- a/sysdeps/unix/sysv/linux/riscv/configure +++ b/sysdeps/unix/sysv/linux/riscv/configure @@ -6,14 +6,14 @@ arch_minimum_kernel=4.15.0 libc_cv_riscv_int_abi=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 +printf %s "checking for egrep -e... " >&6; } +if test ${ac_cv_path_EGREP_TRADITIONAL+y} then : printf %s "(cached) " >&6 -else $as_nop - if test -z "$GREP"; then - ac_path_GREP_found=false +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -27,13 +27,14 @@ do for ac_prog in grep ggrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_GREP" || continue -# Check for GNU ac_path_GREP and select it if it is found. - # Check for GNU $ac_path_GREP -case `"$ac_path_GREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -42,14 +43,14 @@ case `"$ac_path_GREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'GREP' >> "conftest.nl" - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_GREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_GREP="$ac_path_GREP" - ac_path_GREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -57,35 +58,24 @@ case `"$ac_path_GREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_GREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_GREP"; then - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then + : fi else - ac_cv_path_GREP=$GREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} + if test "$ac_cv_path_EGREP_TRADITIONAL" then : - printf %s "(cached) " >&6 -else $as_nop - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 - then ac_cv_path_EGREP="$GREP -E" - else - if test -z "$EGREP"; then - ac_path_EGREP_found=false + ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" +else case e in #( + e) if test -z "$EGREP_TRADITIONAL"; then + ac_path_EGREP_TRADITIONAL_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin @@ -99,13 +89,14 @@ do for ac_prog in egrep do for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP" || continue -# Check for GNU ac_path_EGREP and select it if it is found. - # Check for GNU $ac_path_EGREP -case `"$ac_path_EGREP" --version 2>&1` in + ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" + as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue +# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. + # Check for GNU $ac_path_EGREP_TRADITIONAL +case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( *GNU*) - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; +#( *) ac_count=0 printf %s 0123456789 >"conftest.in" @@ -114,14 +105,14 @@ case `"$ac_path_EGREP" --version 2>&1` in cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP' >> "conftest.nl" - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" + "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_EGREP_max-0}; then + if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP="$ac_path_EGREP" - ac_path_EGREP_max=$ac_count + ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" + ac_path_EGREP_TRADITIONAL_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break @@ -129,24 +120,25 @@ case `"$ac_path_EGREP" --version 2>&1` in rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac - $ac_path_EGREP_found && break 3 + $ac_path_EGREP_TRADITIONAL_found && break 3 done done done IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP"; then + if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else - ac_cv_path_EGREP=$EGREP + ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL fi - - fi + ;; +esac +fi ;; +esac fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 +printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } + EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -154,7 +146,7 @@ __SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "4 8 8" >/dev/null 2>&1 + $EGREP_TRADITIONAL "4 8 8" >/dev/null 2>&1 then : libc_cv_riscv_int_abi=lp64 fi @@ -166,7 +158,7 @@ __SIZEOF_INT__ __SIZEOF_LONG__ __SIZEOF_POINTER__ _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "4 4 4" >/dev/null 2>&1 + $EGREP_TRADITIONAL "4 4 4" >/dev/null 2>&1 then : libc_cv_riscv_int_abi=ilp32 fi @@ -189,7 +181,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_riscv_float_abi=d fi @@ -203,7 +195,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "yes" >/dev/null 2>&1 + $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 then : libc_cv_riscv_float_abi= fi diff --git a/sysdeps/x86/configure b/sysdeps/x86/configure index 1e2325d0d7..cb96974b35 100644 --- a/sysdeps/x86/configure +++ b/sysdeps/x86/configure @@ -7,8 +7,8 @@ printf %s "checking for linker x86 ISA level support... " >&6; } if test ${libc_cv_include_x86_isa_level+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest1.S <<EOF +else case e in #( + e) cat > conftest1.S <<EOF #ifdef __LP64__ # define P2ALIGN 3 #else @@ -70,7 +70,8 @@ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -nostartfiles -nostdlib -r -o conftest c libc_cv_include_x86_isa_level=yes fi fi -rm -f conftest* +rm -f conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_include_x86_isa_level" >&5 printf "%s\n" "$libc_cv_include_x86_isa_level" >&6; } @@ -82,8 +83,8 @@ printf %s "checking for LAHF/SAHF instruction support... " >&6; } if test ${libc_cv_have_x86_lahf_sahf+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_have_x86_lahf_sahf=no +else case e in #( + e) libc_cv_have_x86_lahf_sahf=no if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fverbose-asm -S -o - -x c /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 @@ -91,7 +92,8 @@ else $as_nop printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } | grep -qE '(-msahf\b|-march=x86-64-v)'; then libc_cv_have_x86_lahf_sahf=yes - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_x86_lahf_sahf" >&5 printf "%s\n" "$libc_cv_have_x86_lahf_sahf" >&6; } @@ -105,8 +107,8 @@ printf %s "checking for MOVBE instruction support... " >&6; } if test ${libc_cv_have_x86_movbe+y} then : printf %s "(cached) " >&6 -else $as_nop - libc_cv_have_x86_movbe=no +else case e in #( + e) libc_cv_have_x86_movbe=no if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fverbose-asm -S -o - -x c /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 @@ -114,7 +116,8 @@ else $as_nop printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } | grep -qE '(-mmovbe\b|-march=x86-64-v([3-9]|[1-9][0-9]))'; then libc_cv_have_x86_movbe=yes - fi + fi ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_x86_movbe" >&5 printf "%s\n" "$libc_cv_have_x86_movbe" >&6; } @@ -130,8 +133,8 @@ printf %s "checking for ISA level support... " >&6; } if test ${libc_cv_have_x86_isa_level+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF #include <sysdeps/x86/isa-level.h> #if MINIMUM_X86_ISA_LEVEL >= 4 libc_cv_have_x86_isa_level=4 @@ -146,7 +149,8 @@ libc_cv_have_x86_isa_level=MINIMUM_X86_ISA_LEVEL #endif EOF eval `${CC-cc} $CFLAGS $CPPFLAGS $ISAFLAG -I$srcdir -E conftest.c | grep libc_cv_have_x86_isa_level` - rm -rf conftest* + rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_x86_isa_level" >&5 printf "%s\n" "$libc_cv_have_x86_isa_level" >&6; } diff --git a/sysdeps/x86_64/configure b/sysdeps/x86_64/configure index 07bdd40a37..231e6ff128 100755 --- a/sysdeps/x86_64/configure +++ b/sysdeps/x86_64/configure @@ -6,8 +6,8 @@ printf %s "checking -mprefer-vector-width=128... " >&6; } if test ${libc_cv_cc_mprefer_vector_width+y} then : printf %s "(cached) " >&6 -else $as_nop - if { ac_try='${CC-cc} -mprefer-vector-width=128 -xc /dev/null -S -o /dev/null' +else case e in #( + e) if { ac_try='${CC-cc} -mprefer-vector-width=128 -xc /dev/null -S -o /dev/null' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -15,10 +15,12 @@ else $as_nop test $ac_status = 0; }; } then : libc_cv_cc_mprefer_vector_width=yes -else $as_nop - libc_cv_cc_mprefer_vector_width=no +else case e in #( + e) libc_cv_cc_mprefer_vector_width=no ;; +esac fi - + ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_mprefer_vector_width" >&5 printf "%s\n" "$libc_cv_cc_mprefer_vector_width" >&6; } @@ -71,8 +73,8 @@ printf %s "checking whether CET can be enabled... " >&6; } if test ${libc_cv_x86_cet_available+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF #if !defined __CET__ || __CET__ != 3 # error CET isn't available. #endif @@ -87,7 +89,8 @@ EOF else libc_cv_x86_cet_available=no fi - rm -rf conftest* + rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_available" >&5 printf "%s\n" "$libc_cv_x86_cet_available" >&6; } @@ -102,8 +105,8 @@ printf %s "checking whether assembler supports CET... " >&6; } if test ${libc_cv_x86_cet_as+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.s <<EOF +else case e in #( + e) cat > conftest.s <<EOF incsspd %ecx EOF if { ac_try='${CC-cc} -c $CFLAGS conftest.s -o conftest.o 1>&5' @@ -116,7 +119,8 @@ EOF else libc_cv_x86_cet_as=no fi - rm -rf conftest* + rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_cet_as" >&5 printf "%s\n" "$libc_cv_x86_cet_as" >&6; } @@ -140,8 +144,8 @@ printf %s "checking whether -mamx-tile works properly... " >&6; } if test ${libc_cv_x86_have_amx_tile+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF #include <x86intrin.h> EOF libc_cv_x86_have_amx_tile=no @@ -155,7 +159,8 @@ EOF libc_cv_x86_have_amx_tile=yes fi fi - rm -rf conftest* + rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_have_amx_tile" >&5 printf "%s\n" "$libc_cv_x86_have_amx_tile" >&6; } @@ -168,8 +173,8 @@ printf %s "checking whether -mapxf is enabled... " >&6; } if test ${libc_cv_x86_have_apx+y} then : printf %s "(cached) " >&6 -else $as_nop - cat > conftest.c <<EOF +else case e in #( + e) cat > conftest.c <<EOF #ifndef __APX_F__ # error APX isn't enabled #endif @@ -183,7 +188,8 @@ EOF test $ac_status = 0; }; }; then libc_cv_x86_have_apx=yes fi - rm -rf conftest* + rm -rf conftest* ;; +esac fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_have_apx" >&5 printf "%s\n" "$libc_cv_x86_have_apx" >&6; } -- 2.44.2 ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release 2024-01-01 13:18 Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release Andreas K. Huettel 2024-01-02 9:14 ` Florian Weimer 2024-01-02 9:21 ` autoconf 2.72 ? (Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release) Andreas K. Huettel @ 2024-01-02 14:39 ` Adhemerval Zanella Netto 2024-01-06 12:27 ` Andreas K. Huettel 2024-01-02 15:22 ` H.J. Lu ` (2 subsequent siblings) 5 siblings, 1 reply; 31+ messages in thread From: Adhemerval Zanella Netto @ 2024-01-02 14:39 UTC (permalink / raw) To: Andreas K. Huettel, libc-alpha On 01/01/24 10:18, Andreas K. Huettel wrote: > Hi all, > > first of all, a happy new year to all of you. Let us hope for a more peaceful 2024. > > We follow for the upcoming glibc 2.39 the same schedule as usual. > > - January 1-11, "slushy ABI freeze" > * No new ABI additions. > * ABI corrections should be reviewed, RM approval not required. > * Avoid any changes that require action by the ports (including all > that require ulps regeneration) > * Bug fixes. > * Monday patch review switches to reviewing critical bug list and > ABI issues. > > The planning section of our 2.39 wiki page lists at the moment the following items: > https://sourceware.org/glibc/wiki/Release/2.39#Planning > > * Release blockers > - Revert to original qsort implementation and apply subsequent mergesort changes with heapsort as fallback. > Attempts to make changes to qsort have shown deep application dependencies on undocumented behaviour. > In order to preserver application compatibility we need to revert the less conservative changes. > It would be good to revert to the original known state and then copy in some of the final changes. I just sent a new version [1], which should address the remarks Florian has raised. > - AArch64 SME support https://patchwork.sourceware.org/project/glibc/list/?series=28136 I already reviewed it and modules some minor nits it should ready to land. > * Desirable this release? > - Add clone3 support for multiple architectures (mips and arm missing) It is already done. > - Remove ia64-linux-gnu I am just warning Linux 6.7 to be officially release. It might also require some minor updates on the exported syscall numbers and some headers constants. > - Implement C23 <stdbit.h> > > Please update what is in the meantime done / obsolete / ..., ideally with links to the commits or bugs. Since we are aiming to implement all the remaining C23 bits, I would like to add my floating-point round fixes as well [2] > > What else should we add here that still needs to go into 2.39? The fstat alpha/sparc64 fix for sure [3]. I would like to add some gnulib sync [4], but I can backport it if required as well. > > - January 12-31, "hard ABI freeze" > * Noncritical bug fixes. > * No ABI changes without RM discussion. > * High risk bug fixes should be discussed on the list. > > - February 1 > * glibc 2.39 release > > If you have any comments or objections, please reply to the list. > > Cheers, > Andreas > [1] https://patchwork.sourceware.org/project/glibc/patch/20240102141500.3300552-1-adhemerval.zanella@linaro.org/ [2] https://patchwork.sourceware.org/project/glibc/list/?series=28918 [3] https://patchwork.sourceware.org/project/glibc/patch/20240102143152.3477636-1-adhemerval.zanella@linaro.org/ [4] https://patchwork.sourceware.org/project/glibc/patch/20231023214527.3628194-1-adhemerval.zanella@linaro.org/ ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release 2024-01-02 14:39 ` Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release Adhemerval Zanella Netto @ 2024-01-06 12:27 ` Andreas K. Huettel 2024-01-08 12:54 ` Adhemerval Zanella Netto 0 siblings, 1 reply; 31+ messages in thread From: Andreas K. Huettel @ 2024-01-06 12:27 UTC (permalink / raw) To: libc-alpha; +Cc: Adhemerval Zanella Netto [-- Attachment #1: Type: text/plain, Size: 2037 bytes --] > > * Release blockers > > - Revert to original qsort implementation and apply subsequent mergesort changes with heapsort as fallback. > > Attempts to make changes to qsort have shown deep application dependencies on undocumented behaviour. > > In order to preserver application compatibility we need to revert the less conservative changes. > > It would be good to revert to the original known state and then copy in some of the final changes. > > I just sent a new version [1], which should address the remarks Florian > has raised. [1] https://patchwork.sourceware.org/project/glibc/patch/20240102141500.3300552-1-adhemerval.zanella@linaro.org/ OK. Needs still review. (Maybe split it into two commits as suggested in the wiki text?) > > - AArch64 SME support https://patchwork.sourceware.org/project/glibc/list/?series=28136 > > I already reviewed it and modules some minor nits it should ready to land. Is in already, good. > > - Remove ia64-linux-gnu > > I am just warning Linux 6.7 to be officially release. It might also require > some minor updates on the exported syscall numbers and some headers constants. WFM. Gentoo is one of the two(?) remaining distros with ia64 support, but we're not pushing for it to be kept. > Since we are aiming to implement all the remaining C23 bits, I would > like to add my floating-point round fixes as well [2] https://patchwork.sourceware.org/project/glibc/list/?series=28918 OK, needs still review. > The fstat alpha/sparc64 fix for sure [3]. OK, needs still review. > I would like to add some gnulib > sync [4], but I can backport it if required as well. https://patchwork.sourceware.org/project/glibc/patch/20231023214527.3628194-1-adhemerval.zanella@linaro.org/ Let's try to include it. Needs still review. -- Andreas K. Hüttel dilfridge@gentoo.org Gentoo Linux developer (council, comrel, toolchain, base-system, perl, libreoffice) https://wiki.gentoo.org/wiki/User:Dilfridge [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release 2024-01-06 12:27 ` Andreas K. Huettel @ 2024-01-08 12:54 ` Adhemerval Zanella Netto 0 siblings, 0 replies; 31+ messages in thread From: Adhemerval Zanella Netto @ 2024-01-08 12:54 UTC (permalink / raw) To: Andreas K. Huettel, libc-alpha On 06/01/24 09:27, Andreas K. Huettel wrote: >>> * Release blockers >>> - Revert to original qsort implementation and apply subsequent mergesort changes with heapsort as fallback. >>> Attempts to make changes to qsort have shown deep application dependencies on undocumented behaviour. >>> In order to preserver application compatibility we need to revert the less conservative changes. >>> It would be good to revert to the original known state and then copy in some of the final changes. >> >> I just sent a new version [1], which should address the remarks Florian >> has raised. > > [1] https://patchwork.sourceware.org/project/glibc/patch/20240102141500.3300552-1-adhemerval.zanella@linaro.org/ > > OK. Needs still review. > (Maybe split it into two commits as suggested in the wiki text?) > >>> - AArch64 SME support https://patchwork.sourceware.org/project/glibc/list/?series=28136 >> >> I already reviewed it and modules some minor nits it should ready to land. > > Is in already, good. > >>> - Remove ia64-linux-gnu >> >> I am just warning Linux 6.7 to be officially release. It might also require >> some minor updates on the exported syscall numbers and some headers constants. > > WFM. > > Gentoo is one of the two(?) remaining distros with ia64 support, but we're not pushing > for it to be kept. Now that 6.7 has just been releases, I will send an updated version rebased against master (mainly to handle the copyrights date from 2024) and this would be version I indent to install before the release. > >> Since we are aiming to implement all the remaining C23 bits, I would >> like to add my floating-point round fixes as well [2] > > https://patchwork.sourceware.org/project/glibc/list/?series=28918 > > OK, needs still review. > >> The fstat alpha/sparc64 fix for sure [3]. > > OK, needs still review. > >> I would like to add some gnulib >> sync [4], but I can backport it if required as well. > > https://patchwork.sourceware.org/project/glibc/patch/20231023214527.3628194-1-adhemerval.zanella@linaro.org/ > > Let's try to include it. Needs still review. > > ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release 2024-01-01 13:18 Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release Andreas K. Huettel ` (2 preceding siblings ...) 2024-01-02 14:39 ` Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release Adhemerval Zanella Netto @ 2024-01-02 15:22 ` H.J. Lu 2024-01-06 22:29 ` Andreas K. Huettel 2024-01-03 21:57 ` enh 2024-01-11 22:24 ` Freeze for the upcoming glibc 2.39 release - status Andreas K. Huettel 5 siblings, 1 reply; 31+ messages in thread From: H.J. Lu @ 2024-01-02 15:22 UTC (permalink / raw) To: Andreas K. Huettel; +Cc: libc-alpha On Mon, Jan 1, 2024 at 5:18 AM Andreas K. Huettel <dilfridge@gentoo.org> wrote: > > Hi all, > > first of all, a happy new year to all of you. Let us hope for a more peaceful 2024. > > We follow for the upcoming glibc 2.39 the same schedule as usual. > > - January 1-11, "slushy ABI freeze" > * No new ABI additions. > * ABI corrections should be reviewed, RM approval not required. > * Avoid any changes that require action by the ports (including all > that require ulps regeneration) > * Bug fixes. > * Monday patch review switches to reviewing critical bug list and > ABI issues. > > The planning section of our 2.39 wiki page lists at the moment the following items: > https://sourceware.org/glibc/wiki/Release/2.39#Planning > > * Release blockers > - Revert to original qsort implementation and apply subsequent mergesort changes with heapsort as fallback. > Attempts to make changes to qsort have shown deep application dependencies on undocumented behaviour. > In order to preserver application compatibility we need to revert the less conservative changes. > It would be good to revert to the original known state and then copy in some of the final changes. > - AArch64 SME support https://patchwork.sourceware.org/project/glibc/list/?series=28136 > * Desirable this release? > - Add clone3 support for multiple architectures (mips and arm missing) > - Remove ia64-linux-gnu > - Implement C23 <stdbit.h> I'd like to fix longjmp with user contexts: https://patchwork.sourceware.org/project/glibc/patch/20240102150329.3152784-1-hjl.tools@gmail.com/ and support PLT write: https://patchwork.sourceware.org/project/glibc/patch/20240102151332.205849-1-hjl.tools@gmail.com/ > Please update what is in the meantime done / obsolete / ..., ideally with links to the commits or bugs. > > What else should we add here that still needs to go into 2.39? > > - January 12-31, "hard ABI freeze" > * Noncritical bug fixes. > * No ABI changes without RM discussion. > * High risk bug fixes should be discussed on the list. > > - February 1 > * glibc 2.39 release > > If you have any comments or objections, please reply to the list. > > Cheers, > Andreas > > -- > Andreas K. Hüttel > dilfridge@gentoo.org > Gentoo Linux developer > (council, comrel, toolchain, base-system, perl, libreoffice) > https://wiki.gentoo.org/wiki/User:Dilfridge -- H.J. ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release 2024-01-02 15:22 ` H.J. Lu @ 2024-01-06 22:29 ` Andreas K. Huettel 0 siblings, 0 replies; 31+ messages in thread From: Andreas K. Huettel @ 2024-01-06 22:29 UTC (permalink / raw) To: libc-alpha; +Cc: libc-alpha, H.J. Lu [-- Attachment #1: Type: text/plain, Size: 511 bytes --] > > I'd like to fix longjmp with user contexts: > > https://patchwork.sourceware.org/project/glibc/patch/20240102150329.3152784-1-hjl.tools@gmail.com/ Already in > > and support PLT write: > > https://patchwork.sourceware.org/project/glibc/patch/20240102151332.205849-1-hjl.tools@gmail.com/ Already in, great -- Andreas K. Hüttel dilfridge@gentoo.org Gentoo Linux developer (council, comrel, toolchain, base-system, perl, libreoffice) https://wiki.gentoo.org/wiki/User:Dilfridge [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release 2024-01-01 13:18 Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release Andreas K. Huettel ` (3 preceding siblings ...) 2024-01-02 15:22 ` H.J. Lu @ 2024-01-03 21:57 ` enh 2024-01-10 18:38 ` Carlos O'Donell 2024-01-11 22:24 ` Freeze for the upcoming glibc 2.39 release - status Andreas K. Huettel 5 siblings, 1 reply; 31+ messages in thread From: enh @ 2024-01-03 21:57 UTC (permalink / raw) To: Andreas K. Huettel; +Cc: libc-alpha On Mon, Jan 1, 2024 at 5:18 AM Andreas K. Huettel <dilfridge@gentoo.org> wrote: > > Hi all, > > first of all, a happy new year to all of you. Let us hope for a more peaceful 2024. > > We follow for the upcoming glibc 2.39 the same schedule as usual. > > - January 1-11, "slushy ABI freeze" > * No new ABI additions. > * ABI corrections should be reviewed, RM approval not required. > * Avoid any changes that require action by the ports (including all > that require ulps regeneration) > * Bug fixes. > * Monday patch review switches to reviewing critical bug list and > ABI issues. > > The planning section of our 2.39 wiki page lists at the moment the following items: > https://sourceware.org/glibc/wiki/Release/2.39#Planning > > * Release blockers > - Revert to original qsort implementation and apply subsequent mergesort changes with heapsort as fallback. > Attempts to make changes to qsort have shown deep application dependencies on undocumented behaviour. > In order to preserver application compatibility we need to revert the less conservative changes. > It would be good to revert to the original known state and then copy in some of the final changes. > - AArch64 SME support https://patchwork.sourceware.org/project/glibc/list/?series=28136 > * Desirable this release? > - Add clone3 support for multiple architectures (mips and arm missing) > - Remove ia64-linux-gnu > - Implement C23 <stdbit.h> > > Please update what is in the meantime done / obsolete / ..., ideally with links to the commits or bugs. > > What else should we add here that still needs to go into 2.39? (speaking not as a glibc maintainer [or even user!], but as someone who aims for source compatibility where possible...) what's the status of the riscv64 ifunc stuff? > - January 12-31, "hard ABI freeze" > * Noncritical bug fixes. > * No ABI changes without RM discussion. > * High risk bug fixes should be discussed on the list. > > - February 1 > * glibc 2.39 release > > If you have any comments or objections, please reply to the list. > > Cheers, > Andreas > > -- > Andreas K. Hüttel > dilfridge@gentoo.org > Gentoo Linux developer > (council, comrel, toolchain, base-system, perl, libreoffice) > https://wiki.gentoo.org/wiki/User:Dilfridge ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release 2024-01-03 21:57 ` enh @ 2024-01-10 18:38 ` Carlos O'Donell 2024-01-10 20:33 ` Jeff Law 0 siblings, 1 reply; 31+ messages in thread From: Carlos O'Donell @ 2024-01-10 18:38 UTC (permalink / raw) To: enh, Andreas K. Huettel, Palmer Dabbelt, Jeff Law; +Cc: libc-alpha On 1/3/24 16:57, enh wrote: > On Mon, Jan 1, 2024 at 5:18 AM Andreas K. Huettel <dilfridge@gentoo.org> wrote: >> >> Hi all, >> >> first of all, a happy new year to all of you. Let us hope for a more peaceful 2024. >> >> We follow for the upcoming glibc 2.39 the same schedule as usual. >> >> - January 1-11, "slushy ABI freeze" >> * No new ABI additions. >> * ABI corrections should be reviewed, RM approval not required. >> * Avoid any changes that require action by the ports (including all >> that require ulps regeneration) >> * Bug fixes. >> * Monday patch review switches to reviewing critical bug list and >> ABI issues. >> >> The planning section of our 2.39 wiki page lists at the moment the following items: >> https://sourceware.org/glibc/wiki/Release/2.39#Planning >> >> * Release blockers >> - Revert to original qsort implementation and apply subsequent mergesort changes with heapsort as fallback. >> Attempts to make changes to qsort have shown deep application dependencies on undocumented behaviour. >> In order to preserver application compatibility we need to revert the less conservative changes. >> It would be good to revert to the original known state and then copy in some of the final changes. >> - AArch64 SME support https://patchwork.sourceware.org/project/glibc/list/?series=28136 >> * Desirable this release? >> - Add clone3 support for multiple architectures (mips and arm missing) >> - Remove ia64-linux-gnu >> - Implement C23 <stdbit.h> >> >> Please update what is in the meantime done / obsolete / ..., ideally with links to the commits or bugs. >> >> What else should we add here that still needs to go into 2.39? > > (speaking not as a glibc maintainer [or even user!], but as someone > who aims for source compatibility where possible...) what's the status > of the riscv64 ifunc stuff? Adding Palmer and Jeff to TO: to see if we have an answer for this. >> - January 12-31, "hard ABI freeze" >> * Noncritical bug fixes. >> * No ABI changes without RM discussion. >> * High risk bug fixes should be discussed on the list. >> >> - February 1 >> * glibc 2.39 release >> >> If you have any comments or objections, please reply to the list. >> >> Cheers, >> Andreas >> >> -- >> Andreas K. Hüttel >> dilfridge@gentoo.org >> Gentoo Linux developer >> (council, comrel, toolchain, base-system, perl, libreoffice) >> https://wiki.gentoo.org/wiki/User:Dilfridge > -- Cheers, Carlos. ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release 2024-01-10 18:38 ` Carlos O'Donell @ 2024-01-10 20:33 ` Jeff Law 2024-01-11 1:10 ` Palmer Dabbelt 0 siblings, 1 reply; 31+ messages in thread From: Jeff Law @ 2024-01-10 20:33 UTC (permalink / raw) To: Carlos O'Donell, enh, Andreas K. Huettel, Palmer Dabbelt; +Cc: libc-alpha On 1/10/24 11:38, Carlos O'Donell wrote: >> >> (speaking not as a glibc maintainer [or even user!], but as someone >> who aims for source compatibility where possible...) what's the status >> of the riscv64 ifunc stuff? > > Adding Palmer and Jeff to TO: to see if we have an answer for this. My recollection (from Cauldron) was that we were still waiting on a final approval for the first ifunc'd mem* routine as Florian had raised some correctness questions. The idea was once Florian's correctness questions were resolved we could use the knowledge to stamp out the other routines that have implementations, but needed the right ifunc glue. I haven't had the time to follow glibc at all the last few months. So if there's been movement I wouldn't be aware of it. Jeff ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release 2024-01-10 20:33 ` Jeff Law @ 2024-01-11 1:10 ` Palmer Dabbelt 2024-01-12 6:13 ` Palmer Dabbelt 0 siblings, 1 reply; 31+ messages in thread From: Palmer Dabbelt @ 2024-01-11 1:10 UTC (permalink / raw) To: Jeff Law; +Cc: Carlos O'Donell, enh, dilfridge, libc-alpha On Wed, 10 Jan 2024 12:33:51 PST (-0800), Jeff Law wrote: > > > On 1/10/24 11:38, Carlos O'Donell wrote: > >>> >>> (speaking not as a glibc maintainer [or even user!], but as someone >>> who aims for source compatibility where possible...) what's the status >>> of the riscv64 ifunc stuff? >> >> Adding Palmer and Jeff to TO: to see if we have an answer for this. > My recollection (from Cauldron) was that we were still waiting on a > final approval for the first ifunc'd mem* routine as Florian had raised > some correctness questions. The idea was once Florian's correctness > questions were resolved we could use the knowledge to stamp out the > other routines that have implementations, but needed the right ifunc glue. > > I haven't had the time to follow glibc at all the last few months. So > if there's been movement I wouldn't be aware of it. Evan has a patch set from this morning, I think it's ready to go. I'd checked earlier this week too, but there were some comments. So I think we can just commit it, it's been a pretty long tail of small stuff. > > > Jeff ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release 2024-01-11 1:10 ` Palmer Dabbelt @ 2024-01-12 6:13 ` Palmer Dabbelt 0 siblings, 0 replies; 31+ messages in thread From: Palmer Dabbelt @ 2024-01-12 6:13 UTC (permalink / raw) To: Carlos O'Donell; +Cc: Jeff Law, enh, dilfridge, libc-alpha, josmyers [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 3693 bytes --] On Wed, 10 Jan 2024 17:10:11 PST (-0800), Palmer Dabbelt wrote: > On Wed, 10 Jan 2024 12:33:51 PST (-0800), Jeff Law wrote: >> >> >> On 1/10/24 11:38, Carlos O'Donell wrote: >> >>>> >>>> (speaking not as a glibc maintainer [or even user!], but as someone >>>> who aims for source compatibility where possible...) what's the status >>>> of the riscv64 ifunc stuff? >>> >>> Adding Palmer and Jeff to TO: to see if we have an answer for this. >> My recollection (from Cauldron) was that we were still waiting on a >> final approval for the first ifunc'd mem* routine as Florian had raised >> some correctness questions. The idea was once Florian's correctness >> questions were resolved we could use the knowledge to stamp out the >> other routines that have implementations, but needed the right ifunc glue. >> >> I haven't had the time to follow glibc at all the last few months. So >> if there's been movement I wouldn't be aware of it. > > Evan has a patch set from this morning, I think it's ready to go. I'd > checked earlier this week too, but there were some comments. > > So I think we can just commit it, it's been a pretty long tail of small > stuff. We're both seeing some errors in build-many-glibcs, the compiler's build of glibc fails for i686-gnu and x86_64-gnu with msg-destroy.c: In function ‘__mach_msg_destroy’: msg-destroy.c:114:21: error: unknown type name ‘mach_port_name_inlined_t’; did you mean ‘mach_port_name_array_t’? 114 | mach_port_name_inlined_t *inlined_ports = (mach_port_name_inlined_t *)addr; | ^~~~~~~~~~~~~~~~~~~~~~~~ | mach_port_name_array_t msg-destroy.c:114:64: error: ‘mach_port_name_inlined_t’ undeclared (first use in this function); did you mean ‘mach_port_name_array_t’? 114 | mach_port_name_inlined_t *inlined_ports = (mach_port_name_inlined_t *)addr; | ^~~~~~~~~~~~~~~~~~~~~~~~ | mach_port_name_array_t msg-destroy.c:114:64: note: each undeclared identifier is reported only once for each function it appears in msg-destroy.c:114:90: error: expected expression before ‘)’ token 114 | mach_port_name_inlined_t *inlined_ports = (mach_port_name_inlined_t *)addr; | ^ msg-destroy.c:116:63: error: request for member ‘name’ in something not a structure or union 116 | mach_msg_destroy_port(inlined_ports[i].name, name); | ^ I don't think that has anything to do with this patch set, but looks like it's different than what folks are seeing over here https://inbox.sourceware.org/libc-alpha/15a8d57-ccd6-7be5-8feb-7348dc2976f0@redhat.com/ Joseph pointed me to his test results on IRC https://inbox.sourceware.org/libc-testresults/170493450738.1404407.10772674444944760670@tor.usersys.redhat.com/T/#u and from reading that I think the problem might be that I have old gnumach/hurd versions. It looks like I have master from last November (probably when I setup my build-many-glibcs tree). commit ccde19525333c38360684385c09cebd95a7b631f (HEAD -> master, origin/master, origin/HEAD) Author: Samuel Thibault <samuel.thibault@ens-lyon.org> Date: Tue Nov 7 00:24:54 2023 +0100 mach/message.h: Fix C++98 build static_assert was introduced in C++11. I'm trying another build with everything updated, hopefully that was the problem. ^ permalink raw reply [flat|nested] 31+ messages in thread
* Freeze for the upcoming glibc 2.39 release - status 2024-01-01 13:18 Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release Andreas K. Huettel ` (4 preceding siblings ...) 2024-01-03 21:57 ` enh @ 2024-01-11 22:24 ` Andreas K. Huettel 2024-01-12 10:56 ` Adhemerval Zanella Netto ` (2 more replies) 5 siblings, 3 replies; 31+ messages in thread From: Andreas K. Huettel @ 2024-01-11 22:24 UTC (permalink / raw) To: libc-alpha; +Cc: Andreas K. Huettel [-- Attachment #1: Type: text/plain, Size: 2404 bytes --] > > We follow for the upcoming glibc 2.39 the same schedule as usual. > > - January 12-31, "hard ABI freeze" > * Noncritical bug fixes. > * No ABI changes without RM discussion. > * High risk bug fixes should be discussed on the list. Going through the mailing list I've come across the following unresolved threads. Please have a look. Comments welcome. I'm on vacation travelling next week (Sun-Sat), which means limited e-mail access. [PATCH v2] stdlib: Reinstate stable mergesort implementation on qsort https://patchwork.sourceware.org/project/glibc/list/?series=29039 delegated, Florian is looking at this release blocker [PATCH v2] linux: Fix fstat64 on alpha and sparc64 https://patchwork.sourceware.org/project/glibc/list/?series=29040 needs review release blocker [PATCH v2] Make __getrandom_nocancel set errno and add a _nostatus version https://patchwork.sourceware.org/project/glibc/list/?series=29130 R-B Adhemerval bug fix - should go in now? [PATCH] debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol https://patchwork.sourceware.org/project/glibc/list/?series=27941 R-B Adhemerval bug fix - should go in now [PATCH v3] RISC-V: Enable static-pie https://patchwork.sourceware.org/project/glibc/list/?series=29034 R-B Adhemerval feature - could be in already - now or after release? [PATCH] math: remove exp10 wrappers https://patchwork.sourceware.org/project/glibc/list/?series=29463 R-B Adhemerval feature - could go in now, last minute for it [PATCH v11 0/7] RISC-V: ifunced memcpy using new kernel hwprobe interface https://patchwork.sourceware.org/project/glibc/list/?series=29471 needs another review? lots of code, but already many iterations - soon or after release [PATCH] x86-64: Check if mprotect works before rewriting PLT https://patchwork.sourceware.org/project/glibc/list/?series=29560 needs review / discussion? [PATCH v3] rtld: Add glibc.rtld.enable_secure tunable https://patchwork.sourceware.org/project/glibc/list/?series=29055 needs review, test failure feature - after release > > - February 1 > * glibc 2.39 release > > If you have any comments or objections, please reply to the list. > > Cheers, > Andreas > > -- Andreas K. Hüttel dilfridge@gentoo.org Gentoo Linux developer (council, toolchain, base-system, perl, libreoffice) [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 981 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Freeze for the upcoming glibc 2.39 release - status 2024-01-11 22:24 ` Freeze for the upcoming glibc 2.39 release - status Andreas K. Huettel @ 2024-01-12 10:56 ` Adhemerval Zanella Netto 2024-01-12 13:14 ` Xi Ruoyao 2024-01-12 14:23 ` Andreas K. Huettel 2024-01-12 17:19 ` Carlos O'Donell 2024-01-12 22:21 ` Freeze for the upcoming glibc 2.39 release - status (2) Andreas K. Huettel 2 siblings, 2 replies; 31+ messages in thread From: Adhemerval Zanella Netto @ 2024-01-12 10:56 UTC (permalink / raw) To: Andreas K. Huettel, libc-alpha On 11/01/24 19:24, Andreas K. Huettel wrote: >> >> We follow for the upcoming glibc 2.39 the same schedule as usual. >> >> - January 12-31, "hard ABI freeze" >> * Noncritical bug fixes. >> * No ABI changes without RM discussion. >> * High risk bug fixes should be discussed on the list. > > Going through the mailing list I've come across the following unresolved threads. > Please have a look. Comments welcome. > > I'm on vacation travelling next week (Sun-Sat), which means limited e-mail access. > > > [PATCH v2] stdlib: Reinstate stable mergesort implementation on qsort > https://patchwork.sourceware.org/project/glibc/list/?series=29039 > delegated, Florian is looking at this > release blocker > > [PATCH v2] linux: Fix fstat64 on alpha and sparc64 > https://patchwork.sourceware.org/project/glibc/list/?series=29040 > needs review > release blocker > This might the cause of the buildbot issues, since it makes the loader fail. > > [PATCH v2] Make __getrandom_nocancel set errno and add a _nostatus version > https://patchwork.sourceware.org/project/glibc/list/?series=29130 > R-B Adhemerval > bug fix - should go in now? > Yes, I think it would be good. > [PATCH] debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol > https://patchwork.sourceware.org/project/glibc/list/?series=27941 > R-B Adhemerval > bug fix - should go in now > Yes, this seems a straightforward fix. > > [PATCH v3] RISC-V: Enable static-pie > https://patchwork.sourceware.org/project/glibc/list/?series=29034 > R-B Adhemerval > feature - could be in already - now or after release? The change is small and it can be disable by a configure switch, so I think it would be ok to install. > > [PATCH] math: remove exp10 wrappers > https://patchwork.sourceware.org/project/glibc/list/?series=29463 > R-B Adhemerval > feature - could go in now, last minute for it Yes, I think so. > > > [PATCH v11 0/7] RISC-V: ifunced memcpy using new kernel hwprobe interface > https://patchwork.sourceware.org/project/glibc/list/?series=29471 > needs another review? > lots of code, but already many iterations - soon or after release > > [PATCH] x86-64: Check if mprotect works before rewriting PLT > https://patchwork.sourceware.org/project/glibc/list/?series=29560 > needs review / discussion? > > [PATCH v3] rtld: Add glibc.rtld.enable_secure tunable > https://patchwork.sourceware.org/project/glibc/list/?series=29055 > needs review, test failure > feature - after release > > > >> >> - February 1 >> * glibc 2.39 release >> >> If you have any comments or objections, please reply to the list. >> >> Cheers, >> Andreas >> >> > > ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Freeze for the upcoming glibc 2.39 release - status 2024-01-12 10:56 ` Adhemerval Zanella Netto @ 2024-01-12 13:14 ` Xi Ruoyao 2024-01-12 13:25 ` Andreas K. Huettel 2024-01-12 14:23 ` Andreas K. Huettel 1 sibling, 1 reply; 31+ messages in thread From: Xi Ruoyao @ 2024-01-12 13:14 UTC (permalink / raw) To: Adhemerval Zanella Netto, Andreas K. Huettel, libc-alpha 在 2024-01-12星期五的 07:56 -0300,Adhemerval Zanella Netto写道: > > [PATCH v2] Make __getrandom_nocancel set errno and add a _nostatus version > > https://patchwork.sourceware.org/project/glibc/list/?series=29130 > > R-B Adhemerval > > bug fix - should go in now? > > > > Yes, I think it would be good. Note that I don't have a write access to glibc.git, so relying on you guys to push it if considered OK :). -- Xi Ruoyao <xry111@xry111.site> School of Aerospace Science and Technology, Xidian University ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Freeze for the upcoming glibc 2.39 release - status 2024-01-12 13:14 ` Xi Ruoyao @ 2024-01-12 13:25 ` Andreas K. Huettel 0 siblings, 0 replies; 31+ messages in thread From: Andreas K. Huettel @ 2024-01-12 13:25 UTC (permalink / raw) To: Adhemerval Zanella Netto, libc-alpha, Xi Ruoyao [-- Attachment #1: Type: text/plain, Size: 696 bytes --] Am Freitag, 12. Januar 2024, 14:14:47 CET schrieb Xi Ruoyao: > 在 2024-01-12星期五的 07:56 -0300,Adhemerval Zanella Netto写道: > > > [PATCH v2] Make __getrandom_nocancel set errno and add a _nostatus version > > > https://patchwork.sourceware.org/project/glibc/list/?series=29130 > > > R-B Adhemerval > > > bug fix - should go in now? > > > > > > > Yes, I think it would be good. > > Note that I don't have a write access to glibc.git, so relying on you > guys to push it if considered OK :). > No problem and thanks for the hint. :) Pushed. -- Andreas K. Hüttel dilfridge@gentoo.org Gentoo Linux developer (council, toolchain, base-system, perl, libreoffice) [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 981 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Freeze for the upcoming glibc 2.39 release - status 2024-01-12 10:56 ` Adhemerval Zanella Netto 2024-01-12 13:14 ` Xi Ruoyao @ 2024-01-12 14:23 ` Andreas K. Huettel 1 sibling, 0 replies; 31+ messages in thread From: Andreas K. Huettel @ 2024-01-12 14:23 UTC (permalink / raw) To: libc-alpha; +Cc: Adhemerval Zanella Netto [-- Attachment #1: Type: text/plain, Size: 532 bytes --] Am Freitag, 12. Januar 2024, 11:56:10 CET schrieb Adhemerval Zanella Netto: > > > [PATCH] debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol > > https://patchwork.sourceware.org/project/glibc/list/?series=27941 > > R-B Adhemerval > > bug fix - should go in now > > > > Yes, this seems a straightforward fix. > > OK, pushed (since I think Frederic doesnt have push perms) -- Andreas K. Hüttel dilfridge@gentoo.org Gentoo Linux developer (council, toolchain, base-system, perl, libreoffice) [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 981 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Freeze for the upcoming glibc 2.39 release - status 2024-01-11 22:24 ` Freeze for the upcoming glibc 2.39 release - status Andreas K. Huettel 2024-01-12 10:56 ` Adhemerval Zanella Netto @ 2024-01-12 17:19 ` Carlos O'Donell 2024-01-12 17:34 ` Palmer Dabbelt 2024-01-12 18:10 ` Adhemerval Zanella Netto 2024-01-12 22:21 ` Freeze for the upcoming glibc 2.39 release - status (2) Andreas K. Huettel 2 siblings, 2 replies; 31+ messages in thread From: Carlos O'Donell @ 2024-01-12 17:19 UTC (permalink / raw) To: Andreas K. Huettel, libc-alpha, Adhemerval Zanella, Florian Weimer, Palmer Dabbelt, Jeff Law, H.J. Lu On 1/11/24 17:24, Andreas K. Huettel wrote: > [PATCH v2] stdlib: Reinstate stable mergesort implementation on qsort > https://patchwork.sourceware.org/project/glibc/list/?series=29039 > delegated, Florian is looking at this > release blocker Agreed. Florian is reviewing this. > [PATCH v2] linux: Fix fstat64 on alpha and sparc64 > https://patchwork.sourceware.org/project/glibc/list/?series=29040 > needs review > release blocker I have just reviewed this. Adhemerval, Please commit. > [PATCH v2] Make __getrandom_nocancel set errno and add a _nostatus version > https://patchwork.sourceware.org/project/glibc/list/?series=29130 > R-B Adhemerval > bug fix - should go in now? Agreed. > [PATCH] debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol > https://patchwork.sourceware.org/project/glibc/list/?series=27941 > R-B Adhemerval > bug fix - should go in now > Agreed. > [PATCH v3] RISC-V: Enable static-pie > https://patchwork.sourceware.org/project/glibc/list/?series=29034 > R-B Adhemerval > feature - could be in already - now or after release? Agreed. It should go in ASAP. Adhemerval, Will you commit this? > [PATCH] math: remove exp10 wrappers > https://patchwork.sourceware.org/project/glibc/list/?series=29463 > R-B Adhemerval > feature - could go in now, last minute for it Agreed. This should go in ASAP. > [PATCH v11 0/7] RISC-V: ifunced memcpy using new kernel hwprobe interface > https://patchwork.sourceware.org/project/glibc/list/?series=29471 > needs another review? > lots of code, but already many iterations - soon or after release My feeling is that this should go in as soon as 2.40 opens. It introduces too many generic changes to make me comfortable for 2.39 right now. > [PATCH] x86-64: Check if mprotect works before rewriting PLT > https://patchwork.sourceware.org/project/glibc/list/?series=29560 > needs review / discussion? Reviewed and needs a v2. HJ, Please review my comments. > [PATCH v3] rtld: Add glibc.rtld.enable_secure tunable > https://patchwork.sourceware.org/project/glibc/list/?series=29055 > needs review, test failure > feature - after release Agreed. This is glibc 2.40 material at this point. -- Cheers, Carlos. ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Freeze for the upcoming glibc 2.39 release - status 2024-01-12 17:19 ` Carlos O'Donell @ 2024-01-12 17:34 ` Palmer Dabbelt 2024-01-12 18:10 ` Adhemerval Zanella Netto 1 sibling, 0 replies; 31+ messages in thread From: Palmer Dabbelt @ 2024-01-12 17:34 UTC (permalink / raw) To: Carlos O'Donell Cc: dilfridge, libc-alpha, adhemerval.zanella, fweimer, Jeff Law, H.J. Lu On Fri, 12 Jan 2024 09:19:14 PST (-0800), Carlos O'Donell wrote: > On 1/11/24 17:24, Andreas K. Huettel wrote: >> [PATCH v2] stdlib: Reinstate stable mergesort implementation on qsort >> https://patchwork.sourceware.org/project/glibc/list/?series=29039 >> delegated, Florian is looking at this >> release blocker > > Agreed. Florian is reviewing this. > >> [PATCH v2] linux: Fix fstat64 on alpha and sparc64 >> https://patchwork.sourceware.org/project/glibc/list/?series=29040 >> needs review >> release blocker > > I have just reviewed this. > > Adhemerval, Please commit. > >> [PATCH v2] Make __getrandom_nocancel set errno and add a _nostatus version >> https://patchwork.sourceware.org/project/glibc/list/?series=29130 >> R-B Adhemerval >> bug fix - should go in now? > > Agreed. > >> [PATCH] debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol >> https://patchwork.sourceware.org/project/glibc/list/?series=27941 >> R-B Adhemerval >> bug fix - should go in now >> > > Agreed. > >> [PATCH v3] RISC-V: Enable static-pie >> https://patchwork.sourceware.org/project/glibc/list/?series=29034 >> R-B Adhemerval >> feature - could be in already - now or after release? > > Agreed. It should go in ASAP. > > Adhemerval, Will you commit this? > > >> [PATCH] math: remove exp10 wrappers >> https://patchwork.sourceware.org/project/glibc/list/?series=29463 >> R-B Adhemerval >> feature - could go in now, last minute for it > > Agreed. This should go in ASAP. > >> [PATCH v11 0/7] RISC-V: ifunced memcpy using new kernel hwprobe interface >> https://patchwork.sourceware.org/project/glibc/list/?series=29471 >> needs another review? >> lots of code, but already many iterations - soon or after release > > My feeling is that this should go in as soon as 2.40 opens. > > It introduces too many generic changes to make me comfortable for 2.39 right now. OK, good timing -- my i686-gnu build just passed, so I was rebasing to commit stuff. I'm not super opposed to holding off, it's pretty late in the cycle, but we'll probably end up with a bit of user headaches as folks will likely just call the syscall directly. I'll hold off on commiting it unless folks feel like we should pick it up, just let me know... > >> [PATCH] x86-64: Check if mprotect works before rewriting PLT >> https://patchwork.sourceware.org/project/glibc/list/?series=29560 >> needs review / discussion? > > Reviewed and needs a v2. > > HJ, Please review my comments. > >> [PATCH v3] rtld: Add glibc.rtld.enable_secure tunable >> https://patchwork.sourceware.org/project/glibc/list/?series=29055 >> needs review, test failure >> feature - after release > > Agreed. This is glibc 2.40 material at this point. ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Freeze for the upcoming glibc 2.39 release - status 2024-01-12 17:19 ` Carlos O'Donell 2024-01-12 17:34 ` Palmer Dabbelt @ 2024-01-12 18:10 ` Adhemerval Zanella Netto 2024-01-12 22:10 ` Palmer Dabbelt 1 sibling, 1 reply; 31+ messages in thread From: Adhemerval Zanella Netto @ 2024-01-12 18:10 UTC (permalink / raw) To: Carlos O'Donell, Andreas K. Huettel, libc-alpha, Florian Weimer, Palmer Dabbelt, Jeff Law, H.J. Lu On 12/01/24 14:19, Carlos O'Donell wrote: > On 1/11/24 17:24, Andreas K. Huettel wrote: >> [PATCH v2] stdlib: Reinstate stable mergesort implementation on qsort >> https://patchwork.sourceware.org/project/glibc/list/?series=29039 >> delegated, Florian is looking at this >> release blocker > > Agreed. Florian is reviewing this. > >> [PATCH v2] linux: Fix fstat64 on alpha and sparc64 >> https://patchwork.sourceware.org/project/glibc/list/?series=29040 >> needs review >> release blocker > > I have just reviewed this. > > Adhemerval, Please commit. Ack. > >> [PATCH v2] Make __getrandom_nocancel set errno and add a _nostatus version >> https://patchwork.sourceware.org/project/glibc/list/?series=29130 >> R-B Adhemerval >> bug fix - should go in now? > > Agreed. > >> [PATCH] debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol >> https://patchwork.sourceware.org/project/glibc/list/?series=27941 >> R-B Adhemerval >> bug fix - should go in now >> > > Agreed. > >> [PATCH v3] RISC-V: Enable static-pie >> https://patchwork.sourceware.org/project/glibc/list/?series=29034 >> R-B Adhemerval >> feature - could be in already - now or after release? > > Agreed. It should go in ASAP. > > Adhemerval, Will you commit this? I will do it. > > >> [PATCH] math: remove exp10 wrappers >> https://patchwork.sourceware.org/project/glibc/list/?series=29463 >> R-B Adhemerval >> feature - could go in now, last minute for it > > Agreed. This should go in ASAP. > >> [PATCH v11 0/7] RISC-V: ifunced memcpy using new kernel hwprobe interface >> https://patchwork.sourceware.org/project/glibc/list/?series=29471 >> needs another review? >> lots of code, but already many iterations - soon or after release > > My feeling is that this should go in as soon as 2.40 opens. > > It introduces too many generic changes to make me comfortable for 2.39 right now. Agreed. > >> [PATCH] x86-64: Check if mprotect works before rewriting PLT >> https://patchwork.sourceware.org/project/glibc/list/?series=29560 >> needs review / discussion? > > Reviewed and needs a v2. > > HJ, Please review my comments. > >> [PATCH v3] rtld: Add glibc.rtld.enable_secure tunable >> https://patchwork.sourceware.org/project/glibc/list/?series=29055 >> needs review, test failure >> feature - after release > > Agreed. This is glibc 2.40 material at this point. > ^ permalink raw reply [flat|nested] 31+ messages in thread
* Re: Freeze for the upcoming glibc 2.39 release - status 2024-01-12 18:10 ` Adhemerval Zanella Netto @ 2024-01-12 22:10 ` Palmer Dabbelt 0 siblings, 0 replies; 31+ messages in thread From: Palmer Dabbelt @ 2024-01-12 22:10 UTC (permalink / raw) To: adhemerval.zanella Cc: Carlos O'Donell, dilfridge, libc-alpha, fweimer, Jeff Law, H.J. Lu On Fri, 12 Jan 2024 10:10:16 PST (-0800), adhemerval.zanella@linaro.org wrote: > > > On 12/01/24 14:19, Carlos O'Donell wrote: >> On 1/11/24 17:24, Andreas K. Huettel wrote: >>> [PATCH v2] stdlib: Reinstate stable mergesort implementation on qsort >>> https://patchwork.sourceware.org/project/glibc/list/?series=29039 >>> delegated, Florian is looking at this >>> release blocker >> >> Agreed. Florian is reviewing this. >> >>> [PATCH v2] linux: Fix fstat64 on alpha and sparc64 >>> https://patchwork.sourceware.org/project/glibc/list/?series=29040 >>> needs review >>> release blocker >> >> I have just reviewed this. >> >> Adhemerval, Please commit. > > Ack. > >> >>> [PATCH v2] Make __getrandom_nocancel set errno and add a _nostatus version >>> https://patchwork.sourceware.org/project/glibc/list/?series=29130 >>> R-B Adhemerval >>> bug fix - should go in now? >> >> Agreed. >> >>> [PATCH] debug/getwd_chk.c: warning should be emitted for the __getwd_chk symbol >>> https://patchwork.sourceware.org/project/glibc/list/?series=27941 >>> R-B Adhemerval >>> bug fix - should go in now >>> >> >> Agreed. >> >>> [PATCH v3] RISC-V: Enable static-pie >>> https://patchwork.sourceware.org/project/glibc/list/?series=29034 >>> R-B Adhemerval >>> feature - could be in already - now or after release? >> >> Agreed. It should go in ASAP. >> >> Adhemerval, Will you commit this? > > I will do it. > >> >> >>> [PATCH] math: remove exp10 wrappers >>> https://patchwork.sourceware.org/project/glibc/list/?series=29463 >>> R-B Adhemerval >>> feature - could go in now, last minute for it >> >> Agreed. This should go in ASAP. >> >>> [PATCH v11 0/7] RISC-V: ifunced memcpy using new kernel hwprobe interface >>> https://patchwork.sourceware.org/project/glibc/list/?series=29471 >>> needs another review? >>> lots of code, but already many iterations - soon or after release >> >> My feeling is that this should go in as soon as 2.40 opens. >> >> It introduces too many generic changes to make me comfortable for 2.39 right now. > > Agreed. Andreas agrees on IRC, so we'll just hold off until after the tree is open for 2.40. >>> [PATCH] x86-64: Check if mprotect works before rewriting PLT >>> https://patchwork.sourceware.org/project/glibc/list/?series=29560 >>> needs review / discussion? >> >> Reviewed and needs a v2. >> >> HJ, Please review my comments. >> >>> [PATCH v3] rtld: Add glibc.rtld.enable_secure tunable >>> https://patchwork.sourceware.org/project/glibc/list/?series=29055 >>> needs review, test failure >>> feature - after release >> >> Agreed. This is glibc 2.40 material at this point. >> ^ permalink raw reply [flat|nested] 31+ messages in thread
* Freeze for the upcoming glibc 2.39 release - status (2) 2024-01-11 22:24 ` Freeze for the upcoming glibc 2.39 release - status Andreas K. Huettel 2024-01-12 10:56 ` Adhemerval Zanella Netto 2024-01-12 17:19 ` Carlos O'Donell @ 2024-01-12 22:21 ` Andreas K. Huettel 2 siblings, 0 replies; 31+ messages in thread From: Andreas K. Huettel @ 2024-01-12 22:21 UTC (permalink / raw) To: libc-alpha; +Cc: Andreas K. Huettel [-- Attachment #1: Type: text/plain, Size: 1097 bytes --] > > > > We follow for the upcoming glibc 2.39 the same schedule as usual. > > > > - January 12-31, "hard ABI freeze" > > * Noncritical bug fixes. > > * No ABI changes without RM discussion. > > * High risk bug fixes should be discussed on the list. > > Going through the mailing list I've come across the following unresolved threads. > Please have a look. Comments welcome. > > I'm on vacation travelling next week (Sun-Sat), which means limited e-mail access. > Most items are now either pushed or explicitly postponed. Here's what's left: [PATCH] stdlib: Reinstate stable mergesort implementation on qsort https://patchwork.sourceware.org/project/glibc/list/?series=29636 got some minor comments, but otherwise good to go [PATCH v2] x86-64: Check if mprotect works before rewriting PLT https://patchwork.sourceware.org/project/glibc/list/?series=29649 needs review and push Once these two are in we can start machine testing. \o/ -- Andreas K. Hüttel dilfridge@gentoo.org Gentoo Linux developer (council, toolchain, base-system, perl, libreoffice) [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 981 bytes --] ^ permalink raw reply [flat|nested] 31+ messages in thread
end of thread, other threads:[~2024-06-11 21:56 UTC | newest] Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-01-01 13:18 Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release Andreas K. Huettel 2024-01-02 9:14 ` Florian Weimer 2024-01-02 9:21 ` autoconf 2.72 ? (Re: Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release) Andreas K. Huettel 2024-01-02 10:27 ` Florian Weimer 2024-01-02 17:35 ` Paul Eggert 2024-01-02 19:17 ` [PATCH, test conversion, RFC] Convert to autoconf 2.72 (no patches) Andreas K. Hüttel 2024-01-02 21:30 ` Florian Weimer 2024-01-03 4:13 ` Paul Eggert 2024-01-10 18:37 ` Carlos O'Donell 2024-06-11 9:35 ` Simon Chopin 2024-06-11 21:48 ` [PATCH v2] " Andreas K. Hüttel 2024-01-02 14:39 ` Happy New Year 2024 & Freeze for the upcoming glibc 2.39 release Adhemerval Zanella Netto 2024-01-06 12:27 ` Andreas K. Huettel 2024-01-08 12:54 ` Adhemerval Zanella Netto 2024-01-02 15:22 ` H.J. Lu 2024-01-06 22:29 ` Andreas K. Huettel 2024-01-03 21:57 ` enh 2024-01-10 18:38 ` Carlos O'Donell 2024-01-10 20:33 ` Jeff Law 2024-01-11 1:10 ` Palmer Dabbelt 2024-01-12 6:13 ` Palmer Dabbelt 2024-01-11 22:24 ` Freeze for the upcoming glibc 2.39 release - status Andreas K. Huettel 2024-01-12 10:56 ` Adhemerval Zanella Netto 2024-01-12 13:14 ` Xi Ruoyao 2024-01-12 13:25 ` Andreas K. Huettel 2024-01-12 14:23 ` Andreas K. Huettel 2024-01-12 17:19 ` Carlos O'Donell 2024-01-12 17:34 ` Palmer Dabbelt 2024-01-12 18:10 ` Adhemerval Zanella Netto 2024-01-12 22:10 ` Palmer Dabbelt 2024-01-12 22:21 ` Freeze for the upcoming glibc 2.39 release - status (2) Andreas K. Huettel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).