]> git.ipfire.org Git - telemetry.git/commitdiff
configure: Link against libnl-3 and libnl-route-3
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Nov 2025 16:54:05 +0000 (16:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Nov 2025 16:54:05 +0000 (16:54 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Jenkinsfile
Makefile.am
configure.ac

index e0ec06c9fc3bf13e1a4b92c1a914e295cfded44d..342e5ba7b943c44d76d73d7ec8606a9805cf6a78 100644 (file)
@@ -210,6 +210,7 @@ def installBuildDepsRedHat(distro, compier) {
                        \
                        iptables-devel \
                        libatasmart-devel \
+                       libnl3-devel \
                        lm_sensors-devel \
                        rrdtool-devel \
                        systemd-devel
@@ -234,6 +235,7 @@ def installBuildDepsArchLinux(distro, compiler) {
                        \
                        iptables \
                        libatasmart \
+                       libnl3 \
                        lm_sensors \
                        rrdtool \
                        systemd
@@ -258,6 +260,8 @@ def installBuildDepsDebian(distro, compiler, arch) {
                        \
                        libatasmart-dev \
                        libiptc-dev \
+                       libnl-3-dev \
+                       libnl-route-3-dev \
                        libsensors-dev \
                        librrd-dev \
                        libsystemd-dev \
index 00de27014cfac322b775d3fa65d1678b76ae4884..b40ca2a354fdf09aea9a8c564d0120446413c845 100644 (file)
@@ -215,6 +215,8 @@ telemetryd_CFLAGS = \
        $(AM_CFLAGS) \
        $(LIBATASMART_CFLAGS) \
        $(LIBIPTC_CFLAGS) \
+       $(LIBNL3_CFLAGS) \
+       $(LIBNL3_ROUTE_CFLAGS) \
        $(RRD_CFLAGS) \
        $(SENSORS_CFLAGS) \
        $(SYSTEMD_CFLAGS) \
@@ -224,6 +226,8 @@ telemetryd_LDFLAGS = \
        $(AM_LDFLAGS) \
        $(LIBATASMART_LDFLAGS) \
        $(LIBIPTC_LDFLAGS) \
+       $(LIBNL3_LDFLAGS) \
+       $(LIBNL3_ROUTE_LDFLAGS) \
        $(RRD_LDFLAGS) \
        $(SENSORS_LDFLAGS) \
        $(SYSTEMD_LDFLAGS) \
@@ -232,6 +236,8 @@ telemetryd_LDFLAGS = \
 telemetryd_LDADD = \
        $(LIBATASMART_LIBS) \
        $(LIBIPTC_LIBS) \
+       $(LIBNL3_LIBS) \
+       $(LIBNL3_ROUTE_LIBS) \
        $(RRD_LIBS) \
        $(SENSORS_LIBS) \
        $(SYSTEMD_LIBS) \
index b6496ef834aa5d53f1908f09b7d9f2feaea48eb6..155ded9b1deefe3892418dfd5ef8dbad41e8374b 100644 (file)
@@ -157,6 +157,22 @@ if test "x$have_libatasmart" = "xyes"; then
     AC_DEFINE([HAVE_LIBATASMART], [1], [Define if you have libatasmart])
 fi
 
+# libnl-3
+PKG_CHECK_MODULES([LIBNL3], [libnl-3.0],
+       [have_libnl3=yes], [have_libnl3=no])
+
+if test "x$have_libnl3" = "xyes"; then
+       AC_DEFINE([HAVE_LIBNL3], [1], [Define if you have libnl-3])
+fi
+
+# libnl-3 route
+PKG_CHECK_MODULES([LIBNL3_ROUTE], [libnl-route-3.0],
+       [have_libnl3_route=yes], [have_libnl3_route=no])
+
+if test "x$have_libnl3_route" = "xyes"; then
+       AC_DEFINE([HAVE_LIBNL3_ROUTE], [1], [Define if you have libnl-3-route])
+fi
+
 save_LIBS="$LIBS"
 
 # lm-sensors
@@ -243,5 +259,7 @@ AC_MSG_RESULT([
 
        libatasmart:            ${have_libatasmart}
        libiptc:                ${have_libiptc}
+       libnl-3:                ${have_libnl3}
+       libnl-3-route:          ${have_libnl3_route}
        sensors:                ${have_sensors}
 ])