Blame sysdeps/powerpc/powerpc64/le/configure

Packit 6c4009
# This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
Packit 6c4009
 # Local configure fragment for sysdeps/powerpc/powerpc64le.
Packit 6c4009
Packit 6c4009
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports binary128 floating point type" >&5
Packit 6c4009
$as_echo_n "checking if $CC supports binary128 floating point type... " >&6; }
Packit 6c4009
if ${libc_cv_compiler_powerpc64le_binary128_ok+:} false; then :
Packit 6c4009
  $as_echo_n "(cached) " >&6
Packit 6c4009
else
Packit 6c4009
  save_CFLAGS="$CFLAGS"
Packit 6c4009
CFLAGS="$CFLAGS -Werror -mfloat128"
Packit 6c4009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Packit 6c4009
/* end confdefs.h.  */
Packit 6c4009
Packit 6c4009
__float128 a, b, c, d, e;
Packit 6c4009
int i;
Packit 6c4009
Packit 6c4009
__float128
Packit 6c4009
foobar (__float128 x)
Packit 6c4009
{
Packit 6c4009
  a = __builtin_nansq ("0");
Packit 6c4009
  b = __builtin_huge_valq ();
Packit 6c4009
  c = __builtin_infq ();
Packit 6c4009
  d = __builtin_fabsq (x);
Packit 6c4009
  e = __builtin_nanq ("0");
Packit 6c4009
  i = __builtin_signbit (x);
Packit 6c4009
  return __builtin_copysignq (x, x);
Packit 6c4009
}
Packit 6c4009
Packit 6c4009
_ACEOF
Packit 6c4009
if ac_fn_c_try_compile "$LINENO"; then :
Packit 6c4009
  libc_cv_compiler_powerpc64le_binary128_ok=yes
Packit 6c4009
else
Packit 6c4009
  libc_cv_compiler_powerpc64le_binary128_ok=no
Packit 6c4009
fi
Packit 6c4009
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Packit 6c4009
CFLAGS="$save_CFLAGS"
Packit 6c4009
fi
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_binary128_ok" >&5
Packit 6c4009
$as_echo "$libc_cv_compiler_powerpc64le_binary128_ok" >&6; }
Packit 6c4009
if test "$libc_cv_compiler_powerpc64le_binary128_ok" != "yes"; then :
Packit 6c4009
  critic_missing="$critic_missing binary128 floating point type (GCC >= 6.2) is required on powerpc64le."
Packit 6c4009
fi
Packit 6c4009
Packit 6c4009
OLD_CFLAGS="$CFLAGS"
Packit 6c4009
CFLAGS="$CFLAGS $libc_cv_cc_submachine"
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the target machine is at least POWER8" >&5
Packit 6c4009
$as_echo_n "checking if the target machine is at least POWER8... " >&6; }
Packit 6c4009
if ${libc_cv_target_power8_ok+:} false; then :
Packit 6c4009
  $as_echo_n "(cached) " >&6
Packit 6c4009
else
Packit 6c4009
Packit 6c4009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Packit 6c4009
/* end confdefs.h.  */
Packit 6c4009
Packit 6c4009
#ifndef _ARCH_PWR8
Packit 6c4009
#error invalid target architecture
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
_ACEOF
Packit 6c4009
if ac_fn_c_try_compile "$LINENO"; then :
Packit 6c4009
  libc_cv_target_power8_ok=yes
Packit 6c4009
else
Packit 6c4009
  libc_cv_target_power8_ok=no
Packit 6c4009
fi
Packit 6c4009
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Packit 6c4009
fi
Packit 6c4009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_target_power8_ok" >&5
Packit 6c4009
$as_echo "$libc_cv_target_power8_ok" >&6; }
Packit 6c4009
if test "$libc_cv_target_power8_ok" != "yes"; then :
Packit 6c4009
  critic_missing="$critic_missing POWER8 or newer is required on powerpc64le."
Packit 6c4009
fi
Packit 6c4009
CFLAGS="$OLD_CFLAGS"
Packit 6c4009
Packit 6c4009
test -n "$critic_missing" && as_fn_error $? "*** $critic_missing" "$LINENO" 5