3 # helps bootstrapping am-utils, when checked out from CVS
4 # requires GNU autoconf and GNU automake
5 # this is not meant to go into the distributions
6 # Erez Zadok <ezk@cs.columbia.edu>
9 local v="$(autoreconf --version 2>&1 | head -1)"
12 *) echo "am-utils requires autoconf 2.69, you have:"
19 test -f ../amd/amd.c && cd ..
20 if [ ! -f amd/amd.c ]; then
21 echo "Must run $0 from the top level source directory."
25 # validate macros directory and some macro files
26 if [ ! -d m4/macros ]; then
27 echo No m4/macros directory found!
30 if [ ! -f m4/macros/HEADER ]; then
31 echo No m4/macros/HEADER file found!
35 # remove any remaining autom4te.cache directory
36 rm -fr autom4te.cache autom4te-*.cache
38 # generate acinclude.m4 file
39 echo "AMU: prepare acinclude.m4..."
40 test -f acinclude.m4 && mv -f acinclude.m4 acinclude.m4.old
42 for i in HEADER *.m4; do
50 # generate the rest of the scripts
51 echo "AMU: autoreconf..."
53 if autoreconf -f -i; then
56 echo "autoreconf command failed. fix errors and rerun $0."
61 echo "AMU: save timestamp..."
62 echo timestamp > stamp-h.in