From: Ken Raeburn Date: Wed, 19 Jul 2006 16:14:57 +0000 (+0000) Subject: need to look harder for tclConfig.sh X-Git-Tag: krb5-1.6-alpha1~199 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c90f8a668ee109367c2558b4f1bba7e2dd90fb0a;p=krb5.git need to look harder for tclConfig.sh Our current scheme doesn't find tclConfig.sh as installed by NetBSD's pkg system, even if it finds tclsh and gets the library pathname from it. The problem is that tclConfig.sh is one directory up. * aclocal.m4 (AC_KRB5_TCL_FIND_CONFIG): Check $tcl_dir/.. for tclConfig.sh. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18342 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 62081052b..79ea8de46 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -870,10 +870,18 @@ dnl AC_DEFUN(AC_KRB5_TCL_FIND_CONFIG,[ AC_REQUIRE([KRB5_LIB_AUX])dnl AC_MSG_CHECKING(for tclConfig.sh) +dnl On Debian, we might be given --with-tcl=/usr, or tclsh might +dnl point us to /usr/lib/tcl8.4; either way, we need to find +dnl /usr/lib/tcl8.4/tclConfig.sh. +dnl On NetBSD, we might be given --with-tcl=/usr/pkg, or tclsh +dnl might point us to /usr/pkg/lib/tcl8.4; we need to find +dnl /usr/pkg/lib/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" +elif test -r "$tcl_dir/../tclConfig.sh" ; then + tcl_conf="$tcl_dir/../tclConfig.sh" else tcl_conf= lib="$tcl_dir/lib"