Cleanups after the update to Autoconf 2.64, Automake 1.11.
[binutils.git] / gas / configure.com
blob7d02cf38b7c67d87d0e8ce8e2ef62b8b2f1d2d54
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_indx = 1 + ((f$getsyi("CPU").ge.128).and.1)      ! vax==1, alpha==2
8 $ arch = f$element(arch_indx,"|","|VAX|Alpha|")
9 $!
10 $ if arch.eqs."Alpha"
11 $ then
12 $! Target specific information
13 $   create targ-cpu.h
14 #include "tc-alpha.h"
15 $   create targ-cpu.c
16 #include "tc-alpha.c"
17 $   create targ-env.h
18 #define TE_VMS
19 #include "obj-format.h"
21 $! Code to handle the object file format.
22 $  create obj-format.h
23 #include "obj-evax.h"
24 $  create obj-format.c
25 #include "obj-evax.c"
26 $  create atof-targ.c
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'. */
31 #undef C_ALLOCA
33 /* Default architecture. */
34 #undef DEFAULT_ARCH
36 /* Default emulation. */
37 #define DEFAULT_EMULATION ""
39 /* Supported emulations. */
40 #define 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. */
47 #undef ENABLE_NLS
49 /* Define to 1 if you have `alloca', as a function or macro. */
50 #define HAVE_ALLOCA 1
51 #include <builtins.h>
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
58    don't. */
59 #undef HAVE_DECL_VSNPRINTF
61 /* Define to 1 if you have the declaration of `snprintf', and to 0 if you
62    don't. */
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. */
69 #undef HAVE_LIMITS_H
71 /* Define to 1 if you have the `remove' function. */
72 #define HAVE_REMOVE 1
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. */
78 #undef HAVE_STDINT_H
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. */
96 #undef HAVE_UNISTD_H
98 /* Define to 1 if you have the `unlink' function. */
99 #undef HAVE_UNLINK
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
122 /* Target alias. */
123 #define TARGET_ALIAS "alpha-dec-openvms"
125 /* Canonical target. */
126 #define TARGET_CANONICAL "alpha-dec-openvms"
128 /* Target CPU. */
129 #define TARGET_CPU "alpha"
131 /* Target OS. */
132 #define TARGET_OS "openvms"
134 /* Target vendor. */
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
142    `char[]'. */
143 #undef YYTEXT_POINTER
145 /* Version number of package */
147 $ endif
149 $! Get VERSION from ../bfd/configure.in
151 $ edit/tpu/nojournal/nosection/nodisplay/command=sys$input
152 $DECK
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));
157      ERASE(match_pos);
158      vers := CURRENT_LINE-")";
159    ELSE;
160      vers := "unknown";
161    ENDIF;
163    file := CREATE_BUFFER("file", "config-vms.in");
164    POSITION(END_OF(file));
165    COPY_TEXT("#define VERSION """);
166    COPY_TEXT(vers);
167    COPY_TEXT("""");
168    WRITE_FILE(file, "config.h");
169    QUIT
170 $  EOD
171 $del/nolog config-vms.in;
172 $exit