Skip to content

Commit 8d18d63

Browse files
committed
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
1 parent 57c4ae3 commit 8d18d63

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

acinclude.m4

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,12 +1373,13 @@ main() {
13731373
],[
13741374
ac_cv_what_readdir_r=POSIX
13751375
],[
1376-
AC_TRY_CPP([
1376+
AC_PREPROC_IFELSE([
1377+
AC_LANG_SOURCE([[
13771378
#define _REENTRANT
13781379
#include <sys/types.h>
13791380
#include <dirent.h>
13801381
int readdir_r(DIR *, struct dirent *);
1381-
],[
1382+
]])],[
13821383
ac_cv_what_readdir_r=old-style
13831384
],[
13841385
ac_cv_what_readdir_r=none

0 commit comments

Comments
 (0)