]> git.sur5r.net Git - openldap/commitdiff
Integrate saucer in OpenLDAP build environment:
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 9 Mar 1999 01:59:49 +0000 (01:59 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 9 Mar 1999 01:59:49 +0000 (01:59 +0000)
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.

Makefile.in
configure
configure.in
contrib/saucer/Makefile.in [new file with mode: 0644]
contrib/saucer/main.c

index f832bd07e97bc21ddf78b0e6030c04b1ca46d336..2aac1dd25aaee4b7c448056a3b1c75cbe6962fa8 100644 (file)
@@ -10,7 +10,7 @@
 ##
 
 SUBDIRS= include libraries clients servers tests # contrib
-CLEANDIRS= doc # tests doc
+CLEANDIRS= contrib/saucer doc
 INSTALLDIRS= doc
 
 makefiles:     FORCE
index 1c55abbd555b5ea1305edd0f9afe58c38a34318f..08de9284e1390d82b582214dc45299b2ab5e4779 100755 (executable)
--- a/configure
+++ b/configure
@@ -10327,6 +10327,7 @@ servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
+contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
  include/portable.h include/ldap_features.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 EOF
 cat >> $CONFIG_STATUS <<EOF
@@ -10495,6 +10496,7 @@ servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
+contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
 "}
 EOF
 cat >> $CONFIG_STATUS <<\EOF
index 6c978f2901455ce0664fa550e2bb52a40f28c91d..87fd04add3fe3740cd2b7f66e3a52953dd37067f 100644 (file)
@@ -1821,6 +1821,7 @@ servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
+contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
 ,[
 date > stamp-h
 echo Please \"make depend\" to build dependencies
diff --git a/contrib/saucer/Makefile.in b/contrib/saucer/Makefile.in
new file mode 100644 (file)
index 0000000..2dbac4e
--- /dev/null
@@ -0,0 +1,17 @@
+PROGRAMS= saucer
+
+SRCS=  main.c
+OBJS=  main.o
+
+LDAP_INCDIR= ../../include
+LDAP_LIBDIR= ../../libraries
+
+XLIBS =  -lldap -llber -llutil
+XXLIBS = $(KRB_LIBS) $(LUTIL_LIBS)
+
+saucer:        ${OBJS} $(LDAP_LIBDEPEND)
+       $(LTLINK) -o $@ $(OBJS) $(LIBS)
+
+install-local: $(PROGRAMS) FORCE
+       -$(MKDIR) $(libexecdir)
+       $(LTINSTALL) $(INSTALLFLAGS) -m 755 saucer $(libexecdir)
index 4028904dfd06ceda2f5d5820041f739549027d99..12d967a3b6a8d2dc04bca40c7c20f30bd29bcfd2 100644 (file)
  * Author: Eric Rosenquist, 1994.
  */
 
-#include <ctype.h>
+#include "portable.h"
+
 #include <stdio.h>
-#include <string.h>
-#include <unistd.h>
+#include <stdlib.h>
+
+#include <ac/ctype.h>
+#include <ac/string.h>
+#include <ac/unistd.h>
 
 #include <lber.h>
 #include <ldap.h>
+#include <ldap_log.h>
 
 #define DN_MAXLEN      4096
 
@@ -548,6 +553,7 @@ int is_whitespace(register char *s)
 int main(int argc, char **argv)
 {
        int             error_flag = 0;
+       int             tmp;
        FILE    *rc;
 
        progname = argv[0];
@@ -558,8 +564,9 @@ int main(int argc, char **argv)
                        break;
                case 'd':
 #ifdef LDAP_DEBUG
-                       lber_debug = atoi(optarg);
-                       ldap_debug = atoi(optarg);
+                       tmp = atoi(optarg);
+                       lber_set_option(NULL, LBER_OPT_DEBUG_LEVEL, &tmp);
+                       ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &tmp);
 #endif
                        break;
                case 'h':