diff -ur nix-build-25grs4cgpmb3zxly21cy53lrn5dj149c-w3m-0.5.2.drv-0/w3m-0.5.2/configure w3m-0.5.2/configure
--- nix-build-25grs4cgpmb3zxly21cy53lrn5dj149c-w3m-0.5.2.drv-0/w3m-0.5.2/configure	2007-05-31 22:17:05.000000000 +1000
+++ w3m-0.5.2/configure	2008-10-30 12:39:54.000000000 +1100
@@ -6227,14 +6227,6 @@
  { echo "$as_me:$LINENO: checking for -l$lib" >&5
 echo $ECHO_N "checking for -l$lib... $ECHO_C" >&6; }
  extlib="not found"
- for dir in /lib /usr/lib /usr/local/lib /usr/ucblib /usr/ccslib /usr/ccs/lib
- do
-   if test -f $dir/lib$lib.a -o -f $dir/lib$lib.so ; then
-    LIBS="$LIBS -l$lib"
-    extlib="found at $dir"
-    break
-   fi
- done
  { echo "$as_me:$LINENO: result: $extlib" >&5
 echo "${ECHO_T}$extlib" >&6; }
 done
@@ -6345,82 +6337,6 @@
  if test x"$enable_ipv6" = xno; then
     { echo "$as_me:$LINENO: checking for libinet6" >&5
 echo $ECHO_N "checking for libinet6... $ECHO_C" >&6; }
-    for dir in /usr/local/v6/lib /usr/local/lib /usr/lib
-    do
-	if test -f $dir/libinet6.a; then
-	  if test $dir != "/usr/lib"; then
-		W3M_LIBS="$W3M_LIBS -L$dir"
-	  fi
-	  { echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
-echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6; }
-if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-linet6  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char getaddrinfo ();
-int
-main ()
-{
-return getaddrinfo ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-	 test -z "$ac_c_werror_flag" ||
-	 test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  ac_cv_lib_inet6_getaddrinfo=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-	ac_cv_lib_inet6_getaddrinfo=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
-echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6; }
-if test $ac_cv_lib_inet6_getaddrinfo = yes; then
-  enable_ipv6="yes"
-	         use_libinet6="found"; W3M_LIBS="$W3M_LIBS -linet6"; break
-else
-  use_libinet6="not found"
-fi
-
-	fi
-    done
     { echo "$as_me:$LINENO: result: $use_libinet6" >&5
 echo "${ECHO_T}$use_libinet6" >&6; }
  fi
