Fixed issue with autotools, AC_LANG_...
This commit is contained in:
parent
9166c21bd6
commit
e16b7ac49d
20
configure.ac
20
configure.ac
@ -28,15 +28,17 @@ dnl **************************************
|
|||||||
dnl ***** tests for compiler built-ins *****
|
dnl ***** tests for compiler built-ins *****
|
||||||
dnl **************************************
|
dnl **************************************
|
||||||
|
|
||||||
AC_CACHE_CHECK([for __sync_bool_compare_and_swap_8],
|
AC_CACHE_CHECK(
|
||||||
[ctrie_cv_func___sync_bool_compare_and_swap_8],
|
[for __sync_bool_compare_and_swap_8],
|
||||||
[AC_LINK_IFELSE([
|
[ctrie_cv_func___sync_bool_compare_and_swap_8],
|
||||||
typedef unsigned int uint64 __attribute__ ((mode (DI)));
|
[AC_LINK_IFELSE([AC_LANG_SOURCE([
|
||||||
uint64 i;
|
typedef unsigned int uint64 __attribute__ ((mode (DI)));
|
||||||
int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
|
uint64 i;
|
||||||
],
|
int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
|
||||||
[ctrie_cv_func___sync_bool_compare_and_swap_8=yes],
|
])],
|
||||||
[ctrie_cv_func___sync_bool_compare_and_swap_8=no])])
|
[ctrie_cv_func___sync_bool_compare_and_swap_8=yes],
|
||||||
|
[ctrie_cv_func___sync_bool_compare_and_swap_8=no])])
|
||||||
|
|
||||||
if test "$ctrie_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
|
if test "$ctrie_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
|
||||||
AC_DEFINE([HAVE__SYNC_BOOL_COMPARE_AND_SWAP_8], 1,
|
AC_DEFINE([HAVE__SYNC_BOOL_COMPARE_AND_SWAP_8], 1,
|
||||||
[Define to 1 if the compiler provides the __sync_bool_compare_and_swap function for uint64])
|
[Define to 1 if the compiler provides the __sync_bool_compare_and_swap function for uint64])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user