~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to srclib/apr/build/buildcheck.sh

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
echo "buildconf: checking installation..."
 
4
 
 
5
# any python
 
6
python=`build/PrintPath python`
 
7
if test -z "$python"; then
 
8
echo "buildconf: python not found."
 
9
echo "           You need python installed"
 
10
echo "           to build APR from SVN."
 
11
exit 1
 
12
else
 
13
py_version=`python -c 'import sys; print sys.version' 2>&1|sed 's/ .*//;q'`
 
14
echo "buildconf: python version $py_version (ok)"
 
15
fi
 
16
 
 
17
# autoconf 2.50 or newer
 
18
ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed -e 's/^[^0-9]*//;s/[a-z]* *$//;q'`
 
19
if test -z "$ac_version"; then
 
20
echo "buildconf: autoconf not found."
 
21
echo "           You need autoconf version 2.50 or newer installed"
 
22
echo "           to build APR from SVN."
 
23
exit 1
 
24
fi
 
25
IFS=.; set $ac_version; IFS=' '
 
26
if test "$1" = "2" -a "$2" -lt "50" || test "$1" -lt "2"; then
 
27
echo "buildconf: autoconf version $ac_version found."
 
28
echo "           You need autoconf version 2.50 or newer installed"
 
29
echo "           to build APR from SVN."
 
30
exit 1
 
31
else
 
32
echo "buildconf: autoconf version $ac_version (ok)"
 
33
fi
 
34
 
 
35
# Sample libtool --version outputs:
 
36
# ltmain.sh (GNU libtool) 1.3.3 (1.385.2.181 1999/07/02 15:49:11)
 
37
# ltmain.sh (GNU libtool 1.1361 2004/01/02 23:10:52) 1.5a
 
38
# output is multiline from 1.5 onwards
 
39
 
 
40
# Require libtool 1.4 or newer
 
41
libtool=`build/PrintPath glibtool libtool libtool15 libtool14`
 
42
lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
 
43
if test -z "$lt_pversion"; then
 
44
echo "buildconf: libtool not found."
 
45
echo "           You need libtool version 1.4 or newer installed"
 
46
echo "           to build APR from SVN."
 
47
exit 1
 
48
fi
 
49
lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'`
 
50
IFS=.; set $lt_version; IFS=' '
 
51
lt_status="good"
 
52
if test "$1" = "1"; then
 
53
   if test "$2" -lt "4"; then
 
54
      lt_status="bad"
 
55
   fi
 
56
fi
 
57
if test $lt_status = "good"; then
 
58
   echo "buildconf: libtool version $lt_pversion (ok)"
 
59
   exit 0
 
60
fi
 
61
 
 
62
echo "buildconf: libtool version $lt_pversion found."
 
63
echo "           You need libtool version 1.4 or newer installed"
 
64
echo "           to build APR from SVN."
 
65
 
 
66
exit 1