Clean up bswap32 autoconf macro.
authorRalph Giles <giles@thaumas.net>
Tue, 4 Nov 2014 19:59:53 +0000 (11:59 -0800)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 5 Nov 2014 05:18:48 +0000 (21:18 -0800)
Improve 'checking' message and don't hog the cache namespace.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
m4/bswap.m4

index 72af333..eec3ee1 100644 (file)
@@ -36,16 +36,16 @@ dnl Dtermine whether the compiler has the __builtin_bswap32() intrinsic which
 dnl is likely to be present for most versions of GCC as well as Clang.
 
 AC_DEFUN([XIPH_C_BSWAP32],
-[AC_CACHE_CHECK(has bswap32 instrinsic,
-       ac_cv_c_bswap,
+[AC_CACHE_CHECK(for bswap32 instrinsic,
+       ac_cv_c_bswap32,
 
        # Initialize to no
-       ac_cv_c_bswap=no
+       ac_cv_c_bswap32=no
        HAVE_BSWAP32=0
 
        [AC_TRY_LINK([],
                return __builtin_bswap32 (0) ;,
-                       ac_cv_c_bswap=yes
+                       ac_cv_c_bswap32=yes
                        HAVE_BSWAP32=1
                        )]
        AC_DEFINE_UNQUOTED(HAVE_BSWAP32, ${HAVE_BSWAP32},