Commit Graph

81 Commits

Author SHA1 Message Date
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
Kurt Zeilenga
30cefc46de Add KRB_LIBS to makefiles. 1998-11-25 23:49:12 +00:00
Kurt Zeilenga
e020da90c1 Need to add unistd.h and sys/time.h checks back in now that
now that the mktime check is commented out.
1998-11-23 06:02:47 +00:00
Kurt Zeilenga
1650f15d9d Remove mktime/stdtod checks. They are not currently needed. 1998-11-23 03:08:26 +00:00
Kurt Zeilenga
0f518857f0 Update configure with new yielding select test. 1998-11-22 20:25:52 +00:00
Kurt Zeilenga
04d91569e1 Replaced PREEMPTIVE_THREADS with HAVE_YIELDING_SELECT to clarify
the exact nature of the functionality being tested.  -DNO_THREADS
does NOT have a yield select, hence the macro is not defined.
The slapd/daemon code has been changed to test both no threads
and yielding select before using a timeout of NULL.
1998-11-22 20:08:14 +00:00
Kurt Zeilenga
475fd6dc45 "make veryclean" now lives up to its name. 1998-11-22 06:24:59 +00:00
Kurt Zeilenga
6f92e197dc Add libtool support based upon patch by Bart Hartgers <Hartgers@kfm1.phys.tue.nl>
Updated to use libtool 1.2 (with FreeBSD3.0 a.out v. elf detection).
  Updated autoconf to 1.12 with sed patch (don't use stock 1.12).
  aclocal.m4 is built using automake's aclocal, v1.3.
  Updated mkdep to support libtool .lo files.
Updated automake provided macros for TERMIOS, STRTOD, MKTIME, PTRDIFF_T
Autoconf now checks to ensure C compiler supports ANSI C prototypes.
Updated make files templates.
1998-11-22 04:22:28 +00:00
Kurt Zeilenga
b35e18c03f Build library test programs. Fix compiling issues. 1998-11-21 20:39:24 +00:00
Kurt Zeilenga
db573ddd11 Fix SunOS5 HAVE_THR detection -llwp -> -lthread 1998-11-20 17:52:44 +00:00
Kurt Zeilenga
781bf990e5 LWP/THR detected failed to set ol_link_threads. 1998-11-20 07:17:18 +00:00
Kurt Zeilenga
9f55887315 wrap include fcntl.h with HAVE_FCNTL_H 1998-11-18 20:11:15 +00:00
Kurt Zeilenga
bda79e1324 Add missing check for crypt.h
Sync portable.h.nt with portable.h.in
1998-11-18 04:48:16 +00:00