mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
configure: install plugin elements in GST_PLUGIN_PATH, if set.
If GST_PLUGIN_PATH environment variable exists and points to a valid directory, then use it as the system installation path for gst-vaapi plugin elements. Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
4c01e25a15
commit
8e8dc03677
1 changed files with 8 additions and 4 deletions
12
configure.ac
12
configure.ac
|
@ -295,11 +295,15 @@ GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^([_]*gst_plug
|
|||
AC_SUBST(GST_PLUGIN_LDFLAGS)
|
||||
|
||||
dnl Check for the GStreamer plugins directory
|
||||
AC_ARG_VAR([GST_PLUGIN_PATH], [installation path for gstreamer-vaapi plugin elements])
|
||||
AC_MSG_CHECKING([for GStreamer plugins directory])
|
||||
GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-$GST_MAJORMINOR --variable pluginsdir`
|
||||
if test -z "$GST_PLUGINS_DIR"; then
|
||||
echo "FAIL FAIL FAIL"
|
||||
GST_PLUGINS_DIR="\$(libdir)/gstreamer-$GST_MAJORMINOR"
|
||||
if test -d "$GST_PLUGIN_PATH"; then
|
||||
GST_PLUGINS_DIR="$GST_PLUGIN_PATH"
|
||||
else
|
||||
GST_PLUGINS_DIR=`$PKG_CONFIG gstreamer-$GST_MAJORMINOR --variable pluginsdir`
|
||||
if test -z "$GST_PLUGINS_DIR"; then
|
||||
GST_PLUGINS_DIR="\$(libdir)/gstreamer-$GST_MAJORMINOR"
|
||||
fi
|
||||
fi
|
||||
AC_MSG_RESULT([$GST_PLUGINS_DIR])
|
||||
plugindir="$GST_PLUGINS_DIR"
|
||||
|
|
Loading…
Reference in a new issue