From 53bac88ba9b01fa3bae23e3df2f02c721ca0d507 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 5 Jan 2001 11:35:08 +0200 Subject: configure.in Change PERL test to use perl instead of perl5, if possible. configure.in: Change PERL test to use perl instead of perl5, if possible. --- configure.in | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 4a0acd2ab0b..bd42c516baf 100644 --- a/configure.in +++ b/configure.in @@ -296,13 +296,21 @@ AC_PATH_PROG(CMP, cmp, cmp) AC_PATH_PROG(CHMOD, chmod, chmod) AC_PATH_PROG(HOSTNAME, hostname, hostname) dnl We use a path for perl so the script startup works -AC_PATH_PROG(PERL5, perl5, no) +dnl We make sure to use perl, not perl5, in hopes that the RPMs will +dnl not depend on the perl5 binary being installed (probably a bug in RPM) AC_PATH_PROG(PERL, perl, no) -if test "$PERL5" != no +if test "$PERL" != "no" && $PERL -e 'require 5' > /dev/null 2>&1 then - PERL=$PERL5 - ac_cv_path_PERL=$ac_cv_path_PERL5 + PERL5=$PERL +else + AC_PATH_PROG(PERL5, perl5, no) + if test "$PERL5" != no + then + PERL=$PERL5 + ac_cv_path_PERL=$ac_cv_path_PERL5 + fi fi + AC_SUBST(HOSTNAME) AC_SUBST(PERL) AC_SUBST(PERL5) -- cgit v1.2.1