about summary refs log tree commit diff
path: root/sysdeps/i386/configure.in
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-08 10:25:58 -0700
committerUlrich Drepper <drepper@redhat.com>2009-08-08 10:25:58 -0700
commita3d4298d8354f4ea232f027ba2ebfd560afecc1b (patch)
treea1db0b794d31dad6d830c2dd8e0991cb9931fd3f /sysdeps/i386/configure.in
parent49eea97b00d367aa3eac3dfd047c259e7bd04732 (diff)
downloadglibc-a3d4298d8354f4ea232f027ba2ebfd560afecc1b.tar.gz
glibc-a3d4298d8354f4ea232f027ba2ebfd560afecc1b.tar.xz
glibc-a3d4298d8354f4ea232f027ba2ebfd560afecc1b.zip
Simplify cpuid.h configure test.
Diffstat (limited to 'sysdeps/i386/configure.in')
-rw-r--r--sysdeps/i386/configure.in8
1 files changed, 2 insertions, 6 deletions
diff --git a/sysdeps/i386/configure.in b/sysdeps/i386/configure.in
index 800f928fbd..12dceaf844 100644
--- a/sysdeps/i386/configure.in
+++ b/sysdeps/i386/configure.in
@@ -1,12 +1,8 @@
 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
 # Local configure fragment for sysdeps/i386.
 
-AC_CACHE_CHECK([if gcc provides <cpuid.h>], libc_cv_gcc_cpuid, [dnl
-AC_COMPILE_IFELSE([#include <cpuid.h>], libc_cv_gcc_cpuid=yes,
-		  libc_cv_gcc_cpuid=no)])
-if test $libc_cv_gcc_cpuid != yes; then
-  AC_MSG_ERROR([gcc must provide the <cpuid.h> header])
-fi
+AC_HEADER_CHECK([cpuid.h], ,
+  [AC_MSG_ERROR([gcc must provide the <cpuid.h> header])])
 
 AC_CACHE_CHECK(if -g produces usable source locations for assembler-with-cpp,
 	       libc_cv_cpp_asm_debuginfo, [dnl