diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-07-23 10:38:45 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-07-23 10:38:45 +0200 |
commit | aadd47319cc22bf278e1a479bb1d0a640d607207 (patch) | |
tree | 7d87490596e6856fc1cf6b7d3d8710afb7e1fbff /m4/ax_check_sys_siglist.m4 | |
parent | 8ce1199b2756686f2c31dff26a71164cd5a07be7 (diff) | |
download | autoconf-archive-aadd47319cc22bf278e1a479bb1d0a640d607207.tar.gz |
Replace obsolete AC_TRY_RUN with AC_RUN_IFELSE
Autoconf made several macros obsolete including the AC_TRY_RUN and in
2000 and since Autoconf 2.50:
http://git.savannah.gnu.org/cgit/autoconf.git/tree/ChangeLog.2
These macros should be replaced with the current AC_RUN_IFELSE instead.
This patch was created with the help of the autoupdate script.
Reference docs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
- https://www.gnu.org/software/autoconf/manual/autoconf-2.59/autoconf.pdf
Diffstat (limited to 'm4/ax_check_sys_siglist.m4')
-rw-r--r-- | m4/ax_check_sys_siglist.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/ax_check_sys_siglist.m4 b/m4/ax_check_sys_siglist.m4 index 54546bc..f6a60da 100644 --- a/m4/ax_check_sys_siglist.m4 +++ b/m4/ax_check_sys_siglist.m4 @@ -19,16 +19,16 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 6 +#serial 7 AU_ALIAS([AG_CHECK_SYS_SIGLIST], [AX_CHECK_SYS_SIGLIST]) AC_DEFUN([AX_CHECK_SYS_SIGLIST],[ AC_MSG_CHECKING([whether there is a global text array sys_siglist]) AC_CACHE_VAL([ax_cv_sys_siglist],[ - AC_TRY_RUN([#include <signal.h> + AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <signal.h> int main() { const char* pz = sys_siglist[1]; - return (pz != 0) ? 0 : 1; }],[ax_cv_sys_siglist=yes],[ax_cv_sys_siglist=no],[ax_cv_sys_siglist=no] + return (pz != 0) ? 0 : 1; }]])],[ax_cv_sys_siglist=yes],[ax_cv_sys_siglist=no],[ax_cv_sys_siglist=no] ) # end of TRY_RUN]) # end of CACHE_VAL AC_MSG_RESULT([$ax_cv_sys_siglist]) |