| 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(bibtool.c) |
| 5 |
|
| 6 |
AC_PATH_PROGS(TCLSH,tclsh tclsh-8.0 tclsh-8.1 tclsh-8.2 tclsh-8.3 tclx,) |
| 7 |
|
| 8 |
if test -z "$TCLSH" ; then |
| 9 |
AC_MSG_WARN(tclsh not found. |
| 10 |
Ensure that a properly installed tclsh is on your path or live without BibTcl.) |
| 11 |
exit 0 |
| 12 |
fi |
| 13 |
|
| 14 |
# Recover information that Tcl computed with its configure script. |
| 15 |
|
| 16 |
AC_MSG_CHECKING(for tcl configuration file) |
| 17 |
|
| 18 |
CONFIG_FILE=`echo 'puts [[file join [file dirname [info library]] tclConfig.sh]]' | $TCLSH` |
| 19 |
if test -f $CONFIG_FILE ; then |
| 20 |
AC_MSG_RESULT($CONFIG_FILE) |
| 21 |
elif test -f tclConfig.sh ; then |
| 22 |
CONFIG_FILE=tclConfig.sh |
| 23 |
AC_MSG_RESULT($CONFIG_FILE) |
| 24 |
else |
| 25 |
AC_MSG_WARN(not found. Ensure that a properly installed tclsh is on your path.) |
| 26 |
exit 1 |
| 27 |
fi |
| 28 |
|
| 29 |
. $CONFIG_FILE |
| 30 |
|
| 31 |
CC=$TCL_CC |
| 32 |
AC_SUBST(CC) |
| 33 |
SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS |
| 34 |
AC_SUBST(SHLIB_CFLAGS) |
| 35 |
SHLIB_LD=$TCL_SHLIB_LD |
| 36 |
AC_SUBST(SHLIB_LD) |
| 37 |
SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS |
| 38 |
AC_SUBST(SHLIB_LD_LIBS) |
| 39 |
SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX |
| 40 |
AC_SUBST(SHLIB_SUFFIX) |
| 41 |
SHLIB_VERSION=$TCL_SHLIB_VERSION |
| 42 |
AC_SUBST(SHLIB_VERSION) |
| 43 |
AC_SUBST(TCL_BUILD_LIB_SPEC) |
| 44 |
TCL_LIBS=$TCL_LIBS |
| 45 |
AC_SUBST(TCL_LIBS) |
| 46 |
TCL_VERSION=$TCL_VERSION |
| 47 |
AC_SUBST(TCL_VERSION) |
| 48 |
TCL_PREFIX=$TCL_PREFIX |
| 49 |
AC_SUBST(TCL_PREFIX) |
| 50 |
|
| 51 |
AC_OUTPUT(Makefile) |