= $stitle ?>
HOWTO: autoconf
Description: Generate configuration scripts
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything
# GNU autoconf 2.65
# =================
# Slackware 11.0: autoconf 2.60
# Slackware 12.0, 12.1: autoconf 2.61
# Slackware 12.2, 13.0: autoconf 2.63
# If the download site used below is busy, try one of these:
# http://mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/autoconf/
# http://ftp.gnu.org/gnu/autoconf/
# Prerequisites:
# m4 (>= 1.4.7 is recommended)
# Perl
# configure looks for emacs, but only to see if your shell is running under it
cd
test -f installed/autoconf-2.65.tar.bz2 &&
mv installed/autoconf-2.65.tar.bz2 .
test ! -f autoconf-2.65.tar.bz2 &&
wget http://ftpmirror.gnu.org/autoconf/autoconf-2.65.tar.bz2
# Verify tarball w/ md5sum:
echo "a6de1cc6434cd64038b0a0ae4e252b33 autoconf-2.65.tar.bz2" | md5sum -c
# Verify tarball w/ sha1sum:
echo "9126ffb8d7d59f38f305ef53e208531d4b75bb87 autoconf-2.65.tar.bz2" \
| sha1sum -c
# Verify tarball w/ gpg:
( gpg --list-keys F4850180 > /dev/null 2>&1 || gpg --recv-keys F4850180 ) &&
wget -nc http://ftpmirror.gnu.org/autoconf/autoconf-2.65.tar.bz2.sig &&
gpg --verify autoconf-2.65.tar.bz2.sig && rm autoconf-2.65.tar.bz2.sig
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "autoconf-*" -exec rm -r {} \;
tar xjvf ~/autoconf-2.65.tar.bz2
cd autoconf-2.65
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --infodir=/usr/info --mandir=/usr/man
make
# Become root to install it
su
# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg autoconf
# Install it
make install
# Make sure your non-root user can remove the source later
chown -R $USER .
chmod -R u+w .
# Become yourself again
exit
cd
mkdir -p -m 0700 installed
rm -f installed/autoconf-*.tar.*
mv autoconf-2.65.tar.bz2 installed/
# If you ever want to uninstall autoconf, this should do it:
# ('make uninstall' in the source dir as root should do it, the
# rest is just in case...)
cd
su
test -d src/autoconf-* && ( cd src/autoconf-* ; make uninstall )
( cd /usr/bin ; rm -f autoconf autoheader autom4te autoreconf \
autoscan autoupdate ifnames )
test -d /usr/info &&
( cd /usr/info ; rm -f autoconf.info standards.info )
( cd /usr/man/man1
rm -f autoconf.1 autoheader.1 autom4te.1 autoreconf.1 autoscan.1 \
autoupdate.1 config.guess.1 config.sub.1 )
test -d /usr/share/autoconf && rm -r /usr/share/autoconf
test -d /usr/share/emacs/site-lisp &&
( cd /usr/share/emacs/site-lisp ; rm -f autoconf-mode.el autotest-mode.el )
test -d /usr/share/info &&
( cd /usr/share/info ; rm -f autoconf.info standards.info )
test -d /usr/share/man/man1 &&
( cd /usr/share/man/man1 ; rm -f autoconf.1 autoheader.1 autom4te.1 \
autoreconf.1 autoscan.1 autoupdate.1 config.guess.1 config.sub.1 \
ifnames.1 )
exit
find ~/src -maxdepth 1 -type d -name "autoconf-*" -exec rm -r {} \;
rm -f ~/installed/autoconf-*.tar.*
|
Last updated: Fri, 26 Mar 2010 13:18:56 -0400 Jason Englander <jason at englanders dot us> |
|