]>
Commit | Line | Data |
---|---|---|
c7aa54aa | 1 | #!/usr/bin/env bash |
6b66678a | 2 | set -e |
35fa52c0 DWT |
3 | shopt -s expand_aliases |
4 | unalias -a | |
5 | case `uname` in | |
6 | (Linux) | |
7 | libdirs=('/usr/share/gettext') | |
8 | ;; | |
9 | (FreeBSD) | |
10 | alias sed=gsed | |
9c60689e | 11 | libdirs=() |
35fa52c0 DWT |
12 | ;; |
13 | esac | |
c7aa54aa | 14 | aclocal |
35fa52c0 | 15 | sed -e 's/AC_PROG_AWK/dnl &/' -i aclocal.m4 |
309b0535 | 16 | cat `aclocal --print-ac-dir`/check_gnu_make.m4 find_apr.m4 >> aclocal.m4 |
35fa52c0 DWT |
17 | function filter() |
18 | { | |
19 | sed -e '/no proper invocation of AM_INIT_AUTOMAKE was found\./d' \ | |
20 | -e '/You should verify that configure\.ac invokes AM_INIT_AUTOMAKE,/d' \ | |
21 | -e '/that aclocal\.m4 is present in the top-level directory,/d' \ | |
9c60689e DWT |
22 | -e '/and that aclocal\.m4 was recently regenerated (using aclocal)\./d' \ |
23 | -e "/no \`Makefile\.am' found for any configure output/d" \ | |
24 | -e "/Consider adding \`AC_CONFIG_MACRO_DIR(\[m4\])' to configure\.ac and/d" \ | |
25 | -e '/rerunning libtoolize, to keep the correct libtool macros in-tree\./d' \ | |
26 | -e "/Consider adding \`-I m4' to ACLOCAL_AMFLAGS in Makefile\.am\./d" | |
35fa52c0 DWT |
27 | } |
28 | automake -acf 2>&1 | filter | |
29 | for libdir in ${libdirs[*]}; do | |
30 | automake -acf --libdir $libdir 2>&1 | filter | |
31 | done | |
9c60689e DWT |
32 | libtoolize -ci | filter |
33 | autoconf |