From: Ken Raeburn Date: Mon, 8 Mar 2004 04:06:32 +0000 (+0000) Subject: * aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Look for tclConfig.sh in X-Git-Tag: krb5-1.4-beta1~556 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=06bcfd599575cef3baa51db7c43df092f9593ef2;p=krb5.git * 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. This allows the configure script to find /System/Library/Tcl/8.3/tclConfig.sh on Jaguar. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16156 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/ChangeLog b/src/ChangeLog index 2ab311c7e..add07d89f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2004-03-07 Ken Raeburn + + * 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 * configure.in: Integrate config commands from kdc, krb524, and diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 030925f95..128457ab7 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