-dnl WARNING WARNING WARNING WARNING
-dnl do not edit! this is aclocal.m4, generated from stepmake/aclocal.m4
-dnl WARNING WARNING WARNING WARNING
-dnl do not edit! this is aclocal.m4, generated from stepmake/aclocal.m4
dnl aclocal.m4 -*-shell-script-*-
dnl StepMake subroutines for configure.in
AC_DEFUN(AC_STEPMAKE_GUILE, [
## First, let's just see if we can find Guile at all.
AC_MSG_CHECKING("for guile-config")
- for guile_config in guile-config $build-guile-config; do
+ for guile_config in guile-config $target-guile-config $build-guile-config; do
AC_MSG_RESULT("$guile_config")
if ! $guile_config --version > /dev/null 2>&1 ; then
AC_MSG_WARN("cannot execute $guile_config")
fi
stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
+ # urg, how is this supposed to work?
+ if test "$program_prefix" = "NONE"; then
+ program_prefix=
+ fi
+ if test "$program_suffix" = "NONE"; then
+ program_suffix=
+ fi
+
AC_MSG_CHECKING(Package)
if test "x$PACKAGE" = "xSTEPMAKE"; then
AC_MSG_RESULT(Stepmake package!)
LN=cp # hard link does not work under cygnus-nt
LN_S='cp -r' # symbolic link does not work for native nt
ZIP="zip -r -9" #
- DOTEXE=.exe
+ program_suffix=.exe
# urg
# DIRSEP='\\'
# PATHSEP=';'
ZIP="zip -r -9"
INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
fi
- AC_SUBST(DOTEXE)
+ AC_SUBST(program_prefix)
+ AC_SUBST(program_suffix)
AC_SUBST(ZIP)
AC_SUBST(LN)
AC_SUBST(LN_S)
])
AC_DEFUN(AC_STEPMAKE_TEXMF_DIRS, [
- AC_ARG_ENABLE(tex-tfmdir,
- [ enable-tex-tfmdir=DIR set the tex-directory where cmr10.tfm lives (default: use kpsewhich)],
- [TFMDIR=$enableval],
- [TFMDIR=auto] )
+ AC_ARG_ENABLE(tfm-path,
+ [ enable-tfm-path=PATH set path of tex directories where tfm files live, esp.: cmr10.tfm (default: use kpsewhich)],
+ [tfm_path=$enableval],
+ [tfm_path=auto] )
AC_CHECK_PROGS(KPSEWHICH, kpsewhich, no)
- AC_MSG_CHECKING(for TeX TFM directory)
- if test "x$TFMDIR" = xauto ; then
- if test "x$TEX_TFMDIR" = "x" ; then
- if test "x$KPSEWHICH" != "xno" ; then
- CMR10=`kpsewhich tfm cmr10.tfm`
- TEX_TFMDIR=`dirname $CMR10`
- else
- AC_STEPMAKE_WARN(Please set TEX_TFMDIR (to where cmr10.tfm lives):
- TEX_TFMDIR=/usr/local/TeX/lib/tex/fonts ./configure)
- fi
+ AC_MSG_CHECKING(for tfm path)
+
+ TFM_FONTS="cmr msam"
+
+ if test "x$tfm_path" = xauto ; then
+ if test "x$KPSEWHICH" != "xno" ; then
+ for i in $TFM_FONTS; do
+ dir=`$KPSEWHICH tfm ${i}10.tfm`
+ TFM_PATH="$TFM_PATH `dirname $dir`"
+ done
+ else
+ AC_STEPMAKE_WARN(Please specify where cmr10.tfm lives:
+ ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts)
fi
+ else
+ TFM_PATH=$tfm_path
fi
- AC_MSG_RESULT($TEX_TFMDIR)
- AC_SUBST(TEX_TFMDIR)
+
+ TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
+ AC_MSG_RESULT($TFM_PATH)
+ AC_SUBST(TFM_PATH)
])
AC_DEFUN(AC_STEPMAKE_TEXMF, [