ctdb-build: Add missing configure checks for backtrace
authorAmitay Isaacs <amitay@gmail.com>
Thu, 18 Sep 2014 00:21:25 +0000 (10:21 +1000)
committerMartin Schwenke <martins@samba.org>
Fri, 19 Sep 2014 04:06:31 +0000 (06:06 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Fri Sep 19 06:06:31 CEST 2014 on sn-devel-104

ctdb/lib/util/wscript_build
ctdb/wscript

index 0d945394f7d152ddd94b6c24ee9f08493878e22c..fb88814ad92153682a76c5f3833ae804e7e1124c 100755 (executable)
@@ -4,6 +4,6 @@ bld.SAMBA_SUBSYSTEM('ctdb-util',
                      source='''util.c util_file.c util_time.c
                                debug.c fault.c idtree.c signal.c
                                substitute.c''',
-                      deps='tdb talloc tevent',
+                      deps='tdb talloc tevent execinfo',
                       local_include=False,
                       )
index 96782af56f1a095d34cb0dea4124749626a821cb..895fcc69b883fe269a5be2967c7960f606d03a11 100755 (executable)
@@ -103,6 +103,10 @@ def configure(conf):
             Logs.error('Need libpcap')
             sys.exit(1)
 
+    if not conf.CHECK_FUNCS_IN('backtrace backtrace_symbols', 'execinfo',
+                               checklibc=True, headers='execinfo.h'):
+        Logs.error('backtrace support not available')
+
     have_pmda = False
     if Options.options.ctdb_pmda:
         pmda_support = True