summaryrefslogtreecommitdiff
path: root/driver/xf86-video-s3virge/configure.ac
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2008-10-12 21:19:07 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2008-10-12 21:19:07 +0000
commit0b4a9e42bb28f867a14d90d21774ca6bd950ae22 (patch)
treeb1b291a2a06f6f82ed1e5bd250734b8b2af234d0 /driver/xf86-video-s3virge/configure.ac
parent70a400b7f12565d5f4beb7132e156f88698a5362 (diff)
xf86-video-s3virge 1.10.1
Diffstat (limited to 'driver/xf86-video-s3virge/configure.ac')
-rw-r--r--driver/xf86-video-s3virge/configure.ac15
1 files changed, 14 insertions, 1 deletions
diff --git a/driver/xf86-video-s3virge/configure.ac b/driver/xf86-video-s3virge/configure.ac
index d4cf68f32..244a27dc8 100644
--- a/driver/xf86-video-s3virge/configure.ac
+++ b/driver/xf86-video-s3virge/configure.ac
@@ -22,7 +22,7 @@
AC_PREREQ(2.57)
AC_INIT([xf86-video-s3virge],
- 1.9.1,
+ 1.10.1,
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
xf86-video-s3virge)
@@ -58,10 +58,23 @@ PKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_M
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
# Checks for libraries.
+SAVE_CPPFLAGS="$CPPFLAGS"
+CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
+AC_CHECK_DECL(XSERVER_LIBPCIACCESS,
+ [XSERVER_LIBPCIACCESS=yes],[XSERVER_LIBPCIACCESS=no],
+ [#include "xorg-server.h"])
+CPPFLAGS="$SAVE_CPPFLAGS"
# Checks for header files.
AC_HEADER_STDC
+if test "x$XSERVER_LIBPCIACCESS" = xyes; then
+ PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.8.0])
+ XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
+fi
+AM_CONDITIONAL(XSERVER_LIBPCIACCESS, test "x$XSERVER_LIBPCIACCESS" = xyes)
+
+
AC_SUBST([XORG_CFLAGS])
AC_SUBST([moduledir])