summaryrefslogtreecommitdiff
path: root/lib/mesa
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2018-06-07 09:25:33 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2018-06-07 09:25:33 +0000
commit25b982e369b3178547982de1de3a1883bbeacb49 (patch)
tree104934cd54ce65dda692e9805fd957eb531fd1a1 /lib/mesa
parent9ff957f85a5d0086eb4544267f060d6d0edbf3ff (diff)
Make sure HAVE_DRI3 is defined when DRI3 support is enabled.
Matches what is done for Linux. ok jsg@
Diffstat (limited to 'lib/mesa')
-rwxr-xr-xlib/mesa/configure3
-rw-r--r--lib/mesa/configure.ac3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/mesa/configure b/lib/mesa/configure
index ccdc5b351..18e863173 100755
--- a/lib/mesa/configure
+++ b/lib/mesa/configure
@@ -23288,6 +23288,9 @@ if test "x$enable_dri" = xyes; then
;;
*freebsd* | dragonfly* | *netbsd* | openbsd*)
DEFINES="$DEFINES -DHAVE_ALIAS"
+ if test "x$enable_dri3" = xyes; then
+ DEFINES="$DEFINES -DHAVE_DRI3"
+ fi
;;
gnu*)
DEFINES="$DEFINES -DHAVE_ALIAS"
diff --git a/lib/mesa/configure.ac b/lib/mesa/configure.ac
index 429640ddc..d8d7decbb 100644
--- a/lib/mesa/configure.ac
+++ b/lib/mesa/configure.ac
@@ -1574,6 +1574,9 @@ if test "x$enable_dri" = xyes; then
;;
*freebsd* | dragonfly* | *netbsd* | openbsd*)
DEFINES="$DEFINES -DHAVE_ALIAS"
+ if test "x$enable_dri3" = xyes; then
+ DEFINES="$DEFINES -DHAVE_DRI3"
+ fi
;;
gnu*)
DEFINES="$DEFINES -DHAVE_ALIAS"