ERROR: Slooooow dooooown... this page load was delayed.


m4 - Macro processor ChangeLog

HOWTO


# GNU m4 1.4.19
# =============
# Slackware 13.37, 14.0: m4 1.4.16
# Slackware 14.1, 14.2: m4 1.4.17

# If the download site used below is busy, try one of these:
# http://mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/m4/
# http://ftp.gnu.org/gnu/m4/
# ftp://ftp.gnu.org/gnu/m4/

# Get it
cd
test -f installed/m4-1.4.19.tar.xz && mv installed/m4-1.4.19.tar.xz .
test ! -f m4-1.4.19.tar.xz &&
wget http://ftpmirror.gnu.org/m4/m4-1.4.19.tar.xz

# Verify tarball w/ sha256sum:
# (this came from my gpg-verified tarball)
echo "63aede5c6d33b6d9b13511cd0be2cac046f2e70fd0a07aa9573a04a82783af\
96  m4-1.4.19.tar.xz" | sha256sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 2527436A > /dev/null 2>&1 || gpg --recv-keys 2527436A ) &&
wget -nc http://ftpmirror.gnu.org/m4/m4-1.4.19.tar.xz.sig &&
  gpg --verify m4-1.4.19.tar.xz.sig && rm m4-1.4.19.tar.xz.sig

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "m4-*" -exec rm -r {} \;
tar xJvf ~/m4-1.4.19.tar.xz
cd m4-1.4.19
test $UID = 0 && chown -R root:root .

# If you will only be using m4 in English and want to save the extra spaces
# usued by translations, add --disable-nls

# Configure the build
./configure --prefix=/usr --infodir=/usr/info --mandir=/usr/man

# Build it
make

# Test the build
make check

# Become root to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg m4

# Remove files from old versions that still have ansi2knr
rm -f /usr/bin/ansi2knr /usr/man/man1/ansi2knr.1 \
/usr/share/man/man1/ansi2knr.1

# Install the new version
make install

# Become your non-root user again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/m4-*.tar.*
mv m4-1.4.19.tar.xz installed/


# If you ever want to uninstall m4, this should do it:
cd
su
test -d src/m4-* && ( cd src/m4-* ; make uninstall )
find /usr/share/locale/*/LC_MESSAGES/ -type f -name m4.mo -exec rm {} \;
rm -f /usr/bin/m4 /usr/info/m4.info /usr/man/man1/m4.1 \
/usr/share/info/m4.info /usr/share/man/man1/m4.1
exit
find ~/src -maxdepth 1 -type d -name "m4-*" -exec rm -r {} \;
rm -f ~/installed/m4-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2021-11-22 1:13am
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]