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), " (expecting $1 or later)\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 /usr/share/aclocal /usr/pack/rrdtool-1.3svn-to/share/aclocal /usr/pack/intltool-0.37.0-to/share/aclocal ; 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"
52 if vcheck 0.35.0 "intltoolize --version"
54 echo "get a copy of GNU intltoolize >= 0.35.0"
69 intltoolize --automake -c -f
71 libtoolize --copy --force
74 $automake --foreign --add-missing --force-missing --copy
77 # vim: set syntax=sh :