build: check for backtrace
authorAndrew Tridgell <tridge@samba.org>
Sun, 7 Mar 2010 03:07:32 +0000 (14:07 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:42 +0000 (20:26 +1000)
lib/replace/wscript
lib/util/wscript_configure [new file with mode: 0644]
source4/wscript

index 405e80136b90823621e024368a94dd09c6d8b66e..368791cf5b263939ff53bc562dd8b042da9dda2e 100644 (file)
@@ -72,7 +72,7 @@ def configure(conf):
     conf.CHECK_HEADERS('sys/uio.h ifaddrs.h direct.h dirent.h')
     conf.CHECK_HEADERS('windows.h winsock2.h ws2tcpip.h')
     conf.CHECK_HEADERS('resolv.h libintl.h errno.h')
-    conf.CHECK_HEADERS('execinfo.h gcrypt.h getopt.h iconv.h')
+    conf.CHECK_HEADERS('gcrypt.h getopt.h iconv.h')
     conf.CHECK_HEADERS('sys/inotify.h memory.h nss.h popt.h sasl/sasl.h')
     conf.CHECK_HEADERS('security/pam_appl.h sys/inotify.h zlib.h asm/unistd.h')
 
diff --git a/lib/util/wscript_configure b/lib/util/wscript_configure
new file mode 100644 (file)
index 0000000..c5744c5
--- /dev/null
@@ -0,0 +1,6 @@
+
+conf.CHECK_HEADERS('execinfo.h')
+
+# backtrace could be in libexecinfo or in libc
+conf.CHECK_FUNCS_IN('backtrace', 'execinfo')
+conf.CHECK_FUNCS('backtrace')
index 0bbf09b2dedd89aaece932f978efafe5242573d3..d04313155bcbbdae0e243eff90ef7c90359841c1 100644 (file)
@@ -26,6 +26,7 @@ def configure(conf):
     conf.sub_config('heimdal_build')
     conf.sub_config('lib/tls')
     conf.sub_config('ntvfs/sysdep')
+    conf.sub_config('../lib/util')
 
     conf.DEFINE('CONFIG_H_IS_FROM_SAMBA', 1)
     conf.ADD_EXTRA_INCLUDES('#source4 #lib #source4/lib  #source4/include #lib/socket_wrapper #lib/talloc #lib/replace #lib/event')