--- autoconf2.64-2.64+dfsg.orig/debian/changelog
+++ autoconf2.64-2.64+dfsg/debian/changelog
@@ -0,0 +1,46 @@
+autoconf2.64 (2.64+dfsg-0.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+
+  [ Jonathan Nieder ]
+  * debian/rules: CONFIG_SHELL=/bin/bash, fixing FTBFS with future dash
+    versions (Closes: #619719)
+
+  [ Simon McVittie ]
+  * Remove unused and non-DFSG-Free doc/autoconf.* (Closes: #708781)
+  * Add patch to not try to compile them
+
+ -- Simon McVittie <smcv@debian.org>  Fri, 07 Nov 2014 19:08:03 +0000
+
+autoconf2.64 (2.64-3) unstable; urgency=low
+
+  * Update local patch for 2.64.
+
+ -- Matthias Klose <doko@debian.org>  Fri, 13 Aug 2010 13:46:49 +0200
+
+autoconf2.64 (2.64-2) unstable; urgency=low
+
+  * Upload to unstable, needed for gcc-snapshot (and gcc-4.5) builds.
+
+ -- Matthias Klose <doko@debian.org>  Sun, 03 Jan 2010 17:24:27 +0100
+
+autoconf2.64 (2.64-1) experimental; urgency=low
+
+  * Initial release, this autoconf version is needed to build GCC (>= 4.5.0).
+    - Update packaging for 2.64.
+  * debian/control: Bump Standards-Version to 3.8.3.
+  * debian/patches/01_update_autotools.diff: Remove, autotools are up-to-date
+    in this version.
+  * debian/patches/02_autoreconf-aclocal.diff: Update for 2.64.
+
+ -- Arthur Loiret <aloiret@debian.org>  Sun, 20 Dec 2009 12:14:28 +0000
+
+autoconf2.59 (2.59-1) unstable; urgency=low
+
+  * Initial release, this autoconf version is needed to build GCC (>= 4.3.3),
+    newlib, and probably some others toolchain related packages.
+  * debian/patches/01_update_autotools.diff: Update to newer autotools.
+  * debian/patches/02_autoreconf-aclocal.diff: Set AUTOM4TE env variable to
+    ensure aclocal uses the right autom4te version.
+
+ -- Arthur Loiret <aloiret@debian.org>  Fri, 13 Mar 2009 08:03:57 +0000
--- autoconf2.64-2.64+dfsg.orig/debian/compat
+++ autoconf2.64-2.64+dfsg/debian/compat
@@ -0,0 +1 @@
+5
--- autoconf2.64-2.64+dfsg.orig/debian/control
+++ autoconf2.64-2.64+dfsg/debian/control
@@ -0,0 +1,17 @@
+Source: autoconf2.64
+Section: devel
+Priority: extra
+Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
+Uploaders: Arthur Loiret <aloiret@debian.org>, Matthias Klose <doko@debian.org>
+Standards-Version: 3.9.1
+Build-Depends: debhelper (>= 5), quilt (>= 0.40)
+Build-Depends-Indep: texinfo, m4
+
+Package: autoconf2.64
+Architecture: all
+Depends: m4, debianutils (>= 1.8), autoconf (>= 2.50), perl, libfile-temp-perl, ${misc:Depends}
+Replaces: autoconf (<< 2.50)
+Conflicts: autoconf (<< 2.50)
+Description: automatic configure script builder (obsolete version)
+ This obsolete version is required to build GCC (>= 4.3.3), newlib,
+ and probably some others toolchain related packages.
--- autoconf2.64-2.64+dfsg.orig/debian/copyright
+++ autoconf2.64-2.64+dfsg/debian/copyright
@@ -0,0 +1,64 @@
+FSF GNU autoconf as packaged for Debian GNU/Linux.
+
+This package is assembled from the GNU sources found in
+	ftp.gnu.org:/pub/gnu/autoconf/autoconf-2.64.tar.gz
+
+Packaged originally by Mark Eichin <eichin@kitten.gen.ma.us>.
+autoconf currently maintained by Ben Pfaff <pfaffben@debian.org>.
+This specific version is maintained by the Debian GCC Maintainers
+<debian-gcc@lists.debian.org>.
+
+Upstream copyright notice:
+----------------------------------------------------------------------
+Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation,
+Inc.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
+USA.
+
+As a special exception, the Free Software Foundation gives unlimited
+permission to copy, distribute and modify the configure scripts that
+are the output of Autoconf.  You need not follow the terms of the GNU
+General Public License when using or distributing such scripts, even
+though portions of the text of Autoconf appear in them.  The GNU
+General Public License (GPL) does govern all other use of the material
+that constitutes the Autoconf program.
+
+Certain portions of the Autoconf source text are designed to be copied
+(in certain cases, depending on the input) into the output of
+Autoconf.  We call these the "data" portions.  The rest of the
+Autoconf source text consists of comments plus executable code that
+decides which of the data portions to output in any given case.  We
+call these comments and executable code the "non-data" portions.
+Autoconf never copies any of the non-data portions into its output.
+
+This special exception to the GPL applies to versions of Autoconf
+released by the Free Software Foundation.  When you make and
+distribute a modified version of Autoconf, you may extend this special
+exception to the GPL to apply to your modified version as well,
+*unless* your modified version has the potential to copy into its
+output some of the text that was the non-data portion of the version
+that you started with.  (In other words, unless your change moves or
+copies text from the non-data portions to the data portions.)  If your
+modification has such potential, you must delete any notice of this
+special exception to the GPL from your modified version.
+----------------------------------------------------------------------
+
+On a Debian system, a copy of the GNU GPL is installed in
+	/usr/share/common-licenses/GPL
+
+Written by David MacKenzie, with help from Franc,ois Pinard, Karl
+Berry, Richard Pixley, Ian Lance Taylor, Roland McGrath, Noah
+Friedman, david d zuhn, and many others.
--- autoconf2.64-2.64+dfsg.orig/debian/patches/02_autoreconf-aclocal.diff
+++ autoconf2.64-2.64+dfsg/debian/patches/02_autoreconf-aclocal.diff
@@ -0,0 +1,12 @@
+--- a/bin/autoreconf.in
++++ b/bin/autoreconf.in
+@@ -37,6 +37,9 @@
+   # e.g.: COMMAND.COM.  For DJGPP always use the shell that configure
+   # has detected.
+   $ENV{'SHELL'} = '@SHELL@' if ($^O eq 'dos');
++
++  # Make aclocal call the right autom4te version.
++  $ENV{AUTOM4TE} = '/usr/bin/autom4te2.64';
+ }
+ 
+ use Autom4te::ChannelDefs;
--- autoconf2.64-2.64+dfsg.orig/debian/patches/03_no_autoconf.info.diff
+++ autoconf2.64-2.64+dfsg/debian/patches/03_no_autoconf.info.diff
@@ -0,0 +1,92 @@
+From: Simon McVittie <smcv@debian.org>
+Subject: Do not build autoconf.info any more
+
+Based on a patch by David Prévot <taffit@debian.org> for autoconf2.59.
+
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708781
+Forwarded: not-needed
+
+--- autoconf2.64-2.64/doc/Makefile.am	2009-03-16 14:37:04.000000000 +0000
++++ autoconf2.64-2.64+dfsg/doc/Makefile.am	2014-11-07 18:50:35.180407944 +0000
+@@ -20,7 +20,7 @@
+ TEXI2HTML_FLAGS = -split_chapter
+ TEXINFO_TEX = ../build-aux/texinfo.tex
+ 
+-info_TEXINFOS = autoconf.texi standards.texi
++info_TEXINFOS = standards.texi
+ autoconf_TEXINFOS = fdl.texi install.texi
+ standards_TEXINFOS = fdl.texi gnu-oids.texi make-stds.texi
+ 
+--- autoconf2.64-2.64/doc/Makefile.in	2009-07-27 04:28:44.000000000 +0100
++++ autoconf2.64-2.64+dfsg/doc/Makefile.in	2014-11-07 18:52:06.345226181 +0000
+@@ -50,9 +67,8 @@
+ PRE_UNINSTALL = :
+ POST_UNINSTALL = :
+ subdir = doc
+-DIST_COMMON = $(autoconf_TEXINFOS) $(srcdir)/Makefile.am \
+-	$(srcdir)/Makefile.in $(srcdir)/stamp-vti \
+-	$(srcdir)/version.texi $(standards_TEXINFOS)
++DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
++	$(standards_TEXINFOS)
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ am__aclocal_m4_deps = $(top_srcdir)/m4/m4.m4 \
+ 	$(top_srcdir)/m4/make-case.m4 $(top_srcdir)/configure.ac
+@@ -63,13 +79,13 @@
+ CONFIG_CLEAN_VPATH_FILES =
+ SOURCES =
+ DIST_SOURCES =
+-INFO_DEPS = $(srcdir)/autoconf.info $(srcdir)/standards.info
++INFO_DEPS = $(srcdir)/standards.info
+ am__TEXINFO_TEX_DIR = $(srcdir)/../build-aux
+-DVIS = autoconf.dvi standards.dvi
+-PDFS = autoconf.pdf standards.pdf
+-PSS = autoconf.ps standards.ps
+-HTMLS = autoconf.html standards.html
+-TEXINFOS = autoconf.texi standards.texi
++DVIS = standards.dvi
++PDFS = standards.pdf
++PSS = standards.ps
++HTMLS = standards.html
++TEXINFOS = standards.texi
+ TEXI2DVI = texi2dvi
+ TEXI2PDF = $(TEXI2DVI) --pdf --batch
+ MAKEINFOHTML = $(MAKEINFO) --html
+@@ -189,7 +216,7 @@
+ AM_MAKEINFOFLAGS = --no-split
+ TEXI2HTML_FLAGS = -split_chapter
+ TEXINFO_TEX = ../build-aux/texinfo.tex
+-info_TEXINFOS = autoconf.texi standards.texi
++info_TEXINFOS = standards.texi
+ autoconf_TEXINFOS = fdl.texi install.texi
+ standards_TEXINFOS = fdl.texi gnu-oids.texi make-stds.texi
+ EXTRA_DIST = gendocs_template
+@@ -280,29 +307,6 @@
+ 	    rm -rf $(@:.html=); else rm -Rf $(@:.html=.htp) $@; fi; \
+ 	  exit 1; \
+ 	fi
+-$(srcdir)/autoconf.info: autoconf.texi $(srcdir)/version.texi $(autoconf_TEXINFOS)
+-autoconf.dvi: autoconf.texi $(srcdir)/version.texi $(autoconf_TEXINFOS)
+-autoconf.pdf: autoconf.texi $(srcdir)/version.texi $(autoconf_TEXINFOS)
+-autoconf.html: autoconf.texi $(srcdir)/version.texi $(autoconf_TEXINFOS)
+-$(srcdir)/version.texi:  $(srcdir)/stamp-vti
+-$(srcdir)/stamp-vti: autoconf.texi $(top_srcdir)/configure
+-	@(dir=.; test -f ./autoconf.texi || dir=$(srcdir); \
+-	set `$(SHELL) $(top_srcdir)/build-aux/mdate-sh $$dir/autoconf.texi`; \
+-	echo "@set UPDATED $$1 $$2 $$3"; \
+-	echo "@set UPDATED-MONTH $$2 $$3"; \
+-	echo "@set EDITION $(VERSION)"; \
+-	echo "@set VERSION $(VERSION)") > vti.tmp
+-	@cmp -s vti.tmp $(srcdir)/version.texi \
+-	  || (echo "Updating $(srcdir)/version.texi"; \
+-	      cp vti.tmp $(srcdir)/version.texi)
+-	-@rm -f vti.tmp
+-	@cp $(srcdir)/version.texi $@
+-
+-mostlyclean-vti:
+-	-rm -f vti.tmp
+-
+-maintainer-clean-vti:
+-	-rm -f $(srcdir)/stamp-vti $(srcdir)/version.texi
+ $(srcdir)/standards.info: standards.texi $(standards_TEXINFOS)
+ standards.dvi: standards.texi $(standards_TEXINFOS)
+ standards.pdf: standards.texi $(standards_TEXINFOS)
--- autoconf2.64-2.64+dfsg.orig/debian/patches/series
+++ autoconf2.64-2.64+dfsg/debian/patches/series
@@ -0,0 +1,2 @@
+02_autoreconf-aclocal.diff
+03_no_autoconf.info.diff
--- autoconf2.64-2.64+dfsg.orig/debian/rules
+++ autoconf2.64-2.64+dfsg/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+
+include /usr/share/quilt/quilt.make
+
+configure: configure-stamp
+configure-stamp: $(QUILT_STAMPFN)
+	dh_testdir
+	CONFIG_SHELL=/bin/bash \
+	bash ./configure --prefix=/usr --datadir=/usr/share \
+	  --mandir=/usr/share/man --infodir=/usr/share/info \
+	  --program-suffix=2.64
+	touch $@
+
+build: build-stamp
+build-stamp: configure-stamp
+	dh_testdir
+	$(MAKE) pkgdatadir="/usr/share/autoconf2.64"
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f configure-stamp build-stamp
+	[ ! -f Makefile ] || $(MAKE) distclean
+	dh_clean
+
+D = debian/autoconf2.64
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	$(MAKE) DESTDIR=$(CURDIR)/$(D) install
+	mv $(D)/usr/share/autoconf $(D)/usr/share/autoconf2.64
+	#find $(D) -type f | xargs \
+	#  sed -r 's;/usr/share/autoconf;/usr/share/autoconf2.64;g' -i
+	rm -rf $(D)/usr/share/info
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_link
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-arch: build install
+# We have nothing to do by default.
+
+binary: binary-indep binary-arch
+.PHONY: configure build clean binary-indep binary-arch binary install
--- autoconf2.64-2.64+dfsg.orig/man/autoreconf.1
+++ autoconf2.64-2.64+dfsg/man/autoreconf.1
@@ -1,5 +1,5 @@
-.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.36.
-.TH AUTORECONF "1" "July 2009" "GNU Autoconf 2.64" "User Commands"
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.38.2.
+.TH AUTORECONF "1" "August 2010" "GNU Autoconf 2.64" "User Commands"
 .SH NAME
 autoreconf \- Update generated configuration files
 .SH SYNOPSIS
@@ -97,12 +97,14 @@
 Written by David J. MacKenzie and Akim Demaille.
 .SH "REPORTING BUGS"
 Report bugs to <bug\-autoconf@gnu.org>.
+.br
 GNU Autoconf home page: <http://www.gnu.org/software/autoconf/>.
+.br
 General help using GNU software: <http://www.gnu.org/gethelp/>.
 .SH COPYRIGHT
 Copyright \(co 2009 Free Software Foundation, Inc.
 License GPLv2+: GNU GPL version 2 or later
-<http://gnu.org/licenses/old-licenses/gpl-2.0.html>
+<http://gnu.org/licenses/old\-licenses/gpl\-2.0.html>
 .br
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.
