projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27b74c6
)
configure.ac: use preprocessor to detect libpqos version
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 27 May 2017 13:05:45 +0000
(15:05 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 27 May 2017 13:05:45 +0000
(15:05 +0200)
No need to run the program.
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
11fb9ab
..
5ed0ab3
100644
(file)
--- 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 <pqos.h>
- ]],
- [[
- return !(PQOS_VERSION >= 106)
+ #if PQOS_VERSION < 106
+ #error "required PQOS version >= 1.06"
+ #endif
]]
)
],