Commit Graph

239 Commits

Author SHA1 Message Date
Kurt Zeilenga
be991c81df Add test for BeOS's closesocket 1999-06-09 00:10:26 +00:00
Kurt Zeilenga
9e11b935b8 First cut at cc_r detection. Specific to AIX. See comment in
configure.in for details.
1999-06-08 23:32:36 +00:00
Kurt Zeilenga
deca38c9a9 Update build system to use output of new dependency generation detection
macros.  Proceedures for using alternative dependency generation
"compiler" and "flags" has changed.
    Pre-configure:
        env MKDEP=mycc MKDEP_FLAGS=myccflags ./configure
    Post-configure:
        hack top.mk and run ./config.status
1999-06-08 19:13:00 +00:00
Kurt Zeilenga
30d8d40fa3 Use AC_CHECK_PROGS instead of AC_CHECK_PROG to test for 'cc' in path.
AC_CHECK_PROGS leaves CC alone of 'cc' is not found.
1999-06-08 03:44:35 +00:00
Kurt Zeilenga
e88a9dafc2 Only set CC=cc if test -z CC && cc exists in path... 1999-06-08 02:38:05 +00:00
Kurt Zeilenga
a9fca665e6 OL_MKDEPEND: Round 2
now supports DETECTION using:
	./configure
	env MKDEP_FLAGS=-MM ./configure
	env MKDEP=foo ./configure (no tests, no flags)
	env MKDEP=foo MKDEP_FLAGS=-bar ./configure (no tests)
Exported AC_MKDEP and AC_MKDEP_FLAGS which can no be used
in build/*.mk
1999-06-08 01:33:36 +00:00
Kurt Zeilenga
b594f5209f First cut of OL_CC_DEPEND test. Attempts to detect the appropriate
flag to generate dependencies.  Output not used (yet).
1999-06-07 23:15:36 +00:00
Kurt Zeilenga
cc3785eaab Add test for thread specific h_errno and, if yes, add thread libraries
to lib.
1999-06-07 05:30:05 +00:00
Kurt Zeilenga
de7b2b5569 Fix typo in last commit. 1999-06-06 06:13:03 +00:00
Kurt Zeilenga
417e2d59fc Quick hack for cygwin default compiler... should replace with
test for 'cc'.
1999-06-06 06:10:22 +00:00
Kurt Zeilenga
e504623814 A slightly better POSIX regex test.... 1999-06-06 04:44:34 +00:00
Kurt Zeilenga
accecfe53d Relocate regex.h test to near top and die if it fails. 1999-06-06 03:56:40 +00:00
Kurt Zeilenga
d48191b98d Fix typos in warning messages. 1999-06-03 22:51:29 +00:00
Kurt Zeilenga
22adfb812f Warn if attempting to build ldapd. (In preparation to move
ldapd to that Attic)
1999-06-03 00:40:40 +00:00
Kurt Zeilenga
fd41e31d46 Obtain version name from build/version (re-add build/version).
This will facilate version.c generation on non-UNIX systems.
1999-05-28 00:35:09 +00:00
Kurt Zeilenga
984a98a84c Disable explicit AC_PROG_INSTALL check... implicitly checked by
AM_INIT_AUTOMAKE.
1999-05-27 03:09:04 +00:00
Kurt Zeilenga
a57fbea79c Add -lnet to BeOS specific libraries. 1999-05-26 20:35:31 +00:00
Howard Chu
967d1dcb2d For ITS#157: Added LDAP backend for slapd, which also required adding
LDAP_OPT_MATCH_STRING to ldap.h and libldap/options.c.
1999-05-26 02:35:20 +00:00
Kurt Zeilenga
83408503a7 Eliminate DECL_STRDUP check in favor of simple fix to <ac/string.h> header.
Add #undef and other protection of macros.
1999-05-24 23:01:57 +00:00
Kurt Zeilenga
352135e58b Protect externs from inappropriate macro expansion. 1999-05-24 20:54:35 +00:00
Ben Collins
59865a5d9b Synced to show changes in openldap.m4 1999-05-23 01:58:33 +00:00
Kurt Zeilenga
4e2b2f8a70 s/PACKAGE/OPENLDAP_PACKAGE/
s/VERSION/OPENLDAP_VERSION/
manually define for NT.  Should sort out mechanism for one place
updating of package/version strings.
1999-05-21 04:00:25 +00:00
Kurt Zeilenga
1db064b821 Add EXEEXT and MKVERSION support 1999-05-19 07:13:42 +00:00
Kurt Zeilenga
00da392c5f Add check for <sys/select.h> for AIX. 1999-05-18 18:34:02 +00:00
Ben Collins
d4f4f8f197 Moved db1/db.h check to the db1 marco in openldap.m4. Also added check for HAVE_DB1_DB_H for which header to include since it's only defined when using db1 1999-05-07 01:27:16 +00:00
Ben Collins
a650d73230 Glibc 2.1 has Berkley db as -ldb1. Set up the autoconf to check this first, else we will actually be using compat calls in db2, and not the real db1. 1999-05-06 12:33:58 +00:00
Ben Collins
014d059b5a Moved -lnet,socket check for BeOS to the rest of the socket checks. Also added a -lnsl _with_ the -lwrap check since some libwrap's are static and need this. 1999-05-04 13:55:59 +00:00
Ben Collins
8c8249c005 Added -lnet for BeOS libs. Also need to add some sort of workaround for inet_aton() since BeOS does not have this call. 1999-05-04 12:33:21 +00:00
Kurt Zeilenga
beddb31813 Backout ssl/ssl.h change for now. Trying to support "odd" 3rd
repackagers is a can of worms.
1999-04-30 00:50:08 +00:00
Kurt Zeilenga
5065b0c370 Regenerate configure. Last commit was in error. 1999-04-29 18:32:40 +00:00
Kurt Zeilenga
3d72675e77 Remove $(VERSIONFILE) dependencies 1999-04-29 18:28:57 +00:00
Julio Sánchez Fernández
38098bcbc8 Sometimes ssl.h is ssl/ssl.h. This is a simple fix so that it is
detected in those cases, more work is needed to abstract its location
so that programs can be compiled without change.
1999-04-29 16:55:43 +00:00
Kurt Zeilenga
7ba980f0f6 Modify slapd set user/group support to use -u/-g instead -U/-G.
Moved -u (udp) to -c (connectionless).  Connectionless is depreciated
and undocumented.
Added tests for set{,e}{u,g}id to configure.  Use existance of
setuid/setgid to enable feature.  Use seteuid/setegid only if
they exist.
Fixed minor minor leak of username/groupname if specificied
more than once.  (This should actually be an error)
1999-04-21 00:40:20 +00:00
Kurt Zeilenga
58afabdf00 EXPERIMENTAL: Disable cache saving and loading. 1999-04-20 01:43:01 +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
fe73a8f8cd Rebuild per Ksp request (for syslog changes) 1999-04-07 19:06:25 +00:00
Kurt Spanier
ae41f268de Re-introduction of of syslog in configure.in. The rest nothing, sorry. 1999-04-07 13:47:30 +00:00
Kurt Zeilenga
a816a5eb30 eliminate -lpthread -lexc from pthread link tests 1999-04-07 06:10:46 +00:00
Hallvard Furuseth
479c14ac6c Fix typo ol_cv_pthread_pthread -> ol_cv_pthread_threads for -threads option 1999-04-07 04:44:19 +00:00
Hallvard Furuseth
14f4d60d49 Remove superfluous )' in the pthread_create in default libraries' test 1999-04-07 04:20:08 +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
Kurt Zeilenga
b4658cbe24 Cleanup socket() detection.
Move select() detection forward, error if not available.
Move select() args type check forward so it can be used in subsequent tests.
1999-04-04 20:36:35 +00:00
Kurt Zeilenga
a90355d66b Regenerate configure to include quillan's mods. 1999-04-04 04:49:39 +00:00
Kurt Zeilenga
82453169fc Add select args type & vfork tests for experimentation purposes. 1999-04-04 00:59:32 +00:00
Kurt Zeilenga
04904a4418 comment out OSF/1 yielding select force. Likely incorrect. 1999-04-03 08:19:37 +00:00
Kurt Zeilenga
4d2b0cfab6 Reorder the pthreads tests and hope for the best. IRIX users beware. 1999-04-03 07:32:17 +00:00
Kurt Zeilenga
0f57d966f9 Fix cut and paste mistakes in pthread detections cases: -mt, -thread, -threads. 1999-04-03 05:55:08 +00:00
Hallvard Furuseth
9ebd9a0289 Add -U and -G options to set user and group id.
Move socket setup to set_socket(), called before the uid/gid change.
1999-04-03 03:19:07 +00:00
Kurt Zeilenga
ff5f9edc04 Add checks for recv and recvfrom. 1999-04-02 18:58:48 +00:00
Kurt Zeilenga
9b51f19e00 Make sure everything is up to date after MDBM changes. 1999-03-30 20:27:03 +00:00
Kurt Zeilenga
f626fbbd57 Rebuild configure due to MDBM addition. 1999-03-30 04:46:17 +00:00
Kurt Zeilenga
a95247a58a Add pthread_detach to -kthread test. 1999-03-30 04:07:16 +00:00
Kurt Zeilenga
da25203c58 IRIX (very strange) default libraries have working pthread_create() but
no pthread_detach().  So, augment pthread_create() in default libraries
test to detach created thread.
1999-03-30 00:07:37 +00:00
Kurt Zeilenga
30f953160f Add wait4/3 detection.
Modify slapd_tester to use pid_t and wait macros.  May need to
implement additional macros in ac/wait.h (in addition to
WEXITSTATUS and WIFEXITED).
1999-03-29 01:40:17 +00:00
Hallvard Furuseth
dd44e1c28f Initial port of web_ldap to OpenLDAP. Also fixed some doc bugs. 1999-03-27 18:05:33 +00:00
Kurt Zeilenga
10d7f35484 Don't call AC_CANONICAL_HOST from configure.in. We use feature tests.
(libtool, though, will drag it for it's use...)
1999-03-26 01:05:22 +00:00
Kurt Zeilenga
a9ed7c24e2 Use modified works test to check for pthread_create in default
libraries.  Original work test is still used to valid detected
header/library are compatible.
1999-03-25 22:11:42 +00:00
Kurt Zeilenga
37ff5e356f Backout previous change. It breaks specification of pthreads via
the environment.  A more general solution is needed.
1999-03-25 19:51:54 +00:00
Juan Gomez
3b367ac961 Fixed Pthread detection problem in IRIX. 1999-03-24 04:09:55 +00:00
Kurt Zeilenga
61f6d5d8ca Add check for <assert.h> and put include in right file (acconfig.h) 1999-03-20 03:21:19 +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
98d3206c42 Rebuild configure and portable.h.in... 1999-03-17 22:10:31 +00:00
Kurt Zeilenga
70555f853a NULL needs to be defined for pthread_detach(NULL). 1999-03-16 00:38:16 +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
e732e12279 configure.in now includes OL_DECL_STRDUP, configure and portable.h.in
rebuilt to reflect it.
1999-03-15 00:18:49 +00:00
Kurt Zeilenga
ae939acafe Fail -lbe check if -lroot doesn't exist. 1999-03-13 23:03:40 +00:00
Kurt Zeilenga
5d5370c3ec Make sure LN_S is set to "cp" if "ln -s" AND "ln" does work. 1999-03-13 22:57:38 +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
f18213015c Check for how to hard link (ln or cp) and define as LS_H, also includes check for be_app() in -lbe 1999-03-13 19:31:50 +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
362f051a57 Added check for <arpa/inet.h> 1999-03-13 02:17:34 +00:00
Ben Collins
c0b11aa8b5 Added check for getpass() as well as adding it to the -llutil Makefile.in (BeOS will need this) 1999-03-13 02:08:42 +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
Hallvard Furuseth
a24b0c1c70 Integrate saucer in OpenLDAP build environment:
Add saucer/Makefile.in, add saucer to configure and top-level Makefile,
include "portable.h" and <ac/*.h>,
replace ldap_debug/lber_debug with ldap_set_option/lber_set_option.
1999-03-09 01:59:49 +00:00
Kurt Zeilenga
5302491e94 Use $TERMCAP_LIBS in readline test. 1999-03-08 23:01:23 +00:00
Kurt Zeilenga
8d3f492698 Add GNU readline detection. Needed for saucer enhancement (ITS#96). 1999-03-08 01:48:45 +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
9e71e09bac Relocate reentrant function checks to before thread library checks.
Disable ctime_r() type check.  Need better test.
1999-03-07 00:22:11 +00:00
Kurt Zeilenga
6cd7680586 Fix typo in configure.in with gethostbyname_r_nargs 1999-03-05 15:59:28 +00:00
Kurt Zeilenga
bbc024fff9 Add comment concerning use of vendor 'cc' with empty CFLAGS with
same code (commented out).
1999-03-04 06:18:29 +00:00
Kurt Zeilenga
ce6836dbed Apply Hallvard's D4 pthread detection patch. 1999-03-03 23:32:00 +00:00
Kurt Zeilenga
8895f5d071 Add first cut of ctime_r return type test. 1999-03-03 21:32:22 +00:00
Kurt Zeilenga
3028424f68 Extend TLS/SSL detection for use RSAref if necessary. 1999-03-02 20:02:29 +00:00
Kurt Zeilenga
180eed16fe Rebuild autoconf/autoheader generated files after TLS and gethostbyname_r
changes.
1999-03-01 18:55:52 +00:00
Hallvard Furuseth
79f7c85067 Add locale support (slapd.conf keyword "locale") to slapd if HAVE_LOCALE_H 1999-02-22 21:01:24 +00:00
Kurt Spanier
2889c67adf Client programs for test008-concurrency moved to subdir tests/progs.
Building tests/progs/*.c in the main build process.
==> Test-suite must be called by 'make test', or 'make test-bdb2'
1999-02-22 11:28:01 +00:00
Kurt Zeilenga
9e2fc1ed06 Check for pthread with -mt (for Solaris 2.x).
Still requires user to workaround Solaris pthread_create in -lc issue.
1999-02-21 00:46:57 +00:00
Kurt Zeilenga
aa17fdd0bd Use ldap_pvt_strtok directly and unconditionally.
Implementation no longer uses strtok_r(), it may be broken
or have an odd prototype.
Update configure not to check for strtok/strtok_r nor require
strtok_r to LDAP_API_FEATURE_X_OPENLDAP_REENTRANT.
1999-02-20 20:12:03 +00:00
Kurt Zeilenga
a71f328831 Import Ben Collins <bcollins@debian.org> Back-TCL for SLAPD. 1999-02-14 19:20:14 +00:00
Kurt Zeilenga
859b1ae451 Detect pthread_detach using #include <pthread.h> (using AC_TRY_LINK)
instead of AC_CHECK_FUNCS() as symbol may be mangled.
1999-02-08 22:54:40 +00:00
Kurt Zeilenga
162f373c61 Include pthread.h in pthread AC_TRY_LINK tests. 1999-02-08 21:46:46 +00:00
Kurt Zeilenga
44a12f35ab Update AC_TRY_LINK checks (mainly effects pthread detection). 1999-02-08 19:38:00 +00:00
Kurt Spanier
42f6e78dd4 Integration of the BDB2 backend into the new init/startup/shutdown schema.
Integration into ./configure ( --enable-bdb2 ).
Adaptation of the test-suite ( 'make' -> ldbm; 'make bdb2-local' -> bdb2 ).
Minor fixes in slapd/libldbm.
1999-02-08 11:42:14 +00:00
Kurt Zeilenga
dec5c37de6 Fix --disable-ldbm... missing CR-LF escape in argument verification. 1999-02-04 23:09:35 +00:00
Kurt Zeilenga
f4dd466315 Build environment changes including:
Kerberos detection of des_debug
	detection of resolv.h and arpa/nameserv.h
Updated affected codes.
1999-02-04 21:54:38 +00:00