diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-07-27 09:18:17 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-07-27 18:35:29 +0200 |
commit | b26684dc2f29222d9581089ea8cfb2fc54319fb4 (patch) | |
tree | fc9b3a24381315e755f7d3d965634c2a74875cfd /m4/ax_cxx_have_koenig_lookup.m4 | |
parent | 68e93457f1d6f73f8e5019e7a0a97851085dc0fa (diff) | |
download | autoconf-archive-b26684dc2f29222d9581089ea8cfb2fc54319fb4.tar.gz |
Replace obsolete AC_TRY_COMPILE with AC_COMPILE_IFELSE
Autoconf made several macros obsolete including the AC_TRY_COMPILE 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_COMPILE_IFELSE
instead.
Refs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/AC_005fACT_005fIFELSE-vs-AC_005fTRY_005fACT.html
Diffstat (limited to 'm4/ax_cxx_have_koenig_lookup.m4')
-rw-r--r-- | m4/ax_cxx_have_koenig_lookup.m4 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/m4/ax_cxx_have_koenig_lookup.m4 b/m4/ax_cxx_have_koenig_lookup.m4 index 3a4c767..77789f4 100644 --- a/m4/ax_cxx_have_koenig_lookup.m4 +++ b/m4/ax_cxx_have_koenig_lookup.m4 @@ -20,14 +20,14 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 8 +#serial 9 AU_ALIAS([MNI_CXX_HAVE_KOENIG_LOOKUP], [AX_CXX_HAVE_KOENIG_LOOKUP]) AC_DEFUN([AX_CXX_HAVE_KOENIG_LOOKUP], [AC_CACHE_CHECK(whether the compiler implements Koenig lookup, ax_cv_cxx_have_koenig_lookup, [AC_LANG_PUSH(C++) - AC_TRY_COMPILE([ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ namespace N1 { class C {}; void f1(const C& c) {} @@ -40,9 +40,9 @@ AC_DEFUN([AX_CXX_HAVE_KOENIG_LOOKUP], // otherwise this will fail to compile. } } - ],[], - ax_cv_cxx_have_koenig_lookup=yes, - ax_cv_cxx_have_koenig_lookup=no) + ]], [])], + [ax_cv_cxx_have_koenig_lookup=yes], + [ax_cv_cxx_have_koenig_lookup=no]) AC_LANG_POP]) if test "$ax_cv_cxx_have_koenig_lookup" = yes; then AC_DEFINE(CXX_HAVE_KOENIG_LOOKUP,1, |