Commit Graph

424 Commits

Author SHA1 Message Date
Kurt Zeilenga
3d72675e77 Remove $(VERSIONFILE) dependencies 1999-04-29 18:28:57 +00:00
Kurt Zeilenga
e40f28aeeb Forgot to add mkversion... ud needs the version string to
non-static and non-const and needs it named "Version".
1999-04-28 19:59:00 +00:00
Kurt Zeilenga
dba57a312c Add mkversion script to generate version.c files. mkversion generates
identification strings compatible with ident(1) and what(1).
Uses $(VERSION) generated from configure.in.  rm build/version
rm old version .c files
1999-04-28 05:40:17 +00:00
Kurt Zeilenga
2a537d1463 More sh portability changes 1999-04-21 06:09:19 +00:00
Kurt Zeilenga
835eff719a Fix magic for 4.2BSD systems. 1999-04-21 05:47:01 +00:00
Kurt Zeilenga
82348ef0d0 Remove libtool --version-info warnings. 1999-04-20 22:11:02 +00:00
Kurt Zeilenga
48e73426cb Add basic gmodule detection for SLAPD_MODULES.
Cleanup perl detection.
1999-04-14 01:33:01 +00:00
Kurt Zeilenga
6743aebf3d Changes to support FreeBSD LinuxThreads port. Namely don't rely
on errno not getting changed by Debug().  Likely a problem elsewhere.
Tests run okay, excepting concurrency has "no such object" problems.
1999-04-08 03:57:25 +00:00
Kurt Zeilenga
404f953ef0 New pthread_try_link test. Looks for pthread_create and pthread_detach
and, if LinuxThreads, pthread_kill_other_threads_np().
1999-04-07 02:47:15 +00:00
Kurt Zeilenga
bbb7964508 New LinuxThreads detection. Correctly detects FreeBSD's LinuxThreads port
(but not sure if it's usable yet).  Needs to be tested on various versions
of Linux native LinuxThreads.
1999-04-06 23:44:27 +00:00
Hallvard Furuseth
a2708937b3 Do not pipe to awk, use temporary file instead 1999-04-06 00:55:08 +00:00
Hallvard Furuseth
0960e34bf2 Add $CC_MKDEP to override $CC and the -c option 1999-04-06 00:52:56 +00:00
Kurt Zeilenga
f2fee94114 remove libtool comment 1999-03-30 05:10:20 +00:00
Juan Gomez
009038a795 MDBM detection feature. 1999-03-30 04:25:52 +00:00
Kurt Zeilenga
12c3efb878 Replace -M with $CC_MKDEP_FLAGS in comment 1999-03-26 19:19:12 +00:00
Kurt Zeilenga
62f71f6042 Add TMPROOT support for two phase building/installing.
make all
	make TMPROOT=/tmp/root install
will install everything under $(TMPROOT)$(prefix).  Useful for
building bundling packages/ports for various operating systems.
1999-03-18 17:36:55 +00:00
Kurt Zeilenga
52884a2caa Add copyright notice (to generate log message). 1999-03-18 02:13:09 +00:00
Kurt Zeilenga
2003488522 Bogus change just to generate a log message. 1999-03-18 02:03:16 +00:00
Kurt Zeilenga
86a2e91ae9 Add 1999 to copyright. Test new log.pl. 1999-03-18 01:51:53 +00:00
Kurt Zeilenga
96b2ae55ac Add OL_STRUCT_PASSWD_PW_GECOS test. Checks for pw_gecos in struct passwd. 1999-03-17 22:23:29 +00:00
Kurt Zeilenga
c51e647870 Minor change to EBCDIC test. 1999-03-17 03:55:51 +00:00
Kurt Zeilenga
5ba71a498b Update EBCDIC tests. 1999-03-15 23:45:28 +00:00
Kurt Zeilenga
02e6172bf8 Implement OL_HEADER_STDC (derived from AC_HEADER_STDC) with EBCDIC
support.  Will submit this to autoconf maintainers...
1999-03-15 21:40:57 +00:00
Kurt Zeilenga
8694a8395c Add EBCDIC test in preparation for VM port. 1999-03-15 19:31:13 +00:00
Kurt Zeilenga
a8d7ee12a5 Fix "decleration" and missing ";" errors. 1999-03-15 01:01:45 +00:00
Ben Collins
da5444cee5 Define OL_DECL_STRDUP, the current declaration conflicts with GLIBC 2.1's
macro definition. If the declaration errors, then we don't declare it in
ac/string.h
1999-03-15 00:16:25 +00:00
Kurt Zeilenga
4afc7aab40 Original test failed under FreeBSD. Reworked LN_H detection
after LN_S test.  Moved to openldap.m4 and cached result.
Does not yet handle case where LN_H == 'cp' and LN_S == 'ln'.
1999-03-13 22:53:10 +00:00
Ben Collins
b5f8f61a88 Newest from GNU's CVS, provides detection of BeOS as well as other systems 1999-03-13 20:27:57 +00:00
Ben Collins
15e0a0f827 Declare LN_H=@LN_H@ 1999-03-13 19:32:58 +00:00
Ben Collins
27572b4257 Fixed small error in last commit for sys_errlist in openldap.m4 1999-03-13 18:41:07 +00:00
Ben Collins
ebce51b2db actually define HAVE_SYS_ERRLIST if we have it, if not then declare it locally in ac/errno.h 1999-03-13 18:19:11 +00:00
Ben Collins
dfc4d48209 Don't FORCE manpages in all-common 1999-03-12 22:32:15 +00:00
Kurt Zeilenga
e2d90b3acb Update configure to:
-- fixed gethostbyaddr_r/gethostbyname_r compile warnings
  -- relocated Pthread -mt test to be before -kthread test
1999-03-10 23:31:06 +00:00
Kurt Zeilenga
cb9667b527 Remove @DEFS@ from CPPFLAGS... we use portable.h unconditionally. 1999-03-08 23:13:59 +00:00
Kurt Zeilenga
e45fa7e3e7 relocate LDAP_LIBPATH to front of LDFLAGS. 1999-03-08 02:31:03 +00:00
Kurt Zeilenga
c0c673485b Relocate reentrant checks to before thread checks.
Change default to cc instead of gcc (experimental change).
1999-03-07 03:18:51 +00:00
Kurt Zeilenga
625efd9466 If rsaref is needed, add it to TLS_LIBS. 1999-03-03 21:50:02 +00:00
Kurt Zeilenga
8895f5d071 Add first cut of ctime_r return type test. 1999-03-03 21:32:22 +00:00
Kurt Zeilenga
460cb1a664 Fix new man.mk to create tmp pages in object directory, not $(srcdir). 1999-03-02 20:23:37 +00:00
Ben Collins
6af16c5870 Syntax error on install, mistakenly commited before with wrong one 1999-02-28 18:47:07 +00:00
Ben Collins
a914ff8171 Fixed a small mistake in the last commit, as well as adding a clean-common to remove the tmp files 1999-02-28 17:08:54 +00:00
Ben Collins
f02ef6773a Moved man page generation to the build cycle instead of install 1999-02-28 16:10:37 +00:00
Bart Hartgers
e26de67770 Patch to support to determine the number of args of the
gethostby{name,addr}_r functions.
Contributed by Juan Carlos Gomes IT#68 (apparently).

Also includes support for detecting ssleay in configure.in.
1999-02-25 13:07:27 +00:00
Hallvard Furuseth
38df8bdf38 Silence libtool if `make -s' is running 1999-02-20 08:04:54 +00:00
Hallvard Furuseth
dd78d8f2d6 Add $CC_MKDEP_FLAGS to override -M 1999-02-20 07:53:29 +00:00
Kurt Zeilenga
f0a9df6cd6 replace "ln -sf" with $(LN_S). 1999-02-06 00:00:49 +00:00
Kurt Spanier
e552c315f4 Fix typo in LDAP_LIBAVL_DEPEND 1999-02-03 13:05:10 +00:00
Kurt Zeilenga
a3cf741ab7 Fix slapd/tool dependencies on libraries. 1999-02-03 05:25:04 +00:00
Kurt Zeilenga
68ed8d140b Add EXEEXT/OBJEXT for GNU win32 environments.
Add AWK for mkdep.
1999-02-01 02:17:17 +00:00
Kurt Zeilenga
80da91a5b2 Fix lthread depend. 1999-01-28 22:27:19 +00:00
Kurt Zeilenga
bd6dfe333d LDBM/back-ldbm locking reworked!
back-ldbm was using a cache specific lock to protect non-reentrant
	database routines from being reenterred.  This is inadequate.
	Also, reentrant database systems calls were serialized unnecessarily.

	Non-reentrant database calls must have a big_mutex.  Implemented
	this within -lldbm itself.  library requires ldbm_initialize()
	be called before any other ldbm call to initialize the big_mutex
	and to do any other db specific initialization (ie: such as
	required for DB2).

The dbc_mutex, dbc_cv, & dbc_readers fileds of dbcache are history.
The "reentrant_database" (REENTRANT_DATABASE) define is also axed.
1999-01-26 20:55:54 +00:00
Kurt Zeilenga
f3fb0c74a6 Fix mkdep to split lines with multiple dependencies. 1999-01-26 20:27:25 +00:00
Kurt Zeilenga
01cd11c308 Move install.sh to install-sh. install.sh name may cause problems
with some 'make' programs that have a rule to create 'install' from
it there is no 'Makefile'.  (per autoconf 2.12).
1999-01-25 02:30:58 +00:00
Kurt Zeilenga
6c0fc8b1b5 Real fix for FreeBSD 4. 1999-01-23 20:39:45 +00:00
Kurt Zeilenga
0e32729854 Add support for Freebsd 4.x (and greater) 1999-01-23 20:29:02 +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
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
2a220163d7 -lldif must proceed -lldap in 1.1 (for ldap_debug).
Might as well keep link order consistent between -devel and 1.1
1999-01-14 00:24:15 +00:00
Kurt Zeilenga
f31fd9ad69 Fix up a few typos and add some minor cleanup. 1999-01-13 06:05:10 +00:00
Kurt Spanier
956fe808a8 New description for use of Bereley DB 2.x on a Linux platform. 1999-01-12 14:15:35 +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 Spanier
77c35c2bcc Description of the '-l syslog-local-user' option in the slapd manpage;
also description of .pid and .args files.
1999-01-08 09:59:09 +00:00
Kurt Spanier
95cd11b114 Re-specification of the DB patch. 1999-01-07 14:38:01 +00:00
Kurt Spanier
7fbe371ee9 Specification of the platform, that caused the problem. 1999-01-07 14:27:37 +00:00
Kurt Spanier
9c6d384b9a - Make install creates $(RUNDIR)/var for pid and args files of slapd.
- slapd's pid/args file names are based on the servers binary file names,
  providing for multiple servers beeing run on one host.
- slapd supports the -l command line parameter for selection of a
  syslog LOCAL user (-lLOCAL0 .. -lLOCAL7)
- db_appinit() is called during first ldbm_open() in DB 2.x to initialize
  DB debugging features (good to find bugs in the DB code :-)
- a patch for a non-initialized variable in DB's 2.x db_open is provided.
1999-01-05 15:40:58 +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
d0958f628d Moved the ctime_r number of arguments check to the right file. 1999-01-02 21:54:58 +00:00
Kurt Zeilenga
4219a94c3f fix minor reinstall bug: INSTALLDIR -> MANDIR 1999-01-01 20:47:56 +00:00
Kurt Zeilenga
164def79fd Add simple copyright notice. 1998-12-28 20:11:23 +00:00
Kurt Zeilenga
43094a1b33 Update copyright notices for 1999. 1998-12-28 19:58:57 +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
77cb308d5a Still wasn't working exactly write on FreeBSD3. Need to
check for $OBJFORMAT and if not available set to output of
/usr/bin/objformat (if available).   Otherwise assume not elf.
1998-12-21 23:08:06 +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
4123a08af5 Fix server --without-xxx build issues... 1998-12-20 00:55:39 +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
052bbc2097 Fix ltconfig for FreeBSD 3 (elf detection was wrong).
Also fixed "empty translation unit" problem reported by
  Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>
1998-12-18 21:54:06 +00:00
Kurt Zeilenga
1376d2a821 Update libtool for FreeBSD elf support. 1998-12-04 02:27:58 +00:00
Kurt Zeilenga
a9471890ca Update posix thread version check to match against strings more likely
to be unique.
1998-12-03 17:15:58 +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
9aa2cd646b Needs to add symlink for static version of library. 1998-11-29 17:36:58 +00:00
Kurt Zeilenga
1eba97fc91 Use environment $CC is available, otherwise cc. New makefiles
actually use -c option.
1998-11-22 19:18:58 +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
77ee86f6f1 Fix manual support. Set MANCOMPRESS to $(CAT) for now.
Need to extend autoconf to support user setting.
1998-11-20 19:54:39 +00:00
Kurt Zeilenga
758e1774c0 Pass $(CC) to mkdep 1998-11-20 16:22:50 +00:00
Kurt Zeilenga
04e27dfe32 Update to 2.0-devel 1998-11-04 20:20:34 +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
4caf68cf43 Update FreeBSD3 platform 1998-09-20 19:39:41 +00:00
Kurt Zeilenga
b1d48b89ba Wrap $CC with quotes.
Patch provided by Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
1998-09-16 04:18:42 +00:00
Kurt Zeilenga
f18687e356 Clean up Linux platform defaults based upon RPM suggestions.
-DNO_THREADS is now default.
1998-09-16 02:44:01 +00:00
Kurt Zeilenga
1d3df71e27 Add -DSCHED_YIELD_MISSING to commented out example 1998-09-16 02:40:05 +00:00
Kurt Zeilenga
6e9a263fa4 Add -DNO_THREAD comment for when there is no -lc_r 1998-09-16 02:38:55 +00:00
Kurt Zeilenga
b8f6e1afc0 Add comments concerning Pthread availability 1998-09-03 23:03:46 +00:00
Kurt Zeilenga
2c4aff0fa1 FreeBSD 2.x thread support differs between minor releases.
Default to Make-common settings (-DNO_THREADS).
1998-09-03 19:53:41 +00:00
Kurt Zeilenga
8beedeb92f Features should defined via Make-common 1998-09-01 03:42:35 +00:00
Kurt Zeilenga
b015c8db24 Add support for OpenBSD. Provided by djg@gregor.com. 1998-08-31 20:49:27 +00:00
Kurt Zeilenga
edcd5b272d Fix TCP_WRAPPER support. 1998-08-31 20:46:57 +00:00
Kurt Zeilenga
dbcbc66352 freebsd split 1998-08-27 21:35:29 +00:00
Kurt Zeilenga
ed27d2f5ea Merge freebsd split 1998-08-27 21:32:33 +00:00
Kurt Zeilenga
806557a5ad Update notices to use "OpenLDAP Foundation" instead of
"Net Boolean Incorporated" and drop "Net Boolean" private
label.  This was done per agreement between the Foundation
and Net Boolean.   Long Live OpenLDAP!
1998-08-25 23:29:01 +00:00
Kurt Zeilenga
d8b37926cc Added NMI copyright 1998-08-23 23:25:53 +00:00
Kurt Zeilenga
2ec25ef881 Merged files from branch REGEX_REMOVAL. Despite name, this merge
adds POSIX RegEx (and removes BSD re_comp/re_exec) support.
* POSIX RegEx is not currently included in the distribution, however
	we will probably add Henry Spencer's REGEX library soon.
* ACL Group functionality is also included in this merge!
1998-08-21 06:33:42 +00:00
Kurt Zeilenga
c636a39a60 BSD has re_comp/re_exec in -lcompat 1998-08-20 19:44:02 +00:00
Kurt Zeilenga
c0d5017cf8 My best guess for Linux settings 1998-08-20 04:24:31 +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
1b3e8c9231 Added REVERSE_LOOKUP to Make-common.dist to document its existence. 1998-08-20 01:22:35 +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
079f21c3ac Added LIBEXECDIR, SBINDIR and patched install rules and files as needed. 1998-08-19 02:38:35 +00:00
Kurt Zeilenga
05c63ed421 Merged from Lambert 1998-08-18 23:12:54 +00:00
Kurt Zeilenga
6aadb5f512 Clean up 1998-08-18 23:09:25 +00:00
Kurt Zeilenga
f51765eead Changed FD_SETSIZE checks for consistency. Added checks where needed. 1998-08-18 18:19:49 +00:00
Kurt Zeilenga
fa2da63ca4 Merge from LAMBERT branch 1998-08-17 23:26:25 +00:00
Kurt Zeilenga
e66aa92102 Added support for TCP_WRAPPERS (ldapd code not tested, don't have isode here).
Cleaned up LDAP_CRYPT support.
1998-08-15 23:03:09 +00:00
Kurt Zeilenga
4b23e633b1 Add Make-platform for SunOS 5.6 to handle thread lib differences 1998-08-14 23:56:23 +00:00
Kurt Zeilenga
61be3047a7 -DLDAP_CRYPT may require -lcrypt 1998-08-13 07:25:37 +00:00
Kurt Zeilenga
6ec1387e18 -DLDAP_CRYPT is disabled by default, don't need -lcrypt 1998-08-13 07:25:19 +00:00
Kurt Zeilenga
fcbca73f90 Merged LDAPworldCurrent (P1-10,13,15,16,19-22)
Cleaned up old rcs keyworld subs
1998-08-09 04:13:55 +00:00
Kurt Zeilenga
29062d06e4 LDAPworldP20: Patch for comparing crypt()ed passwords (#ifdef LDAP_CRYPT) 1998-08-09 03:34:35 +00:00
Kurt Zeilenga
04ff180cbf Modified make system to support CVS instead of RCS 1998-08-09 01:24:49 +00:00
Kurt Zeilenga
42e0d83cb3 Initial revision 1998-08-09 00:43:13 +00:00