Anonymous
public text v1 · immutable#ifdef HAVE_X11_XLIB_H
# include <X11/Xlib.h>
#endif
main() {
XPoint pt;
pt.x = pt.y = 0;
return pt.x;
}
],[x11_works=yes])
AC_MSG_RESULT($x11_works)
if test "x$x11_works" = "xyes" ; then
AC_MSG_CHECKING(for X11 link functionality)
AC_TRY_RUN([
#ifdef HAVE_X11_XLIB_H
# include <X11/Xlib.h>
#endif
main() {
XModifierKeymap *xmkm;
xmkm=XNewModifiermap(1);
return xmkm==NULL;
}
],,x11_works=no)
AC_MSG_RESULT($x11_works)