blob: 3268bc94de8845664953d15782210e9de637f8f5 [file] [log] [blame]
Brian Silverman70325d62015-09-20 17:00:43 -04001#!/bin/sh
2
3# Before using, you should figure out all the .m4 macros that your
4# configure.m4 script needs and make sure they exist in the m4/
5# directory.
6#
7# These are the files that this script might edit:
8# aclocal.m4 configure Makefile.in src/config.h.in \
9# depcomp config.guess config.sub install-sh missing mkinstalldirs \
10#
11# Here's a command you can run to see what files aclocal will import:
12# aclocal -I ../autoconf --output=- | sed -n 's/^m4_include..\([^]]*\).*/\1/p'
13
14# Because libtoolize isn't in the hermetic build, autogen doesn't run it.
15# However, it should be run manually periodically to update these files:
16# in .: ltmain.sh
17# in m4: libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 lt~obsolete.m4
18
19set -ex
20rm -rf autom4te.cache
21
22aclocal --force -I m4
23#grep -q LIBTOOL configure.ac && libtoolize -c -f
24autoconf -f -W all,no-obsolete
25autoheader -f -W all
26automake -a -c -f -W all
27
28rm -rf autom4te.cache
29exit 0