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

Diff of /trunk/ascend/utilities/config.h.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2024 by jpye, Tue Apr 28 08:58:48 2009 UTC revision 2025 by jpye, Thu Apr 30 02:15:05 2009 UTC
# Line 77  Line 77 
77  #define ASC_SHLIBSUFFIX "@SHLIBSUFFIX@"  #define ASC_SHLIBSUFFIX "@SHLIBSUFFIX@"
78    
79  /*  /*
80        FIXME changes are being made to streamline the following...
81    
82      This variable determines how ASCEND goes about finding all its stuff at runtime,      This variable determines how ASCEND goes about finding all its stuff at runtime,
83      assuming the ASCENDDIST environment variable is *not* present.      assuming the ASCENDDIST environment variable is *not* present.
84    
# Line 105  Line 107 
107    
108      Note: do not use ASC_ABSOLUTE_PATHS on Windows. Absolute paths mess up the      Note: do not use ASC_ABSOLUTE_PATHS on Windows. Absolute paths mess up the
109      ability of the installer to relocate files at install-time.      ability of the installer to relocate files at install-time.
 */  
 #ifndef ASC_ABSOLUTE_PATHS  
 /* #define ASC_ABSOLUTE_PATHS @ASC_ABSOLUTE_PATHS@ */  
 #endif  
   
 /*  
     See ASC_ABSOLUTE_PATHS above. ASC_DATADIR is the default value of ASCCENDDIST  
     in the case of ASC_ABSOLUTE_PATHS.  
 */  
 #define ASC_DATADIR "@INSTALL_ASCDATA@"  
   
 /*  
   See ASC_ABSOLUTE_PATHS above. In the case of relative paths, ASCENDDIST is  
   derived from ASC_DISTDIR_REL_BIN: this path is suffixed to the name of  
   the directory in which the currently-running executable is located. Depending  
   on how you are installing ASCEND, sensible values are likely to be  
   either '..' or '../share/ascend'.  
110    
111    Only applies when ASC_ABSOLUTE_PATHS is *not* defined.      For Tcl/Tk the following #defines can be needed:
112            ASCENDDIST_DEFAULT
113            ASCENDTK_DEFAULT
114            ASCENDLIBRARY_DEFAULT
115            ASCENDSOLVERS_DEFAULT
116    
117            ASC_ABSOLUTE_PATHS
118            ASC_DIST_REL_BIN
119            ASC_TK_REL_DIST
120            ASC_LIBRARY_REL_DIST
121            ASC_SOLVERS_REL_DIST
122    
123        Then, using these, in the case of relative paths, we choose:
124    
125            ASCENDROOT = $PROGDIR/@ASC_DIST_REL_BIN@
126            ASCENDTK = $ASCENDROOT/@ASC_TK_REL_DIST@
127            ASCENDLIBRARY = $ASCENDROOT/@ASC_LIBRARY_REL_DIST@
128            ASCENDSOLVERS = $ASCENDROOT/@ASC_SOLVERS_ROL_DIST@
129  */  */
130  #define ASC_DISTDIR_REL_BIN "@ASC_DISTDIR_REL_BIN@"  #define ASC_ABSOLUTE_PATHS @ASC_ABSOLUTE_PATHS@
131    #if ASC_ABSOLUTE_PATHS
132  /*  # define ASCENDDIST_DEFAULT "@ASCENDDIST_DEFAULT@"
133      This is the default location of the tcl/tk scripts. Environment  # define ASCENDTK_DEAFULT "@ASCENDTK_DEFAULT@"
134      variables (dollar sign followed by uppercase letters)  # define ASCENDLIBRARY_DEFAULT "@ASCENDLIBRARY_DEFAULT@"
135      will be expanded at runtime, so a good value for example is  # define ASCENDSOLVERS_DEFAULT "@ASCENDSOLVERS_DEFAULT@"
136    #else
137      $ASCENDDIST/TK  # define ASC_DIST_REL_BIN "@ASC_DIST_REL_BIN@"
138  */  # define ASC_TK_REL_DIST "@ASC_TK_REL_DIST@"
139  #define ASC_ENV_TK_DEFAULT "@ASC_ENV_TK_DEFAULT@"  # define ASC_LIBRARY_REL_DIST "@ASC_LIBRARY_REL_DIST@"
140    # define ASC_SOLVERS_REL_DIST "@ASC_SOLVERS_REL_DIST@"
141    #endif
142    
143  /*  /*
144      Whether to use xterm colours when writing 'error.h' output, eg      Whether to use xterm colours when writing 'error.h' output, eg

Legend:
Removed from v.2024  
changed lines
  Added in v.2025

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