]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
configure.ac: update gpu_sysman plugin checks for zesInit()
authorEero Tamminen <eero.t.tamminen@intel.com>
Fri, 1 Mar 2024 12:52:49 +0000 (14:52 +0200)
committerEero Tamminen <eero.t.tamminen@intel.com>
Thu, 14 Mar 2024 15:39:49 +0000 (17:39 +0200)
Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
configure.ac

index f7b30be091d88ebe88d20092e21513858fcbd2a1..6d42a798bfc8c3d86b3a9fdbe4b036568523febb 100644 (file)
@@ -2111,6 +2111,10 @@ PKG_CHECK_MODULES([LEVEL_ZERO], [level-zero],
   [with_level_zero="no (pkg-config could not find 'level-zero')"]
 )
 
+if ! pkg-config --atleast-version=1.9.4 level-zero; then
+  with_level_zero="no (version $(pkg-config --version level-zero) < 1.9.4)"
+fi
+
 if test "x$with_level_zero" = "xyes"; then
   SAVE_CPPFLAGS="$CPPFLAGS"
   CPPFLAGS="$CPPFLAGS $LEVEL_ZERO_CFLAGS"
@@ -2126,9 +2130,9 @@ if test "x$with_level_zero" = "xyes"; then
   SAVE_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS $LEVEL_ZERO_LIBS"
 
-  AC_CHECK_LIB([ze_loader], zeInit,
+  AC_CHECK_LIB([ze_loader], zesInit,
     [with_level_zero="yes"],
-    [with_level_zero="no (libze_loader symbol 'zeInit' not found)"]
+    [with_level_zero="no (libze_loader symbol 'zesInit' not found)"]
   )
   LDFLAGS="$SAVE_LDFLAGS"
 fi