From 866c1d4ab6e9cc8f629a80603ed49b9568c12b8b Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 22 Jan 2021 14:24:14 +0100 Subject: build: look for libqrtr-glib with pkg-config The WITH_QRTR symbol in config.h will let us know both if libqrtr-glib is found and if libqmi-glib is compiled with QRTR support (as per the exposed "qmi_qrtr_supported" variable in pkg-config). --- src/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 120503e1..c00e8ac3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -33,6 +33,11 @@ AM_LDFLAGS = \ $(GUDEV_LIBS) \ $(NULL) +if WITH_QRTR +AM_CFLAGS += $(QRTR_CFLAGS) +AM_LDFLAGS += $(QRTR_LIBS) +endif + if WITH_QMI AM_CFLAGS += $(QMI_CFLAGS) AM_LDFLAGS += $(QMI_LIBS) -- cgit v1.2.3-70-g09d2