summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog8
-rw-r--r--src/aclocal.m414
2 files changed, 22 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2ab311c7ee..add07d89fb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
+2004-03-07 Ken Raeburn <raeburn@mit.edu>
+
+ * aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Look for tclConfig.sh in
+ the specified directory if it's not in a "lib" subdirectory.
+ (AC_KRB5_TCL): If no pathname is supplied and tclConfig.sh isn't
+ found in /usr/lib, try running a script under tclsh to see if it
+ can supply the pathname for tclConfig.sh.
+
2004-03-05 Ken Raeburn <raeburn@mit.edu>
* configure.in: Integrate config commands from kdc, krb524, and
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 030925f950..128457ab73 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -757,6 +757,8 @@ AC_REQUIRE([KRB5_LIB_AUX])dnl
AC_MSG_CHECKING(for tclConfig.sh)
if test -r "$tcl_dir/lib/tclConfig.sh" ; then
tcl_conf="$tcl_dir/lib/tclConfig.sh"
+elif test -r "$tcl_dir/tclConfig.sh" ; then
+ tcl_conf="$tcl_dir/tclConfig.sh"
else
tcl_conf=
lib="$tcl_dir/lib"
@@ -930,6 +932,18 @@ if test "$with_tcl" = no ; then
true
elif test "$with_tcl" = yes -o "$with_tcl" = try ; then
tcl_dir=/usr
+ if test ! -r /usr/lib/tclConfig.sh; then
+ cat >> conftest <<\EOF
+puts "tcl_dir=$tcl_library"
+EOF
+ if tclsh conftest >conftest.out 2>/dev/null; then
+ if grep tcl_dir= conftest.out >/dev/null 2>&1; then
+ t=`sed s/tcl_dir=// conftest.out`
+ tcl_dir=$t
+ fi
+ fi # tclsh ran script okay
+ rm -f conftest conftest.out
+ fi # no /usr/lib/tclConfig.sh
else
tcl_dir=$with_tcl
fi