From: Seungha Son Date: Tue, 23 Nov 2021 06:07:51 +0000 (+0900) Subject: Fix build when crypt() is not part of crypt_libs X-Git-Tag: accepted/tizen/6.5/base/20230714.002617^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen_6.5_base;p=platform%2Fupstream%2Fpam.git Fix build when crypt() is not part of crypt_libs * configure.ac: Don't set empty -l option in crypt check upstream : https://github.com/linux-pam/linux-pam/commit/01e0038fa55581c4afc9d63b6180d2ea77ba2940 Change-Id: Ibcab19d61f8f3c074b48e696b17b5a7ebf233b91 Signed-off-by: Seungha Son (cherry picked from commit 5b0f078ec372f810b832d0f261c68826fb97d4f9) --- diff --git a/configure.in b/configure.in index ae762a2..385f065 100644 --- a/configure.in +++ b/configure.in @@ -400,7 +400,7 @@ AS_IF([test "x$ac_cv_header_xcrypt_h" = "xyes"], [crypt_libs="crypt"]) BACKUP_LIBS=$LIBS -AC_SEARCH_LIBS([crypt],[$crypt_libs], LIBCRYPT="-l$ac_lib", LIBCRYPT="") +AC_SEARCH_LIBS([crypt],[$crypt_libs], LIBCRYPT="${ac_lib:+-l$ac_lib}", LIBCRYPT="") AC_CHECK_FUNCS(crypt_r crypt_gensalt_r) LIBS=$BACKUP_LIBS AC_SUBST(LIBCRYPT)