1 dnl aclocal.m4 -*-shell-script-*-
2 dnl WARNING WARNING WARNING
3 dnl do not edit! this is aclocal.m4, generated from stepmake/aclocal.m4
4 dnl aclocal.m4 -*-shell-script-*-
5 dnl StepMake subroutines for configure.in
8 ### mostly interal macros
10 # Get full path of executable ($1)
11 AC_DEFUN(STEPMAKE_GET_EXECUTABLE, [
12 type -p "$1" 2>&1 | awk '{print $NF}'
16 # Get version string from executable ($1)
17 AC_DEFUN(STEPMAKE_GET_VERSION, [
18 "$1" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
21 # Calculate numeric version from version string ($1)
22 AC_DEFUN(STEPMAKE_NUMERIC_VERSION, [
25 if ([$]3) {last = [$]3}
28 {printf "%s%s%s\n",[$]1*100, [$]2*10,last}'
32 # Add item ($2) to list ($1, one of 'OPTIONAL', 'REQUIRED')
33 AC_DEFUN(STEPMAKE_ADD_ENTRY, [
34 eval "$1"=\"`eval echo \"'$'$1\" \"$2\"`\"
37 # Check if tested program ($2) was found ($1).
38 # If not, add entry to missing-list ($3, one of 'OPTIONAL', 'REQUIRED').
39 # We could abort here if a 'REQUIRED' program is not found
40 AC_DEFUN(STEPMAKE_OPTIONAL_REQUIRED, [
41 STEPMAKE_CHECK_SEARCH_RESULT($1)
42 if test $? -ne 0; then
43 STEPMAKE_ADD_ENTRY($3, $2)
44 if test "$3" = "REQUIRED"; then
45 command="echo ERROR: $2 not found"
46 # abort configure process here?
48 command="- echo $2 not found"
58 # Return if tested proram ($1) was found (true) or not (false).
59 AC_DEFUN(STEPMAKE_CHECK_SEARCH_RESULT, [
60 r="`eval echo '$'"$1"`"
61 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"$1"`' : '.*\(echo\)' > /dev/null; then
64 ##STEPMAKE_WARN(cannot find $2. $3)
70 # Check version of program ($1)
71 # If version is smaller than requested ($3),
72 # add entry to missing-list ($2, one of 'OPTIONAL', 'REQUIRED').
73 AC_DEFUN(STEPMAKE_CHECK_VERSION, [
74 r="`eval echo '$'"$1"`"
75 AC_MSG_CHECKING("$r version")
76 exe=`STEPMAKE_GET_EXECUTABLE($r)`
77 ver=`STEPMAKE_GET_VERSION($exe)`
78 num=`STEPMAKE_NUMERIC_VERSION($ver)`
79 req=`STEPMAKE_NUMERIC_VERSION($3)`
81 if test "$num" -lt "$req"; then
82 STEPMAKE_ADD_ENTRY($2, "$r $3 (installed: $ver)")
86 ### Macros to build configure.in
89 AC_DEFUN(STEPMAKE_BIBTEX2HTML, [
90 STEPMAKE_PROGS(BIBTEX2HTML, bibtex2html bib2html, $1)
91 if test "$BIBTEX2HTML" = "bib2html"; then
92 BIBTEX2HTML_FLAGS='$< $(@)'
94 BIBTEX2HTML_FLAGS='-o $(@D)/$(*F) $<'
97 AC_SUBST(BIBTEX2HTML_FLAGS)
101 AC_DEFUN(STEPMAKE_BISON, [
102 # ugh, automake: we want (and check for) bison
105 STEPMAKE_PROGS(BISON, bison, $1)
107 # urg. should test functionality rather than version.
108 if test "$BISON" = "bison" -a -n "$2"; then
109 STEPMAKE_CHECK_VERSION(BISON, $1, $2)
114 AC_DEFUN(STEPMAKE_COMPILE, [
115 # -O is necessary to get inlining
117 CXXFLAGS=${CXXFLAGS-$CFLAGS}
118 LDFLAGS=${LDFLAGS-""}
124 AC_ARG_ENABLE(checking,
125 [ --enable-checking set runtime checks (assert calls). Default: on],
126 [checking_b=$enableval] )
128 AC_ARG_ENABLE(debugging,
129 [ --enable-debugging compile with debugging info. Default: on],
130 [debug_b=$enableval])
132 AC_ARG_ENABLE(optimising,
133 [ --enable-optimising compile with optimising. Default: on],
134 [optimise_b=$enableval])
136 AC_ARG_ENABLE(profiling,
137 [ --enable-profiling compile with gprof support. Default: off],
138 [profile_b=$enableval])
141 if test "$checking_b" = no; then
144 DEFINES="$DEFINES -DNDEBUG"
147 if test "$optimise_b" = yes; then
148 OPTIMIZE="-O2 -finline-functions"
152 if test $profile_b = yes; then
154 OPTIMIZE="$OPTIMIZE -pg"
157 if test $debug_b = yes; then
158 OPTIMIZE="$OPTIMIZE -g"
163 STEPMAKE_OPTIONAL_REQUIRED(CC, cc, $1)
167 CFLAGS="$CFLAGS $OPTIMIZE"
168 CPPFLAGS=${CPPFLAGS-""}
170 AC_MSG_CHECKING([for IEEE-conformance compiler flags])
171 save_cflags="$CFLAGS"
174 dnl should do compile test?
175 AC_MSG_RESULT(-mieee)
176 CFLAGS="-mieee $CFLAGS"
179 AC_MSG_RESULT([none])
182 AC_SUBST(cross_compiling)
189 AC_SUBST(EXTRA_LIBES)
192 AC_DEFUN(STEPMAKE_CXX, [
195 STEPMAKE_OPTIONAL_REQUIRED(CXX, c++, $1)
197 CPPFLAGS="$CPPFLAGS $DEFINES"
198 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
199 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
208 AC_DEFUN(STEPMAKE_CXXTEMPLATE, [
209 AC_CACHE_CHECK([whether explicit instantiation is needed],
210 lily_cv_need_explicit_instantiation,
212 template <class T> struct foo { static int baz; };
213 template <class T> int foo<T>::baz = 1;
214 ], [ return foo<int>::baz; ],
215 lily_cv_need_explicit_instantiation=no,
216 lily_cv_need_explicit_instantiation=yes))
217 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
218 AC_DEFINE(NEED_EXPLICIT_INSTANTIATION)
223 AC_DEFUN(STEPMAKE_DATADIR, [
224 if test "$datadir" = "\${prefix}/share"; then
225 datadir='${prefix}/share/'$package
227 DIR_DATADIR=${datadir}
229 if test "$prefix" = "NONE"; then
230 presome=${ac_default_prefix}
232 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
235 AC_SUBST(DIR_DATADIR)
237 dnl yeah, so fuck me gently with a cactus: this doesnt belong here
238 dnl Please take the person responsible for inventing shell-scripts out
239 dnl and shoot him. On behalf of the sane world, thank you.
240 dnl DIR_SHAREDSTATEDIR="foobar"
241 dnl AC_SUBST(DIR_SHAREDSTATEDIR)
243 AC_DEFINE_UNQUOTED(DIR_DATADIR, "${DIR_DATADIR}")
247 AC_DEFUN(STEPMAKE_END, [
251 AC_OUTPUT($CONFIGFILE.make:config.make.in)
254 if test -n "$OPTIONAL"; then
256 echo "WARNING: Please consider installing optional programs: $OPTIONAL"
259 if test -n "$REQUIRED"; then
261 echo "ERROR: Please install required programs: $REQUIRED"
264 if test -n "$OPTIONAL$REQUIRED"; then
266 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
267 echo "Remove config.cache before rerunning ./configure"
270 if test -n "$REQUIRED"; then
271 rm -f $srcdir/GNUmakefile
275 # regular in-place build
276 # test for srcdir_build = yes ?
277 if test "$builddir" = "."; then
278 rm -f $srcdir/GNUmakefile
279 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
280 chmod 444 $srcdir/GNUmakefile
281 else # --srcdir build
283 cp $srcdir/make/srcdir.make.in GNUmakefile
284 chmod 444 GNUmakefile
289 AC_DEFUN(STEPMAKE_FLEX, [
290 # ugh, automake: we want (and check for) flex
292 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
296 ac_cv_prog_lex_root=lex.yy
297 STEPMAKE_PROGS(FLEX, flex, $1)
301 AC_DEFUN(STEPMAKE_FLEXLEXER, [
302 AC_HAVE_HEADERS(FlexLexer.h, true, false)
303 if test $? -ne 0; then
304 warn='FlexLexer.h (flex package)'
305 STEPMAKE_ADD_ENTRY($1, $warn)
310 AC_DEFUN(STEPMAKE_GCC, [
311 if test "$GCC" = "yes"; then
312 STEPMAKE_CHECK_VERSION(CC, $1, $2)
314 warn="$CC (Please install *GNU* cc)"
315 STEPMAKE_ADD_ENTRY($1, $warn)
320 AC_DEFUN(STEPMAKE_GETTEXT, [
321 DIR_LOCALEDIR=${localedir}
323 if test "$prefix" = "NONE"; then
324 presome=${ac_default_prefix}
326 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
328 AC_SUBST(DIR_LOCALEDIR)
329 AC_DEFINE_UNQUOTED(DIR_LOCALEDIR, "${DIR_LOCALEDIR}")
331 AC_CHECK_LIB(intl, gettext)
332 AC_CHECK_FUNCS(gettext)
336 AC_DEFUN(STEPMAKE_GUILE, [
337 STEPMAKE_PATH_PROG(GUILE, guile, $1)
341 # STEPMAKE_GUILE_FLAGS --- set flags for compiling and linking with Guile
343 # This macro runs the guile-config script, installed with Guile,
344 # to find out where Guile's header files and libraries are
345 # installed. It sets two variables, marked for substitution, as
348 # GUILE_CFLAGS --- flags to pass to a C or C++ compiler to build
349 # code that uses Guile header files. This is almost
350 # always just a -I flag.
352 # GUILE_LDFLAGS --- flags to pass to the linker to link a
353 # program against Guile. This includes -lguile for
354 # the Guile library itself, any libraries that Guile
355 # itself requires (like -lqthreads), and so on. It may
356 # also include a -L flag to tell the compiler where to
357 # find the libraries.
359 AC_DEFUN([STEPMAKE_GUILE_FLAGS], [
360 exe=`STEPMAKE_GET_EXECUTABLE($guile_config)`
361 if test -x $exe; then
362 AC_MSG_CHECKING("guile compile flags")
363 GUILE_CFLAGS="`$guile_config compile`"
364 AC_MSG_RESULT($GUILE_CFLAGS)
365 AC_MSG_CHECKING("guile link flags")
366 GUILE_LDFLAGS="`$guile_config link`"
367 AC_MSG_RESULT($GUILE_LDFLAGS)
369 AC_SUBST(GUILE_CFLAGS)
370 AC_SUBST(GUILE_LDFLAGS)
374 AC_DEFUN(STEPMAKE_GUILE_DEVEL, [
375 ## First, let's just see if we can find Guile at all.
376 AC_MSG_CHECKING("for guile-config")
377 for guile_config in guile-config $target-guile-config $build-guile-config; do
378 AC_MSG_RESULT("$guile_config")
379 if ! $guile_config --version > /dev/null 2>&1 ; then
380 AC_MSG_WARN("cannot execute $guile_config")
381 AC_MSG_CHECKING("if we are cross compiling")
382 GUILE_CONFIG='echo no guile-config'
384 GUILE_CONFIG=$guile_config
388 STEPMAKE_OPTIONAL_REQUIRED(GUILE_CONFIG, $guile_config, $1)
389 if test $? -ne 0; then
390 STEPMAKE_ADD_ENTRY($1, 'guile-config (guile-devel, guile-dev or libguile-dev package)')
393 STEPMAKE_CHECK_SEARCH_RESULT(GUILE_CONFIG)
394 # urg. should test functionality rather than version.
395 if test $? -eq 0 -a -n "$2"; then
396 STEPMAKE_CHECK_VERSION(GUILE_CONFIG, $1, $2)
399 AC_SUBST(GUILE_CONFIG)
402 changequote(<<, >>)dnl
403 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
404 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
407 AC_DEFINE_UNQUOTED(GUILE_MAJOR_VERSION, $GUILE_MAJOR_VERSION)
408 AC_DEFINE_UNQUOTED(GUILE_MINOR_VERSION, $GUILE_MINOR_VERSION)
412 AC_DEFUN(STEPMAKE_GXX, [
413 if test "$GXX" = "yes"; then
414 STEPMAKE_CHECK_VERSION(CXX, $1, $2)
416 warn="$CXX (Please install *GNU* c++)"
417 STEPMAKE_ADD_ENTRY($1, $warn)
422 AC_DEFUN(STEPMAKE_INIT, [
425 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
426 if test x$MY_PATCH_LEVEL != x; then
427 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
430 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
431 changequote(<<, >>)dnl
432 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
433 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
436 # No versioning on directory names of sub-packages
438 stepmake=${datadir}/stepmake
440 if test "$prefix" = "NONE"; then
441 presome=${ac_default_prefix}
443 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
445 # urg, how is this supposed to work?
446 if test "$program_prefix" = "NONE"; then
449 if test "$program_suffix" = "NONE"; then
453 AC_MSG_CHECKING(Package)
454 if test "x$PACKAGE" = "xSTEPMAKE"; then
455 AC_MSG_RESULT(Stepmake package!)
457 AC_MSG_CHECKING(builddir)
458 if test "$srcdir" = "."; then
461 absolute_builddir="`pwd`"
462 package_absolute_builddir="`dirname $absolute_builddir`"
463 package_srcdir="`dirname $srcdir`"
464 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
466 AC_MSG_RESULT($builddir)
468 (cd stepmake 2>/dev/null || mkdir stepmake)
469 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
470 AC_CONFIG_AUX_DIR(bin)
473 AC_MSG_RESULT($PACKAGE)
475 AC_MSG_CHECKING(builddir)
476 if test "$srcdir" = "."; then
480 absolute_builddir="`pwd`"
481 # builddir="`dirname $srcdir`/`basename $absolute_builddir`"
482 builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`"
485 AC_MSG_RESULT($builddir)
486 if expr "$srcdir" : '/' > /dev/null 2>&1; then
488 STEPMAKE_WARN(Absolute --srcdir specified: $srcdir)
491 AC_MSG_CHECKING(for stepmake)
492 # Check for installed stepmake
493 if test -d $stepmake; then
494 AC_MSG_RESULT($stepmake)
496 if test "$absolute_srcdir" != "yes"; then
497 stepmake='$(depth)'/$srcdir/stepmake
499 stepmake=$srcdir/stepmake
501 AC_MSG_RESULT($srcdir/stepmake ($datadir/stepmake not found))
505 $HOME/usr/local/share/stepmake/bin\
506 $HOME/usr/local/lib/stepmake/bin\
507 $HOME/usr/share/stepmake/bin\
508 $HOME/usr/lib/stepmake/bin\
509 /usr/local/share/stepmake/bin\
510 /usr/local/lib/stepmake/bin\
511 /usr/share/stepmake/bin\
512 /usr/lib/stepmake/bin\
514 $srcdir/stepmake/bin\
522 AC_SUBST(PACKAGE_NAME)
523 AC_DEFINE_UNQUOTED(PACKAGE, "${PACKAGE_NAME}")
524 AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
526 if test "$package_depth" = "" ; then
529 package_depth="../$package_depth"
532 AC_SUBST(package_depth)
534 AUTOGENERATE="This file was automatically generated by configure"
535 AC_SUBST(AUTOGENERATE)
538 AC_ARG_ENABLE(config,
539 [ --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
540 do \`make conf=CONF' to get output in ./out-CONF],
541 [CONFIGURATION=$enableval])
545 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
546 CONFIGFILE=config$CONFIGSUFFIX
547 AC_SUBST(CONFIGSUFFIX)
550 STEPMAKE_PROGS(MAKE, gmake make, REQUIRED)
551 STEPMAKE_PROGS(FIND, find, REQUIRED)
553 STEPMAKE_PROGS(TAR, tar, REQUIRED)
555 if test "x`uname`" = "xHP-UX"; then
556 AC_PATH_PROG(BASH, bash, /bin/sh)
557 STEPMAKE_WARN(avoiding buggy /bin/sh)
558 AC_PATH_PROG(SHELL, bash, /bin/ksh)
560 AC_PATH_PROG(BASH, bash, /bin/sh)
565 STEPMAKE_PATH_PROG(PYTHON, python, REQUIRED)
567 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
568 $MAKE -v 2> /dev/null | grep GNU > /dev/null
569 if test "$?" = 1; then
570 warn='make (Please install *GNU* make)'
571 # STEPMAKE_WARN($warn)
572 STEPMAKE_ADD_ENTRY(REQUIRED, $warn)
576 if test "$OSTYPE" = "cygwin" -o "$OSTYPE" = "cygwin32" -o "$OSTYPE" = "Windows_NT"; then
577 LN=cp # hard link does not work under cygnus-nt
578 LN_S='cp -r' # symbolic link does not work for native nt
584 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
592 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
594 AC_SUBST(program_prefix)
595 AC_SUBST(program_suffix)
600 AC_DEFINE_UNQUOTED(DIRSEP, '${DIRSEP}')
601 AC_DEFINE_UNQUOTED(PATHSEP, '${PATHSEP}')
610 AC_DEFUN(STEPMAKE_KPATHSEA, [
613 #FIXME --with-xxx is meant for specifying a PATH too,
614 # so this should read: --enable-kpathsea,
615 # or --with-kpathsea-include=PATH --with-kpathsea-lib=PATH
616 AC_ARG_WITH(kpathsea,
617 [ --with-kpathsea use kpathsea lib. Default: on],
618 [kpathsea_b=$with_kpathsea])
620 if test "$kpathsea_b" != "no"; then
621 AC_HAVE_HEADERS(kpathsea/kpathsea.h)
622 AC_CHECK_LIB(kpathsea, kpse_find_file)
623 AC_CHECK_FUNCS(kpse_find_file,, AC_ERROR(Cannot find kpathsea functions. You should install kpathsea; see INSTALL.txt. Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform.))
625 AC_MSG_CHECKING(whether to use kpathsea)
626 if test "$kpathsea_b" != no; then
635 AC_DEFINE_UNQUOTED(KPATHSEA, $KPATHSEA)
639 AC_DEFUN(STEPMAKE_LIB, [
640 STEPMAKE_PROGS(AR, ar, $1)
642 STEPMAKE_OPTIONAL_REQUIRED(RANLIB, ranlib, $1)
646 AC_DEFUN(STEPMAKE_LIBTOOL, [
648 # **Never** try to set library version numbers so that they correspond
649 # to the release number of your package. This is an abuse that only
650 # fosters misunderstanding of the purpose of library versions.
652 REVISION=$PATCH_LEVEL
653 # CURRENT=$MINOR_VERSION
654 CURRENT=`expr $MINOR_VERSION + 1`
655 # AGE=$(expr $MAJOR_VERSION + 1)
663 AC_DEFUN(STEPMAKE_LOCALE, [
668 AC_ARG_WITH(localedir,
669 [ --with-localedir=LOCALE use LOCALE as locale dir. Default:
670 PREFIX/share/locale ],
671 localedir=$with_localedir,
672 localedir='${prefix}/share/locale')
675 [ --with-lang=LANG use LANG as language to emit messages],
679 AC_MSG_CHECKING(language)
681 En* | en* | Am* | am* | US* | us*)
683 NL | nl | Du* | du* | Ned* | ned*)
692 if test "$lang" = "unknown" ; then
693 STEPMAKE_WARN($language not supported; available are: $ALL_LINGUAS)
699 AC_DEFUN(STEPMAKE_MAKEINFO, [
700 STEPMAKE_PROGS(MAKEINFO, makeinfo, $1)
701 if test "$MAKEINFO" = "makeinfo"; then
702 AC_MSG_CHECKING(whether makeinfo can split html by @node)
704 makeinfo --html --output=out/split <<EOF
706 \input texinfo @c -*-texinfo-*-
707 @setfilename split.info
711 if test -d out/split; then
712 SPLITTING_MAKEINFO=yes
717 STEPMAKE_WARN(your html documentation will be one large file)
721 AC_SUBST(SPLITTING_MAKEINFO)
726 AC_DEFUN(STEPMAKE_MAN, [
727 STEPMAKE_PROGS(GROFF, groff ditroff, $1)
729 STEPMAKE_PROGS(TROFF, troff, $1)
731 STEPMAKE_PROGS(TBL, tbl, $1)
736 AC_DEFUN(STEPMAKE_MSGFMT, [
737 STEPMAKE_PROGS(MSGFMT, msgfmt, $1)
741 # Check for program ($2), set full path result to ($1).
742 # If missing, add entry to missing-list ($3, one of 'OPTIONAL', 'REQUIRED')
743 AC_DEFUN(STEPMAKE_PATH_PROG, [
744 AC_CHECK_PROGS($1, $2, no)
745 STEPMAKE_OPTIONAL_REQUIRED($1, $2, $3)
746 if test $? -eq 0; then
748 if test -n "$4"; then
749 STEPMAKE_CHECK_VERSION($1, $3, $4)
755 # Check for program in set of names ($2), set result to ($1) .
756 # If missing, add entry to missing-list ($3, one of 'OPTIONAL', 'REQUIRED')
757 # If exists, and a minimal version ($4) is required
758 AC_DEFUN(STEPMAKE_PROGS, [
759 AC_CHECK_PROGS($1, $2, no)
760 STEPMAKE_OPTIONAL_REQUIRED($1, $2, $3)
761 if test $? -eq 0 -a -n "$4"; then
762 STEPMAKE_CHECK_VERSION($1, $3, $4)
767 AC_DEFUN(STEPMAKE_PERL, [
768 STEPMAKE_PATH_PROG(PERL, perl, $1)
772 AC_DEFUN(STEPMAKE_PYTHON_DEVEL, [
773 AC_HAVE_HEADERS(python2.2/Python.h python2.1/Python.h python2.0/Python.h python2/Python.h python/Python.h python1.5/Python.h Python.h, PYTHON_HEADER=yes)
774 if test -z "$PYTHON_HEADER"; then
775 warn='python.h (python-devel, python-dev or libpython-dev package)'
776 STEPMAKE_ADD_ENTRY($1, $warn)
781 AC_DEFUN(STEPMAKE_TEXMF_DIRS, [
782 AC_ARG_ENABLE(tfm-path,
783 [ --enable-tfm-path=PATH set path of tex directories where tfm files live,
784 esp.: cmr10.tfm. Default: use kpsewhich],
785 [tfm_path=$enableval],
789 STEPMAKE_PROGS(KPSEWHICH, kpsewhich, OPTIONAL)
790 AC_MSG_CHECKING(for tfm path)
794 if test "x$tfm_path" = xauto ; then
795 if test "x$KPSEWHICH" != "xno" ; then
796 for i in $TFM_FONTS; do
797 dir=`$KPSEWHICH tfm ${i}10.tfm`
798 TFM_PATH="$TFM_PATH `dirname $dir`"
801 STEPMAKE_WARN(Please specify where cmr10.tfm lives:
802 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts)
808 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
809 AC_MSG_RESULT($TFM_PATH)
814 AC_DEFUN(STEPMAKE_TEXMF, [
815 # urg, never know what names these teTeX guys will think up
817 STEPMAKE_PROGS(METAFONT, mf mfont, $1)
818 STEPMAKE_PROGS(INIMETAFONT, inimf inimfont, $1)
820 AC_MSG_CHECKING(for working metafont mode)
821 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
822 for MFMODE in $modelist; do
823 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
824 if test -f mfput.tfm; then
828 AC_MSG_RESULT($MFMODE)
836 AC_DEFUN(STEPMAKE_WARN, [