]> git.lyx.org Git - lyx.git/blobdiff - acinclude.m4
fix some of the bugs reported, should hopefully be a bit better now.
[lyx.git] / acinclude.m4
index 7ae3e626d9c42986d5d5faca11b309c404aca73a..00ad1f508ea3be410750a50a1f955c2f1204395e 100644 (file)
@@ -425,10 +425,11 @@ dnl   good enough to suit our needs.
 AC_DEFUN(LYX_CXX_NAMESPACES,[
 AC_CACHE_CHECK(for correct namespaces support,lyx_cv_cxx_namespace,
  [AC_TRY_COMPILE([
-  #include <vector>
-  using std::vector;
+  namespace foo {
+    int bar;
+  }
 ],[
-       vector<int> test;
+        foo::bar = 0;
        return 0;
 ],lyx_cv_cxx_namespace=yes,lyx_cv_cxx_namespace=no)
 ])