From 5dcce64bbd64d1fbc81fa1135e77c87316691017 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 13 Oct 2011 13:37:52 +1030 Subject: config.h: define HAVE_LIBREPLACE tdb2 wants to know if it should use replace.h. Signed-off-by: Rusty Russell Autobuild-User: Rusty Russell Autobuild-Date: Thu Oct 13 08:58:35 CEST 2011 on sn-devel-104 --- lib/replace/libreplace.m4 | 2 ++ lib/replace/wscript | 1 + 2 files changed, 3 insertions(+) (limited to 'lib/replace') diff --git a/lib/replace/libreplace.m4 b/lib/replace/libreplace.m4 index d644e5062e..bc2993ad07 100644 --- a/lib/replace/libreplace.m4 +++ b/lib/replace/libreplace.m4 @@ -71,6 +71,8 @@ AC_CHECK_HEADERS(setjmp.h utime.h) LIBREPLACE_PROVIDE_HEADER([stdint.h]) LIBREPLACE_PROVIDE_HEADER([stdbool.h]) +AC_DEFINE(HAVE_LIBREPLACE, 1, [We have libreplace]) + AC_CHECK_TYPE(bool, [AC_DEFINE(HAVE_BOOL, 1, [Whether the bool type is available])],, [ diff --git a/lib/replace/wscript b/lib/replace/wscript index c24d6e76b3..57b10a94cb 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -29,6 +29,7 @@ def configure(conf): conf.env.standalone_replace = conf.IN_LAUNCH_DIR() + conf.DEFINE('HAVE_LIBREPLACE', 1) conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1) # on Tru64 certain features are only available with _OSF_SOURCE set to 1 -- cgit