1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r23637: fix detection of visibility attribute support

James: AC_TRY_LINK() has a different syntax as AC_TRY_RUN() :-)
       so this was wrong:
       http://websvn.samba.org/cgi-bin/viewcvs.cgi?rev=20697&view=rev

metze
This commit is contained in:
Stefan Metzmacher 2007-06-27 19:46:53 +00:00 committed by Gerald (Jerry) Carter
parent 31cbb9ff9f
commit 0a97de3804

View File

@ -71,11 +71,10 @@ if test -n "$VISIBILITY_CFLAGS"; then
OLD_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
AC_TRY_LINK([],
[
AC_TRY_LINK([
void vis_foo1(void) {}
__attribute__((visibility("default"))) void vis_foo2(void) {}
#include "${srcdir-.}/build/tests/trivial.c"
],[
],[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_VISIBILITY_ATTR,1,[Whether the C compiler supports the visibility attribute])