Commit Graph

93 Commits

Author SHA1 Message Date
Kurt Zeilenga
da40e0e350 Even more pthread changes for Digital UNIX... 1999-02-02 04:23:37 +00:00
Kurt Zeilenga
4160c2029b Added addition pthread checks for Digital UNIX (OSF/1).
Added comment with order of checks.
1999-02-01 23:54:31 +00:00
Kurt Zeilenga
fb0489d922 Added --enable-bdb2 for Ksp's Berkeley DB 2 specific slapd backend.
Supports 'yes', 'no' (default), and 'auto'.
1999-02-01 22:19:42 +00:00
Kurt Zeilenga
9f96ab2fb0 Add ac/sysexits.h for GNU win32 environments.
Fix LDAP_API_VENDOR_VERSION -> LDAP_VENDOR_VERSION bug
1999-02-01 02:47:39 +00:00
Kurt Zeilenga
94cdf28fa9 Use the following macros in preparation for GNU win32 support.
AC_CYGWIN AC_MINGW32 AC_EXEEXT AC_OBJEXT
1999-02-01 02:06:36 +00:00
Kurt Zeilenga
8981a52ed3 Rebuild configure using autoconf 1.3 (with aclocal from automake 1.4). 1999-02-01 01:36:42 +00:00
Kurt Zeilenga
300a242432 have --enable-dns imply --enable-referrals. If --disable-referrals, error. 1999-01-31 01:55:39 +00:00
Kurt Zeilenga
72ba4cfb71 Use -lldap_r instead of -lldap -lthread.
Likely broke things for non-posix threadings....

Update -lldap_r implementation to:
	remove attribute support
	hide thread detachment
	provide concurrency accessors
	provide initialization function
	fix gethostby{addr,name}_r codes (not coverred by HAVE_REENTRANT_FUNCTIONS)
Update servers/libraries to use ldap_pvt_thread_ calls.
Cleanup server codes (no #ifdef HAVE_PTHREAD_THIS or _THATs)!
Removed -llthread
1999-01-28 04:34:55 +00:00
Kurt Zeilenga
a31de60768 Minor cleanup of various detections... 1999-01-24 01:33:22 +00:00
Kurt Zeilenga
4863d98084 Remove configure's wait3 test as we don't care about the rusage.
Rewrite all child waits to use wait4 (for consistency only).
1999-01-23 04:03:43 +00:00
Kurt Zeilenga
ddb0752b8f Move libldap/strdup.c to string.c.
libldap/string.c will hold various string.h replacements.
Removed liblutil/strdup.c
Moved ldap_pvt_strtok to string.c.
Moved prototype of ldap_pvt_strtok to <ac/string.h>.
Added #define strtok_r ldap_pvt_strtok (if strtok_r doesn't exist).
1999-01-22 04:33:29 +00:00
Kurt Zeilenga
7cd4e05a27 Add support for FreeBSD -kthread (kernel pthreads) 1999-01-21 22:25:33 +00:00
Kurt Zeilenga
ef4ddc5ad7 Repeat the misplaced header check for --with-threads=lwp.
Suggest --with-threads=posix when error is reported.
1999-01-19 00:33:12 +00:00
Kurt Zeilenga
aa92024af0 Test for misplaced pthread_t in sys/types.h.
Once we have private types for threads, this check can be removed.
1999-01-18 23:47:10 +00:00
Bart Hartgers
c230139a8c strpbrk was checked for twice, and something didn't work. Now it does. 1999-01-14 17:43:32 +00:00
Bart Hartgers
f6a47058b6 Improved ldap_int_strtok. If strtok_r does not exists, it will be worked
simulated with strspn and strpbrk. If strspn or strpbrk aren't there, they
will be supplied.
In addition, the memory-handling of the ldap_int_gethostby's is better now.
1999-01-14 15:19:29 +00:00
Kurt Zeilenga
b7beec1663 Initial version of the experimental 'back-perl'
John's still working on the 'perl-test' (the perl backend test module).
1999-01-14 06:33:09 +00:00
Kurt Zeilenga
0949ea9c10 Fix variable names in res_search check. 1999-01-14 03:14:46 +00:00
Randy Kunkee
42ac550d46 Protect some tests with quotes. 1999-01-14 02:58:56 +00:00
Kurt Zeilenga
cb31c7aa9a Update check for res_search. If not available in $LIBS, check
in -lbind then in -lresolv.
1999-01-13 01:11:28 +00:00
Kurt Zeilenga
318531a437 Use pthread_detach() to detach connection threads instead of
creating them detached.  This hopefully will reduce problems on
draft4 pthread implementations related to creating detached
threads (which is _np under draft4) on some platforms without
causing problems with other thread implementations.
1999-01-11 19:04:34 +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
114a0cd339 Update ctime_r() argument macro to cache results and to produce
one preprocessor macro instead of two.  Ran aclocal, autoconf,
autoheader to update derived files.  Modify util-int.c to use
CTIME_R_NARGS define and fallback to ctime() if not set.
Made LDAP_API_FEATURE_X_OPENLDAP_REENTRANT dependent upon result.
1999-01-02 23:40:31 +00:00
Bart Hartgers
f9d26dacd4 Teached autoconf to figure out how may arguments ctime_r expects.
Updated util-int.c to use this information.
1999-01-02 00:56:45 +00:00
Kurt Zeilenga
8ebec49d9d Add special check for pthreads under HP-UX (as last resort). 1998-12-30 19:46:39 +00:00
Kurt Zeilenga
9493e8d7c1 Update copyright notices to 1999. 1998-12-28 20:08:17 +00:00
Randy Kunkee
a451ccc50b Fix line 62 of bprint.c "#elif" line with no expression.
Add check for to configure.in vsprintf, since HAVE_VSPRINTF is presumably
what was intended there.  Finally, also protected a bunch of if test
expressions with double quotes, as they were producing illegal test
commands.
1998-12-24 01:31:40 +00:00
Kurt Zeilenga
a3ac3be6a7 Added lber_get/set_option. Removed lber_debug/ldap_debug.
Updated other codes as needed.
1998-12-22 01:34:01 +00:00
Kurt Zeilenga
362d6cbf2a Add configure code for setting LDAP_SYSLOG but actually use hardcoded
LDAP_SYSLOG in slap.h/slurp.h.
1998-12-20 21:56:44 +00:00
Kurt Zeilenga
a5eee14f72 Add detection of dmalloc library. 1998-12-20 19:12:20 +00:00
Kurt Zeilenga
b5973eba5d Minor change to signal handler. Changed _shutdown flag to
type 'sig_atomic_t' and marked it volatile.  Add detection to
configure to ensure sig_atomic_t and volatile are supported.
1998-12-20 18:16:03 +00:00
Kurt Zeilenga
8aba5c5059 Provide framework for ldap_r and reentrant/thread safety levels.
-lldap_r can now be implemented...
1998-12-20 00:58:55 +00:00
Kurt Zeilenga
27e8d218ee Add -lldap_r build environment (no code yet). 1998-12-19 03:24:36 +00:00
Kurt Zeilenga
0024cf2f4b -lldap reentrantancy improvements from Bart Hartgers <A.Hartgers@phys.tue.nl>
including use of ctime_r, gethostby*_r, etc..  Also reworked ldap_sort_entries
to be reentrant.
Need to add code to properly set LDAP_API_FEATURE_THREAD_SAFE.
1998-12-19 01:27:20 +00:00
Kurt Zeilenga
8854adfc49 ITS#9: check for main in -lwrap instead hosts_access.
hosts_access depends on caller declaring some externs and, hence,
can be used for the test.
1998-12-17 18:35:12 +00:00
Kurt Zeilenga
9db062bb71 Update pthread checks:
Add plain -lpthread check.
	Move *_r() checks so that they are checked for regradless
		of thread libs used.  Before they were only being checked
		when using threads.
	Fix yields test such that compile/link/odd runtime failures results in
		'yes' instead of 'no'.
1998-12-14 00:23:22 +00:00
Kurt Zeilenga
a3c8546021 Update kerberos checks. 1998-12-10 23:35:28 +00:00
Kurt Zeilenga
545048451c Update Kerberos checks. 1998-12-07 23:32:25 +00:00
Kurt Zeilenga
76dc7b2673 Add checks for gethostby{name,addr}_r. Only should be used if
linking with $LTHREAD_LIBS.
1998-12-04 04:21:19 +00:00
Kurt Zeilenga
514c44a5c8 Add checks for reentrant functions when LTHREAD_LIBS is used.
Don't use new HAVE_FUNC_R on the client side (apps or libs).
1998-12-04 02:31:41 +00:00
Kurt Zeilenga
76fe6f86bd Fix --with-threads=yes. 1998-12-02 19:31:48 +00:00
Kurt Zeilenga
1105b1a892 Skip NDBM check when in auto detecting LDBM api. 1998-12-01 18:33:31 +00:00
Kurt Zeilenga
c1cef27bda Update slapd to use lutil_passwd() for both user and root passwords.
Remove MD5 and SHA1 options (both are now always on).  Rename
functions to be lutil_ instead of ldap_.
Create --enable-cleartext option.  Default is currently 'on'.
1998-12-01 03:36:37 +00:00
Kurt Zeilenga
c8298ec23b Remove lint from pthread TRY_RUN checks. 1998-12-01 00:07:04 +00:00
Kurt Zeilenga
febafbdf28 Add varients of REENTRANT... 1998-11-30 20:40:42 +00:00
Kurt Zeilenga
70a4dd7f87 Add pthread_create consistency check. 1998-11-30 01:58:54 +00:00
Kurt Zeilenga
a093e98658 Subsitute ldap_subdir after processing argument. 1998-11-29 23:50:01 +00:00
Kurt Zeilenga
0c24fa2f3d Add --with-subdir to allow user specification of install subdirectory
to be used.  --without-subdir can be used to specify no subdirectory.
1998-11-29 20:03:57 +00:00
Kurt Zeilenga
edd464ee8f Update build environment:
default sysconfdir subdirectory is openldap instead of ldap.
    This removes conflicts with other ldap subsystems.  Should
    be configure option.
  *.conf files are now preserved.  A *.conf.default are always
    created with the latest conf.
  *.help and ldapfriendly are now placed in $(datadir)/$(ldap_subdir)
  updated man pages to reflect changes.
1998-11-29 19:48:28 +00:00