summaryrefslogtreecommitdiff
path: root/driver/xf86-video-apm/configure.ac
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2008-06-18 20:49:47 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2008-06-18 20:49:47 +0000
commit23fe6fc2ff6018d9ed40705af84a0a18ae853b43 (patch)
tree5dfbef3c317721586c3e3257926a7ca5ecf48fcd /driver/xf86-video-apm/configure.ac
parentc330bc04c2742c6b9fc5cabc2eab2f862588031d (diff)
update to xf86-video-apm 1.2.0
Diffstat (limited to 'driver/xf86-video-apm/configure.ac')
-rw-r--r--driver/xf86-video-apm/configure.ac15
1 files changed, 14 insertions, 1 deletions
diff --git a/driver/xf86-video-apm/configure.ac b/driver/xf86-video-apm/configure.ac
index 883068338..9363fca59 100644
--- a/driver/xf86-video-apm/configure.ac
+++ b/driver/xf86-video-apm/configure.ac
@@ -22,7 +22,7 @@
AC_PREREQ(2.57)
AC_INIT([xf86-video-apm],
- 1.1.1,
+ 1.2.0,
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
xf86-video-apm)
@@ -68,10 +68,23 @@ AC_SUBST([CFLAGS])
AC_SUBST([INCLUDES])
# 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"])
+AC_CHECK_HEADER(xf1bpp.h,[AC_DEFINE(HAVE_XF1BPP, 1, [Have 1bpp support])],[])
+AC_CHECK_HEADER(xf4bpp.h,[AC_DEFINE(HAVE_XF4BPP, 1, [Have 4bpp support])],[])
+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
+
DRIVER_NAME=apm
AC_SUBST([DRIVER_NAME])