Skip to content

Check for compiler typedef redeclaration support at configure-time #15397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Zend/Zend.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
dnl This file contains Zend specific autoconf macros.

AC_DEFUN([ZEND_CHECK_TYPEDEF_REDECL], [dnl
AC_CACHE_CHECK([if compiler allows typedef redeclarations],
[php_cv_have_typedef_redecl],
[AC_LINK_IFELSE([AC_LANG_PROGRAM([], [dnl
typedef int mytype;
typedef int mytype;
mytype var;
(void)var;
])],
[],
[AC_MSG_FAILURE([Compiler does not support typedef redeclarations. Does it support C11?])])])])

dnl
dnl ZEND_CHECK_FLOAT_PRECISION
dnl
Expand Down Expand Up @@ -157,6 +169,7 @@ AC_CHECK_FUNC([sigsetjmp],,
[AC_MSG_FAILURE([Required sigsetjmp not found.])],
[#include <setjmp.h>])])

ZEND_CHECK_TYPEDEF_REDECL
ZEND_CHECK_STACK_DIRECTION
ZEND_CHECK_FLOAT_PRECISION
ZEND_DLSYM_CHECK
Expand Down
Loading