abinfo "Drop APACHE_THREADED_MPM keys from sapi/apache2handler/config.m4, configure ..."
sed -e '/APACHE_THREADED_MPM=/d' \
    -i "$SRCDIR"/sapi/apache2handler/config.m4 \
    -i "$SRCDIR"/configure

abinfo "Setting $PKGVER in postinst ..."
sed -e "s/TEMPVER/$PKGVER/g" \
    -i "$SRCDIR"/autobuild/postinst

for i in $(find "$SRCDIR" -name config.guess -o -name config.sub); do \
    abinfo "Copying replacement $i ..."
    # FIXME: hard-coded automake version.
    # Adapted from redhat-rpm-config.
    # https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/rawhide/f/macros#_192
        cp -v "/usr/bin/$(basename "$i")" "$i" \
            || abdie "Failed to copy replacement $i: $?."; \
done
