Building with gettext >= 0.24
FYI in case helpful.
I have nightly builds of dovecot and the build stopped working with latest gettext.
Here's the "fix" I use - I have reported this to the dovecot mail list and hopefully it will get fixed upstream at some point.
In meantime, I run this script from PKGBUILD - you may well have a "nicer" way to do this but at least this works:
#!/usr/bin/bash
# configure.ac needs to be updated
# for gettext >= 0.24
file="configure.ac"
fixed=$(grep AM_GNU_GETTEXT $file)
if [ "$fixed" != "" ] ; then
echo "fix: configure.ac - no fix needed"
exit
fi
echo "Fixing configure.ac for newer gettext"
version=$(gettext -V |grep '^gettext (GNU' | cut -d' ' -f4)
rsync -a configure.ac configure.ac.ORIG
sed -i "/^AM_INIT_AUTOMAKE/i \
AM_GNU_GETTEXT([external])\n\
AM_GNU_GETTEXT_VERSION($version)" configure.ac
Edited by Gene ArchSSO