diff --git a/configure.in b/configure.in
index 79567b82732589b0a8d1a0b43514f6560951c44d..a44830fd26a0a8e0468925b0b2fb2639da247496 100644
--- a/configure.in
+++ b/configure.in
@@ -529,6 +529,7 @@ universalchardet/Makefile
 auto3/Makefile
 automation/Makefile
 po/Makefile.in
+m4macros/Makefile
 ])
 
 
diff --git a/universalchardet/Makefile.am b/universalchardet/Makefile.am
index d36f098f35f94e28710728eb10bddb19d470cf51..b4b55dd9d14b3ed7d4f6832a2748420a3102a435 100644
--- a/universalchardet/Makefile.am
+++ b/universalchardet/Makefile.am
@@ -2,7 +2,7 @@ noinst_LIBRARIES = libuniversalchardet.a
 
 AM_CPPFLAGS = -D_X86_
 
-nodist_libuniversalchardet_a_SOURCES = \
+libuniversalchardet_a_SOURCES = \
 	CharDistribution.cpp \
 	JpCntx.cpp \
 	LangBulgarianModel.cpp \
@@ -29,7 +29,7 @@ nodist_libuniversalchardet_a_SOURCES = \
 	nsUTF8Prober.cpp \
 	nsUniversalDetector.cpp
 
-nodist_libuniversalchardet_a_SOURCES += \
+libuniversalchardet_a_SOURCES += \
 	CharDistribution.h \
 	JpCntx.h \
 	nsBig5Prober.h \