Index: imlib2/configure.in =================================================================== --- imlib2.orig/configure.in 2008-04-21 14:28:58.000000000 +0800 +++ imlib2/configure.in 2008-04-21 14:30:07.000000000 +0800 @@ -191,9 +191,7 @@ if test "x$have_x" = "xyes"; then AC_PATH_XTRA - x_dir=${x_dir:-/usr/X11R6} - x_cflags=${x_cflags:--I${x_includes:-$x_dir/include}} - x_libs="${x_libs:--L${x_libraries:-$x_dir/lib}} -lX11 -lXext" + x_libs="-lX11 -lXext" AC_DEFINE(BUILD_X11, 1, [enabling X11 support]) else x_cflags=""