mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
Apply patch for MAJOR_VERSION etc. by Joseph Tate
This commit is contained in:
parent
25db882a77
commit
ae37223657
11
configure.in
11
configure.in
@ -37,7 +37,12 @@ done
|
||||
AC_CANONICAL_HOST
|
||||
AC_CONFIG_HEADER(main/php_config.h)
|
||||
|
||||
VERSION="4.3.0-dev"
|
||||
MAJOR_VERSION=4
|
||||
MINOR_VERSION=3
|
||||
RELEASE_VERSION=0
|
||||
EXTRA_VERSION="-dev"
|
||||
#VERSION="4.3.0-dev"
|
||||
VERSION="$MAJOR_VERSION.$MINOR_VERSION.$RELEASE_VERSION$EXTRA_VERSION"
|
||||
|
||||
dnl Define where extension directories are located in the configure context
|
||||
AC_DEFUN(PHP_EXT_BUILDDIR,[ext/$1])dnl
|
||||
@ -51,6 +56,10 @@ dnl -------------------------------------------------------------------------
|
||||
PHP_VERSION=$VERSION
|
||||
echo "/* automatically generated by configure */" > php_version.h.new
|
||||
echo "/* edit configure.in to change version number */" >> php_version.h.new
|
||||
echo "#define PHP_MAJOR_VERSION $MAJOR_VERSION" >> php_version.h.new
|
||||
echo "#define PHP_MINOR_VERSION $MINOR_VERSION" >> php_version.h.new
|
||||
echo "#define PHP_RELEASE_VERSION $RELEASE_VERSION" >> php_version.h.new
|
||||
echo "#define PHP_EXTRA_VERSION \"$EXTRA_VERSION\"" >> php_version.h.new
|
||||
echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new
|
||||
cmp php_version.h.new php_version.h >/dev/null 2>&1
|
||||
if test $? -ne 0 ; then
|
||||
|
Loading…
Reference in New Issue
Block a user