* elfxx-mips.c (_bfd_mips_elf_check_relocs): Don't set
[deliverable/binutils-gdb.git] / gas / configure.com
1 $! configure.com
2 $! This file sets things up to build gas on a VMS system to generate object
3 $! files for a VMS system. We do not use the configure script, since we
4 $! do not have /bin/sh to execute it.
5 $!
6 $!
7 $ arch=F$GETSYI("ARCH_NAME")
8 $ arch=F$EDIT(arch,"LOWERCASE")
9 $ if arch.eqs."alpha"
10 $ then
11 $ format = "evax"
12 $ target_alias = "alpha-dec-openvms"
13 $ target_canonical = "alpha-dec-openvms"
14 $ endif
15 $ if arch.eqs."ia64"
16 $ then
17 $ format = "elf"
18 $ target_alias = "ia64-openvms"
19 $ target_canonical = "ia64-unknown-openvms"
20 $ endif
21 $!
22 $!
23 $ write sys$output "Generate targ-cpu.[ch]"
24 $!
25 $! Target specific information
26 $ open/write outfile targ-cpu.h
27 $ write outfile "#include ""tc-''arch'.h"""
28 $ close outfile
29 $! Target specific information
30 $ open/write outfile targ-cpu.c
31 $ write outfile "#include ""tc-''arch'.c"""
32 $ close outfile
33 $!
34 $ write sys$output "Generate targ-env.h"
35 $!
36 $ create targ-env.h
37 #include "te-generic.h"
38 $!
39 $ write sys$output "Generate obj-format.[ch]"
40 $!
41 $! Code to handle the object file format.
42 $ open/write outfile obj-format.h
43 $ write outfile "#include ""obj-''format'.h"""
44 $ close outfile
45 $ open/write outfile obj-format.c
46 $ write outfile "#include ""obj-''format'.c"""
47 $ close outfile
48 $!
49 $ write sys$output "Generate atof-targ.c"
50 $!
51 $ create atof-targ.c
52 #include "atof-ieee.c"
53 $!
54 $ write sys$output "Generate gas/config.h"
55 $!
56 $ create config-vms.in
57 /* config.h. Generated by configure.com. */
58 /* Define to 1 if using `alloca.c'. */
59 #undef C_ALLOCA
60
61 /* Default architecture. */
62 #undef DEFAULT_ARCH
63
64 /* Default emulation. */
65 #define DEFAULT_EMULATION ""
66
67 /* Supported emulations. */
68 #define EMULATIONS
69
70 /* Define if you want run-time sanity checks. */
71 #undef ENABLE_CHECKING
72
73 /* Define to 1 if translation of program messages to the user's native
74 language is requested. */
75 #undef ENABLE_NLS
76
77 /* Define to 1 if you have `alloca', as a function or macro. */
78 #define HAVE_ALLOCA 1
79 #include <builtins.h>
80 #define C_alloca(x) __ALLOCA(x)
81
82 /* Define to 1 if you have the `basename' function. */
83 #define HAVE_DECL_BASENAME 1
84
85 /* Is the prototype for getopt in <unistd.h> in the expected format? */
86 #define HAVE_DECL_GETOPT 1
87
88 /* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you
89 don't. */
90 #undef HAVE_DECL_VSNPRINTF
91
92 /* Define to 1 if you have the declaration of `snprintf', and to 0 if you
93 don't. */
94 #define HAVE_DECL_SNPRINTF 1
95
96 /* Define to 1 if you have the <errno.h> header file. */
97 #define HAVE_ERRNO_H 1
98
99 /* Define to 1 if you have the <limits.h> header file. */
100 #undef HAVE_LIMITS_H
101
102 /* Define to 1 if you have the `remove' function. */
103 #define HAVE_REMOVE 1
104
105 /* Define to 1 if you have the <stdarg.h> header file. */
106 #define HAVE_STDARG_H 1
107
108 /* Define to 1 if you have the <stdint.h> header file. */
109 #undef HAVE_STDINT_H
110
111 /* Define to 1 if you have the <stdlib.h> header file. */
112 #define HAVE_STDLIB_H 1
113
114 /* Define to 1 if you have the <strings.h> header file. */
115 #define HAVE_STRINGS_H 1
116
117 /* Define to 1 if you have the <string.h> header file. */
118 #define HAVE_STRING_H 1
119
120 /* Define to 1 if you have the <sys/stat.h> header file. */
121 #undef HAVE_SYS_STAT_H
122
123 /* Define to 1 if you have the <sys/types.h> header file. */
124 #undef HAVE_SYS_TYPES_H
125
126 /* Define to 1 if you have the <unistd.h> header file. */
127 #undef HAVE_UNISTD_H
128
129 /* Define to 1 if you have the `unlink' function. */
130 #undef HAVE_UNLINK
131
132 /* Name of package */
133 #define PACKAGE "gas"
134
135 /* Define to the address where bug reports for this package should be sent. */
136 #define PACKAGE_BUGREPORT ""
137
138 /* Define to the full name of this package. */
139 #define PACKAGE_NAME ""
140
141 /* Define to the full name and version of this package. */
142 #define PACKAGE_STRING ""
143
144 /* Define to the one symbol short name of this package. */
145 #define PACKAGE_TARNAME ""
146
147 /* Define to the version of this package. */
148 #define PACKAGE_VERSION ""
149
150 /* Define to 1 if you have the ANSI C header files. */
151 #define STDC_HEADERS 1
152
153 /* Target OS. */
154 #define TARGET_OS "openvms"
155
156 /* Target vendor. */
157 #define TARGET_VENDOR "dec"
158
159 /* Define to 1 if your processor stores words with the most significant byte
160 first (like Motorola and SPARC, unlike Intel and VAX). */
161 #define WORDS_BIGENDIAN 1
162
163 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
164 `char[]'. */
165 #undef YYTEXT_POINTER
166
167 /* Version number of package */
168 $!
169 $! Get VERSION from ../bfd/configure.in
170 $!
171 $ edit/tpu/nojournal/nosection/nodisplay/command=sys$input
172 $DECK
173 set (success, off);
174 mfile := CREATE_BUFFER("mfile", "[-.bfd]configure.in");
175 match_pos := SEARCH_QUIETLY('AM_INIT_AUTOMAKE(bfd, ', FORWARD, EXACT, mfile);
176 IF match_pos <> 0 THEN;
177 POSITION(BEGINNING_OF(match_pos));
178 ERASE(match_pos);
179 vers := CURRENT_LINE-")";
180 ELSE;
181 vers := "unknown";
182 ENDIF;
183
184 file := CREATE_BUFFER("file", "config-vms.in");
185 POSITION(END_OF(file));
186 COPY_TEXT("#define VERSION """);
187 COPY_TEXT(vers);
188 COPY_TEXT("""");
189 WRITE_FILE(file, "config.h");
190 QUIT
191 $EOD
192 $del/nolog config-vms.in;
193 $ open/append outfile config.h
194 $ write outfile ""
195 $ write outfile "/* Target alias. */"
196 $ write outfile "#define TARGET_ALIAS ""''target_alias'"""
197 $ write outfile ""
198 $ write outfile "/* Canonical target. */"
199 $ write outfile "#define TARGET_CANONICAL ""''target_canonical'"""
200 $ write outfile ""
201 $ write outfile "/* Target CPU. */"
202 $ write outfile "#define TARGET_CPU ""'arch'"""
203 $ close outfile
204 $!
205 $ write sys$output "Generate gas/build.com"
206 $!
207 $ create build.com
208 $DECK
209 $ DEFS=""
210 $ OPT="/noopt/debug"
211 $ CFLAGS=OPT + "/include=([],""../include"",[-.bfd],""../"",[.config])" +-
212 "/name=(as_is,shortened)" +-
213 "/prefix=(all,exc=(""getopt"",""optarg"",""optopt"",""optind"",""opterr""))"
214 $ FILES="obj-format,atof-targ,app,as,atof-generic,cond,depend,"+-
215 "expr,flonum-konst,flonum-copy,flonum-mult,frags,hash,input-file,"+-
216 "input-scrub,literal,messages,output-file,read,subsegs,symbols,write,"+-
217 "listing,ecoff,stabs,sb,macro,ehopt,dw2gencfi,dwarf2dbg,remap"
218 $ LIBBFD = ",[-.bfd]libbfd.olb/lib"
219 $ LIBIBERTY = ",[-.libiberty]libiberty.olb/lib"
220 $ LIBOPCODES = ",[-.opcodes]libopcodes.olb/lib"
221 $!
222 $ write sys$output "CFLAGS=",CFLAGS
223 $ if p1.nes."LINK"
224 $ then
225 $ write sys$output "Compiling targ-cpu.c (/noopt)"
226 $ cc 'CFLAGS /noopt targ-cpu
227 $ NUM = 0
228 $ LOOP:
229 $ F = F$ELEMENT(NUM,",",FILES)
230 $ IF F.EQS."," THEN GOTO END
231 $ write sys$output "Compiling ", F, ".c"
232 $ cc 'CFLAGS 'F.c
233 $ NUM = NUM + 1
234 $ GOTO LOOP
235 $ END:
236 $ endif
237 $ purge
238 $!
239 $ write sys$output "Building as.exe"
240 $ AS_OBJS="targ-cpu," + FILES + LIBOPCODES + LIBBFD + LIBIBERTY
241 $ link/exe=as 'AS_OBJS
242 $exit
243
This page took 0.05895 seconds and 4 git commands to generate.