commit c75001aa7dcc095cb05bd29a08e027b2cae60a44 Author: Oswald Buddenhagen <o...@users.sf.net> Date: Sun Oct 15 11:34:50 2017 +0200
add check for perl and its version configure.ac | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/configure.ac b/configure.ac index c7dcce9..c901352 100644 --- a/configure.ac +++ b/configure.ac @@ -11,6 +11,23 @@ fi CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" +AC_CHECK_PROG(PERL, perl, perl) +if test "x$PERL" = "x"; then + AC_MSG_ERROR([perl not found]) +fi + +need_perl=5.14 +AC_CACHE_CHECK([whether perl is recent enough], ob_cv_perl_ver, [ + if $PERL -e "use v$need_perl;"; then + ob_cv_perl_ver=yes + else + ob_cv_perl_ver=no + fi +]) +if test "x$ob_cv_perl_ver" = "xno"; then + AC_MSG_ERROR([perl is too old]) +fi + AC_CACHE_CHECK([whether strftime supports %z], ob_cv_strftime_z, [AC_TRY_RUN( [#include <time.h> ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel