aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-11-12 16:20:54 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-11-12 16:20:54 +0100
commit9c4683b718fb785ebf7fa5e3cca21af6bd9dc4bb (patch)
treedf65604793d99946c0b83df82c110f37f0f369c7 /configure.ac
parentb6a6cfc5636713e3f7b79d3ac12c9a2b31661549 (diff)
downloaddabmod-9c4683b718fb785ebf7fa5e3cca21af6bd9dc4bb.tar.gz
dabmod-9c4683b718fb785ebf7fa5e3cca21af6bd9dc4bb.tar.bz2
dabmod-9c4683b718fb785ebf7fa5e3cca21af6bd9dc4bb.zip
Replace gpioset calls by C code
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 5c3de90..d0258bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -113,13 +113,17 @@ AS_IF([test "x$enable_dexter" = "xyes"],
[AC_CHECK_LIB([iio], [iio_create_scan_context], [IIO_LIBS="-liio"],
[AC_MSG_ERROR([libiio is required])])])
+AS_IF([test "x$enable_dexter" = "xyes"],
+ [AC_CHECK_LIB([gpiod], [gpiod_chip_open], [GPIOD_LIBS="-lgpiod"],
+ [AC_MSG_ERROR([libgpiod is required])])])
+
AS_IF([test "x$enable_bladerf" = "xyes"],
[AC_CHECK_LIB([bladeRF], [bladerf_open], [BLADERF_LIBS="-lbladeRF"],
[AC_MSG_ERROR([BladeRF library is required])])])
AC_SUBST([CFLAGS], ["$CFLAGS $EXTRA $FFTW_CFLAGS $SOAPYSDR_CFLAGS $PTHREAD_CFLAGS"])
AC_SUBST([CXXFLAGS], ["$CXXFLAGS $EXTRA $FFTW_CFLAGS $SOAPYSDR_CFLAGS $PTHREAD_CFLAGS"])
-AC_SUBST([LIBS], ["$FFTW_LIBS $SOAPYSDR_LIBS $PTHREAD_LIBS $ZMQ_LIBS $LIMESDR_LIBS $IIO_LIBS $BLADERF_LIBS"])
+AC_SUBST([LIBS], ["$FFTW_LIBS $SOAPYSDR_LIBS $PTHREAD_LIBS $ZMQ_LIBS $LIMESDR_LIBS $GPIOD_LIBS $IIO_LIBS $BLADERF_LIBS"])
# Checks for UHD.
AS_IF([test "x$enable_output_uhd" = "xyes"],