diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -13456,9 +13456,9 @@ $as_echo "$ac_cv_search_crypt" >&6; } ac_res=$ac_cv_search_crypt if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - LIBCRYPT="-l$ac_lib" + lib_crypt="$ac_lib" else - LIBCRYPT="" + lib_crypt="" fi for ac_func in crypt_r crypt_gensalt_r @@ -13475,6 +13475,13 @@ done LIBS=$BACKUP_LIBS +if test -z "$lib_crypt" ; then + LIBCRYPT="" +else + LIBCRYPT="-l$lib_crypt" +fi + + if test "$LIBCRYPT" = "-lxcrypt" -a "$ac_cv_header_xcrypt_h" = "yes" ; then $as_echo "#define HAVE_LIBXCRYPT 1" >>confdefs.h |