lib/ccan: define HAVE_CCAN.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 21 Feb 2012 04:59:06 +0000 (15:29 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 21 Feb 2012 04:59:06 +0000 (15:29 +1030)
This allows public headers to use CCAN if available, and dummy macros
if not (eg. tdb2).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/ccan/wscript

index 9daf091e5b6ded5340178ae4971cae012c26850f..59fe93af8eb26c1c7fd486f568e14a77324020f2 100644 (file)
@@ -3,6 +3,7 @@
 import Logs, sys
 
 def configure(conf):
+    conf.DEFINE('HAVE_CCAN', 1)
     # 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; }',