Przeglądaj źródła

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

Daniel-Constantin Mierla 4 lat temu
rodzic
commit
664542adf4
1 zmienionych plików z 10 dodań i 1 usunięć
  1. 10 1
      src/modules/secsipid/Makefile

+ 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