xref: /PHP-5.3/TSRM/buildconf (revision 60d87e19)
1#!/bin/sh
2
3case "$1" in
4--copy)
5	automake_flags=--copy
6	shift
7;;
8esac
9
10libtoolize --force --automake $automake_flags
11
12mv aclocal.m4 aclocal.m4.old 2>/dev/null
13aclocal
14if cmp aclocal.m4.old aclocal.m4 > /dev/null 2>&1; then
15    echo "buildconf: keeping ${1}aclocal.m4"
16    mv aclocal.m4.old aclocal.m4
17else
18    echo "buildconf: created or modified ${1}aclocal.m4"
19fi
20
21autoheader
22
23automake --add-missing --include-deps $automake_flags
24
25mv configure configure.old 2>/dev/null
26autoconf
27if cmp configure.old configure > /dev/null 2>&1; then
28    echo "buildconf: keeping ${1}configure"
29    mv configure.old configure
30else
31    echo "buildconf: created or modified ${1}configure"
32fi
33
34