- fi
-fi
-if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
- echo checking for X11 header files
- XINCLUDES="# no special path needed"
- AC_TRY_CPP([#include <X11/Intrinsic.h>], , XINCLUDES="nope")
- if test "$XINCLUDES" = nope; then
- dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/include/X11R4 /usr/X11R5/include /usr/include/X11R5 /usr/openwin/include /usr/X11/include /usr/sww/include"
- for i in $dirs ; do
- if test -r $i/X11/Intrinsic.h; then
- XINCLUDES=" -I$i"
- fi
- done
- fi
-else
- if test "$x_includes" != ""; then
- XINCLUDES=-I$x_includes
- else
- XINCLUDES="# no special path needed"
- fi
-fi
-if test "$XINCLUDES" = nope; then
- echo "Warning: couldn't find any X11 include files."
- XINCLUDES="# no include files found"
-fi
-AC_SUBST(XINCLUDES)
-if test "$no_x" = yes; then
- XLIBSW=nope
- if test "$XLIBSW" = nope; then
- dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/lib/X11R4 /usr/X11R5/lib /usr/lib/X11R5 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
- for i in $dirs ; do
- if test -r $i/libX11.a; then
- XLIBSW="-L$i -lX11"
- fi
- done
- fi
+ if test "x$prefix" = xNONE; then
+ AC_PREFIX_PROGRAM(tclsh8.1)
+ fi
+ if test "x$prefix" = xNONE; then
+ AC_PREFIX_PROGRAM(tclsh8.0)
+ fi
+ if test "x$prefix" = xNONE; then
+ AC_PREFIX_PROGRAM(tclsh7.6)
+ fi
+ if test "x$prefix" = xNONE; then
+ 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