bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / srclib / apr / build / buildcheck.sh
1 #! /bin/sh
2
3 echo "buildconf: checking installation..."
4
5 # autoconf 2.13 or newer
6 ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;q'`
7 if test -z "$ac_version"; then
8 echo "buildconf: autoconf not found."
9 echo "           You need autoconf version 2.13 or newer installed"
10 echo "           to build Apache from CVS."
11 exit 1
12 fi
13 IFS=.; set $ac_version; IFS=' '
14 if test "$1" = "2" -a "$2" -lt "13" || test "$1" -lt "2"; then
15 echo "buildconf: autoconf version $ac_version found."
16 echo "           You need autoconf version 2.13 or newer installed"
17 echo "           to build Apache from CVS."
18 exit 1
19 else
20 echo "buildconf: autoconf version $ac_version (ok)"
21 fi
22
23 # Sample libtool --version outputs:
24 # ltmain.sh (GNU libtool) 1.3.3 (1.385.2.181 1999/07/02 15:49:11)
25 # ltmain.sh (GNU libtool 1.1361 2004/01/02 23:10:52) 1.5a
26 # output is multiline from 1.5 onwards
27
28 # Require libtool 1.3.3 or newer
29 libtool=`build/PrintPath glibtool libtool`
30 lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
31 if test -z "$lt_pversion"; then
32 echo "buildconf: libtool not found."
33 echo "           You need libtool version 1.3.3 or newer installed"
34 echo "           to build Apache from CVS."
35 exit 1
36 fi
37 lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'`
38 IFS=.; set $lt_version; IFS=' '
39 lt_status="good"
40 if test "$1" = "1"; then
41    if test "$2" -lt "3"; then
42       lt_status="bad"
43    else
44       if test "$2" = "3"; then
45          if test -z "$3" -o "$3" = "1" -o "$3" = "2"; then
46             lt_status="bad"
47          fi
48       fi
49    fi
50 fi
51 if test $lt_status = "good"; then
52    echo "buildconf: libtool version $lt_pversion (ok)"
53    exit 0
54 fi
55
56 echo "buildconf: libtool version $lt_pversion found."
57 echo "           You need libtool version 1.3.3 or newer installed"
58 echo "           to build Apache from CVS."
59
60 exit 1