1
dnl Available from the GNU Autoconf Macro Archive at:
2
dnl http://www.gnu.org/software/ac-archive/htmldoc/mni_cxx_have_koenig_lookup.html
4
AC_DEFUN([mni_CXX_HAVE_KOENIG_LOOKUP],
5
[AC_CACHE_CHECK(whether the compiler implements Koenig lookup,
6
ac_cv_cxx_have_koenig_lookup,
11
void f1(const C& c) {}
17
f1(x); // resolves to N1::f1() if we have Koenig lookup,
18
// otherwise this will fail to compile.
22
ac_cv_cxx_have_koenig_lookup=yes,
23
ac_cv_cxx_have_koenig_lookup=no)
25
if test "$ac_cv_cxx_have_koenig_lookup" = yes; then
26
AC_DEFINE(CXX_HAVE_KOENIG_LOOKUP,1,
27
[define to 1 if the compiler implements Koenig lookup])