add --enable-local-xmms-plugin
authorJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 14 Jan 2003 06:59:50 +0000 (06:59 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 14 Jan 2003 06:59:50 +0000 (06:59 +0000)
README
configure.in
src/plugin_xmms/Makefile.am

diff --git a/README b/README
index ab93b34..bdc7a28 100644 (file)
--- a/README
+++ b/README
@@ -114,12 +114,9 @@ crashes when built with this option you will have to go back and
 configure without --enable-sse.  Note that
 --disable-asm-optimizations implies --disable-sse.
 
---enable-3dnow : If you are building for an AMD CPU which has 3DNOW!
-support, you can use this flag to enable some assembly routines
-which use 3DNOW! instructions.  There have been some reports that
-they may cause flac to crash, which is why it is not turned on
-by default.  Note that --disable-asm-optimizations overrides
---enable-3dnow.
+--enable-local-xmms-plugin : Installs the FLAC XMMS plugin in
+$HOME/.xmms/Plugins, instead of the global XMMS plugin area
+(usually /usr/lib/xmms/Input).
 
 --with-ogg=
 --with-id3lib=
index 68b2d7a..647a6f6 100644 (file)
@@ -208,6 +208,15 @@ if test x$use_3dnow = xtrue ; then
 AC_DEFINE(FLAC__USE_3DNOW)
 fi
 
+AC_ARG_ENABLE(local-xmms-plugin,
+[  --enable-local-xmms-plugin     Install XMMS plugin to ~/.xmms/Plugins instead of system location],
+[case "${enableval}" in
+       yes) install_xmms_plugin_locally=true ;;
+       no)  install_xmms_plugin_locally=false ;;
+       *) AC_MSG_ERROR(bad value ${enableval} for --enable-local-xmms-plugin) ;;
+esac],[install_xmms_plugin_locally=false])
+AM_CONDITIONAL(FLaC__INSTALL_XMMS_PLUGIN_LOCALLY, test x$install_xmms_plugin_locally = xtrue)
+
 AC_ARG_ENABLE(exhaustive-tests,
 [  --enable-exhaustive-tests      Enable exhaustive testing],
 [case "${enableval}" in
index 1aa6b5d..651ac21 100644 (file)
@@ -29,7 +29,11 @@ noinst_HEADERS = \
 
 CFLAGS = @CFLAGS@ @ID3LIB_CFLAGS@ @XMMS_CFLAGS@
 INCLUDES = -I$(top_srcdir)/src
+if FLaC__INSTALL_XMMS_PLUGIN_LOCALLY
+xmmsinputplugindir = $(HOME)/.xmms/Plugins
+else
 xmmsinputplugindir = @XMMS_INPUT_PLUGIN_DIR@
+endif
 
 # Don't build a static library
 LIBTOOL = $(top_builddir)/libtool-disable-static