mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Honor the glib_cv_g_atomic_lock_free env var in configure
This fixes bug: https://bugzilla.gnome.org/show_bug.cgi?id=668572
This commit is contained in:
parent
0ac9ab4e27
commit
aa95853f9c
12
configure.ac
12
configure.ac
@ -2344,12 +2344,12 @@ dnl that then to silently fall back on emulated atomic ops just because
|
||||
dnl the user had the wrong build environment.
|
||||
|
||||
dnl We may add other compilers here in the future...
|
||||
AC_MSG_CHECKING([for lock-free atomic intrinsics])
|
||||
AC_TRY_COMPILE([],
|
||||
[__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;],
|
||||
[glib_cv_g_atomic_lock_free=yes],
|
||||
[glib_cv_g_atomic_lock_free=no])
|
||||
AC_MSG_RESULT($glib_cv_g_atomic_lock_free)
|
||||
|
||||
AC_CACHE_CHECK([for lock-free atomic intrinsics], glib_cv_g_atomic_lock_free, [
|
||||
AC_TRY_COMPILE([],
|
||||
[__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;],
|
||||
[glib_cv_g_atomic_lock_free=yes],
|
||||
[glib_cv_g_atomic_lock_free=no])])
|
||||
|
||||
if test "$glib_cv_g_atomic_lock_free" = "no"; then
|
||||
SAVE_CFLAGS="${CFLAGS}"
|
||||
|
Loading…
Reference in New Issue
Block a user