diff options
author | phintuka <phintuka> | 2008-04-10 14:30:32 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-04-10 14:30:32 +0000 |
commit | 3344e04cef9761a54b7374d12e979c3c264146e2 (patch) | |
tree | 727e1e8f562c3106805a4f3e6df87f46ac020fd4 | |
parent | f0bfc3c4213beea8f87e14ad61a7acc1f6908752 (diff) | |
download | xineliboutput-3344e04cef9761a54b7374d12e979c3c264146e2.tar.gz xineliboutput-3344e04cef9761a54b7374d12e979c3c264146e2.tar.bz2 |
Buildtime check for X11 dpms extension
-rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -4,7 +4,7 @@ # See the main source file 'xineliboutput.c' for copyright information and # how to reach the author. # -# $Id: Makefile,v 1.34 2008-04-02 20:18:11 phintuka Exp $ +# $Id: Makefile,v 1.35 2008-04-10 14:30:32 phintuka Exp $ # # The official name of this plugin. @@ -22,6 +22,7 @@ _default: all XINELIBOUTPUT_FB = 0 XINELIBOUTPUT_X11 = 0 HAVE_XRENDER = 0 +HAVE_XDPMS = 0 HAVE_EXTRACTOR_H = 0 APPLE_DARWIN = 0 XINELIBOUTPUT_XINEPLUGIN = 0 @@ -47,6 +48,11 @@ ifeq ($(XINELIBOUTPUT_XINEPLUGIN), 1) $(warning XRender extension not detected ! HUD OSD disabled. ) $(warning ********************************************************) endif + ifeq ($(shell (((echo "\#include <X11/Xlib.h>";echo "\#include <X11/extensions/dpms.h>";echo "int main(int c,char* v[]) {return 0;}") > testx.c && gcc -c testx.c -o testx.o >/dev/null 2>&1) && echo "1") || echo "0" ; rm -f testx.* >/dev/null), 1) + HAVE_XDPMS = 1 + else + $(warning XDPMS extension not detected. ) + endif else $(warning ********************************************************) $(warning X11 not detected ! X11 frontends will not be compiled. ) @@ -70,6 +76,7 @@ endif USE_ICONV = 1 #XINELIBOUTPUT_X11 = 1 #HAVE_XRENDER = 1 +#HAVE_XDPMS = 1 #HAVE_EXTRACTOR_H = 1 #XINELIBOUTPUT_FB = 1 #XINELIBOUTPUT_XINEPLUGIN = 1 @@ -247,6 +254,9 @@ DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' \ ifeq ($(HAVE_XRENDER), 1) DEFINES += -DHAVE_XRENDER=1 endif +ifeq ($(HAVE_XDPMS), 1) + DEFINES += -DHAVE_XDPMS=1 +endif ifeq ($(HAVE_EXTRACTOR_H), 1) DEFINES += -DHAVE_EXTRACTOR_H=1 INCLUDES += $(shell pkg-config libextractor --cflags-only-I) |