diff options
author | Dave Airlie <airlied@redhat.com> | 2008-03-10 11:53:07 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-03-10 11:53:07 +1000 |
commit | 88944bd72555056c10dfcf87eb1a98c9ecf704bc (patch) | |
tree | 0dd958cbd585d0b38a7a69b74e38f539b6c92ac3 /configure.ac | |
parent | cbf726c635280ea79524e94d6e993ed29c647bd2 (diff) |
ast: pciaccess conversion
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c033ee2..52af4cd 100644 --- a/configure.ac +++ b/configure.ac @@ -58,10 +58,22 @@ 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]) |