# Exit on error:
set -e

wget http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
tar xf autoconf-2.69.tar.gz
cd autoconf-2.69

CC=/static/bin/musl-gcc \
    LDFLAGS='-s -L/static/lib -static -static-libgcc' \
    ./configure --prefix=/static

make install
cd ..
rm -rf autoconf-2.69
rm autoconf-2.69.tar.gz

exit 0
