source: trunk/m4/acltx_prog_pdflatex.m4 @ 1998

Last change on this file since 1998 was 1998, checked in by Peter, 12 years ago

Merged patch release 0.5.4 to the trunk. Delta 0.5.4 - 0.5.3

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Date
File size: 1.4 KB
Line 
1# ===========================================================================
2#          http://autoconf-archive.cryp.to/acltx_prog_pdflatex.html
3# ===========================================================================
4#
5# SYNOPSIS
6#
7#   AC_PROG_PDFLATEX
8#
9# DESCRIPTION
10#
11#   This macro find a pdflatex application and set the variable pdflatex to
12#   the name of the application or to no if not found if ACTION-IF-NOT-FOUND
13#   is not specified, configure fail when then application is not found.
14#
15# LICENSE
16#
17#   Copyright (c) 2008 Boretti Mathieu <boretti@eig.unige.ch>
18#
19#   This library is free software; you can redistribute it and/or modify it
20#   under the terms of the GNU Lesser General Public License as published by
21#   the Free Software Foundation; either version 2.1 of the License, or (at
22#   your option) any later version.
23#
24#   This library is distributed in the hope that it will be useful, but
25#   WITHOUT ANY WARRANTY; without even the implied warranty of
26#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
27#   General Public License for more details.
28#
29#   You should have received a copy of the GNU Lesser General Public License
30#   along with this library. If not, see <http://www.gnu.org/licenses/>.
31
32AC_DEFUN([ACLTX_PROG_PDFLATEX],[
33AC_CHECK_PROGS(pdflatex,[pdflatex],no)
34if test $pdflatex = "no" ;
35then
36  ifelse($#,0,[AC_MSG_ERROR([Unable to find the pdflatex application])],
37        $1)
38fi
39])
Note: See TracBrowser for help on using the repository browser.