1dnl This file is an input file used by the GNU "autoconf" program to 2dnl generate the file "configure", which is run to configure the 3dnl Makefile in this directory. 4AC_INIT(man2tcl.c) 5AC_PREREQ(2.57) 6# RCS: @(#) $Id: configure.in,v 1.11 2003/03/13 10:39:57 mdejong Exp $ 7 8# Recover information that Tcl computed with its configure script. 9 10#-------------------------------------------------------------------- 11# See if there was a command-line option for where Tcl is; if 12# not, assume that its top-level directory is a sibling of ours. 13#-------------------------------------------------------------------- 14 15DEF_VER=8.5 16 17AC_ARG_WITH(tcl, [ --with-tcl=DIR use Tcl $DEF_VER binaries from DIR], TCL_BIN_DIR=$withval, TCL_BIN_DIR=`cd ../../tcl$DEF_VER$TCL_PATCH_LEVEL/unix; pwd`) 18if test ! -d $TCL_BIN_DIR; then 19 AC_MSG_ERROR(Tcl directory $TCL_BIN_DIR doesn't exist) 20fi 21if test ! -f $TCL_BIN_DIR/tclConfig.sh; then 22 AC_MSG_ERROR(There's no tclConfig.sh in $TCL_BIN_DIR; perhaps you didn't specify the Tcl *build* directory (not the toplevel Tcl directory) or you forgot to configure Tcl?) 23fi 24 25. $TCL_BIN_DIR/tclConfig.sh 26 27TCL_WIN_VERSION=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION 28AC_SUBST(TCL_WIN_VERSION) 29CC=$TCL_CC 30AC_SUBST(CC) 31AC_SUBST(TCL_VERSION) 32AC_SUBST(TCL_PATCH_LEVEL) 33AC_SUBST(TCL_SRC_DIR) 34AC_SUBST(TCL_BIN_DIR) 35 36AC_OUTPUT(Makefile tcl.hpj) 37