summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cec8d9c)
raw | patch | inline | side by side (parent: cec8d9c)
author | Rob Clark <rob@ti.com> | |
Thu, 10 May 2012 18:03:11 +0000 (13:03 -0500) | ||
committer | Rob Clark <rob@ti.com> | |
Thu, 10 May 2012 18:52:22 +0000 (13:52 -0500) |
For example, if you have x11/libdri2 but don't want to build x11
support, or if you have a pre-dri2video version of libdri2.
support, or if you have a pre-dri2video version of libdri2.
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 95a872ff863aa75bbd72e57f69bd9608e7b40527..4432cb4fcddc3a560bca2766a5f62160343bff07 100644 (file)
--- a/configure.ac
+++ b/configure.ac
kversion=`uname -r`
AC_ARG_WITH([kernel-source],
[AS_HELP_STRING([--with-kernel-source],
- [specify pavth to linux kernel source])],
+ [specify path to linux kernel source])],
[kernel_source="$with_kernel_source"],
[kernel_source="/usr/src/linux-headers-$kversion"])
AM_CONDITIONAL(ENABLE_V4L2_DMABUF, [test "x$HAVE_V4L2_DMABUF" = xyes])
# Check optional X11:
-PKG_CHECK_MODULES(X11, x11 dri2, [HAVE_X11=yes], [HAVE_X11=no])
+AC_ARG_ENABLE([x11], AS_HELP_STRING([--disable-x11], [disable x11/dri2video support]))
+AS_IF([test "x$enable_x11" != "xno"], [PKG_CHECK_MODULES(X11, x11 dri2, [HAVE_X11=yes])])
if test "x$HAVE_X11" = "xyes"; then
AC_DEFINE(HAVE_X11, 1, [Have X11 support])
else