summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index abc045e..ef3f4f0 100644
--- a/Makefile
+++ b/Makefile
@@ -37,8 +37,17 @@ APIVERSION = $(call PKGCFG,apiversion)
ifeq ($(VDRDIR),)
VDRDIR ?= ../../..
endif
+
ifeq ($(PLGCFG),)
PLGCFG = $(VDRDIR)/Make.config
+
+ # test if plgcfg is given and set to an empty value in vdr.pc
+ # if so: assume that VDR >= 1.7.33 and disallow Make.config
+ ifneq ($(wildcard $(VDRDIR)/vdr.pc),)
+ ifneq ($(shell grep -e '^plgcfg' $(VDRDIR)/vdr.pc),)
+ PLGCFG =
+ endif
+ endif
endif
-include $(PLGCFG)