summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-08-20 20:11:00 +0200
committerYang Tse <yangsita@gmail.com>2011-08-20 20:11:00 +0200
commit34d5d7696968e3d919f84b3210167073b4d3e33c (patch)
tree78d6d0687a5eb98a719862d6ff87ed5fd416b8fb /m4
parentf11c2c28913d323e269b3bb521fea254ac51d9df (diff)
downloadc-ares-34d5d7696968e3d919f84b3210167073b4d3e33c.tar.gz
c-ares-34d5d7696968e3d919f84b3210167073b4d3e33c.tar.bz2
c-ares-34d5d7696968e3d919f84b3210167073b4d3e33c.zip
configure: fix symbol hiding usability check
A more thorough test is done now in order to determine visibility attribute usability, given that some compilers don't support visibility attribute on all configurations.
Diffstat (limited to 'm4')
-rw-r--r--m4/cares-compilers.m410
1 files changed, 8 insertions, 2 deletions
diff --git a/m4/cares-compilers.m4 b/m4/cares-compilers.m4
index 5d3035c..80cfb5c 100644
--- a/m4/cares-compilers.m4
+++ b/m4/cares-compilers.m4
@@ -15,7 +15,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
-# serial 67
+# serial 68
dnl CARES_CHECK_COMPILER
@@ -1484,12 +1484,18 @@ AC_DEFUN([CARES_CHECK_COMPILER_SYMBOL_HIDING], [
}
]],[[
char b[16];
- char *r = dummy(&b);
+ char *r = dummy(&b[0]);
if(r)
return (int)*r;
]])
],[
supports_symbol_hiding="yes"
+ if test -f conftest.err; then
+ grep 'visibility' conftest.err >/dev/null
+ if test "$?" -eq "0"; then
+ supports_symbol_hiding="no"
+ fi
+ fi
],[
supports_symbol_hiding="no"
echo " " >&6