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.
7 $ arch_indx = 1 + ((f$getsyi("CPU").ge.128).and.1) ! vax==1, alpha==2
8 $ arch = f$element(arch_indx,"|","|VAX|Alpha|")
12 $! Target specific information
19 #include "obj-format.h"
21 $! Code to handle the object file format.
27 #include "atof-ieee.c"
28 $ create config-vms.in
29 /* config.h. Generated by configure.com. */
30 /* Define to 1 if using `alloca.c'. */
33 /* Default architecture. */
36 /* Default emulation. */
37 #define DEFAULT_EMULATION ""
39 /* Supported emulations. */
42 /* Define if you want run-time sanity checks. */
43 #undef ENABLE_CHECKING
45 /* Define to 1 if translation of program messages to the user's native
46 language is requested. */
49 /* Define to 1 if you have `alloca', as a function or macro. */
52 #define C_alloca(x) __ALLOCA(x)
54 /* Is the prototype for getopt in <unistd.h> in the expected format? */
55 #define HAVE_DECL_GETOPT 1
57 /* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you
59 #undef HAVE_DECL_VSNPRINTF
61 /* Define to 1 if you have the declaration of `snprintf', and to 0 if you
63 #define HAVE_DECL_SNPRINTF 1
65 /* Define to 1 if you have the <errno.h> header file. */
66 #define HAVE_ERRNO_H 1
68 /* Define to 1 if you have the <limits.h> header file. */
71 /* Define to 1 if you have the `remove' function. */
74 /* Define to 1 if you have the <stdarg.h> header file. */
75 #define HAVE_STDARG_H 1
77 /* Define to 1 if you have the <stdint.h> header file. */
80 /* Define to 1 if you have the <stdlib.h> header file. */
81 #define HAVE_STDLIB_H 1
83 /* Define to 1 if you have the <strings.h> header file. */
84 #define HAVE_STRINGS_H 1
86 /* Define to 1 if you have the <string.h> header file. */
87 #define HAVE_STRING_H 1
89 /* Define to 1 if you have the <sys/stat.h> header file. */
90 #undef HAVE_SYS_STAT_H
92 /* Define to 1 if you have the <sys/types.h> header file. */
93 #undef HAVE_SYS_TYPES_H
95 /* Define to 1 if you have the <unistd.h> header file. */
98 /* Define to 1 if you have the `unlink' function. */
101 /* Name of package */
102 #define PACKAGE "gas"
104 /* Define to the address where bug reports for this package should be sent. */
105 #define PACKAGE_BUGREPORT ""
107 /* Define to the full name of this package. */
108 #define PACKAGE_NAME ""
110 /* Define to the full name and version of this package. */
111 #define PACKAGE_STRING ""
113 /* Define to the one symbol short name of this package. */
114 #define PACKAGE_TARNAME ""
116 /* Define to the version of this package. */
117 #define PACKAGE_VERSION ""
119 /* Define to 1 if you have the ANSI C header files. */
120 #define STDC_HEADERS 1
123 #define TARGET_ALIAS "alpha-dec-openvms"
125 /* Canonical target. */
126 #define TARGET_CANONICAL "alpha-dec-openvms"
129 #define TARGET_CPU "alpha"
132 #define TARGET_OS "openvms"
135 #define TARGET_VENDOR "dec"
137 /* Define to 1 if your processor stores words with the most significant byte
138 first (like Motorola and SPARC, unlike Intel and VAX). */
139 #define WORDS_BIGENDIAN 1
141 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
143 #undef YYTEXT_POINTER
145 /* Version number of package */
149 $! Get VERSION from ../bfd/configure.in
151 $ edit/tpu/nojournal/nosection/nodisplay/command=sys$input
153 mfile := CREATE_BUFFER("mfile", "[-.bfd]configure.in");
154 match_pos := SEARCH_QUIETLY('AM_INIT_AUTOMAKE(bfd, ', FORWARD, EXACT, mfile);
155 IF match_pos <> 0 THEN;
156 POSITION(BEGINNING_OF(match_pos));
158 vers := CURRENT_LINE-")";
163 file := CREATE_BUFFER("file", "config-vms.in");
164 POSITION(END_OF(file));
165 COPY_TEXT("#define VERSION """);
168 WRITE_FILE(file, "config.h");
171 $del/nolog config-vms.in;