summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c4c660)
raw | patch | inline | side by side (parent: 2c4c660)
author | Jérôme Renard <jerome.renard@gmail.com> | |
Wed, 26 Oct 2011 19:14:15 +0000 (21:14 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 11 Mar 2012 13:53:52 +0000 (14:53 +0100) |
configure.in | patch | blob | history |
diff --git a/configure.in b/configure.in
index 0a0a8f8c813a5345af4084e55c24d79bd75fd857..27d3942165ebe77396dd8834a3ce4e1ad4042030 100644 (file)
--- a/configure.in
+++ b/configure.in
CPPFLAGS="$CPPFLAGS $with_libvarnish_cflags"
#LDFLAGS="$LDFLAGS $with_libvarnish_libs"
- AC_CHECK_LIB(varnishapi, VSL_OpenStats,
- [with_libvarnish="yes"],
- [with_libvarnish="no (symbol VSL_OpenStats not found)"],
- [$with_libvarnish_libs])
+ AC_CHECK_FUNC([VSL_OpenStats],
+ [AC_DEFINE([HAVE_VARNISH_V2], [1], [Varnish 2 API support])],
+ [AC_DEFINE([HAVE_VARNISH_V3], [1], [Varnish 3 API support])])
CPPFLAGS="$SAVE_CPPFLAGS"
#LDFLAGS="$SAVE_LDFLAGS"