if test "x$x11_works" = "xyes" ; then AC_MSG_CHECKING(for X11 link functionality) AC_TRY_RUN([ #ifdef HAVE_X11_XLIB_H # include #endif main() { XModifierKeymap *xmkm; xmkm=XNewModifiermap(1); return(xmkm); } ],[x11_works=yes]) AC_MSG_RESULT($x11_works) fi LDFLAGS="$PRELDFLAGS" dnl figure out whether we need to build against X11