fix broken bswap.m4
it used to always define HAVE_BSWAP32 and HAVE_BSWAP16 even if the builtin isn't supported. This broke with commit bfe5ff9
This commit is contained in:
parent
75ef7958df
commit
5a9ffda852
28
m4/bswap.m4
28
m4/bswap.m4
@ -39,16 +39,10 @@ AC_DEFUN([XIPH_C_BSWAP32],
|
|||||||
[AC_CACHE_CHECK(for bswap32 intrinsic,
|
[AC_CACHE_CHECK(for bswap32 intrinsic,
|
||||||
ac_cv_c_bswap32,
|
ac_cv_c_bswap32,
|
||||||
|
|
||||||
# Initialize to no
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[return __builtin_bswap32 (0) ;]])],[ac_cv_c_bswap32=yes],[ac_cv_c_bswap32=no])
|
||||||
ac_cv_c_bswap32=no
|
if test $ac_cv_c_bswap32 = yes; then
|
||||||
HAVE_BSWAP32=0
|
AC_DEFINE_UNQUOTED(HAVE_BSWAP32, [1], [Compiler has the __builtin_bswap32 intrinsic])
|
||||||
|
fi
|
||||||
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[return __builtin_bswap32 (0) ;]])],[ac_cv_c_bswap32=yes
|
|
||||||
HAVE_BSWAP32=1
|
|
||||||
],[])]
|
|
||||||
AC_DEFINE_UNQUOTED(HAVE_BSWAP32, ${HAVE_BSWAP32},
|
|
||||||
[Compiler has the __builtin_bswap32 intrinsic])
|
|
||||||
|
|
||||||
)]
|
)]
|
||||||
)# XIPH_C_BSWAP32
|
)# XIPH_C_BSWAP32
|
||||||
|
|
||||||
@ -64,15 +58,9 @@ AC_DEFUN([XIPH_C_BSWAP16],
|
|||||||
[AC_CACHE_CHECK(for bswap16 intrinsic,
|
[AC_CACHE_CHECK(for bswap16 intrinsic,
|
||||||
ac_cv_c_bswap16,
|
ac_cv_c_bswap16,
|
||||||
|
|
||||||
# Initialize to no
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[return __builtin_bswap16 (0) ;]])],[ac_cv_c_bswap16=yes],[ac_cv_c_bswap16=no])
|
||||||
ac_cv_c_bswap16=no
|
if test $ac_cv_c_bswap16 = yes; then
|
||||||
HAVE_BSWAP16=0
|
AC_DEFINE_UNQUOTED(HAVE_BSWAP16, [1], [Compiler has the __builtin_bswap16 intrinsic])
|
||||||
|
fi
|
||||||
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[return __builtin_bswap16 (0) ;]])],[ac_cv_c_bswap16=yes
|
|
||||||
HAVE_BSWAP16=1
|
|
||||||
],[])]
|
|
||||||
AC_DEFINE_UNQUOTED(HAVE_BSWAP16, ${HAVE_BSWAP16},
|
|
||||||
[Compiler has the __builtin_bswap16 intrinsic])
|
|
||||||
|
|
||||||
)]
|
)]
|
||||||
)# XIPH_C_BSWAP16
|
)# XIPH_C_BSWAP16
|
||||||
|
Loading…
x
Reference in New Issue
Block a user