aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure49
1 files changed, 28 insertions, 21 deletions
diff --git a/configure b/configure
index 15658059da..5a5f0e60bd 100755
--- a/configure
+++ b/configure
@@ -973,27 +973,6 @@ if test "$cxx_verc_fail" = yes ; then
fi
#
-# Do CXXFLAGS now we know the compiler version
-#
-if test "$_cxx_major" -ge "3" ; then
- case $_host_os in
- mingw* | cygwin* | dreamcast)
- CXXFLAGS="$CXXFLAGS -W -Wno-unused-parameter"
- ;;
- *)
- CXXFLAGS="$CXXFLAGS -ansi -W -Wno-unused-parameter"
- ;;
- esac
- add_line_to_config_mk 'HAVE_GCC3 = 1'
-fi;
-
-if test "$_cxx_major" -ge "4" && test "$_cxx_minor" -ge "3" ; then
- CXXFLAGS="$CXXFLAGS -Wno-parentheses -Wno-empty-body"
-else
- CXXFLAGS="$CXXFLAGS -Wconversion"
-fi;
-
-#
# Check for endianness
#
echo_n "Checking endianness... "
@@ -1755,6 +1734,34 @@ case $_backend in
esac
#
+# Do CXXFLAGS now we know the compiler version
+#
+if test "$_cxx_major" -ge "3" ; then
+ case $_host_os in
+ mingw* | cygwin* | dreamcast)
+ CXXFLAGS="$CXXFLAGS -W -Wno-unused-parameter"
+ ;;
+ *)
+ CXXFLAGS="$CXXFLAGS -ansi -W -Wno-unused-parameter"
+ ;;
+ esac
+ add_line_to_config_mk 'HAVE_GCC3 = 1'
+fi;
+
+if test "$_cxx_major" -ge "4" && test "$_cxx_minor" -ge "3" ; then
+ CXXFLAGS="$CXXFLAGS -Wno-parentheses -Wno-empty-body"
+else
+ CXXFLAGS="$CXXFLAGS -Wconversion"
+fi;
+
+# Some platforms use certain GNU extensions in header files
+case $_host_os in
+*)
+ CXXFLAGS="$CXXFLAGS -pedantic"
+ ;;
+esac
+
+#
# Engine selection
#
_engines_built_static=""