K2.6 patches and update.
[tomato.git] / release / src / router / php / TSRM / buildconf
blobfe8dee6f767808868807a44b5766a167ddacabbf
1 #!/bin/sh
3 case "$1" in
4 --copy)
5 automake_flags=--copy
6 shift
7 ;;
8 esac
10 libtoolize --force --automake $automake_flags
12 mv aclocal.m4 aclocal.m4.old 2>/dev/null
13 aclocal
14 if 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
17 else
18 echo "buildconf: created or modified ${1}aclocal.m4"
21 autoheader
23 automake --add-missing --include-deps $automake_flags
25 mv configure configure.old 2>/dev/null
26 autoconf
27 if cmp configure.old configure > /dev/null 2>&1; then
28 echo "buildconf: keeping ${1}configure"
29 mv configure.old configure
30 else
31 echo "buildconf: created or modified ${1}configure"