]> git.saurik.com Git - bison.git/blobdiff - m4/cxx.m4
diagnostics: improve -fcaret for list of accepted values
[bison.git] / m4 / cxx.m4
index 8ef1a2504d128b4bb5c78abb06f5128598cdb7cb..f9f06092471f050c081281d571a4d22b4a8ca09f 100644 (file)
--- a/m4/cxx.m4
+++ b/m4/cxx.m4
@@ -58,3 +58,12 @@ AC_DEFUN([BISON_TEST_FOR_WORKING_CXX_COMPILER],
  AC_SUBST([BISON_CXX_WORKS])
  AM_CONDITIONAL(BISON_CXX_WORKS, test $bison_cv_cxx_works = yes)
 ])
  AC_SUBST([BISON_CXX_WORKS])
  AM_CONDITIONAL(BISON_CXX_WORKS, test $bison_cv_cxx_works = yes)
 ])
+
+# BISON_CXX_COMPILER_POSIXLY_CORRECT
+# ----------------------------------
+# Whether the C++ compiler supports -g in POSIXLY_CORRECT mode.
+AC_DEFUN([BISON_CXX_COMPILER_POSIXLY_CORRECT],
+[AC_LANG_PUSH([C++])
+BISON_LANG_COMPILER_POSIXLY_CORRECT
+AC_LANG_POP([C++])
+])