diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-14 18:44:27 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-14 18:44:27 +0000 |
commit | 60476354064eca98d52d2d18da9cbb9b3ddb9e5c (patch) | |
tree | 0fb3de71ce45d086abf44121909c040ba6267923 /m4 | |
parent | e16bccbb91e737eb9b8c1bc92a4c6c1351f5264e (diff) |
With this change Solaris target builds will now be done with _REENTRANT defined.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/curl-reentrant.m4 | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/m4/curl-reentrant.m4 b/m4/curl-reentrant.m4 index e185bdf86..9b6c9663f 100644 --- a/m4/curl-reentrant.m4 +++ b/m4/curl-reentrant.m4 @@ -22,7 +22,7 @@ #*************************************************************************** # File version for 'aclocal' use. Keep it a single number. -# serial 2 +# serial 3 dnl Note 1 dnl ------ @@ -339,9 +339,6 @@ dnl makes several _r functions compiler visible. dnl Internal macro for CURL_CONFIGURE_REENTRANT. AC_DEFUN([CURL_CHECK_NEED_REENTRANT_FUNCTIONS_R], [ - # - tmp_need_reentrant="no" - # if test "$tmp_need_reentrant" = "no"; then CURL_CHECK_NEED_REENTRANT_GMTIME_R fi @@ -372,6 +369,24 @@ AC_DEFUN([CURL_CHECK_NEED_REENTRANT_FUNCTIONS_R], [ ]) +dnl CURL_CHECK_NEED_REENTRANT_SYSTEM +dnl ------------------------------------------------- +dnl Checks if the preprocessor _REENTRANT definition +dnl must be unconditionally done for this platform. +dnl Internal macro for CURL_CONFIGURE_REENTRANT. + +AC_DEFUN([CURL_CHECK_NEED_REENTRANT_SYSTEM], [ + case $host in + *-*-solaris*) + tmp_need_reentrant="yes" + ;; + *) + tmp_need_reentrant="no" + ;; + esac +]) + + dnl CURL_CONFIGURE_FROM_NOW_ON_WITH_REENTRANT dnl ------------------------------------------------- dnl This macro ensures that configuration tests done @@ -427,7 +442,10 @@ AC_DEFUN([CURL_CONFIGURE_REENTRANT], [ # if test "$tmp_reentrant_initially_defined" = "no"; then AC_MSG_CHECKING([if _REENTRANT is actually needed]) - CURL_CHECK_NEED_REENTRANT_FUNCTIONS_R + CURL_CHECK_NEED_REENTRANT_SYSTEM + if test "$tmp_need_reentrant" = "no"; then + CURL_CHECK_NEED_REENTRANT_FUNCTIONS_R + fi if test "$tmp_need_reentrant" = "yes"; then AC_MSG_RESULT([yes]) else |