Line | |
---|
1 | dnl This file is an input file used by the GNU "autoconf" program to |
---|
2 | dnl generate the file "configure", which is run to configure the |
---|
3 | dnl Makefile in this directory. |
---|
4 | AC_INIT(man2tcl.c) |
---|
5 | AC_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 | |
---|
15 | DEF_VER=8.5 |
---|
16 | |
---|
17 | 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`) |
---|
18 | if test ! -d $TCL_BIN_DIR; then |
---|
19 | AC_MSG_ERROR(Tcl directory $TCL_BIN_DIR doesn't exist) |
---|
20 | fi |
---|
21 | if 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?) |
---|
23 | fi |
---|
24 | |
---|
25 | . $TCL_BIN_DIR/tclConfig.sh |
---|
26 | |
---|
27 | TCL_WIN_VERSION=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION |
---|
28 | AC_SUBST(TCL_WIN_VERSION) |
---|
29 | CC=$TCL_CC |
---|
30 | AC_SUBST(CC) |
---|
31 | AC_SUBST(TCL_VERSION) |
---|
32 | AC_SUBST(TCL_PATCH_LEVEL) |
---|
33 | AC_SUBST(TCL_SRC_DIR) |
---|
34 | AC_SUBST(TCL_BIN_DIR) |
---|
35 | |
---|
36 | AC_OUTPUT(Makefile tcl.hpj) |
---|
Note: See
TracBrowser
for help on using the repository browser.