Merge branch 'pull/collectd-4.1' into collectd-4.1
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 4 Sep 2007 21:46:12 +0000 (23:46 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 4 Sep 2007 21:46:12 +0000 (23:46 +0200)
1  2 
configure.in

diff --cc configure.in
        SAVE_CFLAGS=$CFLAGS
        CFLAGS="$CFLAGS $with_libnetlink_cflags"
  
-       AC_CHECK_HEADERS(iproute/libnetlink.h, [], [with_libnetlink="no (iproute/libnetlink.h not found)"],
+       with_libnetlink="no (libnetlink.h not found)"
+       AC_CHECK_HEADERS(libnetlink.h iproute/libnetlink.h linux/libnetlink.h,
+       [
+        with_libnetlink="yes"
+        break
+       ], [],
  [#include <stdio.h>
  #include <sys/types.h>
 +#include <asm/types.h>
  #include <sys/socket.h>
  #include <linux/netlink.h>
  #include <linux/rtnetlink.h>])