Fix AC_SEARCH_LIBS_EXT() usage.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 21 Oct 2008 16:33:38 +0000 (18:33 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 21 Oct 2008 16:33:38 +0000 (18:33 +0200)
lib/replace/crypt.m4

index 4e9086620536d3702a7bdedfd472869e454368f9..684c3519f2332bb08803de2842c62ec62f4d1572 100644 (file)
@@ -1,7 +1,6 @@
 ###############################################
 # 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])],
+AC_SEARCH_LIBS_EXT(crypt, [crypt], CRYPT_LIBS,
+  [ AC_DEFINE(HAVE_CRYPT,1,[Whether the system has the crypt() function]) ],
   [ LIBREPLACEOBJ="${LIBREPLACEOBJ} crypt.o" ])