Commit 4cee8324 authored by jehan's avatar jehan

enable relative prefix for plugin loading

parent 49ff8673
......@@ -593,6 +593,13 @@ fi
dnl check various things
AC_FUNC_ALLOCA
AC_ARG_ENABLE(relativeprefix,
[ --enable-relativeprefix Build a linphone that finds its resources relatively to the directory where it is installed],
[case "${enableval}" in
yes) relativeprefix=yes ;;
no) relativeprefix=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-relativeprefix) ;;
esac],[relativeprefix=guess])
if test "x${prefix}" = "xNONE"; then
package_prefix=${ac_default_prefix}
......@@ -601,11 +608,12 @@ else
fi
PACKAGE_PLUGINS_DIR="\$(libdir)/mediastreamer/plugins"
if test x$mingw_found = xyes ; then
if test x$mingw_found = xyes || test x$relativeprefix = xyes ; then
package_prefix="."
PACKAGE_PLUGINS_DIR="./lib/mediastreamer/plugins"
else
PACKAGE_PLUGINS_DIR="\$(libdir)/mediastreamer/plugins"
fi
dnl define path of plugins:
......
......@@ -650,7 +650,7 @@ void ms_init(){
#endif
#endif
#ifdef PACKAGE_PLUGINS_DIR
ms_message("Loading plugins");
ms_message("Loading ms plugins fron [%s]",PACKAGE_PLUGINS_DIR);
ms_load_plugins(PACKAGE_PLUGINS_DIR);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment