summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@imgtec.com>2018-01-05 15:25:31 +0000
committerEric Engestrom <eric.engestrom@imgtec.com>2018-01-31 11:22:53 +0000
commit0db36bdec8a1b2caac0046c22eb477ba19c2b43c (patch)
tree25460f579d6af0b9b89184645c51fc83e80c537d
parent7797751cf7bbbcffdb1003f3a38479388dc4d7f9 (diff)
downloadlibdrm-0db36bdec8a1b2caac0046c22eb477ba19c2b43c.tar.gz
libdrm-0db36bdec8a1b2caac0046c22eb477ba19c2b43c.tar.bz2
libdrm-0db36bdec8a1b2caac0046c22eb477ba19c2b43c.zip
configure: always define HAVE_LIBDRM_ATOMIC_PRIMITIVES and HAVE_LIB_ATOMIC_OPS
Fixes #if undefined warnings Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5396c841..f7620268 100644
--- a/configure.ac
+++ b/configure.ac
@@ -259,9 +259,13 @@ AC_CACHE_CHECK([for native atomic primitives], drm_cv_atomic_primitives, [
if test "x$drm_cv_atomic_primitives" = xIntel; then
AC_DEFINE(HAVE_LIBDRM_ATOMIC_PRIMITIVES, 1,
[Enable if your compiler supports the Intel __sync_* atomic primitives])
+else
+ AC_DEFINE(HAVE_LIBDRM_ATOMIC_PRIMITIVES, 0)
fi
if test "x$drm_cv_atomic_primitives" = "xlibatomic-ops"; then
AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 1, [Enable if you have libatomic-ops-dev installed])
+else
+ AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 0)
fi
dnl Print out the approapriate message considering the value set be the