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_afs.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_afs.m4')
-rw-r--r-- | m4/ax_afs.m4 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/m4/ax_afs.m4 b/m4/ax_afs.m4 index 5a46aa5..acd15e1 100644 --- a/m4/ax_afs.m4 +++ b/m4/ax_afs.m4 @@ -34,7 +34,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 7 +#serial 8 AU_ALIAS([SG_AFS], [AX_AFS]) AC_DEFUN([AX_AFS], @@ -55,10 +55,10 @@ AC_MAX_CHECKING([whether the specified AFS dir looks valid]) if test "x${ax_cv_afsdir_link_works:-set}" != "x$ax_cv_with_afsdir"; then save_LIBS="$LIBS" LIBS="$save_LIBS -lcmd" - AC_TRY_LINK([#include <afs/cmd.h>], - [cmd_CreateAlias((struct cmd_syndesc *)0, "foo")], - ax_cv_afsdir_link_works=$ax_cv_with_afsdir, - ax_cv_afsdir_link_works=_FAILED_) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <afs/cmd.h>]], + [[cmd_CreateAlias((struct cmd_syndesc *)0, "foo")]])], + [ax_cv_afsdir_link_works=$ax_cv_with_afsdir], + [ax_cv_afsdir_link_works=_FAILED_]) LIBS="$save_LIBS" wasCached="" else |