Re: [Groff] error handling if Perl is not suitable

2013-04-14 Thread Bernd Warken
> Von: "Ralph Corderoy" > > Werner wrote: > > The current configure test for perl should be extended to abort if > > perl isn't found. > > It's been a long time since I autoconf'd, but AC_MSG_ERROR([perl not > found]) to bail out of configure may be useful. Thanx, that's very helpful. Bernd Wa

Re: [Groff] error handling if Perl is not suitable

2013-04-14 Thread Ralph Corderoy
Hi Bernd, Werner wrote: > The current configure test for perl should be extended to abort if > perl isn't found. It's been a long time since I autoconf'd, but AC_MSG_ERROR([perl not found]) to bail out of configure may be useful. Cheers, Ralph.

Re: [Groff] error handling if Perl is not suitable

2013-04-13 Thread Werner LEMBERG
> It would make sense to install this Perl error handling at a single > space somewhere in the configure place. > > Has anyone an idea how this could be made or where one can learn how > to do this. The current configure test for perl should be extended to abort if perl isn't found. Werner

Re: [Groff] error handling if Perl is not suitable

2013-04-13 Thread Werner LEMBERG
> have_perl: > @command -v perl || ( echo "need perl" >&2; exit 1 ) > > Add that to the Makefile and make have_perl a prerequisite for some > early target. Nice, but... > Would that do what you want? no. The test for perl should be at configure time, not runtime. Werner

Re: [Groff] error handling if Perl is not suitable

2013-04-13 Thread Bernd Warken
> Von: "James K. Lowden" > > On Fri, 12 Apr 2013 21:48:49 +0200 (CEST) > "Bernd Warken" wrote: > > > It would make sense to install this Perl error handling at a single > > space somewhere in the configure place. > > > > Has anyone an idea how this could be made or where one can learn how > > t

Re: [Groff] error handling if Perl is not suitable

2013-04-13 Thread James K. Lowden
On Fri, 12 Apr 2013 21:48:49 +0200 (CEST) "Bernd Warken" wrote: > It would make sense to install this Perl error handling at a single > space somewhere in the configure place. > > Has anyone an idea how this could be made or where one can learn how > to do this. have_perl: @command -v p

Re: [Groff] error handling if Perl is not suitable

2013-04-12 Thread Bernd Warken
> Von: "Werner LEMBERG" > > > [...] nowhere is an error handling for the case that Perl is not > > installed or if the installed Perl does not have a suitable version. > > Indeed! This surprises me, actually :-) > > > Is it necessary to add such an error handling somewhere in the > > configu

Re: [Groff] error handling if Perl is not suitable

2013-04-12 Thread Werner LEMBERG
> [...] nowhere is an error handling for the case that Perl is not > installed or if the installed Perl does not have a suitable version. Indeed! This surprises me, actually :-) > Is it necessary to add such an error handling somewhere in the > configuration or in the Makefiles? It would be a

[Groff] error handling if Perl is not suitable

2013-04-12 Thread Bernd Warken
Meanwhile groff has quite a lot of Perl files: ./src/utils/afmtodit/afmtodit.pl ./src/devices/gropdf/gropdf.pl ./src/devices/gropdf/pdfmom.pl ./src/roff/grog/perl_test.pl ./src/roff/grog/grog.pl ./font/devpdf/util/BuildFoundries.pl ./tmac/hyphenex.pl ./contrib/glilypond/perl_test.pl ./contrib/glil