This is due to the build system not understanding that the $x_libs variable (by AC_XTRA) can be empty, when X11 is installed in /usr/lib directly (like it is on Gentoo).
Created attachment 172224 [details] Build log
Builds fine for me with stable x86. Figure out why your libtool is broken.