bfd/
[deliverable/binutils-gdb.git] / binutils / configure.com
CommitLineData
252b5132
RH
1$!
2$! This file configures binutils for use with openVMS/Alpha
3$! We do not use the configure script, since we do not have /bin/sh
4$! to execute it.
5$!
6$! Written by Klaus K"ampf (kkaempf@rmi.de)
7$!
8$arch_indx = 1 + ((f$getsyi("CPU").ge.128).and.1) ! vax==1, alpha==2
9$arch = f$element(arch_indx,"|","|VAX|Alpha|")
10$!
252b5132
RH
11$! Generate config.h
12$!
c5ac1056
TG
13$ create config.h
14/* config.h. Generated automatically by configure.com */
252b5132
RH
15/* Is the type time_t defined in <time.h>? */
16#define HAVE_TIME_T_IN_TIME_H 1
17/* Is the type time_t defined in <sys/types.h>? */
18#define HAVE_TIME_T_IN_TYPES_H 1
19/* Does <utime.h> define struct utimbuf? */
20#define HAVE_GOOD_UTIME_H 1
21/* Whether fprintf must be declared even if <stdio.h> is included. */
22#define NEED_DECLARATION_FPRINTF 1
252b5132
RH
23/* Do we need to use the b modifier when opening binary files? */
24/* #undef USE_BINARY_FOPEN */
252b5132
RH
25/* Define if you have the utimes function. */
26#define HAVE_UTIMES 1
27/* Define if you have the <fcntl.h> header file. */
28#define HAVE_FCNTL_H 1
29/* Define if you have the <stdlib.h> header file. */
30#define HAVE_STDLIB_H 1
31/* Define if you have the <string.h> header file. */
32#define HAVE_STRING_H 1
33/* Define if you have the <strings.h> header file. */
34#define HAVE_STRINGS_H 1
35/* Define if you have the <sys/file.h> header file. */
36#define HAVE_SYS_FILE_H 1
37/* Define if you have the <unistd.h> header file. */
38#define HAVE_UNISTD_H 1
c5ac1056
TG
39/* Alloca. */
40#ifdef __DECC
41#include <builtins.h>
42#define C_alloca(x) __ALLOCA(x)
43#endif
44$!
45$! Add TARGET.
46$!
47$ if arch .eqs. "Alpha"
48$ then
49$ target = "vms-alpha"
50$ else
51$ target = "vms-vax"
52$ endif
53$!
54$ open/append tfile config.h
55$ write tfile "#define TARGET """ + target + """"
56$ close tfile
57$ write sys$output "Created `config.h'"
58$!
59$ copy makefile.vms-in makefile.vms
252b5132 60$ write sys$output "Created `makefile.vms'"
This page took 0.352247 seconds and 4 git commands to generate.