summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2003-07-10 20:44:10 (GMT)
committerSkip Montanaro <skip@pobox.com>2003-07-10 20:44:10 (GMT)
commitd8d39a00c4df0ae590a93eef429a6949be4e0d90 (patch)
tree72c8dfa1cf9b54f66536a6562ae2b9374e5faaaf /configure.in
parent7adcfad4c2dde421bf762b5859457d28181ea97a (diff)
downloadcpython-d8d39a00c4df0ae590a93eef429a6949be4e0d90.zip
cpython-d8d39a00c4df0ae590a93eef429a6949be4e0d90.tar.gz
cpython-d8d39a00c4df0ae590a93eef429a6949be4e0d90.tar.bz2
avoid testing for -Kthread or -pthread if the default build environment
supports pthreads
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 210eab3..5e4be7a 100644
--- a/configure.in
+++ b/configure.in
@@ -751,7 +751,11 @@ int main(){
return 0;
}
],
- ac_cv_pthread_is_default=yes,
+[
+ ac_cv_pthread_is_default=yes
+ ac_cv_kthread=no
+ ac_cv_pthread=no
+],
ac_cv_pthread_is_default=no,
ac_cv_pthread_is_default=no)
])
@@ -791,7 +795,7 @@ CC="$ac_save_cc"])
AC_MSG_RESULT($ac_cv_kpthread)
fi
-if test $ac_cv_kpthread = no
+if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
then
# -Kthread, if available, provides the right #defines
# and linker options to make pthread_create available
@@ -822,7 +826,7 @@ CC="$ac_save_cc"])
AC_MSG_RESULT($ac_cv_kthread)
fi
-if test $ac_cv_kthread = no
+if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
then
# -pthread, if available, provides the right #defines
# and linker options to make pthread_create available