summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-17 05:18:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:20 -0500
commit416c9068a2e2fcc50a7fdfff4c1b4dc8d99f6353 (patch)
tree780b70935f5f34eb3e0774342cfaf411ae558391 /source4/build
parent08e23b36cb2a7437257c399e390485f288c572a1 (diff)
downloadsamba-416c9068a2e2fcc50a7fdfff4c1b4dc8d99f6353.tar.gz
samba-416c9068a2e2fcc50a7fdfff4c1b4dc8d99f6353.tar.bz2
samba-416c9068a2e2fcc50a7fdfff4c1b4dc8d99f6353.zip
r7672: this should fix the crypt dependency problem (I hope!)
(This used to be commit 3fe00b61147e09159ef02328a7f1d8f7805abf0d)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/m4/rewrite.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4
index cd33ef0cce..53010bef5a 100644
--- a/source4/build/m4/rewrite.m4
+++ b/source4/build/m4/rewrite.m4
@@ -738,9 +738,9 @@ AC_SUBST(SMBD_EXTRA_LIBS)
###############################################
# test for where we get crypt() from
-AC_SEARCH_LIBS(crypt, [crypt],
- [test "$ac_cv_search_crypt" = "none required" || AUTHLIBS="-lcrypt $AUTHLIBS"
- AC_DEFINE(HAVE_CRYPT,1,[Whether the system has the crypt() function])])
+AC_CHECK_LIB_EXT(crypt, CRYPT_LIBS, crypt)
+SMB_EXT_LIB_ENABLE(CRYPT,YES)
+SMB_EXT_LIB(CRYPT, $CRYPT_LIBS)
##
## moved after the check for -lcrypt in order to