When compiling with no XMMS installed (and USE='-xmms'), ebuild complains for
missing AM_PATH_XMMS :
===========8<============
>>> Unpacking flac-1.1.2.tar.gz to /var/tmp/portage/flac-1.1.2/work
* Applying flac-1.1.2-m4.patch ...
[ ok ]
* Applying flac-1.1.2-libtool.patch ...
[ ok ]
* Applying flac-1.1.2-gas.patch ...
[ ok ]
* Applying flac-1.1.2-makefile.patch ...
[ ok ]
/usr/share/aclocal/smpeg.m4:13: warning: underquoted definition of
AM_PATH_SMPEG
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal
/usr/share/aclocal/pth.m4:43: warning: underquoted definition of _AC_PTH_ERROR
/usr/share/aclocal/pth.m4:54: warning: underquoted definition of
_AC_PTH_VERBOSE
/usr/share/aclocal/pth.m4:60: warning: underquoted definition of AC_CHECK_PTH
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of
PKG_CHECK_MODULES
/usr/share/aclocal/movtar.m4:14: warning: underquoted definition of
MOVTAR_TEST_VERSION
/usr/share/aclocal/movtar.m4:59: warning: underquoted definition of
AM_PATH_MOVTAR
/usr/share/aclocal/lqt.m4:14: warning: underquoted definition of AC_PATH_LQT
/usr/share/aclocal/libreiser4.m4:14: warning: underquoted definition of
AC_CHECK_LIBREISER4
/usr/share/aclocal/libmikmod.m4:11: warning: underquoted definition of
AM_PATH_LIBMIKMOD
/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of
AM_PATH_LIBMCRYPT
/usr/share/aclocal/libfame.m4:6: warning: underquoted definition of
AM_PATH_LIBFAME
/usr/share/aclocal/libaal.m4:14: warning: underquoted definition of
AC_CHECK_LIBAAL
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of
AM_PATH_AUDIOFILE
aclocal: configure.in: 160: macro `AM_PATH_XMMS' not found in library
!!! ERROR: media-libs/flac-1.1.2 failed.
!!! Function src_unpack, Line 33, Exitcode 1
!!! autogen failed
===========8<============
Patch follow that solve this bug