- Fixed broken winedbg compilation on BSD.
- Fixed some corner case handling in ELF list walking (reported by
  Robert Shearman).

diff --git a/configure b/configure
index 44b7427..233aa4e 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.58 for Wine 20040121.
+# Generated by GNU Autoconf 2.59 for Wine 20040121.
 #
 # Report bugs to <wine-devel@winehq.org>.
 #
@@ -852,37 +852,26 @@
 Optional Features:
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
-  --disable-win16
-                          do not include Win16 support
-  --disable-debug
-                          compile out all debugging messages
-  --disable-trace
-                          compile out TRACE messages
+  --disable-win16         do not include Win16 support
+  --disable-debug         compile out all debugging messages
+  --disable-trace         compile out TRACE messages
 
 Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
-  --without-opengl
-                          do not use OpenGL
-  --without-curses
-                          do not use curses
-  --with-wine-tools=<dir>
-                          use Wine tools from directory <dir>
+  --without-opengl        do not use OpenGL
+  --without-curses        do not use curses
+  --with-wine-tools=<dir> use Wine tools from directory <dir>
   --with-x                use the X Window System
 
 Some influential environment variables:
-  CC
-              C compiler command
-  CFLAGS
-              C compiler flags
-  LDFLAGS
-              linker flags, e.g. -L<lib dir> if you have
-              libraries in a nonstandard directory <lib dir>
-  CPPFLAGS
-              C/C++ preprocessor flags, e.g. -I<include dir> if you
-              have headers in a nonstandard directory <include dir>
-  CPP
-              C preprocessor
+  CC          C compiler command
+  CFLAGS      C compiler flags
+  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
+              nonstandard directory <lib dir>
+  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
+              headers in a nonstandard directory <include dir>
+  CPP         C preprocessor
 
 Use these variables to override the choices made by `configure' or to help
 it to find libraries and programs with nonstandard names/locations.
@@ -984,7 +973,7 @@
 if $ac_init_version; then
   cat <<\_ACEOF
 Wine configure 20040121
-generated by GNU Autoconf 2.58
+generated by GNU Autoconf 2.59
 
 Copyright (C) 2003 Free Software Foundation, Inc.
 This configure script is free software; the Free Software Foundation
@@ -998,7 +987,7 @@
 running configure, to aid debugging if configure makes a mistake.
 
 It was created by Wine $as_me 20040121, which was
-generated by GNU Autoconf 2.58.  Invocation command line was
+generated by GNU Autoconf 2.59.  Invocation command line was
 
   $ $0 $@
 
@@ -15761,6 +15750,8 @@
 
 
 
+
+
 for ac_header in \
 	arpa/inet.h \
 	arpa/nameser.h \
@@ -15804,7 +15795,9 @@
 	stdint.h \
 	strings.h \
 	sys/cdio.h \
+	sys/elf32.h \
 	sys/errno.h \
+	sys/exec_elf.h \
 	sys/file.h \
 	sys/filio.h \
 	sys/inttypes.h \
@@ -19436,7 +19429,7 @@
 cat >&5 <<_CSEOF
 
 This file was extended by Wine $as_me 20040121, which was
-generated by GNU Autoconf 2.58.  Invocation command line was
+generated by GNU Autoconf 2.59.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
   CONFIG_HEADERS  = $CONFIG_HEADERS
@@ -19499,7 +19492,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
 Wine config.status 20040121
-configured by $0, generated by GNU Autoconf 2.58,
+configured by $0, generated by GNU Autoconf 2.59,
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
 Copyright (C) 2003 Free Software Foundation, Inc.