]>
Commit | Line | Data |
---|---|---|
1 | # This file is generated from configure.ac by Autoconf. DO NOT EDIT! | |
2 | # Local configure fragment for sysdeps/powerpc/powerpc64le. | |
3 | ||
4 | OLD_CFLAGS="$CFLAGS" | |
5 | CFLAGS="$CFLAGS $libc_cv_cc_submachine" | |
6 | ||
7 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the target machine is at least POWER8" >&5 | |
8 | printf %s "checking if the target machine is at least POWER8... " >&6; } | |
9 | if test ${libc_cv_target_power8_ok+y} | |
10 | then : | |
11 | printf %s "(cached) " >&6 | |
12 | else $as_nop | |
13 | ||
14 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15 | /* end confdefs.h. */ | |
16 | ||
17 | #ifndef _ARCH_PWR8 | |
18 | #error invalid target architecture | |
19 | #endif | |
20 | ||
21 | _ACEOF | |
22 | if ac_fn_c_try_compile "$LINENO" | |
23 | then : | |
24 | libc_cv_target_power8_ok=yes | |
25 | else $as_nop | |
26 | libc_cv_target_power8_ok=no | |
27 | fi | |
28 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
29 | fi | |
30 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_target_power8_ok" >&5 | |
31 | printf "%s\n" "$libc_cv_target_power8_ok" >&6; } | |
32 | if test "$libc_cv_target_power8_ok" != "yes" | |
33 | then : | |
34 | critic_missing="$critic_missing POWER8 or newer is required on powerpc64le." | |
35 | fi | |
36 | CFLAGS="$OLD_CFLAGS" | |
37 | ||
38 | OLD_CFLAGS="$CFLAGS" | |
39 | CFLAGS="$CFLAGS -mno-gnu-attribute" | |
40 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -mno-gnu-attribute" >&5 | |
41 | printf %s "checking if the compiler supports -mno-gnu-attribute... " >&6; } | |
42 | if test ${libc_cv_no_gnu_attr_ok+y} | |
43 | then : | |
44 | printf %s "(cached) " >&6 | |
45 | else $as_nop | |
46 | ||
47 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
48 | /* end confdefs.h. */ | |
49 | ||
50 | ||
51 | _ACEOF | |
52 | if ac_fn_c_try_compile "$LINENO" | |
53 | then : | |
54 | libc_cv_no_gnu_attr_ok=yes | |
55 | else $as_nop | |
56 | libc_cv_no_gnu_attr_ok=no | |
57 | fi | |
58 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
59 | fi | |
60 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_no_gnu_attr_ok" >&5 | |
61 | printf "%s\n" "$libc_cv_no_gnu_attr_ok" >&6; } | |
62 | if test "$libc_cv_no_gnu_attr_ok" != "yes" | |
63 | then : | |
64 | critic_missing="$critic_missing A compiler with -mno-gnu-attribute is required on powerpc64le." | |
65 | fi | |
66 | CFLAGS="$OLD_CFLAGS" | |
67 | ||
68 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC compiles signbit with 128-bit floating point type" >&5 | |
69 | printf %s "checking if $CC compiles signbit with 128-bit floating point type... " >&6; } | |
70 | if test ${libc_cv_compiler_powerpc64le_ice+y} | |
71 | then : | |
72 | printf %s "(cached) " >&6 | |
73 | else $as_nop | |
74 | save_CFLAGS="$CFLAGS" | |
75 | CFLAGS="$CFLAGS -mabi=ieeelongdouble -Wno-psabi" | |
76 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
77 | /* end confdefs.h. */ | |
78 | ||
79 | int sbr (long double a) { return __builtin_signbit (a); } | |
80 | int sbm (long double *a) { return __builtin_signbit (*a); } | |
81 | int sbo (long double *a) { return __builtin_signbit (a[4]); } | |
82 | int sbi (long double *a, unsigned long n) { return __builtin_signbit (a[n]); } | |
83 | void sbs (int *p, long double a) { *p = __builtin_signbit (a); } | |
84 | ||
85 | _ACEOF | |
86 | if ac_fn_c_try_compile "$LINENO" | |
87 | then : | |
88 | libc_cv_compiler_powerpc64le_ice=yes | |
89 | else $as_nop | |
90 | libc_cv_compiler_powerpc64le_ice=no | |
91 | fi | |
92 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
93 | CFLAGS="$save_CFLAGS" | |
94 | fi | |
95 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ice" >&5 | |
96 | printf "%s\n" "$libc_cv_compiler_powerpc64le_ice" >&6; } | |
97 | if test "$libc_cv_compiler_powerpc64le_ice" != "yes" | |
98 | then : | |
99 | critic_missing="$critic_missing __builtin_signbit is broken. GCC 7.4 or newer is required to resolve (PR83862)." | |
100 | fi | |
101 | ||
102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC compiles with -mabi=ieeelongdouble and -mlong-double-128" >&5 | |
103 | printf %s "checking if $CC compiles with -mabi=ieeelongdouble and -mlong-double-128... " >&6; } | |
104 | if test ${libc_cv_compiler_powerpc64le_ldbl128_mabi+y} | |
105 | then : | |
106 | printf %s "(cached) " >&6 | |
107 | else $as_nop | |
108 | save_CFLAGS="$CFLAGS" | |
109 | CFLAGS="$CFLAGS -mabi=ieeelongdouble -mlong-double-128" | |
110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
111 | /* end confdefs.h. */ | |
112 | ||
113 | long double x; | |
114 | ||
115 | _ACEOF | |
116 | if ac_fn_c_try_compile "$LINENO" | |
117 | then : | |
118 | libc_cv_compiler_powerpc64le_ldbl128_mabi=yes | |
119 | else $as_nop | |
120 | libc_cv_compiler_powerpc64le_ldbl128_mabi=no | |
121 | fi | |
122 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
123 | CFLAGS="$save_CFLAGS" | |
124 | fi | |
125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_powerpc64le_ldbl128_mabi" >&5 | |
126 | printf "%s\n" "$libc_cv_compiler_powerpc64le_ldbl128_mabi" >&6; } | |
127 | if test "$libc_cv_compiler_powerpc64le_ldbl128_mabi" = "no" | |
128 | then : | |
129 | critic_missing="$critic_missing The compiler must support -mabi=ieeelongdouble and -mlong-double-128 simultaneously." | |
130 | fi | |
131 | ||
132 | for ac_prog in $OBJCOPY | |
133 | do | |
134 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
135 | set dummy $ac_prog; ac_word=$2 | |
136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
137 | printf %s "checking for $ac_word... " >&6; } | |
138 | if test ${ac_cv_prog_OBJCOPY+y} | |
139 | then : | |
140 | printf %s "(cached) " >&6 | |
141 | else $as_nop | |
142 | if test -n "$OBJCOPY"; then | |
143 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
144 | else | |
145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
146 | for as_dir in $PATH | |
147 | do | |
148 | IFS=$as_save_IFS | |
149 | case $as_dir in #((( | |
150 | '') as_dir=./ ;; | |
151 | */) ;; | |
152 | *) as_dir=$as_dir/ ;; | |
153 | esac | |
154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
155 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
156 | ac_cv_prog_OBJCOPY="$ac_prog" | |
157 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
158 | break 2 | |
159 | fi | |
160 | done | |
161 | done | |
162 | IFS=$as_save_IFS | |
163 | ||
164 | fi | |
165 | fi | |
166 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
167 | if test -n "$OBJCOPY"; then | |
168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 | |
169 | printf "%s\n" "$OBJCOPY" >&6; } | |
170 | else | |
171 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
172 | printf "%s\n" "no" >&6; } | |
173 | fi | |
174 | ||
175 | ||
176 | test -n "$OBJCOPY" && break | |
177 | done | |
178 | ||
179 | if test -z "$OBJCOPY"; then | |
180 | ac_verc_fail=yes | |
181 | else | |
182 | # Found it, now check the version. | |
183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $OBJCOPY" >&5 | |
184 | printf %s "checking version of $OBJCOPY... " >&6; } | |
185 | ac_prog_version=`$OBJCOPY --version 2>&1 | sed -n 's/^.*GNU objcopy.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
186 | case $ac_prog_version in | |
187 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
188 | 2.1[0-9][0-9]*|2.2[6-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*) | |
189 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
190 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
191 | ||
192 | esac | |
193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
194 | printf "%s\n" "$ac_prog_version" >&6; } | |
195 | fi | |
196 | if test $ac_verc_fail = yes; then | |
197 | AS=: critic_missing="$critic_missing objcopy >= 2.26 is required on powerpc64le" | |
198 | fi | |
199 | ||
200 | ||
201 | test -n "$critic_missing" && as_fn_error $? "*** $critic_missing" "$LINENO" 5 | |
202 |