From 5bad913938daca4ae3020653690701db83826954 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 18 Jun 2012 20:06:45 +0930 Subject: ccan: check for err.h ourselves Heimdal does this, but that doesn't help the autoconf build or the standalone libntdb build. Signed-off-by: Rusty Russell --- lib/ccan/libccan.m4 | 2 ++ lib/ccan/wscript | 1 + 2 files changed, 3 insertions(+) (limited to 'lib/ccan') diff --git a/lib/ccan/libccan.m4 b/lib/ccan/libccan.m4 index 3b71d7b023..0d391ad961 100644 --- a/lib/ccan/libccan.m4 +++ b/lib/ccan/libccan.m4 @@ -21,6 +21,8 @@ AC_SUBST(CCAN_CFLAGS) # All the configuration checks. Regrettably, the __attribute__ checks will # give false positives on old GCCs, since they just cause warnings. But that's # fairly harmless. +AC_CHECK_HEADERS(err.h) + AC_CACHE_CHECK([whether we can compile with __attribute__((cold))], samba_cv_attribute_cold, [ diff --git a/lib/ccan/wscript b/lib/ccan/wscript index 8d5782af8b..c1dae41611 100644 --- a/lib/ccan/wscript +++ b/lib/ccan/wscript @@ -4,6 +4,7 @@ import Logs, sys, Options def configure(conf): conf.DEFINE('HAVE_CCAN', 1) + conf.CHECK_HEADERS('err.h') # FIXME: if they don't have -Werror, these will all fail. But they # probably will anyway... conf.CHECK_CODE('int __attribute__((cold)) func(int x) { return x; }', -- cgit