]> Dogcows Code - chaz/tar/commitdiff
Fixed check for setsockopt
authorSergey Poznyakoff <gray@gnu.org.ua>
Fri, 14 Nov 2003 13:33:11 +0000 (13:33 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Fri, 14 Nov 2003 13:33:11 +0000 (13:33 +0000)
configure.ac

index cba275441f581776b4a845be0983ba1f133e8bf8..3b090d0faec4bdc50b67ce1018065bbc8ed8a29a 100644 (file)
@@ -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
 
This page took 0.022807 seconds and 4 git commands to generate.