]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/i386/configure
configure tweaks, support $libc_add_on_config_subdirs
[thirdparty/glibc.git] / sysdeps / i386 / configure
CommitLineData
a3d4298d
JM
1# Factoring default headers for most tests.
2ac_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 44if test "${ac_cv_path_GREP+set}" = set; then
7967983f 45 $as_echo_n "(cached) " >&6
a3d4298d 46else
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
51for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
52do
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
61case `"$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;;
85esac
86
7967983f
RM
87 $ac_path_GREP_found && break 3
88 done
a3d4298d
JM
89 done
90done
a3d4298d 91IFS=$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
97else
98 ac_cv_path_GREP=$GREP
99fi
100
a3d4298d 101fi
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 109if test "${ac_cv_path_EGREP+set}" = set; then
7967983f 110 $as_echo_n "(cached) " >&6
a3d4298d
JM
111else
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
119for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
120do
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
129case `"$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;;
153esac
154
7967983f
RM
155 $ac_path_EGREP_found && break 3
156 done
a3d4298d
JM
157 done
158done
a3d4298d 159IFS=$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
165else
166 ac_cv_path_EGREP=$EGREP
167fi
168
a3d4298d
JM
169 fi
170fi
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 178if test "${ac_cv_header_stdc+set}" = set; then
7967983f 179 $as_echo_n "(cached) " >&6
a3d4298d
JM
180else
181 cat >conftest.$ac_ext <<_ACEOF
182/* confdefs.h. */
183_ACEOF
184cat confdefs.h >>conftest.$ac_ext
185cat >>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
192int
193main ()
194{
195
196 ;
197 return 0;
198}
199_ACEOF
200rm -f conftest.$ac_objext
201if { (ac_try="$ac_compile"
202case "(($ac_try" in
203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
204 *) ac_try_echo=$ac_try;;
205esac
7967983f
RM
206eval 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
219else
7967983f 220 $as_echo "$as_me: failed program was:" >&5
a3d4298d
JM
221sed 's/^/| /' conftest.$ac_ext >&5
222
223 ac_cv_header_stdc=no
224fi
225
226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
227
228if 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
233cat confdefs.h >>conftest.$ac_ext
234cat >>conftest.$ac_ext <<_ACEOF
235/* end confdefs.h. */
236#include <string.h>
237
238_ACEOF
239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
240 $EGREP "memchr" >/dev/null 2>&1; then
241 :
242else
243 ac_cv_header_stdc=no
244fi
245rm -f conftest*
246
247fi
248
249if 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
254cat confdefs.h >>conftest.$ac_ext
255cat >>conftest.$ac_ext <<_ACEOF
256/* end confdefs.h. */
257#include <stdlib.h>
258
259_ACEOF
260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
261 $EGREP "free" >/dev/null 2>&1; then
262 :
263else
264 ac_cv_header_stdc=no
265fi
266rm -f conftest*
267
268fi
269
270if 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 :
274else
275 cat >conftest.$ac_ext <<_ACEOF
276/* confdefs.h. */
277_ACEOF
278cat confdefs.h >>conftest.$ac_ext
279cat >>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)))
295int
296main ()
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
306rm -f conftest$ac_exeext
307if { (ac_try="$ac_link"
308case "(($ac_try" in
309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
310 *) ac_try_echo=$ac_try;;
311esac
7967983f
RM
312eval 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;;
321esac
7967983f
RM
322eval 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 :
329else
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
332sed 's/^/| /' conftest.$ac_ext >&5
333
334( exit $ac_status )
335ac_cv_header_stdc=no
336fi
7967983f 337rm -rf conftest.dSYM
a3d4298d
JM
338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
339fi
340
341
342fi
343fi
7967983f
RM
344{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
345$as_echo "$ac_cv_header_stdc" >&6; }
a3d4298d
JM
346if test $ac_cv_header_stdc = yes; then
347
348cat >>confdefs.h <<\_ACEOF
349#define STDC_HEADERS 1
350_ACEOF
351
352fi
353
354# On IRIX 5.3, sys/types and inttypes.h are conflicting.
355
356
357
358
359
360
361
362
363
364for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
365 inttypes.h stdint.h unistd.h
366do
7967983f
RM
367as_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 370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7967983f 371 $as_echo_n "(cached) " >&6
51921047
UD
372else
373 cat >conftest.$ac_ext <<_ACEOF
a3d4298d
JM
374/* confdefs.h. */
375_ACEOF
376cat confdefs.h >>conftest.$ac_ext
377cat >>conftest.$ac_ext <<_ACEOF
378/* end confdefs.h. */
379$ac_includes_default
380
381#include <$ac_header>
382_ACEOF
383rm -f conftest.$ac_objext
384if { (ac_try="$ac_compile"
385case "(($ac_try" in
386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
387 *) ac_try_echo=$ac_try;;
388esac
7967983f
RM
389eval 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"
402else
7967983f 403 $as_echo "$as_me: failed program was:" >&5
a3d4298d
JM
404sed 's/^/| /' conftest.$ac_ext >&5
405
406 eval "$as_ac_Header=no"
407fi
408
409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
410fi
7967983f
RM
411ac_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; }
415as_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
422fi
423
424done
425
426
427if 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 430if test "${ac_cv_header_cpuid_h+set}" = set; then
7967983f 431 $as_echo_n "(cached) " >&6
a3d4298d 432fi
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
435else
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
439cat >conftest.$ac_ext <<_ACEOF
440/* confdefs.h. */
441_ACEOF
442cat confdefs.h >>conftest.$ac_ext
443cat >>conftest.$ac_ext <<_ACEOF
444/* end confdefs.h. */
445$ac_includes_default
51921047
UD
446#include <cpuid.h>
447_ACEOF
448rm -f conftest.$ac_objext
449if { (ac_try="$ac_compile"
450case "(($ac_try" in
451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
452 *) ac_try_echo=$ac_try;;
453esac
7967983f
RM
454eval 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 467else
7967983f 468 $as_echo "$as_me: failed program was:" >&5
51921047
UD
469sed 's/^/| /' conftest.$ac_ext >&5
470
a3d4298d 471 ac_header_compiler=no
06e51c8f
L
472fi
473
51921047 474rm -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
481cat >conftest.$ac_ext <<_ACEOF
482/* confdefs.h. */
483_ACEOF
484cat confdefs.h >>conftest.$ac_ext
485cat >>conftest.$ac_ext <<_ACEOF
486/* end confdefs.h. */
487#include <cpuid.h>
488_ACEOF
489if { (ac_try="$ac_cpp conftest.$ac_ext"
490case "(($ac_try" in
491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
492 *) ac_try_echo=$ac_try;;
493esac
7967983f
RM
494eval 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
507else
7967983f 508 $as_echo "$as_me: failed program was:" >&5
a3d4298d
JM
509sed 's/^/| /' conftest.$ac_ext >&5
510
511 ac_header_preproc=no
51921047 512fi
a3d4298d
JM
513
514rm -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?
519case $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 ;;
542esac
7967983f
RM
543{ $as_echo "$as_me:$LINENO: checking for cpuid.h" >&5
544$as_echo_n "checking for cpuid.h... " >&6; }
a3d4298d 545if test "${ac_cv_header_cpuid_h+set}" = set; then
7967983f 546 $as_echo_n "(cached) " >&6
a3d4298d
JM
547else
548 ac_cv_header_cpuid_h=$ac_header_preproc
549fi
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
553fi
7967983f 554if test "x$ac_cv_header_cpuid_h" = x""yes; then
a3d4298d
JM
555 :
556else
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; }; }
560fi
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 566if test "${libc_cv_cpp_asm_debuginfo+set}" = set; then
7967983f 567 $as_echo_n "(cached) " >&6
78d04074
RM
568else
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
576foo:
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
585EOF
586if { 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
602else
603 libc_cv_cpp_asm_debuginfo=no
604fi
605rm -f conftest*
606fi
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
609if test $libc_cv_cpp_asm_debuginfo = yes; then
610 cat >>confdefs.h <<\_ACEOF
611#define HAVE_CPP_ASM_DEBUGINFO 1
612_ACEOF
613
614fi
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 618if test "${libc_cv_cc_sse4+set}" = set; then
7967983f 619 $as_echo_n "(cached) " >&6
06e51c8f
L
620else
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
628else
629 libc_cv_cc_sse4=no
630fi
631fi
7967983f
RM
632{ $as_echo "$as_me:$LINENO: result: $libc_cv_cc_sse4" >&5
633$as_echo "$libc_cv_cc_sse4" >&6; }
06e51c8f
L
634if test $libc_cv_cc_sse4 = yes; then
635 cat >>confdefs.h <<\_ACEOF
636#define HAVE_SSE4_SUPPORT 1
637_ACEOF
638
639fi