diff options
author | Yang Tse <yangsita@gmail.com> | 2009-05-27 19:21:09 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-05-27 19:21:09 +0000 |
commit | 388e389638f1abccaabbb429f62e934da37cbe09 (patch) | |
tree | bd8cec894d6821acd0a4182f292df137b8a5c784 /m4/cares-compilers.m4 | |
parent | f5464f6c0e4b93fd0dcc262f892a65d045e2a3e2 (diff) | |
download | c-ares-388e389638f1abccaabbb429f62e934da37cbe09.tar.gz c-ares-388e389638f1abccaabbb429f62e934da37cbe09.tar.bz2 c-ares-388e389638f1abccaabbb429f62e934da37cbe09.zip |
Allow curl debug memory tracking when building a shared library on
systems which support external, undefined, symbols in shared libraries.
Diffstat (limited to 'm4/cares-compilers.m4')
-rw-r--r-- | m4/cares-compilers.m4 | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/m4/cares-compilers.m4 b/m4/cares-compilers.m4 index 50c73c6..7a65028 100644 --- a/m4/cares-compilers.m4 +++ b/m4/cares-compilers.m4 @@ -16,7 +16,7 @@ #*************************************************************************** # File version for 'aclocal' use. Keep it a single number. -# serial 52 +# serial 53 dnl CARES_CHECK_COMPILER @@ -1095,13 +1095,17 @@ AC_DEFUN([CARES_CHECK_CURLDEBUG], [ supports_curldebug="no" fi if test "$supports_curldebug" != "no"; then - if test "$enable_shared" != "no"; then - AC_MSG_WARN([configured to build shared library.]) - supports_curldebug="no" - fi - if test "$enable_static" != "yes"; then - AC_MSG_WARN([configured to build no static library.]) - supports_curldebug="no" + if test "$enable_shared" = "yes"; then + if test "x$allow_undefined" = "xno"; then + supports_curldebug="no" + elif test "x$allow_undefined_flag" = "xunsupported"; then + supports_curldebug="no" + elif test "x$need_no_undefined" = "xyes"; then + supports_curldebug="no" + fi + if test "$supports_curldebug" = "no"; then + AC_MSG_WARN([shared library does not support undefined symbols.]) + fi fi if test ! -f "$srcdir/../include/curl/curlbuild.h.dist"; then AC_MSG_WARN([source not embedded in curl's CVS tree.]) |