summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-06 00:35:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:34 -0500
commitb7477fb3881ac4490da040b054094a865128b951 (patch)
tree51356e55b99a6abecc5d002463f8f149d7a9f031 /source4
parent6d2dd5a2383410e3f50a9765b45c364a2d75a984 (diff)
downloadsamba-b7477fb3881ac4490da040b054094a865128b951.tar.gz
r18117: first steps in making samba4 use libreplace
(This used to be commit c079cedb084d621c5a0aac59310b237ba375df20)
Diffstat (limited to 'source4')
-rw-r--r--source4/client/config.mk4
-rw-r--r--source4/configure.ac6
-rw-r--r--source4/include/includes.h3
-rw-r--r--source4/include/system/config.m412
-rw-r--r--source4/include/system/wait.h7
-rw-r--r--source4/lib/cmdline/config.mk4
-rw-r--r--source4/lib/ldb/config.mk2
-rw-r--r--source4/lib/registry/config.mk8
-rw-r--r--source4/scripting/ejs/config.mk2
-rw-r--r--source4/smbd/config.mk2
-rw-r--r--source4/torture/config.mk6
-rw-r--r--source4/utils/config.mk8
-rw-r--r--source4/utils/net/config.mk2
13 files changed, 23 insertions, 43 deletions
diff --git a/source4/client/config.mk b/source4/client/config.mk
index ebac2a4bb00..546d14d12ba 100644
--- a/source4/client/config.mk
+++ b/source4/client/config.mk
@@ -13,7 +13,7 @@ PRIVATE_DEPENDENCIES = \
LIBCLI_SMB \
RPC_NDR_SRVSVC \
LIBCLI_LSA \
- LIBPOPT \
+ POPT_EXT \
POPT_SAMBA \
POPT_CREDENTIALS
# End BINARY smbclient
@@ -29,7 +29,7 @@ OBJ_FILES = \
PRIVATE_DEPENDENCIES = \
LIBSAMBA-CONFIG \
LIBCLI_SMB \
- LIBPOPT \
+ POPT_EXT \
POPT_SAMBA \
POPT_CREDENTIALS
# End BINARY sdd
diff --git a/source4/configure.ac b/source4/configure.ac
index 45a9c85b18a..6043a28d637 100644
--- a/source4/configure.ac
+++ b/source4/configure.ac
@@ -25,13 +25,13 @@ m4_include(lib/util/fsusage.m4)
m4_include(lib/util/xattr.m4)
m4_include(lib/util/capability.m4)
m4_include(lib/util/time.m4)
-m4_include(lib/popt/config.m4)
+m4_include(lib/popt/samba.m4)
m4_include(lib/charset/config.m4)
m4_include(lib/socket/config.m4)
m4_include(lib/talloc/libtalloc.m4)
-m4_include(lib/tdb/config.m4)
+m4_include(lib/tdb/libtdb.m4)
m4_include(lib/ldb/sqlite3.m4)
-m4_include(lib/ldb/config.m4)
+m4_include(lib/ldb/libldb.m4)
m4_include(lib/tls/config.m4)
m4_include(lib/events/config.m4)
diff --git a/source4/include/includes.h b/source4/include/includes.h
index 6252a59c2f6..37661aaaa8c 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -22,7 +22,7 @@
*/
#ifndef NO_CONFIG_H /* for some tests */
-#include "config.h"
+#include "replace.h"
#endif
#include "local.h"
@@ -90,7 +90,6 @@ _PUBLIC_ void smb_panic(const char *why) NORETURN_ATTRIBUTE;
#endif
#define _PRINTF_ATTRIBUTE(a1, a2) PRINTF_ATTRIBUTE(a1, a2)
-#include "lib/replace/replace.h"
/* Lists, trees, caching, database... */
#include "talloc/talloc.h"
diff --git a/source4/include/system/config.m4 b/source4/include/system/config.m4
index 8e7448bbe49..4d66317a5ee 100644
--- a/source4/include/system/config.m4
+++ b/source4/include/system/config.m4
@@ -11,18 +11,6 @@ AC_HEADER_TIME
# wait
AC_HEADER_SYS_WAIT
-AC_CACHE_CHECK([for sig_atomic_t type],samba_cv_sig_atomic_t, [
- AC_TRY_COMPILE([
-#include <sys/types.h>
-#if STDC_HEADERS
-#include <stdlib.h>
-#include <stddef.h>
-#endif
-#include <signal.h>],[sig_atomic_t i = 0],
- samba_cv_sig_atomic_t=yes,samba_cv_sig_atomic_t=no)])
-if test x"$samba_cv_sig_atomic_t" = x"yes"; then
- AC_DEFINE(HAVE_SIG_ATOMIC_T_TYPE,1,[Whether we have the atomic_t variable type])
-fi
# capability
AC_CHECK_HEADERS(sys/capability.h)
diff --git a/source4/include/system/wait.h b/source4/include/system/wait.h
index 543233ce82d..dc129ac1088 100644
--- a/source4/include/system/wait.h
+++ b/source4/include/system/wait.h
@@ -24,13 +24,6 @@
#include <sys/wait.h>
#endif
-/*
- * Define additional missing types
- */
-#ifndef HAVE_SIG_ATOMIC_T_TYPE
-typedef int sig_atomic_t;
-#endif
-
#ifndef SIGCLD
#define SIGCLD SIGCHLD
#endif
diff --git a/source4/lib/cmdline/config.mk b/source4/lib/cmdline/config.mk
index 5c47be66e6d..33607636a90 100644
--- a/source4/lib/cmdline/config.mk
+++ b/source4/lib/cmdline/config.mk
@@ -1,12 +1,12 @@
[SUBSYSTEM::LIBCMDLINE_CREDENTIALS]
PRIVATE_PROTO_HEADER = credentials.h
OBJ_FILES = credentials.o
-PUBLIC_DEPENDENCIES = CREDENTIALS LIBPOPT
+PUBLIC_DEPENDENCIES = CREDENTIALS POPT_EXT
[SUBSYSTEM::POPT_SAMBA]
PUBLIC_HEADERS = popt_common.h
OBJ_FILES = popt_common.o
-PUBLIC_DEPENDENCIES = LIBPOPT
+PUBLIC_DEPENDENCIES = POPT_EXT
[SUBSYSTEM::POPT_CREDENTIALS]
PRIVATE_PROTO_HEADER = popt_credentials.h
diff --git a/source4/lib/ldb/config.mk b/source4/lib/ldb/config.mk
index 8dff4df2dc6..0ebd51192c4 100644
--- a/source4/lib/ldb/config.mk
+++ b/source4/lib/ldb/config.mk
@@ -200,7 +200,7 @@ OBJ_FILES = \
[SUBSYSTEM::LIBLDB_CMDLINE]
OBJ_FILES= \
tools/cmdline.o
-PUBLIC_DEPENDENCIES = ldb LIBSAMBA-UTIL LIBPOPT POPT_SAMBA POPT_CREDENTIALS
+PUBLIC_DEPENDENCIES = ldb LIBSAMBA-UTIL POPT_EXT POPT_SAMBA POPT_CREDENTIALS
PRIVATE_DEPENDENCIES = gensec
# End SUBSYSTEM LIBLDB_CMDLINE
################################################
diff --git a/source4/lib/registry/config.mk b/source4/lib/registry/config.mk
index 89a77c231ea..d979f9fb994 100644
--- a/source4/lib/registry/config.mk
+++ b/source4/lib/registry/config.mk
@@ -110,7 +110,7 @@ PUBLIC_HEADERS = registry.h
INSTALLDIR = BINDIR
OBJ_FILES = tools/regdiff.o
PRIVATE_DEPENDENCIES = \
- LIBSAMBA-CONFIG registry LIBPOPT POPT_SAMBA POPT_CREDENTIALS
+ LIBSAMBA-CONFIG registry POPT_EXT POPT_SAMBA POPT_CREDENTIALS
MANPAGE = man/regdiff.1
# End BINARY regdiff
################################################
@@ -121,7 +121,7 @@ MANPAGE = man/regdiff.1
INSTALLDIR = BINDIR
OBJ_FILES = tools/regpatch.o
PRIVATE_DEPENDENCIES = \
- LIBSAMBA-CONFIG registry LIBPOPT POPT_SAMBA POPT_CREDENTIALS
+ LIBSAMBA-CONFIG registry POPT_EXT POPT_SAMBA POPT_CREDENTIALS
MANPAGE = man/regpatch.1
# End BINARY regpatch
################################################
@@ -132,7 +132,7 @@ MANPAGE = man/regpatch.1
INSTALLDIR = BINDIR
OBJ_FILES = tools/regshell.o
PRIVATE_DEPENDENCIES = \
- LIBSAMBA-CONFIG LIBPOPT registry POPT_SAMBA POPT_CREDENTIALS \
+ LIBSAMBA-CONFIG POPT_EXT registry POPT_SAMBA POPT_CREDENTIALS \
SMBREADLINE
MANPAGE = man/regshell.1
# End BINARY regshell
@@ -144,7 +144,7 @@ MANPAGE = man/regshell.1
INSTALLDIR = BINDIR
OBJ_FILES = tools/regtree.o
PRIVATE_DEPENDENCIES = \
- LIBSAMBA-CONFIG LIBPOPT registry POPT_SAMBA POPT_CREDENTIALS
+ LIBSAMBA-CONFIG POPT_EXT registry POPT_SAMBA POPT_CREDENTIALS
MANPAGE = man/regtree.1
# End BINARY regtree
################################################
diff --git a/source4/scripting/ejs/config.mk b/source4/scripting/ejs/config.mk
index ca73ce279a1..8c7e9cd53da 100644
--- a/source4/scripting/ejs/config.mk
+++ b/source4/scripting/ejs/config.mk
@@ -76,7 +76,7 @@ OBJ_FILES = \
PUBLIC_DEPENDENCIES = \
EJS LIBSAMBA-UTIL \
EJSRPC MESSAGING \
- LIBSAMBA-NET LIBCLI_SMB LIBPOPT \
+ LIBSAMBA-NET LIBCLI_SMB POPT_EXT \
POPT_CREDENTIALS POPT_SAMBA \
dcerpc \
NDR_TABLE
diff --git a/source4/smbd/config.mk b/source4/smbd/config.mk
index 569a1f0d380..42479f51053 100644
--- a/source4/smbd/config.mk
+++ b/source4/smbd/config.mk
@@ -37,7 +37,7 @@ PRIVATE_DEPENDENCIES = \
LIBSAMBA-UTIL \
PIDFILE \
POPT_SAMBA \
- LIBPOPT \
+ POPT_EXT \
gensec \
registry \
ntptr \
diff --git a/source4/torture/config.mk b/source4/torture/config.mk
index be2d6a1bde9..2da8caccdca 100644
--- a/source4/torture/config.mk
+++ b/source4/torture/config.mk
@@ -270,7 +270,7 @@ OBJ_FILES = \
smbtorture.o
PRIVATE_DEPENDENCIES = \
torture \
- LIBPOPT \
+ POPT_EXT \
POPT_SAMBA \
POPT_CREDENTIALS \
TORTURE_UI \
@@ -289,7 +289,7 @@ OBJ_FILES = \
PRIVATE_DEPENDENCIES = \
LIBSAMBA-CONFIG \
LIBSAMBA-UTIL \
- LIBPOPT \
+ POPT_EXT \
POPT_SAMBA \
POPT_CREDENTIALS \
LIBCLI_SMB \
@@ -307,7 +307,7 @@ OBJ_FILES = \
PRIVATE_DEPENDENCIES = \
LIBSAMBA-CONFIG \
LIBSAMBA-UTIL \
- LIBPOPT \
+ POPT_EXT \
POPT_SAMBA \
POPT_CREDENTIALS \
LIBCLI_SMB
diff --git a/source4/utils/config.mk b/source4/utils/config.mk
index 69d5a3b77f6..442a7466e4a 100644
--- a/source4/utils/config.mk
+++ b/source4/utils/config.mk
@@ -9,7 +9,7 @@ OBJ_FILES = \
PRIVATE_DEPENDENCIES = \
LIBSAMBA-CONFIG \
LIBSAMBA-UTIL \
- LIBPOPT \
+ POPT_EXT \
POPT_SAMBA \
NDR_TABLE
MANPAGE = man/ndrdump.1
@@ -26,7 +26,7 @@ OBJ_FILES = \
PRIVATE_DEPENDENCIES = \
LIBSAMBA-CONFIG \
LIBSAMBA-UTIL \
- LIBPOPT \
+ POPT_EXT \
POPT_SAMBA \
POPT_CREDENTIALS \
gensec \
@@ -83,7 +83,7 @@ PRIVATE_DEPENDENCIES = \
LIBSAMBA-CONFIG \
LIBSAMBA-UTIL \
LIBCLI_NBT \
- LIBPOPT \
+ POPT_EXT \
POPT_SAMBA \
LIBNETIF \
LIBCLI_RESOLVE
@@ -99,7 +99,7 @@ OBJ_FILES = \
PRIVATE_DEPENDENCIES = \
LIBSAMBA-CONFIG \
LIBSAMBA-UTIL \
- LIBPOPT \
+ POPT_EXT \
samba-socket \
POPT_SAMBA \
LIBCLI_RESOLVE \
diff --git a/source4/utils/net/config.mk b/source4/utils/net/config.mk
index c07d6a67cb5..6985f1475ca 100644
--- a/source4/utils/net/config.mk
+++ b/source4/utils/net/config.mk
@@ -16,7 +16,7 @@ PRIVATE_DEPENDENCIES = \
LIBSAMBA-CONFIG \
LIBSAMBA-UTIL \
LIBSAMBA-NET \
- LIBPOPT \
+ POPT_EXT \
POPT_SAMBA \
POPT_CREDENTIALS
# End BINARY net