summaryrefslogtreecommitdiff
path: root/m4/ax_cxx_header_pre_stdcxx.m4
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2009-08-06 22:39:54 +0100
committerReuben Thomas <rrt@sc3d.org>2009-08-06 22:39:54 +0100
commit3ea011f8cd6c4c47bdd8e9779169efe2ad05caa6 (patch)
treeb985d888c9fc54bb8bbf7a7b7b6c3178fc58bb11 /m4/ax_cxx_header_pre_stdcxx.m4
parent2ff01bdb018a1a1bc9e5800314d70e06972192cc (diff)
downloadautoconf-archive-3ea011f8cd6c4c47bdd8e9779169efe2ad05caa6.tar.gz
Rename AC_ prefixes to AX_ (only in names of aa macros!).
Diffstat (limited to 'm4/ax_cxx_header_pre_stdcxx.m4')
-rw-r--r--m4/ax_cxx_header_pre_stdcxx.m472
1 files changed, 72 insertions, 0 deletions
diff --git a/m4/ax_cxx_header_pre_stdcxx.m4 b/m4/ax_cxx_header_pre_stdcxx.m4
new file mode 100644
index 0000000..e4b3b62
--- /dev/null
+++ b/m4/ax_cxx_header_pre_stdcxx.m4
@@ -0,0 +1,72 @@
+# ===========================================================================
+# http://www.nongnu.org/autoconf-archive/ax_cxx_header_pre_stdcxx.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+# AX_CXX_HEADER_PRE_STDCXX
+#
+# DESCRIPTION
+#
+# Check whether pre-ISO-C++ headers exist.
+#
+# LICENSE
+#
+# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
+#
+# Copying and distribution of this file, with or without modification, are
+# permitted in any medium without royalty provided the copyright notice
+# and this notice are preserved.
+
+AC_DEFUN([AX_CXX_HEADER_PRE_STDCXX], [
+ AC_CACHE_CHECK(for pre-ISO C++ include files,
+ ac_cv_cxx_pre_stdcxx,
+ [AC_LANG_SAVE
+ AC_LANG_CPLUSPLUS
+ ac_save_CXXFLAGS="$CXXFLAGS"
+ CXXFLAGS="$CXXFLAGS -Wno-deprecated"
+
+ # Omit defalloc.h, as compilation with newer compilers is problematic.
+ AC_TRY_COMPILE([
+ #include <new.h>
+ #include <iterator.h>
+ #include <alloc.h>
+ #include <set.h>
+ #include <hashtable.h>
+ #include <hash_set.h>
+ #include <fstream.h>
+ #include <tempbuf.h>
+ #include <istream.h>
+ #include <bvector.h>
+ #include <stack.h>
+ #include <rope.h>
+ #include <complex.h>
+ #include <ostream.h>
+ #include <heap.h>
+ #include <iostream.h>
+ #include <function.h>
+ #include <multimap.h>
+ #include <pair.h>
+ #include <stream.h>
+ #include <iomanip.h>
+ #include <slist.h>
+ #include <tree.h>
+ #include <vector.h>
+ #include <deque.h>
+ #include <multiset.h>
+ #include <list.h>
+ #include <map.h>
+ #include <algobase.h>
+ #include <hash_map.h>
+ #include <algo.h>
+ #include <queue.h>
+ #include <streambuf.h>
+ ],,
+ ac_cv_cxx_pre_stdcxx=yes, ac_cv_cxx_pre_stdcxx=no)
+ CXXFLAGS="$ac_save_CXXFLAGS"
+ AC_LANG_RESTORE
+ ])
+ if test "$ac_cv_cxx_pre_stdcxx" = yes; then
+ AC_DEFINE(PRE_STDCXX_HEADERS,,[Define if pre-ISO C++ header files are present. ])
+ fi
+])