automake-commit
[Top][All Lists]
Advanced

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

[automake-commit] branch master updated: configure: exit explicitly if t


From: Karl Berry
Subject: [automake-commit] branch master updated: configure: exit explicitly if the path to perl contains spaces.
Date: Sat, 27 May 2023 21:10:25 -0400

This is an automated email from the git hooks/post-receive script.

karl pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=7f33a3b841b4339093f6a72de030e49e053fc447

The following commit(s) were added to refs/heads/master by this push:
     new 7f33a3b84 configure: exit explicitly if the path to perl contains 
spaces.
7f33a3b84 is described below

commit 7f33a3b841b4339093f6a72de030e49e053fc447
Author: Bogdan <bogdro_rep@gmx.us>
AuthorDate: Sat May 27 18:10:11 2023 -0700

    configure: exit explicitly if the path to perl contains spaces.
    
    This change ameloriates https://bugs.gnu.org/62896.
    
    * configure.ac: exit explicitly if the result of AC_PATH_PROG for
    perl contains spaces, since shebang lines cannot support such paths.
    * THANKS (Bogdan): add.
---
 THANKS       | 1 +
 configure.ac | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/THANKS b/THANKS
index 1f246151d..f6a745bea 100644
--- a/THANKS
+++ b/THANKS
@@ -52,6 +52,7 @@ Bob Friesenhahn                 bfriesen@simple.dallas.tx.us
 Bob Proulx                      rwp@hprwp.fc.hp.com
 Bob Rossi                       bob@brasko.net
 Bobby Jack                      bobbykjack@yahoo.co.uk
+Bogdan                          bogdro_rep@gmx.us
 Boris Kolpackov                 boris@codesynthesis.com
 Braden N. McDaniel              braden@endoframe.com
 Brandon Black                   blblack@gmail.com
diff --git a/configure.ac b/configure.ac
index d095ccb1a..f78ec5153 100644
--- a/configure.ac
+++ b/configure.ac
@@ -70,7 +70,12 @@ AC_PROG_LN_S
 AC_PATH_PROG([PERL], [perl])
 if test -z "$PERL"; then
    AC_MSG_ERROR([perl not found])
+elif test x"`echo $PERL | grep ' '`" != "x"; then
+  AC_MSG_ERROR([The path to your Perl contains spaces.
+This would cause build failures later or unusable programs.
+Please use a path without spaces and try again.])
 fi
+
 # Save details about the selected perl interpreter in config.log.
 AM_RUN_LOG([$PERL --version])
 $PERL -e 'require 5.006;' || {



reply via email to

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