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).
This commit is contained in:
Aleksander Morgado
2021-01-22 14:24:14 +01:00
parent da24b7d450
commit 866c1d4ab6
2 changed files with 42 additions and 0 deletions

View File

@@ -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)