[Python-checkins] python/dist/src configure, 1.416.4.3, 1.416.4.4 configure.in, 1.427.4.3, 1.427.4.4

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sat Sep 20 06:47:31 EDT 2003


Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1:/tmp/cvs-serv17566

Modified Files:
      Tag: release23-maint
	configure configure.in 
Log Message:
Patch #805604: Do not check for sem_init, do not use -Kthread, 
if configured --without-threads.


Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.416.4.3
retrieving revision 1.416.4.4
diff -C2 -d -r1.416.4.3 -r1.416.4.4
*** configure	19 Sep 2003 01:00:10 -0000	1.416.4.3
--- configure	20 Sep 2003 10:47:26 -0000	1.416.4.4
***************
*** 1,4 ****
  #! /bin/sh
! # From configure.in Revision: 1.427.4.2 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.57 for python 2.3.
--- 1,4 ----
  #! /bin/sh
! # From configure.in Revision: 1.427.4.3 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.57 for python 2.3.
***************
*** 4452,4462 ****
    else
      ac_cv_cxx_thread=no
-     CXX="$ac_save_cxx"
    fi
    rm -fr conftest*
- else
-  CXX="$ac_save_cxx"
  fi
  fi
  echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
  echo "${ECHO_T}$ac_cv_cxx_thread" >&6
--- 4452,4460 ----
    else
      ac_cv_cxx_thread=no
    fi
    rm -fr conftest*
  fi
  fi
+ CXX="$ac_save_cxx"
  echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
  echo "${ECHO_T}$ac_cv_cxx_thread" >&6
***************
*** 10363,10367 ****
  fi
  	# Dynamic linking for HP-UX
! echo "$as_me:$LINENO: checking for library containing sem_init" >&5
  echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
  if test "${ac_cv_search_sem_init+set}" = set; then
--- 10361,10368 ----
  fi
  	# Dynamic linking for HP-UX
! 
! # only check for sem_ini if thread support is requested
! if test "$with_threads" = "yes" -o -z "$with_threads"; then
!     echo "$as_me:$LINENO: checking for library containing sem_init" >&5
  echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
  if test "${ac_cv_search_sem_init+set}" = set; then
***************
*** 10469,10474 ****
  fi
   # 'Real Time' functions on Solaris
! 					    # posix4 on Solaris 2.6
! 					    # pthread (first!) on Linux
  # check if we need libintl for locale functions
  echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
--- 10470,10477 ----
  fi
   # 'Real Time' functions on Solaris
! 						# posix4 on Solaris 2.6
! 						# pthread (first!) on Linux
! fi
! 
  # check if we need libintl for locale functions
  echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
***************
*** 10889,10892 ****
--- 10892,10898 ----
  then
      CC="$CC -Kpthread"
+     if test "$ac_cv_cxx_thread" = "yes"; then
+         CXX="$CXX -Kpthread"
+     fi
      cat >>confdefs.h <<\_ACEOF
  #define WITH_THREAD 1
***************
*** 10898,10901 ****
--- 10904,10910 ----
  then
      CC="$CC -Kthread"
+     if test "$ac_cv_cxx_thread" = "yes"; then
+         CXX="$CXX -Kthread"
+     fi
      cat >>confdefs.h <<\_ACEOF
  #define WITH_THREAD 1
***************
*** 10907,10910 ****
--- 10916,10922 ----
  then
      CC="$CC -pthread"
+     if test "$ac_cv_cxx_thread" = "yes"; then
+         CXX="$CXX -pthread"
+     fi
      cat >>confdefs.h <<\_ACEOF
  #define WITH_THREAD 1

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.427.4.3
retrieving revision 1.427.4.4
diff -C2 -d -r1.427.4.3 -r1.427.4.4
*** configure.in	19 Sep 2003 01:00:16 -0000	1.427.4.3
--- configure.in	20 Sep 2003 10:47:28 -0000	1.427.4.4
***************
*** 869,873 ****
  if test "$ac_cv_kpthread" = "yes"
  then
!   CXX="$CXX -Kpthread"
    ac_cv_cxx_thread=yes
  elif test "$ac_cv_kthread" = "yes"
--- 869,873 ----
  if test "$ac_cv_kpthread" = "yes"
  then
!   CXX="$CXX -Kpthread"  
    ac_cv_cxx_thread=yes
  elif test "$ac_cv_kthread" = "yes"
***************
*** 891,901 ****
    else
      ac_cv_cxx_thread=no
-     CXX="$ac_save_cxx"
    fi
    rm -fr conftest*
- else
-  CXX="$ac_save_cxx"
  fi
  fi
  AC_MSG_RESULT($ac_cv_cxx_thread)
  
--- 891,899 ----
    else
      ac_cv_cxx_thread=no
    fi
    rm -fr conftest*
  fi
  fi
+ CXX="$ac_save_cxx"
  AC_MSG_RESULT($ac_cv_cxx_thread)
  
***************
*** 1411,1417 ****
  AC_CHECK_LIB(dl, dlopen)	# Dynamic linking for SunOS/Solaris and SYSV
  AC_CHECK_LIB(dld, shl_load)	# Dynamic linking for HP-UX
! AC_SEARCH_LIBS(sem_init, pthread rt posix4) # 'Real Time' functions on Solaris
! 					    # posix4 on Solaris 2.6
! 					    # pthread (first!) on Linux
  # check if we need libintl for locale functions
  AC_CHECK_LIB(intl, textdomain,
--- 1409,1420 ----
  AC_CHECK_LIB(dl, dlopen)	# Dynamic linking for SunOS/Solaris and SYSV
  AC_CHECK_LIB(dld, shl_load)	# Dynamic linking for HP-UX
! 
! # only check for sem_ini if thread support is requested
! if test "$with_threads" = "yes" -o -z "$with_threads"; then
!     AC_SEARCH_LIBS(sem_init, pthread rt posix4) # 'Real Time' functions on Solaris
! 						# posix4 on Solaris 2.6
! 						# pthread (first!) on Linux
! fi
! 
  # check if we need libintl for locale functions
  AC_CHECK_LIB(intl, textdomain,
***************
*** 1531,1534 ****
--- 1534,1540 ----
  then
      CC="$CC -Kpthread"
+     if test "$ac_cv_cxx_thread" = "yes"; then
+         CXX="$CXX -Kpthread"
+     fi
      AC_DEFINE(WITH_THREAD)
      posix_threads=yes
***************
*** 1537,1540 ****
--- 1543,1549 ----
  then
      CC="$CC -Kthread"
+     if test "$ac_cv_cxx_thread" = "yes"; then
+         CXX="$CXX -Kthread"
+     fi
      AC_DEFINE(WITH_THREAD)
      posix_threads=yes
***************
*** 1543,1546 ****
--- 1552,1558 ----
  then
      CC="$CC -pthread"
+     if test "$ac_cv_cxx_thread" = "yes"; then
+         CXX="$CXX -pthread"
+     fi
      AC_DEFINE(WITH_THREAD)
      posix_threads=yes





More information about the Python-checkins mailing list