| OLD | NEW |
| 1 dnl Common configure.in fragment | 1 dnl Common configure.in fragment |
| 2 dnl |
| 3 dnl Copyright 2012 Free Software Foundation |
| 4 dnl |
| 5 dnl This file is free software; you can redistribute it and/or modify |
| 6 dnl it under the terms of the GNU General Public License as published by |
| 7 dnl the Free Software Foundation; either version 3 of the License, or |
| 8 dnl (at your option) any later version. |
| 9 dnl |
| 10 dnl This program is distributed in the hope that it will be useful, |
| 11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 dnl GNU General Public License for more details. |
| 14 dnl |
| 15 dnl You should have received a copy of the GNU General Public License |
| 16 dnl along with this program; see the file COPYING3. If not see |
| 17 dnl <http://www.gnu.org/licenses/>. |
| 18 dnl |
| 2 | 19 |
| 3 AC_DEFUN([AM_BINUTILS_WARNINGS],[ | 20 AC_DEFUN([AM_BINUTILS_WARNINGS],[ |
| 4 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | 21 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
| 5 AC_EGREP_CPP([^[0-3]$],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow") | 22 AC_EGREP_CPP([^[0-3]$],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow") |
| 6 | 23 |
| 7 AC_ARG_ENABLE(werror, | 24 AC_ARG_ENABLE(werror, |
| 8 [ --enable-werror treat compile warnings as errors], | 25 [ --enable-werror treat compile warnings as errors], |
| 9 [case "${enableval}" in | 26 [case "${enableval}" in |
| 10 yes | y) ERROR_ON_WARNING="yes" ;; | 27 yes | y) ERROR_ON_WARNING="yes" ;; |
| 11 no | n) ERROR_ON_WARNING="no" ;; | 28 no | n) ERROR_ON_WARNING="no" ;; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | 68 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; |
| 52 esac]) | 69 esac]) |
| 53 | 70 |
| 54 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | 71 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then |
| 55 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | 72 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 |
| 56 fi | 73 fi |
| 57 | 74 |
| 58 AC_SUBST(WARN_CFLAGS) | 75 AC_SUBST(WARN_CFLAGS) |
| 59 AC_SUBST(NO_WERROR) | 76 AC_SUBST(NO_WERROR) |
| 60 ]) | 77 ]) |
| OLD | NEW |