- TCLLIB="${TCLLIB} ${LIBS} -lm"
-fi
-dnl ------ look for Tk
-if test -r ${tryprefix}/lib/tkConfig.sh; then
- AC_MSG_CHECKING(for Tk)
- source ${tryprefix}/lib/tkConfig.sh
- AC_MSG_RESULT($TK_VERSION)
- TKINC=${TK_XINCLUDES}
- TKLIB="${TK_PREFIX}/lib/${TK_LIB_FILE} ${TK_LIBS}"
-else
- AC_MSG_CHECKING(for Tk)
- TK_VERSION=nope
- for i in "" 4.0 4.1; do
- if test -r ${tryprefix}/lib/libtk${i}.a; then
- TK_VERSION=$i
- fi
- done
- if test "$TK_VERSION" = nope; then
- AC_MSG_WARN(Didn't find Tk)
- TKLIB=-ltk
- else
- TKLIB=${tryprefix}/lib/libtk${TK_VERSION}.a
- if test "$TK_VERSION" = ""; then
- AC_MSG_RESULT(3.x)
- else
- AC_MSG_RESULT($TK_VERSION)
- fi
- fi
- TKLIB=${tryprefix}/lib/libtk${i}.a
- AC_PATH_X
- not_really_there=""
- if test "$no_x" = ""; then
- if test "$x_includes" = ""; then
- AC_TRY_CPP([#include <X11/XIntrinsic.h>], , not_really_there="yes")
- else
- if test ! -r $x_includes/X11/Intrinsic.h; then
- not_really_there="yes"
- fi
- 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