]> granicus.if.org Git - python/commitdiff
Remove outdated with_threads checks in configure.ac (GH-4294)
authorBerker Peksag <berker.peksag@gmail.com>
Mon, 6 Nov 2017 16:06:05 +0000 (19:06 +0300)
committerGitHub <noreply@github.com>
Mon, 6 Nov 2017 16:06:05 +0000 (19:06 +0300)
configure
configure.ac

index 30df2cee70eea7251145b49ecfa24ce4e9e6da91..0edbb3e8623a83481207ec7837056ca8e20f3c9d 100755 (executable)
--- a/configure
+++ b/configure
@@ -9512,9 +9512,7 @@ _ACEOF
 fi
        # Dynamic linking for HP-UX
 
-# only check for sem_init if thread support is requested
-if test "$with_threads" = "yes" -o -z "$with_threads"; then
-    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
 $as_echo_n "checking for library containing sem_init... " >&6; }
 if ${ac_cv_search_sem_init+:} false; then :
   $as_echo_n "(cached) " >&6
@@ -9572,7 +9570,6 @@ fi
  # 'Real Time' functions on Solaris
                                                # posix4 on Solaris 2.6
                                                # pthread (first!) on Linux
-fi
 
 # check if we need libintl for locale functions
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
@@ -10150,9 +10147,6 @@ then
     fi
     posix_threads=yes
 else
-    if test ! -z "$with_threads" -a -d "$with_threads"
-    then LDFLAGS="$LDFLAGS -L$with_threads"
-    fi
     if test ! -z "$withval" -a -d "$withval"
     then LDFLAGS="$LDFLAGS -L$withval"
     fi
index fd158681665ea8f120658a14b225cb2b406f3735..c7738064582e0887b616fb9987c31458382b5a43 100644 (file)
@@ -2677,12 +2677,9 @@ AC_CHECK_LIB(sendfile, sendfile)
 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_init 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
+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,
@@ -2926,9 +2923,6 @@ then
     fi
     posix_threads=yes
 else
-    if test ! -z "$with_threads" -a -d "$with_threads"
-    then LDFLAGS="$LDFLAGS -L$with_threads"
-    fi
     if test ! -z "$withval" -a -d "$withval"
     then LDFLAGS="$LDFLAGS -L$withval"
     fi