2
0
Эх сурвалжийг харах

secsipid: Makefile - detect of pkg-config knows about libsecsipid

Daniel-Constantin Mierla 4 жил өмнө
parent
commit
664542adf4

+ 10 - 1
src/modules/secsipid/Makefile

@@ -7,7 +7,16 @@ include ../../Makefile.defs
 auto_gen=
 NAME=secsipid.so
 
-BUILDER = $(shell which pkg-config)
+ifeq ($(CROSS_COMPILE),)
+	BUILDER = $(shell which pkg-config)
+ifneq ($(BUILDER),)
+	PKGLIBSECSIPID = $(shell $(BUILDER) --exists secsipid-1 > /dev/null 2>&1 ; echo $$? )
+ifneq ($(PKGLIBSECSIPID),0)
+	BUILDER =
+endif
+endif
+endif
+
 ifeq ($(BUILDER),)
 	DEFS+= -I.
 	LIBS = -L. -lsecsipid