From 14caf174ff219376e4f1234bd297ffe973cc416e Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 6 Aug 2013 22:45:35 +0200 Subject: unify stdint type usage if you need C99 stdint types, just include "php_stdint.h" --- acinclude.m4 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index 682be598ce..b76bd344a7 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2978,3 +2978,22 @@ $ac_bdir[$]ac_provsrc.o: \$(PHP_DTRACE_OBJS) EOF ]) + +dnl +dnl PHP_CHECK_STDINT_TYPES +dnl +AC_DEFUN([PHP_CHECK_STDINT_TYPES], [ + AC_CHECK_SIZEOF([short], 2) + AC_CHECK_SIZEOF([int], 4) + AC_CHECK_SIZEOF([long], 4) + AC_CHECK_SIZEOF([long long], 8) + AC_CHECK_TYPES([int8, int16, int32, int64, int8_t, int16_t, int32_t, int64_t, uint8, uint16, uint32, uint64, uint8_t, uint16_t, uint32_t, uint64_t, u_int8_t, u_int16_t, u_int32_t, u_int64_t], [], [], [ +#if HAVE_STDINT_H +# include +#endif +#if HAVE_SYS_TYPES_H +# include +#endif + ]) + AC_DEFINE([PHP_HAVE_STDINT_TYPES], [1], [Checked for stdint types]) +]) -- cgit v1.2.1