new file mode 100644
@@ -0,0 +1,44 @@
+diff -urN a/configure.ac b/configure.ac
+--- a/configure.ac 2013-10-11 06:27:42.000000000 +0200
++++ b/configure.ac 2014-06-29 21:42:33.702496485 +0200
+@@ -675,6 +675,7 @@
+
+ AM_CONDITIONAL(USEDOCBOOK, test "x$HASDOCBOOK" = xyes)
+
++default_tests="yes"
+ default_docs="yes"
+ #
+ # Check if docs exist or can be created
+@@ -687,6 +688,14 @@
+ fi
+ fi
+
++AC_ARG_ENABLE(tests,
++ [AC_HELP_STRING([--disable-tests],
++ [Don't build and install tests])],
++ ,
++ enable_tests=$default_tests)
++
++AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = xyes)
++
+ AC_ARG_ENABLE(docs,
+ [AC_HELP_STRING([--disable-docs],
+ [Don't build and install documentation])],
+diff -urN a/Makefile.am b/Makefile.am
+--- a/Makefile.am 2013-10-11 05:10:16.000000000 +0200
++++ b/Makefile.am 2014-06-29 21:42:59.133331847 +0200
+@@ -23,10 +23,13 @@
+
+ SUBDIRS=fontconfig fc-case fc-lang fc-glyphname src \
+ fc-cache fc-cat fc-list fc-match fc-pattern fc-query fc-scan \
+- fc-validate conf.d test
++ fc-validate conf.d
+ if ENABLE_DOCS
+ SUBDIRS += doc
+ endif
++if ENABLE_TESTS
++SUBDIRS += test
++endif
+
+ ACLOCAL_AMFLAGS = -I m4
+
@@ -1,6 +1,6 @@
DESCRIPTION = "A library for configuring and customizing font access."
-inherit autotools pkgconfig c++ library
+inherit autotools-autoreconf pkgconfig c++ library
DEPENDS = "libexpat libfreetype libz"
@@ -8,7 +8,7 @@ SRC_URI = "http://fontconfig.org/release/${PN}-${PV}.tar.gz"
S = "${SRCDIR}/${PN}-${PV}"
-EXTRA_OECONF = "--disable-docs --with-arch=${HOST_ARCH} --with-cache-dir=${localstatedir}/lib/${PN}"
+EXTRA_OECONF = "--disable-docs --disable-tests --with-arch=${HOST_ARCH} --with-cache-dir=${localstatedir}/lib/${PN}"
do_configure_extra_MAKEFILES = "fc-case/Makefile fc-glyphname/Makefile \
fc-lang/Makefile fc-arch/Makefile"
@@ -1,6 +1,8 @@
require ${PN}.inc
LICENSE = "BSD"
+SRC_URI += "file://disable_tests.patch"
+
EXTRA_OECONF += "--without-xmldir"
do_configure_extra_MAKEFILES = "fc-case/Makefile fc-glyphname/Makefile \