andrey          Tue Jul 24 19:20:28 2007 UTC

  Modified files:              
    /php-src/ext/mysqli config9.m4 
    /php-src/ext/mysqli/mysqlnd portability.h 
  Log:
  Don't use AC_CHECK_TYPES, as autoconf 2.13 is buggy, use an workaround.
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/config9.m4?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/mysqli/config9.m4
diff -u php-src/ext/mysqli/config9.m4:1.1 php-src/ext/mysqli/config9.m4:1.2
--- php-src/ext/mysqli/config9.m4:1.1   Tue Jul 24 16:13:25 2007
+++ php-src/ext/mysqli/config9.m4       Tue Jul 24 19:20:28 2007
@@ -1,5 +1,5 @@
 dnl
-dnl $Id: config9.m4,v 1.1 2007/07/24 16:13:25 andrey Exp $
+dnl $Id: config9.m4,v 1.2 2007/07/24 19:20:28 andrey Exp $
 dnl config.m4 for extension mysqli
 
 PHP_ARG_WITH(mysqli, for MySQLi support,
@@ -81,13 +81,29 @@
 dnl MySQLnd build
 dnl If some extension uses mysqlnd it will get compiled in PHP whether MYSQLi 
is enabled or not.
 if test "$PHP_MYSQLND_ENABLED" = "yes"; then
-  AC_CHECK_TYPES([int8, uint8, int16, uint16, int32, uint32, uchar],[],[], [
-  #include <sys/types.h>
-  ])
-
-  AC_CHECK_TYPES([int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, 
int64_t, uint64_t],[],[], [
-  #include <stdint.h>
-  ])
+dnl  AC_CHECK_TYPES([int8, uint8, int16, uint16, int32, uint32, uchar],[],[], [
+dnl  #include <sys/types.h>
+dnl  ])
+dnl  AC_CHECK_TYPES([int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, 
int64_t, uint64_t],[],[], [
+dnl  #include <stdint.h>
+dnl  ])
+  PHP_CHECK_SIZEOF(int8, 0)
+  PHP_CHECK_SIZEOF(uint8, 0)
+  PHP_CHECK_SIZEOF(int16, 0)
+  PHP_CHECK_SIZEOF(uint16, 0)
+  PHP_CHECK_SIZEOF(int32, 0)
+  PHP_CHECK_SIZEOF(uint32, 0)
+  PHP_CHECK_SIZEOF(int64, 0)
+  PHP_CHECK_SIZEOF(uint64, 0)
+  PHP_CHECK_SIZEOF(int8_t, 0)
+  PHP_CHECK_SIZEOF(uint8_t, 0)
+  PHP_CHECK_SIZEOF(int16_t, 0)
+  PHP_CHECK_SIZEOF(uint16_t, 0)
+  PHP_CHECK_SIZEOF(int32_t, 0)
+  PHP_CHECK_SIZEOF(uint32_t, 0)
+  PHP_CHECK_SIZEOF(int64_t, 0)
+  PHP_CHECK_SIZEOF(uint64_t, 0)
+  PHP_CHECK_SIZEOF(ulong, 0)
 
   mysqlnd_sources="mysqlnd.c mysqlnd_charset.c mysqlnd_wireprotocol.c \
                    mysqlnd_ps.c mysqlnd_loaddata.c mysqlnd_palloc.c \
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/mysqlnd/portability.h?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/mysqli/mysqlnd/portability.h
diff -u php-src/ext/mysqli/mysqlnd/portability.h:1.1 
php-src/ext/mysqli/mysqlnd/portability.h:1.2
--- php-src/ext/mysqli/mysqlnd/portability.h:1.1        Tue Jul 24 16:13:26 2007
+++ php-src/ext/mysqli/mysqlnd/portability.h    Tue Jul 24 19:20:28 2007
@@ -59,62 +59,62 @@
 
 /* Typdefs for easyier portability */
 
-#ifndef HAVE_INT8
-#ifndef HAVE_INT8_T
+#if (SIZEOF_INT8 == 0)
+#if (SIZEOF_INT8_T == 0)
 typedef signed char int8;                      /* Signed integer >= 8    bits 
*/
 #else
 typedef int8_t int8;                           /* Signed integer >= 8    bits 
*/
 #endif
 #endif
 
-#ifndef HAVE_UINT8
-#ifndef HAVE_UINT8_T
+#if (SIZEOF_UINT8 == 0)
+#if (SIZEOF_UINT8_T == 0)
 typedef unsigned char uint8;           /* Unsigned integer >= 8    bits */
 #else
 typedef uint8_t uint8;                         /* Signed integer >= 8    bits 
*/
 #endif
 #endif
 
-#ifndef HAVE_INT16
-#ifndef HAVE_INT16_T
+#if (SIZEOF_INT16 == 0)
+#if (SIZEOF_INT16_T == 0)
 typedef signed short int16;                    /* Signed integer >= 16 bits */
 #else
 typedef int16_t int16;                         /* Signed integer >= 16 bits */
 #endif
 #endif
 
-#ifndef HAVE_UINT16
-#ifndef HAVE_UINT16_T
+#if (SIZEOF_UINT16 == 0)
+#if (SIZEOF_UINT16_T == 0)
 typedef unsigned short uint16;         /* Signed integer >= 16 bits */
 #else
 typedef uint16_t uint16;                       /* Signed integer >= 16 bits */
 #endif
 #endif
 
-#ifndef HAVE_UCHAR
+#if (SIZEOF_UCHAR == 0)
 typedef unsigned char uchar;           /* Short for unsigned char */
 #endif
 
 
-#if defined(HAVE_INT32_T) && defined (HAVE_UINT32_T)
+#if (SIZEOF_INT32_T != 0) && (SIZEOF_UINT32_T != 0)
 typedef int32_t int32;
 typedef uint32_t uint32;
 
 #elif SIZEOF_INT == 4
 
-#ifndef HAVE_INT32
+#ifndef (SIZEOF_INT32 == 0)
 typedef signed int int32;
 #endif
-#ifndef HAVE_UINT32
+#ifndef (SIZEOF_UINT32 == 0)
 typedef unsigned int uint32;
 #endif
 
 #elif SIZEOF_LONG == 4
 
-#ifndef HAVE_INT32
+#ifndef (SIZEOF_INT32 == 0)
 typedef signed long int32;
 #endif
-#ifndef HAVE_UINT32
+#ifndef (SIZEOF_UINT32 == 0)
 typedef unsigned long uint32;
 #endif
 
@@ -122,7 +122,7 @@
 error "Neither int or long is of 4 bytes width"
 #endif
 
-#if !defined(HAVE_ULONG) && !defined(__USE_MISC) && !defined(ulong)
+#if (SIZEOF_ULONG == 0) && !defined(__USE_MISC) && !defined(ulong)
 typedef unsigned long    ulong;    /* Short for unsigned long */
 #endif
 #ifndef longlong_defined
@@ -487,14 +487,14 @@
 #ifndef L64
 #define L64(x) x##LL
 #endif
-#ifndef HAVE_UINT64_T
+#if (SIZEOF_UINT64_T == 0)
 typedef unsigned long long my_uint64;
 typedef unsigned long long mynd_ulonglong;
 #else
 typedef uint64_t my_uint64;
 typedef uint64_t mynd_ulonglong;
 #endif
-#ifndef HAVE_INT64_T
+#if (SIZEOF_INT64_T == 0)
 typedef long long my_int64;
 typedef long long mynd_longlong;
 #else

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

Reply via email to