diff options
author | Yang Tse <yangsita@gmail.com> | 2011-08-20 20:11:00 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-08-20 20:11:00 +0200 |
commit | 34d5d7696968e3d919f84b3210167073b4d3e33c (patch) | |
tree | 78d6d0687a5eb98a719862d6ff87ed5fd416b8fb /m4 | |
parent | f11c2c28913d323e269b3bb521fea254ac51d9df (diff) | |
download | c-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.m4 | 10 |
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 |