* ld-ifunc/ifunc.exp: Match R_PPC64_JUMP_IREL.
[deliverable/binutils-gdb.git] / binutils / configure.com
index 9e35c7662970ebe9e9492bad76c65b6cd3f7c775..5ade2d4c89703c85cf8c3b5996657873559375a1 100644 (file)
@@ -3,22 +3,15 @@ $! This file configures binutils for use with openVMS/Alpha
 $! We do not use the configure script, since we do not have /bin/sh
 $! to execute it.
 $!
-$! Written by Klaus K"ampf (kkaempf@progis.de)
+$! Written by Klaus K"ampf (kkaempf@rmi.de)
 $!
 $arch_indx = 1 + ((f$getsyi("CPU").ge.128).and.1)      ! vax==1, alpha==2
 $arch = f$element(arch_indx,"|","|VAX|Alpha|")
-$if arch .eqs. "VAX"
-$then
-$ write sys$output "Target VAX not supported."
-$ exit 2
-$endif
-$!
 $!
 $! Generate config.h
 $!
-$ create []config.h
-/* config.h.  Generated automatically by configure.  */
-/* config.in.  Generated automatically from configure.in by autoheader.  */
+$ create config.h
+/* config.h.  Generated automatically by configure.com  */
 /* Is the type time_t defined in <time.h>?  */
 #define HAVE_TIME_T_IN_TIME_H 1
 /* Is the type time_t defined in <sys/types.h>?  */
@@ -27,12 +20,8 @@ $ create []config.h
 #define HAVE_GOOD_UTIME_H 1
 /* Whether fprintf must be declared even if <stdio.h> is included.  */
 #define NEED_DECLARATION_FPRINTF 1
-/* Whether sbrk must be declared even if <unistd.h> is included.  */
-#undef NEED_DECLARATION_SBRK
 /* Do we need to use the b modifier when opening binary files?  */
 /* #undef USE_BINARY_FOPEN */
-/* Define if you have the sbrk function.  */
-#define HAVE_SBRK 1
 /* Define if you have the utimes function.  */
 #define HAVE_UTIMES 1
 /* Define if you have the <fcntl.h> header file.  */
@@ -47,32 +36,25 @@ $ create []config.h
 #define HAVE_SYS_FILE_H 1
 /* Define if you have the <unistd.h> header file.  */
 #define HAVE_UNISTD_H 1
-$ write sys$output "Generated `config.h'"
-$!
-$!
-$! Edit VERSION in makefile.vms
-$!
-$ edit/tpu/nojournal/nosection/nodisplay/command=sys$input -
-        []makefile.vms /output=[]makefile.vms
-$DECK
-!
-! Get VERSION from Makefile.in
-!
-   mfile := CREATE_BUFFER("mfile", "Makefile.in");
-   rang := CREATE_RANGE(BEGINNING_OF(mfile), END_OF(mfile));
-   v_pos := SEARCH_QUIETLY('VERSION=', FORWARD, EXACT, rang);
-   POSITION(BEGINNING_OF(v_pos));
-   vers := CURRENT_LINE;
-   IF match_pos <> 0 THEN;
-      file := CREATE_BUFFER("file", GET_INFO(COMMAND_LINE, "file_name"));
-      rang := CREATE_RANGE(BEGINNING_OF(file), END_OF(file));
-      match_pos := SEARCH_QUIETLY('VERSION=', FORWARD, EXACT, rang);
-      POSITION(BEGINNING_OF(match_pos));
-      ERASE_LINE;
-      COPY_TEXT(vers);
-      SPLIT_LINE;
-   ENDIF;
-   WRITE_FILE(file, GET_INFO(COMMAND_LINE, "output_file"));
-   QUIT
-$  EOD
-$ write sys$output "Patched `makefile.vms'"
+/* Alloca.  */
+#ifdef __DECC
+#include <builtins.h>
+#define C_alloca(x) __ALLOCA(x)
+#endif
+$!
+$! Add TARGET.
+$!
+$ if arch .eqs. "Alpha"
+$ then
+$   target = "vms-alpha"
+$ else
+$   target = "vms-vax"
+$ endif
+$!
+$ open/append tfile config.h
+$ write tfile "#define TARGET """ + target + """"
+$ close tfile
+$ write sys$output "Created `config.h'"
+$!
+$ copy makefile.vms-in makefile.vms
+$ write sys$output "Created `makefile.vms'"
This page took 0.024031 seconds and 4 git commands to generate.