Quoting Andre Majorel ([EMAIL PROTECTED]): > Tuesday is today. config.log for 1.6 and 1.7-pre1 attached. 1.7 > is identical to 1.7-pre1. It seems that -lsocket is not found as it requires -lnsl for linking. -lnsl is not detected as it does not contain `gethostbyname()' function. Would the attacheed patch to configure.in solve the problem? Please not that the patch tries to correct somee other problems with configure.in and these corrections may make it crash on your system. The important change for you would be the AC_CHECK_FUNCS(gethostname, [] ...) part. -- jan --------------------+------------------------------------------------------ Jan Prikryl | vr|vis center for virtual reality and visualisation <[EMAIL PROTECTED]> | http://www.vrvis.at --------------------+------------------------------------------------------
Index: configure.in =================================================================== RCS file: /pack/anoncvs/wget/configure.in,v retrieving revision 1.17 diff -u -r1.17 configure.in --- configure.in 2001/05/28 22:02:47 1.17 +++ configure.in 2001/06/06 05:26:20 @@ -174,8 +174,12 @@ AC_CHECK_FUNCS(strdup strstr strcasecmp strncasecmp) AC_CHECK_FUNCS(gettimeofday mktime strptime) AC_CHECK_FUNCS(strerror snprintf vsnprintf select signal symlink access isatty) -AC_CHECK_FUNCS(uname gethostname) +AC_CHECK_FUNCS(uname) +AC_CHECK_FUNCS(gethostname, [], [ + AC_CHECK_LIB(nsl, gethostname) +]) + AC_CHECK_FUNCS(gethostbyname, [], [ AC_CHECK_LIB(nsl, gethostbyname) ]) @@ -205,14 +209,18 @@ AC_MSG_CHECKING("for runtime libraries flag") case "$host_os" in sol2 ) dash_r="-R" ;; - decosf* | linux* | irix*) dash_r="-rpath " ;; + decosf* | irix*) dash_r="-rpath " ;; + linux*) dash_r="-Wl,rpath " ;; *) dash_r="" for try_dash_r in "-R" "-R " "-rpath "; do OLD_LDFLAGS=$LDFLAGS LDFLAGS="${try_dash_r}/no/such/file-or-directory $LDFLAGS" + dnl gcc seems to only produce a warning about nonexistent option + dnl `-R/no/such/file-or-directory' so the test comes thru + dnl (tested with "gcc version 3.0 20010308 (prerelease)") AC_TRY_LINK(, , dash_r="$try_dash_r") - LDFLAGS=$ODL_LDFLAGS + LDFLAGS=$OLD_LDFLAGS test -n "$dash_r" && break done ;; esac @@ -235,9 +243,6 @@ ssl_all_roots=$with_ssl fi - OLD_LIBS=$LIBS - OLD_LDFLAGS=$LDFLAGS - dnl Unfortunately, as of this writing (OpenSSL 0.9.6), the libcrypto dnl shared library doesn't record its dependency on libdl, so we dnl need to check for it ourselves so we won't fail to link due to a @@ -245,6 +250,9 @@ dnl shl_load(). AC_CHECK_LIB(dl,dlopen) AC_CHECK_LIB(dl,shl_load) + + OLD_LIBS=$LIBS + OLD_LDFLAGS=$LDFLAGS ssl_linked=no