3 echo "buildconf: checking installation..."
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."
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."
20 echo "buildconf: autoconf version $ac_version (ok)"
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
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."
37 lt_version=`echo $lt_pversion|sed -e 's/\([a-z]*\)$/.\1/'`
38 IFS=.; set $lt_version; IFS=' '
40 if test "$1" = "1"; then
41 if test "$2" -lt "3"; then
44 if test "$2" = "3"; then
45 if test -z "$3" -o "$3" = "1" -o "$3" = "2"; then
51 if test $lt_status = "good"; then
52 echo "buildconf: libtool version $lt_pversion (ok)"
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."