Attachment "includedir.patch" to
ticket [421835ffff]
added by
mdejong
2001-09-26 07:46:20.
Index: unix/configure.in
===================================================================
RCS file: /cvsroot/tcl/tcl/unix/configure.in,v
retrieving revision 1.72
diff -u -r1.72 configure.in
--- unix/configure.in 2001/08/12 21:17:43 1.72
+++ unix/configure.in 2001/09/26 00:44:40
@@ -482,6 +482,9 @@
TCL_BUILD_STUB_LIB_PATH="`pwd`/${TCL_STUB_LIB_FILE}"
TCL_STUB_LIB_PATH="${exec_prefix}/lib/${TCL_STUB_LIB_FILE}"
+# Install time header dir can be set via --inlcudedir
+eval "TCL_INCLUDE_SPEC=\"-I${includedir}\""
+
#------------------------------------------------------------------------
# tclConfig.sh refers to this by a different name
#------------------------------------------------------------------------
@@ -495,6 +498,7 @@
AC_SUBST(TCL_BUILD_STUB_LIB_PATH)
AC_SUBST(TCL_STUB_LIB_PATH)
AC_SUBST(MAKE_STUB_LIB)
+AC_SUBST(TCL_INCLUDE_SPEC)
AC_SUBST(BUILD_DLTEST)
AC_SUBST(CFLAGS)
Index: unix/tclConfig.sh.in
===================================================================
RCS file: /cvsroot/tcl/tcl/unix/tclConfig.sh.in,v
retrieving revision 1.15
diff -u -r1.15 tclConfig.sh.in
--- unix/tclConfig.sh.in 2001/04/25 22:01:24 1.15
+++ unix/tclConfig.sh.in 2001/09/26 00:44:40
@@ -116,6 +116,10 @@
# installed directory.
TCL_LIB_SPEC='@TCL_LIB_SPEC@'
+# String to pass to the compiler so that an extension can
+# find installed Tcl headers.
+TCL_INCLUDE_SPEC='@TCL_INCLUDE_SPEC@'
+
# Indicates whether a version numbers should be used in -l switches
# ("ok" means it's safe to use switches like -ltcl7.5; "nodots" means
# use switches like -ltcl75). SunOS and FreeBSD require "nodots", for