Annotation of embedaddon/php/build/buildcheck.sh, revision 1.1.1.1

1.1       misho       1: #! /bin/sh
                      2: #  +----------------------------------------------------------------------+
                      3: #  | PHP Version 5                                                        |
                      4: #  +----------------------------------------------------------------------+
                      5: #  | Copyright (c) 1997-2007 The PHP Group                                |
                      6: #  +----------------------------------------------------------------------+
                      7: #  | This source file is subject to version 3.01 of the PHP license,      |
                      8: #  | that is bundled with this package in the file LICENSE, and is        |
                      9: #  | available through the world-wide-web at the following url:           |
                     10: #  | http://www.php.net/license/3_01.txt                                  |
                     11: #  | If you did not receive a copy of the PHP license and are unable to   |
                     12: #  | obtain it through the world-wide-web, please send a note to          |
                     13: #  | license@php.net so we can mail you a copy immediately.               |
                     14: #  +----------------------------------------------------------------------+
                     15: #  | Authors: Stig Bakken <ssb@php.net>                                   |
                     16: #  |          Sascha Schumann <sascha@schumann.cx>                        |
                     17: #  +----------------------------------------------------------------------+
                     18: #
                     19: # $Id: buildcheck.sh,v 1.37.2.2.2.1 2007-01-01 19:32:10 iliaa Exp $ 
                     20: #
                     21: 
                     22: echo "buildconf: checking installation..."
                     23: 
                     24: stamp=$1
                     25: 
                     26: # Allow the autoconf executable to be overridden by $PHP_AUTOCONF.
                     27: if test -z "$PHP_AUTOCONF"; then
                     28:   PHP_AUTOCONF='autoconf'
                     29: fi
                     30: 
                     31: # autoconf 2.13 or newer
                     32: ac_version=`$PHP_AUTOCONF --version 2>/dev/null|head -n 1|sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
                     33: if test -z "$ac_version"; then
                     34: echo "buildconf: autoconf not found."
                     35: echo "           You need autoconf version 2.13 or newer installed"
                     36: echo "           to build PHP from SVN."
                     37: exit 1
                     38: fi
                     39: IFS=.; set $ac_version; IFS=' '
                     40: if test "$1" = "2" -a "$2" -lt "13" || test "$1" -lt "2"; then
                     41: echo "buildconf: autoconf version $ac_version found."
                     42: echo "           You need autoconf version 2.13 or newer installed"
                     43: echo "           to build PHP from SVN."
                     44: exit 1
                     45: fi
                     46: 
                     47: if test "$1" = "2" -a "$2" -gt "59"; then
                     48:   echo "buildconf: You need autoconf 2.59 or lower to build this version of PHP."
                     49:   echo "           You are currently trying to use $ac_version"
                     50:   echo "           Most distros have separate autoconf 2.13 or 2.59 packages."
                     51:   echo "           On Debian/Ubuntu both autoconf2.13 and autoconf2.59 packages exist."
                     52:   echo "           Install autoconf2.13 and set the PHP_AUTOCONF env var to "
                     53:   echo "           autoconf2.13 and try again."
                     54:   exit 1
                     55: else
                     56:   echo "buildconf: autoconf version $ac_version (ok)"
                     57: fi
                     58: 
                     59: if test "$1" = "2" -a "$2" -ge "50"; then
                     60:   ./vcsclean
                     61:   stamp=
                     62: fi
                     63: 
                     64: test -n "$stamp" && touch $stamp
                     65: 
                     66: exit 0

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>