Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8595bea

Browse files
authored
Use default Autoconf's AC_LANG_PROGRAM (#13565)
This adds default test program prologue and body of `int main(void) { return 0; }` where possible.
1 parent 586a0dd commit 8595bea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎build/php.m4‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ AC_DEFUN([PHP_CHECK_FUNC_LIB],[
14651465
if test "$found" = "yes"; then
14661466
ac_libs=$LIBS
14671467
LIBS="$LIBS -l2ドル"
1468-
AC_RUN_IFELSE([AC_LANG_SOURCE([[int main(void) { return (0); }]])],[found=yes],[found=no],[
1468+
AC_RUN_IFELSE([AC_LANG_PROGRAM()],[found=yes],[found=no],[
14691469
dnl Cross compilation.
14701470
found=yes
14711471
])

‎configure.ac‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ case $host_alias in
11231123
save_LDFLAGS=$LDFLAGS
11241124
LDFLAGS="$LDFLAGS -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152"
11251125
AC_RUN_IFELSE(
1126-
[AC_LANG_SOURCE([[int main() {return 0;}]])],
1126+
[AC_LANG_PROGRAM()],
11271127
[ac_cv_common_page_size=yes],
11281128
[ac_cv_common_page_size=no],
11291129
[ac_cv_common_page_size=no])
@@ -1137,7 +1137,7 @@ case $host_alias in
11371137
save_LDFLAGS=$LDFLAGS
11381138
LDFLAGS="$LDFLAGS -Wl,-zmax-page-size=2097152"
11391139
AC_RUN_IFELSE(
1140-
[AC_LANG_SOURCE([[int main() {return 0;}]])],
1140+
[AC_LANG_PROGRAM()],
11411141
[ac_cv_max_page_size=yes],
11421142
[ac_cv_max_page_size=no],
11431143
[ac_cv_max_page_size=no])

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /