summaryrefslogtreecommitdiff
path: root/lib/replace/crypt.m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-20 11:07:38 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-20 11:07:38 +0200
commit70eba79edb3cba9432508ff3c439200e980f9468 (patch)
tree7c1bee4412410a52799d243cc71e5ae456a31cc1 /lib/replace/crypt.m4
parent86576f0f1627bf799e422d16baac5a7057de0316 (diff)
parent221ea78e2e1688f2e79703784b3d1d1a68057604 (diff)
downloadsamba-70eba79edb3cba9432508ff3c439200e980f9468.tar.gz
samba-70eba79edb3cba9432508ff3c439200e980f9468.tar.bz2
samba-70eba79edb3cba9432508ff3c439200e980f9468.zip
Merge branch 'master' of ssh://git.samba.org/data/git/samba into selftest
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..047766d470
--- /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_crypt" = "none required" || CRYPT_LIBS="-lcrypt"
+ AC_DEFINE(HAVE_CRYPT,1,[Whether the system has the crypt() function])],
+ [ LIBREPLACEOBJ="${LIBREPLACEOBJ} crypt.o" ])