]>
Commit | Line | Data |
---|---|---|
a3d4298d JM |
1 | # Factoring default headers for most tests. |
2 | ac_includes_default="\ | |
3 | #include <stdio.h> | |
4 | #ifdef HAVE_SYS_TYPES_H | |
5 | # include <sys/types.h> | |
6 | #endif | |
7 | #ifdef HAVE_SYS_STAT_H | |
8 | # include <sys/stat.h> | |
9 | #endif | |
10 | #ifdef STDC_HEADERS | |
11 | # include <stdlib.h> | |
12 | # include <stddef.h> | |
13 | #else | |
14 | # ifdef HAVE_STDLIB_H | |
15 | # include <stdlib.h> | |
16 | # endif | |
17 | #endif | |
18 | #ifdef HAVE_STRING_H | |
19 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
20 | # include <memory.h> | |
21 | # endif | |
22 | # include <string.h> | |
23 | #endif | |
24 | #ifdef HAVE_STRINGS_H | |
25 | # include <strings.h> | |
26 | #endif | |
27 | #ifdef HAVE_INTTYPES_H | |
28 | # include <inttypes.h> | |
29 | #endif | |
30 | #ifdef HAVE_STDINT_H | |
31 | # include <stdint.h> | |
32 | #endif | |
33 | #ifdef HAVE_UNISTD_H | |
34 | # include <unistd.h> | |
35 | #endif" | |
36 | ||
51921047 UD |
37 | # This file is generated from configure.in by Autoconf. DO NOT EDIT! |
38 | # Local configure fragment for sysdeps/i386. | |
39 | ||
40 | ||
a3d4298d | 41 | |
7967983f RM |
42 | { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
43 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
a3d4298d | 44 | if test "${ac_cv_path_GREP+set}" = set; then |
7967983f | 45 | $as_echo_n "(cached) " >&6 |
a3d4298d | 46 | else |
7967983f | 47 | if test -z "$GREP"; then |
a3d4298d | 48 | ac_path_GREP_found=false |
7967983f RM |
49 | # Loop through the user's path and test for each of PROGNAME-LIST |
50 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
a3d4298d JM |
51 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
52 | do | |
53 | IFS=$as_save_IFS | |
54 | test -z "$as_dir" && as_dir=. | |
55 | for ac_prog in grep ggrep; do | |
7967983f RM |
56 | for ac_exec_ext in '' $ac_executable_extensions; do |
57 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
58 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
59 | # Check for GNU ac_path_GREP and select it if it is found. | |
a3d4298d JM |
60 | # Check for GNU $ac_path_GREP |
61 | case `"$ac_path_GREP" --version 2>&1` in | |
62 | *GNU*) | |
63 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
64 | *) | |
65 | ac_count=0 | |
7967983f | 66 | $as_echo_n 0123456789 >"conftest.in" |
a3d4298d JM |
67 | while : |
68 | do | |
69 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
70 | mv "conftest.tmp" "conftest.in" | |
71 | cp "conftest.in" "conftest.nl" | |
7967983f | 72 | $as_echo 'GREP' >> "conftest.nl" |
a3d4298d JM |
73 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
74 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
75 | ac_count=`expr $ac_count + 1` | |
76 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
77 | # Best one so far, save it but keep looking for a better one | |
78 | ac_cv_path_GREP="$ac_path_GREP" | |
79 | ac_path_GREP_max=$ac_count | |
80 | fi | |
81 | # 10*(2^10) chars as input seems more than enough | |
82 | test $ac_count -gt 10 && break | |
83 | done | |
84 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
85 | esac | |
86 | ||
7967983f RM |
87 | $ac_path_GREP_found && break 3 |
88 | done | |
a3d4298d JM |
89 | done |
90 | done | |
a3d4298d | 91 | IFS=$as_save_IFS |
7967983f RM |
92 | if test -z "$ac_cv_path_GREP"; then |
93 | { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
94 | $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
a3d4298d | 95 | { (exit 1); exit 1; }; } |
7967983f | 96 | fi |
a3d4298d JM |
97 | else |
98 | ac_cv_path_GREP=$GREP | |
99 | fi | |
100 | ||
a3d4298d | 101 | fi |
7967983f RM |
102 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
103 | $as_echo "$ac_cv_path_GREP" >&6; } | |
a3d4298d JM |
104 | GREP="$ac_cv_path_GREP" |
105 | ||
106 | ||
7967983f RM |
107 | { $as_echo "$as_me:$LINENO: checking for egrep" >&5 |
108 | $as_echo_n "checking for egrep... " >&6; } | |
a3d4298d | 109 | if test "${ac_cv_path_EGREP+set}" = set; then |
7967983f | 110 | $as_echo_n "(cached) " >&6 |
a3d4298d JM |
111 | else |
112 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
113 | then ac_cv_path_EGREP="$GREP -E" | |
114 | else | |
7967983f | 115 | if test -z "$EGREP"; then |
a3d4298d | 116 | ac_path_EGREP_found=false |
7967983f RM |
117 | # Loop through the user's path and test for each of PROGNAME-LIST |
118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
a3d4298d JM |
119 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
120 | do | |
121 | IFS=$as_save_IFS | |
122 | test -z "$as_dir" && as_dir=. | |
123 | for ac_prog in egrep; do | |
7967983f RM |
124 | for ac_exec_ext in '' $ac_executable_extensions; do |
125 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
126 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
127 | # Check for GNU ac_path_EGREP and select it if it is found. | |
a3d4298d JM |
128 | # Check for GNU $ac_path_EGREP |
129 | case `"$ac_path_EGREP" --version 2>&1` in | |
130 | *GNU*) | |
131 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
132 | *) | |
133 | ac_count=0 | |
7967983f | 134 | $as_echo_n 0123456789 >"conftest.in" |
a3d4298d JM |
135 | while : |
136 | do | |
137 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
138 | mv "conftest.tmp" "conftest.in" | |
139 | cp "conftest.in" "conftest.nl" | |
7967983f | 140 | $as_echo 'EGREP' >> "conftest.nl" |
a3d4298d JM |
141 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
142 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
143 | ac_count=`expr $ac_count + 1` | |
144 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
145 | # Best one so far, save it but keep looking for a better one | |
146 | ac_cv_path_EGREP="$ac_path_EGREP" | |
147 | ac_path_EGREP_max=$ac_count | |
148 | fi | |
149 | # 10*(2^10) chars as input seems more than enough | |
150 | test $ac_count -gt 10 && break | |
151 | done | |
152 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
153 | esac | |
154 | ||
7967983f RM |
155 | $ac_path_EGREP_found && break 3 |
156 | done | |
a3d4298d JM |
157 | done |
158 | done | |
a3d4298d | 159 | IFS=$as_save_IFS |
7967983f RM |
160 | if test -z "$ac_cv_path_EGREP"; then |
161 | { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
162 | $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
a3d4298d | 163 | { (exit 1); exit 1; }; } |
7967983f | 164 | fi |
a3d4298d JM |
165 | else |
166 | ac_cv_path_EGREP=$EGREP | |
167 | fi | |
168 | ||
a3d4298d JM |
169 | fi |
170 | fi | |
7967983f RM |
171 | { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
172 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
a3d4298d JM |
173 | EGREP="$ac_cv_path_EGREP" |
174 | ||
175 | ||
7967983f RM |
176 | { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
177 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
a3d4298d | 178 | if test "${ac_cv_header_stdc+set}" = set; then |
7967983f | 179 | $as_echo_n "(cached) " >&6 |
a3d4298d JM |
180 | else |
181 | cat >conftest.$ac_ext <<_ACEOF | |
182 | /* confdefs.h. */ | |
183 | _ACEOF | |
184 | cat confdefs.h >>conftest.$ac_ext | |
185 | cat >>conftest.$ac_ext <<_ACEOF | |
186 | /* end confdefs.h. */ | |
187 | #include <stdlib.h> | |
188 | #include <stdarg.h> | |
189 | #include <string.h> | |
190 | #include <float.h> | |
191 | ||
192 | int | |
193 | main () | |
194 | { | |
195 | ||
196 | ; | |
197 | return 0; | |
198 | } | |
199 | _ACEOF | |
200 | rm -f conftest.$ac_objext | |
201 | if { (ac_try="$ac_compile" | |
202 | case "(($ac_try" in | |
203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
204 | *) ac_try_echo=$ac_try;; | |
205 | esac | |
7967983f RM |
206 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
207 | $as_echo "$ac_try_echo") >&5 | |
a3d4298d JM |
208 | (eval "$ac_compile") 2>conftest.er1 |
209 | ac_status=$? | |
210 | grep -v '^ *+' conftest.er1 >conftest.err | |
211 | rm -f conftest.er1 | |
212 | cat conftest.err >&5 | |
7967983f | 213 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3d4298d JM |
214 | (exit $ac_status); } && { |
215 | test -z "$ac_c_werror_flag" || | |
216 | test ! -s conftest.err | |
217 | } && test -s conftest.$ac_objext; then | |
218 | ac_cv_header_stdc=yes | |
219 | else | |
7967983f | 220 | $as_echo "$as_me: failed program was:" >&5 |
a3d4298d JM |
221 | sed 's/^/| /' conftest.$ac_ext >&5 |
222 | ||
223 | ac_cv_header_stdc=no | |
224 | fi | |
225 | ||
226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
227 | ||
228 | if test $ac_cv_header_stdc = yes; then | |
229 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
230 | cat >conftest.$ac_ext <<_ACEOF | |
231 | /* confdefs.h. */ | |
232 | _ACEOF | |
233 | cat confdefs.h >>conftest.$ac_ext | |
234 | cat >>conftest.$ac_ext <<_ACEOF | |
235 | /* end confdefs.h. */ | |
236 | #include <string.h> | |
237 | ||
238 | _ACEOF | |
239 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
240 | $EGREP "memchr" >/dev/null 2>&1; then | |
241 | : | |
242 | else | |
243 | ac_cv_header_stdc=no | |
244 | fi | |
245 | rm -f conftest* | |
246 | ||
247 | fi | |
248 | ||
249 | if test $ac_cv_header_stdc = yes; then | |
250 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
251 | cat >conftest.$ac_ext <<_ACEOF | |
252 | /* confdefs.h. */ | |
253 | _ACEOF | |
254 | cat confdefs.h >>conftest.$ac_ext | |
255 | cat >>conftest.$ac_ext <<_ACEOF | |
256 | /* end confdefs.h. */ | |
257 | #include <stdlib.h> | |
258 | ||
259 | _ACEOF | |
260 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
261 | $EGREP "free" >/dev/null 2>&1; then | |
262 | : | |
263 | else | |
264 | ac_cv_header_stdc=no | |
265 | fi | |
266 | rm -f conftest* | |
267 | ||
268 | fi | |
269 | ||
270 | if test $ac_cv_header_stdc = yes; then | |
271 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
272 | if test "$cross_compiling" = yes; then | |
273 | : | |
274 | else | |
275 | cat >conftest.$ac_ext <<_ACEOF | |
276 | /* confdefs.h. */ | |
277 | _ACEOF | |
278 | cat confdefs.h >>conftest.$ac_ext | |
279 | cat >>conftest.$ac_ext <<_ACEOF | |
280 | /* end confdefs.h. */ | |
281 | #include <ctype.h> | |
282 | #include <stdlib.h> | |
283 | #if ((' ' & 0x0FF) == 0x020) | |
284 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
285 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
286 | #else | |
287 | # define ISLOWER(c) \ | |
288 | (('a' <= (c) && (c) <= 'i') \ | |
289 | || ('j' <= (c) && (c) <= 'r') \ | |
290 | || ('s' <= (c) && (c) <= 'z')) | |
291 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
292 | #endif | |
293 | ||
294 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
295 | int | |
296 | main () | |
297 | { | |
298 | int i; | |
299 | for (i = 0; i < 256; i++) | |
300 | if (XOR (islower (i), ISLOWER (i)) | |
301 | || toupper (i) != TOUPPER (i)) | |
302 | return 2; | |
303 | return 0; | |
304 | } | |
305 | _ACEOF | |
306 | rm -f conftest$ac_exeext | |
307 | if { (ac_try="$ac_link" | |
308 | case "(($ac_try" in | |
309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
310 | *) ac_try_echo=$ac_try;; | |
311 | esac | |
7967983f RM |
312 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
313 | $as_echo "$ac_try_echo") >&5 | |
a3d4298d JM |
314 | (eval "$ac_link") 2>&5 |
315 | ac_status=$? | |
7967983f | 316 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3d4298d JM |
317 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
318 | { (case "(($ac_try" in | |
319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
320 | *) ac_try_echo=$ac_try;; | |
321 | esac | |
7967983f RM |
322 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
323 | $as_echo "$ac_try_echo") >&5 | |
a3d4298d JM |
324 | (eval "$ac_try") 2>&5 |
325 | ac_status=$? | |
7967983f | 326 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3d4298d JM |
327 | (exit $ac_status); }; }; then |
328 | : | |
329 | else | |
7967983f RM |
330 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
331 | $as_echo "$as_me: failed program was:" >&5 | |
a3d4298d JM |
332 | sed 's/^/| /' conftest.$ac_ext >&5 |
333 | ||
334 | ( exit $ac_status ) | |
335 | ac_cv_header_stdc=no | |
336 | fi | |
7967983f | 337 | rm -rf conftest.dSYM |
a3d4298d JM |
338 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
339 | fi | |
340 | ||
341 | ||
342 | fi | |
343 | fi | |
7967983f RM |
344 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
345 | $as_echo "$ac_cv_header_stdc" >&6; } | |
a3d4298d JM |
346 | if test $ac_cv_header_stdc = yes; then |
347 | ||
348 | cat >>confdefs.h <<\_ACEOF | |
349 | #define STDC_HEADERS 1 | |
350 | _ACEOF | |
351 | ||
352 | fi | |
353 | ||
354 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
355 | ||
356 | ||
357 | ||
358 | ||
359 | ||
360 | ||
361 | ||
362 | ||
363 | ||
364 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
365 | inttypes.h stdint.h unistd.h | |
366 | do | |
7967983f RM |
367 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
368 | { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
369 | $as_echo_n "checking for $ac_header... " >&6; } | |
a3d4298d | 370 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7967983f | 371 | $as_echo_n "(cached) " >&6 |
51921047 UD |
372 | else |
373 | cat >conftest.$ac_ext <<_ACEOF | |
a3d4298d JM |
374 | /* confdefs.h. */ |
375 | _ACEOF | |
376 | cat confdefs.h >>conftest.$ac_ext | |
377 | cat >>conftest.$ac_ext <<_ACEOF | |
378 | /* end confdefs.h. */ | |
379 | $ac_includes_default | |
380 | ||
381 | #include <$ac_header> | |
382 | _ACEOF | |
383 | rm -f conftest.$ac_objext | |
384 | if { (ac_try="$ac_compile" | |
385 | case "(($ac_try" in | |
386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
387 | *) ac_try_echo=$ac_try;; | |
388 | esac | |
7967983f RM |
389 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
390 | $as_echo "$ac_try_echo") >&5 | |
a3d4298d JM |
391 | (eval "$ac_compile") 2>conftest.er1 |
392 | ac_status=$? | |
393 | grep -v '^ *+' conftest.er1 >conftest.err | |
394 | rm -f conftest.er1 | |
395 | cat conftest.err >&5 | |
7967983f | 396 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3d4298d JM |
397 | (exit $ac_status); } && { |
398 | test -z "$ac_c_werror_flag" || | |
399 | test ! -s conftest.err | |
400 | } && test -s conftest.$ac_objext; then | |
401 | eval "$as_ac_Header=yes" | |
402 | else | |
7967983f | 403 | $as_echo "$as_me: failed program was:" >&5 |
a3d4298d JM |
404 | sed 's/^/| /' conftest.$ac_ext >&5 |
405 | ||
406 | eval "$as_ac_Header=no" | |
407 | fi | |
408 | ||
409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
410 | fi | |
7967983f RM |
411 | ac_res=`eval 'as_val=${'$as_ac_Header'} |
412 | $as_echo "$as_val"'` | |
413 | { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 | |
414 | $as_echo "$ac_res" >&6; } | |
415 | as_val=`eval 'as_val=${'$as_ac_Header'} | |
416 | $as_echo "$as_val"'` | |
417 | if test "x$as_val" = x""yes; then | |
a3d4298d | 418 | cat >>confdefs.h <<_ACEOF |
7967983f | 419 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
a3d4298d JM |
420 | _ACEOF |
421 | ||
422 | fi | |
423 | ||
424 | done | |
425 | ||
426 | ||
427 | if test "${ac_cv_header_cpuid_h+set}" = set; then | |
7967983f RM |
428 | { $as_echo "$as_me:$LINENO: checking for cpuid.h" >&5 |
429 | $as_echo_n "checking for cpuid.h... " >&6; } | |
a3d4298d | 430 | if test "${ac_cv_header_cpuid_h+set}" = set; then |
7967983f | 431 | $as_echo_n "(cached) " >&6 |
a3d4298d | 432 | fi |
7967983f RM |
433 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cpuid_h" >&5 |
434 | $as_echo "$ac_cv_header_cpuid_h" >&6; } | |
a3d4298d JM |
435 | else |
436 | # Is the header compilable? | |
7967983f RM |
437 | { $as_echo "$as_me:$LINENO: checking cpuid.h usability" >&5 |
438 | $as_echo_n "checking cpuid.h usability... " >&6; } | |
a3d4298d JM |
439 | cat >conftest.$ac_ext <<_ACEOF |
440 | /* confdefs.h. */ | |
441 | _ACEOF | |
442 | cat confdefs.h >>conftest.$ac_ext | |
443 | cat >>conftest.$ac_ext <<_ACEOF | |
444 | /* end confdefs.h. */ | |
445 | $ac_includes_default | |
51921047 UD |
446 | #include <cpuid.h> |
447 | _ACEOF | |
448 | rm -f conftest.$ac_objext | |
449 | if { (ac_try="$ac_compile" | |
450 | case "(($ac_try" in | |
451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
452 | *) ac_try_echo=$ac_try;; | |
453 | esac | |
7967983f RM |
454 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
455 | $as_echo "$ac_try_echo") >&5 | |
51921047 UD |
456 | (eval "$ac_compile") 2>conftest.er1 |
457 | ac_status=$? | |
458 | grep -v '^ *+' conftest.er1 >conftest.err | |
459 | rm -f conftest.er1 | |
460 | cat conftest.err >&5 | |
7967983f | 461 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
51921047 UD |
462 | (exit $ac_status); } && { |
463 | test -z "$ac_c_werror_flag" || | |
464 | test ! -s conftest.err | |
465 | } && test -s conftest.$ac_objext; then | |
a3d4298d | 466 | ac_header_compiler=yes |
06e51c8f | 467 | else |
7967983f | 468 | $as_echo "$as_me: failed program was:" >&5 |
51921047 UD |
469 | sed 's/^/| /' conftest.$ac_ext >&5 |
470 | ||
a3d4298d | 471 | ac_header_compiler=no |
06e51c8f L |
472 | fi |
473 | ||
51921047 | 474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7967983f RM |
475 | { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
476 | $as_echo "$ac_header_compiler" >&6; } | |
a3d4298d JM |
477 | |
478 | # Is the header present? | |
7967983f RM |
479 | { $as_echo "$as_me:$LINENO: checking cpuid.h presence" >&5 |
480 | $as_echo_n "checking cpuid.h presence... " >&6; } | |
a3d4298d JM |
481 | cat >conftest.$ac_ext <<_ACEOF |
482 | /* confdefs.h. */ | |
483 | _ACEOF | |
484 | cat confdefs.h >>conftest.$ac_ext | |
485 | cat >>conftest.$ac_ext <<_ACEOF | |
486 | /* end confdefs.h. */ | |
487 | #include <cpuid.h> | |
488 | _ACEOF | |
489 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
490 | case "(($ac_try" in | |
491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
492 | *) ac_try_echo=$ac_try;; | |
493 | esac | |
7967983f RM |
494 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
495 | $as_echo "$ac_try_echo") >&5 | |
a3d4298d JM |
496 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
497 | ac_status=$? | |
498 | grep -v '^ *+' conftest.er1 >conftest.err | |
499 | rm -f conftest.er1 | |
500 | cat conftest.err >&5 | |
7967983f | 501 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3d4298d JM |
502 | (exit $ac_status); } >/dev/null && { |
503 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
504 | test ! -s conftest.err | |
505 | }; then | |
506 | ac_header_preproc=yes | |
507 | else | |
7967983f | 508 | $as_echo "$as_me: failed program was:" >&5 |
a3d4298d JM |
509 | sed 's/^/| /' conftest.$ac_ext >&5 |
510 | ||
511 | ac_header_preproc=no | |
51921047 | 512 | fi |
a3d4298d JM |
513 | |
514 | rm -f conftest.err conftest.$ac_ext | |
7967983f RM |
515 | { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
516 | $as_echo "$ac_header_preproc" >&6; } | |
a3d4298d JM |
517 | |
518 | # So? What about this header? | |
519 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
520 | yes:no: ) | |
7967983f RM |
521 | { $as_echo "$as_me:$LINENO: WARNING: cpuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
522 | $as_echo "$as_me: WARNING: cpuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
523 | { $as_echo "$as_me:$LINENO: WARNING: cpuid.h: proceeding with the compiler's result" >&5 | |
524 | $as_echo "$as_me: WARNING: cpuid.h: proceeding with the compiler's result" >&2;} | |
a3d4298d JM |
525 | ac_header_preproc=yes |
526 | ;; | |
527 | no:yes:* ) | |
7967983f RM |
528 | { $as_echo "$as_me:$LINENO: WARNING: cpuid.h: present but cannot be compiled" >&5 |
529 | $as_echo "$as_me: WARNING: cpuid.h: present but cannot be compiled" >&2;} | |
530 | { $as_echo "$as_me:$LINENO: WARNING: cpuid.h: check for missing prerequisite headers?" >&5 | |
531 | $as_echo "$as_me: WARNING: cpuid.h: check for missing prerequisite headers?" >&2;} | |
532 | { $as_echo "$as_me:$LINENO: WARNING: cpuid.h: see the Autoconf documentation" >&5 | |
533 | $as_echo "$as_me: WARNING: cpuid.h: see the Autoconf documentation" >&2;} | |
534 | { $as_echo "$as_me:$LINENO: WARNING: cpuid.h: section \"Present But Cannot Be Compiled\"" >&5 | |
535 | $as_echo "$as_me: WARNING: cpuid.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
536 | { $as_echo "$as_me:$LINENO: WARNING: cpuid.h: proceeding with the preprocessor's result" >&5 | |
537 | $as_echo "$as_me: WARNING: cpuid.h: proceeding with the preprocessor's result" >&2;} | |
538 | { $as_echo "$as_me:$LINENO: WARNING: cpuid.h: in the future, the compiler will take precedence" >&5 | |
539 | $as_echo "$as_me: WARNING: cpuid.h: in the future, the compiler will take precedence" >&2;} | |
a3d4298d JM |
540 | |
541 | ;; | |
542 | esac | |
7967983f RM |
543 | { $as_echo "$as_me:$LINENO: checking for cpuid.h" >&5 |
544 | $as_echo_n "checking for cpuid.h... " >&6; } | |
a3d4298d | 545 | if test "${ac_cv_header_cpuid_h+set}" = set; then |
7967983f | 546 | $as_echo_n "(cached) " >&6 |
a3d4298d JM |
547 | else |
548 | ac_cv_header_cpuid_h=$ac_header_preproc | |
549 | fi | |
7967983f RM |
550 | { $as_echo "$as_me:$LINENO: result: $ac_cv_header_cpuid_h" >&5 |
551 | $as_echo "$ac_cv_header_cpuid_h" >&6; } | |
a3d4298d JM |
552 | |
553 | fi | |
7967983f | 554 | if test "x$ac_cv_header_cpuid_h" = x""yes; then |
a3d4298d JM |
555 | : |
556 | else | |
7967983f RM |
557 | { { $as_echo "$as_me:$LINENO: error: gcc must provide the <cpuid.h> header" >&5 |
558 | $as_echo "$as_me: error: gcc must provide the <cpuid.h> header" >&2;} | |
51921047 UD |
559 | { (exit 1); exit 1; }; } |
560 | fi | |
78d04074 | 561 | |
a3d4298d JM |
562 | |
563 | ||
7967983f RM |
564 | { $as_echo "$as_me:$LINENO: checking if -g produces usable source locations for assembler-with-cpp" >&5 |
565 | $as_echo_n "checking if -g produces usable source locations for assembler-with-cpp... " >&6; } | |
78d04074 | 566 | if test "${libc_cv_cpp_asm_debuginfo+set}" = set; then |
7967983f | 567 | $as_echo_n "(cached) " >&6 |
78d04074 RM |
568 | else |
569 | cat > conftest.S <<EOF | |
570 | #include "confdefs.h" | |
571 | ||
572 | /* comment on | |
573 | two lines */ | |
574 | ${libc_cv_dot_text} | |
575 | ${libc_cv_asm_global_directive} foo | |
576 | foo: | |
577 | /* Unfortunately this test only works for a real instruction, | |
578 | not for any of the machine-independent pseudo-ops. | |
579 | So we just have to assume everybody has a "nop". */ | |
580 | nop | |
581 | /* comment */ | |
582 | nop | |
583 | /* comment */ | |
584 | nop | |
585 | EOF | |
586 | if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -g -c conftest.S 1>&5' | |
587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
588 | (eval $ac_try) 2>&5 | |
589 | ac_status=$? | |
7967983f | 590 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
78d04074 RM |
591 | (exit $ac_status); }; } && { |
592 | ac_pattern='conftest\.S' | |
593 | { ac_try='readelf --debug-dump=line conftest.o | | |
594 | grep $ac_pattern 1>&5' | |
595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
596 | (eval $ac_try) 2>&5 | |
597 | ac_status=$? | |
7967983f | 598 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
78d04074 RM |
599 | (exit $ac_status); }; } |
600 | }; then | |
601 | libc_cv_cpp_asm_debuginfo=yes | |
602 | else | |
603 | libc_cv_cpp_asm_debuginfo=no | |
604 | fi | |
605 | rm -f conftest* | |
606 | fi | |
7967983f RM |
607 | { $as_echo "$as_me:$LINENO: result: $libc_cv_cpp_asm_debuginfo" >&5 |
608 | $as_echo "$libc_cv_cpp_asm_debuginfo" >&6; } | |
78d04074 RM |
609 | if test $libc_cv_cpp_asm_debuginfo = yes; then |
610 | cat >>confdefs.h <<\_ACEOF | |
611 | #define HAVE_CPP_ASM_DEBUGINFO 1 | |
612 | _ACEOF | |
613 | ||
614 | fi | |
06e51c8f | 615 | |
7967983f RM |
616 | { $as_echo "$as_me:$LINENO: checking for SSE4 support" >&5 |
617 | $as_echo_n "checking for SSE4 support... " >&6; } | |
06e51c8f | 618 | if test "${libc_cv_cc_sse4+set}" = set; then |
7967983f | 619 | $as_echo_n "(cached) " >&6 |
06e51c8f L |
620 | else |
621 | if { ac_try='${CC-cc} -msse4 -xc /dev/null -S -o /dev/null' | |
622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
623 | (eval $ac_try) 2>&5 | |
624 | ac_status=$? | |
7967983f | 625 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
06e51c8f L |
626 | (exit $ac_status); }; }; then |
627 | libc_cv_cc_sse4=yes | |
628 | else | |
629 | libc_cv_cc_sse4=no | |
630 | fi | |
631 | fi | |
7967983f RM |
632 | { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_sse4" >&5 |
633 | $as_echo "$libc_cv_cc_sse4" >&6; } | |
06e51c8f L |
634 | if test $libc_cv_cc_sse4 = yes; then |
635 | cat >>confdefs.h <<\_ACEOF | |
636 | #define HAVE_SSE4_SUPPORT 1 | |
637 | _ACEOF | |
638 | ||
639 | fi |