From: Ruben Kerkhof Date: Sat, 27 May 2017 13:05:45 +0000 (+0200) Subject: configure.ac: use preprocessor to detect libpqos version X-Git-Tag: collectd-5.8.0~156 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=39bc5376a7a29a1fab35e72aae3eb1a4676d80a6;p=collectd.git configure.ac: use preprocessor to detect libpqos version No need to run the program. --- diff --git a/configure.ac b/configure.ac index 11fb9ab3..5ed0ab3f 100644 --- a/configure.ac +++ b/configure.ac @@ -4428,14 +4428,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 - ]], - [[ - return !(PQOS_VERSION >= 106) + #if PQOS_VERSION < 106 + #error "required PQOS version >= 1.06" + #endif ]] ) ],