summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript2
-rw-r--r--lib/util/wscript_configure6
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 405e80136b..368791cf5b 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -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
index 0000000000..c5744c5520
--- /dev/null
+++ b/lib/util/wscript_configure
@@ -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')