summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-06-27 19:46:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:53:29 -0500
commit13ecb01de8a6ace6840823dad93179a3ee1f3049 (patch)
tree7d0354ae1ef95e178e1de034013676e4b6a9fb5e
parent8ece71f26e9c2a758ed27b4188d4247b0d679aa2 (diff)
downloadsamba-13ecb01de8a6ace6840823dad93179a3ee1f3049.tar.gz
samba-13ecb01de8a6ace6840823dad93179a3ee1f3049.tar.bz2
samba-13ecb01de8a6ace6840823dad93179a3ee1f3049.zip
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 used to be commit 0a97de3804cbfc593c0cfc62e61fbfe87d2cf368)
-rw-r--r--source4/build/m4/check_cc.m45
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4
index b618897f06..586ba9b814 100644
--- a/source4/build/m4/check_cc.m4
+++ b/source4/build/m4/check_cc.m4
@@ -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])