summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-07-05 14:52:07 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-07-05 14:52:07 (GMT)
commiteca681b804474b740e51f8be8a67a7b2ceea6e13 (patch)
tree27545f25395489275dd6d688770dcb565f4c0835 /unix/tcl.m4
parent843b98eacf8b17269d37cbc8d6e446dad9fe6f73 (diff)
downloadtcl-eca681b804474b740e51f8be8a67a7b2ceea6e13.zip
tcl-eca681b804474b740e51f8be8a67a7b2ceea6e13.tar.gz
tcl-eca681b804474b740e51f8be8a67a7b2ceea6e13.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)
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index bac5ebe..cdc5f99 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -2386,9 +2386,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
@@ -2396,11 +2396,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"