[php-src] master: Use default Autoconf's AC_LANG_PROGRAM (#13565)

From: Date: Sun, 10 Mar 2024 23:38:45 +0000
Subject: [php-src] master: Use default Autoconf's AC_LANG_PROGRAM (#13565)
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-127696@lists.php.net to get a copy of this message
Author: Peter Kokot (petk) Committer: GitHub (web-flow) Pusher: petk Date: 2024-03-11T00:24:57+01:00 Commit: https://github.com/php/php-src/commit/8595bead879d05892c1cf4dbae8899066cd9f861 Raw diff: https://github.com/php/php-src/commit/8595bead879d05892c1cf4dbae8899066cd9f861.diff Use default Autoconf's AC_LANG_PROGRAM (#13565) This adds default test program prologue and body of int main(void) { return 0; } where possible. Changed paths: M build/php.m4 M configure.ac Diff: diff --git a/build/php.m4 b/build/php.m4 index 8be1d81b5bea..7fce1a085e6f 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -1465,7 +1465,7 @@ AC_DEFUN([PHP_CHECK_FUNC_LIB],[ if test "$found" = "yes"; then ac_libs=$LIBS LIBS="$LIBS -l$2" - AC_RUN_IFELSE([AC_LANG_SOURCE([[int main(void) { return (0); }]])],[found=yes],[found=no],[ + AC_RUN_IFELSE([AC_LANG_PROGRAM()],[found=yes],[found=no],[ dnl Cross compilation. found=yes ]) diff --git a/configure.ac b/configure.ac index f5d8688ce7ab..754ef81fb1ad 100644 --- a/configure.ac +++ b/configure.ac @@ -1123,7 +1123,7 @@ case $host_alias in save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,-zcommon-page-size=2097152 -Wl,-zmax-page-size=2097152" AC_RUN_IFELSE( - [AC_LANG_SOURCE([[int main() {return 0;}]])], + [AC_LANG_PROGRAM()], [ac_cv_common_page_size=yes], [ac_cv_common_page_size=no], [ac_cv_common_page_size=no]) @@ -1137,7 +1137,7 @@ case $host_alias in save_LDFLAGS=$LDFLAGS LDFLAGS="$LDFLAGS -Wl,-zmax-page-size=2097152" AC_RUN_IFELSE( - [AC_LANG_SOURCE([[int main() {return 0;}]])], + [AC_LANG_PROGRAM()], [ac_cv_max_page_size=yes], [ac_cv_max_page_size=no], [ac_cv_max_page_size=no])

« previous php.cvs (#127696) next »