2158
|
1 // defaults.h.in |
12
|
2 /* |
|
3 |
2847
|
4 Copyright (C) 1996, 1997 John W. Eaton |
12
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
20 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
21 02110-1301, USA. |
12
|
22 |
|
23 */ |
|
24 |
423
|
25 #if !defined (octave_defaults_h) |
|
26 #define octave_defaults_h 1 |
12
|
27 |
2204
|
28 #include <string> |
|
29 |
3174
|
30 #include "pathsearch.h" |
|
31 |
3584
|
32 #ifndef OCTAVE_CANONICAL_HOST_TYPE |
|
33 #define OCTAVE_CANONICAL_HOST_TYPE %OCTAVE_CANONICAL_HOST_TYPE% |
|
34 #endif |
|
35 |
|
36 #ifndef OCTAVE_DEFAULT_PAGER |
|
37 #define OCTAVE_DEFAULT_PAGER %OCTAVE_DEFAULT_PAGER% |
12
|
38 #endif |
|
39 |
3584
|
40 #ifndef OCTAVE_ARCHLIBDIR |
|
41 #define OCTAVE_ARCHLIBDIR %OCTAVE_ARCHLIBDIR% |
|
42 #endif |
|
43 |
|
44 #ifndef OCTAVE_BINDIR |
|
45 #define OCTAVE_BINDIR %OCTAVE_BINDIR% |
|
46 #endif |
|
47 |
|
48 #ifndef OCTAVE_DATADIR |
|
49 #define OCTAVE_DATADIR %OCTAVE_DATADIR% |
666
|
50 #endif |
|
51 |
5847
|
52 #ifndef OCTAVE_DATAROOTDIR |
|
53 #define OCTAVE_DATAROOTDIR %OCTAVE_DATAROOTDIR% |
|
54 #endif |
|
55 |
666
|
56 #ifndef OCTAVE_EXEC_PREFIX |
|
57 #define OCTAVE_EXEC_PREFIX %OCTAVE_EXEC_PREFIX% |
|
58 #endif |
|
59 |
3584
|
60 #ifndef OCTAVE_FCNFILEDIR |
|
61 #define OCTAVE_FCNFILEDIR %OCTAVE_FCNFILEDIR% |
666
|
62 #endif |
|
63 |
3584
|
64 #ifndef OCTAVE_IMAGEDIR |
|
65 #define OCTAVE_IMAGEDIR %OCTAVE_IMAGEDIR% |
666
|
66 #endif |
|
67 |
3584
|
68 #ifndef OCTAVE_INCLUDEDIR |
|
69 #define OCTAVE_INCLUDEDIR %OCTAVE_INCLUDEDIR% |
798
|
70 #endif |
|
71 |
666
|
72 #ifndef OCTAVE_INFODIR |
|
73 #define OCTAVE_INFODIR %OCTAVE_INFODIR% |
12
|
74 #endif |
|
75 |
2512
|
76 #ifndef OCTAVE_INFOFILE |
|
77 #define OCTAVE_INFOFILE %OCTAVE_INFOFILE% |
|
78 #endif |
|
79 |
3584
|
80 #ifndef OCTAVE_LIBDIR |
|
81 #define OCTAVE_LIBDIR %OCTAVE_LIBDIR% |
|
82 #endif |
|
83 |
|
84 #ifndef OCTAVE_LIBEXECDIR |
|
85 #define OCTAVE_LIBEXECDIR %OCTAVE_LIBEXECDIR% |
|
86 #endif |
|
87 |
|
88 #ifndef OCTAVE_LIBEXECDIR |
|
89 #define OCTAVE_LIBEXECDIR %OCTAVE_LIBEXECDIR% |
|
90 #endif |
|
91 |
4449
|
92 #ifndef OCTAVE_LOCALAPIFCNFILEDIR |
|
93 #define OCTAVE_LOCALAPIFCNFILEDIR %OCTAVE_LOCALAPIFCNFILEDIR% |
|
94 #endif |
|
95 |
|
96 #ifndef OCTAVE_LOCALAPIOCTFILEDIR |
|
97 #define OCTAVE_LOCALAPIOCTFILEDIR %OCTAVE_LOCALAPIOCTFILEDIR% |
|
98 #endif |
|
99 |
3584
|
100 #ifndef OCTAVE_LOCALARCHLIBDIR |
|
101 #define OCTAVE_LOCALARCHLIBDIR %OCTAVE_LOCALARCHLIBDIR% |
666
|
102 #endif |
|
103 |
1476
|
104 #ifndef OCTAVE_LOCALFCNFILEDIR |
|
105 #define OCTAVE_LOCALFCNFILEDIR %OCTAVE_LOCALFCNFILEDIR% |
|
106 #endif |
|
107 |
3584
|
108 #ifndef OCTAVE_LOCALOCTFILEDIR |
|
109 #define OCTAVE_LOCALOCTFILEDIR %OCTAVE_LOCALOCTFILEDIR% |
|
110 #endif |
|
111 |
|
112 #ifndef OCTAVE_LOCALSTARTUPFILEDIR |
4443
|
113 #define OCTAVE_LOCALSTARTUPFILEDIR %OCTAVE_LOCALSTARTUPFILEDIR% |
3584
|
114 #endif |
|
115 |
5909
|
116 #ifndef OCTAVE_LOCALAPIARCHLIBDIR |
|
117 #define OCTAVE_LOCALAPIARCHLIBDIR %OCTAVE_LOCALAPIARCHLIBDIR% |
|
118 #endif |
|
119 |
3597
|
120 #ifndef OCTAVE_LOCALVERARCHLIBDIR |
|
121 #define OCTAVE_LOCALVERARCHLIBDIR %OCTAVE_LOCALVERARCHLIBDIR% |
|
122 #endif |
|
123 |
|
124 #ifndef OCTAVE_LOCALVERFCNFILEDIR |
|
125 #define OCTAVE_LOCALVERFCNFILEDIR %OCTAVE_LOCALVERFCNFILEDIR% |
|
126 #endif |
|
127 |
|
128 #ifndef OCTAVE_LOCALVEROCTFILEDIR |
|
129 #define OCTAVE_LOCALVEROCTFILEDIR %OCTAVE_LOCALVEROCTFILEDIR% |
|
130 #endif |
|
131 |
3584
|
132 #ifndef OCTAVE_MAN1DIR |
|
133 #define OCTAVE_MAN1DIR %OCTAVE_MAN1DIR% |
|
134 #endif |
|
135 |
|
136 #ifndef OCTAVE_MAN1EXT |
|
137 #define OCTAVE_MAN1EXT %OCTAVE_MAN1EXT% |
|
138 #endif |
|
139 |
|
140 #ifndef OCTAVE_MANDIR |
|
141 #define OCTAVE_MANDIR %OCTAVE_MANDIR% |
2439
|
142 #endif |
|
143 |
666
|
144 #ifndef OCTAVE_OCTFILEDIR |
|
145 #define OCTAVE_OCTFILEDIR %OCTAVE_OCTFILEDIR% |
|
146 #endif |
|
147 |
3584
|
148 #ifndef OCTAVE_OCTINCLUDEDIR |
|
149 #define OCTAVE_OCTINCLUDEDIR %OCTAVE_OCTINCLUDEDIR% |
666
|
150 #endif |
|
151 |
3584
|
152 #ifndef OCTAVE_OCTLIBDIR |
|
153 #define OCTAVE_OCTLIBDIR %OCTAVE_OCTLIBDIR% |
666
|
154 #endif |
|
155 |
3584
|
156 #ifndef OCTAVE_PREFIX |
|
157 #define OCTAVE_PREFIX %OCTAVE_PREFIX% |
684
|
158 #endif |
|
159 |
3584
|
160 #ifndef OCTAVE_STARTUPFILEDIR |
4443
|
161 #define OCTAVE_STARTUPFILEDIR %OCTAVE_STARTUPFILEDIR% |
423
|
162 #endif |
|
163 |
5658
|
164 #ifndef OCTAVE_RELEASE |
|
165 #define OCTAVE_RELEASE %OCTAVE_RELEASE% |
|
166 #endif |
|
167 |
3532
|
168 extern std::string Voctave_home; |
2204
|
169 |
3532
|
170 extern std::string Vbin_dir; |
|
171 extern std::string Vinfo_dir; |
|
172 extern std::string Vdata_dir; |
|
173 extern std::string Vlibexec_dir; |
|
174 extern std::string Varch_lib_dir; |
|
175 extern std::string Vlocal_arch_lib_dir; |
3597
|
176 extern std::string Vlocal_ver_arch_lib_dir; |
5814
|
177 |
|
178 extern std::string Vlocal_ver_oct_file_dir; |
|
179 extern std::string Vlocal_api_oct_file_dir; |
|
180 extern std::string Vlocal_oct_file_dir; |
|
181 |
|
182 extern std::string Vlocal_ver_fcn_file_dir; |
|
183 extern std::string Vlocal_api_fcn_file_dir; |
|
184 extern std::string Vlocal_fcn_file_dir; |
|
185 |
|
186 extern std::string Voct_file_dir; |
3532
|
187 extern std::string Vfcn_file_dir; |
5814
|
188 |
|
189 extern std::string Vimage_dir; |
2204
|
190 |
|
191 // Name of the editor to be invoked by the edit_history command. |
5794
|
192 extern std::string VEDITOR; |
2204
|
193 |
3532
|
194 extern std::string Vlocal_site_defaults_file; |
|
195 extern std::string Vsite_defaults_file; |
2204
|
196 |
4776
|
197 // Name of the FFTW wisdom program. |
5794
|
198 extern std::string Vfftw_wisdom_program; |
4776
|
199 |
6274
|
200 extern std::string subst_octave_home (const std::string&); |
|
201 |
2198
|
202 extern void install_defaults (void); |
|
203 |
5814
|
204 extern void set_exec_path (const std::string& path = std::string ()); |
|
205 extern void set_image_path (const std::string& path = std::string ()); |
|
206 |
12
|
207 #endif |
|
208 |
|
209 /* |
|
210 ;;; Local Variables: *** |
|
211 ;;; mode: C++ *** |
|
212 ;;; page-delimiter: "^/\\*" *** |
|
213 ;;; End: *** |
|
214 */ |