gschem/po: Apply updated Dutch translations from Bert Timmerman
[geda-gaf/arnaud.git] / m4 / geda-groff.m4
bloba0c7881243e5b409b8b762eda2a485e8a8265cee
1 # geda-groff.m4                                         -*-Autoconf-*-
2 # serial 1
4 dnl Look for GNU troff
5 dnl Copyright (C) 2009  Peter Brett <peter@peter-b.co.uk>
6 dnl
7 dnl This program is free software; you can redistribute it and/or modify
8 dnl it under the terms of the GNU General Public License as published by
9 dnl the Free Software Foundation; either version 2 of the License, or
10 dnl (at your option) any later version.
11 dnl
12 dnl This program is distributed in the hope that it will be useful,
13 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
14 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 dnl GNU General Public License for more details.
16 dnl
17 dnl You should have received a copy of the GNU General Public License
18 dnl along with this program; if not, write to the Free Software
19 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21 AC_DEFUN([AX_PROG_GROFF],
23   AC_PREREQ([2.60])dnl
24   AC_ARG_VAR([GROFF], [Path to groff executable])
25   AC_CHECK_PROG([GROFF], [groff], [groff], [no])
27   # Some distros are annoying and package groff into a crippled
28   # version without many of the drivers, along with a separate full
29   # version.  So explicitly check for the html driver.
30   if test "X$GROFF" != "Xno" ; then
31     AC_MSG_CHECKING([whether $GROFF has an html driver])
32     echo '.TH conftest 1 "January 1st, 1970" Version 1' > conftest.1
33     if LC_NUMERIC=C $GROFF -man -T html > /dev/null 2>&AS_MESSAGE_LOG_FD; then
34       HAVE_GROFF_HTML=yes
35     else
36       HAVE_GROFF_HTML=no
37     fi
38     rm -f conftest.1
39     AC_MSG_RESULT([$HAVE_GROFF_HTML])
40   fi
42   AM_CONDITIONAL([ENABLE_GROFF_HTML],
43                  [test "X$HAVE_GROFF_HTML" != Xno])
44 ])dnl AX_PROG_GROFF