logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: Zend(PHP_4_3) / acinclude.m4 configure.in: msg#00016

Subject: cvs: Zend(PHP_4_3) / acinclude.m4 configure.in
sniper          Sun Jan  9 20:36:23 2005 EDT

  Modified files:              (Branch: PHP_4_3)
    /Zend       acinclude.m4 configure.in 
  Log:
  MFH
  
  
http://cvs.php.net/diff.php/Zend/acinclude.m4?r1=1.8.20.1&r2=1.8.20.2&ty=u
Index: Zend/acinclude.m4
diff -u Zend/acinclude.m4:1.8.20.1 Zend/acinclude.m4:1.8.20.2
--- Zend/acinclude.m4:1.8.20.1  Thu Dec 30 02:02:16 2004
+++ Zend/acinclude.m4   Sun Jan  9 20:36:22 2005
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.8.20.1 2004/12/30 07:02:16 sniper Exp $
+dnl $Id: acinclude.m4,v 1.8.20.2 2005/01/10 01:36:22 sniper Exp $
 dnl
 dnl This file contains local autoconf functions.
 
@@ -41,7 +41,34 @@
   AC_DEFINE_UNQUOTED(ZEND_BROKEN_SPRINTF, $ac_result, [Whether sprintf is 
broken])
 ])
 
+dnl
+dnl AC_ZEND_C_BIGENDIAN
+dnl Replacement macro for AC_C_BIGENDIAN
+dnl
+AC_DEFUN([AC_ZEND_C_BIGENDIAN],
+[AC_CACHE_CHECK([whether byte ordering is bigendian], ac_cv_c_bigendian_php,
+ [
+  ac_cv_c_bigendian_php=unknown
+  AC_TRY_RUN(
+  [
+int main(void)
+{
+        short one = 1;
+        char *cp = (char *)&one;
+
+        if (*cp == 0) {
+                return(0);
+        } else {
+                return(1);
+        }
+}
+  ], [ac_cv_c_bigendian_php=yes], [ac_cv_c_bigendian_php=no], 
[ac_cv_c_bigendian_php=unknown])
+ ])
+ if test $ac_cv_c_bigendian_php = yes; then
+   AC_DEFINE(WORDS_BIGENDIAN, [], [Define if processor uses big-endian word])
+ fi
+])
+
 AC_DEFUN([AM_SET_LIBTOOL_VARIABLE],[
   LIBTOOL='$(SHELL) $(top_builddir)/libtool $1'
 ])
-
http://cvs.php.net/diff.php/Zend/configure.in?r1=1.33&r2=1.33.2.1&ty=u
Index: Zend/configure.in
diff -u Zend/configure.in:1.33 Zend/configure.in:1.33.2.1
--- Zend/configure.in:1.33      Thu Oct 24 08:20:49 2002
+++ Zend/configure.in   Sun Jan  9 20:36:22 2005
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.33 2002/10/24 12:20:49 sas Exp $
+dnl $Id: configure.in,v 1.33.2.1 2005/01/10 01:36:22 sniper Exp $
 dnl Process this file with autoconf to produce a configure script.
 
 AC_INIT(zend.c)
@@ -10,6 +10,7 @@
 AM_PROG_LEX
 AM_PROG_CC_STDC
 ZEND_VERSION=$VERSION
+AC_ZEND_C_BIGENDIAN
 
 dnl We want this one before the checks, so the checks can modify CFLAGS.
 test -z "$CFLAGS" && auto_cflags=1

-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>