configure.ac: Properly check XFree86 proto modules

Not sure why these are conditionals, anyway.  This one really needs
revisiting, but at least causes configure, rather than the compilation,
to bomb out.
This commit is contained in:
Daniel Stone 2007-07-08 00:27:40 +03:00
parent fd10312b42
commit 06dd2748da

View File

@ -1478,6 +1478,7 @@ return 0;}
fi fi
if test "x$DGA" = xyes; then if test "x$DGA" = xyes; then
XORG_MODULES="$XORG_MODULES xf86dgaproto" XORG_MODULES="$XORG_MODULES xf86dgaproto"
PKG_CHECK_MODULES(DGA, xf86dgaproto)
AC_DEFINE(DGA, 1, [Support DGA extension]) AC_DEFINE(DGA, 1, [Support DGA extension])
AC_DEFINE(XFreeXDGA, 1, [Build XDGA support]) AC_DEFINE(XFreeXDGA, 1, [Build XDGA support])
fi fi
@ -1487,6 +1488,7 @@ return 0;}
fi fi
if test "x$XF86MISC" = xyes; then if test "x$XF86MISC" = xyes; then
XORG_MODULES="$XORG_MODULES xf86miscproto" XORG_MODULES="$XORG_MODULES xf86miscproto"
PKG_CHECK_MODULES(XF86MISC, xf86miscproto)
AC_DEFINE(XF86MISC, 1, [Support XFree86 miscellaneous extensions]) AC_DEFINE(XF86MISC, 1, [Support XFree86 miscellaneous extensions])
fi fi
@ -1495,6 +1497,7 @@ return 0;}
fi fi
if test "x$XF86VIDMODE" = xyes; then if test "x$XF86VIDMODE" = xyes; then
XORG_MODULES="$XORG_MODULES xf86vidmodeproto" XORG_MODULES="$XORG_MODULES xf86vidmodeproto"
PKG_CHECK_MODULES(XF86VIDMODE, xf86vidmodeproto)
AC_DEFINE(XF86VIDMODE, 1, [Support XFree86 Video Mode extension]) AC_DEFINE(XF86VIDMODE, 1, [Support XFree86 Video Mode extension])
fi fi