xref: /dflybsd-src/contrib/gcc-4.7/libiberty/configure.com (revision 04febcfb30580676d3e95f58a16c5137ee478b32)
1*e4b17023SJohn Marino$!
2*e4b17023SJohn Marino$! This file configures the libiberty library for use with openVMS.
3*e4b17023SJohn Marino$!
4*e4b17023SJohn Marino$! We do not use the configure script, since we do not have /bin/sh
5*e4b17023SJohn Marino$! to execute it.
6*e4b17023SJohn Marino$!
7*e4b17023SJohn Marino$! Written by Tristan Gingold (gingold@adacore.com)
8*e4b17023SJohn Marino$!
9*e4b17023SJohn Marino$!
10*e4b17023SJohn Marino$!
11*e4b17023SJohn Marino$ copy config.h-vms config.h
12*e4b17023SJohn Marino$!
13*e4b17023SJohn Marino$ write sys$output "Generate libiberty build.com"
14*e4b17023SJohn Marino$!
15*e4b17023SJohn Marino$ create build.com
16*e4b17023SJohn Marino$DECK
17*e4b17023SJohn Marino$ FILES="getopt,obstack,xexit,xmalloc,hex,getopt1,cplus-dem,cp-demangle,"+-
18*e4b17023SJohn Marino    "cp-demint,asprintf,vasprintf,mkstemps,concat,getruntime,getpagesize,"+-
19*e4b17023SJohn Marino    "getpwd,xstrerror,xmemdup,xstrdup,xatexit,choose-temp,fnmatch,objalloc,"+-
20*e4b17023SJohn Marino    "safe-ctype,hashtab,lbasename,argv,lrealpath,make-temp-file,"+-
21*e4b17023SJohn Marino    "stpcpy,unlink-if-ordinary"
22*e4b17023SJohn Marino$ OPT="/noopt/debug/warnings=disable=(missingreturn)"
23*e4b17023SJohn Marino$ CFLAGS=OPT + "/include=([],[-.include])/name=(as_is,shortened)" +-
24*e4b17023SJohn Marino "/define=(HAVE_CONFIG_H=1)" +-
25*e4b17023SJohn Marino "/prefix=(all,exc=(""getopt"",""optarg"",""optopt"",""optind"",""opterr""))"
26*e4b17023SJohn Marino$ write sys$output "CFLAGS=",CFLAGS
27*e4b17023SJohn Marino$ NUM = 0
28*e4b17023SJohn Marino$ LOOP:
29*e4b17023SJohn Marino$   F = F$ELEMENT(NUM,",",FILES)
30*e4b17023SJohn Marino$   IF F.EQS."," THEN GOTO END
31*e4b17023SJohn Marino$   write sys$output "Compiling ", F, ".c"
32*e4b17023SJohn Marino$   cc 'CFLAGS 'F.c
33*e4b17023SJohn Marino$   NUM = NUM + 1
34*e4b17023SJohn Marino$   GOTO LOOP
35*e4b17023SJohn Marino$ END:
36*e4b17023SJohn Marino$ purge
37*e4b17023SJohn Marino$ lib/create libiberty 'FILES
38*e4b17023SJohn Marino$EOD
39