From: Sergey Poznyakoff Date: Fri, 14 Nov 2003 13:33:11 +0000 (+0000) Subject: Fixed check for setsockopt X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=69bbe71607e7ae5191c8467f99c7167220dbdd27;p=chaz%2Ftar Fixed check for setsockopt --- diff --git a/configure.ac b/configure.ac index cba2754..3b090d0 100644 --- a/configure.ac +++ b/configure.ac @@ -171,9 +171,10 @@ tar_save_LIBS=$LIBS AC_SEARCH_LIBS(setsockopt, [socket], , [AC_SEARCH_LIBS(setsockopt, [socket], , , [-lnsl])]) AC_SEARCH_LIBS(setsockopt, [nsl]) - if test " $LIBS" != " $tar_save_LIBS"; then - LIB_SETSOCKOPT=$ac_cv_search_setsockopt - fi + + case "$ac_cv_search_setsockopt" in + -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt + esac AC_SUBST(LIB_SETSOCKOPT) LIBS=$tar_save_LIBS