Merge branch 'collectd-4.2' of /var/lib/git/collectd into collectd-4.2
authorFlorian Forster <octo@huhu.verplant.org>
Wed, 30 Apr 2008 06:18:08 +0000 (08:18 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 30 Apr 2008 06:18:08 +0000 (08:18 +0200)
1  2 
configure.in

diff --cc configure.in
@@@ -1087,13 -1091,14 +1091,15 @@@ AC_CHECK_LIB(IOKit, IOServiceGetMatchin
  AC_DEFINE_UNQUOTED(COLLECT_LIBIOKIT, [$collect_libiokit], [Wether or not to use the IOKit library])
  AM_CONDITIONAL(BUILD_WITH_LIBIOKIT, test "x$with_libiokit" = "xyes")
  
+ with_libstatgrab_cflags=""
+ with_libstatgrab_ldflags=""
  AC_ARG_WITH(libstatgrab, [AS_HELP_STRING([--with-libstatgrab@<:@=PREFIX@:>@], [Path to libstatgrab.])],
  [
 -      if test "x$withval" != "xno" -a "x$withval" != "xyes"
 +      if test "x$withval" != "xno" \
 +              && test "x$withval" != "xyes"
        then
-               LDFLAGS="$LDFLAGS -L$withval/lib"
-               CPPFLAGS="$CPPFLAGS -I$withval/include"
+               with_libstatgrab_cflags="-I$withval/include"
+               with_libstatgrab_ldflags="-L$withval/lib"
                with_libstatgrab="yes"
        fi
  ],