~angelsl/ubuntu/wily/gcc-5/mips-cross

« back to all changes in this revision

Viewing changes to debian/patches/ada-libgnatprj.diff

  • Committer: angelsl
  • Date: 2015-10-30 03:30:35 UTC
  • Revision ID: angelsl-20151030033035-rmug41zm8hyjgisg
Original import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: - Introduce a new shared library named libgnatprj, containing
 
2
# DP:   the GNAT project file manager licensed under the pure GPL, for
 
3
# DP:   use in GNAT tools, GLADE and GPS.  Link the GNAT tools against
 
4
# DP:   this new library.
 
5
 
 
6
# This patch seems large, but the hunks in Makefile.in are actually
 
7
# generated from Makefile.def using autogen.
 
8
 
 
9
# !!! Must be applied after ada-libgnatvsn.dpatch
 
10
 
 
11
Index: b/src/gcc/ada/gcc-interface/config-lang.in
 
12
===================================================================
 
13
--- a/src/gcc/ada/gcc-interface/config-lang.in
 
14
+++ b/src/gcc/ada/gcc-interface/config-lang.in
 
15
@@ -34,8 +34,8 @@ gtfiles="\$(srcdir)/ada/gcc-interface/ad
 
16
 
 
17
 outputs="ada/gcc-interface/Makefile ada/Makefile"
 
18
 
 
19
-target_libs="target-libada target-libgnatvsn"
 
20
-lang_dirs="libada libgnatvsn gnattools"
 
21
+target_libs="target-libada target-libgnatvsn target-libgnatprj"
 
22
+lang_dirs="libada libgnatvsn libgnatprj gnattools"
 
23
 
 
24
 # Ada is not enabled by default for the time being.
 
25
 build_by_default=no
 
26
Index: b/src/libgnatprj/Makefile.in
 
27
===================================================================
 
28
--- /dev/null
 
29
+++ b/src/libgnatprj/Makefile.in
 
30
@@ -0,0 +1,180 @@
 
31
+# Makefile for libgnatprj.
 
32
+#   Copyright (c) 2006 Ludovic Brenta <ludovic@ludovic-brenta.org>
 
33
+#
 
34
+# This file is free software; you can redistribute it and/or modify
 
35
+# it under the terms of the GNU General Public License as published by
 
36
+# the Free Software Foundation; either version 2 of the License, or
 
37
+# (at your option) any later version.
 
38
+# 
 
39
+# This program is distributed in the hope that it will be useful,
 
40
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
41
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
42
+# GNU General Public License for more details.
 
43
+# 
 
44
+# You should have received a copy of the GNU General Public License
 
45
+# along with this program; if not, write to the Free Software
 
46
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 
47
+
 
48
+# Default target; must be first.
 
49
+all: libgnatprj
 
50
+
 
51
+.SUFFIXES:
 
52
+
 
53
+CPUS := $(shell getconf _NPROCESSORS_ONLN)
 
54
+LIB_VERSION := $(strip $(shell grep ' Library_Version :' \
 
55
+                 @srcdir@/../gcc/ada/gnatvsn.ads | \
 
56
+                sed -e 's/.*"\(.*\)".*/\1/'))
 
57
+GCC=$(CC)
 
58
+GPP=$(CXX)
 
59
+LIBGNAT_JUST_BUILT := -nostdinc -I../../gcc/ada/rts
 
60
+LIBGNATVSN := -I../libgnatvsn
 
61
+CFLAGS := -g -O2
 
62
+ADAFLAGS := -g -O2 -gnatn
 
63
+BASEVER := $(shell cat @srcdir@/../gcc/BASE-VER)
 
64
+DEVPHASE := $(shell cat @srcdir@/../gcc/DEV-PHASE)
 
65
+DATESTAMP := $(shell cat @srcdir@/../gcc/DATESTAMP)
 
66
+TOOLS_TARGET_PAIRS := @TOOLS_TARGET_PAIRS@
 
67
+LN_S := @LN_S@
 
68
+
 
69
+ifneq (@build@,@host@)
 
70
+   CFLAGS += -b @host@
 
71
+endif
 
72
+
 
73
+.PHONY: libgnatprj install
 
74
+libgnatprj: libgnatprj.so.$(LIB_VERSION) libgnatprj.a
 
75
+
 
76
+# Here we list one file per Ada unit: the body file if the unit has a
 
77
+# body, the spec file otherwise.
 
78
+PRJ_SOURCES := ali.adb ali-util.adb butil.adb binderr.adb errout.adb \
 
79
+erroutc.adb errutil.adb err_vars.ads fname-uf.adb fmap.adb impunit.adb \
 
80
+lib-util.adb makeutl.adb mlib.adb mlib-fil.adb mlib-tgt.adb \
 
81
+mlib-tgt-specific.adb mlib-utl.adb osint.adb osint-c.adb prj.adb prj-attr.adb \
 
82
+prj-attr-pm.adb prj-com.ads prj-conf.adb prj-dect.adb prj-env.adb prj-err.adb \
 
83
+prj-ext.adb prj-makr.adb prj-nmsc.adb prj-pars.adb prj-part.adb prj-pp.adb \
 
84
+prj-proc.adb prj-strt.adb prj-tree.adb prj-util.adb restrict.adb rident.ads \
 
85
+scng.adb sfn_scan.adb sinfo-cn.adb sinput-c.adb sinput-p.adb style.adb \
 
86
+styleg.adb stylesw.adb switch.adb switch-m.adb targparm.adb tempdir.adb
 
87
+
 
88
+# Source files generated in build/gcc/ada, not src/gcc/ada.
 
89
+GENERATED_SOURCES := sdefault.adb
 
90
+
 
91
+SOURCES := $(PRJ_SOURCES) $(GENERATED_SOURCES)
 
92
+
 
93
+OBJECTS := $(patsubst %.ads,%.o,$(SOURCES:.adb=.o))
 
94
+
 
95
+# Add some object files compiled from C sources.  prefix.o requires
 
96
+# some objects from libiberty and from gcc.
 
97
+OBJECTS += common-targhooks.o errors.o hooks.o link.o prefix.o targetm.o
 
98
+
 
99
+# These object files have already been built, both PIC and non-PIC.
 
100
+# prefix.o depends on them.
 
101
+LIBIBERTY_OBJECTS := concat.o filename_cmp.o lrealpath.o safe-ctype.o xexit.o xmalloc.o xstrdup.o
 
102
+
 
103
+vpath %.c @srcdir@ @srcdir@/../gcc @srcdir@/../gcc/common @srcdir@/../gcc/ada
 
104
+
 
105
+libgnatprj.so.$(LIB_VERSION): $(addprefix obj-shared/,$(OBJECTS))
 
106
+       : # Make libgnatprj.so
 
107
+       $(GCC) -o $@ -shared -fPIC -Wl,--soname,$@ -Wl,--no-allow-shlib-undefined \
 
108
+          $^ $(addprefix ../libiberty/pic/,$(LIBIBERTY_OBJECTS)) \
 
109
+          -L../../gcc/ada/rts -lgnat-$(LIB_VERSION) \
 
110
+          -L../libgnatvsn -lgnatvsn
 
111
+       $(LN_S) -f libgnatprj.so.$(LIB_VERSION) libgnatprj.so
 
112
+       chmod a=r obj-shared/*.ali
 
113
+# Make the .ali files, but not the .o files, visible to the gnat tools.
 
114
+       cp -lp obj-shared/*.ali .
 
115
+
 
116
+$(addprefix obj-shared/,$(OBJECTS)): | stamp-libgnatprj-sources obj-shared
 
117
+
 
118
+obj-shared/%.o: %.adb
 
119
+       $(GCC) -c -fPIC $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
 
120
+
 
121
+obj-shared/%.o: %.ads
 
122
+       $(GCC) -c -fPIC $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
 
123
+
 
124
+obj-shared/%.o: %.c
 
125
+       $(GPP) -c -fPIC $(CFLAGS) -DHAVE_CONFIG_H -DIN_GCC -pedantic \
 
126
+          -I@srcdir@/../gcc -I@srcdir@/../include -I@srcdir@/../libcpp/include -I../../gcc \
 
127
+          $< -o $@
 
128
+
 
129
+obj-shared/prefix.o: @srcdir@/../gcc/prefix.c
 
130
+       $(GPP) -c -fPIC $(CFLAGS) -DPREFIX=\"@prefix@\" -DBASEVER=\"$(BASEVER)\" \
 
131
+          -I@srcdir@/../gcc -I@srcdir@/../include -I../../gcc -I@srcdir@/../libcpp/include \
 
132
+          $< -o $@
 
133
+
 
134
+obj-shared:
 
135
+       -mkdir $@
 
136
+
 
137
+libgnatprj.a: $(addprefix obj-static/,$(OBJECTS))
 
138
+       : # Make libgnatprj.a
 
139
+       ar rc $@ $^ $(addprefix ../libiberty/,$(LIBIBERTY_OBJECTS))
 
140
+       ranlib $@
 
141
+
 
142
+$(addprefix obj-static/,$(OBJECTS)): | stamp-libgnatprj-sources obj-static
 
143
+
 
144
+obj-static/%.o: %.adb
 
145
+       $(GCC) -c $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
 
146
+
 
147
+obj-static/%.o: %.ads
 
148
+       $(GCC) -c $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
 
149
+
 
150
+obj-static/%.o: %.c
 
151
+       $(GPP) -c $(CFLAGS) -DHAVE_CONFIG_H -DIN_GCC -pedantic \
 
152
+          -I@srcdir@/../gcc -I@srcdir@/../include -I@srcdir@/../libcpp/include -I../../gcc \
 
153
+          $< -o $@
 
154
+
 
155
+obj-static/prefix.o: @srcdir@/../gcc/prefix.c
 
156
+       $(GPP) -c $(CFLAGS) -DPREFIX=\"@prefix@\" -DBASEVER=\"$(BASEVER)\" \
 
157
+          -I@srcdir@/../gcc -I@srcdir@/../include -I../../gcc -I@srcdir@/../libcpp/include \
 
158
+          $< -o $@
 
159
+
 
160
+obj-static:
 
161
+       -mkdir $@
 
162
+
 
163
+$(SOURCES): stamp-libgnatprj-sources
 
164
+
 
165
+stamp-libgnatprj-sources:
 
166
+       for file in $(PRJ_SOURCES); do \
 
167
+          ads=$$(echo $$file | sed 's/\.adb/.ads/'); \
 
168
+          if [ -f @srcdir@/../gcc/ada/$$file -a ! -L $$file ] ; then $(LN_S) @srcdir@/../gcc/ada/$$file .; fi; \
 
169
+          if [ -f @srcdir@/../gcc/ada/$$ads -a ! -L $$ads ] ; then $(LN_S) @srcdir@/../gcc/ada/$$ads .; fi; \
 
170
+       done
 
171
+       for file in $(GENERATED_SOURCES); do \
 
172
+          ads=$$(echo $$file | sed 's/\.adb/.ads/'); \
 
173
+          if [ -f ../../gcc/ada/$$file -a ! -L $$file ] ; then $(LN_S) ../../gcc/ada/$$file .; fi; \
 
174
+          if [ -f ../../gcc/ada/$$ads -a ! -L $$ads ] ; then $(LN_S) ../../gcc/ada/$$ads .; \
 
175
+          else \
 
176
+             if [ -f @srcdir@/../gcc/ada/$$ads -a ! -L $$ads ] ; then $(LN_S) @srcdir@/../gcc/ada/$$ads .; fi; \
 
177
+          fi; \
 
178
+       done
 
179
+       $(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
 
180
+                 rm -f $(word 1,$(subst <, ,$(PAIR)));\
 
181
+                 $(LN_S) @srcdir@/../gcc/ada/$(word 2,$(subst <, ,$(PAIR))) \
 
182
+                         $(word 1,$(subst <, ,$(PAIR)));)
 
183
+       touch $@
 
184
+
 
185
+# Generate a list of source files (.ads and .adb) to install.  Almost
 
186
+# all of them are in src/gcc/ada, but some are generated during build
 
187
+# and are in build/gcc/ada.
 
188
+BODIES := $(filter %.adb,$(PRJ_SOURCES))
 
189
+SPECS := $(filter %.ads,$(PRJ_SOURCES)) $(patsubst %.adb,%.ads,$(BODIES) $(GENERATED_SOURCES))
 
190
+SOURCES_TO_INSTALL := \
 
191
+$(addprefix  @srcdir@/../gcc/ada/,$(SPECS) $(BODIES)) \
 
192
+$(addprefix ../../gcc/ada/,$(GENERATED_SOURCES))
 
193
+
 
194
+libdir = @libdir@
 
195
+
 
196
+install: libgnatprj
 
197
+       $(INSTALL_DATA) libgnatprj.a $(DESTDIR)$(libdir)
 
198
+       $(INSTALL_DATA) libgnatprj.so.$(LIB_VERSION) $(DESTDIR)$(libdir)
 
199
+       cd $(DESTDIR)$(libdir); ln -sf libgnatprj.so.$(LIB_VERSION) libgnatprj.so
 
200
+       mkdir -p $(DESTDIR)$(prefix)/share/ada/adainclude/gnatprj
 
201
+       $(INSTALL_DATA) $(SOURCES_TO_INSTALL) \
 
202
+          $(DESTDIR)$(prefix)/share/ada/adainclude/gnatprj
 
203
+       mkdir -p $(DESTDIR)$(prefix)/lib/ada/adalib/gnatprj
 
204
+       $(INSTALL) -m 0444 obj-shared/*.ali \
 
205
+          $(DESTDIR)$(prefix)/lib/ada/adalib/gnatprj
 
206
+       chmod a=r $(DESTDIR)$(prefix)/lib/ada/adalib/gnatprj/*.ali
 
207
+
 
208
+.PHONY: clean
 
209
+clean:
 
210
+       rm -rf *.ali obj-static obj-shared libgnatprj* *.adb *.ads stamp*
 
211
Index: b/src/libgnatprj/targetm.c
 
212
===================================================================
 
213
--- /dev/null
 
214
+++ b/src/libgnatprj/targetm.c
 
215
@@ -0,0 +1,7 @@
 
216
+#include "config.h"
 
217
+#include "system.h"
 
218
+#include "coretypes.h"
 
219
+#include "common/common-target.h"
 
220
+#include "common/common-target-def.h"
 
221
+
 
222
+struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;
 
223
Index: b/src/Makefile.def
 
224
===================================================================
 
225
--- a/src/Makefile.def
 
226
+++ b/src/Makefile.def
 
227
@@ -184,6 +184,13 @@ target_modules = { module= libgnatvsn; n
 
228
                   missing= TAGS;
 
229
                   missing= install-info;
 
230
                   missing= installcheck; };
 
231
+target_modules = { module= libgnatprj; no_check=true;
 
232
+                  missing= info;
 
233
+                  missing= dvi;
 
234
+                  missing= html;
 
235
+                  missing= TAGS;
 
236
+                  missing= install-info;
 
237
+                  missing= installcheck; };
 
238
 target_modules = { module= libgomp; bootstrap= true; lib_path=.libs; };
 
239
 target_modules = { module= libitm; lib_path=.libs; };
 
240
 target_modules = { module= libatomic; bootstrap= true; lib_path=.libs; };
 
241
@@ -379,8 +386,12 @@ dependencies = { module=all-fixincludes;
 
242
 dependencies = { module=all-target-libada; on=all-gcc; };
 
243
 dependencies = { module=all-gnattools; on=all-target-libada; };
 
244
 dependencies = { module=all-gnattools; on=all-target-libgnatvsn; };
 
245
+dependencies = { module=all-gnattools; on=all-target-libgnatprj; };
 
246
 dependencies = { module=all-target-libgnatvsn; on=all-target-libada; };
 
247
+dependencies = { module=all-target-libgnatprj; on=all-target-libgnatvsn; };
 
248
+dependencies = { module=all-target-libgnatprj; on=all-target-libiberty; };
 
249
 dependencies = { module=all-gnattools; on=all-target-libstdc++-v3; };
 
250
+dependencies = { module=all-target-libgnatvsn; on=all-target-libstdc++-v3; };
 
251
 
 
252
 // Depending on the specific configuration, the LTO plugin will either use the
 
253
 // generic libiberty build or the specific build for linker plugins.
 
254
Index: b/src/configure.ac
 
255
===================================================================
 
256
--- a/src/configure.ac
 
257
+++ b/src/configure.ac
 
258
@@ -177,6 +177,7 @@ target_libraries="target-libgcc \
 
259
                target-libada \
 
260
                ${target_libiberty} \
 
261
                target-libgnatvsn \
 
262
+               target-libgnatprj \
 
263
                target-libgo"
 
264
 
 
265
 # these tools are built using the target libraries, and are intended to
 
266
@@ -446,7 +447,7 @@ AC_ARG_ENABLE(libada,
 
267
 ENABLE_LIBADA=$enableval,
 
268
 ENABLE_LIBADA=yes)
 
269
 if test "${ENABLE_LIBADA}" != "yes" ; then
 
270
-  noconfigdirs="$noconfigdirs target-libgnatvsn gnattools"
 
271
+  noconfigdirs="$noconfigdirs target-libgnatvsn target-libgnatprj gnattools"
 
272
 fi
 
273
 
 
274
 AC_ARG_ENABLE(libssp,
 
275
Index: b/src/libgnatprj/configure.ac
 
276
===================================================================
 
277
--- /dev/null
 
278
+++ b/src/libgnatprj/configure.ac
 
279
@@ -0,0 +1,146 @@
 
280
+# Configure script for libada.
 
281
+#   Copyright 2003, 2004 Free Software Foundation, Inc.
 
282
+#
 
283
+# This file is free software; you can redistribute it and/or modify it
 
284
+# under the terms of the GNU General Public License as published by
 
285
+# the Free Software Foundation; either version 2 of the License, or
 
286
+# (at your option) any later version.
 
287
+#
 
288
+# This program is distributed in the hope that it will be useful, but
 
289
+# WITHOUT ANY WARRANTY; without even the implied warranty of
 
290
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
291
+# General Public License for more details.
 
292
+#
 
293
+# You should have received a copy of the GNU General Public License
 
294
+# along with this program; if not, write to the Free Software
 
295
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
296
+
 
297
+AC_INIT
 
298
+AC_PREREQ([2.63])
 
299
+
 
300
+AC_CONFIG_SRCDIR([Makefile.in])
 
301
+
 
302
+# Start of actual configure tests
 
303
+
 
304
+AC_PROG_INSTALL
 
305
+
 
306
+AC_CANONICAL_BUILD
 
307
+AC_CANONICAL_HOST
 
308
+AC_CANONICAL_TARGET
 
309
+
 
310
+sinclude(../config/acx.m4)
 
311
+ACX_NONCANONICAL_TARGET
 
312
+
 
313
+# Need to pass this down for now :-P
 
314
+AC_PROG_LN_S
 
315
+
 
316
+# Determine x_ada_cflags
 
317
+case $host in
 
318
+  hppa*) x_ada_cflags=-mdisable-indexing ;;
 
319
+  *) x_ada_cflags= ;;
 
320
+esac
 
321
+AC_SUBST([x_ada_cflags])
 
322
+
 
323
+# Determine what to build for 'gnattools'
 
324
+if test $build = $target ; then
 
325
+  # Note that build=target is almost certainly the wrong test; FIXME
 
326
+  default_gnattools_target="gnattools-native"
 
327
+else
 
328
+  default_gnattools_target="gnattools-cross"
 
329
+fi
 
330
+AC_SUBST([default_gnattools_target])
 
331
+
 
332
+# Target-specific stuff (defaults)
 
333
+TOOLS_TARGET_PAIRS=
 
334
+AC_SUBST(TOOLS_TARGET_PAIRS)
 
335
+
 
336
+# Per-target case statement
 
337
+# ---/----------------------
 
338
+case "${target}" in
 
339
+  alpha*-dec-vx*) # Unlike all other Vxworks
 
340
+    ;;
 
341
+  m68k*-wrs-vx* \
 
342
+  | powerpc*-wrs-vxworks \
 
343
+  | sparc*-wrs-vx* \
 
344
+  | *86-wrs-vxworks \
 
345
+  | xscale*-wrs-vx* \
 
346
+  | xscale*-wrs-coff \
 
347
+  | mips*-wrs-vx*)
 
348
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb"
 
349
+    ;;
 
350
+  sparc-sun-solaris*)
 
351
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
 
352
+    ;;
 
353
+  *86-*-solaris2*)
 
354
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
 
355
+    ;;
 
356
+  *86-*-linux* \
 
357
+  | aarch64*-*-linux* \
 
358
+  | arm*-*-linux* \
 
359
+  | powerpc*-*-linux* \
 
360
+  | *ia64-*-linux* \
 
361
+  | alpha*-*-linux* \
 
362
+  | sparc*-*-linux* \
 
363
+  | hppa*-*-linux* \
 
364
+  | mips*-*-linux* \
 
365
+  | m68k-*-linux \
 
366
+  | *x86_64-*-linux* \
 
367
+  | *86-*-kfreebsd*-gnu \
 
368
+  | *86-*-gnu \
 
369
+  | *x86_64-*-kfreebsd*-gnu )
 
370
+    TOOLS_TARGET_PAIRS="\
 
371
+    mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb"
 
372
+    ;;
 
373
+  s390*-*-linux*)
 
374
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb"
 
375
+    ;;
 
376
+  *86-*-freebsd*)
 
377
+    TOOLS_TARGET_PAIRS="\
 
378
+    mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb"
 
379
+    ;;
 
380
+  mips-sgi-irix*)
 
381
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-irix.adb"
 
382
+    ;;
 
383
+  hppa*-hp-hpux10*) # Unlike hpux11
 
384
+    ;;
 
385
+  hppa*-hp-hpux11*)
 
386
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb"
 
387
+    ;;
 
388
+  *-ibm-aix*)
 
389
+    TOOLS_TARGET_PAIRS="\
 
390
+    mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb"
 
391
+    ;;
 
392
+  alpha*-dec-osf*)
 
393
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-tru64.adb"
 
394
+    ;;
 
395
+  alpha*-dec-vms* | alpha*-dec-openvms* | alpha*-dec-vms* \
 
396
+  | alpha*-hp-vms* | alpha*-hp-openvms* | alpha*-hp-vms*)
 
397
+    TOOLS_TARGET_PAIRS="\
 
398
+    mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
 
399
+    symbols.adb<symbols-vms.adb \
 
400
+    symbols-processing.adb<symbols-processing-vms-alpha.adb"
 
401
+    ;;
 
402
+  ia64*-dec-vms* | ia64*-dec-openvms* | ia64*-dec-vms* \
 
403
+  | ia64*-hp-vms* | ia64*-hp-openvms* | ia64*-hp-vms*)
 
404
+    TOOLS_TARGET_PAIRS="\
 
405
+    mlib-tgt-specific.adb<mlib-tgt-vms-ia64.adb \
 
406
+    symbols.adb<symbols-vms.adb \
 
407
+    symbols-processing.adb<symbols-processing-vms-ia64.adb"
 
408
+    ;;
 
409
+  *-*-cygwin32* | *-*-mingw32* | *-*-pe)
 
410
+    TOOLS_TARGET_PAIRS="\
 
411
+    mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb"
 
412
+    ;;
 
413
+  powerpc-*-darwin*)
 
414
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb"
 
415
+    ;;
 
416
+  *-*-lynxos)
 
417
+    TOOLS_TARGET_PAIRS="\
 
418
+    mlib-tgt-specific.adb<mlib-tgt-specific-lynxos.adb"
 
419
+    ;;
 
420
+esac
 
421
+
 
422
+# Output: create a Makefile.
 
423
+AC_CONFIG_FILES([Makefile])
 
424
+
 
425
+AC_OUTPUT
 
426
Index: b/src/Makefile.in
 
427
===================================================================
 
428
--- a/src/Makefile.in
 
429
+++ b/src/Makefile.in
 
430
@@ -967,6 +967,7 @@ configure-target:  \
 
431
     maybe-configure-target-rda \
 
432
     maybe-configure-target-libada \
 
433
     maybe-configure-target-libgnatvsn \
 
434
+    maybe-configure-target-libgnatprj \
 
435
     maybe-configure-target-libgomp \
 
436
     maybe-configure-target-libitm \
 
437
     maybe-configure-target-libatomic
 
438
@@ -1134,6 +1135,7 @@ all-target: maybe-all-target-boehm-gc
 
439
 all-target: maybe-all-target-rda
 
440
 all-target: maybe-all-target-libada
 
441
 all-target: maybe-all-target-libgnatvsn
 
442
+all-target: maybe-all-target-libgnatprj
 
443
 @if target-libgomp-no-bootstrap
 
444
 all-target: maybe-all-target-libgomp
 
445
 @endif target-libgomp-no-bootstrap
 
446
@@ -1232,6 +1234,7 @@ info-target: maybe-info-target-boehm-gc
 
447
 info-target: maybe-info-target-rda
 
448
 info-target: maybe-info-target-libada
 
449
 info-target: maybe-info-target-libgnatvsn
 
450
+info-target: maybe-info-target-libgnatprj
 
451
 info-target: maybe-info-target-libgomp
 
452
 info-target: maybe-info-target-libitm
 
453
 info-target: maybe-info-target-libatomic
 
454
@@ -1321,6 +1324,7 @@ dvi-target: maybe-dvi-target-boehm-gc
 
455
 dvi-target: maybe-dvi-target-rda
 
456
 dvi-target: maybe-dvi-target-libada
 
457
 dvi-target: maybe-dvi-target-libgnatvsn
 
458
+dvi-target: maybe-dvi-target-libgnatprj
 
459
 dvi-target: maybe-dvi-target-libgomp
 
460
 dvi-target: maybe-dvi-target-libitm
 
461
 dvi-target: maybe-dvi-target-libatomic
 
462
@@ -1410,6 +1414,7 @@ pdf-target: maybe-pdf-target-boehm-gc
 
463
 pdf-target: maybe-pdf-target-rda
 
464
 pdf-target: maybe-pdf-target-libada
 
465
 pdf-target: maybe-pdf-target-libgnatvsn
 
466
+pdf-target: maybe-pdf-target-libgnatprj
 
467
 pdf-target: maybe-pdf-target-libgomp
 
468
 pdf-target: maybe-pdf-target-libitm
 
469
 pdf-target: maybe-pdf-target-libatomic
 
470
@@ -1499,6 +1504,7 @@ html-target: maybe-html-target-boehm-gc
 
471
 html-target: maybe-html-target-rda
 
472
 html-target: maybe-html-target-libada
 
473
 html-target: maybe-html-target-libgnatvsn
 
474
+html-target: maybe-html-target-libgnatprj
 
475
 html-target: maybe-html-target-libgomp
 
476
 html-target: maybe-html-target-libitm
 
477
 html-target: maybe-html-target-libatomic
 
478
@@ -1588,6 +1594,7 @@ TAGS-target: maybe-TAGS-target-boehm-gc
 
479
 TAGS-target: maybe-TAGS-target-rda
 
480
 TAGS-target: maybe-TAGS-target-libada
 
481
 TAGS-target: maybe-TAGS-target-libgnatvsn
 
482
+TAGS-target: maybe-TAGS-target-libgnatprj
 
483
 TAGS-target: maybe-TAGS-target-libgomp
 
484
 TAGS-target: maybe-TAGS-target-libitm
 
485
 TAGS-target: maybe-TAGS-target-libatomic
 
486
@@ -1677,6 +1684,7 @@ install-info-target: maybe-install-info-
 
487
 install-info-target: maybe-install-info-target-rda
 
488
 install-info-target: maybe-install-info-target-libada
 
489
 install-info-target: maybe-install-info-target-libgnatvsn
 
490
+install-info-target: maybe-install-info-target-libgnatprj
 
491
 install-info-target: maybe-install-info-target-libgomp
 
492
 install-info-target: maybe-install-info-target-libitm
 
493
 install-info-target: maybe-install-info-target-libatomic
 
494
@@ -1766,6 +1774,7 @@ install-pdf-target: maybe-install-pdf-ta
 
495
 install-pdf-target: maybe-install-pdf-target-rda
 
496
 install-pdf-target: maybe-install-pdf-target-libada
 
497
 install-pdf-target: maybe-install-pdf-target-libgnatvsn
 
498
+install-pdf-target: maybe-install-pdf-target-libgnatprj
 
499
 install-pdf-target: maybe-install-pdf-target-libgomp
 
500
 install-pdf-target: maybe-install-pdf-target-libitm
 
501
 install-pdf-target: maybe-install-pdf-target-libatomic
 
502
@@ -1855,6 +1864,7 @@ install-html-target: maybe-install-html-
 
503
 install-html-target: maybe-install-html-target-rda
 
504
 install-html-target: maybe-install-html-target-libada
 
505
 install-html-target: maybe-install-html-target-libgnatvsn
 
506
+install-html-target: maybe-install-html-target-libgnatprj
 
507
 install-html-target: maybe-install-html-target-libgomp
 
508
 install-html-target: maybe-install-html-target-libitm
 
509
 install-html-target: maybe-install-html-target-libatomic
 
510
@@ -1944,6 +1954,7 @@ installcheck-target: maybe-installcheck-
 
511
 installcheck-target: maybe-installcheck-target-rda
 
512
 installcheck-target: maybe-installcheck-target-libada
 
513
 installcheck-target: maybe-installcheck-target-libgnatvsn
 
514
+installcheck-target: maybe-installcheck-target-libgnatprj
 
515
 installcheck-target: maybe-installcheck-target-libgomp
 
516
 installcheck-target: maybe-installcheck-target-libitm
 
517
 installcheck-target: maybe-installcheck-target-libatomic
 
518
@@ -2033,6 +2044,7 @@ mostlyclean-target: maybe-mostlyclean-ta
 
519
 mostlyclean-target: maybe-mostlyclean-target-rda
 
520
 mostlyclean-target: maybe-mostlyclean-target-libada
 
521
 mostlyclean-target: maybe-mostlyclean-target-libgnatvsn
 
522
+mostlyclean-target: maybe-mostlyclean-target-libgnatprj
 
523
 mostlyclean-target: maybe-mostlyclean-target-libgomp
 
524
 mostlyclean-target: maybe-mostlyclean-target-libitm
 
525
 mostlyclean-target: maybe-mostlyclean-target-libatomic
 
526
@@ -2122,6 +2134,7 @@ clean-target: maybe-clean-target-boehm-g
 
527
 clean-target: maybe-clean-target-rda
 
528
 clean-target: maybe-clean-target-libada
 
529
 clean-target: maybe-clean-target-libgnatvsn
 
530
+clean-target: maybe-clean-target-libgnatprj
 
531
 clean-target: maybe-clean-target-libgomp
 
532
 clean-target: maybe-clean-target-libitm
 
533
 clean-target: maybe-clean-target-libatomic
 
534
@@ -2211,6 +2224,7 @@ distclean-target: maybe-distclean-target
 
535
 distclean-target: maybe-distclean-target-rda
 
536
 distclean-target: maybe-distclean-target-libada
 
537
 distclean-target: maybe-distclean-target-libgnatvsn
 
538
+distclean-target: maybe-distclean-target-libgnatprj
 
539
 distclean-target: maybe-distclean-target-libgomp
 
540
 distclean-target: maybe-distclean-target-libitm
 
541
 distclean-target: maybe-distclean-target-libatomic
 
542
@@ -2300,6 +2314,7 @@ maintainer-clean-target: maybe-maintaine
 
543
 maintainer-clean-target: maybe-maintainer-clean-target-rda
 
544
 maintainer-clean-target: maybe-maintainer-clean-target-libada
 
545
 maintainer-clean-target: maybe-maintainer-clean-target-libgnatvsn
 
546
+maintainer-clean-target: maybe-maintainer-clean-target-libgnatprj
 
547
 maintainer-clean-target: maybe-maintainer-clean-target-libgomp
 
548
 maintainer-clean-target: maybe-maintainer-clean-target-libitm
 
549
 maintainer-clean-target: maybe-maintainer-clean-target-libatomic
 
550
@@ -2444,6 +2459,7 @@ check-target:  \
 
551
     maybe-check-target-rda \
 
552
     maybe-check-target-libada \
 
553
     maybe-check-target-libgnatvsn \
 
554
+    maybe-check-target-libgnatprj \
 
555
     maybe-check-target-libgomp \
 
556
     maybe-check-target-libitm \
 
557
     maybe-check-target-libatomic
 
558
@@ -2620,6 +2636,7 @@ install-target:  \
 
559
     maybe-install-target-rda \
 
560
     maybe-install-target-libada \
 
561
     maybe-install-target-libgnatvsn \
 
562
+    maybe-install-target-libgnatprj \
 
563
     maybe-install-target-libgomp \
 
564
     maybe-install-target-libitm \
 
565
     maybe-install-target-libatomic
 
566
@@ -2729,6 +2746,7 @@ install-strip-target:  \
 
567
     maybe-install-strip-target-rda \
 
568
     maybe-install-strip-target-libada \
 
569
     maybe-install-strip-target-libgnatvsn \
 
570
+    maybe-install-strip-target-libgnatprj \
 
571
     maybe-install-strip-target-libgomp \
 
572
     maybe-install-strip-target-libitm \
 
573
     maybe-install-strip-target-libatomic
 
574
@@ -45992,6 +46010,362 @@ maintainer-clean-target-libgnatvsn:
 
575
 
 
576
 
 
577
 
 
578
+.PHONY: configure-target-libgnatprj maybe-configure-target-libgnatprj
 
579
+maybe-configure-target-libgnatprj:
 
580
+@if gcc-bootstrap
 
581
+configure-target-libgnatprj: stage_current
 
582
+@endif gcc-bootstrap
 
583
+@if target-libgnatprj
 
584
+maybe-configure-target-libgnatprj: configure-target-libgnatprj
 
585
+configure-target-libgnatprj: 
 
586
+       @: $(MAKE); $(unstage)
 
587
+       @r=`${PWD_COMMAND}`; export r; \
 
588
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
589
+       echo "Checking multilib configuration for libgnatprj..."; \
 
590
+       $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgnatprj ; \
 
591
+       $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgnatprj/multilib.tmp 2> /dev/null ; \
 
592
+       if test -r $(TARGET_SUBDIR)/libgnatprj/multilib.out; then \
 
593
+         if cmp -s $(TARGET_SUBDIR)/libgnatprj/multilib.tmp $(TARGET_SUBDIR)/libgnatprj/multilib.out; then \
 
594
+           rm -f $(TARGET_SUBDIR)/libgnatprj/multilib.tmp; \
 
595
+         else \
 
596
+           rm -f $(TARGET_SUBDIR)/libgnatprj/Makefile; \
 
597
+           mv $(TARGET_SUBDIR)/libgnatprj/multilib.tmp $(TARGET_SUBDIR)/libgnatprj/multilib.out; \
 
598
+         fi; \
 
599
+       else \
 
600
+         mv $(TARGET_SUBDIR)/libgnatprj/multilib.tmp $(TARGET_SUBDIR)/libgnatprj/multilib.out; \
 
601
+       fi; \
 
602
+       test ! -f $(TARGET_SUBDIR)/libgnatprj/Makefile || exit 0; \
 
603
+       $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgnatprj ; \
 
604
+       $(NORMAL_TARGET_EXPORTS)  \
 
605
+       echo Configuring in $(TARGET_SUBDIR)/libgnatprj; \
 
606
+       cd "$(TARGET_SUBDIR)/libgnatprj" || exit 1; \
 
607
+       case $(srcdir) in \
 
608
+         /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
 
609
+         *) topdir=`echo $(TARGET_SUBDIR)/libgnatprj/ | \
 
610
+               sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 
611
+       esac; \
 
612
+       module_srcdir=libgnatprj; \
 
613
+       rm -f no-such-file || : ; \
 
614
+       CONFIG_SITE=no-such-file $(SHELL) \
 
615
+         $$s/$$module_srcdir/configure \
 
616
+         --srcdir=$${topdir}/$$module_srcdir \
 
617
+         $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
 
618
+         --target=${target_alias}  \
 
619
+         || exit 1
 
620
+@endif target-libgnatprj
 
621
+
 
622
+
 
623
+
 
624
+
 
625
+
 
626
+.PHONY: all-target-libgnatprj maybe-all-target-libgnatprj
 
627
+maybe-all-target-libgnatprj:
 
628
+@if gcc-bootstrap
 
629
+all-target-libgnatprj: stage_current
 
630
+@endif gcc-bootstrap
 
631
+@if target-libgnatprj
 
632
+TARGET-target-libgnatprj=all
 
633
+maybe-all-target-libgnatprj: all-target-libgnatprj
 
634
+all-target-libgnatprj: configure-target-libgnatprj
 
635
+       @: $(MAKE); $(unstage)
 
636
+       @r=`${PWD_COMMAND}`; export r; \
 
637
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
638
+       $(NORMAL_TARGET_EXPORTS)  \
 
639
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
640
+         $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)   \
 
641
+               $(TARGET-target-libgnatprj))
 
642
+@endif target-libgnatprj
 
643
+
 
644
+
 
645
+
 
646
+
 
647
+
 
648
+.PHONY: check-target-libgnatprj maybe-check-target-libgnatprj
 
649
+maybe-check-target-libgnatprj:
 
650
+@if target-libgnatprj
 
651
+maybe-check-target-libgnatprj: check-target-libgnatprj
 
652
+
 
653
+# Dummy target for uncheckable module.
 
654
+check-target-libgnatprj:
 
655
+
 
656
+@endif target-libgnatprj
 
657
+
 
658
+.PHONY: install-target-libgnatprj maybe-install-target-libgnatprj
 
659
+maybe-install-target-libgnatprj:
 
660
+@if target-libgnatprj
 
661
+maybe-install-target-libgnatprj: install-target-libgnatprj
 
662
+
 
663
+install-target-libgnatprj: installdirs
 
664
+       @: $(MAKE); $(unstage)
 
665
+       @r=`${PWD_COMMAND}`; export r; \
 
666
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
667
+       $(NORMAL_TARGET_EXPORTS) \
 
668
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
669
+         $(MAKE) $(TARGET_FLAGS_TO_PASS)  install)
 
670
+
 
671
+@endif target-libgnatprj
 
672
+
 
673
+.PHONY: install-strip-target-libgnatprj maybe-install-strip-target-libgnatprj
 
674
+maybe-install-strip-target-libgnatprj:
 
675
+@if target-libgnatprj
 
676
+maybe-install-strip-target-libgnatprj: install-strip-target-libgnatprj
 
677
+
 
678
+install-strip-target-libgnatprj: installdirs
 
679
+       @: $(MAKE); $(unstage)
 
680
+       @r=`${PWD_COMMAND}`; export r; \
 
681
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
682
+       $(NORMAL_TARGET_EXPORTS) \
 
683
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
684
+         $(MAKE) $(TARGET_FLAGS_TO_PASS)  install-strip)
 
685
+
 
686
+@endif target-libgnatprj
 
687
+
 
688
+# Other targets (info, dvi, pdf, etc.)
 
689
+
 
690
+.PHONY: maybe-info-target-libgnatprj info-target-libgnatprj
 
691
+maybe-info-target-libgnatprj:
 
692
+@if target-libgnatprj
 
693
+maybe-info-target-libgnatprj: info-target-libgnatprj
 
694
+
 
695
+# libgnatprj doesn't support info.
 
696
+info-target-libgnatprj:
 
697
+
 
698
+@endif target-libgnatprj
 
699
+
 
700
+.PHONY: maybe-dvi-target-libgnatprj dvi-target-libgnatprj
 
701
+maybe-dvi-target-libgnatprj:
 
702
+@if target-libgnatprj
 
703
+maybe-dvi-target-libgnatprj: dvi-target-libgnatprj
 
704
+
 
705
+# libgnatprj doesn't support dvi.
 
706
+dvi-target-libgnatprj:
 
707
+
 
708
+@endif target-libgnatprj
 
709
+
 
710
+.PHONY: maybe-pdf-target-libgnatprj pdf-target-libgnatprj
 
711
+maybe-pdf-target-libgnatprj:
 
712
+@if target-libgnatprj
 
713
+maybe-pdf-target-libgnatprj: pdf-target-libgnatprj
 
714
+
 
715
+pdf-target-libgnatprj: \
 
716
+    configure-target-libgnatprj 
 
717
+       @: $(MAKE); $(unstage)
 
718
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
719
+       r=`${PWD_COMMAND}`; export r; \
 
720
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
721
+       $(NORMAL_TARGET_EXPORTS) \
 
722
+       echo "Doing pdf in $(TARGET_SUBDIR)/libgnatprj" ; \
 
723
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
724
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
725
+       done; \
 
726
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
727
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
728
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
729
+                 "RANLIB=$${RANLIB}" \
 
730
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
731
+                  pdf) \
 
732
+         || exit 1
 
733
+
 
734
+@endif target-libgnatprj
 
735
+
 
736
+.PHONY: maybe-html-target-libgnatprj html-target-libgnatprj
 
737
+maybe-html-target-libgnatprj:
 
738
+@if target-libgnatprj
 
739
+maybe-html-target-libgnatprj: html-target-libgnatprj
 
740
+
 
741
+# libgnatprj doesn't support html.
 
742
+html-target-libgnatprj:
 
743
+
 
744
+@endif target-libgnatprj
 
745
+
 
746
+.PHONY: maybe-TAGS-target-libgnatprj TAGS-target-libgnatprj
 
747
+maybe-TAGS-target-libgnatprj:
 
748
+@if target-libgnatprj
 
749
+maybe-TAGS-target-libgnatprj: TAGS-target-libgnatprj
 
750
+
 
751
+# libgnatprj doesn't support TAGS.
 
752
+TAGS-target-libgnatprj:
 
753
+
 
754
+@endif target-libgnatprj
 
755
+
 
756
+.PHONY: maybe-install-info-target-libgnatprj install-info-target-libgnatprj
 
757
+maybe-install-info-target-libgnatprj:
 
758
+@if target-libgnatprj
 
759
+maybe-install-info-target-libgnatprj: install-info-target-libgnatprj
 
760
+
 
761
+# libgnatprj doesn't support install-info.
 
762
+install-info-target-libgnatprj:
 
763
+
 
764
+@endif target-libgnatprj
 
765
+
 
766
+.PHONY: maybe-install-pdf-target-libgnatprj install-pdf-target-libgnatprj
 
767
+maybe-install-pdf-target-libgnatprj:
 
768
+@if target-libgnatprj
 
769
+maybe-install-pdf-target-libgnatprj: install-pdf-target-libgnatprj
 
770
+
 
771
+install-pdf-target-libgnatprj: \
 
772
+    configure-target-libgnatprj \
 
773
+    pdf-target-libgnatprj 
 
774
+       @: $(MAKE); $(unstage)
 
775
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
776
+       r=`${PWD_COMMAND}`; export r; \
 
777
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
778
+       $(NORMAL_TARGET_EXPORTS) \
 
779
+       echo "Doing install-pdf in $(TARGET_SUBDIR)/libgnatprj" ; \
 
780
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
781
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
782
+       done; \
 
783
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
784
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
785
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
786
+                 "RANLIB=$${RANLIB}" \
 
787
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
788
+                  install-pdf) \
 
789
+         || exit 1
 
790
+
 
791
+@endif target-libgnatprj
 
792
+
 
793
+.PHONY: maybe-install-html-target-libgnatprj install-html-target-libgnatprj
 
794
+maybe-install-html-target-libgnatprj:
 
795
+@if target-libgnatprj
 
796
+maybe-install-html-target-libgnatprj: install-html-target-libgnatprj
 
797
+
 
798
+install-html-target-libgnatprj: \
 
799
+    configure-target-libgnatprj \
 
800
+    html-target-libgnatprj 
 
801
+       @: $(MAKE); $(unstage)
 
802
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
803
+       r=`${PWD_COMMAND}`; export r; \
 
804
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
805
+       $(NORMAL_TARGET_EXPORTS) \
 
806
+       echo "Doing install-html in $(TARGET_SUBDIR)/libgnatprj" ; \
 
807
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
808
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
809
+       done; \
 
810
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
811
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
812
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
813
+                 "RANLIB=$${RANLIB}" \
 
814
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
815
+                  install-html) \
 
816
+         || exit 1
 
817
+
 
818
+@endif target-libgnatprj
 
819
+
 
820
+.PHONY: maybe-installcheck-target-libgnatprj installcheck-target-libgnatprj
 
821
+maybe-installcheck-target-libgnatprj:
 
822
+@if target-libgnatprj
 
823
+maybe-installcheck-target-libgnatprj: installcheck-target-libgnatprj
 
824
+
 
825
+# libgnatprj doesn't support installcheck.
 
826
+installcheck-target-libgnatprj:
 
827
+
 
828
+@endif target-libgnatprj
 
829
+
 
830
+.PHONY: maybe-mostlyclean-target-libgnatprj mostlyclean-target-libgnatprj
 
831
+maybe-mostlyclean-target-libgnatprj:
 
832
+@if target-libgnatprj
 
833
+maybe-mostlyclean-target-libgnatprj: mostlyclean-target-libgnatprj
 
834
+
 
835
+mostlyclean-target-libgnatprj: 
 
836
+       @: $(MAKE); $(unstage)
 
837
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
838
+       r=`${PWD_COMMAND}`; export r; \
 
839
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
840
+       $(NORMAL_TARGET_EXPORTS) \
 
841
+       echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgnatprj" ; \
 
842
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
843
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
844
+       done; \
 
845
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
846
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
847
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
848
+                 "RANLIB=$${RANLIB}" \
 
849
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
850
+                  mostlyclean) \
 
851
+         || exit 1
 
852
+
 
853
+@endif target-libgnatprj
 
854
+
 
855
+.PHONY: maybe-clean-target-libgnatprj clean-target-libgnatprj
 
856
+maybe-clean-target-libgnatprj:
 
857
+@if target-libgnatprj
 
858
+maybe-clean-target-libgnatprj: clean-target-libgnatprj
 
859
+
 
860
+clean-target-libgnatprj: 
 
861
+       @: $(MAKE); $(unstage)
 
862
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
863
+       r=`${PWD_COMMAND}`; export r; \
 
864
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
865
+       $(NORMAL_TARGET_EXPORTS) \
 
866
+       echo "Doing clean in $(TARGET_SUBDIR)/libgnatprj" ; \
 
867
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
868
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
869
+       done; \
 
870
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
871
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
872
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
873
+                 "RANLIB=$${RANLIB}" \
 
874
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
875
+                  clean) \
 
876
+         || exit 1
 
877
+
 
878
+@endif target-libgnatprj
 
879
+
 
880
+.PHONY: maybe-distclean-target-libgnatprj distclean-target-libgnatprj
 
881
+maybe-distclean-target-libgnatprj:
 
882
+@if target-libgnatprj
 
883
+maybe-distclean-target-libgnatprj: distclean-target-libgnatprj
 
884
+
 
885
+distclean-target-libgnatprj: 
 
886
+       @: $(MAKE); $(unstage)
 
887
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
888
+       r=`${PWD_COMMAND}`; export r; \
 
889
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
890
+       $(NORMAL_TARGET_EXPORTS) \
 
891
+       echo "Doing distclean in $(TARGET_SUBDIR)/libgnatprj" ; \
 
892
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
893
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
894
+       done; \
 
895
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
896
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
897
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
898
+                 "RANLIB=$${RANLIB}" \
 
899
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
900
+                  distclean) \
 
901
+         || exit 1
 
902
+
 
903
+@endif target-libgnatprj
 
904
+
 
905
+.PHONY: maybe-maintainer-clean-target-libgnatprj maintainer-clean-target-libgnatprj
 
906
+maybe-maintainer-clean-target-libgnatprj:
 
907
+@if target-libgnatprj
 
908
+maybe-maintainer-clean-target-libgnatprj: maintainer-clean-target-libgnatprj
 
909
+
 
910
+maintainer-clean-target-libgnatprj: 
 
911
+       @: $(MAKE); $(unstage)
 
912
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
913
+       r=`${PWD_COMMAND}`; export r; \
 
914
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
915
+       $(NORMAL_TARGET_EXPORTS) \
 
916
+       echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgnatprj" ; \
 
917
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
918
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
919
+       done; \
 
920
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
921
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
922
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
923
+                 "RANLIB=$${RANLIB}" \
 
924
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
925
+                  maintainer-clean) \
 
926
+         || exit 1
 
927
+
 
928
+@endif target-libgnatprj
 
929
+
 
930
+
 
931
+
 
932
+
 
933
+
 
934
 .PHONY: configure-target-libgomp maybe-configure-target-libgomp
 
935
 maybe-configure-target-libgomp:
 
936
 @if gcc-bootstrap
 
937
@@ -50645,6 +51019,7 @@ configure-target-boehm-gc: stage_last
 
938
 configure-target-rda: stage_last
 
939
 configure-target-libada: stage_last
 
940
 configure-target-libgnatvsn: stage_last
 
941
+configure-target-libgnatprj: stage_last
 
942
 configure-stage1-target-libgomp: maybe-all-stage1-gcc
 
943
 configure-stage2-target-libgomp: maybe-all-stage2-gcc
 
944
 configure-stage3-target-libgomp: maybe-all-stage3-gcc
 
945
@@ -50686,6 +51061,7 @@ configure-target-boehm-gc: maybe-all-gcc
 
946
 configure-target-rda: maybe-all-gcc
 
947
 configure-target-libada: maybe-all-gcc
 
948
 configure-target-libgnatvsn: maybe-all-gcc
 
949
+configure-target-libgnatprj: maybe-all-gcc
 
950
 configure-target-libgomp: maybe-all-gcc
 
951
 configure-target-libitm: maybe-all-gcc
 
952
 configure-target-libatomic: maybe-all-gcc
 
953
@@ -51028,8 +51404,12 @@ all-stagefeedback-fixincludes: maybe-all
 
954
 all-target-libada: maybe-all-gcc
 
955
 all-gnattools: maybe-all-target-libada
 
956
 all-gnattools: maybe-all-target-libgnatvsn
 
957
+all-gnattools: maybe-all-target-libgnatprj
 
958
 all-target-libgnatvsn: maybe-all-target-libada
 
959
+all-target-libgnatprj: maybe-all-target-libgnatvsn
 
960
+all-target-libgnatprj: maybe-all-target-libiberty
 
961
 all-gnattools: maybe-all-target-libstdc++-v3
 
962
+all-target-libgnatvsn: maybe-all-target-libstdc++-v3
 
963
 all-lto-plugin: maybe-all-libiberty
 
964
 
 
965
 all-stage1-lto-plugin: maybe-all-stage1-libiberty
 
966
@@ -51618,6 +51998,7 @@ configure-target-boehm-gc: maybe-all-tar
 
967
 configure-target-rda: maybe-all-target-libgcc
 
968
 configure-target-libada: maybe-all-target-libgcc
 
969
 configure-target-libgnatvsn: maybe-all-target-libgcc
 
970
+configure-target-libgnatprj: maybe-all-target-libgcc
 
971
 configure-target-libgomp: maybe-all-target-libgcc
 
972
 configure-target-libitm: maybe-all-target-libgcc
 
973
 configure-target-libatomic: maybe-all-target-libgcc
 
974
@@ -51673,6 +52054,8 @@ configure-target-libada: maybe-all-targe
 
975
 
 
976
 configure-target-libgnatvsn: maybe-all-target-newlib maybe-all-target-libgloss
 
977
 
 
978
+configure-target-libgnatprj: maybe-all-target-newlib maybe-all-target-libgloss
 
979
+
 
980
 configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
 
981
 
 
982
 configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss