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 ## which doesn't work in ash, if /usr/bin/which isn't installed
13 ## type -p doesn't work in ash
14 ## command -v doesn't work in zsh
15 ## command -v "$1" 2>&1
16 ## this test should work in ash, bash, pdksh (ksh), zsh
17 type -p "$1" 2>/dev/null | tail -1 | awk '{print $NF}'
21 # Get version string from executable ($1)
22 AC_DEFUN(STEPMAKE_GET_VERSION, [
23 ## "$1" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}'
26 ## Workaround for broken Debian gcc version string:
27 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
29 ## Assume, and hunt for, dotted version multiplet.
30 changequote(<<, >>)dnl
31 "$1" --version 2>&1 | grep '[0-9]\.[0-9]' | head -1 | \
32 sed -e 's/.*[^-.0-9]\([0-9][0-9]*\.[0-9][.0-9]*\).*/\1/'
36 # Calculate simplistic numeric version from version string ($1)
37 # As yet, we have no need for something more elaborate.
38 AC_DEFUN(STEPMAKE_NUMERIC_VERSION, [
41 if ([$]3) {three = [$]3}
44 {printf "%d\n", [$]1*1000000 + [$]2*1000 + three}'
48 # Add item ($2) to list ($1, one of 'OPTIONAL', 'REQUIRED')
49 AC_DEFUN(STEPMAKE_ADD_ENTRY, [
50 eval "$1"=\"`eval echo \"'$'$1\" \"$2\"`\"
53 # Check if tested program ($2) was found ($1).
54 # If not, add entry to missing-list ($3, one of 'OPTIONAL', 'REQUIRED').
55 # We could abort here if a 'REQUIRED' program is not found
56 AC_DEFUN(STEPMAKE_OPTIONAL_REQUIRED, [
57 STEPMAKE_CHECK_SEARCH_RESULT($1)
58 if test $? -ne 0; then
59 STEPMAKE_ADD_ENTRY($3, $2)
60 if test "$3" = "REQUIRED"; then
61 command="echo ERROR: $2 not found"
62 # abort configure process here?
64 command="- echo $2 not found"
74 # Return if tested proram ($1) was found (true) or not (false).
75 AC_DEFUN(STEPMAKE_CHECK_SEARCH_RESULT, [
76 r="`eval echo '$'"$1"`"
77 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"$1"`' : '.*\(echo\)' > /dev/null; then
80 ##STEPMAKE_WARN(cannot find $2. $3)
86 # Check version of program ($1)
87 # If version is smaller than requested ($3),
88 # add entry to missing-list ($2, one of 'OPTIONAL', 'REQUIRED').
89 AC_DEFUN(STEPMAKE_CHECK_VERSION, [
90 r="`eval echo '$'"$1"`"
91 AC_MSG_CHECKING("$r version")
92 #exe=`STEPMAKE_GET_EXECUTABLE($r)`
93 exe=`STEPMAKE_GET_EXECUTABLE($r)`
94 ver=`STEPMAKE_GET_VERSION($exe)`
95 num=`STEPMAKE_NUMERIC_VERSION($ver)`
96 req=`STEPMAKE_NUMERIC_VERSION($3)`
98 if test "$num" -lt "$req"; then
99 STEPMAKE_ADD_ENTRY($2, "$r $3 (installed: $ver)")
103 ### Macros to build configure.in
106 AC_DEFUN(STEPMAKE_BIBTEX2HTML, [
107 STEPMAKE_PROGS(BIBTEX2HTML, bibtex2html bib2html, $1)
108 if test "$BIBTEX2HTML" = "bib2html"; then
109 BIBTEX2HTML_FLAGS='$< $(@)'
111 BIBTEX2HTML_FLAGS='-o $(@D)/$(*F) $<'
113 AC_SUBST(BIBTEX2HTML)
114 AC_SUBST(BIBTEX2HTML_FLAGS)
118 AC_DEFUN(STEPMAKE_BISON, [
119 # ugh, automake: we want (and check for) bison
122 STEPMAKE_PROGS(BISON, bison, $1)
124 # urg. should test functionality rather than version.
125 if test "$BISON" = "bison" -a -n "$2"; then
126 STEPMAKE_CHECK_VERSION(BISON, $1, $2)
131 AC_DEFUN(STEPMAKE_COMPILE, [
132 # -O is necessary to get inlining
134 CXXFLAGS=${CXXFLAGS-$CFLAGS}
135 LDFLAGS=${LDFLAGS-""}
141 AC_ARG_ENABLE(checking,
142 [ --enable-checking set runtime checks (assert calls). Default: on],
143 [checking_b=$enableval] )
145 AC_ARG_ENABLE(debugging,
146 [ --enable-debugging compile with debugging info. Default: on],
147 [debug_b=$enableval])
149 AC_ARG_ENABLE(optimising,
150 [ --enable-optimising compile with optimising. Default: on],
151 [optimise_b=$enableval])
153 AC_ARG_ENABLE(profiling,
154 [ --enable-profiling compile with gprof support. Default: off],
155 [profile_b=$enableval])
158 if test "$checking_b" = no; then
161 DEFINES="$DEFINES -DNDEBUG"
164 if test "$optimise_b" = yes; then
165 OPTIMIZE="-O2 -finline-functions"
169 if test $profile_b = yes; then
171 OPTIMIZE="$OPTIMIZE -pg"
174 if test $debug_b = yes; then
175 OPTIMIZE="$OPTIMIZE -g"
180 STEPMAKE_OPTIONAL_REQUIRED(CC, cc, $1)
184 CFLAGS="$CFLAGS $OPTIMIZE"
185 CPPFLAGS=${CPPFLAGS-""}
187 AC_MSG_CHECKING([for IEEE-conformance compiler flags])
188 save_cflags="$CFLAGS"
191 dnl should do compile test?
192 AC_MSG_RESULT(-mieee)
193 CFLAGS="-mieee $CFLAGS"
196 AC_MSG_RESULT([none])
199 AC_SUBST(cross_compiling)
206 AC_SUBST(EXTRA_LIBES)
209 AC_DEFUN(STEPMAKE_CXX, [
212 STEPMAKE_OPTIONAL_REQUIRED(CXX, c++, $1)
214 CPPFLAGS="$CPPFLAGS $DEFINES"
215 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
216 LDFLAGS="$LDFLAGS $EXTRA_LIBES"
225 AC_DEFUN(STEPMAKE_CXXTEMPLATE, [
226 AC_CACHE_CHECK([whether explicit instantiation is needed],
227 lily_cv_need_explicit_instantiation,
229 template <class T> struct foo { static int baz; };
230 template <class T> int foo<T>::baz = 1;
231 ], [ return foo<int>::baz; ],
232 lily_cv_need_explicit_instantiation=no,
233 lily_cv_need_explicit_instantiation=yes))
234 if test x"$lily_cv_need_explicit_instantiation"x = x"yes"x; then
235 AC_DEFINE(NEED_EXPLICIT_INSTANTIATION)
240 AC_DEFUN(STEPMAKE_DATADIR, [
241 if test "$datadir" = "\${prefix}/share"; then
242 datadir='${prefix}/share/'$package/$FULL_VERSION
244 DIR_DATADIR=${datadir}
246 if test "$prefix" = "NONE"; then
247 presome=${ac_default_prefix}
249 DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
252 AC_SUBST(DIR_DATADIR)
254 # we used to set DIR_SHAREDSTATEDIR here,
255 # but apparently that broke something
257 AC_DEFINE_UNQUOTED(DIR_DATADIR, "${DIR_DATADIR}")
261 AC_DEFUN(STEPMAKE_END, [
265 AC_OUTPUT($CONFIGFILE.make:config.make.in)
268 if test -n "$OPTIONAL"; then
270 echo "WARNING: Please consider installing optional programs: $OPTIONAL"
273 if test -n "$REQUIRED"; then
275 echo "ERROR: Please install required programs: $REQUIRED"
278 if test -n "$OPTIONAL$REQUIRED"; then
280 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
281 echo "Remove config.cache before rerunning ./configure"
284 if test -n "$REQUIRED"; then
285 rm -f $srcdir/GNUmakefile
289 # regular in-place build
290 # test for srcdir_build = yes ?
291 if test "$builddir" = "."; then
292 rm -f $srcdir/GNUmakefile
293 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
294 chmod 444 $srcdir/GNUmakefile
295 else # --srcdir build
297 cp $srcdir/make/srcdir.make.in GNUmakefile
298 chmod 444 GNUmakefile
303 AC_DEFUN(STEPMAKE_FLEX, [
304 # ugh, automake: we want (and check for) flex
306 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
310 ac_cv_prog_lex_root=lex.yy
311 STEPMAKE_PROGS(FLEX, flex, $1)
315 AC_DEFUN(STEPMAKE_FLEXLEXER, [
316 AC_HAVE_HEADERS(FlexLexer.h, true, false)
317 if test $? -ne 0; then
318 warn='FlexLexer.h (flex package)'
319 STEPMAKE_ADD_ENTRY($1, $warn)
324 AC_DEFUN(STEPMAKE_GCC, [
325 if test "$GCC" = "yes"; then
326 STEPMAKE_CHECK_VERSION(CC, $1, $2)
328 warn="$CC (Please install *GNU* cc)"
329 STEPMAKE_ADD_ENTRY($1, $warn)
334 AC_DEFUN(STEPMAKE_GETTEXT, [
335 DIR_LOCALEDIR=${localedir}
337 if test "$prefix" = "NONE"; then
338 presome=${ac_default_prefix}
340 DIR_LOCALEDIR=`echo ${DIR_LOCALEDIR} | sed "s!\\\${prefix}!$presome!"`
342 AC_SUBST(DIR_LOCALEDIR)
343 AC_DEFINE_UNQUOTED(DIR_LOCALEDIR, "${DIR_LOCALEDIR}")
345 AC_CHECK_LIB(intl, gettext)
346 AC_CHECK_FUNCS(gettext)
350 AC_DEFUN(STEPMAKE_GUILE, [
351 STEPMAKE_PATH_PROG(GUILE, guile, $1)
355 # STEPMAKE_GUILE_FLAGS --- set flags for compiling and linking with Guile
357 # This macro runs the guile-config script, installed with Guile,
358 # to find out where Guile's header files and libraries are
359 # installed. It sets two variables, marked for substitution, as
362 # GUILE_CFLAGS --- flags to pass to a C or C++ compiler to build
363 # code that uses Guile header files. This is almost
364 # always just a -I flag.
366 # GUILE_LDFLAGS --- flags to pass to the linker to link a
367 # program against Guile. This includes -lguile for
368 # the Guile library itself, any libraries that Guile
369 # itself requires (like -lqthreads), and so on. It may
370 # also include a -L flag to tell the compiler where to
371 # find the libraries.
373 AC_DEFUN([STEPMAKE_GUILE_FLAGS], [
374 exe=`STEPMAKE_GET_EXECUTABLE($guile_config)`
375 if test -x $exe; then
376 AC_MSG_CHECKING("guile compile flags")
377 GUILE_CFLAGS="`$guile_config compile`"
378 AC_MSG_RESULT($GUILE_CFLAGS)
379 AC_MSG_CHECKING("guile link flags")
380 GUILE_LDFLAGS="`$guile_config link`"
381 AC_MSG_RESULT($GUILE_LDFLAGS)
383 AC_SUBST(GUILE_CFLAGS)
384 AC_SUBST(GUILE_LDFLAGS)
388 AC_DEFUN(STEPMAKE_GUILE_DEVEL, [
389 ## First, let's just see if we can find Guile at all.
390 AC_MSG_CHECKING("for guile-config")
391 for guile_config in guile-config $target-guile-config $build-guile-config; do
392 AC_MSG_RESULT("$guile_config")
393 if ! $guile_config --version > /dev/null 2>&1 ; then
394 AC_MSG_WARN("cannot execute $guile_config")
395 AC_MSG_CHECKING("if we are cross compiling")
396 GUILE_CONFIG='echo no guile-config'
398 GUILE_CONFIG=$guile_config
402 STEPMAKE_OPTIONAL_REQUIRED(GUILE_CONFIG, $guile_config, $1)
403 if test $? -ne 0; then
404 STEPMAKE_ADD_ENTRY($1, 'guile-config (guile-devel, guile-dev or libguile-dev package)')
407 STEPMAKE_CHECK_SEARCH_RESULT(GUILE_CONFIG)
408 # urg. should test functionality rather than version.
409 if test $? -eq 0 -a -n "$2"; then
410 STEPMAKE_CHECK_VERSION(GUILE_CONFIG, $1, $2)
413 AC_SUBST(GUILE_CONFIG)
416 changequote(<<, >>)dnl
417 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
418 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
419 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
422 AC_DEFINE_UNQUOTED(GUILE_MAJOR_VERSION, $GUILE_MAJOR_VERSION)
423 AC_DEFINE_UNQUOTED(GUILE_MINOR_VERSION, $GUILE_MINOR_VERSION)
424 AC_DEFINE_UNQUOTED(GUILE_PATCH_LEVEL, $GUILE_PATCH_LEVEL)
428 AC_DEFUN(STEPMAKE_GXX, [
429 if test "$GXX" = "yes"; then
430 STEPMAKE_CHECK_VERSION(CXX, $1, $2)
432 warn="$CXX (Please install *GNU* c++)"
433 STEPMAKE_ADD_ENTRY($1, $warn)
438 AC_DEFUN(STEPMAKE_INIT, [
441 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
442 if test x$MY_PATCH_LEVEL != x; then
443 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
446 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
447 changequote(<<, >>)dnl
448 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
449 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
452 # No versioning on directory names of sub-packages
454 stepmake=${datadir}/stepmake
456 if test "$prefix" = "NONE"; then
457 presome=${ac_default_prefix}
459 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
461 # urg, how is this supposed to work?
462 if test "$program_prefix" = "NONE"; then
465 if test "$program_suffix" = "NONE"; then
469 AC_MSG_CHECKING(Package)
470 if test "x$PACKAGE" = "xSTEPMAKE"; then
471 AC_MSG_RESULT(Stepmake package!)
473 AC_MSG_CHECKING(builddir)
474 if test "$srcdir" = "."; then
477 absolute_builddir="`pwd`"
478 package_absolute_builddir="`dirname $absolute_builddir`"
479 package_srcdir="`dirname $srcdir`"
480 builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`"
482 AC_MSG_RESULT($builddir)
484 (cd stepmake 2>/dev/null || mkdir stepmake)
485 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
486 AC_CONFIG_AUX_DIR(bin)
489 AC_MSG_RESULT($PACKAGE)
491 AC_MSG_CHECKING(builddir)
492 if test "$srcdir" = "."; then
496 absolute_builddir="`pwd`"
497 # builddir="`dirname $srcdir`/`basename $absolute_builddir`"
498 builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`"
501 AC_MSG_RESULT($builddir)
502 if expr "$srcdir" : '/' > /dev/null 2>&1; then
504 STEPMAKE_WARN(Absolute --srcdir specified: $srcdir)
507 AC_MSG_CHECKING(for stepmake)
508 # Check for installed stepmake
509 if test -d $stepmake; then
510 AC_MSG_RESULT($stepmake)
512 if test "$absolute_srcdir" != "yes"; then
513 stepmake='$(depth)'/$srcdir/stepmake
515 stepmake=$srcdir/stepmake
517 AC_MSG_RESULT($srcdir/stepmake ($datadir/stepmake not found))
521 $HOME/usr/local/share/stepmake/bin\
522 $HOME/usr/local/lib/stepmake/bin\
523 $HOME/usr/share/stepmake/bin\
524 $HOME/usr/lib/stepmake/bin\
525 /usr/local/share/stepmake/bin\
526 /usr/local/lib/stepmake/bin\
527 /usr/share/stepmake/bin\
528 /usr/lib/stepmake/bin\
530 $srcdir/stepmake/bin\
538 AC_SUBST(PACKAGE_NAME)
539 AC_DEFINE_UNQUOTED(PACKAGE, "${PACKAGE_NAME}")
540 AC_DEFINE_UNQUOTED(TOPLEVEL_VERSION, "${FULL_VERSION}")
542 if test "$package_depth" = "" ; then
545 package_depth="../$package_depth"
548 AC_SUBST(package_depth)
550 AUTOGENERATE="This file was automatically generated by configure"
551 AC_SUBST(AUTOGENERATE)
554 AC_ARG_ENABLE(config,
555 [ --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
556 do \`make conf=CONF' to get output in ./out-CONF],
557 [CONFIGURATION=$enableval])
561 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
562 CONFIGFILE=config$CONFIGSUFFIX
563 AC_SUBST(CONFIGSUFFIX)
566 STEPMAKE_PROGS(MAKE, gmake make, REQUIRED)
567 STEPMAKE_PROGS(FIND, find, REQUIRED)
569 STEPMAKE_PROGS(TAR, tar, REQUIRED)
571 if test "x`uname`" = "xHP-UX"; then
572 AC_PATH_PROG(BASH, bash, /bin/sh)
573 STEPMAKE_WARN(avoiding buggy /bin/sh)
574 AC_PATH_PROG(SHELL, bash, /bin/ksh)
576 AC_PATH_PROG(BASH, bash, /bin/sh)
581 STEPMAKE_PATH_PROG(PYTHON, python, REQUIRED)
583 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
584 $MAKE -v 2> /dev/null | grep GNU > /dev/null
585 if test "$?" = 1; then
586 warn='make (Please install *GNU* make)'
587 # STEPMAKE_WARN($warn)
588 STEPMAKE_ADD_ENTRY(REQUIRED, $warn)
592 if test "$OSTYPE" = "cygwin" -o "$OSTYPE" = "cygwin32" -o "$OSTYPE" = "Windows_NT"; then
593 LN=cp # hard link does not work under cygnus-nt
594 LN_S='cp -r' # symbolic link does not work for native nt
600 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
608 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-sh -c"
610 AC_SUBST(program_prefix)
611 AC_SUBST(program_suffix)
616 AC_DEFINE_UNQUOTED(DIRSEP, '${DIRSEP}')
617 AC_DEFINE_UNQUOTED(PATHSEP, '${PATHSEP}')
626 AC_DEFUN(STEPMAKE_KPATHSEA, [
629 #FIXME --with-xxx is meant for specifying a PATH too,
630 # so this should read: --enable-kpathsea,
631 # or --with-kpathsea-include=PATH --with-kpathsea-lib=PATH
632 AC_ARG_WITH(kpathsea,
633 [ --with-kpathsea use kpathsea lib. Default: on],
634 [kpathsea_b=$with_kpathsea])
636 if test "$kpathsea_b" != "no"; then
637 AC_HAVE_HEADERS(kpathsea/kpathsea.h)
638 AC_CHECK_LIB(kpathsea, kpse_find_file)
639 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.))
641 AC_MSG_CHECKING(whether to use kpathsea)
642 if test "$kpathsea_b" != no; then
651 AC_DEFINE_UNQUOTED(KPATHSEA, $KPATHSEA)
655 AC_DEFUN(STEPMAKE_LIB, [
656 STEPMAKE_PROGS(AR, ar, $1)
658 STEPMAKE_OPTIONAL_REQUIRED(RANLIB, ranlib, $1)
662 AC_DEFUN(STEPMAKE_LIBTOOL, [
664 # **Never** try to set library version numbers so that they correspond
665 # to the release number of your package. This is an abuse that only
666 # fosters misunderstanding of the purpose of library versions.
668 REVISION=$PATCH_LEVEL
669 # CURRENT=$MINOR_VERSION
670 CURRENT=`expr $MINOR_VERSION + 1`
671 # AGE=$(expr $MAJOR_VERSION + 1)
679 AC_DEFUN(STEPMAKE_LOCALE, [
684 AC_ARG_WITH(localedir,
685 [ --with-localedir=LOCALE use LOCALE as locale dir. Default:
686 PREFIX/share/locale ],
687 localedir=$with_localedir,
688 localedir='${prefix}/share/locale')
691 [ --with-lang=LANG use LANG as language to emit messages],
695 AC_MSG_CHECKING(language)
697 En* | en* | Am* | am* | US* | us*)
699 NL | nl | Du* | du* | Ned* | ned*)
708 if test "$lang" = "unknown" ; then
709 STEPMAKE_WARN($language not supported; available are: $ALL_LINGUAS)
715 AC_DEFUN(STEPMAKE_MAKEINFO, [
716 STEPMAKE_PROGS(MAKEINFO, makeinfo, $1)
717 if test "$MAKEINFO" = "makeinfo"; then
718 AC_MSG_CHECKING(whether makeinfo can split html by @node)
720 makeinfo --html --output=out/split <<EOF
722 \input texinfo @c -*-texinfo-*-
723 @setfilename split.info
727 if test -d out/split; then
728 SPLITTING_MAKEINFO=yes
733 STEPMAKE_WARN(your html documentation will be one large file)
737 AC_SUBST(SPLITTING_MAKEINFO)
742 AC_DEFUN(STEPMAKE_MAN, [
743 STEPMAKE_PROGS(GROFF, groff ditroff, $1)
745 STEPMAKE_PROGS(TROFF, troff, $1)
747 STEPMAKE_PROGS(TBL, tbl, $1)
752 AC_DEFUN(STEPMAKE_MSGFMT, [
753 STEPMAKE_PROGS(MSGFMT, msgfmt, $1)
757 # Check for program ($2), set full path result to ($1).
758 # If missing, add entry to missing-list ($3, one of 'OPTIONAL', 'REQUIRED')
759 AC_DEFUN(STEPMAKE_PATH_PROG, [
760 AC_CHECK_PROGS($1, $2, no)
761 STEPMAKE_OPTIONAL_REQUIRED($1, $2, $3)
762 if test $? -eq 0; then
764 if test -n "$4"; then
765 STEPMAKE_CHECK_VERSION($1, $3, $4)
771 # Check for program in set of names ($2), set result to ($1) .
772 # If missing, add entry to missing-list ($3, one of 'OPTIONAL', 'REQUIRED')
773 # If exists, and a minimal version ($4) is required
774 AC_DEFUN(STEPMAKE_PROGS, [
775 AC_CHECK_PROGS($1, $2, no)
776 STEPMAKE_OPTIONAL_REQUIRED($1, $2, $3)
777 if test $? -eq 0 -a -n "$4"; then
778 STEPMAKE_CHECK_VERSION($1, $3, $4)
783 AC_DEFUN(STEPMAKE_PERL, [
784 STEPMAKE_PATH_PROG(PERL, perl, $1)
788 AC_DEFUN(STEPMAKE_PYTHON_DEVEL, [
789 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)
790 if test -z "$PYTHON_HEADER"; then
791 warn='python.h (python-devel, python-dev or libpython-dev package)'
792 STEPMAKE_ADD_ENTRY($1, $warn)
797 AC_DEFUN(STEPMAKE_TEXMF_DIRS, [
798 AC_ARG_ENABLE(tfm-path,
799 [ --enable-tfm-path=PATH set path of tex directories where tfm files live,
800 esp.: cmr10.tfm. Default: use kpsewhich],
801 [tfm_path=$enableval],
805 STEPMAKE_PROGS(KPSEWHICH, kpsewhich, OPTIONAL)
806 AC_MSG_CHECKING(for tfm path)
810 if test "x$tfm_path" = xauto ; then
811 if test "x$KPSEWHICH" != "xno" ; then
812 for i in $TFM_FONTS; do
813 dir=`$KPSEWHICH tfm ${i}10.tfm`
814 TFM_PATH="$TFM_PATH `dirname $dir`"
817 STEPMAKE_WARN(Please specify where cmr10.tfm lives:
818 ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts)
824 TFM_PATH=`echo $TFM_PATH | tr ':' ' '`
825 AC_MSG_RESULT($TFM_PATH)
830 AC_DEFUN(STEPMAKE_TEXMF, [
831 # urg, never know what names these teTeX guys will think up
833 STEPMAKE_PROGS(METAFONT, mf mfont, $1)
834 STEPMAKE_PROGS(INIMETAFONT, inimf inimfont, $1)
836 AC_MSG_CHECKING(for working metafont mode)
837 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
838 for MFMODE in $modelist; do
839 $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
840 if test -f mfput.tfm; then
844 AC_MSG_RESULT($MFMODE)
852 AC_DEFUN(STEPMAKE_WARN, [