configure.ac: no need for body for preproc test
[collectd.git] / configure.ac
index 11fb9ab..a769d49 100644 (file)
@@ -2805,15 +2805,12 @@ if test "x$with_libdpdk" != "xno"; then
       with_libdpdk="yes"
       AC_PREPROC_IFELSE(
         [
-          AC_LANG_PROGRAM(
+          AC_LANG_SOURCE(
             [[
               #include <rte_version.h>
               #if RTE_VERSION < RTE_VERSION_NUM(16,7,0,0)
               #error "required DPDK >= 16.07"
               #endif
-            ]],
-            [[
-              return 0;
             ]]
           )
         ],
@@ -4428,14 +4425,14 @@ fi
 if test "x$with_libpqos" = "xyes"; then
   SAVE_CPPFLAGS="$CPPFLAGS"
   CPPFLAGS="$CPPFLAGS $with_libpqos_cppflags"
-  AC_RUN_IFELSE(
+  AC_PREPROC_IFELSE(
     [
-      AC_LANG_PROGRAM(
+      AC_LANG_SOURCE(
         [[
           #include <pqos.h>
-        ]],
-        [[
-          return !(PQOS_VERSION >= 106)
+          #if PQOS_VERSION < 106
+          #error "required PQOS version >= 1.06"
+          #endif
         ]]
       )
     ],