diff options
Diffstat (limited to 'editors/libreoffice/files/extra-configure.ac')
-rw-r--r-- | editors/libreoffice/files/extra-configure.ac | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/editors/libreoffice/files/extra-configure.ac b/editors/libreoffice/files/extra-configure.ac new file mode 100644 index 000000000000..58f39d630ac7 --- /dev/null +++ b/editors/libreoffice/files/extra-configure.ac @@ -0,0 +1,29 @@ +--- configure.ac.orig 2014-10-23 07:32:50.000000000 -0400 ++++ configure.ac 2014-10-31 00:18:35.000000000 -0400 +@@ -6228,26 +6228,6 @@ + # MSVC supports (a subset of) CXX11 without any switch + HAVE_CXX11=TRUE + CXXFLAGS_CXX11= +-elif test "$GCC" = "yes"; then +- CXXFLAGS_CXX11= +- AC_MSG_CHECKING([whether $CXX supports C++11]) +- for flag in -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x ; do +- save_CXXFLAGS=$CXXFLAGS +- CXXFLAGS="$CXXFLAGS $flag -Werror" +- AC_LANG_PUSH([C++]) +- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[void f() {}]])],[CXXFLAGS_CXX11=$flag]) +- AC_LANG_POP([C++]) +- CXXFLAGS=$save_CXXFLAGS +- if test -n "$CXXFLAGS_CXX11"; then +- HAVE_CXX11=TRUE +- break +- fi +- done +- if test "$HAVE_CXX11" = TRUE; then +- AC_MSG_RESULT([yes ($CXXFLAGS_CXX11)]) +- else +- AC_MSG_RESULT(no) +- fi + fi + + if test $CPP_LIBRARY = GLIBCXX -a "$HAVE_CXX11" = TRUE; then |