Skip to content

Commit 7431eb7

Browse files
committed
Remove LIBZEND_CHECK_INT_TYPE and PHP_CHECK_TYPES
Checking for int32_t and uint32_t types is already done by the PHP_CHECK_STDINT_TYPES m4 macro. The PHP_CHECK_TYPES m4 macro has been once used by the mysqlnd and has been removed via 14caf17 and additionally, the internal unused macro _PHP_DEF_HAVE_FILE has been removed. Additionally, the unused PHP_HAVE_STDINT_TYPES symbol has been removed.
1 parent 220e682 commit 7431eb7

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

Zend/Zend.m4

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,6 @@ dnl
22
dnl This file contains Zend specific autoconf functions.
33
dnl
44

5-
AC_DEFUN([LIBZEND_CHECK_INT_TYPE],[
6-
AC_MSG_CHECKING(for $1)
7-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
8-
#if HAVE_SYS_TYPES_H
9-
#include <sys/types.h>
10-
#endif
11-
#if HAVE_INTTYPES_H
12-
#include <inttypes.h>
13-
#elif HAVE_STDINT_H
14-
#include <stdint.h>
15-
#endif]],
16-
[[if (($1 *) 0)
17-
return 0;
18-
if (sizeof ($1))
19-
return 0;
20-
]])],[
21-
AC_DEFINE_UNQUOTED([HAVE_]translit($1,a-z_-,A-Z__), 1,[Define if $1 type is present. ])
22-
AC_MSG_RESULT(yes)
23-
], [AC_MSG_RESULT(no)
24-
])dnl
25-
])
26-
275
AC_DEFUN([LIBZEND_BASIC_CHECKS],[
286
297
AC_REQUIRE([AC_PROG_YACC])
@@ -72,10 +50,6 @@ dnl This is required for QNX and may be some BSD derived systems
7250
AC_CHECK_TYPE( uint, unsigned int )
7351
AC_CHECK_TYPE( ulong, unsigned long )
7452
75-
dnl Check if int32_t and uint32_t are defined
76-
LIBZEND_CHECK_INT_TYPE(int32_t)
77-
LIBZEND_CHECK_INT_TYPE(uint32_t)
78-
7953
dnl Checks for library functions.
8054
AC_FUNC_ALLOCA
8155
AC_CHECK_FUNCS(strdup getpid kill strtod strtol finite fpclass sigsetjmp)

acinclude.m4

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,12 +1014,6 @@ dnl -------------------------------------------------------------------------
10141014

10151015
dnl Internal helper macros
10161016
dnl
1017-
dnl _PHP_DEF_HAVE_FILE(what, filename)
1018-
AC_DEFUN([_PHP_DEF_HAVE_FILE], [
1019-
php_def_have_what=HAVE_[]`echo $1 | tr 'abcdefghijklmnopqrstuvwxyz-' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_' `
1020-
echo "#define $php_def_have_what 1" >> $2
1021-
])
1022-
dnl
10231017
dnl _PHP_CHECK_SIZEOF(type, cross-value, extra-headers [, found-action [, not-found-action]])
10241018
dnl
10251019
AC_DEFUN([_PHP_CHECK_SIZEOF], [
@@ -1075,21 +1069,6 @@ AC_DEFUN([PHP_CHECK_SIZEOF], [
10751069
AC_MSG_RESULT([[$][php_cv_sizeof_]translit($1, ,_)])
10761070
])
10771071

1078-
dnl
1079-
dnl PHP_CHECK_TYPES(type-list, include-file [, extra-headers])
1080-
dnl
1081-
AC_DEFUN([PHP_CHECK_TYPES], [
1082-
for php_typename in $1; do
1083-
AC_MSG_CHECKING([whether $php_typename exists])
1084-
_PHP_CHECK_SIZEOF($php_typename, 0, $3, [
1085-
_PHP_DEF_HAVE_FILE($php_typename, $2)
1086-
AC_MSG_RESULT([yes])
1087-
], [
1088-
AC_MSG_RESULT([no])
1089-
])
1090-
done
1091-
])
1092-
10931072
dnl
10941073
dnl PHP_CHECK_IN_ADDR_T
10951074
dnl
@@ -2652,7 +2631,6 @@ AC_DEFUN([PHP_CHECK_STDINT_TYPES], [
26522631
# include <sys/types.h>
26532632
#endif
26542633
])
2655-
AC_DEFINE([PHP_HAVE_STDINT_TYPES], [1], [Checked for stdint types])
26562634
])
26572635

26582636
dnl PHP_CHECK_BUILTIN_EXPECT

0 commit comments

Comments
 (0)