--- GraphicsMagick-1.1.7/configure.ac.orig 2006-03-08 19:14:08.830531000 +0100 +++ GraphicsMagick-1.1.7/configure.ac 2006-03-08 20:08:46.747388750 +0100 @@ -1344,7 +1344,7 @@ if test "$no_x" != 'yes' then LDFLAGS="$LDFLAGS $X_LIBS" - LIB_X11="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" + LIB_X11="-lX11 $X_EXTRA_LIBS" LIBS="$LIB_X11 $LIBS" CPPFLAGS="$CPPFLAGS $X_CFLAGS"