]> git.sur5r.net Git - openldap/commitdiff
ITS#6669 remove obsolete SunOS4 LWP support
authorHoward Chu <hyc@openldap.org>
Tue, 12 Oct 2010 10:26:31 +0000 (10:26 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 12 Oct 2010 10:26:31 +0000 (10:26 +0000)
configure.in
include/ldap_int_thread.h
include/portable.hin
libraries/libldap_r/Makefile.in

index 56c3f7701db3e88a6c57abdb58ace50e9eba1e7f..8979649d120d3d54262a4c0ad7493ef658daa244 100644 (file)
@@ -1711,23 +1711,6 @@ case $ol_with_threads in auto | yes | lwp)
                        )
                fi
        fi
-
-       dnl check for SunOS4 LWP
-       AC_CHECK_HEADERS(lwp/lwp.h)
-       if test $ac_cv_header_lwp_lwp_h = yes ; then
-               AC_CHECK_LIB(lwp, lwp_create, [have_lwp=yes], [have_lwp=no])
-
-               if test $have_lwp = yes ; then
-                       AC_DEFINE(HAVE_LWP,1,
-                               [if you have SunOS LWP package])
-                       LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
-                       ol_link_threads=lwp
-
-                       if test $ol_with_yielding_select = auto ; then
-                               ol_with_yielding_select=no
-                       fi
-               fi
-       fi
        ;;
 esac
 
@@ -1747,7 +1730,6 @@ if test $ol_with_threads = manual ; then
        OL_HEADER_LINUX_THREADS
 
        AC_CHECK_HEADERS(mach/cthreads.h)
-       AC_CHECK_HEADERS(lwp/lwp.h)
        AC_CHECK_HEADERS(thread.h synch.h)
 fi
 
index 759c951e22272946d806cff073acf35f4981f01d..d2430f31ac967460b15e9933327702d301fc8fde 100644 (file)
@@ -145,31 +145,6 @@ typedef thread_key_t       ldap_int_thread_key_t;
 
 LDAP_END_DECL
 
-#elif defined( HAVE_LWP )
-/*************************************
- *                                   *
- * thread definitions for SunOS LWP  *
- *                                   *
- *************************************/
-
-#include <lwp/lwp.h>
-#include <lwp/stackdep.h>
-#define LDAP_THREAD_HAVE_SLEEP 1
-
-LDAP_BEGIN_DECL
-
-typedef thread_t               ldap_int_thread_t;
-typedef mon_t                  ldap_int_thread_mutex_t;
-struct ldap_int_thread_lwp_cv {
-       int             lcv_created;
-       cv_t            lcv_cv;
-};
-typedef struct ldap_int_thread_lwp_cv ldap_int_thread_cond_t;
-
-#define HAVE_REENTRANT_FUNCTIONS 1
-
-LDAP_END_DECL
-
 #elif defined(HAVE_NT_THREADS)
 /*************************************
  *                                   *
index 900de8a261ec587148ef24d80d5dc217303fbe69..97d8941817135f82984ed631b2f6fcf430fe0bc8 100644 (file)
 /* Define to 1 if you have the <ltdl.h> header file. */
 #undef HAVE_LTDL_H
 
-/* if you have SunOS LWP package */
-#undef HAVE_LWP
-
-/* Define to 1 if you have the <lwp/lwp.h> header file. */
-#undef HAVE_LWP_LWP_H
-
 /* define if you have Mach Cthreads */
 #undef HAVE_MACH_CTHREADS
 
index 3d4f1db602307ad8160a05a97f747abd6405c29a..7093221557cd03b337bbcb4fac2dd5377bb82af6 100644 (file)
@@ -32,10 +32,10 @@ XXSRCS    = apitest.c test.c \
        turn.c ppolicy.c dds.c txn.c ldap_sync.c stctrl.c \
        assertion.c deref.c ldifutil.c
 SRCS   = threads.c rdwr.c rmutex.c tpool.c rq.c \
-       thr_posix.c thr_cthreads.c thr_thr.c thr_lwp.c thr_nt.c \
+       thr_posix.c thr_cthreads.c thr_thr.c thr_nt.c \
        thr_pth.c thr_stub.c thr_debug.c
 OBJS   = threads.lo rdwr.lo rmutex.lo tpool.lo  rq.lo \
-       thr_posix.lo thr_cthreads.lo thr_thr.lo thr_lwp.lo thr_nt.lo \
+       thr_posix.lo thr_cthreads.lo thr_thr.lo thr_nt.lo \
        thr_pth.lo thr_stub.lo thr_debug.lo \
        bind.lo open.lo result.lo error.lo compare.lo search.lo \
        controls.lo messages.lo references.lo extended.lo cyrus.lo \