implemented Setup.hs to build boehm cpp libs and install them;
[hs-boehmgc.git] / gc-7.2 / extra / add_gc_prefix.c
1 # include <stdio.h>
2 # include <gc.h>
3  
4 #ifndef GC_ALPHA_VERSION
5 # define GC_ALPHA_VERSION GC_TMP_ALPHA_VERSION
6 #endif
7
8 int main(argc, argv, envp)
9 int argc;
10 char ** argv;
11 char ** envp;
12 {
13     int i;
14     
15     for (i = 1; i < argc; i++) {
16       if (GC_ALPHA_VERSION == GC_NOT_ALPHA) {
17         printf("gc%d.%d/%s ", GC_VERSION_MAJOR, GC_VERSION_MINOR, argv[i]);
18       } else {
19         printf("gc%d.%dalpha%d/%s ", GC_VERSION_MAJOR,
20                GC_VERSION_MINOR, GC_ALPHA_VERSION, argv[i]);
21       }
22     }
23     return(0);
24 }