dnl IR toolkit for tcl/tk
-dnl (c) Index Data 1996-2001
+dnl (c) Index Data 1996-2004
dnl See the file LICENSE for details.
-dnl $Id: configure.in,v 1.32 2001-12-03 18:52:06 adam Exp $
+dnl $Id: configure.in,v 1.37 2004-05-04 19:42:56 adam Exp $
AC_INIT(ir-tcl.h)
dnl ------ Substitutions
AC_SUBST(CC)
AC_SUBST(IRCLIENT_SHELL)
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=""])
-dnl
dnl ------ Preliminary settings
AC_PROG_INSTALL
dnl
prefix=/usr/local
fi
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
AC_MSG_CHECKING(for Tcl)
if test -f ${tclconfig}/tclConfig.sh; then