diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-07-24 01:44:43 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-07-24 01:44:43 +0200 |
commit | b45fd8dd0a8dabba7e8cba99e8c13e84d93ba858 (patch) | |
tree | 51f5c3c30d449b30c958aca39ccaa00f45b2bbf8 /m4/ax_lapack.m4 | |
parent | 7f44296a6683be232d6f945f03cecf50ce1ca641 (diff) | |
download | autoconf-archive-b45fd8dd0a8dabba7e8cba99e8c13e84d93ba858.tar.gz |
Replace obsolete AC_TRY_LINK_FUNCTION macros
Autoconf 2.50 introduced new macros in favor of the AC_TRY_FOO. Since
Autoconf 2.55 the AC_TRY_LINK_FUNC macro has been additionally marked
as obsolete and suggested to be replaced with AC_LINK_IFELSE and
AC_LANG_CALL.
Refs:
- 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
Diffstat (limited to 'm4/ax_lapack.m4')
-rw-r--r-- | m4/ax_lapack.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_lapack.m4 b/m4/ax_lapack.m4 index e7eadd1..2939bd3 100644 --- a/m4/ax_lapack.m4 +++ b/m4/ax_lapack.m4 @@ -64,7 +64,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 8 +#serial 9 AU_ALIAS([ACX_LAPACK], [AX_LAPACK]) AC_DEFUN([AX_LAPACK], [ @@ -93,7 +93,7 @@ fi if test "x$LAPACK_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS" AC_MSG_CHECKING([for $cheev in $LAPACK_LIBS]) - AC_TRY_LINK_FUNC($cheev, [ax_lapack_ok=yes], [LAPACK_LIBS=""]) + AC_LINK_IFELSE([AC_LANG_CALL([], [$cheev])], [ax_lapack_ok=yes], [LAPACK_LIBS=""]) AC_MSG_RESULT($ax_lapack_ok) LIBS="$save_LIBS" if test $ax_lapack_ok = no; then |