b74969
b74969
Make generated php_config.h constant across rebuilds.
b74969
b74969
--- php-5.4.9/configure.in.fixheader
b74969
+++ php-5.4.9/configure.in
b74969
@@ -1258,7 +1258,7 @@ fi
b74969
 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS"
b74969
 EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS"
b74969
 
b74969
-PHP_BUILD_DATE=`date '+%Y-%m-%d'`
b74969
+PHP_BUILD_DATE=`date '+%Y-%m-%d' -r $srcdir/NEWS`
b74969
 AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP build date])
b74969
 
b74969
 case $host_alias in
b74969
@@ -1269,7 +1269,7 @@ case $host_alias in
b74969
   AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[hardcode for each of the cross compiler host])
b74969
   ;;
b74969
 *)
b74969
-  PHP_UNAME=`uname -a | xargs`
b74969
+  PHP_UNAME=`uname | xargs`
b74969
   AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output])
b74969
   PHP_OS=`uname | xargs`
b74969
   AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output])