diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-07-24 00:01:16 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-07-24 00:01:16 +0200 |
commit | cd67525a2d2a7c144c60722ae5915837e6cdb78c (patch) | |
tree | a8b2d76db4c837d579f1e561ae5dc7c397173a23 /m4/ax_ruby_devel.m4 | |
parent | 608733e283eb153329b6f4a73513e132a85868b3 (diff) | |
download | autoconf-archive-cd67525a2d2a7c144c60722ae5915837e6cdb78c.tar.gz |
Replace obsolete AC_TRY_LINK macros with AC_LINK_IFELSE
Autoconf 2.50 (released in 2001) made several macros obsolete including
the AC_TRY_LINK which should now be replaced with the AC_LINK_IFELSE.
Refs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/AC_005fACT_005fIFELSE-vs-AC_005fTRY_005fACT.html
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
Diffstat (limited to 'm4/ax_ruby_devel.m4')
-rw-r--r-- | m4/ax_ruby_devel.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/m4/ax_ruby_devel.m4 b/m4/ax_ruby_devel.m4 index 2452143..f56b8da 100644 --- a/m4/ax_ruby_devel.m4 +++ b/m4/ax_ruby_devel.m4 @@ -52,7 +52,7 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 14 +#serial 15 AC_DEFUN([AX_RUBY_DEVEL],[ AX_WITH_PROG(RUBY,ruby) @@ -147,11 +147,11 @@ $ac_rbconfig_result]) LIBS="$ac_save_LIBS $RUBY_LDFLAGS" ac_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$ac_save_CPPFLAGS $RUBY_CPPFLAGS" - AC_TRY_LINK([ + AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include <ruby.h> - ],[ + ]], [[ ruby_init(); - ],[rubyexists=yes],[rubyexists=no]) + ]])],[rubyexists=yes],[rubyexists=no]) AC_MSG_RESULT([$rubyexists]) |