Commit Graph

33 Commits

Author SHA1 Message Date
Kurt Zeilenga
28a671d10d Revamp build system yet again to move all external libraries to
end of link.    Basic order is:
	$LDFLAGS internal-libs external-libs $LIBS $LTHREAD_LIBS

LTHREAD_LIBS is last as -lpthread (or equiv) must be last on many systems.
LIBS is next to last as some user might have put -lpthread (or equiv)
in $LIBS.
1999-01-14 01:31:43 +00:00
Kurt Zeilenga
82b94e2258 Change SLAPD shutdown to do a cond wait on active threads instead
of a busy wait and allow the pthread_yield within the loop to be
removed.  This was the only pthread_yield which was necessary
when usng non-preemptive threads.  As such, the configure.in
sched_yield/pthread_yield missing error can be removed from
configure.in.  If explicit yield function is missing, just provide
a no-op replacement.
Moved declaration of various slapd globals from main.c to init.c
so they can be shared with ldbm tools.
1999-01-11 18:36:40 +00:00
Kurt Zeilenga
334768c1bb Update build environment to fix VPATH support.
make depend, make tests, and make install all work when build directory
  is not the $srcdir.
Also modified library handling such that -lpthread more likely to be last.
WARNING: new orderring requires use of LDFLAGS to set global loader options
  such as -L/usr/local/lib.  If you put this in LIBS, some libraries
  may not be found a link time.
Likely broke Kerberos/LDAPD support.  Don't have those in my testbed.
1999-01-10 02:25:41 +00:00
Kurt Zeilenga
07a03d2245 Should use right define HAVE_NT_THREADS... 1998-11-23 00:17:23 +00:00
Kurt Zeilenga
61e8984d7a Add basic NT thread support. 1998-11-23 00:14:12 +00:00
Kurt Zeilenga
baf8e2f010 Axe the SunOS 5.6 define and use Pthreads. 1998-11-22 23:18:46 +00:00
Hallvard Furuseth
de808662ac stack.c did not compile, needed ldap_log.h for its debugging statements. 1998-11-20 11:44:19 +00:00
Hallvard Furuseth
7e6ad5100c Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking.  Retyped a number of functions, usually
to return void.  Fixed a number of printf format errors.

API changes (in ldap/include):
  Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
  for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.

A number of `extern' declarations are left (some added by protoize), to
be cleaned away later.  Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-15 22:40:11 +00:00
Kurt Zeilenga
1c91859e9b Remove #ifdef sunos in lthread HAVE_LWP code. 1998-11-15 22:05:28 +00:00
Kurt Zeilenga
1f4b479b2b Update thread detection:
ifndef HAVE_PTHREAD_KILL pthread_kill() code and prototype.
  Fix HAVE_FUNC_PTHREAD defines from previous change.
1998-11-09 21:15:56 +00:00
Kurt Zeilenga
8cb0ff3a68 Fix rwlock pthread draft4 compatibility.
Fix pthread_attr_init/destroy pthread draft4 compatibility.
1998-11-09 20:50:52 +00:00
Kurt Zeilenga
dd51f86042 More files that didn't get merged properly. 1998-10-25 03:13:43 +00:00
Kurt Zeilenga
eb16d5d88f replace with autoconf versions 1998-10-25 02:08:13 +00:00
Kurt Zeilenga
cbb281cc4e remove old files 1998-10-25 01:50:47 +00:00
Kurt Zeilenga
2a869f5a99 merged with autoconf branch 1998-10-25 01:41:42 +00:00
Kurt Zeilenga
4a5d740e2e Merged in per cache entry reader/writer locks from OPENLDAP_DEVEL_THREAD 1998-09-20 20:22:46 +00:00
Kurt Zeilenga
58718e3bc6 Add #ifdef for when sched_yield/sched.h is missing. 1998-09-16 02:41:38 +00:00
Kurt Zeilenga
b015c8db24 Add support for OpenBSD. Provided by djg@gregor.com. 1998-08-31 20:49:27 +00:00
Kurt Zeilenga
cb587e9bf0 Added check routines from Stuart Lynne 1998-08-30 18:55:54 +00:00
Kurt Zeilenga
7b531e8e62 Fix includes 1998-08-30 17:52:37 +00:00
Kurt Zeilenga
9071e067ec Belongs in the include directory 1998-08-30 17:51:34 +00:00
Kurt Zeilenga
c98a6ff9e9 Document important limitation of this basic implementation 1998-08-29 21:46:42 +00:00
Kurt Zeilenga
efac7f4c88 Add Reader/Writer Locks to library 1998-08-29 21:45:04 +00:00
Kurt Zeilenga
5d64c8f95d Added Reader/Writer lock code from publicily available examples for
Nichols, Butler, Farrell's book "Pthreads Programming" (O'Reilly).
1998-08-29 21:43:18 +00:00
Kurt Zeilenga
d2ef362f99 Removed use of paths not defined in ldapconfig.h.edit.
Fixed Dependency Generation not to mess with Make-templates.
	side effect: depends are not carried forward after "make makefiles"
1998-08-20 03:56:19 +00:00
Kurt Zeilenga
b3ac184962 Fixed ldapconfig.h.edit/Make-template to generate ldapconfig.h correctly.
ldif2ldbm.c defaults moved to ldapconfig.h, sed no longer needed.
Changed type of lconn_lastused to time_t.
Added include <time.h> were needed.
1998-08-20 02:18:28 +00:00
Kurt Zeilenga
adc2134f03 Modified build environment to correctly support bin,sbin,libexec,etc
and setting of variables from Make-platform with defaults in Make-common.
1998-08-19 18:19:39 +00:00
Kurt Zeilenga
3a431b77ef pthread_create attr argument should be passed by value per POSIX
standard.  Was working as is only because pthread_attr_t is normally
a struct.  However, on some systems it may be a integer.
1998-08-14 20:41:47 +00:00
Kurt Zeilenga
1b5451d619 Added patch to support LWP under SunOS 5.6 1998-08-14 20:12:02 +00:00
Kurt Zeilenga
f3e9bc606c integrated changed from rage.net glibc.patch 1998-08-13 19:32:43 +00:00
Kurt Zeilenga
b63a0b1c61 LDAPworldP19: Patch for Next C-Threads 1998-08-09 03:13:49 +00:00
Kurt Zeilenga
8d5c2b41e6 LDAPworld P3: SLAPD LDBM Generation with Multiple Backends 1998-08-09 02:33:01 +00:00
Kurt Zeilenga
42e0d83cb3 Initial revision 1998-08-09 00:43:13 +00:00