[Python-checkins] CVS: python/dist/src configure,1.255,1.256 configure.in,1.263,1.264
Martin v. L?wis
loewis@users.sourceforge.net
2001年10月07日 01:14:43 -0700
Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv6691
Modified Files:
configure configure.in
Log Message:
Use AC_TRY_RUN for checking for -Kpthread.
Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.255
retrieving revision 1.256
diff -C2 -d -r1.255 -r1.256
*** configure 2001年10月04日 22:44:25 1.255
--- configure 2001年10月07日 08:14:41 1.256
***************
*** 1,5 ****
#! /bin/sh
! # From configure.in Revision: 1.262
# Guess values for system-dependent variables and create Makefiles.
--- 1,5 ----
#! /bin/sh
! # From configure.in Revision: 1.263
[...4155 lines suppressed...]
if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
! #line 7189 "configure"
#include "confdefs.h"
#include <sys/types.h>
***************
*** 7225,7229 ****
SRCDIRS="Parser Grammar Objects Python Modules"
echo $ac_n "checking for build directories""... $ac_c" 1>&6
! echo "configure:7228: checking for build directories" >&5
for dir in $SRCDIRS; do
if test ! -d $dir; then
--- 7235,7239 ----
SRCDIRS="Parser Grammar Objects Python Modules"
echo $ac_n "checking for build directories""... $ac_c" 1>&6
! echo "configure:7238: checking for build directories" >&5
for dir in $SRCDIRS; do
if test ! -d $dir; then
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.263
retrieving revision 1.264
diff -C2 -d -r1.263 -r1.264
*** configure.in 2001年10月04日 22:44:26 1.263
--- configure.in 2001年10月07日 08:14:41 1.264
***************
*** 408,425 ****
# -Kpthread, if available, provides the right #defines
# and linker options to make pthread_create available
AC_MSG_CHECKING(whether $CC accepts -Kpthread)
AC_CACHE_VAL(ac_cv_kpthread,
[ac_save_cc="$CC"
CC="$CC -Kpthread"
! AC_TRY_LINK([#include <pthread.h>],[pthread_create(0,0,0,0)],
ac_cv_kpthread=yes,
ac_cv_kpthread=no)
CC="$ac_save_cc"])
-
- # GCC does not reject -Kpthread as an illegal option, it merely complains that
- # it is unrecognized
- if test "$GCC" = "yes"
- then ac_cv_kpthread="no, we have gcc"
- fi
AC_MSG_RESULT($ac_cv_kpthread)
--- 408,434 ----
# -Kpthread, if available, provides the right #defines
# and linker options to make pthread_create available
+ # Some compilers won't report that they do not support -Kpthread,
+ # so we need to run a program to see whether it really made the
+ # function available.
AC_MSG_CHECKING(whether $CC accepts -Kpthread)
AC_CACHE_VAL(ac_cv_kpthread,
[ac_save_cc="$CC"
CC="$CC -Kpthread"
! AC_TRY_RUN([
! #include <pthread.h>
!
! void* routine(void* p){return NULL;}
!
! int main(){
! pthread_t p;
! if(pthread_create(&p,NULL,routine,NULL)!=0)
! return 1;
! return 0;
! }
! ],
ac_cv_kpthread=yes,
+ ac_cv_kpthread=no,
ac_cv_kpthread=no)
CC="$ac_save_cc"])
AC_MSG_RESULT($ac_cv_kpthread)