# check for GNUC visibility support { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC visibility attribute" >&5 $as_echo_n "checking for GNUC visibility attribute... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ void __attribute__ ((visibility ("hidden"))) f_hidden (void) { } void __attribute__ ((visibility ("internal"))) f_internal (void) { } void __attribute__ ((visibility ("protected"))) f_protected (void) { } void __attribute__ ((visibility ("default"))) f_default (void) { } int main (int argc, char **argv) { f_hidden(); f_internal(); f_protected(); f_default(); return 0; } _ACEOF rm -f conftest.$ac_objext glib_ac_compile_save="$ac_compile" ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext' if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='(if test -s conftest.err; then false ; else true; fi)' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : g_have_gnuc_visibility=yes else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 g_have_gnuc_visibility=no fiac_compile="$glib_ac_compile_save" rm -f conftest.$ac_objext conftest.err conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_visibility" >&5 $as_echo "$g_have_gnuc_visibility" >&6; } if test x$g_have_gnuc_visibility = xyes; then HAVE_GNUC_VISIBILITY_TRUE= HAVE_GNUC_VISIBILITY_FALSE='#' else HAVE_GNUC_VISIBILITY_TRUE='#' HAVE_GNUC_VISIBILITY_FALSE= fi