(jm_LIB_CHECK): Do not set LIB_CRYPT to the

value, $ac_cv_search_crypt, if it's "none required".
This commit is contained in:
Jim Meyering committed 2003-12-20 16:51:51 +00:00
1 parent 6ff0bf52e2
commit 31361deb52
1 file changed
+4 -2
+4 -2
View 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)
])