[PATCH:luit] Warn if configure does not find Xlib, but don't link against it.
Alan Coopersmith
alan.coopersmith at oracle.com
Thu Jul 1 00:26:42 PDT 2010
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 at oracle.com>
---
configure.ac | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 1458971..4004c8b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,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)
--
1.5.6.5
More information about the xorg-devel
mailing list