diff options
author | Eric Engestrom | 2018-01-05 09:25:31 -0600 |
---|---|---|
committer | Eric Engestrom | 2018-01-31 05:22:53 -0600 |
commit | 0db36bdec8a1b2caac0046c22eb477ba19c2b43c (patch) | |
tree | 25460f579d6af0b9b89184645c51fc83e80c537d | |
parent | 7797751cf7bbbcffdb1003f3a38479388dc4d7f9 (diff) | |
download | external-libdrm-0db36bdec8a1b2caac0046c22eb477ba19c2b43c.tar.gz external-libdrm-0db36bdec8a1b2caac0046c22eb477ba19c2b43c.tar.xz external-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.ac | 4 |
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, [ | |||
259 | if test "x$drm_cv_atomic_primitives" = xIntel; then | 259 | if test "x$drm_cv_atomic_primitives" = xIntel; then |
260 | AC_DEFINE(HAVE_LIBDRM_ATOMIC_PRIMITIVES, 1, | 260 | AC_DEFINE(HAVE_LIBDRM_ATOMIC_PRIMITIVES, 1, |
261 | [Enable if your compiler supports the Intel __sync_* atomic primitives]) | 261 | [Enable if your compiler supports the Intel __sync_* atomic primitives]) |
262 | else | ||
263 | AC_DEFINE(HAVE_LIBDRM_ATOMIC_PRIMITIVES, 0) | ||
262 | fi | 264 | fi |
263 | if test "x$drm_cv_atomic_primitives" = "xlibatomic-ops"; then | 265 | if test "x$drm_cv_atomic_primitives" = "xlibatomic-ops"; then |
264 | AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 1, [Enable if you have libatomic-ops-dev installed]) | 266 | AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 1, [Enable if you have libatomic-ops-dev installed]) |
267 | else | ||
268 | AC_DEFINE(HAVE_LIB_ATOMIC_OPS, 0) | ||
265 | fi | 269 | fi |
266 | 270 | ||
267 | dnl Print out the approapriate message considering the value set be the | 271 | dnl Print out the approapriate message considering the value set be the |