3 # Change to source tree
5 [ -z "$srcdir" ] ||
cd "$srcdir"
10 # If GIT_DIR is set, use it. If not, try ".git".
11 if test -n "$GIT_DIR"; then :;
12 else GIT_DIR
=".git"; export GIT_DIR
15 # Check whether the version needs to be updated from VCS/version-stamp
16 if [ -d "$GIT_DIR" ] && [ -d "autom4te.cache" ]; then
17 git_describe
=`./build-utils/package-version . version-stamp`
18 for f
in autom4te.cache
/output.
*; do
19 [ -f "$f" ] ||
continue
20 pkg_ver
=`${SED} -n "s/^PACKAGE_VERSION='\(.*\)'\$/\1/p" "$f"`
21 if [ "x$pkg_ver" = "x$git_describe" ]
24 echo "Cleaning out autom4te.cache (${pkg_ver} -> ${git_describe})"
25 rm -rf "autom4te.cache"
31 echo "Generating configure files... may take a while."
33 autoreconf
--install --force && \
34 echo "Preparing was successful if there was no error messages above." && \
36 echo " ./configure && make" && \
37 echo "Run './configure --help' for more information"