summaryrefslogtreecommitdiff
path: root/devel/djgpp-gcc
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-01-28 21:55:55 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-01-28 21:55:55 +0000
commitf1ea1119da3f6758982119ff82bce4dc96a5531d (patch)
treeb4a140d2c3eae6345d941cee49453153eaeadf4b /devel/djgpp-gcc
parentHeaders and Libraries for DJGPP cross-development. (diff)
FSF gcc-4.1 for DJGPP cross-development
WWW: http://www.delorie.com/djgpp/ PR: ports/108470 Submitted by: Peter Johnson <johnson.peter at gmail.com>
Diffstat (limited to 'devel/djgpp-gcc')
-rw-r--r--devel/djgpp-gcc/Makefile132
-rw-r--r--devel/djgpp-gcc/distinfo18
-rw-r--r--devel/djgpp-gcc/files/patch-Makefile.in21
-rw-r--r--devel/djgpp-gcc/files/patch-gcc-Makefile.in34
-rw-r--r--devel/djgpp-gcc/files/patch-getpwd.c13
-rw-r--r--devel/djgpp-gcc/files/patch-libstdc++v3-crossconfig.m411
-rw-r--r--devel/djgpp-gcc/pkg-descr5
-rw-r--r--devel/djgpp-gcc/pkg-plist583
-rw-r--r--devel/djgpp-gcc/scripts/pre-configure160
-rw-r--r--devel/djgpp-gcc/scripts/pre-patch37
10 files changed, 1014 insertions, 0 deletions
diff --git a/devel/djgpp-gcc/Makefile b/devel/djgpp-gcc/Makefile
new file mode 100644
index 000000000000..7582b5025154
--- /dev/null
+++ b/devel/djgpp-gcc/Makefile
@@ -0,0 +1,132 @@
+# New ports collection makefile for: djgpp-gcc
+# Date created: 27 Jan 2007
+# Whom: Peter Johnson <johnson.peter@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gcc
+PORTVERSION= ${GCCVERSION}
+CATEGORIES= devel
+MASTER_SITES= ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/:djsource \
+ ftp://ftp.mirror.ac.uk/sites/www.delorie.com/current/v2/:djsource \
+ http://djgpp.linux-mirror.org/v2/:djsource \
+ http://djgpp.oss-mirror.org/v2/:djsource \
+ ${MASTER_SITE_SOURCEWARE}
+MASTER_SITE_SUBDIR= ${PORTNAME}/releases/${PORTNAME}-${GCCVERSION}
+PKGNAMEPREFIX= djgpp-
+DISTFILES= gcc410s2.zip:djsource \
+ ${PORTNAME}-core-${GCCVERSION}.tar.gz \
+ ${PORTNAME}-g++-${GCCVERSION}.tar.gz \
+ ${PORTNAME}-objc-${GCCVERSION}.tar.gz \
+# ${PORTNAME}-ada-${GCCVERSION}.tar.gz
+EXTRACT_ONLY= gcc410s2.zip
+
+MAINTAINER= johnson.peter@gmail.com
+COMMENT= FSF gcc-4.1 for DJGPP cross-development
+
+BUILD_DEPENDS= ${TARGET}-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils \
+ ${LOCALBASE}/${TARGET}/bin/stubify:${PORTSDIR}/devel/${PKGNAMEPREFIX}crx \
+ autoconf213:${PORTSDIR}/devel/autoconf213 \
+ autoconf259:${PORTSDIR}/devel/autoconf259 \
+ aclocal19:${PORTSDIR}/devel/automake19
+.if defined(WITH_FORTRAN)
+LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4 \
+ mpfr.1:${PORTSDIR}/math/mpfr
+.endif
+RUN_DEPENDS= ${TARGET}-as:${PORTSDIR}/devel/${PKGNAMEPREFIX}binutils \
+ ${LOCALBASE}/${TARGET}/bin/stubify:${PORTSDIR}/devel/${PKGNAMEPREFIX}crx
+
+TARGET= i586-pc-msdosdjgpp
+GCCVERSION= 4.1.0
+
+USE_ZIP= yes
+USE_PERL5_BUILD=yes
+USE_GMAKE= yes
+USE_ICONV= yes
+SCRIPTS_ENV= gcc_dir=${SRCDIR} PATCH=${PATCH}
+
+PATCH_WRKSRC= ${SRCDIR}
+CONFIGURE_SCRIPT= ../${SRCDIR:C/${WRKDIR}//}/configure
+
+SRCDIR= ${WRKDIR}/gnu/gcc-${GCCVERSION}
+WRKSRC= ${WRKDIR}/build
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --target=${TARGET} \
+ --with-gcc --with-gnu-ld --with-gnu-as \
+ --disable-nls --disable-shared \
+ --with-gxx-include-dir=${PREFIX}/${TARGET}/include/c++/ \
+ --infodir=${PREFIX}/${TARGET}/info \
+ --includedir=${PREFIX}/${TARGET}/include \
+ --datadir=${PREFIX}/${TARGET}/share
+.if defined(WITH_FORTRAN)
+CONFIGURE_ARGS+=--enable-languages=c,c++,fortran,objc,obj-c++
+.else
+CONFIGURE_ARGS+=--enable-languages=c,c++,objc,obj-c++
+.endif
+
+MAKE_ENV= PATH=${PREFIX}/bin:${PATH}
+LIBTOOLFILES= configure gcc/configure
+MAN1= ${TARGET}-gcc.1 ${TARGET}-g++.1 \
+ ${TARGET}-cpp.1 ${TARGET}-gcov.1
+
+PLIST_SUB+= GCC_TARG=${TARGET} GCC_REV=${GCCVERSION}
+
+INFO= cpp cppinternals gcc gccinstall gccint
+INFO_PATH= ${TARGET}/info
+
+BINARIES= gcc cpp g++ gcov
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_FORTRAN)
+DISTFILES+= ${PORTNAME}-fortran-${GCCVERSION}.tar.gz
+CONFIGURE_ARGS+=--with-gmp=${LOCALBASE}
+MAN1+= ${TARGET}-gfortran.1
+INFO+= gfortran
+BINARIES+= gfortran
+PLIST_SUB+= FORTRAN=""
+.else
+PLIST_SUB+= FORTRAN="@comment "
+.endif
+
+.if exists(${LOCALBASE}/lib/libiconv.so.3)
+WITH_LIBICONV= yes
+.endif
+
+.if defined(WITH_LIBICONV)
+USE_ICONV= yes
+CONFIGURE_ARGS+= --with-libiconv-prefix=${LOCALBASE}
+.endif
+
+post-extract:
+ @${MKDIR} ${WRKDIR}/gnu
+ @cd ${WRKDIR}/gnu && ${GZIP_CMD} -dc ${DISTDIR}/${PORTNAME}-core-${GCCVERSION}.tar.gz | ${TAR} -xf -
+ @cd ${WRKDIR}/gnu && ${GZIP_CMD} -dc ${DISTDIR}/${PORTNAME}-g++-${GCCVERSION}.tar.gz | ${TAR} -xf -
+.if defined(WITH_FORTRAN)
+ @cd ${WRKDIR}/gnu && ${GZIP_CMD} -dc ${DISTDIR}/${PORTNAME}-fortran-${GCCVERSION}.tar.gz | ${TAR} -xf -
+.endif
+ @cd ${WRKDIR}/gnu && ${GZIP_CMD} -dc ${DISTDIR}/${PORTNAME}-objc-${GCCVERSION}.tar.gz | ${TAR} -xf -
+# @cd ${WRKDIR}/gnu && ${GZIP_CMD} -dc ${DISTDIR}/${PORTNAME}-ada-${GCCVERSION}.tar.gz | ${TAR} -xf -
+ @${RM} -rf ${SRCDIR}/boehm-gc
+ @${RM} -rf ${SRCDIR}/fastjar
+ @${RM} -rf ${SRCDIR}/libffi
+ @${RM} -rf ${SRCDIR}/libjava
+ @${RM} -rf ${SRCDIR}/libchill
+ @${RM} -rf ${SRCDIR}/zlib
+ @${RM} -rf ${SRCDIR}/gcc/java
+ @${RM} -rf ${SRCDIR}/gcc/testsuite
+ @${RM} -rf ${SRCDIR}/gcc/treelang
+ @${RM} -rf ${SRCDIR}/libmudflap
+
+pre-configure:
+ @${MKDIR} ${CONFIGURE_WRKSRC}
+
+post-install:
+.for F in ${BINARIES}
+ @${LN} -f ${PREFIX}/bin/${TARGET}-$F ${PREFIX}/${TARGET}/bin/$F
+.endfor
+ @cd ${PREFIX}/${TARGET}/lib && ${LN} -f libstdcxx.a libstdc++.a
+ @cd ${PREFIX}/${TARGET}/lib && ${LN} -f libstdcxx.la libstdc++.la
+
+.include <bsd.port.post.mk>
diff --git a/devel/djgpp-gcc/distinfo b/devel/djgpp-gcc/distinfo
new file mode 100644
index 000000000000..b1aecc65666c
--- /dev/null
+++ b/devel/djgpp-gcc/distinfo
@@ -0,0 +1,18 @@
+MD5 (gcc410s2.zip) = dfbcc1eba890e2ccbe8fe2a6ff4fea0c
+SHA256 (gcc410s2.zip) = d3a440de97b85b7e30afb06b54cdd0b35a886909bfee82f9b657ffbcf1912d4c
+SIZE (gcc410s2.zip) = 42652
+MD5 (gcc-core-4.1.0.tar.gz) = 359371c7c6b022b647b59c1d5b98f910
+SHA256 (gcc-core-4.1.0.tar.gz) = 5dd59c5948834e65c169bf0f9efc221a0a292d199c89bdafc07e2c90b4bd8c67
+SIZE (gcc-core-4.1.0.tar.gz) = 21500352
+MD5 (gcc-g++-4.1.0.tar.gz) = de65449e068a4dde7f2d60983bf7015b
+SHA256 (gcc-g++-4.1.0.tar.gz) = 1b2d50ee725ff1c5c08973040ca03bb207de825f4b7c43a993deaf3b3428998c
+SIZE (gcc-g++-4.1.0.tar.gz) = 4985095
+MD5 (gcc-fortran-4.1.0.tar.gz) = 946f3883bf657ad8ffa4929c8b43b384
+SHA256 (gcc-fortran-4.1.0.tar.gz) = f046e3e3afa65eefe6a5216c5b164989067ced2dd28db834e641434cdc542f1a
+SIZE (gcc-fortran-4.1.0.tar.gz) = 1012189
+MD5 (gcc-objc-4.1.0.tar.gz) = 01645c442b4c17dde16fd0a0a76d29dd
+SHA256 (gcc-objc-4.1.0.tar.gz) = 2dfb39aacc87498d9844a0c513e4a0fc7b0f19e627904032eded73e1654d86c9
+SIZE (gcc-objc-4.1.0.tar.gz) = 238179
+MD5 (gcc-ada-4.1.0.tar.gz) = 6da06c4223acc429431ceff712960e1b
+SHA256 (gcc-ada-4.1.0.tar.gz) = 803bebda3ce941c07a062fbe5b025f28c542ba06cc45dc4b9b4ef3bccb282034
+SIZE (gcc-ada-4.1.0.tar.gz) = 6258495
diff --git a/devel/djgpp-gcc/files/patch-Makefile.in b/devel/djgpp-gcc/files/patch-Makefile.in
new file mode 100644
index 000000000000..0a0703a43fee
--- /dev/null
+++ b/devel/djgpp-gcc/files/patch-Makefile.in
@@ -0,0 +1,21 @@
+--- Makefile.in.orig Thu Dec 15 06:02:02 2005
++++ Makefile.in Sat Jan 27 17:54:23 2007
+@@ -17258,12 +17258,12 @@
+ maybe-install-libiberty: install-libiberty
+
+ install-libiberty: installdirs
+- @: $(MAKE); $(unstage)
+- @r=`${PWD_COMMAND}`; export r; \
+- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+- $(HOST_EXPORTS) \
+- (cd $(HOST_SUBDIR)/libiberty && \
+- $(MAKE) $(FLAGS_TO_PASS) install)
++# @: $(MAKE); $(unstage)
++# @r=`${PWD_COMMAND}`; export r; \
++# s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
++# $(HOST_EXPORTS) \
++# (cd $(HOST_SUBDIR)/libiberty && \
++# $(MAKE) $(FLAGS_TO_PASS) install)
+
+ @endif libiberty
+
diff --git a/devel/djgpp-gcc/files/patch-gcc-Makefile.in b/devel/djgpp-gcc/files/patch-gcc-Makefile.in
new file mode 100644
index 000000000000..d81ae9f656bb
--- /dev/null
+++ b/devel/djgpp-gcc/files/patch-gcc-Makefile.in
@@ -0,0 +1,34 @@
+--- gcc/Makefile.in.orig Sat Jan 27 17:21:48 2007
++++ gcc/Makefile.in Sat Jan 27 18:21:46 2007
+@@ -313,10 +313,7 @@
+ # to programs compiled with GCC.
+ USER_H = $(srcdir)/ginclude/float.h \
+ $(srcdir)/ginclude/iso646.h \
+- $(srcdir)/ginclude/stdarg.h \
+ $(srcdir)/ginclude/stdbool.h \
+- $(srcdir)/ginclude/stddef.h \
+- $(srcdir)/ginclude/varargs.h \
+ $(EXTRA_HEADERS)
+
+ UNWIND_H = $(srcdir)/unwind-generic.h
+@@ -3386,7 +3383,7 @@
+ echo rm -f $(@D)/*
+ $(TEXI2HTML) -I $(abs_docdir) -I $(abs_docdir)/include -o $(@D) $<
+
+-MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 doc/gfdl.7 doc/gpl.7 doc/fsf-funding.7
++MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1
+
+ generated-manpages: man
+
+@@ -3665,10 +3662,7 @@
+ install-man: lang.install-man \
+ $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \
+ $(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \
+- $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \
+- $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \
+- $(DESTDIR)$(man7dir)/gfdl$(man7ext) \
+- $(DESTDIR)$(man7dir)/gpl$(man7ext)
++ $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext)
+
+ $(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs
+ -rm -f $@
diff --git a/devel/djgpp-gcc/files/patch-getpwd.c b/devel/djgpp-gcc/files/patch-getpwd.c
new file mode 100644
index 000000000000..d2708a4c0b42
--- /dev/null
+++ b/devel/djgpp-gcc/files/patch-getpwd.c
@@ -0,0 +1,13 @@
+--- libiberty/getpwd.c.orig Tue May 24 13:48:25 2005
++++ libiberty/getpwd.c Sat Jan 27 17:43:11 2007
+@@ -39,6 +39,10 @@
+ #include <limits.h>
+ #endif
+
++#ifndef PATH_MAX
++#define PATH_MAX 512
++#endif
++
+ #include "libiberty.h"
+
+ /* Virtually every UN*X system now in common use (except for pre-4.3-tahoe
diff --git a/devel/djgpp-gcc/files/patch-libstdc++v3-crossconfig.m4 b/devel/djgpp-gcc/files/patch-libstdc++v3-crossconfig.m4
new file mode 100644
index 000000000000..2e39a7930746
--- /dev/null
+++ b/devel/djgpp-gcc/files/patch-libstdc++v3-crossconfig.m4
@@ -0,0 +1,11 @@
+--- libstdc++-v3/crossconfig.m4.orig Wed Jan 11 23:59:07 2006
++++ libstdc++-v3/crossconfig.m4 Sat Jan 27 19:40:59 2007
+@@ -60,7 +60,7 @@
+ GLIBCXX_CHECK_ICONV_SUPPORT
+ GLIBCXX_CHECK_STDLIB_SUPPORT
+ GLIBCXX_CHECK_S_ISREG_OR_S_IFREG
+- AC_DEFINE(HAVE_WRITEV)
++ #AC_DEFINE(HAVE_WRITEV)
+ ;;
+
+ *-freebsd*)
diff --git a/devel/djgpp-gcc/pkg-descr b/devel/djgpp-gcc/pkg-descr
new file mode 100644
index 000000000000..ef0c908f140f
--- /dev/null
+++ b/devel/djgpp-gcc/pkg-descr
@@ -0,0 +1,5 @@
+FSF gcc-4.1 for DJGPP cross-development
+
+GCC site: http://gcc.gnu.org/
+
+WWW: http://www.delorie.com/djgpp/
diff --git a/devel/djgpp-gcc/pkg-plist b/devel/djgpp-gcc/pkg-plist
new file mode 100644
index 000000000000..a19f5124981f
--- /dev/null
+++ b/devel/djgpp-gcc/pkg-plist
@@ -0,0 +1,583 @@
+bin/%%GCC_TARG%%-c++
+bin/%%GCC_TARG%%-cpp
+bin/%%GCC_TARG%%-g++
+%%FORTRAN%%bin/%%GCC_TARG%%-gfortran
+bin/%%GCC_TARG%%-gcc
+bin/%%GCC_TARG%%-gcc-%%GCC_REV%%
+bin/%%GCC_TARG%%-gccbug
+bin/%%GCC_TARG%%-gcov
+%%GCC_TARG%%/bin/c++
+%%GCC_TARG%%/bin/cpp
+%%GCC_TARG%%/bin/g++
+%%GCC_TARG%%/bin/gcc
+%%GCC_TARG%%/bin/gcov
+%%FORTRAN%%%%GCC_TARG%%/bin/gfortran
+%%GCC_TARG%%/include/c++/algorithm
+%%GCC_TARG%%/include/c++/backward/algo.h
+%%GCC_TARG%%/include/c++/backward/algobase.h
+%%GCC_TARG%%/include/c++/backward/alloc.h
+%%GCC_TARG%%/include/c++/backward/backward_warning.h
+%%GCC_TARG%%/include/c++/backward/bvector.h
+%%GCC_TARG%%/include/c++/backward/complex.h
+%%GCC_TARG%%/include/c++/backward/defalloc.h
+%%GCC_TARG%%/include/c++/backward/deque.h
+%%GCC_TARG%%/include/c++/backward/fstream.h
+%%GCC_TARG%%/include/c++/backward/function.h
+%%GCC_TARG%%/include/c++/backward/hash_map.h
+%%GCC_TARG%%/include/c++/backward/hash_set.h
+%%GCC_TARG%%/include/c++/backward/hashtable.h
+%%GCC_TARG%%/include/c++/backward/heap.h
+%%GCC_TARG%%/include/c++/backward/iomanip.h
+%%GCC_TARG%%/include/c++/backward/iostream.h
+%%GCC_TARG%%/include/c++/backward/istream.h
+%%GCC_TARG%%/include/c++/backward/iterator.h
+%%GCC_TARG%%/include/c++/backward/list.h
+%%GCC_TARG%%/include/c++/backward/map.h
+%%GCC_TARG%%/include/c++/backward/multimap.h
+%%GCC_TARG%%/include/c++/backward/multiset.h
+%%GCC_TARG%%/include/c++/backward/new.h
+%%GCC_TARG%%/include/c++/backward/ostream.h
+%%GCC_TARG%%/include/c++/backward/pair.h
+%%GCC_TARG%%/include/c++/backward/queue.h
+%%GCC_TARG%%/include/c++/backward/rope.h
+%%GCC_TARG%%/include/c++/backward/set.h
+%%GCC_TARG%%/include/c++/backward/slist.h
+%%GCC_TARG%%/include/c++/backward/stack.h
+%%GCC_TARG%%/include/c++/backward/stream.h
+%%GCC_TARG%%/include/c++/backward/streambuf.h
+%%GCC_TARG%%/include/c++/backward/strstream
+%%GCC_TARG%%/include/c++/backward/tempbuf.h
+%%GCC_TARG%%/include/c++/backward/tree.h
+%%GCC_TARG%%/include/c++/backward/vector.h
+%%GCC_TARG%%/include/c++/bits/allocator.h
+%%GCC_TARG%%/include/c++/bits/atomicity.h
+%%GCC_TARG%%/include/c++/bits/basic_ios.h
+%%GCC_TARG%%/include/c++/bits/basic_ios.tcc
+%%GCC_TARG%%/include/c++/bits/basic_string.h
+%%GCC_TARG%%/include/c++/bits/basic_string.tcc
+%%GCC_TARG%%/include/c++/bits/boost_concept_check.h
+%%GCC_TARG%%/include/c++/bits/char_traits.h
+%%GCC_TARG%%/include/c++/bits/cmath.tcc
+%%GCC_TARG%%/include/c++/bits/codecvt.h
+%%GCC_TARG%%/include/c++/bits/concept_check.h
+%%GCC_TARG%%/include/c++/bits/concurrence.h
+%%GCC_TARG%%/include/c++/bits/cpp_type_traits.h
+%%GCC_TARG%%/include/c++/bits/deque.tcc
+%%GCC_TARG%%/include/c++/bits/fstream.tcc
+%%GCC_TARG%%/include/c++/bits/functexcept.h
+%%GCC_TARG%%/include/c++/bits/gslice.h
+%%GCC_TARG%%/include/c++/bits/gslice_array.h
+%%GCC_TARG%%/include/c++/bits/indirect_array.h
+%%GCC_TARG%%/include/c++/bits/ios_base.h
+%%GCC_TARG%%/include/c++/bits/istream.tcc
+%%GCC_TARG%%/include/c++/bits/list.tcc
+%%GCC_TARG%%/include/c++/bits/locale_classes.h
+%%GCC_TARG%%/include/c++/bits/locale_facets.h
+%%GCC_TARG%%/include/c++/bits/locale_facets.tcc
+%%GCC_TARG%%/include/c++/bits/localefwd.h
+%%GCC_TARG%%/include/c++/bits/mask_array.h
+%%GCC_TARG%%/include/c++/bits/ostream.tcc
+%%GCC_TARG%%/include/c++/bits/postypes.h
+%%GCC_TARG%%/include/c++/bits/slice_array.h
+%%GCC_TARG%%/include/c++/bits/sstream.tcc
+%%GCC_TARG%%/include/c++/bits/stl_algo.h
+%%GCC_TARG%%/include/c++/bits/stl_algobase.h
+%%GCC_TARG%%/include/c++/bits/stl_bvector.h
+%%GCC_TARG%%/include/c++/bits/stl_construct.h
+%%GCC_TARG%%/include/c++/bits/stl_deque.h
+%%GCC_TARG%%/include/c++/bits/stl_function.h
+%%GCC_TARG%%/include/c++/bits/stl_heap.h
+%%GCC_TARG%%/include/c++/bits/stl_iterator.h
+%%GCC_TARG%%/include/c++/bits/stl_iterator_base_funcs.h
+%%GCC_TARG%%/include/c++/bits/stl_iterator_base_types.h
+%%GCC_TARG%%/include/c++/bits/stl_list.h
+%%GCC_TARG%%/include/c++/bits/stl_map.h
+%%GCC_TARG%%/include/c++/bits/stl_multimap.h
+%%GCC_TARG%%/include/c++/bits/stl_multiset.h
+%%GCC_TARG%%/include/c++/bits/stl_numeric.h
+%%GCC_TARG%%/include/c++/bits/stl_pair.h
+%%GCC_TARG%%/include/c++/bits/stl_queue.h
+%%GCC_TARG%%/include/c++/bits/stl_raw_storage_iter.h
+%%GCC_TARG%%/include/c++/bits/stl_relops.h
+%%GCC_TARG%%/include/c++/bits/stl_set.h
+%%GCC_TARG%%/include/c++/bits/stl_stack.h
+%%GCC_TARG%%/include/c++/bits/stl_tempbuf.h
+%%GCC_TARG%%/include/c++/bits/stl_tree.h
+%%GCC_TARG%%/include/c++/bits/stl_uninitialized.h
+%%GCC_TARG%%/include/c++/bits/stl_vector.h
+%%GCC_TARG%%/include/c++/bits/stream_iterator.h
+%%GCC_TARG%%/include/c++/bits/streambuf.tcc
+%%GCC_TARG%%/include/c++/bits/streambuf_iterator.h
+%%GCC_TARG%%/include/c++/bits/stringfwd.h
+%%GCC_TARG%%/include/c++/bits/valarray_after.h
+%%GCC_TARG%%/include/c++/bits/valarray_array.h
+%%GCC_TARG%%/include/c++/bits/valarray_array.tcc
+%%GCC_TARG%%/include/c++/bits/valarray_before.h
+%%GCC_TARG%%/include/c++/bits/vector.tcc
+%%GCC_TARG%%/include/c++/bitset
+%%GCC_TARG%%/include/c++/cassert
+%%GCC_TARG%%/include/c++/cctype
+%%GCC_TARG%%/include/c++/cerrno
+%%GCC_TARG%%/include/c++/cfloat
+%%GCC_TARG%%/include/c++/ciso646
+%%GCC_TARG%%/include/c++/climits
+%%GCC_TARG%%/include/c++/clocale
+%%GCC_TARG%%/include/c++/cmath
+%%GCC_TARG%%/include/c++/complex
+%%GCC_TARG%%/include/c++/csetjmp
+%%GCC_TARG%%/include/c++/csignal
+%%GCC_TARG%%/include/c++/cstdarg
+%%GCC_TARG%%/include/c++/cstddef
+%%GCC_TARG%%/include/c++/cstdio
+%%GCC_TARG%%/include/c++/cstdlib
+%%GCC_TARG%%/include/c++/cstring
+%%GCC_TARG%%/include/c++/ctime
+%%GCC_TARG%%/include/c++/cwchar
+%%GCC_TARG%%/include/c++/cwctype
+%%GCC_TARG%%/include/c++/cxxabi.h
+%%GCC_TARG%%/include/c++/debug/bitset
+%%GCC_TARG%%/include/c++/debug/debug.h
+%%GCC_TARG%%/include/c++/debug/deque
+%%GCC_TARG%%/include/c++/debug/formatter.h
+%%GCC_TARG%%/include/c++/debug/functions.h
+%%GCC_TARG%%/include/c++/debug/hash_map
+%%GCC_TARG%%/include/c++/debug/hash_map.h
+%%GCC_TARG%%/include/c++/debug/hash_multimap.h
+%%GCC_TARG%%/include/c++/debug/hash_multiset.h
+%%GCC_TARG%%/include/c++/debug/hash_set
+%%GCC_TARG%%/include/c++/debug/hash_set.h
+%%GCC_TARG%%/include/c++/debug/list
+%%GCC_TARG%%/include/c++/debug/macros.h
+%%GCC_TARG%%/include/c++/debug/map
+%%GCC_TARG%%/include/c++/debug/map.h
+%%GCC_TARG%%/include/c++/debug/multimap.h
+%%GCC_TARG%%/include/c++/debug/multiset.h
+%%GCC_TARG%%/include/c++/debug/safe_base.h
+%%GCC_TARG%%/include/c++/debug/safe_iterator.h
+%%GCC_TARG%%/include/c++/debug/safe_iterator.tcc
+%%GCC_TARG%%/include/c++/debug/safe_sequence.h
+%%GCC_TARG%%/include/c++/debug/set
+%%GCC_TARG%%/include/c++/debug/set.h
+%%GCC_TARG%%/include/c++/debug/string
+%%GCC_TARG%%/include/c++/debug/vector
+%%GCC_TARG%%/include/c++/deque
+%%GCC_TARG%%/include/c++/exception
+%%GCC_TARG%%/include/c++/exception_defines.h
+%%GCC_TARG%%/include/c++/ext/algorithm
+%%GCC_TARG%%/include/c++/ext/array_allocator.h
+%%GCC_TARG%%/include/c++/ext/bitmap_allocator.h
+%%GCC_TARG%%/include/c++/ext/codecvt_specializations.h
+%%GCC_TARG%%/include/c++/ext/debug_allocator.h
+%%GCC_TARG%%/include/c++/ext/functional
+%%GCC_TARG%%/include/c++/ext/hash_fun.h
+%%GCC_TARG%%/include/c++/ext/hash_map
+%%GCC_TARG%%/include/c++/ext/hash_set
+%%GCC_TARG%%/include/c++/ext/hashtable.h
+%%GCC_TARG%%/include/c++/ext/iterator
+%%GCC_TARG%%/include/c++/ext/malloc_allocator.h
+%%GCC_TARG%%/include/c++/ext/memory
+%%GCC_TARG%%/include/c++/ext/mt_allocator.h
+%%GCC_TARG%%/include/c++/ext/new_allocator.h
+%%GCC_TARG%%/include/c++/ext/numeric
+%%GCC_TARG%%/include/c++/ext/pb_assoc/assoc_cntnr.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/data_type.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/assoc_cntnr_base.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_assoc_cntnr/constructor_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_assoc_cntnr/constructors_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_assoc_cntnr/d_extract_key.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_assoc_cntnr/d_find_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_assoc_cntnr/d_insert_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_assoc_cntnr/erase_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_assoc_cntnr/extract_key.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_assoc_cntnr/info_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_assoc_cntnr/insert_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_assoc_cntnr/iterators_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_hash_assoc_cntnr/constructor_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_hash_assoc_cntnr/constructors_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_hash_assoc_cntnr/resize_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_tree_assoc_cntnr/constructor_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_tree_assoc_cntnr/constructors_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_tree_assoc_cntnr/erase_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_tree_assoc_cntnr/node_iteration_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_tree_assoc_cntnr/policy_access_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_tree_assoc_cntnr/r_erase_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_tree_assoc_cntnr/r_range_iteration_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_tree_assoc_cntnr/range_iteration_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_tree_assoc_cntnr/split_join_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/bin_search_tree_.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/cond_dtor_entry_dealtor.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/cond_key_dtor_entry_dealtor.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/constructors_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/debug_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/erase_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/find_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/find_iterators.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/info_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/insert_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/iterators_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/node_iterators.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/r_erase_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/rotate_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_/split_join_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_hash_assoc_cntnr/constructor_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/cc_ht_map_.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/cmp_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/cond_key_dtor_entry_dealtor.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/constructor_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/constructor_destructor_no_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/constructor_destructor_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/debug_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/debug_no_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/debug_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/entry_list_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/erase_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/erase_no_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/erase_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/find_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/find_no_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/find_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/info_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/insert_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/insert_no_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/insert_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/iterators_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/policy_access_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/resize_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/resize_no_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/resize_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/size_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_/standard_policies.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cond_dealtor.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/constructors_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ds_trait_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/eq_fn/eq_by_less.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/eq_fn/hash_eq_fn.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_hash_assoc_cntnr/constructor_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/constructor_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/constructor_destructor_no_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/constructor_destructor_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/debug_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/debug_no_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/debug_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/erase_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/erase_no_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/erase_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/find_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/find_no_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/find_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/gp_ht_map_.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/info_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/insert_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/insert_no_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/insert_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/iterator_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/policy_access_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/resize_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/resize_no_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_/resize_store_hash_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/hash_fn/direct_mask_range_hashing_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/hash_fn/direct_mod_range_hashing_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/hash_fn/linear_probe_fn_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/hash_fn/mask_based_range_hashing.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/hash_fn/mod_based_range_hashing.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/hash_fn/probe_fn_base.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/hash_fn/quadratic_probe_fn_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/hash_fn/ranged_hash_fn.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/hash_fn/ranged_probe_fn.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/hash_types_traits.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_assoc_cntnr/constructor_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_assoc_cntnr/policy_access_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_map_/constructor_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_map_/debug_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_map_/erase_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_map_/find_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_map_/info_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_map_/insert_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_map_/iterators_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_map_/lu_map_.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_map_/policy_access_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_policy/counter_lu_metadata_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_policy/counter_lu_policy_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_policy/mtf_lu_policy_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/map_debug_base.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/mapping_level_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ms_category_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ms_trait_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/order_statistics_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ov_tree_map_/cond_dtor.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ov_tree_map_/constructors_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ov_tree_map_/debug_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ov_tree_map_/erase_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ov_tree_map_/find_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ov_tree_map_/info_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ov_tree_map_/insert_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ov_tree_map_/iterators_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ov_tree_map_/node_iterators.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ov_tree_map_/ov_tree_map_.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ov_tree_map_/split_join_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/rb_tree_map_/constructors_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/rb_tree_map_/debug_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/rb_tree_map_/erase_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/rb_tree_map_/find_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/rb_tree_map_/info_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/rb_tree_map_/insert_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/rb_tree_map_/node.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/rb_tree_map_/rb_tree_.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/rb_tree_map_/split_join_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/resize_policy/cc_hash_max_collision_resize_trigger_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/resize_policy/hash_exponential_size_policy_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/resize_policy/hash_load_check_resize_trigger_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/resize_policy/hash_prime_size_policy_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/resize_policy/hash_standard_resize_policy_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/resize_policy/ht_prime_size_policy_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/resize_policy/size_base.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/splay_tree_/constructors_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/splay_tree_/debug_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/splay_tree_/erase_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/splay_tree_/find_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/splay_tree_/info_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/splay_tree_/insert_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/splay_tree_/node.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/splay_tree_/splay_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/splay_tree_/splay_tree_.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/splay_tree_/split_join_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/standard_policies.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/standard_sizes.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/tree_assoc_cntnr/constructor_destructor_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/tree_policy/null_node_updator_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/tree_policy/order_statistics_imp.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/type_utils.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/typelist.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/typelist/typelist_append.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/typelist/typelist_apply.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/typelist/typelist_at_index.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/typelist/typelist_contains.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/typelist/typelist_filter.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/typelist/typelist_transform.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/typelist/typelist_typelist_append.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/types_traits.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/unordered_iterator/const_find_iterator.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/unordered_iterator/const_iterator.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/unordered_iterator/find_iterator.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/unordered_iterator/iterator.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/constructor_destructor_and_related.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/erase_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/erase_if_pred.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/find_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/info_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/insert_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/invalidation_guarantee_selector.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/it_value_type_traits.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/iterator.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/iterator_fn_imps.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/ref_pair.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/value_type_adapter.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter/value_type_traits.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/ds_trait.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/exception.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/hash_policy.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/lu_policy.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/ms_trait.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/tree_policy.hpp
+%%GCC_TARG%%/include/c++/ext/pb_assoc/trivial_iterator_def.hpp
+%%GCC_TARG%%/include/c++/ext/pod_char_traits.h
+%%GCC_TARG%%/include/c++/ext/pool_allocator.h
+%%GCC_TARG%%/include/c++/ext/rb_tree
+%%GCC_TARG%%/include/c++/ext/rc_string_base.h
+%%GCC_TARG%%/include/c++/ext/rope
+%%GCC_TARG%%/include/c++/ext/ropeimpl.h
+%%GCC_TARG%%/include/c++/ext/slist
+%%GCC_TARG%%/include/c++/ext/sso_string_base.h
+%%GCC_TARG%%/include/c++/ext/stdio_filebuf.h
+%%GCC_TARG%%/include/c++/ext/stdio_sync_filebuf.h
+%%GCC_TARG%%/include/c++/ext/typelist.h
+%%GCC_TARG%%/include/c++/ext/vstring.h
+%%GCC_TARG%%/include/c++/ext/vstring.tcc
+%%GCC_TARG%%/include/c++/ext/vstring_fwd.h
+%%GCC_TARG%%/include/c++/ext/vstring_util.h
+%%GCC_TARG%%/include/c++/fstream
+%%GCC_TARG%%/include/c++/functional
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/atomic_word.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/basic_file.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/c++allocator.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/c++config.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/c++io.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/c++locale.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/cpu_defines.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/ctype_base.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/ctype_inline.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/ctype_noninline.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/cxxabi_tweaks.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/gthr-default.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/gthr-posix.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/gthr-single.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/gthr-tpf.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/gthr.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/messages_members.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/os_defines.h
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/stdc++.h.gch/O0g.gch
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/stdc++.h.gch/O2g.gch
+%%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/time_members.h
+%%GCC_TARG%%/include/c++/iomanip
+%%GCC_TARG%%/include/c++/ios
+%%GCC_TARG%%/include/c++/iosfwd
+%%GCC_TARG%%/include/c++/iostream
+%%GCC_TARG%%/include/c++/istream
+%%GCC_TARG%%/include/c++/iterator
+%%GCC_TARG%%/include/c++/limits
+%%GCC_TARG%%/include/c++/list
+%%GCC_TARG%%/include/c++/locale
+%%GCC_TARG%%/include/c++/map
+%%GCC_TARG%%/include/c++/memory
+%%GCC_TARG%%/include/c++/new
+%%GCC_TARG%%/include/c++/numeric
+%%GCC_TARG%%/include/c++/ostream
+%%GCC_TARG%%/include/c++/queue
+%%GCC_TARG%%/include/c++/set
+%%GCC_TARG%%/include/c++/sstream
+%%GCC_TARG%%/include/c++/stack
+%%GCC_TARG%%/include/c++/stdexcept
+%%GCC_TARG%%/include/c++/streambuf
+%%GCC_TARG%%/include/c++/string
+%%GCC_TARG%%/include/c++/tr1/array
+%%GCC_TARG%%/include/c++/tr1/bind_iterate.h
+%%GCC_TARG%%/include/c++/tr1/bind_repeat.h
+%%GCC_TARG%%/include/c++/tr1/boost_shared_ptr.h
+%%GCC_TARG%%/include/c++/tr1/functional
+%%GCC_TARG%%/include/c++/tr1/functional_iterate.h
+%%GCC_TARG%%/include/c++/tr1/hashtable
+%%GCC_TARG%%/include/c++/tr1/memory
+%%GCC_TARG%%/include/c++/tr1/mu_iterate.h
+%%GCC_TARG%%/include/c++/tr1/ref_fwd.h
+%%GCC_TARG%%/include/c++/tr1/ref_wrap_iterate.h
+%%GCC_TARG%%/include/c++/tr1/repeat.h
+%%GCC_TARG%%/include/c++/tr1/tuple
+%%GCC_TARG%%/include/c++/tr1/tuple_iterate.h
+%%GCC_TARG%%/include/c++/tr1/type_traits
+%%GCC_TARG%%/include/c++/tr1/type_traits_fwd.h
+%%GCC_TARG%%/include/c++/tr1/unordered_map
+%%GCC_TARG%%/include/c++/tr1/unordered_set
+%%GCC_TARG%%/include/c++/tr1/utility
+%%GCC_TARG%%/include/c++/typeinfo
+%%GCC_TARG%%/include/c++/utility
+%%GCC_TARG%%/include/c++/valarray
+%%GCC_TARG%%/include/c++/vector
+%%FORTRAN%%%%GCC_TARG%%/lib/libgf95begin.a
+%%FORTRAN%%%%GCC_TARG%%/lib/libgf95begin.la
+%%FORTRAN%%%%GCC_TARG%%/lib/libgfortran.a
+%%FORTRAN%%%%GCC_TARG%%/lib/libgfortran.la
+%%GCC_TARG%%/lib/libiberty.a
+%%GCC_TARG%%/lib/libobjc.a
+%%GCC_TARG%%/lib/libobjc.la
+%%GCC_TARG%%/lib/libssp.a
+%%GCC_TARG%%/lib/libssp.la
+%%GCC_TARG%%/lib/libssp_nonshared.a
+%%GCC_TARG%%/lib/libssp_nonshared.la
+%%GCC_TARG%%/lib/libstdc++.a
+%%GCC_TARG%%/lib/libstdc++.la
+%%GCC_TARG%%/lib/libstdcxx.a
+%%GCC_TARG%%/lib/libstdcxx.la
+%%GCC_TARG%%/lib/libsupc++.a
+%%GCC_TARG%%/lib/libsupc++.la
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/djgpp.ver
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/README
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/emmintrin.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/float.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/iso646.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/limits.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/mm3dnow.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/mm_malloc.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/mmintrin.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc/NXConstStr.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc/Object.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc/Protocol.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc/encoding.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc/hash.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc/objc-api.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc/objc-decls.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc/objc-list.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc/objc.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc/sarray.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc/thr.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc/typedstream.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/pmmintrin.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/ssp/ssp.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/ssp/stdio.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/ssp/string.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/ssp/unistd.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/stdbool.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/syslimits.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/unwind.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/xmmintrin.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/gsyslimits.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include/README
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include/emmintrin.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include/float.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include/iso646.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include/limits.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include/mm3dnow.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include/mm_malloc.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include/mmintrin.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include/pmmintrin.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include/stdbool.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include/unwind.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include/xmmintrin.h
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/macro_list
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/mkheaders.conf
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/libgcc.a
+lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/libgcov.a
+libexec/gcc/%%GCC_TARG%%/%%GCC_REV%%/cc1
+libexec/gcc/%%GCC_TARG%%/%%GCC_REV%%/cc1obj
+libexec/gcc/%%GCC_TARG%%/%%GCC_REV%%/cc1objplus
+libexec/gcc/%%GCC_TARG%%/%%GCC_REV%%/cc1plus
+libexec/gcc/%%GCC_TARG%%/%%GCC_REV%%/collect2
+%%FORTRAN%%libexec/gcc/%%GCC_TARG%%/%%GCC_REV%%/f951
+libexec/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/fixinc.sh
+libexec/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/fixincl
+libexec/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/mkheaders
+@dirrm %%GCC_TARG%%/include/c++/tr1
+@dirrm %%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits/stdc++.h.gch
+@dirrm %%GCC_TARG%%/include/c++/%%GCC_TARG%%/bits
+@dirrm %%GCC_TARG%%/include/c++/%%GCC_TARG%%
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/value_type_adapter
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/unordered_iterator
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/typelist
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/tree_policy
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/tree_assoc_cntnr
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/splay_tree_
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/resize_policy
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/rb_tree_map_
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/ov_tree_map_
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_policy
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_map_
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/lu_assoc_cntnr
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/hash_fn
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_ht_map_
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/gp_hash_assoc_cntnr
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/eq_fn
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_ht_map_
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/cc_hash_assoc_cntnr
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/bin_search_tree_
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_tree_assoc_cntnr
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_hash_assoc_cntnr
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail/basic_assoc_cntnr
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc/detail
+@dirrm %%GCC_TARG%%/include/c++/ext/pb_assoc
+@dirrm %%GCC_TARG%%/include/c++/ext
+@dirrm %%GCC_TARG%%/include/c++/debug
+@dirrm %%GCC_TARG%%/include/c++/bits
+@dirrm %%GCC_TARG%%/include/c++/backward
+@dirrm %%GCC_TARG%%/include/c++
+@dirrmtry %%GCC_TARG%%/share
+@dirrm lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools/include
+@dirrm lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools
+@dirrm lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/ssp
+@dirrm lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include/objc
+@dirrm lib/gcc/%%GCC_TARG%%/%%GCC_REV%%/include
+@dirrm lib/gcc/%%GCC_TARG%%/%%GCC_REV%%
+@dirrm lib/gcc/%%GCC_TARG%%
+@dirrmtry lib/gcc
+@dirrm libexec/gcc/%%GCC_TARG%%/%%GCC_REV%%/install-tools
+@dirrm libexec/gcc/%%GCC_TARG%%/%%GCC_REV%%
+@dirrm libexec/gcc/%%GCC_TARG%%
+@dirrmtry libexec/gcc
diff --git a/devel/djgpp-gcc/scripts/pre-configure b/devel/djgpp-gcc/scripts/pre-configure
new file mode 100644
index 000000000000..fd75b3c1c1a7
--- /dev/null
+++ b/devel/djgpp-gcc/scripts/pre-configure
@@ -0,0 +1,160 @@
+#! /bin/sh
+
+AUTOCONF_OLD=autoconf213
+AUTOHEADER_OLD=autoheader213
+AUTOCONF=autoconf259
+AUTOHEADER=autoheader259
+
+#
+# List of directories in which we should run autoconf or/and automake
+#
+
+automake_list=
+aclocal_list=
+
+#
+# Build list of patched files
+#
+
+for x in `(cd ${WRKDIR}/diffs/source && find . -type f | sed -e 's/\.\///g')`; do
+ case $x in
+ *.diff | *.diff.in)
+ cd $top
+ diff=${WRKDIR}/$x;
+ fname=`echo $x | sed -e 's/\.diff//g'`
+ if [ -f $gcc_dir/$fname ] ; then
+ case $fname in
+ */acinclude.m4)
+ dir=`echo $gcc_dir/$fname | sed -e 's/\/acinclude.m4//g'`
+ aclocal_list="$aclocal_list $dir"
+ ;;
+ */Makefile.am)
+ dir=`echo $gcc_dir/$fname | sed -e 's/\/Makefile.am//g'`
+ automake_list="$automake_list $dir"
+ ;;
+ esac
+ fi
+ ;;
+ *)
+ ;;
+ esac
+done
+
+for dir in build.gcc install.gcc; do
+ for x in `(cd ${WRKDIR}/diffs/$dir && find . -type f | sed -e 's/\.\///g')`; do
+ mkdir -p `dirname ${WRKDIR}/gnu/$dir/$x`
+ echo "Writing $dir/$x"
+ cat ${WRKDIR}/diffs/$dir/$x |\
+ sed -e "s:@SRCDIR@:$dir_name:g" >${WRKDIR}/gnu/$dir/$x
+ done
+done
+
+#
+# Run aclocal where needed
+#
+( cd $gcc_dir/libgfortran && aclocal19 -I ../config || exit 1)
+( cd $gcc_dir/libstdc++-v3 && aclocal19 -I . -I .. -I ../config || exit 1)
+
+#for dir in $aclocal_list ; do
+# if cd $dir ; then
+# echo Running aclocal in `pwd`...
+# if ! aclocal -I . -I $gcc_dir -I $gcc_dir/config ; then
+# echo "aclocal failed in directory `pwd`"
+# cd $top
+# exit 1
+# fi
+# fi
+# cd $top
+#done
+
+#
+# Run automake where needed
+#
+
+for dir in $automake_list; do
+ if cd $dir ; then
+ echo "Directory $dir: must run automake ...";
+ if ! [ -f configure.in ] ; then
+ if ! [ -f configure.ac ] ; then
+ cd ..;
+ if ! [ -f configure.in ] ; then
+ if ! [ -f configure.ac ] ; then
+ cd ..
+ fi
+ fi
+ fi
+ fi
+ echo "Running automake..."
+ if ! automake19; then
+ echo "automake failed in directory `pwd`"
+ cd $top
+ exit 1
+ fi
+ fi
+ cd $top
+done
+
+#
+# Run autoconf where needed
+#
+
+for c in `find $gcc_dir -name 'configure.in' -o -name 'configure.ac'`; do
+ d=`dirname $c`
+ n=`basename $c`
+ if cd $d ; then
+ AC_PREREQ=`grep 'AC_PREREQ(' $n | sed 's#.*(##' | sed 's#)##'`;
+
+ case $AC_PREREQ in
+ 2.1*) echo Running autoconf-2.13 in `pwd` ...;
+ if ! $AUTOCONF_OLD ; then
+ echo "autoconf failed in directory `pwd`"
+ cd $top
+ exit 1
+ fi
+ ;;
+ *2.5*) echo Running autoconf-2.5X in `pwd` ...;
+ if ! $AUTOCONF ; then
+ echo "autoconf failed in directory `pwd`"
+ cd $top
+ exit 1
+ fi
+ ;;
+ *) echo Unknown autoconf version $AC_PREREQ required
+ exit 1
+ ;;
+ esac
+ fi
+ cd $top
+done
+
+#
+# Run autoheader where needed
+#
+
+if cd $gcc_dir/gcc ; then
+ echo Running autoheader in `pwd` ...;
+ if [ -f configure.ac ] ; then
+ if ! $AUTOHEADER ; then
+ echo "autoheader failed in directory `pwd`"
+ cd $top
+ exit 1
+ fi
+ elif ! $AUTOHEADER_OLD ; then
+ echo "autoheader failed in directory `pwd`"
+ cd $top
+ exit 1
+ fi
+ rm -f cstamp-h.in
+ echo timestamp >cstamp-h.in
+fi
+
+if [ -f $gcc_dir/contrib/gcc_update ] ; then
+ echo Running contrib/gcc_update --touch
+ cd $gcc_dir;
+ ./contrib/gcc_update --touch
+ cd $top
+fi
+
+for x in `find . -type d -a -name 'autom4te.cache'`; do
+ rm -rf $x
+done
diff --git a/devel/djgpp-gcc/scripts/pre-patch b/devel/djgpp-gcc/scripts/pre-patch
new file mode 100644
index 000000000000..c2ed7046d5bd
--- /dev/null
+++ b/devel/djgpp-gcc/scripts/pre-patch
@@ -0,0 +1,37 @@
+#! /bin/sh
+
+#
+# Apply DJGPP related diffs and copy files
+#
+
+for x in `(cd ${WRKDIR}/diffs/source && find . -type f | sed -e 's/\.\///g')`; do
+ case $x in
+ *.diff | *.diff.in)
+ cd $top
+ diff=${WRKDIR}/$x;
+ fname=`echo $x | sed -e 's/\.diff//g'`
+ echo "Applying patch to gcc/$fname ..."
+ if [ -f $gcc_dir/$fname ] ; then
+ cp -f $gcc_dir/$fname $gcc_dir/${fname}~1
+ if ! ${PATCH} --quiet $gcc_dir/$fname <${WRKDIR}/diffs/source/$x ; then
+ echo "Failed to apply patch for $gcc_dir/$fname"
+# exit 1
+ fi
+ else
+ echo "File $gcc_dir/$fname is not found"
+ fi
+ ;;
+ readme.DJGPP)
+ ;;
+ *~*)
+ ;;
+ *)
+ echo Copying $x
+ mkdir -p `dirname $gcc_dir/$x`
+ if ! cp -fv ${WRKDIR}/diffs/source/$x $gcc_dir/$x ; then
+ echo "Failed to copy diffs/source/$x to $gcc_dir/$x"
+ exit 1
+ fi
+ ;;
+ esac
+done