/************************************************************************ General site-specific configuration information: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This is where _general_ facts about your local computing environment are recorded. _Project-specific_ facts go in "site-.jm", and facts specific to a ``setup'' of a project (unlikely...) go in "site--.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--.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