1dnl @synopsis AC_CXX_CPPFLAGS_STD_LANG(CPP-FLAGS) 2dnl 3dnl Append to CPP-FLAGS the set of flags that should be passed to the 4dnl C++ preprocessor in order to enable use of C++ features as defined 5dnl in the ANSI C++ standard (eg. use of standard iostream classes in 6dnl the `std' namespace, etc.). 7dnl 8dnl @category Cxx 9dnl @author Ludovic Court�s <ludo@chbouib.org> 10dnl @version 2004-09-07 11dnl @license AllPermissive 12 13AC_DEFUN([AC_CXX_CPPFLAGS_STD_LANG], 14 [AC_REQUIRE([AC_CXX_COMPILER_VENDOR]) 15 case "$ac_cv_cxx_compiler_vendor" in 16 compaq) 17 # By default, Compaq CXX has an iostream classes implementation 18 # that is _not_ in the `std' namespace. 19 $1="$$1 -D__USE_STD_IOSTREAM=1";; 20 hp) 21 # When `configure' looks for a C++ header (eg. <iostream>) it invokes 22 # `aCC -E $CPPFLAGS'. However, including standard C++ headers like 23 # <iostream> fails if `-AA' is not supplied. 24 $1="$$1 -AA";; 25 esac]) 26