--- a/configure.in
+++ b/configure.in
@@ -6,6 +6,7 @@
 AC_CONFIG_HEADERS([config.h])
 AH_TOP([#pragma once])
 
+AM_INIT_AUTOMAKE
 AC_CANONICAL_HOST
 
 # General message strings
@@ -1064,6 +1065,10 @@
                 xbmc/cores/paplayer/FLACCodec/Makefile"
 fi
 
+# Line below is used so we can use AM_INIT_AUTOMAKE. The corresponding
+# .dummy.am does nothing.
+AC_CONFIG_FILES([.dummy])
+
 AC_CONFIG_FILES([${OUTPUT_FILES}])
 AC_SUBST(CFLAGS)
 AC_SUBST(CXXFLAGS)