You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2022/10/20 12:30:35 UTC

svn commit: r1904738 - /apr/apr-util/branches/1.7.x/configure.in

Author: ylavic
Date: Thu Oct 20 12:30:35 2022
New Revision: 1904738

URL: http://svn.apache.org/viewvc?rev=1904738&view=rev
Log:
Follow up to r1904730: AC_SEARCH_LIBS might return "none required".


Modified:
    apr/apr-util/branches/1.7.x/configure.in

Modified: apr/apr-util/branches/1.7.x/configure.in
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.7.x/configure.in?rev=1904738&r1=1904737&r2=1904738&view=diff
==============================================================================
--- apr/apr-util/branches/1.7.x/configure.in (original)
+++ apr/apr-util/branches/1.7.x/configure.in Thu Oct 20 12:30:35 2022
@@ -176,8 +176,14 @@ APU_FIND_ICONV
 dnl Enable DSO build; must be last:
 APU_CHECK_UTIL_DSO
 
-AC_SEARCH_LIBS(crypt, crypt ufc,
-               [APR_ADDTO(APRUTIL_LIBS, [$ac_cv_search_crypt])])
+AC_SEARCH_LIBS(crypt, crypt ufc)
+case "$ac_cv_search_crypt" in
+*)
+    APR_ADDTO(APRUTIL_LIBS, [$ac_cv_search_crypt])
+    ;;
+"no"|"none required")
+    ;;
+esac
 AC_MSG_CHECKING(if system crypt() function is threadsafe)
 if test "x$apu_crypt_threadsafe" = "x1"; then
   AC_DEFINE(APU_CRYPT_THREADSAFE, 1, [Define if the system crypt() function is threadsafe])