libexecdir = @libexecdir@
localstatedir = @localstatedir@
mandir = @mandir@
-moduledir = @moduledir@
+moduledir = @libexecdir@$(ldap_subdir)
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@$(ldap_subdir)
LTONLY_MOD = $(LTONLY_$(BUILD_MOD))
# platform-specific libtool flags
-NT_LTFLAGS = -no-undefined -avoid-version -rpath $(libdir)
-NT_LTFLAGS_LIB = -no-undefined $(LTVERSION) -rpath $(libdir)
-NT_LTFLAGS_MOD = -no-undefined $(LTVERSION) -rpath $(libdir)
-UNIX_LTFLAGS = $(LTVERSION) -rpath $(libdir)
+NT_LTFLAGS_LIB = -no-undefined -avoid-version -rpath $(libdir)
+NT_LTFLAGS_MOD = -no-undefined -avoid-version -rpath $(moduledir)
UNIX_LTFLAGS_LIB = $(LTVERSION) -rpath $(libdir)
-UNIX_LTFLAGS_MOD = $(LTVERSION) -rpath $(libdir)
+UNIX_LTFLAGS_MOD = $(LTVERSION) -rpath $(moduledir)
# libtool flags
LTFLAGS = $(@PLAT@_LTFLAGS)
AC_SUBST(ldap_subdir)dnl
-dnl ----------------------------------------------------------------
-dnl --with-moduledir
-
-moduledir="openldap"
-
-AC_ARG_WITH(moduledir,
-[ --with-moduledir=DIR change default module subdirectory used for installs],
-[case "$withval" in
- no) moduledir=""
- ;;
- yes)
- ;;
- *)
- moduledir="$withval"
- ;;
-esac
-])dnl
-
dnl ----------------------------------------------------------------
dnl General "enable" options
dnl set default to traditional to enable the original debug style
AC_MSG_RESULT(done)
dnl ----------------------------------------------------------------
-
-dnl set moduledir- if moduledir starts with a /, then leave it alone.
-dnl otherwise, prepend libexecdir to it.
-case $moduledir in
- /*|\\*)
- ;;
- *)
- moduledir=$libexecdir/$moduledir
- ;;
-esac
-
-AC_SUBST(moduledir)
-
-dnl ----------------------------------------------------------------
-
dnl Initialize vars
LDAP_LIBS=
SLAPD_NDB_LIBS=