comparison common.mk @ 9794:0d4613a736e9

convert build system to use automake and libtool
author John W. Eaton <jwe@octave.org>
date Tue, 10 Nov 2009 15:02:25 -0500
parents
children a262b41eaa15
comparison
equal deleted inserted replaced
9793:7161e9b41cf6 9794:0d4613a736e9
1 SHELL = /bin/sh
2
3 AWK = @AWK@
4 export AWK
5
6 SED = @SED@
7 export SED
8
9 FIND = @FIND@
10 export FIND
11
12 PERL = @PERL@
13 export PERL
14
15 PYTHON = @PYTHON@
16
17 GNUPLOT = @GNUPLOT@
18
19 DESKTOP_FILE_INSTALL = @DESKTOP_FILE_INSTALL@
20
21 version = @OCTAVE_VERSION@
22 api_version = @OCTAVE_API_VERSION@
23
24 ## AM_LIBTOOLFLAGS = --silent
25
26 #### Start of system configuration section. ####
27
28 EXEEXT = @EXEEXT@
29
30 BUILD_EXEEXT = @BUILD_EXEEXT@
31
32 LEX = @LEX@
33 AM_LFLAGS = @LFLAGS@
34 LEXLIB = @LEXLIB@
35
36 YACC = @YACC@
37 AM_YFLAGS = -dv
38
39 GPERF = @GPERF@
40
41 AR = @AR@
42 ARFLAGS = @ARFLAGS@
43
44 TEMPLATE_AR = @TEMPLATE_AR@
45 TEMPLATE_ARFLAGS = @TEMPLATE_ARFLAGS@
46
47 RANLIB = @RANLIB@
48
49 LN_S = @LN_S@
50
51 MAKEINFO = @MAKEINFO@
52 TEXI2DVI = @TEXI2DVI@
53 TEXI2PDF = @TEXI2PDF@
54
55 GHOSTSCRIPT = @GHOSTSCRIPT@
56
57 DEFAULT_PAGER = @DEFAULT_PAGER@
58
59 ENABLE_DYNAMIC_LINKING = @ENABLE_DYNAMIC_LINKING@
60
61 SHLEXT = @SHLEXT@
62 SHLEXT_VER = @SHLEXT_VER@
63 SHLLIB = @SHLLIB@
64 SHLLIB_VER = @SHLLIB_VER@
65 SHLBIN = @SHLBIN@
66 SHLBIN_VER = @SHLBIN_VER@
67 SHLLINKEXT=
68
69 LIBEXT = a
70 LIBPRE = @LIBPRE@
71 SHLPRE = @SHLPRE@
72 SHLLIBPRE = @SHLLIBPRE@
73 SHLBINPRE = @SHLBINPRE@
74
75 # Fortran compiler flags.
76
77 FC = @FC@
78 F77 = @F77@
79 AM_FFLAGS = @FFLAGS@
80 FPICFLAG = @FPICFLAG@
81 ALL_FFLAGS = $(FFLAGS)
82 F77_FLOAT_STORE_FLAG = @F77_FLOAT_STORE_FLAG@
83
84 F77_TOLOWER=@F77_TOLOWER@
85 F77_APPEND_UNDERSCORE=@F77_TOLOWER@
86 F77_APPEND_EXTRA_UNDERSCORE=@F77_TOLOWER@
87
88 X11_INCFLAGS = @X11_INCFLAGS@
89 X11_LIBS = @X11_LIBS@
90
91 CARBON_LIBS = @CARBON_LIBS@
92
93 MAGICK_CPPFLAGS = @MAGICK_CPPFLAGS@
94 MAGICK_LDFLAGS = @MAGICK_LDFLAGS@
95 MAGICK_LIBS = @MAGICK_LIBS@
96
97 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
98 PTHREAD_LIBS = @PTHREAD_LIBS@
99
100 LIBFLAGS = -L$(TOPDIR)
101
102 DEFS = @DEFS@
103
104 UGLY_DEFS = @UGLY_DEFS@
105
106 CC = @CC@
107 CC_VERSION = @CC_VERSION@
108 AM_CFLAGS = @CFLAGS@
109 CPICFLAG = @CPICFLAG@
110 XTRA_CFLAGS = @XTRA_CFLAGS@
111 WARN_CFLAGS = @WARN_CFLAGS@
112 ALL_CFLAGS = $(INCFLAGS) $(DLL_CDEFS) $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) $(PTHREAD_CFLAGS)
113 BUG_CFLAGS = $(DEFS) $(XTRA_CFLAGS) $(WARN_CFLAGS) $(CFLAGS)
114
115 BUILD_CC = @BUILD_CC@
116 BUILD_CFLAGS = @BUILD_CFLAGS@
117
118 DEPEND_FLAGS = @DEPEND_FLAGS@
119 DEPEND_EXTRA_SED_PATTERN = @DEPEND_EXTRA_SED_PATTERN@
120 INCLUDE_DEPS = @INCLUDE_DEPS@
121 # ifeq ($(INCLUDE_DEPS),false)
122 # omit_deps = true;
123 # endif
124
125 GRAPHICS_CFLAGS = @GRAPHICS_CFLAGS@
126
127 CXX = @CXX@
128 CXX_VERSION = @CXX_VERSION@
129 CXXCPP = @CXXCPP@
130 CONFIGURE_CXXFLAGS = @CXXFLAGS@
131 CXXPICFLAG = @CXXPICFLAG@
132 XTRA_CXXFLAGS = @XTRA_CXXFLAGS@
133 WARN_CXXFLAGS = @WARN_CXXFLAGS@
134 AM_CXXFLAGS = $(CONFIGURE_CXXFLAGS) \
135 $(INCFLAGS) $(DLL_CXXDEFS) $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS) $(PTHREAD_CFLAGS)
136 BUG_CXXFLAGS = $(DEFS) $(XTRA_CXXFLAGS) $(WARN_CXXFLAGS) $(CXXFLAGS)
137
138 BUILD_CXX = @BUILD_CXX@
139 BUILD_CXXFLAGS = @BUILD_CXXFLAGS@
140
141 NO_UNDEFINED_LDFLAG = @NO_UNDEFINED_LDFLAG@
142
143 LD_CXX = @LD_CXX@
144 LD_STATIC_FLAG = @LD_STATIC_FLAG@
145 #ALL_LDFLAGS = $(LIBFLAGS) $(LD_STATIC_FLAG) $(CPICFLAG) $(LDFLAGS)
146
147 BUILD_LDFLAGS = @BUILD_LDFLAGS@
148
149 SH_LD = @SH_LD@
150 SH_LDFLAGS = @SH_LDFLAGS@
151
152 DL_LD = @DL_LD@
153 DL_LDFLAGS = @DL_LDFLAGS@
154
155 SONAME_FLAGS = @SONAME_FLAGS@
156
157 RDYNAMIC_FLAG = @RDYNAMIC_FLAG@
158
159 RLD_FLAG = @RLD_FLAG@
160
161 FLIBS = @FLIBS@
162
163 LIBGLOB = @LIBGLOB@
164 LIBOCTINTERP = @LIBOCTINTERP@
165 LIBOCTAVE = @LIBOCTAVE@
166 LIBCRUFT = @LIBCRUFT@
167
168 FT2_LIBS = @FT2_LIBS@
169
170 HDF5_CPPFLAGS = @HDF5_CPPFLAGS@
171 HDF5_LDFLAGS = @HDF5_LDFLAGS@
172 HDF5_LIBS = @HDF5_LIBS@
173
174 Z_CPPFLAGS = @Z_CPPFLAGS@
175 Z_LDFLAGS = @Z_LDFLAGS@
176 Z_LIBS = @Z_LIBS@
177
178 GRAPHICS_LIBS = @GRAPHICS_LIBS@
179
180 QHULL_CPPFLAGS = @QHULL_CPPFLAGS@
181 QHULL_LDFLAGS = @QHULL_LDFLAGS@
182 QHULL_LIBS = @QHULL_LIBS@
183
184 REGEX_LIBS = @REGEX_LIBS@
185
186 LAPACK_LIBS = @LAPACK_LIBS@
187 BLAS_LIBS = @BLAS_LIBS@
188
189 FFTW3_CPPFLAGS = @FFTW3_CPPFLAGS@
190 FFTW3_LDFLAGS = @FFTW3_LDFLAGS@
191 FFTW3_LIBS = @FFTW3_LIBS@
192
193 FFTW3F_CPPFLAGS = @FFTW3F_CPPFLAGS@
194 FFTW3F_LDFLAGS = @FFTW3F_LDFLAGS@
195 FFTW3F_LIBS = @FFTW3F_LIBS@
196
197 GLPK_CPPFLAGS = @GLPK_CPPFLAGS@
198 GLPK_LDFLAGS = @GLPK_LDFLAGS@
199 GLPK_LIBS = @GLPK_LIBS@
200
201 CURL_CPPFLAGS = @CURL_CPPFLAGS@
202 CURL_LDFLAGS = @CURL_LDFLAGS@
203 CURL_LIBS = @CURL_LIBS@
204
205 AMD_CPPFLAGS = @AMD_CPPFLAGS@
206 AMD_LDFLAGS = @AMD_LDFLAGS@
207 AMD_LIBS = @AMD_LIBS@
208
209 CAMD_CPPFLAGS = @CAMD_CPPFLAGS@
210 CAMD_LDFLAGS = @CAMD_LDFLAGS@
211 CAMD_LIBS = @CAMD_LIBS@
212
213 COLAMD_CPPFLAGS = @COLAMD_CPPFLAGS@
214 COLAMD_LDFLAGS = @COLAMD_LDFLAGS@
215 COLAMD_LIBS = @COLAMD_LIBS@
216
217 CCOLAMD_CPPFLAGS = @CCOLAMD_CPPFLAGS@
218 CCOLAMD_LDFLAGS = @CCOLAMD_LDFLAGS@
219 CCOLAMD_LIBS = @CCOLAMD_LIBS@
220
221 CHOLMOD_CPPFLAGS = @CHOLMOD_CPPFLAGS@
222 CHOLMOD_LDFLAGS = @CHOLMOD_LDFLAGS@
223 CHOLMOD_LIBS = @CHOLMOD_LIBS@
224
225 CXSPARSE_CPPFLAGS = @CXSPARSE_CPPFLAGS@
226 CXSPARSE_LDFLAGS = @CXSPARSE_LDFLAGS@
227 CXSPARSE_LIBS = @CXSPARSE_LIBS@
228
229 UMFPACK_CPPFLAGS = @UMFPACK_CPPFLAGS@
230 UMFPACK_LDFLAGS = @UMFPACK_LDFLAGS@
231 UMFPACK_LIBS = @UMFPACK_LIBS@
232
233 OPENGL_LIBS = @OPENGL_LIBS@
234
235 QRUPDATE_CPPFLAGS = @QRUPDATE_CPPFLAGS@
236 QRUPDATE_LDFLAGS = @QRUPDATE_LDFLAGS@
237 QRUPDATE_LIBS = @QRUPDATE_LIBS@
238
239 READLINE_LIBS = @READLINE_LIBS@
240 TERM_LIBS = @TERM_LIBS@
241
242 ARPACK_CPPFLAGS = @ARPACK_CPPFLAGS@
243 ARPACK_LDFLAGS = @ARPACK_LDFLAGS@
244 ARPACK_LIBS = @ARPACK_LIBS@
245
246 DL_LIBS = @DL_LIBS@
247 LIBS = @LIBS@
248
249 ALL_CPPFLAGS = $(CPPFLAGS) $(HDF5_CPPFLAGS) $(Z_CPPFLAGS)
250
251 SPARSE_XCPPFLAGS = \
252 $(CHOLMOD_CPPFLAGS) $(UMFPACK_CPPFLAGS) \
253 $(AMD_CPPFLAGS) $(CAMD_CPPFLAGS) $(COLAMD_CPPFLAGS) \
254 $(CCOLAMD_CPPFLAGS) $(CXSPARSE_CPPFLAGS)
255
256 SPARSE_XLDFLAGS = \
257 $(CHOLMOD_LDFLAGS) $(UMFPACK_LDFLAGS) \
258 $(AMD_LDFLAGS) $(CAMD_LDFLAGS) $(COLAMD_LDFLAGS) \
259 $(CCOLAMD_LDFLAGS) $(CXSPARSE_LDFLAGS)
260
261 ## Order matters, at least on some systems (Cygwin, for example).
262 SPARSE_XLIBS = \
263 $(CHOLMOD_LIBS) $(UMFPACK_LIBS) \
264 $(AMD_LIBS) $(CAMD_LIBS) $(COLAMD_LIBS) \
265 $(CCOLAMD_LIBS) $(CXSPARSE_LIBS)
266
267 FFTW_XCPPFLAGS = $(FFTW3_CPPFLAGS) $(FFTW3F_CPPFLAGS)
268
269 FFTW_XLDFLAGS = $(FFTW3_LDFLAGS) $(FFTW3F_LDFLAGS)
270
271 FFTW_XLIBS = $(FFTW3_LIBS) $(FFTW3F_LIBS)
272
273 USE_64_BIT_IDX_T = @USE_64_BIT_IDX_T@
274
275 TEXINFO_COLAMD = @TEXINFO_COLAMD@
276 TEXINFO_CHOLMOD = @TEXINFO_CHOLMOD@
277 TEXINFO_UMFPACK = @TEXINFO_UMFPACK@
278 TEXINFO_QHULL = @TEXINFO_QHULL@
279
280 # The arguments passed to configure.
281 config_opts = @config_opts@
282
283 CONFIG_SUBDIRS = @subdirs@
284
285 # ==================== Where To Install Things ====================
286
287 # The default location for installation. Everything is placed in
288 # subdirectories of this directory. The default values for many of
289 # the variables below are expressed in terms of this one, so you may
290 # not need to change them. This defaults to /usr/local.
291 prefix = @prefix@
292
293 # Like `prefix', but used for architecture-specific files.
294 exec_prefix = @exec_prefix@
295
296 # Where to install Octave and other binaries that people will want to
297 # run directly.
298 bindir = @bindir@
299
300 # Normally the directory for installing executables that system
301 # administrators run. This is the same as libexecdir on Cygwin systems.
302 sbindir = @sbindir@
303
304 # The root of the directory tree for read-only
305 # architecture-independent data files.
306 datarootdir = @datarootdir@
307
308 # Where to install architecture-independent data files. ${fcnfiledir}
309 # and ${localfcnfiledir} are subdirectories of this.
310 datadir = @datadir@
311
312 libdir = @libdir@
313
314 # Where to install and expect extra files like NEWS and doc-cache.
315 octetcdir = @octetcdir@
316
317 # Where to install and expect libraries like libcruft.a, liboctave.a,
318 # and other architecture-dependent data.
319 octlibdir = @octlibdir@
320
321 # Where to install and expect executable programs to be run by Octave
322 # rather than directly by users.
323 libexecdir = @libexecdir@
324
325 # The prefix for Octave's include file directory. The default is
326 # ${prefix}/include
327 includedir = @includedir@
328
329 # Where to install Octave's man pages, and what extension they should
330 # have. The default is ${prefix}/man/man1
331 mandir = @mandir@
332 man1dir = @man1dir@
333 man1ext = @man1ext@
334
335 # The full path to the default doc cache file.
336 doc_cache_file = @doc_cache_file@
337
338 # Where to install and expect the info files describing Octave..
339 infodir = @infodir@
340
341 # The full path to the default info file.
342 infofile = @infofile@
343
344 # ==================== Octave-specific directories ====================
345
346 # These variables hold the values specific to Octave. They are
347 # based on the values of the standard Make variables above.
348
349 # What is the path separation character
350 sepchar = @sepchar@
351
352 # Where to install Octave's include files. The default is
353 # ${includedir}/octave-${version}/octave
354 octincludedir = @octincludedir@
355
356 # Where to install the function file distributed with
357 # Octave. This includes the Octave version, so that the
358 # function files for different versions of Octave will install
359 # themselves in separate directories.
360 fcnfiledir = @fcnfiledir@
361
362 # Directories Octave should search for function files specific
363 # to this site (i.e. customizations), before consulting
364 # ${fcnfiledir}. This should be a colon-separated list of
365 # directories.
366 localfcnfiledir = @localfcnfiledir@
367 localapifcnfiledir = @localapifcnfiledir@
368 localverfcnfiledir = @localverfcnfiledir@
369
370 # Where to put executables to be run by Octave rather than
371 # the user. This path usually includes the Octave version
372 # and configuration name, so that multiple configurations
373 # for multiple versions of Octave may be installed at once.
374 archlibdir = @archlibdir@
375
376 # Where to put executables to be run by Octave rather than by the
377 # user that are specific to this site.
378 localarchlibdir = @localarchlibdir@
379 localapiarchlibdir = @localapiarchlibdir@
380 localverarchlibdir = @localverarchlibdir@
381
382 # Where to put object files that will by dynamically loaded.
383 # This path usually includes the Octave version and configuration
384 # name, so that multiple configurations for multiple versions of
385 # Octave may be installed at once.
386 octfiledir = @octfiledir@
387
388 # Directories Octave should search for object files that will be
389 # dynamically loaded and that are specific to this site
390 # (i.e. customizations), before consulting ${octfiledir}. This should
391 # be a colon-separated list of directories.
392 localoctfiledir = @localoctfiledir@
393 localapioctfiledir = @localapioctfiledir@
394 localveroctfiledir = @localveroctfiledir@
395
396 # Where Octave will search to find image files.
397 imagedir = @imagedir@
398
399 # The type of computer we are running on.
400 canonical_host_type = @canonical_host_type@
401
402 # Where Octave will look for startup files
403 startupfiledir = ${fcnfiledir}/startup
404 localstartupfiledir = ${localfcnfiledir}/startup
405
406 # LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, PATH, ...
407 library_path_var = @library_path_var@
408
409 # The separator used for elements of the LD_PRELOAD variable (might be
410 # a space, so protect with $(null))
411 null =
412 ldpreloadsep = $(null)@ldpreloadsep@$(null)
413
414 NO_OCT_FILE_STRIP = @NO_OCT_FILE_STRIP@
415
416 # The following pattern rules and the substitution functions require
417 # GNU make. If you don't have it, get it!
418
419 define simple_move_if_change_rule
420 if [ -s $@-t ]; then \
421 $(top_srcdir)/move-if-change $@-t $@; \
422 else \
423 echo "$@-t is empty!" 1>&2; \
424 rm -f $@-t; \
425 exit 1; \
426 fi
427 endef
428
429 # Yes, the second sed command near the end is needed, to avoid limits
430 # in command lengths for some versions of sed. UGLY_DEFS is often
431 # quite large, so it makes sense to split this command there.
432
433 define do_subst_config_vals
434 echo "making $@ from $<"
435 $(SED) < $< \
436 -e "s|%NO_OCT_FILE_STRIP%|${NO_OCT_FILE_STRIP}|" \
437 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \
438 -e "s|%OCTAVE_CONF_ALL_CFLAGS%|\"${ALL_CFLAGS}\"|" \
439 -e "s|%OCTAVE_CONF_ALL_CXXFLAGS%|\"${ALL_CXXFLAGS}\"|" \
440 -e "s|%OCTAVE_CONF_ALL_FFLAGS%|\"${ALL_FFLAGS}\"|" \
441 -e "s|%OCTAVE_CONF_ALL_LDFLAGS%|\"${ALL_LDFLAGS}\"|" \
442 -e "s|%OCTAVE_CONF_AMD_CPPFLAGS%|\"${AMD_CPPFLAGS}\"|" \
443 -e "s|%OCTAVE_CONF_AMD_LDFLAGS%|\"${AMD_LDFLAGS}\"|" \
444 -e "s|%OCTAVE_CONF_AMD_LIBS%|\"${AMD_LIBS}\"|" \
445 -e "s|%OCTAVE_CONF_AR%|\"${AR}\"|" \
446 -e "s|%OCTAVE_CONF_ARFLAGS%|\"${ARFLAGS}\"|" \
447 -e "s|%OCTAVE_CONF_ARPACK_CPPFLAGS%|\"${ARPACK_CPPFLAGS}\"|" \
448 -e "s|%OCTAVE_CONF_ARPACK_LDFLAGS%|\"${ARPACK_LDFLAGS}\"|" \
449 -e "s|%OCTAVE_CONF_ARPACK_LIBS%|\"${ARPACK_LIBS}\"|" \
450 -e "s|%OCTAVE_CONF_BLAS_LIBS%|\"${BLAS_LIBS}\"|" \
451 -e "s|%OCTAVE_CONF_CAMD_CPPFLAGS%|\"${CAMD_CPPFLAGS}\"|" \
452 -e "s|%OCTAVE_CONF_CAMD_LDFLAGS%|\"${CAMD_LDFLAGS}\"|" \
453 -e "s|%OCTAVE_CONF_CAMD_LIBS%|\"${CAMD_LIBS}\"|" \
454 -e "s|%OCTAVE_CONF_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \
455 -e "s|%OCTAVE_CONF_CARBON_LIBS%|\"${CARBON_LIBS}\"|" \
456 -e "s|%OCTAVE_CONF_CC%|\"${CC}\"|" \
457 -e "s|%OCTAVE_CONF_CC_VERSION%|\"${CC_VERSION}\"|" \
458 -e "s|%OCTAVE_CONF_CCOLAMD_CPPFLAGS%|\"${CCOLAMD_CPPFLAGS}\"|" \
459 -e "s|%OCTAVE_CONF_CCOLAMD_LDFLAGS%|\"${CCOLAMD_LDFLAGS}\"|" \
460 -e "s|%OCTAVE_CONF_CCOLAMD_LIBS%|\"${CCOLAMD_LIBS}\"|" \
461 -e "s|%OCTAVE_CONF_CFLAGS%|\"${CFLAGS}\"|" \
462 -e "s|%OCTAVE_CONF_CHOLMOD_CPPFLAGS%|\"${CHOLMOD_CPPFLAGS}\"|" \
463 -e "s|%OCTAVE_CONF_CHOLMOD_LDFLAGS%|\"${CHOLMOD_LDFLAGS}\"|" \
464 -e "s|%OCTAVE_CONF_CHOLMOD_LIBS%|\"${CHOLMOD_LIBS}\"|" \
465 -e "s|%OCTAVE_CONF_COLAMD_CPPFLAGS%|\"${COLAMD_CPPFLAGS}\"|" \
466 -e "s|%OCTAVE_CONF_COLAMD_LDFLAGS%|\"${COLAMD_LDFLAGS}\"|" \
467 -e "s|%OCTAVE_CONF_COLAMD_LIBS%|\"${COLAMD_LIBS}\"|" \
468 -e "s|%OCTAVE_CONF_CPICFLAG%|\"${CPICFLAG}\"|" \
469 -e "s|%OCTAVE_CONF_CPPFLAGS%|\"${CPPFLAGS}\"|" \
470 -e "s|%OCTAVE_CONF_CURL_CPPFLAGS%|\"${CURL_CPPFLAGS}\"|" \
471 -e "s|%OCTAVE_CONF_CURL_LDFLAGS%|\"${CURL_LDFLAGS}\"|" \
472 -e "s|%OCTAVE_CONF_CURL_LIBS%|\"${CURL_LIBS}\"|" \
473 -e "s|%OCTAVE_CONF_CXSPARSE_CPPFLAGS%|\"${CXSPARSE_CPPFLAGS}\"|" \
474 -e "s|%OCTAVE_CONF_CXSPARSE_LDFLAGS%|\"${CXSPARSE_LDFLAGS}\"|" \
475 -e "s|%OCTAVE_CONF_CXSPARSE_LIBS%|\"${CXSPARSE_LIBS}\"|" \
476 -e "s|%OCTAVE_CONF_CXX%|\"${CXX}\"|" \
477 -e "s|%OCTAVE_CONF_CXXCPP%|\"${CXXCPP}\"|" \
478 -e "s|%OCTAVE_CONF_CXXFLAGS%|\"${CXXFLAGS}\"|" \
479 -e "s|%OCTAVE_CONF_CXXPICFLAG%|\"${CXXPICFLAG}\"|" \
480 -e "s|%OCTAVE_CONF_CXX_VERSION%|\"${CXX_VERSION}\"|" \
481 -e "s|%OCTAVE_CONF_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \
482 -e "s|%OCTAVE_CONF_DEPEND_FLAGS%|\"${DEPEND_FLAGS}\"|" \
483 -e "s|%OCTAVE_CONF_DEPEND_EXTRA_SED_PATTERN%|\"${DEPEND_EXTRA_SED_PATTERN}\"|" \
484 -e "s|%OCTAVE_CONF_DL_LD%|\"${DL_LD}\"|" \
485 -e "s|%OCTAVE_CONF_DL_LDFLAGS%|\"${DL_LDFLAGS}\"|" \
486 -e "s|%OCTAVE_CONF_DL_LIBS%|\"${DL_LIBS}\"|" \
487 -e "s|%OCTAVE_CONF_EXEEXT%|\"${EXEEXT}\"|" \
488 -e "s|%OCTAVE_CONF_F77%|\"${F77}\"|" \
489 -e "s|%OCTAVE_CONF_F77_FLOAT_STORE_FLAG%|\"${F77_FLOAT_STORE_FLAG}\"|" \
490 -e "s|%OCTAVE_CONF_FC%|\"${FC}\"|" \
491 -e "s|%OCTAVE_CONF_FFLAGS%|\"${FFLAGS}\"|" \
492 -e "s|%OCTAVE_CONF_FFTW3_CPPFLAGS%|\"${FFTW3_CPPFLAGS}\"|" \
493 -e "s|%OCTAVE_CONF_FFTW3_LDFLAGS%|\"${FFTW3_LDFLAGS}\"|" \
494 -e "s|%OCTAVE_CONF_FFTW3_LIBS%|\"${FFTW3_LIBS}\"|" \
495 -e "s|%OCTAVE_CONF_FFTW3F_CPPFLAGS%|\"${FFTW3F_CPPFLAGS}\"|" \
496 -e "s|%OCTAVE_CONF_FFTW3F_LDFLAGS%|\"${FFTW3F_LDFLAGS}\"|" \
497 -e "s|%OCTAVE_CONF_FFTW3F_LIBS%|\"${FFTW3F_LIBS}\"|" \
498 -e "s|%OCTAVE_CONF_FLIBS%|\"${FLIBS}\"|" \
499 -e "s|%OCTAVE_CONF_FPICFLAG%|\"${FPICFLAG}\"|" \
500 -e "s|%OCTAVE_CONF_FT2_LIBS%|\"${FT2_LIBS}\"|" \
501 -e "s|%OCTAVE_CONF_GLPK_CPPFLAGS%|\"${GLPK_CPPFLAGS}\"|" \
502 -e "s|%OCTAVE_CONF_GLPK_LDFLAGS%|\"${GLPK_LDFLAGS}\"|" \
503 -e "s|%OCTAVE_CONF_GLPK_LIBS%|\"${GLPK_LIBS}\"|" \
504 -e "s|%OCTAVE_CONF_GNUPLOT%|\"${GNUPLOT}\"|" \
505 -e "s|%OCTAVE_CONF_GRAPHICS_LIBS%|\"${GRAPHICS_LIBS}\"|" \
506 -e "s|%OCTAVE_CONF_HDF5_CPPFLAGS%|\"${HDF5_CPPFLAGS}\"|" \
507 -e "s|%OCTAVE_CONF_HDF5_LDFLAGS%|\"${HDF5_LDFLAGS}\"|" \
508 -e "s|%OCTAVE_CONF_HDF5_LIBS%|\"${HDF5_LIBS}\"|" \
509 -e "s|%OCTAVE_CONF_INCFLAGS%|\"${INCFLAGS}\"|" \
510 -e "s|%OCTAVE_CONF_INCLUDEDIR%|\"${includedir}\"|" \
511 -e "s|%OCTAVE_CONF_LAPACK_LIBS%|\"${LAPACK_LIBS}\"|" \
512 -e "s|%OCTAVE_CONF_LD_CXX%|\"${LD_CXX}\"|" \
513 -e "s|%OCTAVE_CONF_LDFLAGS%|\"${LDFLAGS}\"|" \
514 -e "s|%OCTAVE_CONF_LD_STATIC_FLAG%|\"${LD_STATIC_FLAG}\"|" \
515 -e "s|%OCTAVE_CONF_LEX%|\"${LEX}\"|" \
516 -e "s|%OCTAVE_CONF_LEXLIB%|\"${LEXLIB}\"|" \
517 -e "s|%OCTAVE_CONF_LFLAGS%|\"${LFLAGS}\"|" \
518 -e "s|%OCTAVE_CONF_LIBCRUFT%|\"${LIBCRUFT}\"|" \
519 -e "s|%OCTAVE_CONF_LIBDIR%|\"${libdir}\"|" \
520 -e "s|%OCTAVE_CONF_LIBEXT%|\"${LIBEXT}\"|" \
521 -e "s|%OCTAVE_CONF_LIBFLAGS%|\"${LIBFLAGS}\"|" \
522 -e "s|%OCTAVE_CONF_LIBGLOB%|\"${LIBGLOB}\"|" \
523 -e "s|%OCTAVE_CONF_LIBOCTAVE%|\"${LIBOCTAVE}\"|" \
524 -e "s|%OCTAVE_CONF_LIBOCTINTERP%|\"${LIBOCTINTERP}\"|" \
525 -e "s|%OCTAVE_CONF_LIBS%|\"${LIBS}\"|" \
526 -e "s|%OCTAVE_CONF_LN_S%|\"${LN_S}\"|" \
527 -e "s|%OCTAVE_CONF_MAGICK_CPPFLAGS%|\"${MAGICK_CPPFLAGS}\"|" \
528 -e "s|%OCTAVE_CONF_MAGICK_LDFLAGS%|\"${MAGICK_LDFLAGS}\"|" \
529 -e "s|%OCTAVE_CONF_MAGICK_LIBS%|\"${MAGICK_LIBS}\"|" \
530 -e 's|%OCTAVE_CONF_MKOCTFILE_DL_LDFLAGS%|\"@MKOCTFILE_DL_LDFLAGS@\"|' \
531 -e "s|%OCTAVE_CONF_OCTINCLUDEDIR%|\"${octincludedir}\"|" \
532 -e "s|%OCTAVE_CONF_OCTLIBDIR%|\"${octlibdir}\"|" \
533 -e "s|%OCTAVE_CONF_OPENGL_LIBS%|\"${OPENGL_LIBS}\"|" \
534 -e "s|%OCTAVE_CONF_PREFIX%|\"${prefix}\"|" \
535 -e "s|%OCTAVE_CONF_PTHREAD_CFLAGS%|\"${PTHREAD_CFLAGS}\"|" \
536 -e "s|%OCTAVE_CONF_PTHREAD_LIBS%|\"${PTHREAD_LIBS}\"|" \
537 -e "s|%OCTAVE_CONF_QHULL_CPPFLAGS%|\"${QHULL_CPPFLAGSS}\"|" \
538 -e "s|%OCTAVE_CONF_QHULL_LDFLAGS%|\"${QHULL_LDFLAGSS}\"|" \
539 -e "s|%OCTAVE_CONF_QHULL_LIBS%|\"${QHULL_LIBS}\"|" \
540 -e "s|%OCTAVE_CONF_QRUPDATE_CPPFLAGS%|\"${QRUPDATE_CPPFLAGS}\"|" \
541 -e "s|%OCTAVE_CONF_QRUPDATE_LDFLAGS%|\"${QRUPDATE_LDFLAGS}\"|" \
542 -e "s|%OCTAVE_CONF_QRUPDATE_LIBS%|\"${QRUPDATE_LIBS}\"|" \
543 -e "s|%OCTAVE_CONF_RANLIB%|\"${RANLIB}\"|" \
544 -e "s|%OCTAVE_CONF_RDYNAMIC_FLAG%|\"${RDYNAMIC_FLAG}\"|" \
545 -e "s|%OCTAVE_CONF_READLINE_LIBS%|\"${READLINE_LIBS}\"|" \
546 -e "s|%OCTAVE_CONF_REGEX_LIBS%|\"${REGEX_LIBS}\"|" \
547 -e "s|%OCTAVE_CONF_RLD_FLAG%|\"${RLD_FLAG}\"|" \
548 -e "s|%OCTAVE_CONF_SED%|\"${SED}\"|" \
549 -e "s|%OCTAVE_CONF_SHARED_LIBS%|\"${SHARED_LIBS}\"|" \
550 -e "s|%OCTAVE_CONF_SHLEXT%|\"${SHLEXT}\"|" \
551 -e "s|%OCTAVE_CONF_SHLLINKEXT%|\"${SHLLINKEXT}\"|" \
552 -e "s|%OCTAVE_CONF_SHLEXT_VER%|\"${SHLEXT_VER}\"|" \
553 -e "s|%OCTAVE_CONF_SH_LD%|\"${SH_LD}\"|" \
554 -e "s|%OCTAVE_CONF_SH_LDFLAGS%|\"${SH_LDFLAGS}\"|" \
555 -e "s|%OCTAVE_CONF_SONAME_FLAGS%|\"${SONAME_FLAGS}\"|" \
556 -e "s|%OCTAVE_CONF_STATIC_LIBS%|\"${STATIC_LIBS}\"|" \
557 -e "s|%OCTAVE_CONF_TERM_LIBS%|\"${TERM_LIBS}\"|" \
558 -e "s|%OCTAVE_CONF_UGLY_DEFS%|\"${UGLY_DEFS}\"|" \
559 -e "s|%OCTAVE_CONF_UMFPACK_CPPFLAGS%|\"${UMFPACK_CPPFLAGS}\"|" \
560 -e "s|%OCTAVE_CONF_UMFPACK_LDFLAGS%|\"${UMFPACK_LDFLAGS}\"|" \
561 -e "s|%OCTAVE_CONF_UMFPACK_LIBS%|\"${UMFPACK_LIBS}\"|" \
562 -e "s|%OCTAVE_CONF_USE_64_BIT_IDX_T%|\"${USE_64_BIT_IDX_T}\"|" \
563 -e "s|%OCTAVE_CONF_VERSION%|\"${version}\"|" \
564 -e "s|%OCTAVE_CONF_ENABLE_DYNAMIC_LINKING%|\"${ENABLE_DYNAMIC_LINKING}\"|" \
565 -e "s|%OCTAVE_CONF_X11_INCFLAGS%|\"${X11_INCFLAGS}\"|" \
566 -e "s|%OCTAVE_CONF_X11_LIBS%|\"${X11_LIBS}\"|" \
567 -e "s|%OCTAVE_CONF_XTRA_CFLAGS%|\"${XTRA_CFLAGS}\"|" \
568 -e "s|%OCTAVE_CONF_XTRA_CXXFLAGS%|\"${XTRA_CXXFLAGS}\"|" \
569 -e "s|%OCTAVE_CONF_YACC%|\"${YACC}\"|" \
570 -e "s|%OCTAVE_CONF_YFLAGS%|\"${YFLAGS}\"|" \
571 -e "s|%OCTAVE_CONF_Z_CPPFLAGS%|\"${Z_CPPFLAGS}\"|" \
572 -e "s|%OCTAVE_CONF_Z_LDFLAGS%|\"${Z_LDFLAGS}\"|" \
573 -e "s|%OCTAVE_CONF_Z_LIBS%|\"${Z_LIBS}\"|" \
574 -e "s|%OCTAVE_CONF_config_opts%|\"${config_opts}\"|" | \
575 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t
576 $(simple_move_if_change_rule)
577 endef
578
579 define do_subst_default_vals
580 echo "making $@ from $<"
581 $(SED) < $< > $@-t \
582 -e "s|%OCTAVE_ARCHLIBDIR%|\"${archlibdir}\"|" \
583 -e "s|%OCTAVE_BINDIR%|\"${bindir}\"|" \
584 -e "s|%OCTAVE_CANONICAL_HOST_TYPE%|\"${canonical_host_type}\"|" \
585 -e "s|%OCTAVE_DATADIR%|\"${datadir}\"|" \
586 -e "s|%OCTAVE_DATAROOTDIR%|\"${datarootdir}\"|" \
587 -e "s|%OCTAVE_DEFAULT_PAGER%|\"${DEFAULT_PAGER}\"|" \
588 -e "s|%OCTAVE_DOC_CACHE_FILE%|\"${doc_cache_file}\"|" \
589 -e "s|%OCTAVE_EXEC_PREFIX%|\"${exec_prefix}\"|" \
590 -e "s|%OCTAVE_FCNFILEDIR%|\"${fcnfiledir}\"|" \
591 -e "s|%OCTAVE_IMAGEDIR%|\"${imagedir}\"|" \
592 -e "s|%OCTAVE_INCLUDEDIR%|\"${includedir}\"|" \
593 -e "s|%OCTAVE_INFODIR%|\"${infodir}\"|" \
594 -e "s|%OCTAVE_INFOFILE%|\"${infofile}\"|" \
595 -e "s|%OCTAVE_LIBDIR%|\"${libdir}\"|" \
596 -e "s|%OCTAVE_LIBEXECDIR%|\"${libexecdir}\"|" \
597 -e "s|%OCTAVE_LOCALAPIFCNFILEDIR%|\"${localapifcnfiledir}\"|" \
598 -e "s|%OCTAVE_LOCALAPIOCTFILEDIR%|\"${localapioctfiledir}\"|" \
599 -e "s|%OCTAVE_LOCALARCHLIBDIR%|\"${localarchlibdir}\"|" \
600 -e "s|%OCTAVE_LOCALFCNFILEDIR%|\"${localfcnfiledir}\"|" \
601 -e "s|%OCTAVE_LOCALOCTFILEDIR%|\"${localoctfiledir}\"|" \
602 -e "s|%OCTAVE_LOCALSTARTUPFILEDIR%|\"${localstartupfiledir}\"|" \
603 -e "s|%OCTAVE_LOCALAPIARCHLIBDIR%|\"${localapiarchlibdir}\"|" \
604 -e "s|%OCTAVE_LOCALVERARCHLIBDIR%|\"${localverarchlibdir}\"|" \
605 -e "s|%OCTAVE_LOCALVERFCNFILEDIR%|\"${localverfcnfiledir}\"|" \
606 -e "s|%OCTAVE_LOCALVEROCTFILEDIR%|\"${localveroctfiledir}\"|" \
607 -e "s|%OCTAVE_MAN1DIR%|\"${man1dir}\"|" \
608 -e "s|%OCTAVE_MAN1EXT%|\"${man1ext}\"|" \
609 -e "s|%OCTAVE_MANDIR%|\"${mandir}\"|" \
610 -e "s|%OCTAVE_OCTFILEDIR%|\"${octfiledir}\"|" \
611 -e "s|%OCTAVE_OCTETCDIR%|\"${octetcdir}\"|" \
612 -e "s|%OCTAVE_OCTINCLUDEDIR%|\"${octincludedir}\"|" \
613 -e "s|%OCTAVE_OCTLIBDIR%|\"${octlibdir}\"|" \
614 -e "s|%OCTAVE_STARTUPFILEDIR%|\"${startupfiledir}\"|" \
615 -e "s|%OCTAVE_PREFIX%|\"${prefix}\"|" \
616 -e "s|%OCTAVE_API_VERSION%|\"${api_version}\"|" \
617 -e "s|%OCTAVE_RELEASE%|\"${OCTAVE_RELEASE}\"|" \
618 -e "s|%OCTAVE_VERSION%|\"${version}\"|"
619 $(simple_move_if_change_rule)
620 endef
621
622 define do_subst_texinfo_vals
623 echo "making $@ from $<"
624 $(SED) < $< \
625 -e "s|%abs_top_srcdir%|${abs_top_srcdir}|" \
626 -e "s|%top_srcdir%|${top_srcdir}|" \
627 -e "s|%OCTAVE_HOME%|${prefix}|" \
628 -e "s|%OCTAVE_VERSION%|${version}|" \
629 -e "s|%TEXINFO_COLAMD%|${TEXINFO_COLAMD}|" \
630 -e "s|%TEXINFO_CHOLMOD%|${TEXINFO_CHOLMOD}|" \
631 -e "s|%TEXINFO_UMFPACK%|${TEXINFO_UMFPACK}|" \
632 -e "s|%TEXINFO_QHULL%|${TEXINFO_QHULL}|" | \
633 $(SED) -e "s|%OCTAVE_CONF_DEFS%|\"${UGLY_DEFS}\"|" > $@-t
634 $(simple_move_if_change_rule)
635 endef
636
637 define do_subst_script_vals
638 echo "making $@ from $<"
639 $(SED) < $< \
640 -e "s|%AWK%|${AWK}|g" \
641 -e "s|%FIND%|${FIND}|g" \
642 -e "s|%SED%|${SED}|g" \
643 -e "s|%library_path_var%|${library_path_var}|g" \
644 -e "s|%liboctinterp%|${SHLPRE}octinterp.${SHLEXT}|g" \
645 -e "s|%liboctave%|${SHLPRE}octave.${SHLEXT}|g" \
646 -e "s|%libcruft%|${SHLPRE}cruft.${SHLEXT}|g" \
647 -e "s|%ldpreloadsep%|${ldpreloadsep}|g" \
648 -e "s|%srcdir%|${srcdir}|" \
649 -e "s|%top_srcdir%|${top_srcdir}|" \
650 -e "s|%abs_top_srcdir%|${abs_top_srcdir}|" \
651 -e "s|%builddir%|$(shell pwd)|" > $@-t
652 $(simple_move_if_change_rule)
653 endef
654
655 define do_script_install
656 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)
657 for f in $(FCN_FILES); do \
658 fbase=`basename $$f`; \
659 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \
660 $(INSTALL_DATA) $$f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$fbase; \
661 done
662 $(top_srcdir)/mkpkgadd $(DESTDIR)$(fcnfiledir)/$(script_sub_dir) > $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t
663 if [ -n "`cat $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t`" ]; then \
664 $(INSTALL_DATA) $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD ; \
665 else \
666 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t ; \
667 fi
668 endef
669
670 define do_script_uninstall
671 for f in $(FCN_FILES_NO_DIR); \
672 do rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/$$f; \
673 done
674 rm -f $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)/PKG_ADD
675 -rmdir $(DESTDIR)$(fcnfiledir)/$(script_sub_dir)
676 endef