]> git.saurik.com Git - wxWidgets.git/blobdiff - configure.in
fixed warning about mismatching dlldecl when building as DLL
[wxWidgets.git] / configure.in
index 4c80050b5242a973473c84fa3dac1319ea9282e3..ce601eeb034f0e96bc6b7c9ffe390a9cea0ffcdf 100644 (file)
@@ -1896,6 +1896,12 @@ AC_CXX_STATIC_CAST
 dnl we don't use HAVE_DYNAMIC_CAST anywhere right now...
 dnl AC_CXX_DYNAMIC_CAST
 
+dnl With Sun CC, temporaries have block scope by default. This flag is needed
+dnl to get the expression scope behaviour that conforms to the standard.
+if test "x$SUNCXX" = xyes; then
+    CXXFLAGS="$CXXFLAGS -features=tmplife"
+fi
+
 dnl check for std::string or std::wstring
 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
     AC_LANG_PUSH(C++)