Avoid error during initial autogen.sh invocation.
diff --git a/libcharset/ChangeLog b/libcharset/ChangeLog
index ef16633..c29477f 100644
--- a/libcharset/ChangeLog
+++ b/libcharset/ChangeLog
@@ -1,3 +1,10 @@
+2016-12-14  Bruno Haible  <bruno@clisp.org>
+
+	Avoid error during initial autogen.sh invocation.
+	* Makefile.devel (autoconf/aclocal.m4): Ensure directory 'autoconf'
+	exists.
+	Reported by Daiki Ueno.
+
 2016-12-03  Bruno Haible  <bruno@clisp.org>
 
 	Create tarballs through an Automake-like "make dist" command.
diff --git a/libcharset/Makefile.devel b/libcharset/Makefile.devel
index ff30d9c..25e61e4 100644
--- a/libcharset/Makefile.devel
+++ b/libcharset/Makefile.devel
@@ -12,6 +12,7 @@
 all : configures include/localcharset.h.build.in
 
 autoconf/aclocal.m4 : $(wildcard m4/*.m4)
+	test -d autoconf || mkdir autoconf
 	$(ACLOCAL) -I m4 --output=$@
 
 configures : configure config.h.in
diff --git a/libcharset/autoconf/.gitignore b/libcharset/autoconf/.gitignore
deleted file mode 100644
index e69de29..0000000
--- a/libcharset/autoconf/.gitignore
+++ /dev/null