summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2010-07-27 22:50:38 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2010-08-10 19:39:21 +0200
commitcd5520e4395eda08ee9db9df8f31f1140acd55fe (patch)
treed7fd73889ac9054b2aac69c2958afb37593946f9 /bootstrap
parent103367103228d5ae88df7aace5c87c5e82d82e11 (diff)
downloadautomake-cd5520e4395eda08ee9db9df8f31f1140acd55fe.tar.gz
Bootstrap: don't search perl in $PATH.
* bootstrap: Do not explicitly search perl in $PATH anymore. ($PATH_SEPARATOR): Removed, it's no more needed.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap32
1 files changed, 2 insertions, 30 deletions
diff --git a/bootstrap b/bootstrap
index ebcedbe83..f72346f79 100755
--- a/bootstrap
+++ b/bootstrap
@@ -19,46 +19,18 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Find the path separator.
-# (Snippet copied from configure's initialization in Autoconf 2.65)
-if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
-fi
-
# Don't ignore failures.
set -e
# Set program basename.
me=`echo "$0" | sed 's,^.*/,,'`
-# Let user choose which version of autoconf and autom4te to use.
+# Let user choose which version of autoconf, autom4te and perl to use.
: ${AUTOCONF=autoconf}
export AUTOCONF # might be used by aclocal and/or automake
: ${AUTOM4TE=autom4te}
export AUTOM4TE # ditto
-
-# Find perl. Code based on Autoconf, but without non-POSIX support.
-if test -z "$PERL"; then
- save_IFS=$IFS
- IFS=$PATH_SEPARATOR
- for dir in $PATH; do
- IFS=$save_IFS
- test -z "$dir" && dir=.
- if test -x "$dir/perl" && test ! -d "$dir/perl"; then
- PERL="$dir/perl"
- break
- fi
- done
-fi
-
-if test -z "$PERL"; then
- echo "$me: cannot find perl" >&2
- exit 1
-fi
+: ${PERL=perl}
# Variables to substitute.
VERSION=`sed -ne '/AC_INIT/s/^[^[]*\[[^[]*\[\([^]]*\)\].*$/\1/p' configure.ac`