From 198e557c5586aeb2e1ffe06e7db1c974950d470c Mon Sep 17 00:00:00 2001 From: bwarken Date: Sun, 14 Apr 2013 23:11:00 +0000 Subject: Add Perl test to the configuration. --- m4/groff.m4 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'm4') diff --git a/m4/groff.m4 b/m4/groff.m4 index cf105b2f..6f751ffd 100644 --- a/m4/groff.m4 +++ b/m4/groff.m4 @@ -2,7 +2,7 @@ # Copyright (C) 1989-1995, 2001-2007, 2009, 2011, 2013 # Free Software Foundation, Inc. # -# Last update: 28 Mar 2013 +# Last update: 14 Apr 2013 # # This file is part of groff. # @@ -58,6 +58,19 @@ AC_DEFUN([GROFF_PRINT], AC_DEFUN([GROFF_PROG_YACC], [AC_CHECK_PROGS([YACC], [byacc 'bison -y'], [yacc])]) + +# We need Perl 5.6.1 or newer. + +AC_DEFUN([GROFF_PERL], + [PERLVERSION=v5.6.1 + AC_PATH_PROG([PERL], [perl], [no]) + if test "$PERL" = "no"; then + AC_MSG_ERROR([perl binary not found], 1) + fi + AX_PROG_PERL_VERSION([$PERLVERSION], PERLPATH=$PERL, \ + AC_MSG_ERROR([perl version is too old], 1))]) + + # We need makeinfo 4.8 or newer. AC_DEFUN([GROFF_MAKEINFO], -- cgit v1.2.1