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