2 # ----------------------------------
3 # Is the visibility hidden attribute supported?
4 AC_DEFUN([FP_VISIBILITY_HIDDEN],
6 AC_MSG_CHECKING([whether __attribute__((visibility("hidden"))) is supported])
7 echo '__attribute__((visibility("hidden"))) void foo(void) {}' > conftest.c
8 if $CC -Wall -Werror -c conftest.c > /dev/null 2>&1
11 AC_DEFINE(HAS_VISIBILITY_HIDDEN, 1, [Has visibility hidden])
15 rm -f conftest.c conftest.o