Added test for -fms-extensions to generated configure.ac.

This commit is contained in:
Kirill Smelkov 2003-12-15 19:46:34 +00:00 committed by Alexandre Julliard
parent 2361f41a75
commit 746c6feccf

View File

@ -2499,6 +2499,14 @@ then
[has_gxx_permissive="yes"],
[has_gxx_permissive="no"])
)
CXXFLAGS="-fms-extensions";
AC_CACHE_CHECK([for g++ -fms-extensions option], has_gxx_msextensions,
AC_TRY_COMPILE(,[
;
],
[has_gxx_msextensions="yes"],
[has_gxx_msextensions="no"])
)
CXXFLAGS="-fno-for-scope";
AC_CACHE_CHECK([for g++ -fno-for-scope option], has_gxx_no_for_scope,
AC_TRY_COMPILE(,[
@ -2513,6 +2521,10 @@ then
then
CXXFLAGS="$CXXFLAGS -fpermissive"
fi
if test "$has_gxx_msextensions" = "yes"
then
CXXFLAGS="$CXXFLAGS -fms-extensions"
fi
if test "$has_gxx_no_for_scope" = "yes"
then
CXXFLAGS="$CXXFLAGS -fno-for-scope"