"$GST_PLUGIN_SCANNER_INSTALLED", [location of the installed gst-plugin-scanner])
AC_SUBST(GST_PLUGIN_SCANNER_INSTALLED)
+case "${libexecdir}" in
+ *libexec)
+ GST_PLUGIN_SCANNER_SUBDIR="libexec";;
+ *lib)
+ GST_PLUGIN_SCANNER_SUBDIR="lib";;
+ *)
+ GST_PLUGIN_SCANNER_SUBDIR=`basename ${libexecdir}`;
+ if test -z "$GST_PLUGIN_SCANNER_SUBDIR"; then
+ AC_MSG_WARN([Couldn't determined libexecdir suffix, using "lib"])
+ GST_PLUGIN_SCANNER_SUBDIR="lib";
+ fi
+ ;;
+esac
+AC_DEFINE_UNQUOTED(GST_PLUGIN_SCANNER_SUBDIR,
+ "$GST_PLUGIN_SCANNER_SUBDIR", [libexecdir path component, used to find plugin-scanner on relocatable builds on windows])
+
+
dnl completion helper locations
AS_AC_EXPAND(GST_COMPLETION_HELPER_INSTALLED,${libexecdir}/gstreamer-$GST_API_VERSION/gst-completion-helper)
AC_DEFINE_UNQUOTED(GST_COMPLETION_HELPER_INSTALLED,
g_win32_get_package_installation_directory_of_module
(_priv_gst_dll_handle);
helper_bin =
- g_build_filename (basedir, "lib", "gstreamer-" GST_API_VERSION,
- "gst-plugin-scanner.exe", NULL);
+ g_build_filename (basedir, GST_PLUGIN_SCANNER_SUBDIR,
+ "gstreamer-" GST_API_VERSION, "gst-plugin-scanner.exe", NULL);
g_free (basedir);
}
#else
cdata.set('MEMORY_ALIGNMENT_MALLOC', 1)
cdata.set_quoted('GST_PLUGIN_SCANNER_INSTALLED', join_paths(prefix, helpers_install_dir, 'gst-plugin-scanner'))
cdata.set_quoted('GST_PTP_HELPER_INSTALLED', join_paths(prefix, helpers_install_dir, 'gst-ptp-helper'))
+cdata.set_quoted('GST_PLUGIN_SCANNER_SUBDIR', libexecdir,
+ description: 'libexecdir path component, used to find plugin-scanner on relocatable builds on windows')
if gst_version_nano > 0
# Have GST_ERROR message printed when running from git