/[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 588 - (show annotations) (download)
Thu May 11 02:06:46 2006 UTC (14 years, 2 months ago) by johnpye
File size: 1251 byte(s)
This fixes the new Driver.c implementation. Now, default values of the environment variables
are specified in the file base/generic/utilities/config.h.in, which should be tooled up with
you configuration process. These default values will be subject to environment substiution,
so that if you set the default ASCENDTK=$ASCENDDIST/TK, that will be expanded *at runtime*.
This is to help with the 'application folder' style of installation off-root.
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 path will be appended to the location of the current executable
13 in order to create the executable path in cases where ASC_RELATIVE_PATHS
14 is set.
15 */
16 #define ASC_DISTDIR "../share/ascend"
17
18 #define ASC_RELATIVE_PATHS
19
20 /*
21 Ben, you'll just need to add ASC_TK_SUBDIR_NAME="TK" to your autoconf DEFS
22 */
23 #define ASC_TK_SUBDIR_NAME "@ASC_TK_SUBDIR_NAME@"
24
25 /*
26 The following are the environment variables ASCEND requires.
27 If the user does not have the ASC_ENV_DIST set in his or her
28 environment, a default value is set based on the directory where the
29 ascend binary lives. The other environment variables will be set
30 to default values keyed off of ASC_ENV_DIST. See the function
31 CheckEnvironmentVars later in this file for the details.
32 */
33 #define ASC_ENV_DIST "ASCENDDIST"
34 #define ASC_ENV_TK "ASCENDTK"
35 #define ASC_ENV_BITMAPS "ASCENDBITMAPS"
36 #define ASC_ENV_LIBRARY "ASCENDLIBRARY"
37 #endif

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