summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2010-07-01 00:24:55 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2010-07-01 10:55:09 -0700
commit6b7f25cdbd0f80a0f88d72c66aa51d75cd38b906 (patch)
tree709b384f0dc55c2a52f8c41c502419b594c21f17
parent466e7769a450550d68b3aea5f4f4edbdc31f8bba (diff)
Warn if configure does not find Xlib, but don't link against it.
luit doesn't #include any Xlib headers or call any Xlib functions, just attempts to read Xlib's locale.aliases files if it can find it. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e8d960a..8063c8c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,7 +51,11 @@ AC_ARG_WITH(localealiasfile,
AC_SUBST([LOCALEALIASFILE])
# Checks for pkg-config packages
-PKG_CHECK_MODULES(LUIT, x11 fontenc)
+PKG_CHECK_MODULES(LUIT, fontenc)
+
+# We don't link against libX11, just use its locale.alias data file
+PKG_CHECK_EXISTS(x11, [],
+ [AC_MSG_WARN([libX11 not found. luit may not be able to find locale aliases without it.])])
case $host_os in
# darwin has poll() but can't be used to poll character devices (atleast through SnowLeopard)