groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] autoconf for GROFF_PERL


From: Werner LEMBERG
Subject: Re: [Groff] autoconf for GROFF_PERL
Date: Sun, 14 Apr 2013 22:28:00 +0200 (CEST)

>>      AC_PATH_PROG([PERLPATH], [perl], [/usr/bin/perl])
>>      if test -z "$PERLPATH"; then
> 
> I think AC_PATH_PROG sets PERLPATH to /usr/bin/perl if it can't find it
> in PATH, so the test will never be true?
> 
> Perhaps the Autoconf archive is of some use?
> http://www.gnu.org/software/autoconf-archive/ax_prog_perl_version.html
> 
> Cheers, Ralph.
> 

Try something like this:

  AC_PATH_PROG([PERLPATH],
               [perl],
               [no])
  if test "$PERLPATH" = "no"; then
    AC_MSG_ERROR([perl binary not found])
  fi


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]