860
|
1 # @configure_input@ |
5
|
2 # |
|
3 # Common configuration rules for all of octave's Makefiles. |
|
4 # |
|
5 # John W. Eaton |
1450
|
6 # jwe@bevo.che.wisc.edu |
|
7 # University of Wisconsin-Madison |
5
|
8 # Department of Chemical Engineering |
1450
|
9 |
5
|
10 SHELL = /bin/sh |
|
11 |
4084
|
12 SED = @SED@ |
|
13 |
3029
|
14 # A shell command to extract the version number from version.h. |
4084
|
15 getversion = $(SED) -e '/VERSION/!d' -e 's/.*"\(.*\)".*$$/\1/' -e q |
3029
|
16 |
|
17 # Look for version.h to get version information. |
|
18 xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h |
|
19 version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file)))) |
|
20 version := $(shell $(getversion) $(version_file)) |
|
21 |
5
|
22 #### Start of system configuration section. #### |
|
23 |
3892
|
24 EXEEXT = @EXEEXT@ |
2577
|
25 |
4098
|
26 BUILD_EXEEXT = @BUILD_EXEEXT@ |
|
27 |
5
|
28 LEX = @LEX@ |
|
29 LFLAGS = @LFLAGS@ |
|
30 LEXLIB = @LEXLIB@ |
|
31 |
|
32 YACC = @YACC@ |
|
33 YFLAGS = -dv |
|
34 |
3675
|
35 GPERF = @GPERF@ |
|
36 |
1462
|
37 AR = @AR@ |
|
38 ARFLAGS = @ARFLAGS@ |
|
39 |
3775
|
40 TEMPLATE_AR = @TEMPLATE_AR@ |
|
41 TEMPLATE_ARFLAGS = @TEMPLATE_ARFLAGS@ |
|
42 |
5
|
43 RANLIB = @RANLIB@ |
|
44 |
1722
|
45 LN_S = @LN_S@ |
|
46 |
5
|
47 RUNTEST = @RUNTEST@ |
|
48 |
2518
|
49 TEXI2DVI = $(top_srcdir)/texi2dvi |
|
50 |
5
|
51 DEFAULT_PAGER = @DEFAULT_PAGER@ |
|
52 |
4128
|
53 ENABLE_DYNAMIC_LINKING = @ENABLE_DYNAMIC_LINKING@ |
702
|
54 |
3034
|
55 STATIC_LIBS = @STATIC_LIBS@ |
|
56 |
1679
|
57 SHARED_LIBS = @SHARED_LIBS@ |
|
58 SHLEXT = @SHLEXT@ |
4126
|
59 SHLEXT_VER = @SHLEXT_VER@ |
4102
|
60 SHLLIB = @SHLLIB@ |
4126
|
61 SHLLIB_VER = @SHLLIB_VER@ |
4102
|
62 SHLBIN = @SHLBIN@ |
4126
|
63 SHLBIN_VER = @SHLBIN_VER@ |
|
64 SHLLINKEXT= |
4102
|
65 |
|
66 INCLUDE_LINK_DEPS = @INCLUDE_LINK_DEPS@ |
3029
|
67 |
|
68 LIBEXT = a |
1667
|
69 |
5
|
70 # Fortran to C translator and associated flags. |
|
71 |
|
72 F2C = @F2C@ |
|
73 F2CFLAGS = @F2CFLAGS@ |
|
74 |
|
75 # Fortran compiler flags. |
|
76 |
1163
|
77 FC = @FC@ |
798
|
78 F77 = @F77@ |
5
|
79 FFLAGS = @FFLAGS@ |
1832
|
80 FPICFLAG = @FPICFLAG@ |
2610
|
81 ALL_FFLAGS = $(FFLAGS) |
5
|
82 |
|
83 # cc and associated flags. |
|
84 |
2064
|
85 DLFCN_INCFLAGS = @DLFCN_INCFLAGS@ |
3215
|
86 GLOB_INCFLAGS = @GLOB_INCFLAGS@ |
2064
|
87 |
236
|
88 # Clean up INCFLAGS a bit if we are not compiling in a separate |
|
89 # directory. |
|
90 ifeq ($(srcdir),.) |
2546
|
91 TMP_IF_1 = -I. |
236
|
92 else |
2546
|
93 TMP_IF_1 = -I. -I$(srcdir) |
236
|
94 endif |
404
|
95 ifeq ($(TOPDIR),$(top_srcdir)) |
1832
|
96 TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \ |
3156
|
97 -I$(TOPDIR)/libcruft/misc |
236
|
98 else |
507
|
99 TMP_IF_2 = -I$(TOPDIR) -I$(TOPDIR)/liboctave -I$(TOPDIR)/src \ |
3156
|
100 -I$(TOPDIR)/libcruft/misc -I$(top_srcdir) \ |
2546
|
101 -I$(top_srcdir)/liboctave -I$(top_srcdir)/src \ |
3156
|
102 -I$(top_srcdir)/libcruft/misc |
236
|
103 endif |
3156
|
104 INCFLAGS = $(TMP_IF_1) $(TMP_IF_2) $(DLFCN_INCFLAGS) $(GLOB_INCFLAGS) |
236
|
105 |
5
|
106 LIBFLAGS = -L$(TOPDIR) |
236
|
107 |
5
|
108 DEFS = @DEFS@ |
|
109 |
2032
|
110 UGLY_DEFS = @UGLY_DEFS@ |
|
111 |
5
|
112 CC = @CC@ |
1891
|
113 CC_VERSION = @CC_VERSION@ |
5
|
114 CFLAGS = @CFLAGS@ |
1832
|
115 CPICFLAG = @CPICFLAG@ |
3126
|
116 XTRA_CFLAGS = @XTRA_CFLAGS@ |
|
117 ALL_CFLAGS = $(INCFLAGS) $(DEFS) $(XTRA_CFLAGS) $(CFLAGS) |
|
118 BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(CFLAGS) |
798
|
119 |
4094
|
120 BUILD_CC = @BUILD_CC@ |
|
121 BUILD_CFLAGS = @BUILD_CFLAGS@ |
4093
|
122 |
3775
|
123 DEPEND_FLAGS = @DEPEND_FLAGS@ |
|
124 DEPEND_EXTRA_SED_PATTERN = @DEPEND_EXTRA_SED_PATTERN@ |
|
125 |
198
|
126 CXX = @CXX@ |
1891
|
127 CXX_VERSION = @CXX_VERSION@ |
518
|
128 CXXCPP = @CXXCPP@ |
198
|
129 CXXFLAGS = @CXXFLAGS@ |
1832
|
130 CXXPICFLAG = @CXXPICFLAG@ |
3126
|
131 XTRA_CXXFLAGS = @XTRA_CXXFLAGS@ |
|
132 ALL_CXXFLAGS = $(INCFLAGS) $(DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS) |
|
133 UGLY_ALL_CXXFLAGS = $(INCFLAGS) $(UGLY_DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS) |
|
134 BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(CXXFLAGS) |
5
|
135 |
4094
|
136 BUILD_CXX = @BUILD_CXX@ |
|
137 BUILD_CXXFLAGS = @BUILD_CXXFLAGS@ |
4093
|
138 |
858
|
139 CPPFLAGS = @CPPFLAGS@ |
|
140 |
3705
|
141 LD_CXX = @LD_CXX@ |
5
|
142 LDFLAGS = @LDFLAGS@ |
708
|
143 LD_STATIC_FLAG = @LD_STATIC_FLAG@ |
3887
|
144 ALL_LDFLAGS = $(LIBFLAGS) $(LD_STATIC_FLAG) $(CPICFLAG) $(LDFLAGS) |
5
|
145 |
2676
|
146 SH_LD = @SH_LD@ |
|
147 SH_LDFLAGS = @SH_LDFLAGS@ |
|
148 |
3036
|
149 SONAME_FLAGS = @SONAME_FLAGS@ |
|
150 |
3233
|
151 RDYNAMIC_FLAG = @RDYNAMIC_FLAG@ |
|
152 |
2674
|
153 RLD_FLAG = @RLD_FLAG@ |
|
154 |
5
|
155 FLIBS = @FLIBS@ |
708
|
156 |
2930
|
157 LIBDLFCN = @LIBDLFCN@ |
3215
|
158 LIBGLOB = @LIBGLOB@ |
2147
|
159 LIBPLPLOT = @LIBPLPLOT@ |
3156
|
160 LIBKPATHSEA = @LIBKPATHSEA@ |
|
161 LIBOCTINTERP = @LIBOCTINTERP@ |
|
162 LIBOCTAVE = @LIBOCTAVE@ |
|
163 LIBCRUFT = @LIBCRUFT@ |
4102
|
164 LIBREADLINE = @LIBREADLINE@ |
|
165 TERMLIBS = @TERMLIBS@ |
3726
|
166 |
|
167 BLAS_LIBS = @BLAS_LIBS@ |
3827
|
168 FFTW_LIBS = @FFTW_LIBS@ |
3726
|
169 LIBS = @LIBS@ |
5
|
170 |
2155
|
171 # The arguments passed to configure. |
2156
|
172 config_opts = @config_opts@ |
2155
|
173 |
666
|
174 # ==================== Where To Install Things ==================== |
5
|
175 |
666
|
176 # The default location for installation. Everything is placed in |
|
177 # subdirectories of this directory. The default values for many of |
|
178 # the variables below are expressed in terms of this one, so you may |
|
179 # not need to change them. This defaults to /usr/local. |
|
180 prefix = @prefix@ |
5
|
181 |
666
|
182 # Like `prefix', but used for architecture-specific files. |
|
183 exec_prefix = @exec_prefix@ |
|
184 |
|
185 # Where to install Octave and other binaries that people will want to |
|
186 # run directly. |
|
187 bindir = @bindir@ |
5
|
188 |
666
|
189 # Where to install architecture-independent data files. ${fcnfiledir} |
|
190 # and ${localfcnfiledir} are subdirectories of this. |
|
191 datadir = @datadir@ |
5
|
192 |
3141
|
193 libdir = @libdir@ |
|
194 |
666
|
195 # Where to install and expect libraries like libcruft.a, liboctave.a, |
3141
|
196 # and other architecture-dependent data. |
|
197 octlibdir = @octlibdir@ |
5
|
198 |
1720
|
199 # Where to install and expect executable programs to be run by Octave |
|
200 # rather than directly by users. |
|
201 libexecdir = @libexecdir@ |
|
202 |
2141
|
203 # The prefix for Octave's include file directory. The default is |
|
204 # ${prefix}/include |
2223
|
205 includedir = @includedir@ |
2141
|
206 |
666
|
207 # Where to install Octave's man pages, and what extension they should |
|
208 # have. The default is ${prefix}/man/man1 |
|
209 mandir = @mandir@ |
2223
|
210 man1dir = @man1dir@ |
|
211 man1ext = @man1ext@ |
5
|
212 |
666
|
213 # Where to install and expect the info files describing Octave.. |
|
214 infodir = @infodir@ |
|
215 |
2512
|
216 # The fill path to the default info file. |
|
217 infofile = @infofile@ |
|
218 |
666
|
219 # ==================== Octave-specific directories ==================== |
|
220 |
2993
|
221 # These variables hold the values specific to Octave. They are |
666
|
222 # based on the values of the standard Make variables above. |
|
223 |
3597
|
224 # Where to install Octave's include files (they will actually be |
|
225 # installed in a subdirectory called octave). The default is |
2993
|
226 # ${includedir}/octave-${version} |
|
227 octincludedir = @octincludedir@ |
|
228 |
666
|
229 # Where to install the function file distributed with |
|
230 # Octave. This includes the Octave version, so that the |
|
231 # function files for different versions of Octave will install |
|
232 # themselves in separate directories. |
|
233 fcnfiledir = @fcnfiledir@ |
|
234 |
|
235 # Directories Octave should search for function files specific |
|
236 # to this site (i.e. customizations), before consulting |
|
237 # ${fcnfiledir}. This should be a colon-separated list of |
|
238 # directories. |
827
|
239 localfcnfiledir = @localfcnfiledir@ |
3597
|
240 localverfcnfiledir = @localverfcnfiledir@ |
666
|
241 localfcnfilepath = @localfcnfilepath@ |
5
|
242 |
666
|
243 # Where to put executables to be run by Octave rather than |
|
244 # the user. This path usually includes the Octave version |
|
245 # and configuration name, so that multiple configurations |
|
246 # for multiple versions of Octave may be installed at once. |
|
247 archlibdir = @archlibdir@ |
|
248 |
2439
|
249 # Where to put executables to be run by Octave rather than by the |
|
250 # user that are specific to this site. |
|
251 localarchlibdir = @localarchlibdir@ |
3597
|
252 localverarchlibdir = @localverarchlibdir@ |
2439
|
253 |
666
|
254 # Where to put object files that will by dynamically loaded. |
|
255 # This path usually includes the Octave version and configuration |
|
256 # name, so that multiple configurations for multiple versions of |
|
257 # Octave may be installed at once. |
|
258 octfiledir = @octfiledir@ |
5
|
259 |
666
|
260 # Directories Octave should search for object files that will be |
|
261 # dynamically loaded and that are specific to this site |
|
262 # (i.e. customizations), before consulting ${octfiledir}. This should |
|
263 # be a colon-separated list of directories. |
827
|
264 localoctfiledir = @localoctfiledir@ |
3597
|
265 localveroctfiledir = @localveroctfiledir@ |
666
|
266 localoctfilepath = @localoctfilepath@ |
|
267 |
|
268 # Where Octave will search to find its function files. Before |
|
269 # changing this, check to see if your purpose wouldn't |
|
270 # better be served by changing localfcnfilepath. This |
|
271 # should be a colon-separated list of directories. |
|
272 fcnfilepath = @fcnfilepath@ |
5
|
273 |
685
|
274 # Where Octave will search to find image files.es. |
827
|
275 imagedir = @imagedir@ |
685
|
276 imagepath = @imagepath@ |
|
277 |
5
|
278 # The type of computer we are running on. |
3136
|
279 canonical_host_type = @canonical_host_type@ |
5
|
280 |
3591
|
281 # The -I flags to use for the mkoctfile script. |
3597
|
282 MKOCTFILE_INCFLAGS = \ |
|
283 -I$(octincludedir) -I$(octincludedir)/octave -I$(includedir) |
3591
|
284 |
3859
|
285 # The -L flags to use for the mkoctfile scrip (for --link-stand-alone) |
|
286 MKOCTFILE_LFLAGS = -L$(octlibdir) |
|
287 |
5
|
288 # The following pattern rules and the substitution functions require |
|
289 # GNU make. If you don't have it, get it! |
|
290 |
1679
|
291 # Rules for making object files from Fortran source. |
994
|
292 # |
|
293 # If we are using f2c there will be a command for the `%.c : %.f' |
|
294 # pattern and no command for the `%.o : %.f' pattern, so that make |
|
295 # will not invoke the fortran compiler by mistake. |
|
296 # |
|
297 # If we are not using f2c, it should be ok to have an empty rule for |
|
298 # the pattern `%.c : %.f', but we don't want to replace make's default |
|
299 # rule for making object from Fortran source files, so there should be |
|
300 # no pattern or command for that. |
5
|
301 |
1679
|
302 @f77_rules_frag@ |
994
|
303 |
1668
|
304 # How to make .o files: |
5
|
305 |
1984
|
306 %.o : %.c |
3615
|
307 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< -o $@ |
5
|
308 |
1984
|
309 %.o : %.cc |
3615
|
310 $(CXX) -c $(CPPFLAGS) $(ALL_CXXFLAGS) $< -o $@ |
308
|
311 |
1984
|
312 pic/%.o : %.c |
|
313 $(CC) -c $(CPPFLAGS) $(CPICFLAG) $(ALL_CFLAGS) $< -o $@ |
|
314 |
|
315 pic/%.o : %.cc |
|
316 $(CXX) -c $(CPPFLAGS) $(CXXPICFLAG) $(ALL_CXXFLAGS) $< -o $@ |
|
317 |
308
|
318 # Here is a rule for generating dependencies for .cc files: |
|
319 |
1984
|
320 %.d : %.cc |
518
|
321 @echo making $@ from $< |
|
322 @rm -f $@ |
3775
|
323 @$(CXX) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CXXFLAGS) $< | \ |
4084
|
324 $(SED) \ |
3775
|
325 $(DEPEND_EXTRA_SED_PATTERN) \ |
|
326 -e 's,^[^:]*/\(.*\.o\):,\1:,' \ |
4050
|
327 -e 's,$*\.o,pic/& & $*.df $@,g' > $@-t |
4014
|
328 @mv $@-t $@ |
308
|
329 |
|
330 # And one for .c files.too: |
|
331 |
1984
|
332 %.d : %.c |
518
|
333 @echo making $@ from $< |
|
334 @rm -f $@ |
3775
|
335 @$(CC) $(DEPEND_FLAGS) $(CPPFLAGS) $(ALL_CFLAGS) $< | \ |
4084
|
336 $(SED) \ |
3775
|
337 $(DEPEND_EXTRA_SED_PATTERN) \ |
|
338 -e 's,^[^:]*/\(.*\.o\):,\1:,' \ |
4014
|
339 -e 's,$*\.o,pic/& & $@,g' > $@-t |
|
340 @mv $@-t $@ |
1166
|
341 |
1685
|
342 define do-subdir-for-command |
|
343 echo making $@ in $d; cd $d; $(MAKE) $@; cd ..; |
1166
|
344 endef |
1685
|
345 |
|
346 define subdir-for-command |
|
347 $(foreach d, $(SUBDIRS), $(do-subdir-for-command)) |
|
348 endef |
2157
|
349 |
2862
|
350 # Yes, the second sed command near the end is needed, to avoid limits |
|
351 # in command lengths for some versions of sed. UGLY_DEFS is often |
|
352 # quite large, so it makes sense to split this command there. |
|
353 |
2157
|
354 define do-subst-config-vals |
2223
|
355 echo "making $@ from $<" |
4084
|
356 $(SED) < $< \ |
3584
|
357 -e "s;%OCTAVE_CONF_ALL_CFLAGS%;\"${ALL_CFLAGS}\";" \ |
|
358 -e "s;%OCTAVE_CONF_ALL_CXXFLAGS%;\"${ALL_CXXFLAGS}\";" \ |
|
359 -e "s;%OCTAVE_CONF_ALL_FFLAGS%;\"${ALL_FFLAGS}\";" \ |
|
360 -e "s;%OCTAVE_CONF_ALL_LDFLAGS%;\"${ALL_LDFLAGS}\";" \ |
|
361 -e "s;%OCTAVE_CONF_AR%;\"${AR}\";" \ |
|
362 -e "s;%OCTAVE_CONF_ARFLAGS%;\"${ARFLAGS}\";" \ |
3726
|
363 -e "s;%OCTAVE_CONF_BLAS_LIBS%;\"${BLAS_LIBS}\";" \ |
3768
|
364 -e "s;%OCTAVE_CONF_CANONICAL_HOST_TYPE%;\"${canonical_host_type}\";" \ |
3584
|
365 -e "s;%OCTAVE_CONF_CC%;\"${CC}\";" \ |
|
366 -e "s;%OCTAVE_CONF_CC_VERSION%;\"${CC_VERSION}\";" \ |
|
367 -e "s;%OCTAVE_CONF_CFLAGS%;\"${CFLAGS}\";" \ |
|
368 -e "s;%OCTAVE_CONF_CPICFLAG%;\"${CPICFLAG}\";" \ |
|
369 -e "s;%OCTAVE_CONF_CPPFLAGS%;\"${CPPFLAGS}\";" \ |
|
370 -e "s;%OCTAVE_CONF_CXX%;\"${CXX}\";" \ |
|
371 -e "s;%OCTAVE_CONF_CXXCPP%;\"${CXXCPP}\";" \ |
|
372 -e "s;%OCTAVE_CONF_CXXFLAGS%;\"${CXXFLAGS}\";" \ |
|
373 -e "s;%OCTAVE_CONF_CXXPICFLAG%;\"${CXXPICFLAG}\";" \ |
|
374 -e "s;%OCTAVE_CONF_CXX_VERSION%;\"${CXX_VERSION}\";" \ |
|
375 -e "s;%OCTAVE_CONF_DEFAULT_PAGER%;\"${DEFAULT_PAGER}\";" \ |
3846
|
376 -e "s;%OCTAVE_CONF_DEPEND_FLAGS%;\"${DEPEND_FLAGS}\";" \ |
|
377 -e "s;%OCTAVE_CONF_DEPEND_EXTRA_SED_PATTERN%;\"${DEPEND_EXTRA_SED_PATTERN}\";" \ |
3584
|
378 -e "s;%OCTAVE_CONF_DLFCN_INCFLAGS%;\"${DLFCN_INCFLAGS}\";" \ |
3892
|
379 -e "s;%OCTAVE_CONF_EXEEXT%;\"${EXEEXT}\";" \ |
3584
|
380 -e "s;%OCTAVE_CONF_F2C%;\"${F2C}\";" \ |
|
381 -e "s;%OCTAVE_CONF_F2CFLAGS%;\"${F2CFLAGS}\";" \ |
|
382 -e "s;%OCTAVE_CONF_F77%;\"${F77}\";" \ |
|
383 -e "s;%OCTAVE_CONF_FC%;\"${FC}\";" \ |
|
384 -e "s;%OCTAVE_CONF_FFLAGS%;\"${FFLAGS}\";" \ |
3859
|
385 -e "s;%OCTAVE_CONF_FFTW_LIBS%;\"${FFTW_LIBS}\";" \ |
3584
|
386 -e "s;%OCTAVE_CONF_FLIBS%;\"${FLIBS}\";" \ |
|
387 -e "s;%OCTAVE_CONF_FPICFLAG%;\"${FPICFLAG}\";" \ |
|
388 -e "s;%OCTAVE_CONF_GLOB_INCFLAGS%;\"${GLOB_INCFLAGS}\";" \ |
|
389 -e "s;%OCTAVE_CONF_INCFLAGS%;\"${INCFLAGS}\";" \ |
4102
|
390 -e "s;%OCTAVE_CONF_INCLUDE_LINK_DEPS%;\"${INCLUDE_LINK_DEPS}\";"\ |
3859
|
391 -e "s;%OCTAVE_CONF_LD_CXX%;\"${LD_CXX}\";" \ |
3584
|
392 -e "s;%OCTAVE_CONF_LDFLAGS%;\"${LDFLAGS}\";" \ |
|
393 -e "s;%OCTAVE_CONF_LD_STATIC_FLAG%;\"${LD_STATIC_FLAG}\";" \ |
|
394 -e "s;%OCTAVE_CONF_LEX%;\"${LEX}\";" \ |
|
395 -e "s;%OCTAVE_CONF_LEXLIB%;\"${LEXLIB}\";" \ |
|
396 -e "s;%OCTAVE_CONF_LFLAGS%;\"${LFLAGS}\";" \ |
|
397 -e "s;%OCTAVE_CONF_LIBCRUFT%;\"${LIBCRUFT}\";" \ |
|
398 -e "s;%OCTAVE_CONF_LIBDLFCN%;\"${LIBDLFCN}\";" \ |
|
399 -e "s;%OCTAVE_CONF_LIBEXT%;\"${LIBEXT}\";" \ |
|
400 -e "s;%OCTAVE_CONF_LIBFLAGS%;\"${LIBFLAGS}\";" \ |
|
401 -e "s;%OCTAVE_CONF_LIBGLOB%;\"${LIBGLOB}\";" \ |
|
402 -e "s;%OCTAVE_CONF_LIBKPATHSEA%;\"${LIBKPATHSEA}\";" \ |
|
403 -e "s;%OCTAVE_CONF_LIBOCTAVE%;\"${LIBOCTAVE}\";" \ |
|
404 -e "s;%OCTAVE_CONF_LIBOCTINTERP%;\"${LIBOCTINTERP}\";" \ |
|
405 -e "s;%OCTAVE_CONF_LIBPLPLOT%;\"${LIBPLPLOT}\";" \ |
4102
|
406 -e "s;%OCTAVE_CONF_LIBREADLINE%;\"${LIBREADLINE}\";" \ |
3584
|
407 -e "s;%OCTAVE_CONF_LIBS%;\"${LIBS}\";" \ |
|
408 -e "s;%OCTAVE_CONF_LN_S%;\"${LN_S}\";" \ |
3591
|
409 -e "s;%OCTAVE_CONF_MKOCTFILE_INCFLAGS%;\"${MKOCTFILE_INCFLAGS}\";" \ |
3859
|
410 -e "s;%OCTAVE_CONF_MKOCTFILE_LFLAGS%;\"${MKOCTFILE_LFLAGS}\";" \ |
3584
|
411 -e "s;%OCTAVE_CONF_RANLIB%;\"${RANLIB}\";" \ |
|
412 -e "s;%OCTAVE_CONF_RDYNAMIC_FLAG%;\"${RDYNAMIC_FLAG}\";" \ |
|
413 -e "s;%OCTAVE_CONF_RLD_FLAG%;\"${RLD_FLAG}\";" \ |
|
414 -e "s;%OCTAVE_CONF_RUNTEST%;\"${RUNTEST}\";" \ |
4084
|
415 -e "s;%OCTAVE_CONF_SED%;\"${SED}\";" \ |
3584
|
416 -e "s;%OCTAVE_CONF_SHARED_LIBS%;\"${SHARED_LIBS}\";" \ |
|
417 -e "s;%OCTAVE_CONF_SHLEXT%;\"${SHLEXT}\";" \ |
4102
|
418 -e "s;%OCTAVE_CONF_SHLLINKEXT%;\"${SHLLINKEXT}\";" \ |
3584
|
419 -e "s;%OCTAVE_CONF_SHLEXT_VER%;\"${SHLEXT_VER}\";" \ |
|
420 -e "s;%OCTAVE_CONF_SH_LD%;\"${SH_LD}\";" \ |
|
421 -e "s;%OCTAVE_CONF_SH_LDFLAGS%;\"${SH_LDFLAGS}\";" \ |
|
422 -e "s;%OCTAVE_CONF_SONAME_FLAGS%;\"${SONAME_FLAGS}\";" \ |
|
423 -e "s;%OCTAVE_CONF_STATIC_LIBS%;\"${STATIC_LIBS}\";" \ |
|
424 -e "s;%OCTAVE_CONF_UGLY_DEFS%;\"${UGLY_DEFS}\";" \ |
|
425 -e "s;%OCTAVE_CONF_VERSION%;\"${version}\";" \ |
4128
|
426 -e "s;%OCTAVE_CONF_ENABLE_DYNAMIC_LINKING%;\"${ENABLE_DYNAMIC_LINKING}\";" \ |
3584
|
427 -e "s;%OCTAVE_CONF_XTRA_CFLAGS%;\"${XTRA_CFLAGS}\";" \ |
|
428 -e "s;%OCTAVE_CONF_XTRA_CXXFLAGS%;\"${XTRA_CXXFLAGS}\";" \ |
|
429 -e "s;%OCTAVE_CONF_YACC%;\"${YACC}\";" \ |
|
430 -e "s;%OCTAVE_CONF_YFLAGS%;\"${YFLAGS}\";" \ |
|
431 -e "s;%OCTAVE_CONF_config_opts%;\"${config_opts}\";" | \ |
4084
|
432 $(SED) -e "s;%OCTAVE_CONF_DEFS%;\"${UGLY_DEFS}\";" > $@-t |
4014
|
433 $(top_srcdir)/move-if-change $@-t $@ |
2157
|
434 endef |
|
435 |
|
436 define do-subst-default-vals |
2223
|
437 echo "making $@ from $<" |
4084
|
438 $(SED) < $< > $@-t \ |
2862
|
439 -e "s;%OCTAVE_ARCHLIBDIR%;\"${archlibdir}\";" \ |
|
440 -e "s;%OCTAVE_BINDIR%;\"${bindir}\";" \ |
3584
|
441 -e "s;%OCTAVE_CANONICAL_HOST_TYPE%;\"${canonical_host_type}\";" \ |
2157
|
442 -e "s;%OCTAVE_DATADIR%;\"${datadir}\";" \ |
3584
|
443 -e "s;%OCTAVE_DEFAULT_PAGER%;\"${DEFAULT_PAGER}\";" \ |
2862
|
444 -e "s;%OCTAVE_EXEC_PREFIX%;\"${exec_prefix}\";" \ |
|
445 -e "s;%OCTAVE_FCNFILEDIR%;\"${fcnfiledir}\";" \ |
|
446 -e "s;%OCTAVE_FCNFILEPATH%;\"${fcnfilepath}\";" \ |
3584
|
447 -e "s;%OCTAVE_IMAGEDIR%;\"${imagedir}\";" \ |
2862
|
448 -e "s;%OCTAVE_IMAGEPATH%;\"${imagepath}\";" \ |
3584
|
449 -e "s;%OCTAVE_INCLUDEDIR%;\"${includedir}\";" \ |
2157
|
450 -e "s;%OCTAVE_INFODIR%;\"${infodir}\";" \ |
2512
|
451 -e "s;%OCTAVE_INFOFILE%;\"${infofile}\";" \ |
2862
|
452 -e "s;%OCTAVE_LIBDIR%;\"${libdir}\";" \ |
3584
|
453 -e "s;%OCTAVE_LIBEXECDIR%;\"${libexecdir}\";" \ |
2862
|
454 -e "s;%OCTAVE_LOCALARCHLIBDIR%;\"${localarchlibdir}\";" \ |
2157
|
455 -e "s;%OCTAVE_LOCALFCNFILEDIR%;\"${localfcnfiledir}\";" \ |
|
456 -e "s;%OCTAVE_LOCALFCNFILEPATH%;\"${localfcnfilepath}\";" \ |
3584
|
457 -e "s;%OCTAVE_LOCALOCTFILEDIR%;\"${localoctfiledir}\";" \ |
2862
|
458 -e "s;%OCTAVE_LOCALOCTFILEPATH%;\"${localoctfilepath}\";" \ |
3597
|
459 -e "s;%OCTAVE_LOCALVERARCHLIBDIR%;\"${localverarchlibdir}\";" \ |
|
460 -e "s;%OCTAVE_LOCALVERFCNFILEDIR%;\"${localverfcnfiledir}\";" \ |
|
461 -e "s;%OCTAVE_LOCALVEROCTFILEDIR%;\"${localveroctfiledir}\";" \ |
3584
|
462 -e "s;%OCTAVE_MAN1DIR%;\"${man1dir}\";" \ |
|
463 -e "s;%OCTAVE_MAN1EXT%;\"${man1ext}\";" \ |
|
464 -e "s;%OCTAVE_MANDIR%;\"${mandir}\";" \ |
2157
|
465 -e "s;%OCTAVE_OCTFILEDIR%;\"${octfiledir}\";" \ |
3584
|
466 -e "s;%OCTAVE_OCTINCLUDEDIR%;\"${octincludedir}\";" \ |
|
467 -e "s;%OCTAVE_OCTLIBDIR%;\"${octlibdir}\";" \ |
3845
|
468 -e "s;%OCTAVE_PREFIX%;\"${prefix}\";" \ |
|
469 -e "s;%OCTAVE_VERSION%;\"${version}\";" |
4014
|
470 $(top_srcdir)/move-if-change $@-t $@ |
2157
|
471 endef |