dnl -*-fundamental-*- *@--GLOB-HEADER--@*
dnl
-dnl $Id: aclocal.glob,v 1.15 2002/02/19 22:50:24 mdw Exp $
+dnl $Id: aclocal.glob,v 1.16 2003/04/23 12:47:22 mdw Exp $
dnl
dnl Common library of autoconf macros
dnl
dnl----- Revision history ---------------------------------------------------
dnl
dnl $Log: aclocal.glob,v $
+dnl Revision 1.16 2003/04/23 12:47:22 mdw
+dnl Add mdw_MANEXT.
+dnl
dnl Revision 1.15 2002/02/19 22:50:24 mdw
dnl Fix spelling. Add new macro which works out where to put TeX files.
dnl
dnl----- Common files distribution --------------------------- *@--NOTICE--@*
dnl
-dnl $Id: aclocal.glob,v 1.15 2002/02/19 22:50:24 mdw Exp $
+dnl $Id: aclocal.glob,v 1.16 2003/04/23 12:47:22 mdw Exp $
dnl --- *@-AM_PROG_CC_STDC-@* ---
dnl
AC_DEFUN([mdw_DIR_TEXMF], [
AC_ARG_WITH([texmfdir],
[ --with-texmfdir=DIR set the TeX install directory to DIR],
-[texmfdir=$witharg],
+[texmfdir=$withval],
[AC_MSG_CHECKING([where to put installed TeX files])
mdw_DEFINE_PATHS([
texmfdir='${datadir}/texmf'
AC_MSG_RESULT([$texmfdir])])])
AC_SUBST(texmfdir)])
+dnl --- *@-mdw_MANEXT-@* ---
+dnl
+dnl Author: Mark Wooding
+dnl
+dnl Synopsis: mdw_MANEXT
+dnl
+dnl Arguments: ---
+dnl
+dnl Use: Sets the substitution `manext' for man page extensions.
+
+AC_DEFUN([mdw_MANEXT], [
+AC_ARG_WITH([man-ext],
+[ --with-man-ext=EXT give manpages the EXT extension (e.g., foo.3EXT)],
+[manext=$withval], [manext=mLib])
+AC_SUBST(manext)])
+
dnl----- That's all, folks --------------------------------- *@--GLOB-END--@*