3 # Run this script after the first cvs checkout to build
4 # makefiles and friends
6 PATH="/usr/sepp/bin:$PATH"
11 @t = split /\./, "$1";
12 @v = map { int \$_ } split /\./, (split /\s+/, \`$2\`)[3];
13 print "$2 = ", (join ".",@v), " (expected $1)\n";
14 \$v = \$t[0]*1000000+\$t[1]*1000+\$t[2] <= \$v[0]*1000000+\$v[1]*1000+\$v[2];
21 if vcheck 1.5.14 "libtool --version"
23 echo "get a copy of GNU libtool >= 1.5.14"
27 if vcheck 1.9.5 "automake --version"
29 if vcheck 1.9.5 "automake-1.9 --version"
31 echo "get a copy of GNU automake >= 1.9.5"
36 for d in /usr/pack/automake-1.9.5-to/share/aclocal-1.9 /usr/share/aclocal-1.9; do
37 [ -d $d ] && aclocal="$aclocal -I $d"
43 # aclocal="aclocal -I /usr/pack/libtool-1.5.14-to/share/aclocal"
46 if vcheck 2.59 "autoconf --version"
48 echo "get a copy of GNU autoconf >= 2.59"
59 find . -name Makefile | grep -v win32 | grep -v netware | xargs rm -f _UNKNONW_
60 find . -name "*.la" | xargs rm -f _UNKNOWN_
61 find . -name Makefile.in | xargs rm -f _UNKNONW_
62 find . -name .libs | xargs rm -r
63 find . -name .debs | xargs rm -r
66 libtoolize --copy --force
69 $automake --foreign --add-missing --force-missing --copy