summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2021-11-30 17:05:46 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2021-12-01 07:31:11 -0800
commit25f94d50523f8967f6f22a631d462355dbd680a3 (patch)
tree4a6be9b7dd2115729df3bfc3a8f982443e9086a0
parentf17b241220fef63a32d1b7329edfbcf6f435fabe (diff)
downloadxorg-app-xauth-25f94d50523f8967f6f22a631d462355dbd680a3.tar.gz
configure.ac: fail build if xtrans is not found
Copied from libX11/configure.ac Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e805c93..ff68a86 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,15 @@ AC_CHECK_FUNCS([reallocarray strlcpy])
# Checks for pkg-config packages
PKG_CHECK_MODULES(XAUTH, x11 xau xext xmuu xproto >= 7.0.17)
+# Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
+# was not expanded, since xauth with no address support is rather broken.
+#
+# If you're seeing an error here, be sure you installed the lib/xtrans module
+# first and if it's not in the default location, that you set the ACLOCAL
+# environment variable to find it, such as:
+# ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
+m4_pattern_forbid([^XTRANS_CONNECTION_FLAGS$])
+
# Transport selection macro from xtrans.m4
# Needed to set *CONN defines for gethost.c & parsedpy.c
XTRANS_CONNECTION_FLAGS