[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: DPMS detection
From: Michael Olbrich <michael-olbrich () web ! de>
Date: 2005-08-27 18:04:35
Message-ID: 20050827180435.GA25393 () a168 ! apm ! etc ! tu-bs ! de
[Download RAW message or body]
Hi!
The current check for DPMS doesn't work correctly for me.
The main test includes:
#include <X11/Xproto.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/extensions/dpms.h>
This part works. The checks for DPMSCapable and DPMSInfo hwoever only
#include <X11/extensions/dpms.h>
This doesn't compile for me. In my case adding X11/Xlib.h is enough (see
patch). I'm not sure if there are situations where X11/Xproto.h and
X11/X.h are needed as well.
michael
["admin.diff" (text/plain)]
Index: admin/acinclude.m4.in
===================================================================
--- admin/acinclude.m4.in (revision 453897)
+++ admin/acinclude.m4.in (working copy)
@@ -3911,12 +3911,14 @@
[Define if you have the DPMSCapable prototype in <X11/extensions/dpms.h>])
AC_CHECK_DECL(DPMSCapable,
AC_DEFINE(HAVE_DPMSCAPABLE_PROTO),,
- [#include <X11/extensions/dpms.h>])
+ [#include <X11/Xlib.h>
+ #include <X11/extensions/dpms.h>])
AH_TEMPLATE(HAVE_DPMSINFO_PROTO,
[Define if you have the DPMSInfo prototype in <X11/extensions/dpms.h>])
AC_CHECK_DECL(DPMSInfo,
AC_DEFINE(HAVE_DPMSINFO_PROTO),,
- [#include <X11/extensions/dpms.h>])
+ [#include <X11/Xlib.h>
+ #include <X11/extensions/dpms.h>])
CFLAGS="$ac_save_cflags"
AC_SUBST(DPMSINC)
AC_SUBST(DPMSLIB)
=
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib=
e <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic