sl@0
|
1 |
dnl This file is an input file used by the GNU "autoconf" program to
|
sl@0
|
2 |
dnl generate the file "configure", which is run to configure the
|
sl@0
|
3 |
dnl Makefile in this directory.
|
sl@0
|
4 |
AC_INIT(man2tcl.c)
|
sl@0
|
5 |
# RCS: @(#) $Id: configure.in,v 1.9 2001/10/04 20:18:09 hobbs Exp $
|
sl@0
|
6 |
|
sl@0
|
7 |
# Recover information that Tcl computed with its configure script.
|
sl@0
|
8 |
|
sl@0
|
9 |
#--------------------------------------------------------------------
|
sl@0
|
10 |
# See if there was a command-line option for where Tcl is; if
|
sl@0
|
11 |
# not, assume that its top-level directory is a sibling of ours.
|
sl@0
|
12 |
#--------------------------------------------------------------------
|
sl@0
|
13 |
|
sl@0
|
14 |
DEF_VER=8.4
|
sl@0
|
15 |
|
sl@0
|
16 |
AC_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`)
|
sl@0
|
17 |
if test ! -d $TCL_BIN_DIR; then
|
sl@0
|
18 |
AC_MSG_ERROR(Tcl directory $TCL_BIN_DIR doesn't exist)
|
sl@0
|
19 |
fi
|
sl@0
|
20 |
if test ! -f $TCL_BIN_DIR/tclConfig.sh; then
|
sl@0
|
21 |
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?)
|
sl@0
|
22 |
fi
|
sl@0
|
23 |
|
sl@0
|
24 |
. $TCL_BIN_DIR/tclConfig.sh
|
sl@0
|
25 |
|
sl@0
|
26 |
TCL_WIN_VERSION=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION
|
sl@0
|
27 |
AC_SUBST(TCL_WIN_VERSION)
|
sl@0
|
28 |
CC=$TCL_CC
|
sl@0
|
29 |
AC_SUBST(CC)
|
sl@0
|
30 |
AC_SUBST(TCL_VERSION)
|
sl@0
|
31 |
AC_SUBST(TCL_PATCH_LEVEL)
|
sl@0
|
32 |
AC_SUBST(TCL_SRC_DIR)
|
sl@0
|
33 |
AC_SUBST(TCL_BIN_DIR)
|
sl@0
|
34 |
|
sl@0
|
35 |
AC_OUTPUT(Makefile tcl.hpj)
|