--mode) prevopt="--mode" prev=mode ;;
--mode=*) mode="$optarg" ;;
+ --tag=*)
+ case "$optarg" in
+ CC)
+ ;;
+ disable-shared)
+ build_libtool_libs=no
+ ;;
+ disable-static)
+ build_old_libs=no
+ ;;
+ *)
+ echo "unknown tag"
+ exit 1;
+ esac
+ ;;
+
--preserve-dup-deps) duplicate_deps="yes" ;;
--quiet | --silent)
MKVERSION = $(top_srcdir)/build/mkversion -v "$(VERSION)"
-LIBTOOL = @LIBTOOL@
+# libtool 1.5+ requires "--tag=CC", but leave it off until we migrate
+LIBTOOL = @LIBTOOL@ # --tag=CC
LIBRELEASE = @OPENLDAP_LIBRELEASE@
LIBVERSION = @OPENLDAP_LIBVERSION@
LTVERSION = -release $(LIBRELEASE) -version-info $(LIBVERSION)
# libtool --only flag for modules: depends on linkage of module
# The BUILD_MOD macro is defined in each backend Makefile.in file
-LTONLY_yes = static
-LTONLY_mod = shared
-LTONLY_MOD = # --only-$(BUILD_MOD)
+LTONLY_yes = --tag=disable-shared
+LTONLY_mod = --tag=disable-static
+LTONLY_MOD = $(LTONLY_$(BUILD_MOD))
# platform-specific libtool flags
NT_LTFLAGS_LIB = -no-undefined -avoid-version -rpath $(libdir)