1.4.1.
[ir-tcl-moved-to-github.git] / configure.in
index 3b03503..795af52 100644 (file)
@@ -1,7 +1,7 @@
 dnl IR toolkit for tcl/tk
 dnl (c) Index Data 1996-2001
 dnl See the file LICENSE for details.
-dnl $Id: configure.in,v 1.33 2001-12-03 19:23:07 adam Exp $
+dnl $Id: configure.in,v 1.36 2002-09-13 20:23:56 adam Exp $
 AC_INIT(ir-tcl.h)
 dnl ------ Substitutions
 AC_SUBST(CC)
@@ -20,7 +20,7 @@ AC_SUBST(RANLIB)
 dnl
 dnl ------ Build root
 AC_SUBST(build_root)
-AC_ARG_WITH(build-root, [  --with-buildroot        RPM Build root],[build_root=$withval],[build_root=""])
+AC_ARG_WITH(build-root, [  --with-build-root       RPM Build root],[build_root=$withval],[build_root=""])
 dnl
 dnl ------ Preliminary settings
 AC_PROG_INSTALL
@@ -55,6 +55,15 @@ if test "x$tclconfig" = xNONE; then
         tclconfig=${prefix}/lib
         IRCLIENT_SHELL=${prefix}/bin/wish
         prefix=${saveprefix}
+        if test ! -r ${tclconfig}/tclConfig.sh; then
+                # Not found, try search for Tcl on Debian systems.
+                for d in /usr/lib/tcl*; do
+                        if test -f $d/tclConfig.sh; then
+                                tclconfig=$d
+                               IRCLIENT_SHELL=/usr/bin/wish
+                        fi
+                done
+        fi
 else
         IRCLIENT_SHELL=/usr/bin/wish
 fi