Skip to content

Commit 0ddc3a2

Browse files
committed
[skip ci] Fix Intel CET check in ext/pcre
This adds test program body `int main(void) { return 0; }` and fixes the configure step with cache enabled (`configure -C`).
1 parent a45048b commit 0ddc3a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/pcre/config0.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ else
7777

7878
AC_CACHE_CHECK([whether Intel CET is enabled], ac_cv_have_pcre2_intel_cet, [
7979
AC_COMPILE_IFELSE([
80-
AC_LANG_SOURCE([[
80+
AC_LANG_PROGRAM([[
8181
#ifndef __CET__
8282
# error CET is not enabled
8383
#endif
@@ -86,10 +86,10 @@ else
8686
], [
8787
ac_cv_have_pcre2_intel_cet=no
8888
])
89-
if test "$ac_cv_have_pcre2_intel_cet" = yes; then
90-
PHP_PCRE_CFLAGS="-mshstk $PHP_PCRE_CFLAGS"
91-
fi
9289
])
90+
if test "$ac_cv_have_pcre2_intel_cet" = yes; then
91+
PHP_PCRE_CFLAGS="-mshstk $PHP_PCRE_CFLAGS"
92+
fi
9393

9494
else
9595
AC_MSG_RESULT([no])

0 commit comments

Comments
 (0)