diff -dPNur d4x-2.5.7.1-orig/configure d4x-2.5.7.1/configure --- d4x-2.5.7.1-orig/configure 2017-01-29 09:42:34.000000000 +0100 +++ d4x-2.5.7.1/configure 2017-01-29 09:46:56.947138276 +0100 @@ -18405,7 +18405,7 @@ # Prepare all requiered flags CXXFLAGS="$CXXFLAGS $OS_CXXFLAGS" CPPFLAGS="$CPPFLAGS $ESD_CFLAGS $ESD_CFLAGS $GLIB_CFLAGS $GTK_CFLAGS $OS_INCLUDES $AO_CFLAGS $SSL_CFLAGS" -LIBS="$LIBS $ESD_LIBS $GLIB_LIBS $GTK_LIBS $LIBRX $AO_LIBS $SSL_LIBS" +LIBS="$LIBS $ESD_LIBS $GLIB_LIBS $GTK_LIBS $LIBRX $AO_LIBS $SSL_LIBS -lX11" LDFLAGS="$LDFLAGS $SSL_LDFLAGS" # Remove duplicates from options diff -dPNur d4x-2.5.7.1-orig/configure.ac d4x-2.5.7.1/configure.ac --- d4x-2.5.7.1-orig/configure.ac 2017-01-29 09:47:14.316452900 +0100 +++ d4x-2.5.7.1/configure.ac 2017-01-29 09:42:34.801390253 +0100 @@ -303,7 +303,7 @@ # Prepare all requiered flags CXXFLAGS="$CXXFLAGS $OS_CXXFLAGS" CPPFLAGS="$CPPFLAGS $ESD_CFLAGS $ESD_CFLAGS $GLIB_CFLAGS $GTK_CFLAGS $OS_INCLUDES $AO_CFLAGS $SSL_CFLAGS" -LIBS="$LIBS $ESD_LIBS $GLIB_LIBS $GTK_LIBS $LIBRX $AO_LIBS $SSL_LIBS" +LIBS="$LIBS $ESD_LIBS $GLIB_LIBS $GTK_LIBS $LIBRX $AO_LIBS $SSL_LIBS -lX11" LDFLAGS="$LDFLAGS $SSL_LDFLAGS" # Remove duplicates from options