On Wed, 17 Jun 2015 22:57:00 -0400, Daniel Macks <dma...@netspace.org> wrote:
Apple has migrated its X11 suite (xquartz) to /opt/X11 for the past few OS X major releases, but they have retained some symlinks from /usr/X11 and/or /usr/X11R6 so that we can still access headers and libs via -I/usr/X11/include and similar. A few years ago, they temporarily dropped a symlink, and many things became uncompileable unless one knew to pass --x-includes= and --x-libraries paths. Rumor is they might be doing it again in the next release. If I patch libs.m4 to place /opt/X11/include in the ac_x_header_dirs default search paths list, X11 is detected correctly. Fink has deployed a patch that works as I described for the past several months, worked fine on both old and new OS X machines. Max Horn wrote a clean patch against autoconf git that implements it. Please let us know if you need additional info or explanations...obviously OS X is not a platform everyone has access to test.
dan

--
Daniel Macks
dma...@netspace.org

From 9e305c989ee7add3cdaec0fb7bd1010c8900bbe7 Mon Sep 17 00:00:00 2001
From: Max Horn <m...@quendi.de>
Date: Thu, 6 Aug 2015 09:33:36 +0200
Subject: [PATCH] Properly detect X11 on recent Mac OS X versions.

* lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Add /opt/X11.

Signed-off-by: Max Horn <m...@quendi.de>
---
 lib/autoconf/libs.m4 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/autoconf/libs.m4 b/lib/autoconf/libs.m4
index eab753c..f4fef1e 100644
--- a/lib/autoconf/libs.m4
+++ b/lib/autoconf/libs.m4
@@ -250,7 +250,9 @@ ac_x_header_dirs='
 /usr/lpp/Xamples/include
 
 /usr/openwin/include
-/usr/openwin/share/include'
+/usr/openwin/share/include
+
+/opt/X11/include'
 
 if test "$ac_x_includes" = no; then
   # Guess where to find include files, by looking for Xlib.h.
-- 
2.4.7

Reply via email to