summaryrefslogtreecommitdiff
path: root/lib/replace/crypt.m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-21 14:51:13 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-21 14:51:13 +0200
commit5209a846a9157e649fcdcb561f7eaf19c8c0e465 (patch)
treeb0a7e52b5646c8eec182dbc391e7934b6804488c /lib/replace/crypt.m4
parent625359b2e266105022309df8985720108ecd6f67 (diff)
parent2ee8d29d22bcb1c350ab59d71b0aee548489bc9c (diff)
downloadsamba-5209a846a9157e649fcdcb561f7eaf19c8c0e465.tar.gz
samba-5209a846a9157e649fcdcb561f7eaf19c8c0e465.tar.bz2
samba-5209a846a9157e649fcdcb561f7eaf19c8c0e465.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba into regsrv
Conflicts: source4/lib/registry/ldb.c source4/rpc_server/winreg/rpc_winreg.c
Diffstat (limited to 'lib/replace/crypt.m4')
-rw-r--r--lib/replace/crypt.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/replace/crypt.m4 b/lib/replace/crypt.m4
new file mode 100644
index 0000000000..4e90866205
--- /dev/null
+++ b/lib/replace/crypt.m4
@@ -0,0 +1,7 @@
+###############################################
+# test for where we get crypt() from
+AC_CHECK_HEADERS(crypt.h)
+AC_SEARCH_LIBS_EXT(crypt, [crypt],
+ [test "$ac_cv_search_ext_crypt" = "none required" || CRYPT_LIBS="-lcrypt"
+ AC_DEFINE(HAVE_CRYPT,1,[Whether the system has the crypt() function])],
+ [ LIBREPLACEOBJ="${LIBREPLACEOBJ} crypt.o" ])