summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 21ba59f)
raw | patch | inline | side by side (parent: 21ba59f)
author | Dagobert Michelsen <dam@opencsw.org> | |
Thu, 11 Jun 2015 09:26:23 +0000 (11:26 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 11 Jun 2015 15:33:04 +0000 (16:33 +0100) |
Fixes: #348
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 8572749fcdd65cfd60a8ea0f67800a1269bdd27a..11c113491a1a2682ec965b6a41b7eb6acde3e15c 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_CHECK_HEADERS(netinet/ip_compat.h)
+AC_CHECK_MEMBER([struct ip6_ext.ip6e_len], [],
+[
+# Solaris needs special definition to have ip6_ext defined
+ # Invalidate cache so we can retest
+ AS_UNSET([ac_cv_member_struct_ip6_ext_ip6e_len])
+
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -DSOLARIS2=8"
+ AC_CHECK_MEMBER([struct ip6_ext.ip6e_len],[c_cv_ip6_ext_needs_d_solaris2_8=yes], [],
+[[#if HAVE_NETINET_IP_COMPAT_H
+# include <netinet/ip_compat.h>
+#endif
+]])
+ CFLAGS="$SAVE_CFLAGS"
+],[[#if HAVE_NETINET_IP_COMPAT_H
+# include <netinet/ip_compat.h>
+#endif
+]])
+
+AC_MSG_CHECKING([if struct ip6_ext.ip6e_len reauired -DSOLARIS2=8])
+if test "x$c_cv_ip6_ext_needs_d_solaris2_8" = "xyes"
+then
+ AC_MSG_RESULT([yes])
+ CFLAGS="$CFLAGS -DSOLARIS2=8"
+else
+ AC_MSG_RESULT([no])
+fi
+
have_net_pfvar_h="no"
AC_CHECK_HEADERS(net/pfvar.h,
[have_net_pfvar_h="yes"],