~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/63/63b39c8b245ea91c817547122a641d05a0f84c02.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

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
@@ -36,8 +36,8 @@
 
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/gnattools/Makefile.in
 
27
===================================================================
 
28
--- a/src/gnattools/Makefile.in
 
29
+++ b/src/gnattools/Makefile.in
 
30
@@ -36,13 +36,13 @@
 
31
 target_noncanonical=@target_noncanonical@
 
32
 
 
33
 CFLAGS=-O2 -Wall
 
34
-INCLUDES = -I@srcdir@/../gcc/ada -I@srcdir@/../gcc
 
35
 ADA_CFLAGS=-O2 -gnatn
 
36
-ADA_INCLUDES=-nostdinc -I- -I. -I../gcc/ada/rts -I../libgnatvsn
 
37
+ADA_INCLUDES=-nostdinc -I- -I. -I../gcc/ada/rts -I../libgnatvsn -I../libgnatprj
 
38
 LIB_VERSION=$(strip $(shell grep ' Library_Version :' \
 
39
               ../libgnatvsn/gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
 
40
 ADA_LIBS := -L../gcc/ada/rts -lgnat-$(LIB_VERSION)
 
41
 ADA_LIBS += -L../libgnatvsn -lgnatvsn
 
42
+ADA_LIBS += -L../libgnatprj -lgnatprj
 
43
 
 
44
 # We will use the just-built compiler to compile and link everything.
 
45
 GCC=../gcc/xgcc -B../gcc/
 
46
@@ -67,74 +67,18 @@
 
47
 
 
48
 # Since we don't have gnatmake, we must specify the full list of
 
49
 # object files necessary to build gnatmake and gnatlink.
 
50
-# TODO: remove from these lists the objects that are part of
 
51
-# libgnatprj.
 
52
 GNATLINK_OBJS = \
 
53
-ali.o \
 
54
-butil.o \
 
55
-fmap.o \
 
56
 gnatlink.o \
 
57
 indepsw.o \
 
58
-osint.o \
 
59
-prefix.o \
 
60
-rident.o \
 
61
-sdefault.o \
 
62
-stylesw.o \
 
63
-switch.o \
 
64
-targparm.o \
 
65
 validsw.o
 
66
 
 
67
 GNATMAKE_OBJS = \
 
68
-ali-util.o \
 
69
-ali.o \
 
70
-binderr.o \
 
71
-butil.o \
 
72
-err_vars.o \
 
73
-erroutc.o \
 
74
-errutil.o \
 
75
-fmap.o \
 
76
 fname-sf.o \
 
77
-fname-uf.o \
 
78
 gnatmake.o \
 
79
 make.o \
 
80
 makeusg.o \
 
81
-makeutl.o \
 
82
-mlib-fil.o \
 
83
 mlib-prj.o \
 
84
-mlib-tgt.o \
 
85
-mlib-tgt-specific.o \
 
86
-mlib-utl.o \
 
87
-mlib.o \
 
88
 osint-m.o \
 
89
-osint.o \
 
90
-prefix.o \
 
91
-prj-attr-pm.o \
 
92
-prj-attr.o \
 
93
-prj-com.o \
 
94
-prj-dect.o \
 
95
-prj-env.o \
 
96
-prj-err.o \
 
97
-prj-ext.o \
 
98
-prj-nmsc.o \
 
99
-prj-pars.o \
 
100
-prj-part.o \
 
101
-prj-proc.o \
 
102
-prj-strt.o \
 
103
-prj-tree.o \
 
104
-prj-util.o \
 
105
-prj.o \
 
106
-rident.o \
 
107
-scng.o \
 
108
-sdefault.o \
 
109
-sfn_scan.o \
 
110
-sinput-c.o \
 
111
-sinput-p.o \
 
112
-styleg.o \
 
113
-stylesw.o \
 
114
-switch-m.o \
 
115
-switch.o \
 
116
-targparm.o \
 
117
-tempdir.o \
 
118
 usage.o \
 
119
 validsw.o \
 
120
 $(EXTRA_GNATMAKE_OBJS)
 
121
@@ -176,11 +120,6 @@
 
122
        for file in $(BODIES) $(SPECS); do \
 
123
           $(LN_S) -f $$file .; \
 
124
        done
 
125
-       rm -f sdefault.adb; $(LN_S) ../gcc/ada/sdefault.adb .
 
126
-       $(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
 
127
-                 rm -f $(word 1,$(subst <, ,$(PAIR)));\
 
128
-                 $(LN_S) @srcdir@/../gcc/ada/$(word 2,$(subst <, ,$(PAIR))) \
 
129
-                         $(word 1,$(subst <, ,$(PAIR)));)
 
130
        touch $@
 
131
 
 
132
 gnattools-native: ../gcc/ada/rts/libgnat-$(LIB_VERSION).so
 
133
@@ -193,19 +132,16 @@
 
134
 vpath %.c @srcdir@/../gcc/ada:@srcdir@/../gcc
 
135
 vpath %.h @srcdir@/../gcc/ada
 
136
 
 
137
-# Because the just-built gcc is a host tool like us, we can use some
 
138
-# of its object files, e.g. prefix.o.
 
139
-vpath prefix.o ../gcc
 
140
-
 
141
 # gnatlink
 
142
 
 
143
-gnatlink-static: $(GNATLINK_OBJS) b_gnatl.o link.o
 
144
+gnatlink-static: $(GNATLINK_OBJS) b_gnatl.o
 
145
        $(GCC) -o $@ $^ \
 
146
+          ../libgnatprj/libgnatprj.a \
 
147
           ../libgnatvsn/libgnatvsn.a \
 
148
           ../gcc/ada/rts/libgnat.a \
 
149
           ../libiberty/libiberty.a
 
150
 
 
151
-gnatlink: $(GNATLINK_OBJS) b_gnatl.o link.o
 
152
+gnatlink: $(GNATLINK_OBJS) b_gnatl.o
 
153
        $(GCC) -o $@ $^ $(ADA_LIBS) ../libiberty/libiberty.a
 
154
 
 
155
 b_gnatl.o: b_gnatl.c adaint.h
 
156
@@ -216,13 +152,14 @@
 
157
 
 
158
 # gnatmake
 
159
 
 
160
-gnatmake-static: $(GNATMAKE_OBJS) b_gnatm.o link.o
 
161
+gnatmake-static: $(GNATMAKE_OBJS) b_gnatm.o
 
162
        $(GCC) -o $@ $(ADA_CFLAGS) $^ \
 
163
+          ../libgnatprj/libgnatprj.a \
 
164
           ../libgnatvsn/libgnatvsn.a \
 
165
           ../gcc/ada/rts/libgnat.a \
 
166
           ../libiberty/libiberty.a
 
167
 
 
168
-gnatmake: $(GNATMAKE_OBJS) b_gnatm.o link.o
 
169
+gnatmake: $(GNATMAKE_OBJS) b_gnatm.o
 
170
        $(GCC) -o $@ $(ADA_CFLAGS) $^ $(ADA_LIBS) ../libiberty/libiberty.a
 
171
 
 
172
 b_gnatm.o: b_gnatm.c adaint.h
 
173
@@ -232,19 +169,11 @@
 
174
        ../gcc/gnatbind -C -o $@ $(ADA_INCLUDES) gnatmake.ali
 
175
 
 
176
 # Other tools
 
177
-gnatkr:
 
178
-       if [ ! -f $@.adb ] ; then $(LN_S) ../../src/gcc/ada/$@.ad[bs] .; fi
 
179
-       ./gnatmake-static -c -b $@ $(ADA_CFLAGS) $(ADA_INCLUDES) \
 
180
-          --GCC="$(GCC)" \
 
181
-          --GNATBIND=../gcc/gnatbind
 
182
-       ./gnatlink-static -o $@ $@.ali $^ $(ADA_INCLUDES) $(ADA_LIBS) \
 
183
-          --GCC="$(GCC) $(ADA_INCLUDES)"
 
184
-
 
185
 gnat: gnatcmd
 
186
        cp -lp $< $@
 
187
 
 
188
-gnatbind gnatchop gnatclean gnatcmd gnatfind gnatls gnatname gnatprep gnatxref: \
 
189
-link.o prefix.o
 
190
+gnatbind gnatchop gnatclean gnatcmd gnatfind gnatkr gnatls gnatname gnatprep \
 
191
+gnatxref:
 
192
        if [ ! -f $@.adb ] ; then $(LN_S) ../../src/gcc/ada/$@.ad[bs] .; fi
 
193
        ./gnatmake-static -c -b $@ $(ADA_CFLAGS) $(ADA_INCLUDES) \
 
194
           --GCC="$(GCC)" \
 
195
@@ -253,22 +182,12 @@
 
196
           ../libiberty/libiberty.a \
 
197
           --GCC="$(GCC) $(ADA_INCLUDES)"
 
198
 
 
199
-# Force compiling sdefault.adb, not .ads, to produce sdefault.o
 
200
-sdefault.o: sdefault.adb
 
201
-
 
202
-sdefault.adb: stamp-gnattools-sources
 
203
-
 
204
 %.o: %.adb
 
205
        $(GCC) -c -o $@ $< $(ADA_CFLAGS) $(ADA_INCLUDES)
 
206
 
 
207
 %.o: %.ads
 
208
        $(GCC) -c -o $@ $< $(ADA_CFLAGS) $(ADA_INCLUDES)
 
209
 
 
210
-%.o: %.c
 
211
-       $(GCC) -c -o $@ $< $(CFLAGS) $(INCLUDES)
 
212
-
 
213
-prefix.o:
 
214
-
 
215
 # Other
 
216
 # -----
 
217
 
 
218
Index: b/src/libgnatprj/Makefile.in
 
219
===================================================================
 
220
--- /dev/null
 
221
+++ b/src/libgnatprj/Makefile.in
 
222
@@ -0,0 +1,178 @@
 
223
+# Makefile for libgnatprj.
 
224
+#   Copyright (c) 2006 Ludovic Brenta <ludovic@ludovic-brenta.org>
 
225
+#
 
226
+# This file is free software; you can redistribute it and/or modify
 
227
+# it under the terms of the GNU General Public License as published by
 
228
+# the Free Software Foundation; either version 2 of the License, or
 
229
+# (at your option) any later version.
 
230
+# 
 
231
+# This program is distributed in the hope that it will be useful,
 
232
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
233
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
234
+# GNU General Public License for more details.
 
235
+# 
 
236
+# You should have received a copy of the GNU General Public License
 
237
+# along with this program; if not, write to the Free Software
 
238
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 
239
+
 
240
+# Default target; must be first.
 
241
+all: libgnatprj
 
242
+
 
243
+.SUFFIXES:
 
244
+
 
245
+CPUS := $(shell getconf _NPROCESSORS_ONLN)
 
246
+LIB_VERSION := $(strip $(shell grep ' Library_Version :' \
 
247
+                 @srcdir@/../gcc/ada/gnatvsn.ads | \
 
248
+                sed -e 's/.*"\(.*\)".*/\1/'))
 
249
+GCC:=../gcc/xgcc -B../gcc/
 
250
+LIBGNAT_JUST_BUILT := -nostdinc -I../gcc/ada/rts
 
251
+LIBGNATVSN := -I../libgnatvsn
 
252
+CFLAGS := -g -O2
 
253
+ADAFLAGS := -g -O2 -gnatn
 
254
+BASEVER := $(shell cat @srcdir@/../gcc/BASE-VER)
 
255
+DEVPHASE := $(shell cat @srcdir@/../gcc/DEV-PHASE)
 
256
+DATESTAMP := $(shell cat @srcdir@/../gcc/DATESTAMP)
 
257
+TOOLS_TARGET_PAIRS := @TOOLS_TARGET_PAIRS@
 
258
+LN_S := @LN_S@
 
259
+
 
260
+ifneq (@build@,@host@)
 
261
+   CFLAGS += -b @host@
 
262
+endif
 
263
+
 
264
+.PHONY: libgnatprj install
 
265
+libgnatprj: libgnatprj.so.$(LIB_VERSION) libgnatprj.a
 
266
+
 
267
+# Here we list one file per Ada unit: the body file if the unit has a
 
268
+# body, the spec file otherwise.
 
269
+PRJ_SOURCES := ali.adb ali-util.adb butil.adb binderr.adb errout.adb \
 
270
+erroutc.adb errutil.adb err_vars.ads fname-uf.adb fmap.adb impunit.adb \
 
271
+lib-util.adb makeutl.adb mlib.adb mlib-fil.adb mlib-tgt.adb \
 
272
+mlib-tgt-specific.adb mlib-utl.adb osint.adb osint-c.adb prj.adb prj-attr.adb \
 
273
+prj-attr-pm.adb prj-com.ads prj-conf.adb prj-dect.adb prj-env.adb prj-err.adb \
 
274
+prj-ext.adb prj-nmsc.adb prj-pars.adb prj-part.adb prj-pp.adb prj-proc.adb \
 
275
+prj-strt.adb prj-tree.adb prj-util.adb rident.ads scng.adb sfn_scan.adb \
 
276
+sinfo-cn.adb sinput-c.adb sinput-p.adb style.adb styleg.adb stylesw.adb \
 
277
+switch.adb switch-m.adb targparm.adb tempdir.adb
 
278
+
 
279
+# Source files generated in build/gcc/ada, not src/gcc/ada.
 
280
+GENERATED_SOURCES := sdefault.adb
 
281
+
 
282
+SOURCES := $(PRJ_SOURCES) $(GENERATED_SOURCES)
 
283
+
 
284
+OBJECTS := $(patsubst %.ads,%.o,$(SOURCES:.adb=.o))
 
285
+
 
286
+# Add some object files compiled from C sources.  prefix.o requires
 
287
+# some objects from libiberty.
 
288
+OBJECTS += concat.o link.o prefix.o xexit.o xmalloc.o xstrdup.o
 
289
+
 
290
+vpath %.c @srcdir@/../gcc/ada
 
291
+
 
292
+libgnatprj.so.$(LIB_VERSION): $(addprefix obj-shared/,$(OBJECTS))
 
293
+       : # Make libgnatprj.so
 
294
+       $(GCC) -o $@ -shared -fPIC -Wl,--soname,$@ $^ \
 
295
+          -L../gcc/ada/rts -lgnat-$(LIB_VERSION) \
 
296
+          -L../libgnatvsn -lgnatvsn
 
297
+       $(LN_S) -f libgnatprj.so.$(LIB_VERSION) libgnatprj.so
 
298
+       chmod a=r obj-shared/*.ali
 
299
+# Make the .ali files, but not the .o files, visible to the gnat tools.
 
300
+       cp -lp obj-shared/*.ali .
 
301
+
 
302
+$(addprefix obj-shared/,$(OBJECTS)): | stamp-libgnatprj-sources obj-shared
 
303
+
 
304
+obj-shared/%.o: %.adb
 
305
+       $(GCC) -c -fPIC $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
 
306
+
 
307
+obj-shared/%.o: %.ads
 
308
+       $(GCC) -c -fPIC $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
 
309
+
 
310
+obj-shared/%.o: %.c
 
311
+       $(GCC) -c -fPIC $(CFLAGS) -I@srcdir@/../gcc $< -o $@
 
312
+
 
313
+obj-shared/prefix.o: @srcdir@/../gcc/prefix.c
 
314
+       $(GCC) -c -fPIC $(CFLAGS) -DPREFIX=\"@prefix@\" -DBASEVER=\"$(BASEVER)\" \
 
315
+          -I@srcdir@/../gcc -I@srcdir@/../include -I../gcc -I../libiberty \
 
316
+          $< -o $@
 
317
+
 
318
+obj-shared/%.o: @srcdir@/../libiberty/%.c
 
319
+       $(GCC) -c -fPIC $(CFLAGS) \
 
320
+          -I@srcdir@/../libiberty -I@srcdir@/../include $< -o $@
 
321
+
 
322
+obj-shared:
 
323
+       -mkdir $@
 
324
+
 
325
+libgnatprj.a: $(addprefix obj-static/,$(OBJECTS))
 
326
+       : # Make libgnatprj.a
 
327
+       ar rc $@ $^
 
328
+       ranlib $@
 
329
+
 
330
+$(addprefix obj-static/,$(OBJECTS)): | stamp-libgnatprj-sources obj-static
 
331
+
 
332
+obj-static/%.o: %.adb
 
333
+       $(GCC) -c $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
 
334
+
 
335
+obj-static/%.o: %.ads
 
336
+       $(GCC) -c $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
 
337
+
 
338
+obj-static/%.o: %.c
 
339
+       $(GCC) -c $(CFLAGS) -I@srcdir@/../gcc $< -o $@
 
340
+
 
341
+obj-static/prefix.o: @srcdir@/../gcc/prefix.c
 
342
+       $(GCC) -c $(CFLAGS) -DPREFIX=\"@prefix@\" -DBASEVER=\"$(BASEVER)\" \
 
343
+          -I@srcdir@/../gcc -I@srcdir@/../include -I../gcc -I../libiberty \
 
344
+          $< -o $@
 
345
+
 
346
+obj-static/%.o: @srcdir@/../libiberty/%.c
 
347
+       $(GCC) -c -fPIC $(CFLAGS) \
 
348
+          -I@srcdir@/../libiberty -I@srcdir@/../include $< -o $@
 
349
+
 
350
+obj-static:
 
351
+       -mkdir $@
 
352
+
 
353
+$(SOURCES): stamp-libgnatprj-sources
 
354
+
 
355
+stamp-libgnatprj-sources:
 
356
+       for file in $(PRJ_SOURCES); do \
 
357
+          ads=$$(echo $$file | sed 's/\.adb/.ads/'); \
 
358
+          if [ -f @srcdir@/../gcc/ada/$$file -a ! -L $$file ] ; then $(LN_S) @srcdir@/../gcc/ada/$$file .; fi; \
 
359
+          if [ -f @srcdir@/../gcc/ada/$$ads -a ! -L $$ads ] ; then $(LN_S) @srcdir@/../gcc/ada/$$ads .; fi; \
 
360
+       done
 
361
+       for file in $(GENERATED_SOURCES); do \
 
362
+          ads=$$(echo $$file | sed 's/\.adb/.ads/'); \
 
363
+          if [ -f ../gcc/ada/$$file -a ! -L $$file ] ; then $(LN_S) ../gcc/ada/$$file .; fi; \
 
364
+          if [ -f ../gcc/ada/$$ads -a ! -L $$ads ] ; then $(LN_S) ../gcc/ada/$$ads .; \
 
365
+          else \
 
366
+             if [ -f @srcdir@/../gcc/ada/$$ads -a ! -L $$ads ] ; then $(LN_S) @srcdir@/../gcc/ada/$$ads .; fi; \
 
367
+          fi; \
 
368
+       done
 
369
+       $(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
 
370
+                 rm -f $(word 1,$(subst <, ,$(PAIR)));\
 
371
+                 $(LN_S) @srcdir@/../gcc/ada/$(word 2,$(subst <, ,$(PAIR))) \
 
372
+                         $(word 1,$(subst <, ,$(PAIR)));)
 
373
+       touch $@
 
374
+
 
375
+# Generate a list of source files (.ads and .adb) to install.  Almost
 
376
+# all of them are in src/gcc/ada, but some are generated during build
 
377
+# and are in build/gcc/ada.
 
378
+BODIES := $(filter %.adb,$(PRJ_SOURCES))
 
379
+SPECS := $(filter %.ads,$(PRJ_SOURCES)) $(patsubst %.adb,%.ads,$(BODIES) $(GENERATED_SOURCES))
 
380
+SOURCES_TO_INSTALL := \
 
381
+$(addprefix  @srcdir@/../gcc/ada/,$(SPECS) $(BODIES)) \
 
382
+$(addprefix ../gcc/ada/,$(GENERATED_SOURCES))
 
383
+
 
384
+libdir = @libdir@
 
385
+
 
386
+install: libgnatprj
 
387
+       $(INSTALL_DATA) libgnatprj.a $(DESTDIR)$(libdir)
 
388
+       $(INSTALL_DATA) libgnatprj.so.$(LIB_VERSION) $(DESTDIR)$(libdir)
 
389
+       cd $(DESTDIR)$(libdir); ln -sf libgnatprj.so.$(LIB_VERSION) libgnatprj.so
 
390
+       mkdir -p $(DESTDIR)$(prefix)/share/ada/adainclude/gnatprj
 
391
+       $(INSTALL_DATA) $(SOURCES_TO_INSTALL) \
 
392
+          $(DESTDIR)$(prefix)/share/ada/adainclude/gnatprj
 
393
+       mkdir -p $(DESTDIR)$(prefix)/lib/ada/adalib/gnatprj
 
394
+       $(INSTALL) -m 0444 obj-shared/*.ali \
 
395
+          $(DESTDIR)$(prefix)/lib/ada/adalib/gnatprj
 
396
+       chmod a=r $(DESTDIR)$(prefix)/lib/ada/adalib/gnatprj/*.ali
 
397
+
 
398
+.PHONY: clean
 
399
+clean:
 
400
+       rm -rf *.ali obj-static obj-shared libgnatprj* *.adb *.ads stamp*
 
401
Index: b/src/Makefile.def
 
402
===================================================================
 
403
--- a/src/Makefile.def
 
404
+++ b/src/Makefile.def
 
405
@@ -158,6 +158,13 @@
 
406
                missing= TAGS;
 
407
                missing= install-info;
 
408
                missing= installcheck; };
 
409
+host_modules= { module= libgnatprj; no_check=true;
 
410
+               missing= info;
 
411
+               missing= dvi;
 
412
+               missing= html;
 
413
+               missing= TAGS;
 
414
+               missing= install-info;
 
415
+               missing= installcheck; };
 
416
 host_modules= { module= gnattools; no_check=true;
 
417
                missing= info;
 
418
                missing= dvi;
 
419
@@ -210,6 +217,13 @@
 
420
                   missing= TAGS;
 
421
                   missing= install-info;
 
422
                   missing= installcheck; };
 
423
+target_modules = { module= libgnatprj; no_check=true;
 
424
+                  missing= info;
 
425
+                  missing= dvi;
 
426
+                  missing= html;
 
427
+                  missing= TAGS;
 
428
+                  missing= install-info;
 
429
+                  missing= installcheck; };
 
430
 target_modules = { module= libgomp; bootstrap= true; lib_path=.libs; };
 
431
 
 
432
 // These are (some of) the make targets to be done in each subdirectory.
 
433
@@ -397,7 +411,10 @@
 
434
 
 
435
 dependencies = { module=all-gnattools; on=all-libada; };
 
436
 dependencies = { module=all-gnattools; on=all-libgnatvsn; };
 
437
+dependencies = { module=all-gnattools; on=all-libgnatprj; };
 
438
 dependencies = { module=all-libgnatvsn; on=all-libada; };
 
439
+dependencies = { module=all-libgnatprj; on=all-libada; };
 
440
+dependencies = { module=all-libgnatprj; on=all-libgnatvsn; };
 
441
 
 
442
 dependencies = { module=all-lto-plugin; on=all-libiberty; };
 
443
 
 
444
Index: b/src/Makefile.in
 
445
===================================================================
 
446
--- a/src/Makefile.in
 
447
+++ b/src/Makefile.in
 
448
@@ -952,6 +952,7 @@
 
449
     maybe-configure-utils \
 
450
     maybe-configure-libada \
 
451
     maybe-configure-libgnatvsn \
 
452
+    maybe-configure-libgnatprj \
 
453
     maybe-configure-gnattools \
 
454
     maybe-configure-lto-plugin
 
455
 .PHONY: configure-target
 
456
@@ -979,6 +980,7 @@
 
457
     maybe-configure-target-rda \
 
458
     maybe-configure-target-libada \
 
459
     maybe-configure-target-libgnatvsn \
 
460
+    maybe-configure-target-libgnatprj \
 
461
     maybe-configure-target-libgomp
 
462
 
 
463
 # The target built for a native non-bootstrap build.
 
464
@@ -1132,6 +1134,7 @@
 
465
 all-host: maybe-all-utils
 
466
 all-host: maybe-all-libada
 
467
 all-host: maybe-all-libgnatvsn
 
468
+all-host: maybe-all-libgnatprj
 
469
 all-host: maybe-all-gnattools
 
470
 @if lto-plugin-no-bootstrap
 
471
 all-host: maybe-all-lto-plugin
 
472
@@ -1166,6 +1169,7 @@
 
473
 all-target: maybe-all-target-rda
 
474
 all-target: maybe-all-target-libada
 
475
 all-target: maybe-all-target-libgnatvsn
 
476
+all-target: maybe-all-target-libgnatprj
 
477
 @if target-libgomp-no-bootstrap
 
478
 all-target: maybe-all-target-libgomp
 
479
 @endif target-libgomp-no-bootstrap
 
480
@@ -1264,6 +1268,7 @@
 
481
 info-host: maybe-info-utils
 
482
 info-host: maybe-info-libada
 
483
 info-host: maybe-info-libgnatvsn
 
484
+info-host: maybe-info-libgnatprj
 
485
 info-host: maybe-info-gnattools
 
486
 info-host: maybe-info-lto-plugin
 
487
 
 
488
@@ -1292,6 +1297,7 @@
 
489
 info-target: maybe-info-target-rda
 
490
 info-target: maybe-info-target-libada
 
491
 info-target: maybe-info-target-libgnatvsn
 
492
+info-target: maybe-info-target-libgnatprj
 
493
 info-target: maybe-info-target-libgomp
 
494
 
 
495
 .PHONY: do-dvi
 
496
@@ -1383,6 +1389,7 @@
 
497
 dvi-host: maybe-dvi-utils
 
498
 dvi-host: maybe-dvi-libada
 
499
 dvi-host: maybe-dvi-libgnatvsn
 
500
+dvi-host: maybe-dvi-libgnatprj
 
501
 dvi-host: maybe-dvi-gnattools
 
502
 dvi-host: maybe-dvi-lto-plugin
 
503
 
 
504
@@ -1411,6 +1418,7 @@
 
505
 dvi-target: maybe-dvi-target-rda
 
506
 dvi-target: maybe-dvi-target-libada
 
507
 dvi-target: maybe-dvi-target-libgnatvsn
 
508
+dvi-target: maybe-dvi-target-libgnatprj
 
509
 dvi-target: maybe-dvi-target-libgomp
 
510
 
 
511
 .PHONY: do-pdf
 
512
@@ -1502,6 +1510,7 @@
 
513
 pdf-host: maybe-pdf-utils
 
514
 pdf-host: maybe-pdf-libada
 
515
 pdf-host: maybe-pdf-libgnatvsn
 
516
+pdf-host: maybe-pdf-libgnatprj
 
517
 pdf-host: maybe-pdf-gnattools
 
518
 pdf-host: maybe-pdf-lto-plugin
 
519
 
 
520
@@ -1530,6 +1539,7 @@
 
521
 pdf-target: maybe-pdf-target-rda
 
522
 pdf-target: maybe-pdf-target-libada
 
523
 pdf-target: maybe-pdf-target-libgnatvsn
 
524
+pdf-target: maybe-pdf-target-libgnatprj
 
525
 pdf-target: maybe-pdf-target-libgomp
 
526
 
 
527
 .PHONY: do-html
 
528
@@ -1621,6 +1631,7 @@
 
529
 html-host: maybe-html-utils
 
530
 html-host: maybe-html-libada
 
531
 html-host: maybe-html-libgnatvsn
 
532
+html-host: maybe-html-libgnatprj
 
533
 html-host: maybe-html-gnattools
 
534
 html-host: maybe-html-lto-plugin
 
535
 
 
536
@@ -1649,6 +1660,7 @@
 
537
 html-target: maybe-html-target-rda
 
538
 html-target: maybe-html-target-libada
 
539
 html-target: maybe-html-target-libgnatvsn
 
540
+html-target: maybe-html-target-libgnatprj
 
541
 html-target: maybe-html-target-libgomp
 
542
 
 
543
 .PHONY: do-TAGS
 
544
@@ -1740,6 +1752,7 @@
 
545
 TAGS-host: maybe-TAGS-utils
 
546
 TAGS-host: maybe-TAGS-libada
 
547
 TAGS-host: maybe-TAGS-libgnatvsn
 
548
+TAGS-host: maybe-TAGS-libgnatprj
 
549
 TAGS-host: maybe-TAGS-gnattools
 
550
 TAGS-host: maybe-TAGS-lto-plugin
 
551
 
 
552
@@ -1768,6 +1781,7 @@
 
553
 TAGS-target: maybe-TAGS-target-rda
 
554
 TAGS-target: maybe-TAGS-target-libada
 
555
 TAGS-target: maybe-TAGS-target-libgnatvsn
 
556
+TAGS-target: maybe-TAGS-target-libgnatprj
 
557
 TAGS-target: maybe-TAGS-target-libgomp
 
558
 
 
559
 .PHONY: do-install-info
 
560
@@ -1859,6 +1873,7 @@
 
561
 install-info-host: maybe-install-info-utils
 
562
 install-info-host: maybe-install-info-libada
 
563
 install-info-host: maybe-install-info-libgnatvsn
 
564
+install-info-host: maybe-install-info-libgnatprj
 
565
 install-info-host: maybe-install-info-gnattools
 
566
 install-info-host: maybe-install-info-lto-plugin
 
567
 
 
568
@@ -1887,6 +1902,7 @@
 
569
 install-info-target: maybe-install-info-target-rda
 
570
 install-info-target: maybe-install-info-target-libada
 
571
 install-info-target: maybe-install-info-target-libgnatvsn
 
572
+install-info-target: maybe-install-info-target-libgnatprj
 
573
 install-info-target: maybe-install-info-target-libgomp
 
574
 
 
575
 .PHONY: do-install-pdf
 
576
@@ -1978,6 +1994,7 @@
 
577
 install-pdf-host: maybe-install-pdf-utils
 
578
 install-pdf-host: maybe-install-pdf-libada
 
579
 install-pdf-host: maybe-install-pdf-libgnatvsn
 
580
+install-pdf-host: maybe-install-pdf-libgnatprj
 
581
 install-pdf-host: maybe-install-pdf-gnattools
 
582
 install-pdf-host: maybe-install-pdf-lto-plugin
 
583
 
 
584
@@ -2006,6 +2023,7 @@
 
585
 install-pdf-target: maybe-install-pdf-target-rda
 
586
 install-pdf-target: maybe-install-pdf-target-libada
 
587
 install-pdf-target: maybe-install-pdf-target-libgnatvsn
 
588
+install-pdf-target: maybe-install-pdf-target-libgnatprj
 
589
 install-pdf-target: maybe-install-pdf-target-libgomp
 
590
 
 
591
 .PHONY: do-install-html
 
592
@@ -2097,6 +2115,7 @@
 
593
 install-html-host: maybe-install-html-utils
 
594
 install-html-host: maybe-install-html-libada
 
595
 install-html-host: maybe-install-html-libgnatvsn
 
596
+install-html-host: maybe-install-html-libgnatprj
 
597
 install-html-host: maybe-install-html-gnattools
 
598
 install-html-host: maybe-install-html-lto-plugin
 
599
 
 
600
@@ -2125,6 +2144,7 @@
 
601
 install-html-target: maybe-install-html-target-rda
 
602
 install-html-target: maybe-install-html-target-libada
 
603
 install-html-target: maybe-install-html-target-libgnatvsn
 
604
+install-html-target: maybe-install-html-target-libgnatprj
 
605
 install-html-target: maybe-install-html-target-libgomp
 
606
 
 
607
 .PHONY: do-installcheck
 
608
@@ -2216,6 +2236,7 @@
 
609
 installcheck-host: maybe-installcheck-utils
 
610
 installcheck-host: maybe-installcheck-libada
 
611
 installcheck-host: maybe-installcheck-libgnatvsn
 
612
+installcheck-host: maybe-installcheck-libgnatprj
 
613
 installcheck-host: maybe-installcheck-gnattools
 
614
 installcheck-host: maybe-installcheck-lto-plugin
 
615
 
 
616
@@ -2244,6 +2265,7 @@
 
617
 installcheck-target: maybe-installcheck-target-rda
 
618
 installcheck-target: maybe-installcheck-target-libada
 
619
 installcheck-target: maybe-installcheck-target-libgnatvsn
 
620
+installcheck-target: maybe-installcheck-target-libgnatprj
 
621
 installcheck-target: maybe-installcheck-target-libgomp
 
622
 
 
623
 .PHONY: do-mostlyclean
 
624
@@ -2335,6 +2357,7 @@
 
625
 mostlyclean-host: maybe-mostlyclean-utils
 
626
 mostlyclean-host: maybe-mostlyclean-libada
 
627
 mostlyclean-host: maybe-mostlyclean-libgnatvsn
 
628
+mostlyclean-host: maybe-mostlyclean-libgnatprj
 
629
 mostlyclean-host: maybe-mostlyclean-gnattools
 
630
 mostlyclean-host: maybe-mostlyclean-lto-plugin
 
631
 
 
632
@@ -2363,6 +2386,7 @@
 
633
 mostlyclean-target: maybe-mostlyclean-target-rda
 
634
 mostlyclean-target: maybe-mostlyclean-target-libada
 
635
 mostlyclean-target: maybe-mostlyclean-target-libgnatvsn
 
636
+mostlyclean-target: maybe-mostlyclean-target-libgnatprj
 
637
 mostlyclean-target: maybe-mostlyclean-target-libgomp
 
638
 
 
639
 .PHONY: do-clean
 
640
@@ -2454,6 +2478,7 @@
 
641
 clean-host: maybe-clean-utils
 
642
 clean-host: maybe-clean-libada
 
643
 clean-host: maybe-clean-libgnatvsn
 
644
+clean-host: maybe-clean-libgnatprj
 
645
 clean-host: maybe-clean-gnattools
 
646
 clean-host: maybe-clean-lto-plugin
 
647
 
 
648
@@ -2482,6 +2507,7 @@
 
649
 clean-target: maybe-clean-target-rda
 
650
 clean-target: maybe-clean-target-libada
 
651
 clean-target: maybe-clean-target-libgnatvsn
 
652
+clean-target: maybe-clean-target-libgnatprj
 
653
 clean-target: maybe-clean-target-libgomp
 
654
 
 
655
 .PHONY: do-distclean
 
656
@@ -2573,6 +2599,7 @@
 
657
 distclean-host: maybe-distclean-utils
 
658
 distclean-host: maybe-distclean-libada
 
659
 distclean-host: maybe-distclean-libgnatvsn
 
660
+distclean-host: maybe-distclean-libgnatprj
 
661
 distclean-host: maybe-distclean-gnattools
 
662
 distclean-host: maybe-distclean-lto-plugin
 
663
 
 
664
@@ -2601,6 +2628,7 @@
 
665
 distclean-target: maybe-distclean-target-rda
 
666
 distclean-target: maybe-distclean-target-libada
 
667
 distclean-target: maybe-distclean-target-libgnatvsn
 
668
+distclean-target: maybe-distclean-target-libgnatprj
 
669
 distclean-target: maybe-distclean-target-libgomp
 
670
 
 
671
 .PHONY: do-maintainer-clean
 
672
@@ -2692,6 +2720,7 @@
 
673
 maintainer-clean-host: maybe-maintainer-clean-utils
 
674
 maintainer-clean-host: maybe-maintainer-clean-libada
 
675
 maintainer-clean-host: maybe-maintainer-clean-libgnatvsn
 
676
+maintainer-clean-host: maybe-maintainer-clean-libgnatprj
 
677
 maintainer-clean-host: maybe-maintainer-clean-gnattools
 
678
 maintainer-clean-host: maybe-maintainer-clean-lto-plugin
 
679
 
 
680
@@ -2720,6 +2749,7 @@
 
681
 maintainer-clean-target: maybe-maintainer-clean-target-rda
 
682
 maintainer-clean-target: maybe-maintainer-clean-target-libada
 
683
 maintainer-clean-target: maybe-maintainer-clean-target-libgnatvsn
 
684
+maintainer-clean-target: maybe-maintainer-clean-target-libgnatprj
 
685
 maintainer-clean-target: maybe-maintainer-clean-target-libgomp
 
686
 
 
687
 
 
688
@@ -2866,6 +2896,7 @@
 
689
     maybe-check-utils \
 
690
     maybe-check-libada \
 
691
     maybe-check-libgnatvsn \
 
692
+    maybe-check-libgnatprj \
 
693
     maybe-check-gnattools \
 
694
     maybe-check-lto-plugin
 
695
 
 
696
@@ -2894,6 +2925,7 @@
 
697
     maybe-check-target-rda \
 
698
     maybe-check-target-libada \
 
699
     maybe-check-target-libgnatvsn \
 
700
+    maybe-check-target-libgnatprj \
 
701
     maybe-check-target-libgomp
 
702
 
 
703
 do-check:
 
704
@@ -3011,6 +3043,7 @@
 
705
     maybe-install-utils \
 
706
     maybe-install-libada \
 
707
     maybe-install-libgnatvsn \
 
708
+    maybe-install-libgnatprj \
 
709
     maybe-install-gnattools \
 
710
     maybe-install-lto-plugin
 
711
 
 
712
@@ -3094,6 +3127,7 @@
 
713
     maybe-install-utils \
 
714
     maybe-install-libada \
 
715
     maybe-install-libgnatvsn \
 
716
+    maybe-install-libgnatprj \
 
717
     maybe-install-gnattools \
 
718
     maybe-install-lto-plugin
 
719
 
 
720
@@ -3122,6 +3156,7 @@
 
721
     maybe-install-target-rda \
 
722
     maybe-install-target-libada \
 
723
     maybe-install-target-libgnatvsn \
 
724
+    maybe-install-target-libgnatprj \
 
725
     maybe-install-target-libgomp
 
726
 
 
727
 uninstall:
 
728
@@ -3232,6 +3267,7 @@
 
729
     maybe-install-strip-utils \
 
730
     maybe-install-strip-libada \
 
731
     maybe-install-strip-libgnatvsn \
 
732
+    maybe-install-strip-libgnatprj \
 
733
     maybe-install-strip-gnattools \
 
734
     maybe-install-strip-lto-plugin
 
735
 
 
736
@@ -3260,6 +3296,7 @@
 
737
     maybe-install-strip-target-rda \
 
738
     maybe-install-strip-target-libada \
 
739
     maybe-install-strip-target-libgnatvsn \
 
740
+    maybe-install-strip-target-libgnatprj \
 
741
     maybe-install-strip-target-libgomp
 
742
 
 
743
 
 
744
@@ -45502,6 +45539,343 @@
 
745
 
 
746
 
 
747
 
 
748
+.PHONY: configure-libgnatprj maybe-configure-libgnatprj
 
749
+maybe-configure-libgnatprj:
 
750
+@if gcc-bootstrap
 
751
+configure-libgnatprj: stage_current
 
752
+@endif gcc-bootstrap
 
753
+@if libgnatprj
 
754
+maybe-configure-libgnatprj: configure-libgnatprj
 
755
+configure-libgnatprj: 
 
756
+       @: $(MAKE); $(unstage)
 
757
+       @r=`${PWD_COMMAND}`; export r; \
 
758
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
759
+       test ! -f $(HOST_SUBDIR)/libgnatprj/Makefile || exit 0; \
 
760
+       $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgnatprj ; \
 
761
+       $(HOST_EXPORTS)  \
 
762
+       echo Configuring in $(HOST_SUBDIR)/libgnatprj; \
 
763
+       cd "$(HOST_SUBDIR)/libgnatprj" || exit 1; \
 
764
+       case $(srcdir) in \
 
765
+         /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
 
766
+         *) topdir=`echo $(HOST_SUBDIR)/libgnatprj/ | \
 
767
+               sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 
768
+       esac; \
 
769
+       srcdiroption="--srcdir=$${topdir}/libgnatprj"; \
 
770
+       libsrcdir="$$s/libgnatprj"; \
 
771
+       $(SHELL) $${libsrcdir}/configure \
 
772
+         $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
 
773
+         --target=${target_alias} $${srcdiroption}  \
 
774
+         || exit 1
 
775
+@endif libgnatprj
 
776
+
 
777
+
 
778
+
 
779
+
 
780
+
 
781
+.PHONY: all-libgnatprj maybe-all-libgnatprj
 
782
+maybe-all-libgnatprj:
 
783
+@if gcc-bootstrap
 
784
+all-libgnatprj: stage_current
 
785
+@endif gcc-bootstrap
 
786
+@if libgnatprj
 
787
+TARGET-libgnatprj=all
 
788
+maybe-all-libgnatprj: all-libgnatprj
 
789
+all-libgnatprj: configure-libgnatprj
 
790
+       @: $(MAKE); $(unstage)
 
791
+       @r=`${PWD_COMMAND}`; export r; \
 
792
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
793
+       $(HOST_EXPORTS)  \
 
794
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
795
+         $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)  \
 
796
+               $(TARGET-libgnatprj))
 
797
+@endif libgnatprj
 
798
+
 
799
+
 
800
+
 
801
+
 
802
+.PHONY: check-libgnatprj maybe-check-libgnatprj
 
803
+maybe-check-libgnatprj:
 
804
+@if libgnatprj
 
805
+maybe-check-libgnatprj: check-libgnatprj
 
806
+
 
807
+check-libgnatprj:
 
808
+
 
809
+@endif libgnatprj
 
810
+
 
811
+.PHONY: install-libgnatprj maybe-install-libgnatprj
 
812
+maybe-install-libgnatprj:
 
813
+@if libgnatprj
 
814
+maybe-install-libgnatprj: install-libgnatprj
 
815
+
 
816
+install-libgnatprj: installdirs
 
817
+       @: $(MAKE); $(unstage)
 
818
+       @r=`${PWD_COMMAND}`; export r; \
 
819
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
820
+       $(HOST_EXPORTS) \
 
821
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
822
+         $(MAKE) $(FLAGS_TO_PASS)  install)
 
823
+
 
824
+@endif libgnatprj
 
825
+
 
826
+.PHONY: install-strip-libgnatprj maybe-install-strip-libgnatprj
 
827
+maybe-install-strip-libgnatprj:
 
828
+@if libgnatprj
 
829
+maybe-install-strip-libgnatprj: install-strip-libgnatprj
 
830
+
 
831
+install-strip-libgnatprj: installdirs
 
832
+       @: $(MAKE); $(unstage)
 
833
+       @r=`${PWD_COMMAND}`; export r; \
 
834
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
835
+       $(HOST_EXPORTS) \
 
836
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
837
+         $(MAKE) $(FLAGS_TO_PASS)  install-strip)
 
838
+
 
839
+@endif libgnatprj
 
840
+
 
841
+# Other targets (info, dvi, pdf, etc.)
 
842
+
 
843
+.PHONY: maybe-info-libgnatprj info-libgnatprj
 
844
+maybe-info-libgnatprj:
 
845
+@if libgnatprj
 
846
+maybe-info-libgnatprj: info-libgnatprj
 
847
+
 
848
+# libgnatprj doesn't support info.
 
849
+info-libgnatprj:
 
850
+
 
851
+@endif libgnatprj
 
852
+
 
853
+.PHONY: maybe-dvi-libgnatprj dvi-libgnatprj
 
854
+maybe-dvi-libgnatprj:
 
855
+@if libgnatprj
 
856
+maybe-dvi-libgnatprj: dvi-libgnatprj
 
857
+
 
858
+# libgnatprj doesn't support dvi.
 
859
+dvi-libgnatprj:
 
860
+
 
861
+@endif libgnatprj
 
862
+
 
863
+.PHONY: maybe-pdf-libgnatprj pdf-libgnatprj
 
864
+maybe-pdf-libgnatprj:
 
865
+@if libgnatprj
 
866
+maybe-pdf-libgnatprj: pdf-libgnatprj
 
867
+
 
868
+pdf-libgnatprj: \
 
869
+    configure-libgnatprj 
 
870
+       @: $(MAKE); $(unstage)
 
871
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
872
+       r=`${PWD_COMMAND}`; export r; \
 
873
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
874
+       $(HOST_EXPORTS) \
 
875
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
876
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
877
+       done; \
 
878
+       echo "Doing pdf in libgnatprj" ; \
 
879
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
880
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
881
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
882
+                 "RANLIB=$${RANLIB}" \
 
883
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
884
+                 pdf) \
 
885
+         || exit 1
 
886
+
 
887
+@endif libgnatprj
 
888
+
 
889
+.PHONY: maybe-html-libgnatprj html-libgnatprj
 
890
+maybe-html-libgnatprj:
 
891
+@if libgnatprj
 
892
+maybe-html-libgnatprj: html-libgnatprj
 
893
+
 
894
+# libgnatprj doesn't support html.
 
895
+html-libgnatprj:
 
896
+
 
897
+@endif libgnatprj
 
898
+
 
899
+.PHONY: maybe-TAGS-libgnatprj TAGS-libgnatprj
 
900
+maybe-TAGS-libgnatprj:
 
901
+@if libgnatprj
 
902
+maybe-TAGS-libgnatprj: TAGS-libgnatprj
 
903
+
 
904
+# libgnatprj doesn't support TAGS.
 
905
+TAGS-libgnatprj:
 
906
+
 
907
+@endif libgnatprj
 
908
+
 
909
+.PHONY: maybe-install-info-libgnatprj install-info-libgnatprj
 
910
+maybe-install-info-libgnatprj:
 
911
+@if libgnatprj
 
912
+maybe-install-info-libgnatprj: install-info-libgnatprj
 
913
+
 
914
+# libgnatprj doesn't support install-info.
 
915
+install-info-libgnatprj:
 
916
+
 
917
+@endif libgnatprj
 
918
+
 
919
+.PHONY: maybe-install-pdf-libgnatprj install-pdf-libgnatprj
 
920
+maybe-install-pdf-libgnatprj:
 
921
+@if libgnatprj
 
922
+maybe-install-pdf-libgnatprj: install-pdf-libgnatprj
 
923
+
 
924
+install-pdf-libgnatprj: \
 
925
+    configure-libgnatprj \
 
926
+    pdf-libgnatprj 
 
927
+       @: $(MAKE); $(unstage)
 
928
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
929
+       r=`${PWD_COMMAND}`; export r; \
 
930
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
931
+       $(HOST_EXPORTS) \
 
932
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
933
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
934
+       done; \
 
935
+       echo "Doing install-pdf in libgnatprj" ; \
 
936
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
937
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
938
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
939
+                 "RANLIB=$${RANLIB}" \
 
940
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
941
+                 install-pdf) \
 
942
+         || exit 1
 
943
+
 
944
+@endif libgnatprj
 
945
+
 
946
+.PHONY: maybe-install-html-libgnatprj install-html-libgnatprj
 
947
+maybe-install-html-libgnatprj:
 
948
+@if libgnatprj
 
949
+maybe-install-html-libgnatprj: install-html-libgnatprj
 
950
+
 
951
+install-html-libgnatprj: \
 
952
+    configure-libgnatprj \
 
953
+    html-libgnatprj 
 
954
+       @: $(MAKE); $(unstage)
 
955
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
956
+       r=`${PWD_COMMAND}`; export r; \
 
957
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
958
+       $(HOST_EXPORTS) \
 
959
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
960
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
961
+       done; \
 
962
+       echo "Doing install-html in libgnatprj" ; \
 
963
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
964
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
965
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
966
+                 "RANLIB=$${RANLIB}" \
 
967
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
968
+                 install-html) \
 
969
+         || exit 1
 
970
+
 
971
+@endif libgnatprj
 
972
+
 
973
+.PHONY: maybe-installcheck-libgnatprj installcheck-libgnatprj
 
974
+maybe-installcheck-libgnatprj:
 
975
+@if libgnatprj
 
976
+maybe-installcheck-libgnatprj: installcheck-libgnatprj
 
977
+
 
978
+# libgnatprj doesn't support installcheck.
 
979
+installcheck-libgnatprj:
 
980
+
 
981
+@endif libgnatprj
 
982
+
 
983
+.PHONY: maybe-mostlyclean-libgnatprj mostlyclean-libgnatprj
 
984
+maybe-mostlyclean-libgnatprj:
 
985
+@if libgnatprj
 
986
+maybe-mostlyclean-libgnatprj: mostlyclean-libgnatprj
 
987
+
 
988
+mostlyclean-libgnatprj: 
 
989
+       @: $(MAKE); $(unstage)
 
990
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
991
+       r=`${PWD_COMMAND}`; export r; \
 
992
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
993
+       $(HOST_EXPORTS) \
 
994
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
995
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
996
+       done; \
 
997
+       echo "Doing mostlyclean in libgnatprj" ; \
 
998
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
999
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1000
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1001
+                 "RANLIB=$${RANLIB}" \
 
1002
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1003
+                 mostlyclean) \
 
1004
+         || exit 1
 
1005
+
 
1006
+@endif libgnatprj
 
1007
+
 
1008
+.PHONY: maybe-clean-libgnatprj clean-libgnatprj
 
1009
+maybe-clean-libgnatprj:
 
1010
+@if libgnatprj
 
1011
+maybe-clean-libgnatprj: clean-libgnatprj
 
1012
+
 
1013
+clean-libgnatprj: 
 
1014
+       @: $(MAKE); $(unstage)
 
1015
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
1016
+       r=`${PWD_COMMAND}`; export r; \
 
1017
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1018
+       $(HOST_EXPORTS) \
 
1019
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
1020
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1021
+       done; \
 
1022
+       echo "Doing clean in libgnatprj" ; \
 
1023
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
1024
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1025
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1026
+                 "RANLIB=$${RANLIB}" \
 
1027
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1028
+                 clean) \
 
1029
+         || exit 1
 
1030
+
 
1031
+@endif libgnatprj
 
1032
+
 
1033
+.PHONY: maybe-distclean-libgnatprj distclean-libgnatprj
 
1034
+maybe-distclean-libgnatprj:
 
1035
+@if libgnatprj
 
1036
+maybe-distclean-libgnatprj: distclean-libgnatprj
 
1037
+
 
1038
+distclean-libgnatprj: 
 
1039
+       @: $(MAKE); $(unstage)
 
1040
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
1041
+       r=`${PWD_COMMAND}`; export r; \
 
1042
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1043
+       $(HOST_EXPORTS) \
 
1044
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
1045
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1046
+       done; \
 
1047
+       echo "Doing distclean in libgnatprj" ; \
 
1048
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
1049
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1050
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1051
+                 "RANLIB=$${RANLIB}" \
 
1052
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1053
+                 distclean) \
 
1054
+         || exit 1
 
1055
+
 
1056
+@endif libgnatprj
 
1057
+
 
1058
+.PHONY: maybe-maintainer-clean-libgnatprj maintainer-clean-libgnatprj
 
1059
+maybe-maintainer-clean-libgnatprj:
 
1060
+@if libgnatprj
 
1061
+maybe-maintainer-clean-libgnatprj: maintainer-clean-libgnatprj
 
1062
+
 
1063
+maintainer-clean-libgnatprj: 
 
1064
+       @: $(MAKE); $(unstage)
 
1065
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
1066
+       r=`${PWD_COMMAND}`; export r; \
 
1067
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1068
+       $(HOST_EXPORTS) \
 
1069
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
1070
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1071
+       done; \
 
1072
+       echo "Doing maintainer-clean in libgnatprj" ; \
 
1073
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
1074
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1075
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1076
+                 "RANLIB=$${RANLIB}" \
 
1077
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1078
+                 maintainer-clean) \
 
1079
+         || exit 1
 
1080
+
 
1081
+@endif libgnatprj
 
1082
+
 
1083
+
 
1084
+
 
1085
 .PHONY: configure-gnattools maybe-configure-gnattools
 
1086
 maybe-configure-gnattools:
 
1087
 @if gcc-bootstrap
 
1088
@@ -57992,6 +58366,361 @@
 
1089
 
 
1090
 
 
1091
 
 
1092
+.PHONY: configure-target-libgnatprj maybe-configure-target-libgnatprj
 
1093
+maybe-configure-target-libgnatprj:
 
1094
+@if gcc-bootstrap
 
1095
+configure-target-libgnatprj: stage_current
 
1096
+@endif gcc-bootstrap
 
1097
+@if target-libgnatprj
 
1098
+maybe-configure-target-libgnatprj: configure-target-libgnatprj
 
1099
+configure-target-libgnatprj: 
 
1100
+       @: $(MAKE); $(unstage)
 
1101
+       @r=`${PWD_COMMAND}`; export r; \
 
1102
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1103
+       echo "Checking multilib configuration for libgnatprj..."; \
 
1104
+       $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgnatprj ; \
 
1105
+       $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgnatprj/multilib.tmp 2> /dev/null ; \
 
1106
+       if test -r $(TARGET_SUBDIR)/libgnatprj/multilib.out; then \
 
1107
+         if cmp -s $(TARGET_SUBDIR)/libgnatprj/multilib.tmp $(TARGET_SUBDIR)/libgnatprj/multilib.out; then \
 
1108
+           rm -f $(TARGET_SUBDIR)/libgnatprj/multilib.tmp; \
 
1109
+         else \
 
1110
+           rm -f $(TARGET_SUBDIR)/libgnatprj/Makefile; \
 
1111
+           mv $(TARGET_SUBDIR)/libgnatprj/multilib.tmp $(TARGET_SUBDIR)/libgnatprj/multilib.out; \
 
1112
+         fi; \
 
1113
+       else \
 
1114
+         mv $(TARGET_SUBDIR)/libgnatprj/multilib.tmp $(TARGET_SUBDIR)/libgnatprj/multilib.out; \
 
1115
+       fi; \
 
1116
+       test ! -f $(TARGET_SUBDIR)/libgnatprj/Makefile || exit 0; \
 
1117
+       $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgnatprj ; \
 
1118
+       $(NORMAL_TARGET_EXPORTS)  \
 
1119
+       echo Configuring in $(TARGET_SUBDIR)/libgnatprj; \
 
1120
+       cd "$(TARGET_SUBDIR)/libgnatprj" || exit 1; \
 
1121
+       case $(srcdir) in \
 
1122
+         /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
 
1123
+         *) topdir=`echo $(TARGET_SUBDIR)/libgnatprj/ | \
 
1124
+               sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 
1125
+       esac; \
 
1126
+       srcdiroption="--srcdir=$${topdir}/libgnatprj"; \
 
1127
+       libsrcdir="$$s/libgnatprj"; \
 
1128
+       rm -f no-such-file || : ; \
 
1129
+       CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
 
1130
+         $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
 
1131
+         --target=${target_alias} $${srcdiroption}  \
 
1132
+         || exit 1
 
1133
+@endif target-libgnatprj
 
1134
+
 
1135
+
 
1136
+
 
1137
+
 
1138
+
 
1139
+.PHONY: all-target-libgnatprj maybe-all-target-libgnatprj
 
1140
+maybe-all-target-libgnatprj:
 
1141
+@if gcc-bootstrap
 
1142
+all-target-libgnatprj: stage_current
 
1143
+@endif gcc-bootstrap
 
1144
+@if target-libgnatprj
 
1145
+TARGET-target-libgnatprj=all
 
1146
+maybe-all-target-libgnatprj: all-target-libgnatprj
 
1147
+all-target-libgnatprj: configure-target-libgnatprj
 
1148
+       @: $(MAKE); $(unstage)
 
1149
+       @r=`${PWD_COMMAND}`; export r; \
 
1150
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1151
+       $(NORMAL_TARGET_EXPORTS)  \
 
1152
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1153
+         $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)  \
 
1154
+               $(TARGET-target-libgnatprj))
 
1155
+@endif target-libgnatprj
 
1156
+
 
1157
+
 
1158
+
 
1159
+
 
1160
+
 
1161
+.PHONY: check-target-libgnatprj maybe-check-target-libgnatprj
 
1162
+maybe-check-target-libgnatprj:
 
1163
+@if target-libgnatprj
 
1164
+maybe-check-target-libgnatprj: check-target-libgnatprj
 
1165
+
 
1166
+# Dummy target for uncheckable module.
 
1167
+check-target-libgnatprj:
 
1168
+
 
1169
+@endif target-libgnatprj
 
1170
+
 
1171
+.PHONY: install-target-libgnatprj maybe-install-target-libgnatprj
 
1172
+maybe-install-target-libgnatprj:
 
1173
+@if target-libgnatprj
 
1174
+maybe-install-target-libgnatprj: install-target-libgnatprj
 
1175
+
 
1176
+install-target-libgnatprj: installdirs
 
1177
+       @: $(MAKE); $(unstage)
 
1178
+       @r=`${PWD_COMMAND}`; export r; \
 
1179
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1180
+       $(NORMAL_TARGET_EXPORTS) \
 
1181
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1182
+         $(MAKE) $(TARGET_FLAGS_TO_PASS)  install)
 
1183
+
 
1184
+@endif target-libgnatprj
 
1185
+
 
1186
+.PHONY: install-strip-target-libgnatprj maybe-install-strip-target-libgnatprj
 
1187
+maybe-install-strip-target-libgnatprj:
 
1188
+@if target-libgnatprj
 
1189
+maybe-install-strip-target-libgnatprj: install-strip-target-libgnatprj
 
1190
+
 
1191
+install-strip-target-libgnatprj: installdirs
 
1192
+       @: $(MAKE); $(unstage)
 
1193
+       @r=`${PWD_COMMAND}`; export r; \
 
1194
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1195
+       $(NORMAL_TARGET_EXPORTS) \
 
1196
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1197
+         $(MAKE) $(TARGET_FLAGS_TO_PASS)  install-strip)
 
1198
+
 
1199
+@endif target-libgnatprj
 
1200
+
 
1201
+# Other targets (info, dvi, pdf, etc.)
 
1202
+
 
1203
+.PHONY: maybe-info-target-libgnatprj info-target-libgnatprj
 
1204
+maybe-info-target-libgnatprj:
 
1205
+@if target-libgnatprj
 
1206
+maybe-info-target-libgnatprj: info-target-libgnatprj
 
1207
+
 
1208
+# libgnatprj doesn't support info.
 
1209
+info-target-libgnatprj:
 
1210
+
 
1211
+@endif target-libgnatprj
 
1212
+
 
1213
+.PHONY: maybe-dvi-target-libgnatprj dvi-target-libgnatprj
 
1214
+maybe-dvi-target-libgnatprj:
 
1215
+@if target-libgnatprj
 
1216
+maybe-dvi-target-libgnatprj: dvi-target-libgnatprj
 
1217
+
 
1218
+# libgnatprj doesn't support dvi.
 
1219
+dvi-target-libgnatprj:
 
1220
+
 
1221
+@endif target-libgnatprj
 
1222
+
 
1223
+.PHONY: maybe-pdf-target-libgnatprj pdf-target-libgnatprj
 
1224
+maybe-pdf-target-libgnatprj:
 
1225
+@if target-libgnatprj
 
1226
+maybe-pdf-target-libgnatprj: pdf-target-libgnatprj
 
1227
+
 
1228
+pdf-target-libgnatprj: \
 
1229
+    configure-target-libgnatprj 
 
1230
+       @: $(MAKE); $(unstage)
 
1231
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1232
+       r=`${PWD_COMMAND}`; export r; \
 
1233
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1234
+       $(NORMAL_TARGET_EXPORTS) \
 
1235
+       echo "Doing pdf in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1236
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1237
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1238
+       done; \
 
1239
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1240
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1241
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1242
+                 "RANLIB=$${RANLIB}" \
 
1243
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1244
+                  pdf) \
 
1245
+         || exit 1
 
1246
+
 
1247
+@endif target-libgnatprj
 
1248
+
 
1249
+.PHONY: maybe-html-target-libgnatprj html-target-libgnatprj
 
1250
+maybe-html-target-libgnatprj:
 
1251
+@if target-libgnatprj
 
1252
+maybe-html-target-libgnatprj: html-target-libgnatprj
 
1253
+
 
1254
+# libgnatprj doesn't support html.
 
1255
+html-target-libgnatprj:
 
1256
+
 
1257
+@endif target-libgnatprj
 
1258
+
 
1259
+.PHONY: maybe-TAGS-target-libgnatprj TAGS-target-libgnatprj
 
1260
+maybe-TAGS-target-libgnatprj:
 
1261
+@if target-libgnatprj
 
1262
+maybe-TAGS-target-libgnatprj: TAGS-target-libgnatprj
 
1263
+
 
1264
+# libgnatprj doesn't support TAGS.
 
1265
+TAGS-target-libgnatprj:
 
1266
+
 
1267
+@endif target-libgnatprj
 
1268
+
 
1269
+.PHONY: maybe-install-info-target-libgnatprj install-info-target-libgnatprj
 
1270
+maybe-install-info-target-libgnatprj:
 
1271
+@if target-libgnatprj
 
1272
+maybe-install-info-target-libgnatprj: install-info-target-libgnatprj
 
1273
+
 
1274
+# libgnatprj doesn't support install-info.
 
1275
+install-info-target-libgnatprj:
 
1276
+
 
1277
+@endif target-libgnatprj
 
1278
+
 
1279
+.PHONY: maybe-install-pdf-target-libgnatprj install-pdf-target-libgnatprj
 
1280
+maybe-install-pdf-target-libgnatprj:
 
1281
+@if target-libgnatprj
 
1282
+maybe-install-pdf-target-libgnatprj: install-pdf-target-libgnatprj
 
1283
+
 
1284
+install-pdf-target-libgnatprj: \
 
1285
+    configure-target-libgnatprj \
 
1286
+    pdf-target-libgnatprj 
 
1287
+       @: $(MAKE); $(unstage)
 
1288
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1289
+       r=`${PWD_COMMAND}`; export r; \
 
1290
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1291
+       $(NORMAL_TARGET_EXPORTS) \
 
1292
+       echo "Doing install-pdf in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1293
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1294
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1295
+       done; \
 
1296
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1297
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1298
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1299
+                 "RANLIB=$${RANLIB}" \
 
1300
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1301
+                  install-pdf) \
 
1302
+         || exit 1
 
1303
+
 
1304
+@endif target-libgnatprj
 
1305
+
 
1306
+.PHONY: maybe-install-html-target-libgnatprj install-html-target-libgnatprj
 
1307
+maybe-install-html-target-libgnatprj:
 
1308
+@if target-libgnatprj
 
1309
+maybe-install-html-target-libgnatprj: install-html-target-libgnatprj
 
1310
+
 
1311
+install-html-target-libgnatprj: \
 
1312
+    configure-target-libgnatprj \
 
1313
+    html-target-libgnatprj 
 
1314
+       @: $(MAKE); $(unstage)
 
1315
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1316
+       r=`${PWD_COMMAND}`; export r; \
 
1317
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1318
+       $(NORMAL_TARGET_EXPORTS) \
 
1319
+       echo "Doing install-html in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1320
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1321
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1322
+       done; \
 
1323
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1324
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1325
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1326
+                 "RANLIB=$${RANLIB}" \
 
1327
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1328
+                  install-html) \
 
1329
+         || exit 1
 
1330
+
 
1331
+@endif target-libgnatprj
 
1332
+
 
1333
+.PHONY: maybe-installcheck-target-libgnatprj installcheck-target-libgnatprj
 
1334
+maybe-installcheck-target-libgnatprj:
 
1335
+@if target-libgnatprj
 
1336
+maybe-installcheck-target-libgnatprj: installcheck-target-libgnatprj
 
1337
+
 
1338
+# libgnatprj doesn't support installcheck.
 
1339
+installcheck-target-libgnatprj:
 
1340
+
 
1341
+@endif target-libgnatprj
 
1342
+
 
1343
+.PHONY: maybe-mostlyclean-target-libgnatprj mostlyclean-target-libgnatprj
 
1344
+maybe-mostlyclean-target-libgnatprj:
 
1345
+@if target-libgnatprj
 
1346
+maybe-mostlyclean-target-libgnatprj: mostlyclean-target-libgnatprj
 
1347
+
 
1348
+mostlyclean-target-libgnatprj: 
 
1349
+       @: $(MAKE); $(unstage)
 
1350
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1351
+       r=`${PWD_COMMAND}`; export r; \
 
1352
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1353
+       $(NORMAL_TARGET_EXPORTS) \
 
1354
+       echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1355
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1356
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1357
+       done; \
 
1358
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1359
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1360
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1361
+                 "RANLIB=$${RANLIB}" \
 
1362
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1363
+                  mostlyclean) \
 
1364
+         || exit 1
 
1365
+
 
1366
+@endif target-libgnatprj
 
1367
+
 
1368
+.PHONY: maybe-clean-target-libgnatprj clean-target-libgnatprj
 
1369
+maybe-clean-target-libgnatprj:
 
1370
+@if target-libgnatprj
 
1371
+maybe-clean-target-libgnatprj: clean-target-libgnatprj
 
1372
+
 
1373
+clean-target-libgnatprj: 
 
1374
+       @: $(MAKE); $(unstage)
 
1375
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1376
+       r=`${PWD_COMMAND}`; export r; \
 
1377
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1378
+       $(NORMAL_TARGET_EXPORTS) \
 
1379
+       echo "Doing clean in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1380
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1381
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1382
+       done; \
 
1383
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1384
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1385
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1386
+                 "RANLIB=$${RANLIB}" \
 
1387
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1388
+                  clean) \
 
1389
+         || exit 1
 
1390
+
 
1391
+@endif target-libgnatprj
 
1392
+
 
1393
+.PHONY: maybe-distclean-target-libgnatprj distclean-target-libgnatprj
 
1394
+maybe-distclean-target-libgnatprj:
 
1395
+@if target-libgnatprj
 
1396
+maybe-distclean-target-libgnatprj: distclean-target-libgnatprj
 
1397
+
 
1398
+distclean-target-libgnatprj: 
 
1399
+       @: $(MAKE); $(unstage)
 
1400
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1401
+       r=`${PWD_COMMAND}`; export r; \
 
1402
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1403
+       $(NORMAL_TARGET_EXPORTS) \
 
1404
+       echo "Doing distclean in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1405
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1406
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1407
+       done; \
 
1408
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1409
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1410
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1411
+                 "RANLIB=$${RANLIB}" \
 
1412
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1413
+                  distclean) \
 
1414
+         || exit 1
 
1415
+
 
1416
+@endif target-libgnatprj
 
1417
+
 
1418
+.PHONY: maybe-maintainer-clean-target-libgnatprj maintainer-clean-target-libgnatprj
 
1419
+maybe-maintainer-clean-target-libgnatprj:
 
1420
+@if target-libgnatprj
 
1421
+maybe-maintainer-clean-target-libgnatprj: maintainer-clean-target-libgnatprj
 
1422
+
 
1423
+maintainer-clean-target-libgnatprj: 
 
1424
+       @: $(MAKE); $(unstage)
 
1425
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1426
+       r=`${PWD_COMMAND}`; export r; \
 
1427
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1428
+       $(NORMAL_TARGET_EXPORTS) \
 
1429
+       echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1430
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1431
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1432
+       done; \
 
1433
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1434
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1435
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1436
+                 "RANLIB=$${RANLIB}" \
 
1437
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1438
+                  maintainer-clean) \
 
1439
+         || exit 1
 
1440
+
 
1441
+@endif target-libgnatprj
 
1442
+
 
1443
+
 
1444
+
 
1445
+
 
1446
+
 
1447
 .PHONY: configure-target-libgomp maybe-configure-target-libgomp
 
1448
 maybe-configure-target-libgomp:
 
1449
 @if gcc-bootstrap
 
1450
@@ -61056,6 +61785,7 @@
 
1451
 configure-target-rda: stage_last
 
1452
 configure-target-libada: stage_last
 
1453
 configure-target-libgnatvsn: stage_last
 
1454
+configure-target-libgnatprj: stage_last
 
1455
 configure-stage1-target-libgomp: maybe-all-stage1-gcc
 
1456
 configure-stage2-target-libgomp: maybe-all-stage2-gcc
 
1457
 configure-stage3-target-libgomp: maybe-all-stage3-gcc
 
1458
@@ -61088,6 +61818,7 @@
 
1459
 configure-target-rda: maybe-all-gcc
 
1460
 configure-target-libada: maybe-all-gcc
 
1461
 configure-target-libgnatvsn: maybe-all-gcc
 
1462
+configure-target-libgnatprj: maybe-all-gcc
 
1463
 configure-target-libgomp: maybe-all-gcc
 
1464
 @endif gcc-no-bootstrap
 
1465
 
 
1466
@@ -61389,7 +62120,10 @@
 
1467
 all-fixincludes: maybe-all-libiberty
 
1468
 all-gnattools: maybe-all-libada
 
1469
 all-gnattools: maybe-all-libgnatvsn
 
1470
+all-gnattools: maybe-all-libgnatprj
 
1471
 all-libgnatvsn: maybe-all-libada
 
1472
+all-libgnatprj: maybe-all-libada
 
1473
+all-libgnatprj: maybe-all-libgnatvsn
 
1474
 all-lto-plugin: maybe-all-libiberty
 
1475
 
 
1476
 all-stage1-lto-plugin: maybe-all-stage1-libiberty
 
1477
@@ -61935,6 +62669,7 @@
 
1478
 configure-target-rda: maybe-all-target-libgcc
 
1479
 configure-target-libada: maybe-all-target-libgcc
 
1480
 configure-target-libgnatvsn: maybe-all-target-libgcc
 
1481
+configure-target-libgnatprj: maybe-all-target-libgcc
 
1482
 configure-target-libgomp: maybe-all-target-libgcc
 
1483
 @endif gcc-no-bootstrap
 
1484
 
 
1485
@@ -61983,6 +62718,8 @@
 
1486
 
 
1487
 configure-target-libgnatvsn: maybe-all-target-newlib maybe-all-target-libgloss
 
1488
 
 
1489
+configure-target-libgnatprj: maybe-all-target-newlib maybe-all-target-libgloss
 
1490
+
 
1491
 configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
 
1492
 
 
1493
 
 
1494
Index: b/src/configure.ac
 
1495
===================================================================
 
1496
--- a/src/configure.ac
 
1497
+++ b/src/configure.ac
 
1498
@@ -168,7 +168,7 @@
 
1499
 
 
1500
 # these libraries are used by various programs built for the host environment
 
1501
 #
 
1502
-host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv libada libgnatvsn"
 
1503
+host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv libada libgnatvsn libgnatprj"
 
1504
 
 
1505
 # these tools are built for the host environment
 
1506
 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
 
1507
@@ -202,6 +202,7 @@
 
1508
                target-libobjc \
 
1509
                target-libada \
 
1510
                target-libgnatvsn \
 
1511
+               target-libgnatprj \
 
1512
                target-libgo"
 
1513
 
 
1514
 # these tools are built using the target libraries, and are intended to
 
1515
@@ -303,7 +304,7 @@
 
1516
 
 
1517
 # Similarly, some are only suitable for cross toolchains.
 
1518
 # Remove these if host=target.
 
1519
-cross_only="target-libgloss target-newlib target-opcodes target-libada target-libgnatvsn"
 
1520
+cross_only="target-libgloss target-newlib target-opcodes target-libada target-libgnatvsn target-libgnatprj"
 
1521
 
 
1522
 case $is_cross_compiler in
 
1523
   no) skipdirs="${skipdirs} ${cross_only}" ;;
 
1524
@@ -487,7 +488,7 @@
 
1525
 ENABLE_LIBADA=$enableval,
 
1526
 ENABLE_LIBADA=yes)
 
1527
 if test "${ENABLE_LIBADA}" != "yes" ; then
 
1528
-  noconfigdirs="$noconfigdirs libgnatvsn gnattools"
 
1529
+  noconfigdirs="$noconfigdirs libgnatvsn libgnatprj gnattools"
 
1530
 fi
 
1531
 
 
1532
 AC_ARG_ENABLE(libssp,
 
1533
Index: b/src/libgnatprj/configure.ac
 
1534
===================================================================
 
1535
--- /dev/null
 
1536
+++ b/src/libgnatprj/configure.ac
 
1537
@@ -0,0 +1,149 @@
 
1538
+# Configure script for libada.
 
1539
+#   Copyright 2003, 2004 Free Software Foundation, Inc.
 
1540
+#
 
1541
+# This file is free software; you can redistribute it and/or modify it
 
1542
+# under the terms of the GNU General Public License as published by
 
1543
+# the Free Software Foundation; either version 2 of the License, or
 
1544
+# (at your option) any later version.
 
1545
+#
 
1546
+# This program is distributed in the hope that it will be useful, but
 
1547
+# WITHOUT ANY WARRANTY; without even the implied warranty of
 
1548
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
1549
+# General Public License for more details.
 
1550
+#
 
1551
+# You should have received a copy of the GNU General Public License
 
1552
+# along with this program; if not, write to the Free Software
 
1553
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
1554
+
 
1555
+AC_INIT
 
1556
+AC_PREREQ([2.59])
 
1557
+
 
1558
+AC_CONFIG_SRCDIR([Makefile.in])
 
1559
+
 
1560
+# Start of actual configure tests
 
1561
+
 
1562
+AC_PROG_INSTALL
 
1563
+
 
1564
+AC_CANONICAL_BUILD
 
1565
+AC_CANONICAL_HOST
 
1566
+AC_CANONICAL_TARGET
 
1567
+
 
1568
+sinclude(../config/acx.m4)
 
1569
+ACX_NONCANONICAL_TARGET
 
1570
+
 
1571
+# Need to pass this down for now :-P
 
1572
+AC_PROG_LN_S
 
1573
+
 
1574
+# Determine x_ada_cflags
 
1575
+case $host in
 
1576
+  hppa*) x_ada_cflags=-mdisable-indexing ;;
 
1577
+  *) x_ada_cflags= ;;
 
1578
+esac
 
1579
+AC_SUBST([x_ada_cflags])
 
1580
+
 
1581
+# Determine what to build for 'gnattools'
 
1582
+if test $build = $target ; then
 
1583
+  # Note that build=target is almost certainly the wrong test; FIXME
 
1584
+  default_gnattools_target="gnattools-native"
 
1585
+else
 
1586
+  default_gnattools_target="gnattools-cross"
 
1587
+fi
 
1588
+AC_SUBST([default_gnattools_target])
 
1589
+
 
1590
+# Target-specific stuff (defaults)
 
1591
+TOOLS_TARGET_PAIRS=
 
1592
+AC_SUBST(TOOLS_TARGET_PAIRS)
 
1593
+
 
1594
+# Per-target case statement
 
1595
+# ---/----------------------
 
1596
+case "${target}" in
 
1597
+  alpha*-dec-vx*) # Unlike all other Vxworks
 
1598
+    ;;
 
1599
+  m68k*-wrs-vx* \
 
1600
+  | powerpc*-wrs-vxworks \
 
1601
+  | sparc*-wrs-vx* \
 
1602
+  | *86-wrs-vxworks \
 
1603
+  | xscale*-wrs-vx* \
 
1604
+  | xscale*-wrs-coff \
 
1605
+  | mips*-wrs-vx*)
 
1606
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb"
 
1607
+    ;;
 
1608
+  sparc-sun-solaris*)
 
1609
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
 
1610
+    ;;
 
1611
+  *86-*-solaris2*)
 
1612
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
 
1613
+    ;;
 
1614
+  *86-*-linux* \
 
1615
+  | arm*-*-linux* \
 
1616
+  | powerpc*-*-linux* \
 
1617
+  | *ia64-*-linux* \
 
1618
+  | alpha*-*-linux* \
 
1619
+  | sparc*-*-linux* \
 
1620
+  | hppa*-*-linux* \
 
1621
+  | mips*-*-linux* \
 
1622
+  | *x86_64-*-linux* \
 
1623
+  | *86-*-kfreebsd*-gnu \
 
1624
+  | *86-*-gnu \
 
1625
+  | *x86_64-*-kfreebsd*-gnu )
 
1626
+    TOOLS_TARGET_PAIRS="\
 
1627
+    mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
 
1628
+    indepsw.adb<indepsw-gnu.adb"
 
1629
+    ;;
 
1630
+  s390*-*-linux*)
 
1631
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb"
 
1632
+    ;;
 
1633
+  *86-*-freebsd*)
 
1634
+    TOOLS_TARGET_PAIRS="\
 
1635
+    mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb \
 
1636
+    indepsw.adb<indepsw-gnu.adb"
 
1637
+    ;;
 
1638
+  mips-sgi-irix*)
 
1639
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-irix.adb"
 
1640
+    ;;
 
1641
+  hppa*-hp-hpux10*) # Unlike hpux11
 
1642
+    ;;
 
1643
+  hppa*-hp-hpux11*)
 
1644
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb"
 
1645
+    ;;
 
1646
+  *-ibm-aix*)
 
1647
+    TOOLS_TARGET_PAIRS="\
 
1648
+    mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb \
 
1649
+    indepsw.adb<indepsw-aix.adb"
 
1650
+    ;;
 
1651
+  alpha*-dec-osf*)
 
1652
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-tru64.adb"
 
1653
+    ;;
 
1654
+  alpha*-dec-vms* | alpha*-dec-openvms* | alpha*-dec-vms* \
 
1655
+  | alpha*-hp-vms* | alpha*-hp-openvms* | alpha*-hp-vms*)
 
1656
+    TOOLS_TARGET_PAIRS="\
 
1657
+    mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
 
1658
+    symbols.adb<symbols-vms.adb \
 
1659
+    symbols-processing.adb<symbols-processing-vms-alpha.adb"
 
1660
+    ;;
 
1661
+  ia64*-dec-vms* | ia64*-dec-openvms* | ia64*-dec-vms* \
 
1662
+  | ia64*-hp-vms* | ia64*-hp-openvms* | ia64*-hp-vms*)
 
1663
+    TOOLS_TARGET_PAIRS="\
 
1664
+    mlib-tgt-specific.adb<mlib-tgt-vms-ia64.adb \
 
1665
+    symbols.adb<symbols-vms.adb \
 
1666
+    symbols-processing.adb<symbols-processing-vms-ia64.adb"
 
1667
+    ;;
 
1668
+  *-*-cygwin32* | *-*-mingw32* | *-*-pe)
 
1669
+    TOOLS_TARGET_PAIRS="\
 
1670
+    mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb \
 
1671
+    indepsw.adb<indepsw-mingw.adb"
 
1672
+    ;;
 
1673
+  powerpc-*-darwin*)
 
1674
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb"
 
1675
+    ;;
 
1676
+  *-*-lynxos)
 
1677
+    TOOLS_TARGET_PAIRS="\
 
1678
+    mlib-tgt-specific.adb<mlib-tgt-specific-lynxos.adb \
 
1679
+    indepsw.adb<indepsw-gnu.adb"
 
1680
+    ;;
 
1681
+esac
 
1682
+
 
1683
+# Output: create a Makefile.
 
1684
+AC_CONFIG_FILES([Makefile])
 
1685
+
 
1686
+AC_OUTPUT