summaryrefslogtreecommitdiff
path: root/lib/crypto/wscript_build
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2013-05-22 00:14:19 +1000
committerRichard Sharpe <sharpe@samba.org>2013-05-22 10:06:40 +0200
commit30a224367595f9e2506e41053fc9c7cb96a90928 (patch)
tree0deb2b11be00fea6c1eead145c716e06137b036a /lib/crypto/wscript_build
parent27df444d0b92a8acb4d830b3b62f04835b57f0e8 (diff)
downloadsamba-30a224367595f9e2506e41053fc9c7cb96a90928.tar.gz
samba-30a224367595f9e2506e41053fc9c7cb96a90928.tar.bz2
samba-30a224367595f9e2506e41053fc9c7cb96a90928.zip
build: Update md5.h detection in waf and autoconf to use sys/md5.h and -lmd
This brings the two build systems in sync, without using md5.h (which is a problem name) Tested on FreeBSD Andrew Bartlett Reviewed-by: Richard Sharpe <rsharpe@samba.org> Autobuild-User(master): Richard Sharpe <sharpe@samba.org> Autobuild-Date(master): Wed May 22 10:06:40 CEST 2013 on sn-devel-104
Diffstat (limited to 'lib/crypto/wscript_build')
-rw-r--r--lib/crypto/wscript_build4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/crypto/wscript_build b/lib/crypto/wscript_build
index cd7a466a15..e056f653fb 100644
--- a/lib/crypto/wscript_build
+++ b/lib/crypto/wscript_build
@@ -4,6 +4,10 @@ extra_source = ''
extra_deps = ''
if bld.CONFIG_SET('HAVE_BSD_MD5_H'):
extra_deps += ' bsd'
+elif bld.CONFIG_SET('HAVE_SYS_MD5_H') and bld.CONFIG_SET('HAVE_LIBMD5'):
+ extra_deps += ' md5'
+elif bld.CONFIG_SET('HAVE_SYS_MD5_H') and bld.CONFIG_SET('HAVE_LIBMD'):
+ extra_deps += ' md'
elif not bld.CONFIG_SET('HAVE_COMMONCRYPTO_COMMONDIGEST_H'):
extra_source += ' md5.c'