...in addition to vlc-config
NULL =
SUFFIXES =
libvlcdir = $(libdir)/vlc/$(basedir)
NULL =
SUFFIXES =
libvlcdir = $(libdir)/vlc/$(basedir)
EXTRA_DIST = Modules.am
BUILT_SOURCES =
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = Modules.am
BUILT_SOURCES =
CLEANFILES = $(BUILT_SOURCES)
# automake will not recurse for make dist if we don't define SUBDIRS = .
subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`"
mods="`sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < "${modf}" | xargs`"
# automake will not recurse for make dist if we don't define SUBDIRS = .
subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`"
mods="`sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < "${modf}" | xargs`"
+ plugins="`sed -n -e 's/^.*lib\([^ ]*\)_plugin\.la.*/\1/p' < "${modf}" | xargs`"
+ libvlc_ltlibs=""
extra_ltlibs=""
for mod in $mods
do
extra_ltlibs=""
for mod in $mods
do
- extra_ltlibs="${extra_ltlibs} lib${mod}_plugin.la"
+ case " ${plugins} " in
+ *\ ${mod}\ *)
+ ;;
+ *)
+ libvlc_ltlibs="${libvlc_ltlibs} \$(LTLIB${mod})"
+ extra_ltlibs="${extra_ltlibs} lib${mod}_plugin.la"
+ ;;
+ esac
done
rm -f "${makf}" && cat > "${makf}" << EOF
# ${makf} automatically generated from ${modf} by $0
done
rm -f "${makf}" && cat > "${makf}" << EOF
# ${makf} automatically generated from ${modf} by $0
dir = ${dir}
mods = ${mods}
SUBDIRS = ${subdirs}
dir = ${dir}
mods = ${mods}
SUBDIRS = ${subdirs}
+libvlc_LTLIBRARIES = ${libvlc_ltlibs}
EXTRA_LTLIBRARIES = ${extra_ltlibs}
include \$(top_srcdir)/modules/common.am
EXTRA_LTLIBRARIES = ${extra_ltlibs}
include \$(top_srcdir)/modules/common.am