Lines Matching +full:- +full:werror
1 # visibility.m4 serial 4 (gettext-0.18.2)
2 dnl Copyright (C) 2005, 2008, 2010-2012 Free Software Foundation, Inc.
9 dnl Tests whether the compiler supports the command-line option
10 dnl -fvisibility=hidden and the function and variable attributes
13 dnl Does *not* test for __visibility__("protected") - which has tricky
16 dnl Does *not* test for __visibility__("internal") - which has processor
18 dnl Does *not* test for #pragma GCC visibility push(hidden) - which is
28 if test -n "$GCC"; then
29 dnl First, check whether -Werror can be added to the command line, or
32 AC_MSG_CHECKING([whether the -Werror option is usable])
35 CFLAGS="$CFLAGS -Werror"
46 CFLAGS="$CFLAGS -fvisibility=hidden"
47 dnl We use the option -Werror and a function dummyfunc, because on some
48 dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning
53 CFLAGS="$CFLAGS -Werror"
69 CFLAG_VISIBILITY="-fvisibility=hidden"