Subject: fix portability issues that led to Hurd build failures

* src/build-system/configure(.ac):
  - Reflect the Hurd's support for -Wl,rpath,... .
* src/connect/ncbi_socket_cxx.cpp, src/connect/ext/ncbi_localnet.c:
  cope with missing PATH_MAX everywhere, not just under Windows.

Author: Aaron M. Ucko <ucko@debian.org>
Last-Update: 2011-06-10
--- a/c++/src/build-system/configure
+++ b/c++/src/build-system/configure
@@ -9914,7 +9914,7 @@
     solaris* )
       CONF_f_runpath="-R"
       ;;
-    linux*:[GI]CC | *bsd*:GCC | cygwin*:GCC | osf*:GCC )
+    linux*:[GI]CC | *bsd*:GCC | cygwin*:GCC | osf*:GCC | gnu*:GCC)
       CONF_f_runpath="-Wl,-rpath,"
       ;;
     irix*:* | linux*:KCC | *:Compaq )
--- a/c++/src/build-system/configure.ac
+++ b/c++/src/build-system/configure.ac
@@ -2136,7 +2136,7 @@
     solaris* )
       CONF_f_runpath="-R"
       ;;
-    linux*:[[GI]]CC | *bsd*:GCC | cygwin*:GCC | osf*:GCC )
+    linux*:[[GI]]CC | *bsd*:GCC | cygwin*:GCC | osf*:GCC | gnu*:GCC )
       CONF_f_runpath="-Wl,-rpath,"
       ;;
     irix*:* | linux*:KCC | *:Compaq )
--- a/c++/src/connect/ncbi_socket_cxx.cpp
+++ b/c++/src/connect/ncbi_socket_cxx.cpp
@@ -35,7 +35,7 @@
 #include "ncbi_assert.h"                // no _ASSERT()s, keep clean from xncbi
 #include <connect/ncbi_socket_unix.hpp>
 #include <limits.h>                     // for PATH_MAX
-#if defined(NCBI_OS_MSWIN)  &&  !defined(PATH_MAX)
+#ifndef PATH_MAX
 #  define PATH_MAX 512                  // will actually use less than 32 chars
 #endif // NCBI_OS_MSWIN && !PATH_MAX
 
