Remove ``-W -Wall'' from top-level Makefile/configure.
[deliverable/binutils-gdb.git] / gas / configure.in
index 8ee42a6deb80a508310d401873d3d9a5e8f09bbe..01fd0c5594e839532ee294c19d50f9bf4a35a008 100644 (file)
@@ -40,6 +40,27 @@ esac])dnl
 
 using_cgen=no
 
+build_warnings="-W -Wall"
+AC_ARG_ENABLE(build-warnings,
+[  --enable-build-warnings Enable build-time compiler warnings if gcc is used],
+[case "${enableval}" in
+  yes) ;;
+  no)  build_warnings="-w";;
+  ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
+        build_warnings="${build_warnings} ${t}";;
+  *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
+        build_warnings="${t} ${build_warnings}";;
+  *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
+esac
+if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
+  echo "Setting warning flags = $build_warnings" 6>&1
+fi])dnl
+WARN_CFLAGS=""
+if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
+    WARN_CFLAGS="${build_warnings}"
+fi
+AC_SUBST(WARN_CFLAGS)
+
 # Generate a header file
 AM_CONFIG_HEADER(config.h:config.in)
 
This page took 0.026649 seconds and 4 git commands to generate.