diff --git a/configure.in b/configure.in index 546a49e6094..181ac8411ea 100644 --- a/configure.in +++ b/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