mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-15 20:18:05 +02: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 the user had the wrong build environment.
|
||||||
|
|
||||||
dnl We may add other compilers here in the future...
|
dnl We may add other compilers here in the future...
|
||||||
AC_MSG_CHECKING([for lock-free atomic intrinsics])
|
|
||||||
AC_TRY_COMPILE([],
|
AC_CACHE_CHECK([for lock-free atomic intrinsics], glib_cv_g_atomic_lock_free, [
|
||||||
[__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;],
|
AC_TRY_COMPILE([],
|
||||||
[glib_cv_g_atomic_lock_free=yes],
|
[__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;],
|
||||||
[glib_cv_g_atomic_lock_free=no])
|
[glib_cv_g_atomic_lock_free=yes],
|
||||||
AC_MSG_RESULT($glib_cv_g_atomic_lock_free)
|
[glib_cv_g_atomic_lock_free=no])])
|
||||||
|
|
||||||
if test "$glib_cv_g_atomic_lock_free" = "no"; then
|
if test "$glib_cv_g_atomic_lock_free" = "no"; then
|
||||||
SAVE_CFLAGS="${CFLAGS}"
|
SAVE_CFLAGS="${CFLAGS}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user