--- configure.old	2009-12-03 16:06:22.000000000 +0100
+++ configure	2009-12-03 16:07:35.000000000 +0100
@@ -7443,9 +7443,9 @@
 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
 fi
 
-if test "$have_x"; then
+if test "$have_x" == yes; then
 
-cat >>confdefs.h <<\_ACEOF
+cat >>confdefs.h <<_ACEOF
 #define HAVE_X_WINDOWS 1
 _ACEOF
 
--- configure.in.old	2009-12-03 16:06:32.000000000 +0100
+++ configure.in	2009-12-03 16:07:37.000000000 +0100
@@ -255,7 +255,7 @@
 AC_SUBST(DEPEND_EXTRA_SED_PATTERN)
 
 AC_PATH_X
-if test "$have_x"; then
+if test "$have_x" == yes; then
   AC_DEFINE(HAVE_X_WINDOWS, 1, [Define if you have X11])
 
   if test "$x_includes" != "NONE"; then

