diff options
author | Yang Tse <yangsita@gmail.com> | 2009-06-05 13:17:55 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-06-05 13:17:55 +0000 |
commit | 2e7b36d04fc5cf63ea0b098b8282dcd5f98fcc15 (patch) | |
tree | 19a535828c0f61c8e158ca3bbc05bd07ea15ba05 /ares/m4 | |
parent | ce1a58414aa7177e71a4279cfc650610a3ec64b6 (diff) |
c-ares' -no-undefined and --enable-curldebug adjustments
Diffstat (limited to 'ares/m4')
-rw-r--r-- | ares/m4/cares-compilers.m4 | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/ares/m4/cares-compilers.m4 b/ares/m4/cares-compilers.m4 index 09c59be01..9c8294877 100644 --- a/ares/m4/cares-compilers.m4 +++ b/ares/m4/cares-compilers.m4 @@ -16,7 +16,7 @@ #*************************************************************************** # File version for 'aclocal' use. Keep it a single number. -# serial 54 +# serial 55 dnl CARES_CHECK_COMPILER @@ -1077,8 +1077,10 @@ dnl Settings which depend on configure's curldebug given dnl option, and other additional configure pre-requisites. dnl Using the curl debug memory tracking feature in c-ares dnl is a hack that actually can only be used/enabled when -dnl c-ares is built as a static library directly in curl's -dnl CVS tree along with an equally configured libcurl. +dnl c-ares is built directly in curl's CVS tree, as a static +dnl library or as a shared one on those systems on which +dnl shared libraries support undefined symbols, along with +dnl an equally configured libcurl. AC_DEFUN([CARES_CHECK_CURLDEBUG], [ AC_REQUIRE([CARES_SHFUNC_SQUEEZE])dnl @@ -1146,6 +1148,7 @@ AC_DEFUN([CARES_CHECK_CURLDEBUG], [ fi # if test "$want_curldebug" = "yes"; then + dnl TODO: Verify if the BUILDING_LIBCURL definition is still required. AC_DEFINE(BUILDING_LIBCURL, 1, [when building as static part of libcurl]) CPPFLAGS="$CPPFLAGS -DCURLDEBUG" squeeze CPPFLAGS @@ -1155,13 +1158,18 @@ AC_DEFUN([CARES_CHECK_CURLDEBUG], [ dnl CARES_CHECK_NO_UNDEFINED dnl ------------------------------------------------- +dnl Checks if the -no-undefined flag must be used when +dnl building shared libraries. This is required on all +dnl systems on which shared libraries should not have +dnl references to undefined symbols. This check should +dnl not be done before AC-PROG-LIBTOOL. AC_DEFUN([CARES_CHECK_NO_UNDEFINED], [ AC_BEFORE([$0],[CARES_CHECK_CURLDEBUG])dnl - AC_MSG_CHECKING([if we need -no-undefined]) + AC_MSG_CHECKING([if shared libraries need -no-undefined]) need_no_undefined="no" case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc* | *-*-aix*) need_no_undefined="yes" ;; esac @@ -1170,11 +1178,6 @@ AC_DEFUN([CARES_CHECK_NO_UNDEFINED], [ elif test "x$allow_undefined_flag" = "xunsupported"; then need_no_undefined="yes" fi - case $compiler_id in - IBM_C | INTEL_UNIX_C | INTEL_WINDOWS_C | SUNPRO_C) - need_no_undefined="yes" - ;; - esac AC_MSG_RESULT($need_no_undefined) ]) |