--- opcodes/configure.orig 2012-04-27 10:20:25.000000000 +0200 +++ opcodes/configure 2012-04-27 10:24:01.000000000 +0200 @@ -11525,7 +11525,13 @@ # Enable -Werror by default when using gcc if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then - ERROR_ON_WARNING=yes + if test "${CC}" = clang ; then + echo "clang compiler - disabling -Werror" + ERROR_ON_WARNING=no + else + echo "gcc compiler - enabling -Werror" + ERROR_ON_WARNING=yes + fi fi NO_WERROR=