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