summaryrefslogtreecommitdiff
path: root/web/glasgow/lit2x-0.16/mkworld/site.dist
blob: 94b8c9a1098cdb47b2686f8bb0b31f8bc296df48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/************************************************************************

General site-specific configuration information:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is where _general_ facts about your local computing environment
are recorded.

_Project-specific_ facts go in "site-<project>.jm", and facts specific
to a ``setup'' of a project (unlikely...) go in
"site-<project>-<setup>.jm".

As you will see, the general style for setting these configuration facts is:

    #ifndef ABuildParameter
    #define ABuildParameter myvalue
    #endif

This particular file is for the Computing Science Dept at Glasgow
University.
************************************************************************/

#ifndef PerlCmd
#if defined(LinuxOSPlatform)
#define PerlCmd /usr/bin/perl
#else
#define PerlCmd /usr/local/bin/perl
#endif /* ! Linux */
#endif /* PerlCmd */

/* For "make tags", we recommend "etags" from the Emacs distribution.
   (we supply a variant in the GHC distribution; grasp-utils/etags)
   If not readily available on your search PATH, say where to find it here.
 */
#ifndef CTagsCmd
#define CTagsCmd $(ETAGS)
#endif

/*
 * Site-specific compiler things: for Glasgow
 */

/* --------------- C compiler --------------------------------- */
/* we have gcc [by which we mean version 2.n] for sun4s and sun3s;
    IT IS GOOD TO SAY `YES' !
    (It is *essential* for the Glasgow Haskell compiler)
 */
#ifndef HaveGcc
#if defined(SparcArchitecture)		\
	|| defined(m68kArchitecture)	\
	|| defined(AlphaArchitecture)	\
	|| defined(LinuxOSPlatform)
#define HaveGcc YES
#else
#define HaveGcc NO
#endif /* ! one of those */
#endif /* ! HaveGcc */

#ifndef WhatGccIsCalled /* version 2.n, please */
#if defined(m68kArchitecture)
#define WhatGccIsCalled gcc-m68k /* to tell the truth, we cross-compile */
#else
#define WhatGccIsCalled gcc
#endif /* m68k */
#endif /* ! WhatGccIsCalled */

/* Set UseGcc to YES if you want to use it for "ordinary" C compilations.
   YES, by default.  "UseGcc" *and* "HaveGcc" both have to be YES for
   anything to happen.

   This is *independent* of whether you set "UseGccForNormalGhcAsm"
   and/or "UseGccForOptGhcAsm", which are GHC-specific.
*/

#if ! defined(UseGcc) && HaveGcc == YES
#define UseGcc	YES
#endif /* ! UseGcc */

/* --------------- "standard" Haskell compiler --------------------------- */

/* What do we *have*?
    We have Chalmers "hbc" for sun4s
    We have Glasgow Haskell (called "glhc" at Glasgow) for sun4s and sun3s
*/
#ifndef HaveChalmersHBC
#if defined(SparcArchitecture)	\
 || defined(LinuxOSPlatform)
#define HaveChalmersHBC	YES
#else
#define HaveChalmersHBC NO
#endif /* ! one of those */
#endif /* ! HaveChalmersHBC */

#ifndef HaveGlasgowHaskell
#if defined(m68kArchitecture)	\
 || defined(SparcArchitecture)	\
 || defined(AlphaArchitecture)
#define HaveGlasgowHaskell YES
#else
#define HaveGlasgowHaskell NO
#endif /* ! m68k or sparc */
#endif /* ! HaveGlasgowHaskell */

#ifndef WhatGhcIsCalled /* Glasgow Haskell compiler */
#define WhatGhcIsCalled ghc
#endif

/* What do we *use* for our "standard Haskell compiler"?
    A "setup" may very well set this (mkworld/site-<project>-<setup>.jm);
    the default is Glasgow Haskell.
*/
#if !defined(UseGlasgowHaskell) && !defined(UseChalmersHBC)
#define UseGlasgowHaskell YES
#endif

/* Finally: set "HaskellCompileCmd" (your "standard Haskell compiler")
*/
#ifndef HaskellCompileCmd
#if HaveGlasgowHaskell == YES && UseGlasgowHaskell == YES
#define HaskellCompileCmd	WhatGhcIsCalled
#else /* ! ...GlasgowHaskell */
#if HaveChalmersHBC == YES && UseChalmersHBC == YES
#define HaskellCompileCmd	hbc
#else
#define HaskellCompileCmd	no_default_haskell_compiler_defined
#endif /* ! ...ChalmersHBC */
#endif /* ! ...GlasgowHaskell */
#endif /* ! HaskellCompileCmd */

/* --------------- V misc stuff --------------------------- */

/* Your main directory for GNU Info files should come first.
   If in doubt, get an Emacs person to do "C-h v Info-directory"
   to tell you where Emacs looks for Info files.
*/
#ifndef DefaultInfoPath
#if defined(LinuxOSPlatform)
#define DefaultInfoPath /usr/emacs/info:.
#else
#define DefaultInfoPath /local/doc/info:.
#endif
#endif

/* ugly, ain't it ? */
#ifndef TgrindHelperCmd
#define TgrindHelperCmd	/usr/local/tex/lib/tgrind/HostPlatform/tfontedpr
#endif