diff options
author | Arnaud Le Blanc <lbarnaud@php.net> | 2008-08-23 13:57:19 +0000 |
---|---|---|
committer | Arnaud Le Blanc <lbarnaud@php.net> | 2008-08-23 13:57:19 +0000 |
commit | 569ea282078741d443ae16f899a3df89fa8e1210 (patch) | |
tree | 2488dd098f183bc7da288e657f4e7d2f9865f7ab /ext/standard/config.m4 | |
parent | 9d5ab6e54f4d0772400e39bfd906987f4ee22ab6 (diff) | |
download | php-git-569ea282078741d443ae16f899a3df89fa8e1210.tar.gz |
MFH: Fix build on solaris
Diffstat (limited to 'ext/standard/config.m4')
-rw-r--r-- | ext/standard/config.m4 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/standard/config.m4 b/ext/standard/config.m4 index 125e7266a3..e42d390617 100644 --- a/ext/standard/config.m4 +++ b/ext/standard/config.m4 @@ -464,6 +464,27 @@ if test "$ac_cv_type_mbstate_t" = "yes"; then fi dnl +dnl Check for u_int32_t +dnl +AC_CACHE_CHECK([for u_int32_t], [ac_cv_type_u_int32_t],[ +AC_TRY_COMPILE([ +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif +],[ +int __tmp__() { u_int32_t a; } +],[ + ac_cv_type_u_int32_t=yes +],[ + ac_cv_type_u_int32_t=no +])]) +if test "$ac_cv_type_u_int32_t" = "yes"; then + AC_DEFINE([HAVE_U_INT32_T], 1, [Define if your system has u_int32_t in sys/types.h]) +fi + +AC_C_INLINE + +dnl dnl Setup extension sources dnl PHP_NEW_EXTENSION(standard, array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \ |