diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-06-29 14:34:16 -0400 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-07-17 10:08:10 -0400 |
commit | c6cb8783b5fb5896cb63fe9008b6a33351f3c777 (patch) | |
tree | 603c0cce8394c6d7f45ea4e2d4c5cf473c1af4f6 /sysdeps/powerpc | |
parent | 5a70ac9d39711528573439e01e249a8f825743ca (diff) | |
download | glibc-c6cb8783b5fb5896cb63fe9008b6a33351f3c777.zip glibc-c6cb8783b5fb5896cb63fe9008b6a33351f3c777.tar.gz glibc-c6cb8783b5fb5896cb63fe9008b6a33351f3c777.tar.bz2 |
configure: Use autoconf 2.71
Bump autoconf requirement to 2.71 to allow regenerating configure on
more recent distributions. autoconf 2.71 has been in Fedora since F36
and is the current version in Debian stable (bookworm). It appears to
be current in Gentoo as well.
All sysdeps configure and preconfigure scripts have also been
regenerated; all changes are trivial transformations that do not affect
functionality.
Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r-- | sysdeps/powerpc/powerpc32/configure | 3 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc32/fpu/configure | 39 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/configure | 46 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/le/configure | 138 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure | 28 | ||||
-rw-r--r-- | sysdeps/powerpc/preconfigure | 22 |
6 files changed, 155 insertions, 121 deletions
diff --git a/sysdeps/powerpc/powerpc32/configure b/sysdeps/powerpc/powerpc32/configure index eb1bcbe..732498d 100644 --- a/sysdeps/powerpc/powerpc32/configure +++ b/sysdeps/powerpc/powerpc32/configure @@ -1,5 +1,6 @@ # This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/powerpc/powerpc32. -$as_echo "#define HIDDEN_VAR_NEEDS_DYNAMIC_RELOC 1" >>confdefs.h +printf "%s\n" "#define HIDDEN_VAR_NEEDS_DYNAMIC_RELOC 1" >>confdefs.h + diff --git a/sysdeps/powerpc/powerpc32/fpu/configure b/sysdeps/powerpc/powerpc32/fpu/configure index 98c6f30..da6fbb1 100644 --- a/sysdeps/powerpc/powerpc32/fpu/configure +++ b/sysdeps/powerpc/powerpc32/fpu/configure @@ -2,18 +2,19 @@ # Local configure fragment for sysdeps/powerpc/powerpc32/fpu. # Test whether integer to floating point conversions use fcfid. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcfid use" >&5 -$as_echo_n "checking for fcfid use... " >&6; } -if ${libc_cv_ppc_fcfid+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fcfid use" >&5 +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 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 (eval $ac_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then if grep '[ ]fcfid' conftest.s > /dev/null 2>&1; then libc_cv_ppc_fcfid=yes @@ -21,26 +22,27 @@ if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' fi rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fcfid" >&5 -$as_echo "$libc_cv_ppc_fcfid" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fcfid" >&5 +printf "%s\n" "$libc_cv_ppc_fcfid" >&6; } if test $libc_cv_ppc_fcfid = yes; then - $as_echo "#define HAVE_PPC_FCFID 1" >>confdefs.h + printf "%s\n" "#define HAVE_PPC_FCFID 1" >>confdefs.h fi # Test whether floating point to long long conversions use fctidz. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fctidz use" >&5 -$as_echo_n "checking for fctidz use... " >&6; } -if ${libc_cv_ppc_fctidz+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fctidz use" >&5 +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 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 (eval $ac_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then if grep '[ ]fctidz' conftest.s > /dev/null 2>&1; then libc_cv_ppc_fctidz=yes @@ -48,9 +50,10 @@ if { ac_try='${CC-cc} -S $CFLAGS conftest.c -o conftest.s 1>&5' fi rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fctidz" >&5 -$as_echo "$libc_cv_ppc_fctidz" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc_fctidz" >&5 +printf "%s\n" "$libc_cv_ppc_fctidz" >&6; } if test $libc_cv_ppc_fctidz = yes; then - $as_echo "#define HAVE_PPC_FCTIDZ 1" >>confdefs.h + printf "%s\n" "#define HAVE_PPC_FCTIDZ 1" >>confdefs.h fi + diff --git a/sysdeps/powerpc/powerpc64/configure b/sysdeps/powerpc/powerpc64/configure index e09052a..6d8153e 100644 --- a/sysdeps/powerpc/powerpc64/configure +++ b/sysdeps/powerpc/powerpc64/configure @@ -1,21 +1,22 @@ # This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/powerpc/powerpc64. -$as_echo "#define HIDDEN_VAR_NEEDS_DYNAMIC_RELOC 1" >>confdefs.h +printf "%s\n" "#define HIDDEN_VAR_NEEDS_DYNAMIC_RELOC 1" >>confdefs.h -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for support for overlapping .opd entries" >&5 -$as_echo_n "checking for support for overlapping .opd entries... " >&6; } -if ${libc_cv_overlapping_opd+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for support for overlapping .opd entries" >&5 +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 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 (eval $ac_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then if grep '\.TOC\.@tocbase' conftest.s > /dev/null; then if grep '\.TOC\.@tocbase[ ]*,[ ]*0' conftest.s > /dev/null; then @@ -28,10 +29,10 @@ fi rm -f conftest.c conftest.s fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_overlapping_opd" >&5 -$as_echo "$libc_cv_overlapping_opd" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_overlapping_opd" >&5 +printf "%s\n" "$libc_cv_overlapping_opd" >&6; } if test x$libc_cv_overlapping_opd = xyes; then - $as_echo "#define USE_PPC64_OVERLAPPING_OPD 1" >>confdefs.h + printf "%s\n" "#define USE_PPC64_OVERLAPPING_OPD 1" >>confdefs.h fi @@ -39,11 +40,12 @@ fi # gain by enabling it if it will be optimized away by the linker. # It also helps linkers that might not optimize it and end up # generating stubs with ISA 3.1 instruction even targeting older ISA. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports @notoc" >&5 -$as_echo_n "checking if the compiler supports @notoc... " >&6; } -if ${libc_cv_ppc64_notoc+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports @notoc" >&5 +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 int bar (void); int foo (void) { return bar () + 1; } @@ -53,22 +55,24 @@ EOF { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } \ && { ac_try='grep -q -E 'bar@notoc' conftest.s' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } then libc_cv_ppc64_notoc=yes fi rm -rf conftest.* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_notoc" >&5 -$as_echo "$libc_cv_ppc64_notoc" >&6; } -if test x$libc_cv_ppc64_notoc = xyes; then : - $as_echo "#define USE_PPC64_NOTOC 1" >>confdefs.h +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ppc64_notoc" >&5 +printf "%s\n" "$libc_cv_ppc64_notoc" >&6; } +if test x$libc_cv_ppc64_notoc = xyes +then : + printf "%s\n" "#define USE_PPC64_NOTOC 1" >>confdefs.h fi + diff --git a/sysdeps/powerpc/powerpc64/le/configure b/sysdeps/powerpc/powerpc64/le/configure index 395f9f7..3ec457b 100644 --- a/sysdeps/powerpc/powerpc64/le/configure +++ b/sysdeps/powerpc/powerpc64/le/configure @@ -4,11 +4,12 @@ OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $libc_cv_cc_submachine" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the target machine is at least POWER8" >&5 -$as_echo_n "checking if the target machine is at least POWER8... " >&6; } -if ${libc_cv_target_power8_ok+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the target machine is at least POWER8" >&5 +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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -18,52 +19,58 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext #endif _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : libc_cv_target_power8_ok=yes -else +else $as_nop libc_cv_target_power8_ok=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_target_power8_ok" >&5 -$as_echo "$libc_cv_target_power8_ok" >&6; } -if test "$libc_cv_target_power8_ok" != "yes"; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_target_power8_ok" >&5 +printf "%s\n" "$libc_cv_target_power8_ok" >&6; } +if test "$libc_cv_target_power8_ok" != "yes" +then : critic_missing="$critic_missing POWER8 or newer is required on powerpc64le." fi CFLAGS="$OLD_CFLAGS" OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mno-gnu-attribute" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -mno-gnu-attribute" >&5 -$as_echo_n "checking if the compiler supports -mno-gnu-attribute... " >&6; } -if ${libc_cv_no_gnu_attr_ok+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -mno-gnu-attribute" >&5 +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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : libc_cv_no_gnu_attr_ok=yes -else +else $as_nop libc_cv_no_gnu_attr_ok=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_no_gnu_attr_ok" >&5 -$as_echo "$libc_cv_no_gnu_attr_ok" >&6; } -if test "$libc_cv_no_gnu_attr_ok" != "yes"; then : +{ 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; } +if test "$libc_cv_no_gnu_attr_ok" != "yes" +then : critic_missing="$critic_missing A compiler with -mno-gnu-attribute is required on powerpc64le." fi CFLAGS="$OLD_CFLAGS" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC compiles signbit with 128-bit floating point type" >&5 -$as_echo_n "checking if $CC compiles signbit with 128-bit floating point type... " >&6; } -if ${libc_cv_compiler_powerpc64le_ice+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC compiles signbit with 128-bit floating point type" >&5 +printf %s "checking if $CC compiles signbit with 128-bit floating point type... " >&6; } +if test ${libc_cv_compiler_powerpc64le_ice+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mabi=ieeelongdouble -Wno-psabi" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -76,25 +83,28 @@ int sbi (long double *a, unsigned long n) { return __builtin_signbit (a[n]); } void sbs (int *p, long double a) { *p = __builtin_signbit (a); } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : libc_cv_compiler_powerpc64le_ice=yes -else +else $as_nop libc_cv_compiler_powerpc64le_ice=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$save_CFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ice" >&5 -$as_echo "$libc_cv_compiler_powerpc64le_ice" >&6; } -if test "$libc_cv_compiler_powerpc64le_ice" != "yes"; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ice" >&5 +printf "%s\n" "$libc_cv_compiler_powerpc64le_ice" >&6; } +if test "$libc_cv_compiler_powerpc64le_ice" != "yes" +then : critic_missing="$critic_missing __builtin_signbit is broken. GCC 7.4 or newer is required to resolve (PR83862)." fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC compiles with -mabi=ieeelongdouble and -mlong-double-128" >&5 -$as_echo_n "checking if $CC compiles with -mabi=ieeelongdouble and -mlong-double-128... " >&6; } -if ${libc_cv_compiler_powerpc64le_ldbl128_mabi+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC compiles with -mabi=ieeelongdouble and -mlong-double-128" >&5 +printf %s "checking if $CC compiles with -mabi=ieeelongdouble and -mlong-double-128... " >&6; } +if test ${libc_cv_compiler_powerpc64le_ldbl128_mabi+y} +then : + printf %s "(cached) " >&6 +else $as_nop save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mabi=ieeelongdouble -mlong-double-128" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -103,17 +113,19 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext long double x; _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : libc_cv_compiler_powerpc64le_ldbl128_mabi=yes -else +else $as_nop libc_cv_compiler_powerpc64le_ldbl128_mabi=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext CFLAGS="$save_CFLAGS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ldbl128_mabi" >&5 -$as_echo "$libc_cv_compiler_powerpc64le_ldbl128_mabi" >&6; } -if test "$libc_cv_compiler_powerpc64le_ldbl128_mabi" = "no"; then : +{ 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; } +if test "$libc_cv_compiler_powerpc64le_ldbl128_mabi" = "no" +then : critic_missing="$critic_missing The compiler must support -mabi=ieeelongdouble and -mlong-double-128 simultaneously." fi @@ -121,11 +133,12 @@ for ac_prog in $OBJCOPY do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -$as_echo_n "checking for $ac_word... " >&6; } -if ${ac_cv_prog_OBJCOPY+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +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 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. else @@ -133,11 +146,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then ac_cv_prog_OBJCOPY="$ac_prog" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -148,11 +165,11 @@ fi fi OBJCOPY=$ac_cv_prog_OBJCOPY if test -n "$OBJCOPY"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 -$as_echo "$OBJCOPY" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 +printf "%s\n" "$OBJCOPY" >&6; } else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi @@ -163,8 +180,8 @@ if test -z "$OBJCOPY"; then ac_verc_fail=yes else # Found it, now check the version. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $OBJCOPY" >&5 -$as_echo_n "checking version of $OBJCOPY... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $OBJCOPY" >&5 +printf %s "checking version of $OBJCOPY... " >&6; } ac_prog_version=`$OBJCOPY --version 2>&1 | sed -n 's/^.*GNU objcopy.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; @@ -173,8 +190,8 @@ $as_echo_n "checking version of $OBJCOPY... " >&6; } *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 -$as_echo "$ac_prog_version" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 +printf "%s\n" "$ac_prog_version" >&6; } fi if test $ac_verc_fail = yes; then AS=: critic_missing="$critic_missing objcopy >= 2.26 is required on powerpc64le" @@ -182,3 +199,4 @@ fi test -n "$critic_missing" && as_fn_error $? "*** $critic_missing" "$LINENO" 5 + diff --git a/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure b/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure index b95a720..130e3be 100644 --- a/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure +++ b/sysdeps/powerpc/powerpc64/le/fpu/multiarch/configure @@ -3,31 +3,35 @@ OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -mcpu=power10" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -mcpu=power10" >&5 -$as_echo_n "checking if the compiler supports -mcpu=power10... " >&6; } -if ${libc_cv_mcpu_power10+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -mcpu=power10" >&5 +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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : libc_cv_mcpu_power10=yes -else +else $as_nop libc_cv_mcpu_power10=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mcpu_power10" >&5 -$as_echo "$libc_cv_mcpu_power10" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mcpu_power10" >&5 +printf "%s\n" "$libc_cv_mcpu_power10" >&6; } config_vars="$config_vars mcpu-power10 = $libc_cv_mcpu_power10" -if test "$libc_cv_mcpu_power10" = "yes"; then : +if test "$libc_cv_mcpu_power10" = "yes" +then : - $as_echo "#define USE_PPC64_MCPU_POWER10 1" >>confdefs.h + printf "%s\n" "#define USE_PPC64_MCPU_POWER10 1" >>confdefs.h fi CFLAGS="$OLD_CFLAGS" + diff --git a/sysdeps/powerpc/preconfigure b/sysdeps/powerpc/preconfigure index dfe8e20..4de9408 100644 --- a/sysdeps/powerpc/preconfigure +++ b/sysdeps/powerpc/preconfigure @@ -39,18 +39,20 @@ case "${machine}:${submachine}" in case "$archcpu" in 405fp|440fp|464fp|476fp) submachine=${archcpu%fp} - if ${libc_cv_cc_submachine+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${libc_cv_cc_submachine+y} +then : + printf %s "(cached) " >&6 +else $as_nop libc_cv_cc_submachine="" fi ;; 405|440|464|476) submachine=${archcpu} - if ${libc_cv_cc_submachine+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${libc_cv_cc_submachine+y} +then : + printf %s "(cached) " >&6 +else $as_nop libc_cv_cc_submachine="" fi @@ -58,9 +60,10 @@ fi a2|970|power[4-9]|power5x|power6+|power10) submachine=${archcpu} - if ${libc_cv_cc_submachine+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${libc_cv_cc_submachine+y} +then : + printf %s "(cached) " >&6 +else $as_nop libc_cv_cc_submachine="" fi @@ -71,3 +74,4 @@ fi esac ;; esac + |