2001-10-24 Chris Demetriou <cgd@broadcom.com>
[deliverable/binutils-gdb.git] / binutils / configure.com
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 $!
11 $!
12 $! Generate config.h
13 $!
14 $ create []config.h
15 /* config.h. Generated automatically by configure. */
16 /* config.in. Generated automatically from configure.in by autoheader. */
17 /* Is the type time_t defined in <time.h>? */
18 #define HAVE_TIME_T_IN_TIME_H 1
19 /* Is the type time_t defined in <sys/types.h>? */
20 #define HAVE_TIME_T_IN_TYPES_H 1
21 /* Does <utime.h> define struct utimbuf? */
22 #define HAVE_GOOD_UTIME_H 1
23 /* Whether fprintf must be declared even if <stdio.h> is included. */
24 #define NEED_DECLARATION_FPRINTF 1
25 /* Whether sbrk must be declared even if <unistd.h> is included. */
26 #undef NEED_DECLARATION_SBRK
27 /* Do we need to use the b modifier when opening binary files? */
28 /* #undef USE_BINARY_FOPEN */
29 /* Define if you have the sbrk function. */
30 /* #undef HAVE_SBRK 1 */
31 /* Define if you have the utimes function. */
32 #define HAVE_UTIMES 1
33 /* Define if you have the <fcntl.h> header file. */
34 #define HAVE_FCNTL_H 1
35 /* Define if you have the <stdlib.h> header file. */
36 #define HAVE_STDLIB_H 1
37 /* Define if you have the <string.h> header file. */
38 #define HAVE_STRING_H 1
39 /* Define if you have the <strings.h> header file. */
40 #define HAVE_STRINGS_H 1
41 /* Define if you have the <sys/file.h> header file. */
42 #define HAVE_SYS_FILE_H 1
43 /* Define if you have the <unistd.h> header file. */
44 #define HAVE_UNISTD_H 1
45 $ write sys$output "Generated `config.h'"
46 $!
47 $!
48 $! Edit VERSION in makefile.vms-in
49 $!
50 $ edit/tpu/nojournal/nosection/nodisplay/command=sys$input -
51 []makefile.vms-in /output=[]makefile.vms
52 $DECK
53 !
54 ! Get VERSION from configure.in
55 !
56 mfile := CREATE_BUFFER("mfile", "CONFIGURE.IN");
57 rang := CREATE_RANGE(BEGINNING_OF(mfile), END_OF(mfile));
58 match_pos := SEARCH_QUIETLY('AM_INIT_AUTOMAKE(binutils, ', FORWARD, EXACT, rang);
59 IF match_pos <> 0 THEN;
60 POSITION(BEGINNING_OF(match_pos));
61 ERASE(match_pos);
62 vers := CURRENT_LINE-")";
63 ELSE;
64 vers := "unknown";
65 ENDIF;
66
67 file := CREATE_BUFFER("file", GET_INFO(COMMAND_LINE, "file_name"));
68 rang := CREATE_RANGE(BEGINNING_OF(file), END_OF(file));
69 match_pos := SEARCH_QUIETLY('@VERSION@', FORWARD, EXACT, rang);
70 POSITION(BEGINNING_OF(match_pos));
71 ERASE(match_pos);
72 COPY_TEXT(vers);
73 WRITE_FILE(file, GET_INFO(COMMAND_LINE, "output_file"));
74 QUIT
75 $ EOD
76 $ write sys$output "Created `makefile.vms'"
This page took 0.032214 seconds and 4 git commands to generate.