diff options
author | Yang Tse <yangsita@gmail.com> | 2009-11-14 18:51:37 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-11-14 18:51:37 +0000 |
commit | 1cbc93fb54b773d1564bf2f2194d81c02a985a81 (patch) | |
tree | 37c22d1a2eeb535cce65c8f5c08738397ecb6c59 /configure.ac | |
parent | a8ddd6ce3141bc4c8745eddae31db1887eeacd0a (diff) | |
download | curl-1cbc93fb54b773d1564bf2f2194d81c02a985a81.tar.gz |
Refactor how preprocessor symbol _THREAD_SAFE definition is done.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/configure.ac b/configure.ac index d2db6cf54..bc7e0e4bd 100644 --- a/configure.ac +++ b/configure.ac @@ -148,6 +148,7 @@ dnl This defines _ALL_SOURCE for AIX CURL_CHECK_AIX_ALL_SOURCE dnl Our configure and build reentrant settings +CURL_CONFIGURE_THREAD_SAFE CURL_CONFIGURE_REENTRANT dnl check for how to do large files @@ -1823,22 +1824,6 @@ esac dnl Default is to try the thread-safe versions of a few functions OPT_THREAD=on -dnl detect AIX 4.3 or later -dnl see full docs on this reasoning in the lib/hostip.c source file -AC_MSG_CHECKING([AIX 4.3 or later]) -AC_PREPROC_IFELSE([ -#if defined(_AIX) && defined(_AIX43) -printf("just fine"); -#else -#error "this is not AIX 4.3 or later" -#endif -], - [ AC_MSG_RESULT([yes]) - RECENTAIX=yes - OPT_THREAD=off ], - [ AC_MSG_RESULT([no]) ] -) - AC_ARG_ENABLE(thread,dnl AC_HELP_STRING([--disable-thread],[don't look for thread-safe functions]) AC_HELP_STRING([--enable-thread],[look for thread-safe functions]), @@ -1886,19 +1871,6 @@ dnl Let's hope this split URL remains working: dnl http://publibn.boulder.ibm.com/doc_link/en_US/a_doc_lib/aixprggd/ \ dnl genprogc/thread_quick_ref.htm -if test "x$RECENTAIX" = "xyes"; then - - AC_DEFINE(_THREAD_SAFE, 1, [define this if you need it to compile thread-safe code]) - - dnl is there a localtime_r() - dnl the old localtime_r check was done here - - dnl is there a strerror_r() - dnl the old strerror_r check was done here - - checkfor_gmtime_r="yes" -fi - dnl ********************************************************************** dnl Back to "normal" configuring |