powerpc64le: Require at least POWER8 for powerpc64le
[glibc.git] / sysdeps / powerpc / powerpc64le / configure
blob66bb5dcc1aab12febc181cfd514bfdbb6f5d4ab2
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/powerpc/powerpc64le.
5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports binary128 floating point type" >&5
6 $as_echo_n "checking if $CC supports binary128 floating point type... " >&6; }
7 if ${libc_cv_compiler_powerpc64le_binary128_ok+:} false; then :
8   $as_echo_n "(cached) " >&6
9 else
10   save_CFLAGS="$CFLAGS"
11 CFLAGS="$CFLAGS -Werror -mfloat128"
12 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 /* end confdefs.h.  */
15 __float128 a, b, c, d, e;
16 int i;
18 __float128
19 foobar (__float128 x)
21   a = __builtin_nansq ("0");
22   b = __builtin_huge_valq ();
23   c = __builtin_infq ();
24   d = __builtin_fabsq (x);
25   e = __builtin_nanq ("0");
26   i = __builtin_signbit (x);
27   return __builtin_copysignq (x, x);
30 _ACEOF
31 if ac_fn_c_try_compile "$LINENO"; then :
32   libc_cv_compiler_powerpc64le_binary128_ok=yes
33 else
34   libc_cv_compiler_powerpc64le_binary128_ok=no
36 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37 CFLAGS="$save_CFLAGS"
39 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_binary128_ok" >&5
40 $as_echo "$libc_cv_compiler_powerpc64le_binary128_ok" >&6; }
41 if test "$libc_cv_compiler_powerpc64le_binary128_ok" != "yes"; then :
42   critic_missing="$critic_missing binary128 floating point type (GCC >= 6.2) is required on powerpc64le."
45 OLD_CFLAGS="$CFLAGS"
46 CFLAGS="$CFLAGS $libc_cv_cc_submachine"
47 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the target machine is at least POWER8" >&5
48 $as_echo_n "checking if the target machine is at least POWER8... " >&6; }
49 if ${libc_cv_target_power8_ok+:} false; then :
50   $as_echo_n "(cached) " >&6
51 else
53 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54 /* end confdefs.h.  */
56 #ifndef _ARCH_PWR8
57 #error invalid target architecture
58 #endif
60 _ACEOF
61 if ac_fn_c_try_compile "$LINENO"; then :
62   libc_cv_target_power8_ok=yes
63 else
64   libc_cv_target_power8_ok=no
66 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_target_power8_ok" >&5
69 $as_echo "$libc_cv_target_power8_ok" >&6; }
70 if test "$libc_cv_target_power8_ok" != "yes"; then :
71   critic_missing="$critic_missing POWER8 or newer is required on powerpc64le."
73 CFLAGS="$OLD_CFLAGS"
75 test -n "$critic_missing" && as_fn_error $? "*** $critic_missing" "$LINENO" 5