Issue an error if XTRANS macros were not found when generating configure from configure.ac to flag errors early, instead of when people wonder why libX11 can't talk to an Xserver because it has no transports defined

This commit is contained in:
Alan Coopersmith 2005-09-02 23:00:30 +00:00
parent 3eb9f2d693
commit 3e920a65a7

View file

@ -36,6 +36,15 @@ AC_SUBST(X11_LIBS)
AC_SUBST(XDMCP_CFLAGS)
AC_SUBST(XDMCP_LIBS)
dnl Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
dnl was not expanded, since libX11 with no transport types is rather useless.
dnl
dnl If you're seeing an error here, be sure you installed the lib/xtrans module
dnl first and if it's not in the default location, that you set the ACLOCAL
dnl environment variable to find it, such as:
dnl ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
m4_pattern_forbid(XTRANS_CONNECTION_FLAGS)
# Transport selection macro from xtrans.m4
XTRANS_CONNECTION_FLAGS