1dnl @synopsis AC_PROG_LATEX 2dnl 3dnl This macro test if latex is installed. If latex is installed, 4dnl set $LATEX to the right value 5dnl 6dnl @category LaTeX 7dnl @author Mathieu Boretti <boretti@bss-network.com> 8dnl @version 2005-01-21 9dnl @license GPLWithACException 10dnl 11dnl Modified 2014-05-30 by Peter Breitenlohner <tex-live@tug.org> 12 13AC_DEFUN([AC_PROG_LATEX], [dnl 14AC_ARG_VAR([LATEX], [LaTeX command]) 15AC_CHECK_PROGS([LATEX], [latex elatex lambda], [no]) 16if test "x$LATEX" = xno 17then 18 AC_MSG_ERROR([Unable to find a LaTeX application]) 19fi 20export LATEX 21AC_SUBST([LATEX]) 22]) 23