com php-src: Replace obsolete AC_TRY_CPP with AC_PREP ROC_IFELSE: acinclude.m4

From: Date: Wed, 25 Jul 2018 21:00:20 +0000
Subject: com php-src: Replace obsolete AC_TRY_CPP with AC_PREP ROC_IFELSE: acinclude.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102676@lists.php.net to get a copy of this message
Commit: 8d18d631b6145dea0dd579bcc8ffe446271b511d Author: Peter Kokot <peterkokot@gmail.com> Mon, 23 Jul 2018 05:19:11 +0200 Committer: Peter Kokot <petk@php.net> Wed, 25 Jul 2018 23:00:20 +0200 Parents: 57c4ae393cf96dcd4464a015700cc06ff72abff6 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8d18d631b6145dea0dd579bcc8ffe446271b511d Log: Replace obsolete AC_TRY_CPP with AC_PREPROC_IFELSE The AC_TRY_CPP macro is obsolete since Autoconf 2.50 in 2001: - http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS - https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html Changed paths: M acinclude.m4 Diff: diff --git a/acinclude.m4 b/acinclude.m4 index 48c145f..a96f045 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1373,12 +1373,13 @@ main() { ],[ ac_cv_what_readdir_r=POSIX ],[ - AC_TRY_CPP([ + AC_PREPROC_IFELSE([ + AC_LANG_SOURCE([[ #define _REENTRANT #include <sys/types.h> #include <dirent.h> int readdir_r(DIR *, struct dirent *); - ],[ + ]])],[ ac_cv_what_readdir_r=old-style ],[ ac_cv_what_readdir_r=none

« previous php.cvs (#102676) next »