forked from chaos/pdsh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify the bootstrap file after autotools updates.
- Loading branch information
Showing
1 changed file
with
7 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,9 @@ | ||
#!/bin/sh | ||
# $Id$ | ||
# $Source$ | ||
# | ||
# Run this script to generate aclocal.m4, config.h.in, | ||
# Makefile.in's, and ./configure... | ||
# | ||
# To specify extra flags to aclocal (include dirs for example), | ||
# set ACLOCAL_FLAGS | ||
# | ||
|
||
DIE=0 | ||
|
||
# minimum required versions of autoconf/automake: | ||
ACMAJOR=2 | ||
ACMINOR=52 | ||
|
||
AMMAJOR=1 | ||
AMMINOR=4 | ||
AMPATCH=4 | ||
|
||
LTLMAJOR=1 | ||
LTLMINOR=4 | ||
LTLPATCH=3 | ||
|
||
# auxdir location | ||
AUXDIR=config | ||
|
||
(autoconf --version 2>&1 | \ | ||
perl -n0e "(/(\d+)\.(\d+)/ && \$1>=$ACMAJOR && \$2>=$ACMINOR) || exit 1") || { | ||
echo | ||
echo "Error: You must have \`autoconf' version $ACMAJOR.$ACMINOR or greater" | ||
echo "installed to run $0. Get the latest version from" | ||
echo "ftp://ftp.gnu.org/pub/gnu/autoconf/" | ||
echo | ||
NO_AUTOCONF=yes | ||
DIE=1 | ||
} | ||
|
||
versiontest=" | ||
if (/(\d+)\.(\d+)((-p|\.)(\d+))*/) { | ||
exit 1 if (\$1 < $AMMAJOR); | ||
exit 1 if (\$1 == $AMMAJOR && \$2 < $AMMINOR); | ||
if (defined(\$5)) { | ||
exit 1 if (\$1 == $AMMAJOR && \$2 == $AMMINOR && \$5 < $AMPATCH); | ||
} | ||
}" | ||
|
||
(automake --version 2>&1 | perl -n0e "$versiontest" ) || { | ||
echo | ||
echo "Error: You must have \`automake' version $AMMAJOR.$AMMINOR-p$AMPATCH or greater" | ||
echo "installed to run $0. Get the latest version from" | ||
echo "ftp://ftp.gnu.org/pub/gnu/automake/" | ||
echo | ||
NO_AUTOCONF=yes | ||
DIE=1 | ||
} | ||
|
||
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || { | ||
echo | ||
echo "Error: \`aclocal' appears to be missing. The installed version of" | ||
echo "\`automake' may be too old. Get the most recent version from" | ||
echo "ftp://ftp.gnu.org/pub/gnu/automake/" | ||
echo | ||
NO_ACLOCAL=yes | ||
DIE=1 | ||
} | ||
|
||
versiontest=" | ||
if ( / (\d+)\.(\d+)\.(\d+)/) { | ||
exit 1 if (\$1 < $LTLMAJOR); | ||
exit 1 if (\$1 == $LTLMAJOR && \$2 < $LTLMINOR); | ||
if (defined(\$3)) { | ||
exit 1 if (\$1 == $LTLMAJOR && \$2 == $LTLMINOR && \$3 < $LTLPATCH); | ||
} | ||
}" | ||
|
||
(libtoolize --version 2>&1 | perl -n0e "$versiontest") || { | ||
echo | ||
echo "Warning: On some systems, libtoolize versions < 1.4.3 may not" | ||
echo "install necessary files correctly. Get the most recent" | ||
echo "version of libtool from" | ||
echo "ftp://ftp.gnu.org/gnu/libtool/" | ||
echo | ||
} | ||
|
||
if test $DIE -eq 1; then | ||
exit 1 | ||
fi | ||
|
||
echo "running aclocal $ACLOCAL_FLAGS ... " | ||
aclocal -I $AUXDIR $ACLOCAL_FLAGS | ||
echo "running libtoolize ..." | ||
echo "Running libtoolize --automake --copy ... " | ||
libtoolize --automake --copy | ||
echo "running autoheader ... " | ||
autoheader | ||
echo "running automake --add-missing ... " | ||
# ensure AUXDIR exists | ||
if test ! -d $AUXDIR; then | ||
mkdir $AUXDIR | ||
fi | ||
automake --copy --add-missing | ||
echo "running autoconf ... " | ||
autoconf --warnings=all | ||
echo "Running autoreconf --verbose --install -I config" | ||
autoreconf --verbose --install -I config | ||
echo "Cleaning up ..." | ||
mv aclocal.m4 config/ | ||
rm -rf autom4te.cache | ||
echo "Now run ./configure." |