aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-23 13:15:42 +0200
committerMax Kellermann <max@duempel.org>2008-09-23 13:15:42 +0200
commit72ad9955c8d5c9abe28d8d59301e159493087976 (patch)
tree1a40e0e4808ec3e207b4022a0204f94b357ece1b /configure.ac
parentca8a4cf4d050457f633edd13f0052e119629a9f6 (diff)
downloadmpd-72ad9955c8d5c9abe28d8d59301e159493087976.tar.gz
mpd-72ad9955c8d5c9abe28d8d59301e159493087976.tar.xz
mpd-72ad9955c8d5c9abe28d8d59301e159493087976.zip
lyrics: configurable global plugin directory
The lyrics library loads all plugins from the directory configured with "--with-lyrics-plugin-dir".
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e04cea920..3fa9ca6b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -256,6 +256,15 @@ fi
AC_MSG_RESULT([$lyrics_screen])
+AC_ARG_WITH([lyrics-plugin-dir],
+ AC_HELP_STRING([[--with-lyrics-plugin-dir[=DIRECTORY]]],
+ [Directory where lyrics plugins are stored @<:@default=PREFIX/lib/ncmpc/lyrics@:>@]),
+ [lyrics_plugin_dir=$withval],
+ [lyrics_plugin_dir="$prefix/lib/ncmpc/lyrics"])
+AC_DEFINE_UNQUOTED([LYRICS_PLUGIN_DIR], ["$lyrics_plugin_dir"],
+ [Directory to search for lyrics plugins])
+AC_SUBST(lyrics_plugin_dir)
+
dnl Default host
AC_MSG_CHECKING([for default MPD host])
AC_ARG_WITH([default-host],