(jm_LIB_CHECK): Do not set LIB_CRYPT to the
authorJim Meyering <jim@meyering.net>
Sat, 20 Dec 2003 16:51:51 +0000 (16:51 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 20 Dec 2003 16:51:51 +0000 (16:51 +0000)
value, $ac_cv_search_crypt, if it's "none required".

m4/lib-check.m4

index 15ffe54..92a3685 100644 (file)
@@ -1,4 +1,4 @@
-#serial 5
+#serial 6
 
 dnl Misc lib-related macros for fileutils, sh-utils, textutils.
 
@@ -57,7 +57,9 @@ $ac_includes_default
   # SCO-ODT-3.0 is reported to need -lufc for crypt.
   # NetBSD needs -lcrypt for crypt.
   ac_su_saved_lib="$LIBS"
-  AC_SEARCH_LIBS(crypt, [ufc crypt], [LIB_CRYPT="$ac_cv_search_crypt"])
+  AC_SEARCH_LIBS(crypt, [ufc crypt],
+                [test "$ac_cv_search_crypt" = "none required" ||
+                 LIB_CRYPT="$ac_cv_search_crypt"])
   LIBS="$ac_su_saved_lib"
   AC_SUBST(LIB_CRYPT)
 ])