From 6c5a1b037261c99f60a2d42c4b53ebbf85abd756 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 15 Jan 2009 18:05:45 -0500 Subject: Fix LDB_MODULESDIR for ldb standalone builds --- source4/lib/ldb/Makefile.in | 6 +++++- source4/lib/ldb/configure.ac | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source4/lib/ldb/Makefile.in b/source4/lib/ldb/Makefile.in index 6155f6e49c..6313fc1622 100644 --- a/source4/lib/ldb/Makefile.in +++ b/source4/lib/ldb/Makefile.in @@ -24,6 +24,8 @@ PYTHON = @PYTHON@ PYTHON_CONFIG = @PYTHON_CONFIG@ ldbdir = $(srcdir) +LDB_MODULESDIR = @LDB_MODULESDIR@ + TALLOC_LIBS = @TALLOC_LIBS@ TALLOC_CFLAGS = @TALLOC_CFLAGS@ TALLOC_OBJ = @TALLOC_OBJ@ @@ -56,7 +58,9 @@ LIBS = @LIBS@ PICFLAG = @PICFLAG@ CFLAGS=-g -I$(srcdir)/include -Iinclude -I$(srcdir) -I$(srcdir)/.. \ $(POPT_CFLAGS) $(TALLOC_CFLAGS) $(TDB_CFLAGS) $(TEVENT_CFLAGS) \ - -DLIBDIR=\"$(libdir)\" -DSHLIBEXT=\"$(SHLIBEXT)\" -DUSE_MMAP=1 @CFLAGS@ + -DLIBDIR=\"$(libdir)\" -DSHLIBEXT=\"$(SHLIBEXT)\" -DUSE_MMAP=1 \ + -DLDB_MODULESDIR=\"$(LDB_MODULESDIR)\" \ + @CFLAGS@ MDLD = @MDLD@ MDLD_FLAGS = @MDLD_FLAGS@ diff --git a/source4/lib/ldb/configure.ac b/source4/lib/ldb/configure.ac index 095caa5e92..7bc081cfe5 100644 --- a/source4/lib/ldb/configure.ac +++ b/source4/lib/ldb/configure.ac @@ -37,7 +37,7 @@ AC_PATH_PROG(SLAPD,slapd) AC_CHECK_HEADERS(stdint.h dlfcn.h) AC_CONFIG_HEADER(include/config.h) -AC_DEFINE_UNQUOTED(LDB_MODULESDIR, LIBDIR "/ldb" , [Modules directory] ) +LDB_MODULESDIR="${libdir}/ldb" AC_SUBST(LDB_MODULESDIR) TESTS="" -- cgit