/[ascend]/trunk/base/generic/utilities/config.h.in
ViewVC logotype

Contents of /trunk/base/generic/utilities/config.h.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 605 - (show annotations) (download)
Tue May 16 00:29:51 2006 UTC (13 years, 10 months ago) by johnpye
File size: 2779 byte(s)
Completing missing part of RELATIVE_PATHS configuration for SCons, to address bug #262.
1 // This file will be processed by SCons and output as config.h.
2 // Don't edit this file unless it's named 'config.h.in' unless
3 // it doesn't bother you that your changes will be IGNORED!
4
5 #ifndef ASC_CONFIG_H
6 #define ASC_CONFIG_H
7
8 #define ASC_DEFAULTPATH "@DEFAULT_ASCENDLIBRARY@"
9 #define ASC_DATADIR "@INSTALL_DATA@"
10
11 /*
12 This is the location of the 'dist dir' relative to the location of the
13 running executable. When ASC_RELATIVE_PATHS is set, this will be used to
14 guess the location for ASCEND's data files. A good value is
15
16 ..
17
18 but in /usr or /usr/local installations, a better value is
19
20 ../share/ascend
21 */
22 #define ASC_DISTDIR_REL_BIN "@ASC_DISTDIR_REL_BIN@"
23
24
25 /*
26 This variable determines whether you want an 'application folder' style
27 installation, or whether you want ASCEND's data files to be referenced
28 using absolute paths.
29
30 For a discussion of this, see
31 http://linux.slashdot.org/article.pl?sid=04/04/03/174249
32
33 At present, the only place this has any effect is in the Tcl/Tk
34 interface, in Driver.c's choices for default values of non-specified
35 environment variables.
36
37 SCons will replace 'ifndef ASC_ABSOLUTEPATHS' with 'if 0', depending on
38 configuration.
39 */
40 #ifdef ASC_RELATIVE_PATHS
41 # define ASC_RELATIVE_PATHS
42 #endif
43
44 /*
45 This is the default location of the tcl/tk scripts. $AAAAA environment
46 variables will be expanded at runtime, so a good value for example is
47
48 $ASCENDDIST/TK
49 */
50 #define ASC_ENV_TK_DEFAULT "@ASC_ENV_TK_DEFAULT@"
51
52
53 /*
54 Whether to use xterm colours when writing 'error.h' output, eg
55 'ERROR' in red, etc. If not defined, colour will never be used.
56 If defined, colour will be used any time the the TERM environment
57 variable is set to 'xterm' or 'msys'. MSYS uses the 'rxvt' console,
58 which knows about xterm colour codes.
59
60 SCons will replace 'ifdef ASC_XTERM_COLORS' with 'if 1' if required.
61 Doing it this (hacky) way so as not to mess up autoconf.
62 */
63 #ifdef ASC_XTERM_COLORS
64 # define ASC_XTERM_COLORS
65 #endif
66
67 /*
68 Whether to do use testing malloc. Required for some of the CUnit
69 tests to work fully.
70
71 SCons will replace 'ifdef MALLOC_DEBUG' with 'if 1' if required.
72 Doing it this (hacky) way so as not to mess up autoconf.
73 */
74 #ifdef MALLOC_DEBUG
75 # define MALLOC_DEBUG
76 #endif
77
78 /*
79 The following are the environment variables ASCEND requires.
80 If the user does not have the ASC_ENV_DIST set in his or her
81 environment, a default value is set based on the directory where the
82 ascend binary lives. The other environment variables will be set
83 to default values keyed off of ASC_ENV_DIST. See the function
84 CheckEnvironmentVars later in this file for the details.
85 */
86 #define ASC_ENV_DIST "ASCENDDIST"
87 #define ASC_ENV_TK "ASCENDTK"
88 #define ASC_ENV_BITMAPS "ASCENDBITMAPS"
89 #define ASC_ENV_LIBRARY "ASCENDLIBRARY"
90 #endif

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22