From 69bbe71607e7ae5191c8467f99c7167220dbdd27 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 14 Nov 2003 13:33:11 +0000 Subject: [PATCH] Fixed check for setsockopt --- configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.45.2