xf86-video-intel: configure.ac

Chris Wilson ickle at kemper.freedesktop.org
Sat Jun 18 07:54:27 PDT 2011


 configure.ac |   29 ++++++++++++++++-------------
 1 file changed, 16 insertions(+), 13 deletions(-)

New commits:
commit 585667c2f9f88554ed89ff21ae38600f761d964c
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sat Jun 18 15:52:22 2011 +0100

    sna: Bump the required xserver version to 1.10
    
    SNA requires some pending bug fixes to the xserver so it makes little
    sense to conditionalise the code and deliberately cause broken
    behaviour.
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3843
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/configure.ac b/configure.ac
index bfd6e99..7bde768 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,6 +20,8 @@
 #
 # Process this file with autoconf to produce a configure script
 
+required_xorg_xserver_version=1.6
+
 # Initialize Autoconf
 AC_PREREQ([2.63])
 AC_INIT([xf86-video-intel],
@@ -97,12 +99,25 @@ AC_ARG_ENABLE(sna,
 			     [Enable SandyBridge's New Acceleration (SNA) [default=no]]),
 	      [SNA="$enableval"],
 	      [SNA=no])
+AM_CONDITIONAL(SNA, test x$SNA != xno)
+AC_MSG_CHECKING([whether to include SNA support])
+if test "x$SNA" != "xno"; then
+	required_xorg_xserver_version=1.10
+	AC_DEFINE(USE_SNA, 1, [Enable SNA support])
+fi
+AC_MSG_RESULT([$SNA])
+
 
 AC_ARG_ENABLE(vmap,
 	      AS_HELP_STRING([--enable-vmap],
 			     [Enable use of vmap [default=no]]),
 	      [VMAP="$enableval"],
 	      [VMAP=no])
+AM_CONDITIONAL(USE_VMAP, test x$VMAP = xyes)
+if test "x$VMAP" = xyes; then
+	AC_DEFINE(USE_VMAP,1,[Assume VMAP support])
+fi
+
 
 AC_ARG_ENABLE(debug,
 	      AS_HELP_STRING([--enable-debug],
@@ -117,7 +132,7 @@ XORG_DRIVER_CHECK_EXT(XF86DRI, xextproto x11)
 XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
 
 # Obtain compiler/linker options for the driver dependencies
-PKG_CHECK_MODULES(XORG, [xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES])
+PKG_CHECK_MODULES(XORG, [xorg-server >= $required_xorg_xserver_version xproto fontsproto $REQUIRED_MODULES])
 PKG_CHECK_MODULES(DRM, [libdrm >= 2.4.23])
 PKG_CHECK_MODULES(DRI, [xf86driproto], , DRI=no)
 PKG_CHECK_MODULES(DRI2, [dri2proto >= 2.6])
@@ -181,18 +196,6 @@ if test "x$KMS_ONLY" = xyes; then
 	AC_DEFINE(KMS_ONLY,1,[Assume KMS support])
 fi
 
-AM_CONDITIONAL(USE_VMAP, test x$VMAP = xyes)
-if test "x$VMAP" = xyes; then
-	AC_DEFINE(USE_VMAP,1,[Assume VMAP support])
-fi
-
-AM_CONDITIONAL(SNA, test x$SNA != xno)
-AC_MSG_CHECKING([whether to include SNA support])
-if test "x$SNA" != "xno"; then
-	AC_DEFINE(USE_SNA, 1, [Enable SNA support])
-fi
-AC_MSG_RESULT([$SNA])
-
 AM_CONDITIONAL(DEBUG, test x$DEBUG != xno)
 if test "x$DEBUG" = xno; then
 	AC_DEFINE(NDEBUG,1,[Disable internal debugging])


More information about the xorg-commit mailing list