# First, back up the good libintl.h and locale.alias, since
# 'make install' will stomp on them:
mkdir /tmp/real-headers
cp -a /usr/include/libintl.h /tmp/real-headers
cp -a /usr/share/locale/locale.alias /tmp/real-headers

# Build and install:
tar xzvf gettext-0.10.35.tar.gz
cd gettext-0.10.35
./configure --prefix=/usr --with-included-gettext i386-slackware-linux
make
make install
mkdir -p /usr/doc/gettext-0.10.35
cp -a ABOUT-NLS AUTHORS BUGS COPYING ChangeLog DISCLAIM INSTALL \
  NEWS README-alpha README.gemtext THANKS TODO /usr/doc/gettext-0.10.35
chown root.root /usr/doc/gettext-0.10.35/*
chmod 644 /usr/doc/gettext-0.10.35/*

# Remove library that glibc2 makes obsolete:
rm /usr/lib/libintl.a

# Now, put the real files back:
mv /tmp/real-headers/libintl.h /usr/include
mv /tmp/real-headers/locale.alias /usr/share/locale/locale.alias
rmdir /tmp/real-headers
