make sure the grid and label positioner does NOT take the dst state of the current...
[rrdtool.git] / MakeMakefile
1 #!/bin/bash
2 #
3 # Run this script after the first cvs checkout to build
4 # makefiles and friends
5
6 PATH="/usr/pack/automake-1.11-to/amd64-linux-debian3.1/:/usr/pack/automake-1.11-to/amd64-linux-ubuntu8.04/bin:/usr/pack/gettext-0.18.1.1-to/amd64-linux-ubuntu8.04/bin:$PATH"
7 export PATH
8
9 vcheck (){
10   perl <<PERL
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];
15 exit \$v
16 PERL
17 }
18
19 ERROR=0
20 LIBTOOL_VER="1.5.6"
21 AUTOMAKE_VER="1.9.2"
22 AUTOCONF_VER="2.59"
23 LIBTOOL_BIN="libtool"
24
25 # On MAC OS X, GNU libtool is named 'glibtool':
26 if [ `(uname -s) 2>/dev/null` == 'Darwin' ]
27 then
28   LIBTOOL_BIN="glibtool"
29 fi
30
31 if vcheck $LIBTOOL_VER "$LIBTOOL_BIN --version"
32 then
33   echo "get a copy of GNU libtool >= $LIBTOOL_VER"
34   ERROR=1
35 fi
36
37 if vcheck $AUTOMAKE_VER  "automake  --version"
38 then
39   if vcheck $AUTOMAKE_VER  "automake-1.11 --version"
40   then
41     echo "get a copy of GNU automake >= $AUTOMAKE_VER"
42     ERROR=1
43   else
44     AUTOMAKE="automake-1.11"
45     ACLOCAL="aclocal-1.11"
46     export AUTOMAKE ACLOCAL
47   fi
48 fi
49
50
51 if vcheck $AUTOCONF_VER "autoconf --version"
52 then
53   echo "get a copy of GNU autoconf >= $autoconf_ver"
54   ERROR=1
55 fi
56
57 if [ $ERROR -ne 0 ]
58 then
59   exit 1
60 fi
61
62 ./autogen.sh
63
64 # vim: set syntax=sh :