From: Yang Tse Date: Sat, 20 Aug 2011 18:11:00 +0000 (+0200) Subject: configure: fix symbol hiding usability check X-Git-Tag: upstream/1.10.0~151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34d5d7696968e3d919f84b3210167073b4d3e33c;p=platform%2Fupstream%2Fc-ares.git 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. --- 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