diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-07-05 14:56:24 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-07-05 14:56:24 (GMT) |
| commit | 8b4261d7656d4d7be424e8e30e630ac57e225a0a (patch) | |
| tree | 8d18d9e6248970b17ff0df41e7f97092a06b1954 | |
| parent | 938212e3640743560caad6fed026e084472bad70 (diff) | |
| parent | f66b5435cd31555ef6c0ff84cd7d94f2fb038d51 (diff) | |
| download | tcl-8b4261d7656d4d7be424e8e30e630ac57e225a0a.zip tcl-8b4261d7656d4d7be424e8e30e630ac57e225a0a.tar.gz tcl-8b4261d7656d4d7be424e8e30e630ac57e225a0a.tar.bz2 | |
Use X11/Xlib.h for checking where X11 can be found in stead of X11/XIntrinsic.h. Suggested by Pietro Cerutti.
(backported from tclconfig)
| -rw-r--r-- | unix/tcl.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index b69d5a6..4656e61 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -2255,9 +2255,9 @@ AC_DEFUN([SC_PATH_X], [ not_really_there="" if test "$no_x" = ""; then if test "$x_includes" = ""; then - AC_TRY_CPP([#include <X11/XIntrinsic.h>], , not_really_there="yes") + AC_TRY_CPP([#include <X11/Xlib.h>], , not_really_there="yes") else - if test ! -r $x_includes/X11/Intrinsic.h; then + if test ! -r $x_includes/X11/Xlib.h; then not_really_there="yes" fi fi @@ -2265,11 +2265,11 @@ AC_DEFUN([SC_PATH_X], [ if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then AC_MSG_CHECKING([for X11 header files]) found_xincludes="no" - AC_TRY_CPP([#include <X11/Intrinsic.h>], found_xincludes="yes", found_xincludes="no") + AC_TRY_CPP([#include <X11/Xlib.h>], found_xincludes="yes", found_xincludes="no") if test "$found_xincludes" = "no"; then dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/X11R6/include /usr/X11R5/include /usr/include/X11R5 /usr/include/X11R4 /usr/openwin/include /usr/X11/include /usr/sww/include" for i in $dirs ; do - if test -r $i/X11/Intrinsic.h; then + if test -r $i/X11/Xlib.h; then AC_MSG_RESULT([$i]) XINCLUDES=" -I$i" found_xincludes="yes" |
