From: Jérôme Renard Date: Wed, 26 Oct 2011 23:20:47 +0000 (+0200) Subject: varnish plugin: Switched to AC_CHECK_HEADERS X-Git-Tag: collectd-5.1.0~5^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9dcea8c161dbe20f7ec6f07bf193027a7ceb0125;p=collectd.git varnish plugin: Switched to AC_CHECK_HEADERS --- diff --git a/configure.in b/configure.in index dd9c45f9..d1fa936a 100644 --- a/configure.in +++ b/configure.in @@ -4072,9 +4072,9 @@ then CPPFLAGS="$CPPFLAGS $with_libvarnish_cflags" #LDFLAGS="$LDFLAGS $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])]) + AC_CHECK_HEADERS(varnish/vsc.h, + [AC_DEFINE([HAVE_VARNISH_V3], [1], [Varnish 3 API support])], + [AC_DEFINE([HAVE_VARNISH_V2], [1], [Varnish 2 API support])]) CPPFLAGS="$SAVE_CPPFLAGS" #LDFLAGS="$SAVE_LDFLAGS"