Index: src/gnome-utils/Makefile.am
===================================================================
--- src/gnome-utils/Makefile.am	(Revision 17611)
+++ src/gnome-utils/Makefile.am	(Arbeitskopie)
@@ -199,6 +199,10 @@
   ${REGEX_LIBS} \
   ${LIBXML2_LIBS}
 
+if HAVE_X11_XLIB_H
+  libgncmod_gnome_utils_la_LIBADD += -lX11
+endif
+
 if BUILDING_FROM_SVN
 swig-gnome-utils.c: gnome-utils.i gnc-html.h \
                     ${top_srcdir}/src/base-typemaps.i
Index: configure.in
===================================================================
--- configure.in	(Revision 17611)
+++ configure.in	(Arbeitskopie)
@@ -216,6 +216,7 @@
 
 # These are unavailable on windows/mingw32
 AC_CHECK_HEADERS(X11/Xlib.h glob.h)
+AM_CONDITIONAL(HAVE_X11_XLIB_H, test "x$ac_cv_header_X11_Xlib_h" = "xyes")
 AC_CHECK_FUNCS(chown gethostname getppid getuid gettimeofday gmtime_r)
 AC_CHECK_FUNCS(gethostid link)
 
