Abort ./configure if we can't find Perl.

This commit is contained in:
Adam Spiers 2011-12-07 20:31:18 +00:00
parent e7e0646db0
commit d88434f16e
2 changed files with 4 additions and 3 deletions

1
NEWS
View file

@ -1,6 +1,7 @@
News file for Stow. News file for Stow.
* Changes in version 2.1.2 * Changes in version 2.1.2
** ./configure now aborts if Perl isn't found.
** Ensured the ChangeLog is up-to-date when making a new distribution. ** Ensured the ChangeLog is up-to-date when making a new distribution.
Thanks to Stefano Lattarini for this suggestion. Thanks to Stefano Lattarini for this suggestion.
* Changes in version 2.1.1 * Changes in version 2.1.1

View file

@ -9,12 +9,12 @@ AC_CONFIG_AUX_DIR([automake])
AM_INIT_AUTOMAKE([-Wall -Werror -Wno-override dist-bzip2]) AM_INIT_AUTOMAKE([-Wall -Werror -Wno-override dist-bzip2])
AC_PROG_INSTALL AC_PROG_INSTALL
dnl Check for perl on our system dnl Check for perl on our system.
dnl call to AC_SUBST(PERL) is implicit dnl Call to AC_SUBST(PERL) is implicit
AC_PATH_PROGS([PERL], [perl] [perl5], [false]) AC_PATH_PROGS([PERL], [perl] [perl5], [false])
if test "x$PERL" = xfalse if test "x$PERL" = xfalse
then then
AC_MSG_WARN([WARNING: Perl not found; you must edit line 1 of 'stow']) AC_MSG_ERROR([Perl not found; check your \$PATH.])
fi fi
AC_ARG_WITH( AC_ARG_WITH(