--- /dev/null
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -31,7 +31,7 @@
+ 
+ ACLOCAL_AMFLAGS = -I m4
+ 
+-SUBDIRS = doc include m4 man src examples test build objs microbench
++SUBDIRS = doc include m4 src build objs microbench
+ 
+ EXTRA_DIST = \
+       COPYING.FDL \
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -27,15 +27,7 @@
+ SUBDIRS = \
+       libFLAC \
+       share \
+-      flac \
+-      metaflac \
+       $(XMMS_DIRS) \
+-      test_grabbag \
+-      test_libs_common \
+-      test_libFLAC \
+-      test_seeking \
+-      test_streams \
+-      utils \
+       $(CPPLIBS_DIRS)
+ 
+ EXTRA_DIST = \
+--- a/configure.ac
++++ b/configure.ac
+@@ -186,7 +186,7 @@ esac
+ AM_CONDITIONAL(OS_IS_WINDOWS, test "x$os_is_windows" = xyes)
+ 
+ case "$host" in
+-      *-pc-linux-gnu)
++      *-linux-*)
+               sys_linux=true
+               AC_DEFINE(FLAC__SYS_LINUX)
+               AH_TEMPLATE(FLAC__SYS_LINUX, [define if building for Linux])