From a3d4298d8354f4ea232f027ba2ebfd560afecc1b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 8 Aug 2009 10:25:58 -0700 Subject: Simplify cpuid.h configure test. --- sysdeps/i386/configure.in | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sysdeps/i386/configure.in') 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 ], libc_cv_gcc_cpuid, [dnl -AC_COMPILE_IFELSE([#include ], 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 header]) -fi +AC_HEADER_CHECK([cpuid.h], , + [AC_MSG_ERROR([gcc must provide the header])]) AC_CACHE_CHECK(if -g produces usable source locations for assembler-with-cpp, libc_cv_cpp_asm_debuginfo, [dnl -- cgit 1.4.1