405
|
1 dnl configure.in |
|
2 dnl |
5
|
3 dnl Process this file with autoconf to produce a configure script. |
|
4 dnl |
2847
|
5 dnl Copyright (C) 1996, 1997 John W. Eaton |
869
|
6 ### |
|
7 ### This file is part of Octave. |
|
8 ### |
|
9 ### Octave is free software; you can redistribute it and/or modify it |
|
10 ### under the terms of the GNU General Public License as published by the |
|
11 ### Free Software Foundation; either version 2, or (at your option) any |
|
12 ### later version. |
|
13 ### |
|
14 ### Octave is distributed in the hope that it will be useful, but WITHOUT |
|
15 ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
16 ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
17 ### for more details. |
|
18 ### |
|
19 ### You should have received a copy of the GNU General Public License |
|
20 ### along with Octave; see the file COPYING. If not, write to the Free |
2488
|
21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
|
22 ### 02111-1307, USA. |
869
|
23 |
3887
|
24 AC_INIT |
4094
|
25 AC_REVISION($Revision: 1.373 $) |
3887
|
26 AC_PREREQ(2.52) |
|
27 AC_CONFIG_SRCDIR([src/octave.cc]) |
1146
|
28 AC_CONFIG_HEADER(config.h) |
869
|
29 |
3887
|
30 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) |
|
31 |
|
32 OCTAVE_HOST_TYPE |
869
|
33 |
3923
|
34 AC_AIX |
3887
|
35 AC_MINIX |
3923
|
36 AC_ISC_POSIX |
1667
|
37 |
2223
|
38 ### some defaults |
|
39 |
2813
|
40 OCTAVE_SET_DEFAULT(man1dir, '$(mandir)/man1') |
|
41 OCTAVE_SET_DEFAULT(man1ext, '.1') |
|
42 OCTAVE_SET_DEFAULT(infofile, '$(infodir)/octave.info') |
3597
|
43 OCTAVE_SET_DEFAULT(octincludedir, '$(includedir)/octave-$(version)') |
3029
|
44 OCTAVE_SET_DEFAULT(fcnfiledir, '$(datadir)/octave/$(version)/m') |
2813
|
45 OCTAVE_SET_DEFAULT(localfcnfiledir, '$(datadir)/octave/site/m') |
3597
|
46 OCTAVE_SET_DEFAULT(localverfcnfiledir, '$(datadir)/octave/$(version)/site/m') |
|
47 OCTAVE_SET_DEFAULT(localfcnfilepath, |
|
48 '$(localverfcnfiledir)//:$(localfcnfiledir)//') |
3141
|
49 OCTAVE_SET_DEFAULT(octlibdir, '$(libdir)/octave-$(version)') |
3029
|
50 OCTAVE_SET_DEFAULT(archlibdir, |
3130
|
51 '$(libexecdir)/octave/$(version)/exec/$(canonical_host_type)') |
3029
|
52 OCTAVE_SET_DEFAULT(localarchlibdir, |
3130
|
53 '$(libexecdir)/octave/site/exec/$(canonical_host_type)') |
3597
|
54 OCTAVE_SET_DEFAULT(localverarchlibdir, |
|
55 '$(libexecdir)/octave/$(version)/site/exec/$(canonical_host_type)') |
3029
|
56 OCTAVE_SET_DEFAULT(octfiledir, |
3130
|
57 '$(libexecdir)/octave/$(version)/oct/$(canonical_host_type)') |
3029
|
58 OCTAVE_SET_DEFAULT(localoctfiledir, |
3130
|
59 '$(libexecdir)/octave/site/oct/$(canonical_host_type)') |
3597
|
60 OCTAVE_SET_DEFAULT(localveroctfiledir, |
|
61 '$(libexecdir)/octave/$(version)/site/oct/$(canonical_host_type)') |
|
62 OCTAVE_SET_DEFAULT(localoctfilepath, |
|
63 '$(localveroctfiledir)//:$(localoctfiledir)//') |
3029
|
64 OCTAVE_SET_DEFAULT(fcnfilepath, |
|
65 '.:$(localoctfilepath):$(localfcnfilepath):$(octfiledir)//:$(fcnfiledir)//') |
|
66 OCTAVE_SET_DEFAULT(imagedir, '$(datadir)/octave/$(version)/imagelib') |
2813
|
67 OCTAVE_SET_DEFAULT(imagepath, '.:$(imagedir)//') |
1667
|
68 |
2155
|
69 ### Make configure args available for other uses. |
|
70 |
|
71 config_opts=$ac_configure_args |
|
72 AC_SUBST(config_opts) |
|
73 |
1667
|
74 ### Path separator. |
|
75 |
3887
|
76 AC_DEFINE(SEPCHAR, [':'], Define this to be the path separator for your system, as a character constant.]) |
|
77 AC_DEFINE(SEPCHAR_STR, [":"], [Define this to the path separator, as a string.]) |
1667
|
78 |
869
|
79 ### Allow the user to force us to use f2c. |
|
80 |
832
|
81 AC_ARG_WITH(f2c, |
|
82 [ --with-f2c use f2c even if Fortran compiler is available], |
2813
|
83 [if test "$withval" = no; then use_f2c=false; else use_f2c=true; fi], |
1177
|
84 use_f2c=false) |
|
85 |
|
86 ### Allow the user to force us to use g77. |
|
87 |
|
88 AC_ARG_WITH(g77, |
|
89 [ --with-g77 use g77 to compile Fortran subroutines], |
2813
|
90 [if test "$withval" = no; then use_g77=false; else use_g77=true; fi], |
1177
|
91 use_g77=false) |
|
92 |
2813
|
93 ### Allow the user to force us to use f77. |
|
94 |
|
95 AC_ARG_WITH(f77, |
|
96 [ --with-f77 use f77 to compile Fortran subroutines], |
|
97 [if test "$withval" = no; then use_f77=false; else use_f77=true; fi], |
|
98 use_f77=false) |
|
99 |
|
100 ### Make sure only one of the above options for Fortran compilers was |
|
101 ### specified (multiple "no" or --without-FOO options are ok). |
|
102 |
|
103 OCTAVE_CHECK_EXCLUSIVE_WITH_OPTIONS(f77, g77, |
3105
|
104 [warn_f77_and_g77="--with-f77 and --with-g77 both specified! Using g77..." |
|
105 AC_MSG_WARN($warn_f77_and_g77) |
2813
|
106 use_g77=false]) |
|
107 |
|
108 OCTAVE_CHECK_EXCLUSIVE_WITH_OPTIONS(f77, f2c, |
3105
|
109 [warn_f2c_and_f77="--with-f2c and --with-f77 both specified! Using f77..." |
|
110 AC_MSG_WARN($warn_f2c_and_f77) |
2813
|
111 use_f2c=false]) |
|
112 |
|
113 OCTAVE_CHECK_EXCLUSIVE_WITH_OPTIONS(g77, f2c, |
3105
|
114 [warn_f2c_and_g77="--with-f2c and --with-g77 both specified! Using g77..." |
|
115 AC_MSG_WARN($warn_f2c_and_g77) |
2813
|
116 use_f2c=false]) |
869
|
117 |
2415
|
118 dnl ### Allow the user disable support for plplot. |
|
119 dnl |
|
120 dnl # USE_PLPLOT=true |
|
121 dnl # PLPLOT_DIR=plplot |
3156
|
122 dnl # LIBPLPLOT='$(TOPDIR)/plplot/libplplot.$(LIBEXT) |
1397
|
123 USE_PLPLOT=false |
|
124 PLPLOT_DIR="" |
|
125 LIBPLPLOT="" |
2415
|
126 dnl AC_ARG_ENABLE(plplot, |
|
127 dnl [ --enable-plplot use plplot for plotting (default is yes)], |
2813
|
128 dnl [if test "$enableval" = no; then |
2415
|
129 dnl USE_PLPLOT=false; |
|
130 dnl LIBPLPLOT=""; |
|
131 dnl PLPLOT_DIR=""; |
|
132 dnl fi], []) |
|
133 dnl if $USE_PLPLOT; then |
3887
|
134 dnl AC_DEFINE(USE_PLPLOT, 1, [Define to use plplot.]) |
2415
|
135 dnl fi |
2421
|
136 AC_SUBST(LIBPLPLOT) |
|
137 AC_SUBST(PLPLOT_DIR) |
1137
|
138 |
3156
|
139 LIBKPATHSEA='$(TOPDIR)/kpathsea/libkpathsea.$(LIBEXT)' |
|
140 AC_SUBST(LIBKPATHSEA) |
|
141 |
2813
|
142 ### Make it possible to have Octave's array and matrix classes do bounds |
2108
|
143 ### checking on element references. This slows some operations down a |
2813
|
144 ### bit, so it is turned off by default. |
2108
|
145 |
2450
|
146 BOUNDS_CHECKING=false |
2108
|
147 AC_ARG_ENABLE(bounds-check, |
3060
|
148 [ --enable-bounds-check for internal array classes (default is no)], |
|
149 [if test "$enableval" = yes; then BOUNDS_CHECKING=true; fi], []) |
2108
|
150 if $BOUNDS_CHECKING; then |
3887
|
151 AC_DEFINE(BOUNDS_CHECKING, 1, [Define to use internal bounds checking.]) |
2108
|
152 fi |
|
153 |
3215
|
154 ### It seems that there are some broken inline assembly functions in |
|
155 ### the GNU libc. Since I'm not sure how to test whether we are using |
|
156 ### GNU libc, just disable them for all platforms. |
|
157 |
|
158 AC_MSG_RESULT([defining __NO_MATH_INLINES avoids buggy GNU libc exp function]) |
3887
|
159 AC_DEFINE(__NO_MATH_INLINES, 1, [Define if your version of GNU libc has buggy inline assembly code for math functions like exp.]) |
3215
|
160 |
869
|
161 ### See which C++ compiler to use (we expect to find g++). |
|
162 |
1334
|
163 EXTERN_CXXFLAGS="$CXXFLAGS" |
|
164 |
405
|
165 AC_PROG_CXX |
|
166 AC_PROG_CXXCPP |
869
|
167 |
|
168 ### Do special things for g++. |
|
169 |
2353
|
170 gxx_version=`$CXX -v 2>&1 | grep "^.*g.. version" | \ |
3107
|
171 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//'` |
|
172 |
3775
|
173 # |
|
174 # Auto instantiate all templates, other than those that are explicitly |
|
175 # instantiated in Octave. Octave currently instantiates all needed |
|
176 # templates for GCC-2.8.x and EGCS-1.1.x, but not for newer GNU releases |
|
177 # nor for other supported compilers. |
|
178 # |
|
179 cxx_auto_instantiate_templates=yes |
405
|
180 case "$gxx_version" in |
3887
|
181 1.* | 2.[[0123456]].* | 2.7.[01]*) |
3107
|
182 AC_MSG_ERROR([g++ version $gxx_version will not work to compile Octave]) |
|
183 ;; |
3887
|
184 2.8* | 2.9[[1-6]]*) |
3775
|
185 cxx_auto_instantiate_templates=no |
|
186 ;; |
405
|
187 esac |
869
|
188 |
1894
|
189 CXX_VERSION= |
|
190 if test -n "$gxx_version"; then |
|
191 CXX_VERSION="$gxx_version" |
|
192 fi |
|
193 AC_SUBST(CXX_VERSION) |
|
194 |
3107
|
195 OCTAVE_CXX_NEW_FRIEND_TEMPLATE_DECL |
3769
|
196 OCTAVE_CXX_ISO_COMPLIANT_LIBRARY |
3107
|
197 |
3842
|
198 # Determine the ABI used the C++ compiler, needed by the dynamic loading |
|
199 # code. Currently supported ABIs are GNU v2, GNU v3 and Sun Workshop. |
|
200 |
|
201 OCTAVE_CXX_ABI |
|
202 |
869
|
203 ### See which C compiler to use (we expect to find gcc). |
|
204 |
1334
|
205 EXTERN_CFLAGS="$CFLAGS" |
|
206 |
5
|
207 AC_PROG_CC |
405
|
208 AC_PROG_CPP |
832
|
209 AC_PROG_GCC_TRADITIONAL |
869
|
210 |
|
211 ### Do special things for gcc. |
|
212 |
2353
|
213 gcc_version=`$CC -v 2>&1 | grep "^.*gcc version" | \ |
3107
|
214 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//'` |
405
|
215 case "$gcc_version" in |
|
216 2.*) |
1087
|
217 if test -z "$LDFLAGS"; then |
|
218 LDFLAGS="-g" |
|
219 AC_MSG_RESULT([defining LDFLAGS to be $LDFLAGS]) |
|
220 fi |
405
|
221 ;; |
|
222 1.*) |
3105
|
223 warn_gcc_version="gcc version $gcc_version is likely to cause problems" |
|
224 AC_MSG_WARN($warn_gcc_version) |
405
|
225 ;; |
5
|
226 esac |
869
|
227 |
1894
|
228 CC_VERSION= |
|
229 if test -n "$gcc_version"; then |
|
230 CC_VERSION="$gcc_version" |
|
231 fi |
|
232 AC_SUBST(CC_VERSION) |
|
233 |
3775
|
234 ### The flag to create dependency varies depending on the compier. |
|
235 |
|
236 # Assume GCC. |
|
237 DEPEND_FLAGS="-M" |
|
238 DEPEND_EXTRA_SED_PATTERN="" |
|
239 case "$canonical_host_type" in |
|
240 sparc-sun-solaris2* | i386-pc-solaris2*) |
3820
|
241 if test "$GCC" = yes; then |
3775
|
242 true |
|
243 else |
|
244 DEPEND_FLAGS="-xM1" |
|
245 DEPEND_EXTRA_SED_PATTERN="-e '/\/opt\/SUNWspro/d'" |
|
246 fi |
|
247 ;; |
|
248 esac |
|
249 AC_SUBST(DEPEND_FLAGS) |
|
250 AC_SUBST(DEPEND_EXTRA_SED_PATTERN) |
|
251 |
3065
|
252 ### On Intel systems with gcc, we may need to compile with -mieee-fp to |
2558
|
253 ### get full support for IEEE floating point. |
2020
|
254 ### |
3126
|
255 ### On Alpha/OSF systems, we need -mieee. |
869
|
256 |
3126
|
257 ieee_fp_flag= |
350
|
258 case "$canonical_host_type" in |
3887
|
259 i[[3456789]]86-*-*) |
3126
|
260 OCTAVE_CC_FLAG(-mieee-fp, [ |
|
261 ieee_fp_flag=-mieee-fp |
3131
|
262 XTRA_CFLAGS="$XTRA_CFLAGS -mieee-fp" |
|
263 AC_MSG_RESULT([adding -mieee-fp to XTRA_CFLAGS])]) |
3126
|
264 |
|
265 OCTAVE_CXX_FLAG(-mieee-fp, [ |
|
266 ieee_fp_flag=-mieee-fp |
3131
|
267 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp" |
|
268 AC_MSG_RESULT([adding -mieee-fp to XTRA_CXXFLAGS])]) |
324
|
269 ;; |
3127
|
270 alpha*-*-*) |
3160
|
271 OCTAVE_CC_FLAG(-mieee-with-inexact, [ |
|
272 ieee_fp_flag=-mieee-with-inexact |
|
273 XTRA_CFLAGS="$XTRA_CFLAGS -mieee-with-inexact" |
|
274 AC_MSG_RESULT([adding -mieee-with-inexact to XTRA_CFLAGS])]) |
3131
|
275 |
3160
|
276 OCTAVE_CXX_FLAG(-mieee-with-inexact, [ |
|
277 ieee_fp_flag=-mieee-with-inexact |
|
278 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-with-inexact" |
|
279 AC_MSG_RESULT([adding -mieee-with-inexact to XTRA_CXXFLAGS])]) |
2020
|
280 ;; |
3176
|
281 *ibm-aix4*) |
3351
|
282 OCTAVE_CC_FLAG(-mminimal-toc, [ |
|
283 XTRA_CFLAGS="$XTRA_CFLAGS -mminimal-toc"]) |
3176
|
284 |
3351
|
285 OCTAVE_CXX_FLAG(-mminimal-toc, [ |
|
286 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mminimal-toc"]) |
3176
|
287 ;; |
324
|
288 esac |
3126
|
289 |
3775
|
290 ### We do our own template instantiation for specific compilers. |
3126
|
291 |
3820
|
292 if test "$cxx_auto_instantiate_templates" = no; then |
3956
|
293 case "$canonical_host_type" in |
|
294 *-*-darwin*) |
|
295 OCTAVE_CXX_FLAG(-fno-coalesce-templates, [ |
|
296 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -fno-coalesce-templates" |
|
297 AC_MSG_RESULT([adding -fno-coalesce-templates to XTRA_CXXFLAGS])]) |
|
298 ;; |
|
299 esac |
3775
|
300 OCTAVE_CXX_FLAG(-fno-implicit-templates, [ |
|
301 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -fno-implicit-templates" |
|
302 AC_MSG_RESULT([adding -fno-implicit-templates to XTRA_CXXFLAGS])]) |
|
303 fi |
3126
|
304 |
|
305 AC_SUBST(XTRA_CFLAGS) |
|
306 AC_SUBST(XTRA_CXXFLAGS) |
869
|
307 |
1667
|
308 ### Use -static if compiling on Alpha OSF/1 1.3 systems. |
|
309 |
|
310 case "$canonical_host_type" in |
3127
|
311 alpha*-dec-osf1.3) |
1667
|
312 LD_STATIC_FLAG=-static |
|
313 ;; |
|
314 esac |
1679
|
315 if test -n "$LD_STATIC_FLAG"; then |
|
316 AC_MSG_RESULT([defining LD_STATIC_FLAG to be $LD_STATIC_FLAG]) |
|
317 fi |
|
318 AC_SUBST(LD_STATIC_FLAG) |
1667
|
319 |
3222
|
320 OCTAVE_CXX_PREPENDS_UNDERSCORE |
4094
|
321 OCTAVE_CXX_PRAGMA_INTERFACE_IMPLEMENTATION |
|
322 |
|
323 ### Defaults for cross compiling. BUILD_CC and BUILD_CXX are |
|
324 ### the compilers that we use for building tools on the build system. |
|
325 |
|
326 if test "$cross_compiling" = yes; then |
|
327 BUILD_CC="gcc" |
|
328 BUILD_CFLAGS="-O2 -g" |
|
329 BUILD_CXX="g++" |
|
330 BUILD_CXXFLAGS="-O2 -g" |
|
331 else |
|
332 BUILD_CC=$CC |
|
333 BUILD_CFLAGS="-O2 -g" |
|
334 BUILD_CXX="g++" |
|
335 BUILD_CXXFLAGS="-O2 -g" |
|
336 fi |
|
337 |
|
338 AC_ARG_VAR(BUILD_CC, [build system C compiler (used if cross compiling)]) |
|
339 AC_ARG_VAR(BUILD_CFLAGS, [build system C compiler flags (used if cross compiling)]) |
|
340 AC_ARG_VAR(BUILD_CXX, [build system C++ compiler (used if cross compiling)]) |
|
341 AC_ARG_VAR(BUILD_CXXFLAGS, [build system C++ compiler flags (used if cross compiling)]) |
3222
|
342 |
3232
|
343 dnl This is bogus. We shouldn't have to explicitly add libc too! |
|
344 |
|
345 ### Look for math library. If found, this will add -lm to LIBS. |
|
346 |
|
347 case "$canonical_host_type" in |
|
348 *-*-nextstep*) |
|
349 ;; |
|
350 *-*-linux*) |
|
351 AC_CHECK_LIB(m, sin, , , -lc) |
|
352 ;; |
|
353 *) |
|
354 AC_CHECK_LIB(m, sin) |
|
355 ;; |
|
356 esac |
|
357 |
3820
|
358 ### Check for HDF5 library. |
|
359 |
|
360 ### XXX FIXME XXX -- how can user specify a set of libraries here? |
|
361 |
|
362 WITH_HDF5=true |
|
363 AC_ARG_WITH(hdf5, |
|
364 [ --without-hdf5 don't use HDF5], |
|
365 with_hdf5=$withval, with_hdf5=yes) |
|
366 |
|
367 hdf5_lib= |
|
368 if test "$with_hdf5" = yes; then |
|
369 hdf5_lib="hdf5" |
|
370 elif test "$with_hdf5" != no; then |
|
371 hdf5_lib="$with_hdf5" |
3687
|
372 fi |
|
373 |
3820
|
374 HDF5_LIBS= |
|
375 WITH_HDF5=false |
|
376 if test -n "$hdf5_lib"; then |
|
377 AC_CHECK_LIB($hdf5_lib, H5Pcreate, [ |
|
378 AC_CHECK_LIB(z, deflate, [ |
|
379 AC_CHECK_HEADERS(hdf5.h, [ |
|
380 WITH_HDF5=true |
|
381 HDF5_LIBS="-l$hdf5_lib -lz" |
|
382 LIBS="$HDF5_LIBS $LIBS" |
3892
|
383 AC_DEFINE(HAVE_HDF5, 1, [Define if HDF5 is available.])])])]) |
3820
|
384 fi |
3687
|
385 |
3827
|
386 # Checks for FFTW header and library. |
|
387 |
|
388 # subdirectories of libcruft to build if they aren't found on the system: |
|
389 FFT_DIR="fftpack" |
|
390 AC_SUBST(FFT_DIR) |
|
391 |
|
392 # Installed fftw library, if any. |
|
393 FFTW_LIBS='' |
|
394 AC_SUBST(FFTW_LIBS) |
|
395 |
|
396 AC_ARG_WITH(fftw, |
3886
|
397 [ --without-fftw use included fftpack instead of installed fftw], |
|
398 with_fftw=$withval, with_fftw=yes) |
3827
|
399 |
|
400 if test "$with_fftw" = "yes"; then |
3887
|
401 have_fftw_header=no |
|
402 AC_CHECK_HEADERS(dfftw.h fftw.h, [have_fftw_header=yes; break]) |
|
403 if test "$have_fftw_header" = yes; then |
3827
|
404 AC_CHECK_LIB(dfftw, fftw_create_plan, FFTW_LIBS="-ldfftw", |
|
405 [AC_CHECK_LIB(fftw, fftw_create_plan, FFTW_LIBS="-lfftw", with_fftw=no)]) |
|
406 else |
|
407 with_fftw=no |
|
408 fi |
|
409 fi |
|
410 |
|
411 if test "$with_fftw" = yes; then |
|
412 FFT_DIR='' |
3892
|
413 AC_DEFINE(HAVE_FFTW, 1, [Define if the FFTW library is available.]) |
3827
|
414 fi |
|
415 |
|
416 # ---------------------------------------------------------------------- |
|
417 |
3012
|
418 ### We need these before trying to find libf2c. |
|
419 |
3130
|
420 OCTAVE_PROG_AR |
3012
|
421 |
|
422 AC_PROG_RANLIB |
|
423 |
2813
|
424 ### If we haven't been forced to use a particular Fortran compiler, |
|
425 ### try to find one using any one of several common Un*x Fortran |
3887
|
426 ### compiler names using the AC_PROG_F77 macro. |
1239
|
427 ### |
2813
|
428 ### The configure options --with-f77, --with-g77, or --with-f2c |
|
429 ### force f77, g77 or f2c to be used. It is also possible to use |
|
430 ### these options to specify the name of the compiler. For example, |
|
431 ### `--with-g77=/opt/gnu/bin/f77' says that we are using g77 but it is |
|
432 ### installed as /opt/gnu/bin/f77. |
1233
|
433 |
2813
|
434 if $use_f77; then |
3008
|
435 if test "$with_f77" = yes; then |
2813
|
436 F77=f77 |
|
437 else |
|
438 F77="$with_f77" |
|
439 fi |
|
440 AC_MSG_RESULT([defining F77 to be $F77]) |
|
441 elif $use_g77; then |
2336
|
442 if test "$with_g77" = yes; then |
1239
|
443 F77=g77 |
|
444 else |
|
445 F77="$with_g77" |
|
446 fi |
|
447 AC_MSG_RESULT([defining F77 to be $F77]) |
1233
|
448 elif $use_f2c; then |
|
449 F77= |
2336
|
450 if test "$with_f2c" = yes; then |
1317
|
451 F2C=f2c |
1239
|
452 else |
|
453 F2C="$with_f2c" |
|
454 fi |
|
455 AC_MSG_RESULT([defining F2C to be $F2C]) |
1233
|
456 fi |
5
|
457 |
3887
|
458 if test "x$FFLAGS" = x; then |
|
459 FFLAGS="-O" # override -g -O default by AC_PROG_F77 |
|
460 fi |
|
461 |
|
462 # the F77 variable, if set, overrides AC_PROG_F77 automatically |
|
463 AC_PROG_F77 |
|
464 |
1239
|
465 have_fortran_compiler=false |
|
466 have_f2c=false |
5
|
467 |
2813
|
468 if $use_f2c; then |
1239
|
469 have_f2c=true |
|
470 else |
|
471 if test -n "$F77"; then |
3887
|
472 AC_F77_LIBRARY_LDFLAGS |
|
473 AC_F77_DUMMY_MAIN |
|
474 AC_F77_WRAPPERS |
|
475 case "$canonical_host_type" in |
|
476 alpha*-*-*) |
|
477 if test "$ac_cv_f77_compiler_gnu" = yes; then |
|
478 FFLAGS="$ieee_fp_flag $FFLAGS" |
|
479 else |
|
480 FFLAGS="-fpe1 $FFLAGS" |
|
481 fi |
|
482 ;; |
|
483 powerpc-apple-machten*) |
|
484 FFLAGS= |
|
485 ;; |
|
486 esac |
|
487 if test -n "$FFLAGS"; then |
|
488 AC_MSG_RESULT([defining FFLAGS to be $FFLAGS]) |
1239
|
489 fi |
|
490 have_fortran_compiler=true |
1233
|
491 else |
1239
|
492 AC_CHECK_PROG(F2C, f2c, f2c, []) |
3897
|
493 AC_ARG_VAR(F2C, [Fortran to C translator command]) |
|
494 AC_ARG_VAR(F2CFLAGS, [Fortran to C translator flags]) |
1239
|
495 if test -n "$F2C"; then |
|
496 have_f2c=true |
5
|
497 fi |
|
498 fi |
|
499 fi |
869
|
500 |
2762
|
501 f77_rules_frag=/dev/null |
1239
|
502 if $have_fortran_compiler; then |
2762
|
503 f77_rules_frag=Makefrag.f77 |
1679
|
504 cat << \EOF > $f77_rules_frag |
1668
|
505 |
1753
|
506 %.c : %.f |
1668
|
507 |
1791
|
508 %.o : %.f |
3615
|
509 $(FC) -c $(ALL_FFLAGS) -o $@ $< |
1668
|
510 |
1984
|
511 pic/%.o : %.f |
|
512 $(FC) -c $(FPICFLAG) $(ALL_FFLAGS) $< -o $@ |
|
513 |
1668
|
514 EOF |
1239
|
515 elif $have_f2c; then |
3887
|
516 AC_DEFINE(HAVE_F2C, 1, [Define if we are using f2c.]) |
2562
|
517 |
|
518 ### XXX FIMXE XXX -- these shouldn't be fixed names, eh? |
|
519 |
|
520 oct_conflib=libconflib.a |
|
521 oct_obj_ext=o |
|
522 |
|
523 if AC_TRY_EVAL(ac_compile); then |
3887
|
524 $AR $ARFLAGS $oct_conflib conftest.$oct_obj_ext 1>&AS_MESSAGE_LOG_FD() |
2562
|
525 if test -n "$RANLIB"; then |
3887
|
526 $RANLIB $oct_conflib 1>&AS_MESSAGE_LOG_FD() |
5
|
527 fi |
|
528 fi |
2562
|
529 rm -f conftest* |
3232
|
530 AC_CHECK_LIB(f2c, f_open, FLIBS=-lf2c, FLIBS=, [-L. -lconflib]) |
2562
|
531 rm -f $oct_conflib |
|
532 |
|
533 if test -z "$FLIBS"; then |
3232
|
534 AC_CHECK_LIB(F77, d_sin, FLIBS=-lF77, FLIBS=) |
2562
|
535 if test -n "$FLIBS"; then |
|
536 AC_CHECK_LIB(I77, f_rew, FLIBS="$FLIBS -lI77", FLIBS=, -lF77) |
|
537 fi |
|
538 fi |
|
539 |
1462
|
540 if test -z "$FLIBS"; then |
3105
|
541 warn_f2c_no_lib="I found f2c but not libf2c.a, or libF77.a and libI77.a" |
|
542 AC_MSG_WARN($warn_f2c_no_lib) |
5
|
543 fi |
2633
|
544 f77_rules_frag=Makefrag.f77 |
1679
|
545 cat << \EOF > $f77_rules_frag |
1668
|
546 |
1824
|
547 %.c : %.f |
3847
|
548 $(F2C) $(F2CFLAGS) < $< > $(@F) |
1668
|
549 |
1753
|
550 %.o : %.f |
1668
|
551 |
|
552 EOF |
5
|
553 else |
832
|
554 AC_MSG_WARN([in order to build octave, you must have a compatible]) |
|
555 AC_MSG_WARN([Fortran compiler or f2c installed and in your path.]) |
1664
|
556 AC_MSG_ERROR([See the file INSTALL for more information.]) |
5
|
557 fi |
869
|
558 |
1163
|
559 FC=$F77 |
|
560 AC_SUBST(FC) |
1679
|
561 AC_SUBST_FILE(f77_rules_frag) |
869
|
562 |
3820
|
563 ### Checks for BLAS and LAPACK libraries: |
3887
|
564 # (Build subdirectories of libcruft if they aren't found on the system.) |
3820
|
565 |
3887
|
566 sinclude(acx_blas.m4) |
|
567 sinclude(acx_lapack.m4) |
|
568 ACX_BLAS([], [BLAS_DIR="blas"]) |
|
569 ACX_LAPACK([BLAS_LIBS="$LAPACK_LIBS $BLAS_LIBS"], [LAPACK_DIR="lapack"]) |
3690
|
570 AC_SUBST(BLAS_DIR) |
|
571 AC_SUBST(LAPACK_DIR) |
|
572 |
2813
|
573 ### Handle dynamic linking and shared library options. |
|
574 |
|
575 ### Allow the user to experiment with dynamic linking using dlopen/dlsym. |
|
576 |
|
577 AC_ARG_ENABLE(dl, |
|
578 [ --enable-dl use dlopen/dlsym for dynamic linking (not all systems)], |
|
579 [if test "$enableval" = no; then WITH_DL=no; |
|
580 elif test "$enableval" = yes; then WITH_DL=yes; |
|
581 else WITH_DL=maybe; fi], |
|
582 WITH_DL=maybe) |
|
583 |
|
584 ### Allow the user to experiment with dynamic linking using |
|
585 ### shl_load/shl_findsym (HP/UX only?). |
|
586 |
|
587 AC_ARG_ENABLE(shl, |
|
588 [ --enable-shl use shl_load/shl_findsym for dynamic linking (HP only)], |
|
589 [if test "$enableval" = no; then WITH_SHL=no; |
|
590 elif test "$enableval" = yes; then WITH_SHL=yes; |
|
591 else WITH_SHL=maybe; fi], |
|
592 WITH_SHL=maybe) |
|
593 |
3034
|
594 ### Enable creation of static libraries. |
|
595 |
|
596 AC_ARG_ENABLE(static, |
|
597 [ --enable-static create static libraries], |
|
598 [if test "$enableval" = no; then STATIC_LIBS=false; |
|
599 else STATIC_LIBS=true; fi], |
|
600 STATIC_LIBS=true) |
|
601 AC_SUBST(STATIC_LIBS) |
|
602 |
2813
|
603 ### Enable creation of shared libraries. Currently only works with |
|
604 ### gcc on some systems. |
|
605 |
|
606 AC_ARG_ENABLE(shared, |
|
607 [ --enable-shared create shared libraries (not all systems)], |
|
608 [if test "$enableval" = no; then SHARED_LIBS=false; |
|
609 else SHARED_LIBS=true; fi], |
|
610 SHARED_LIBS=false) |
|
611 AC_SUBST(SHARED_LIBS) |
|
612 |
3034
|
613 if $STATIC_LIBS || $SHARED_LIBS; then |
|
614 true |
|
615 else |
|
616 AC_MSG_ERROR([You can't disable building static AND shared libraries!]) |
|
617 fi |
|
618 |
3156
|
619 if $SHARED_LIBS; then |
|
620 LIBOCTINTERP=-loctinterp |
|
621 LIBOCTAVE=-loctave |
3857
|
622 LIBOCT_READLINE=-loct-readline |
|
623 LIBOCT_PATHSEARCH=-loct-pathsearch |
3156
|
624 LIBCRUFT=-lcruft |
|
625 else |
|
626 LIBOCTINTERP='$(TOPDIR)/src/liboctinterp.$(LIBEXT)' |
|
627 LIBOCTAVE='$(TOPDIR)/liboctave/liboctave.$(LIBEXT)' |
3857
|
628 LIBOCT_READLINE='$(TOPDIR)/liboctave/liboct-readline.$(LIBEXT)' |
|
629 LIBOCT_PATHSEARCH='$(TOPDIR)/liboctave/liboct-pathsearch.$(LIBEXT)' |
3156
|
630 LIBCRUFT='$(TOPDIR)/libcruft/libcruft.$(LIBEXT)' |
|
631 fi |
|
632 AC_SUBST(LIBOCTINTERP) |
|
633 AC_SUBST(LIBOCTAVE) |
3857
|
634 AC_SUBST(LIBOCT_READLINE) |
|
635 AC_SUBST(LIBOCT_PATHSEARCH) |
3156
|
636 AC_SUBST(LIBCRUFT) |
|
637 |
2813
|
638 use_rpath=true |
|
639 AC_ARG_ENABLE(rpath, |
|
640 [ --enable-rpath add -rpath to link command for shared libraries], |
|
641 [if test "$enableval" = no; then use_rpath=false; fi], []) |
|
642 |
|
643 DLFCN_DIR= |
|
644 CPICFLAG=-fPIC |
|
645 CXXPICFLAG=-fPIC |
|
646 FPICFLAG=-fPIC |
|
647 SHLEXT=so |
3124
|
648 SH_LD="$CXX" |
2813
|
649 SH_LDFLAGS=-shared |
3036
|
650 SONAME_FLAGS= |
2813
|
651 RLD_FLAG= |
3775
|
652 TEMPLATE_AR="$AR" |
|
653 TEMPLATE_ARFLAGS="$ARFLAGS" |
2813
|
654 case "$canonical_host_type" in |
|
655 *-*-386bsd* | *-*-openbsd* | *-*-netbsd* | *-*-freebsd*) |
|
656 SH_LD=ld |
|
657 SH_LDFLAGS=-Bshareable |
|
658 ;; |
3127
|
659 alpha*-dec-osf*) |
2813
|
660 CPICFLAG= |
|
661 CXXPICFLAG= |
|
662 FPICFLAG= |
|
663 SH_LDFLAGS="-shared -Xlinker -expect_unresolved -Xlinker '*'" |
3037
|
664 SONAME_FLAGS='-Xlinker -soname -Xlinker $@' |
3162
|
665 RLD_FLAG='-Xlinker -rpath -Xlinker $(octlibdir)' |
2813
|
666 ;; |
3956
|
667 *-*-darwin*) |
|
668 SH_LDFLAGS='-bundle -bundle_loader $(bindir)/octave' |
|
669 ;; |
3740
|
670 *-*-linux* | *-*-gnu*) |
3038
|
671 SONAME_FLAGS='-Xlinker -soname -Xlinker $@' |
3162
|
672 RLD_FLAG='-Xlinker -rpath -Xlinker $(octlibdir)' |
2813
|
673 ;; |
3887
|
674 i[[3456]]86-*-sco3.2v5*) |
3705
|
675 SONAME_FLAGS='-Xlinker -h -Xlinker $@' |
|
676 RLD_FLAG= |
3160
|
677 SH_LDFLAGS=-G |
|
678 ;; |
2813
|
679 rs6000-ibm-aix* | powerpc-ibm-aix*) |
|
680 CPICFLAG= |
|
681 CXXPICFLAG= |
|
682 FPICFLAG= |
|
683 DLFCN_DIR=dlfcn |
|
684 ;; |
|
685 hppa*-hp-hpux*) |
3887
|
686 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813
|
687 FPICFLAG=-fPIC |
|
688 else |
|
689 FPICFLAG=+Z |
|
690 fi |
|
691 SHLEXT=sl |
|
692 SH_LDFLAGS="-shared -fPIC" |
3162
|
693 RLD_FLAG='-Xlinker +b -Xlinker $(octlibdir)' |
2813
|
694 ;; |
|
695 *-sgi-*) |
|
696 CPICFLAG= |
|
697 CXXPICFLAG= |
|
698 FPICFLAG= |
3162
|
699 RLD_FLAG='-L$(octlibdir)' |
2813
|
700 ;; |
|
701 sparc-sun-sunos4*) |
3887
|
702 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813
|
703 FPICFLAG=-fPIC |
|
704 else |
|
705 FPICFLAG=-PIC |
|
706 fi |
3059
|
707 SH_LD=ld |
|
708 SH_LDFLAGS="-assert nodefinitions" |
3162
|
709 RLD_FLAG='-L$(octlibdir)' |
2813
|
710 ;; |
3606
|
711 sparc-sun-solaris2* | i386-pc-solaris2*) |
3887
|
712 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813
|
713 FPICFLAG=-fPIC |
|
714 else |
3775
|
715 FPICFLAG=-KPIC |
|
716 fi |
|
717 if test "$GCC" = yes; then |
|
718 CPICFLAG=-fPIC |
|
719 else |
|
720 CPICFLAG=-KPIC |
2813
|
721 fi |
3775
|
722 if test "$GXX" = yes; then |
|
723 CXXPICFLAG=-fPIC |
|
724 SH_LDFLAGS=-shared |
|
725 else |
|
726 CXXPICFLAG=-KPIC |
|
727 SH_LDFLAGS=-G |
|
728 fi |
|
729 RLD_FLAG='-R $(octlibdir)' |
|
730 # Template closures in archive libraries need a different mechanism. |
3820
|
731 if test "$GXX" = yes; then |
3775
|
732 true |
|
733 else |
|
734 TEMPLATE_AR="$CXX" |
|
735 TEMPLATE_ARFLAGS="-xar -o" |
|
736 fi |
2813
|
737 ;; |
|
738 esac |
|
739 |
|
740 if $use_rpath; then |
|
741 true |
|
742 else |
|
743 RLD_FLAG= |
|
744 fi |
|
745 |
|
746 AC_MSG_RESULT([defining FPICFLAG to be $FPICFLAG]) |
|
747 AC_MSG_RESULT([defining CPICFLAG to be $CPICFLAG]) |
|
748 AC_MSG_RESULT([defining CXXPICFLAG to be $CXXPICFLAG]) |
|
749 AC_MSG_RESULT([defining SHLEXT to be $SHLEXT]) |
|
750 AC_MSG_RESULT([defining DLFCN_DIR to be $DLFCN_DIR]) |
|
751 AC_MSG_RESULT([defining SH_LD to be $SH_LD]) |
|
752 AC_MSG_RESULT([defining SH_LDFLAGS to be $SH_LDFLAGS]) |
3036
|
753 AC_MSG_RESULT([defining SONAME_FLAGS to be $SONAME_FLAGS]) |
2813
|
754 AC_MSG_RESULT([defining RLD_FLAG to be $RLD_FLAG]) |
3775
|
755 AC_MSG_RESULT([defining TEMPLATE_AR to be $TEMPLATE_AR]) |
|
756 AC_MSG_RESULT([defining TEMPLATE_ARFLAGS to be $TEMPLATE_ARFLAGS]) |
2813
|
757 AC_SUBST(FPICFLAG) |
|
758 AC_SUBST(CPICFLAG) |
|
759 AC_SUBST(CXXPICFLAG) |
|
760 AC_SUBST(SHLEXT) |
|
761 AC_SUBST(DLFCN_DIR) |
|
762 AC_SUBST(SH_LD) |
|
763 AC_SUBST(SH_LDFLAGS) |
3036
|
764 AC_SUBST(SONAME_FLAGS) |
2813
|
765 AC_SUBST(RLD_FLAG) |
3775
|
766 AC_SUBST(TEMPLATE_AR) |
|
767 AC_SUBST(TEMPLATE_ARFLAGS) |
2813
|
768 |
|
769 ### Allow compilation of smaller kernel. This only works if some form |
|
770 ### of dynamic linking is also supported and used. |
|
771 |
|
772 AC_ARG_ENABLE(lite-kernel, |
|
773 [ --enable-lite-kernel compile smaller kernel (requires dynamic linking)], |
|
774 [if test "$enableval" = no; then OCTAVE_LITE=false; |
|
775 else OCTAVE_LITE=true; fi], |
|
776 OCTAVE_LITE=false) |
|
777 if $OCTAVE_LITE; then |
3887
|
778 AC_DEFINE(OCTAVE_LITE, 1, [Define to compile smaller kernel.]) |
2813
|
779 fi |
|
780 AC_SUBST(OCTAVE_LITE) |
|
781 |
|
782 ### special checks for odd OS specific things. |
|
783 ### |
|
784 ### I am told that on some SCO systems, the only place to find some |
|
785 ### functions like gethostname and gettimeofday is in libsocket. |
|
786 |
3887
|
787 AC_CHECK_FUNCS(gethostname, [], [AC_CHECK_LIB(socket, gethostname)]) |
|
788 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) |
2813
|
789 |
|
790 ### How big are ints and how are they oriented? These could probably |
|
791 ### be eliminated in favor of run-time checks. |
|
792 |
3888
|
793 AC_CHECK_SIZEOF(short) |
|
794 AC_CHECK_SIZEOF(int) |
|
795 AC_CHECK_SIZEOF(long) |
|
796 AC_CHECK_SIZEOF(long long) |
2813
|
797 |
|
798 ### Does the C compiler handle alloca() and const correctly? |
|
799 |
3887
|
800 AC_FUNC_ALLOCA([]) |
2813
|
801 AC_C_CONST |
|
802 |
|
803 ### See if we should define NPOS. |
|
804 |
|
805 OCTAVE_STRING_NPOS |
|
806 |
869
|
807 ### Checks for header files. |
|
808 |
832
|
809 AC_HEADER_STDC |
|
810 AC_HEADER_DIRENT |
1377
|
811 AC_HEADER_TIME |
|
812 AC_HEADER_SYS_WAIT |
2097
|
813 |
4051
|
814 ### C headers |
|
815 |
4067
|
816 AC_CHECK_HEADERS(assert.h curses.h direct.h dlfcn.h fcntl.h float.h \ |
4051
|
817 floatingpoint.h grp.h ieeefp.h limits.h memory.h nan.h \ |
|
818 ncurses.h poll.h pwd.h stdlib.h string.h sys/ioctl.h \ |
3308
|
819 sys/param.h sys/poll.h sys/resource.h sys/select.h sys/stat.h \ |
|
820 sys/time.h sys/times.h sys/types.h sys/utsname.h termcap.h \ |
3887
|
821 unistd.h varargs.h) |
|
822 |
4051
|
823 ### C++ headers |
|
824 |
|
825 AC_LANG_PUSH(C++) |
|
826 AC_CHECK_HEADERS(sstream) |
|
827 AC_LANG_POP(C++) |
|
828 |
3887
|
829 have_termios_h=no |
|
830 AC_CHECK_HEADERS($TERMIOS_H, have_termios_h=yes) |
|
831 AC_CHECK_HEADERS(termio.h, have_termio_h=yes, have_termio_h=no) |
|
832 AC_CHECK_HEADERS(sgtty.h, have_sgtty_h=yes, have_sgtty_h=no) |
|
833 AC_CHECK_HEADERS(glob.h, have_glob_h=yes, have_glob_h=no) |
|
834 AC_CHECK_HEADERS(fnmatch.h, have_fnmatch_h=yes, have_fnmatch_h=no) |
4067
|
835 AC_CHECK_HEADERS(conio.h, have_conio_h=yes, have_conio_h=no) |
3249
|
836 |
3225
|
837 ### I'm told that termios.h is broken on NeXT systems. |
|
838 |
|
839 case "$canonical_host_type" in |
|
840 *-*-nextstep*) |
3887
|
841 if test "$have_termios_h" = yes; then |
3249
|
842 AC_MSG_WARN([Ignoring termios.h on NeXT systems.]) |
3887
|
843 have_termios_h=no |
3249
|
844 fi |
3225
|
845 ;; |
|
846 esac |
|
847 |
3887
|
848 if test "$have_termios_h" = yes \ |
|
849 || test "$have_termio_h" = yes \ |
|
850 || test "$have_sgtty_h" = yes; then |
832
|
851 true |
|
852 else |
4064
|
853 AC_MSG_WARN([I couldn't find termios.h, termio.h, or sgtty.h!]) |
832
|
854 fi |
869
|
855 |
3697
|
856 ## I'm told that setting LIBGLOB to be $(TOPDIR)/glob/libglob.a causes |
|
857 ## trouble on SCO systems, but setting it to be the two object files |
|
858 ## avoids the problem. |
3177
|
859 |
3156
|
860 GLOB_DIR=glob |
3697
|
861 LIBGLOB='$(TOPDIR)/glob/glob.o $(TOPDIR)/glob/fnmatch.o' |
3156
|
862 GLOB_INCFLAGS='-I$(top_srcdir)/glob -I$(TOPDIR)/glob' |
3887
|
863 if test "$have_fnmatch_h" = yes && test "$have_glob_h" = yes; then |
|
864 AC_EGREP_CPP(yes, [#include <fnmatch.h> |
|
865 #ifdef FNM_NOESCAPE |
|
866 #ifdef FNM_FOOBAR_PATHNAME /* FIXME: delete FOOBAR_ ? */ |
|
867 #ifdef FNM_PERIOD |
|
868 yes |
|
869 #endif |
|
870 #endif |
|
871 #endif |
3177
|
872 ], [ |
|
873 GLOB_DIR= |
|
874 AC_CHECK_LIB(glob, glob) |
3887
|
875 AC_CHECK_FUNCS(fnmatch, have_fnmatch=yes, have_fnmatch=no) |
|
876 AC_CHECK_FUNCS(glob, have_glob=yes, have_glob=no) |
|
877 if test "$have_fnmatch" = yes && test "$have_glob" = yes; then |
3177
|
878 GLOB_DIR= |
|
879 LIBGLOB= |
|
880 GLOB_INCFLAGS= |
|
881 fi |
|
882 ]) |
3156
|
883 fi |
|
884 AC_SUBST(GLOB_DIR) |
|
885 AC_SUBST(LIBGLOB) |
|
886 AC_SUBST(GLOB_INCFLAGS) |
|
887 |
1788
|
888 ### Checks for functions and variables. |
869
|
889 |
3710
|
890 AC_CHECK_FUNCS(atexit bcopy bzero dup2 endgrent endpwent execvp \ |
|
891 fcntl fork getcwd getegid geteuid getgid getgrent getgrgid \ |
3803
|
892 getgrnam getpgrp getpid getppid getpwent \ |
4092
|
893 getpwuid gettimeofday getuid getwd _kbhit kill link localtime_r lstat \ |
|
894 memmove mkdir mkfifo on_exit pipe poll putenv raise readlink rename \ |
3710
|
895 rindex rmdir select setgrent setpwent setvbuf sigaction sigpending \ |
|
896 sigprocmask sigsuspend stat strcasecmp strdup strerror strftime \ |
|
897 stricmp strncasecmp strnicmp strptime symlink tempnam umask unlink \ |
|
898 usleep vfprintf vsprintf vsnprintf waitpid) |
1300
|
899 |
1708
|
900 OCTAVE_SMART_PUTENV |
|
901 |
3705
|
902 LD_CXX='$(CXX)' |
2064
|
903 LIBDLFCN= |
|
904 DLFCN_INCFLAGS= |
3232
|
905 RDYNAMIC_FLAG= |
1978
|
906 if test "$WITH_DL" = yes || test "$WITH_DL" = maybe; then |
2063
|
907 case "$canonical_host_type" in |
|
908 rs6000-ibm-aix* | powerpc-ibm-aix*) |
2346
|
909 LIBDLFCN="-ldlfcn -ll -lld" |
2064
|
910 DLFCN_INCFLAGS='-I$(top_srcdir)/dlfcn -I$(TOPDIR)/dlfcn' |
2063
|
911 WITH_DL=true |
|
912 ;; |
3887
|
913 i[[3456]]86-*-sco3.2v5*) |
3705
|
914 LD_CXX='LD_RUN_PATH=$LD_RUN_PATH:$(octlibdir) $(CXX)' |
3160
|
915 WITH_DL=true |
|
916 ;; |
2063
|
917 *) |
|
918 AC_CHECK_LIB(dl, dlopen) |
3887
|
919 AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose, [], [have_dl=false]) |
|
920 if test "x$have_dl" != xfalse; then |
|
921 WITH_DL=true |
2063
|
922 else |
|
923 if test "$WITH_DL" = yes; then |
|
924 AC_MSG_ERROR([--enable-dl specified, but functions are missing!]) |
|
925 fi |
|
926 WITH_DL=false |
|
927 fi |
|
928 ;; |
|
929 esac |
1978
|
930 if $WITH_DL; then |
3958
|
931 OCTAVE_CXX_FLAG(-rdynamic, [RDYNAMIC_FLAG=-rdynamic]) |
3887
|
932 AC_DEFINE(WITH_DL, 1, [Define if using dlopen/dlsym.]) |
1978
|
933 fi |
|
934 else |
|
935 WITH_DL=false |
1664
|
936 fi |
1978
|
937 AC_SUBST(WITH_DL) |
2064
|
938 AC_SUBST(LIBDLFCN) |
|
939 AC_SUBST(DLFCN_INCFLAGS) |
3232
|
940 AC_SUBST(RDYNAMIC_FLAG) |
3705
|
941 AC_SUBST(LD_CXX) |
1664
|
942 |
1978
|
943 if test "$WITH_SHL" = yes || test "$WITH_SHL" = maybe; then |
|
944 AC_CHECK_LIB(dld, shl_load) |
3887
|
945 AC_CHECK_FUNCS(shl_load shl_findsym, [], [have_shl=false]) |
|
946 if test "x$have_shl" != xfalse; then |
1978
|
947 WITH_SHL=true |
|
948 else |
|
949 if test "$WITH_SHL" = yes; then |
|
950 AC_MSG_ERROR([--enable-shl specified, but functions are missing!]) |
|
951 fi |
|
952 WITH_SHL=false |
|
953 fi |
|
954 if $WITH_SHL; then |
3887
|
955 AC_DEFINE(WITH_SHL, 1, [Define if using dld for dynamic linking.]) |
1978
|
956 fi |
|
957 else |
|
958 WITH_SHL=false |
1664
|
959 fi |
1978
|
960 AC_SUBST(WITH_SHL) |
1664
|
961 |
1901
|
962 ### Set WITH_DYNAMIC_LINKING after all the other shared library stuff |
|
963 ### has been determined. |
|
964 |
|
965 if $WITH_DL || $WITH_SHL; then |
3887
|
966 AC_DEFINE(WITH_DYNAMIC_LINKING, 1, [Define if using dynamic linking.]) |
1901
|
967 WITH_DYNAMIC_LINKING=true |
|
968 else |
|
969 WITH_DYNAMIC_LINKING=false |
|
970 fi |
|
971 AC_SUBST(WITH_DYNAMIC_LINKING) |
|
972 |
1300
|
973 ### There is more than one possible prototype for gettimeofday. See |
2782
|
974 ### which one (if any) appears in sys/time.h. These tests are from |
|
975 ### Emacs 19. |
1300
|
976 |
2782
|
977 AC_MSG_CHECKING(for struct timeval) |
|
978 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME |
|
979 #include <sys/time.h> |
|
980 #include <time.h> |
|
981 #else |
|
982 #ifdef HAVE_SYS_TIME_H |
|
983 #include <sys/time.h> |
|
984 #else |
|
985 #include <time.h> |
|
986 #endif |
|
987 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], |
|
988 [AC_MSG_RESULT(yes) |
|
989 HAVE_TIMEVAL=yes |
3887
|
990 AC_DEFINE(HAVE_TIMEVAL, 1, [Define if struct timeval is defined.])], |
2782
|
991 [AC_MSG_RESULT(no) |
|
992 HAVE_TIMEVAL=no]) |
|
993 |
|
994 if test "x$HAVE_TIMEVAL" = xyes; then |
|
995 AC_MSG_CHECKING(whether gettimeofday can't accept two arguments) |
|
996 AC_TRY_LINK([#ifdef TIME_WITH_SYS_TIME |
|
997 #include <sys/time.h> |
|
998 #include <time.h> |
|
999 #else |
|
1000 #ifdef HAVE_SYS_TIME_H |
|
1001 #include <sys/time.h> |
|
1002 #else |
|
1003 #include <time.h> |
|
1004 #endif |
|
1005 #endif],[struct timeval time; struct timezone dummy; |
|
1006 gettimeofday (&time, &dummy);], [AC_MSG_RESULT(no)], |
|
1007 [AC_MSG_RESULT(yes) |
3887
|
1008 AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, [Define if your system has a single-arg prototype for gettimeofday.])]) |
2782
|
1009 fi |
869
|
1010 |
832
|
1011 dnl Would like to get rid of this cruft, and just have |
|
1012 dnl |
|
1013 dnl AC_CHECK_FUNCS(finite isnan isinf) |
|
1014 dnl |
|
1015 dnl instead, but that used to fail on some systems... |
369
|
1016 dnl |
832
|
1017 dnl Also just using AC_CHECK_FUNCS doesn't seem to work to find isinf |
|
1018 dnl and isnan on Linux systems, so we use AC_CHECK_FUNC, and if that |
369
|
1019 dnl fails, we try again by including math.h and invoking the function |
|
1020 dnl with an argument. |
869
|
1021 |
2508
|
1022 ### I am told that Inf and NaN don't work on m68k HP sytems, and that |
|
1023 ### on SCO systems, isnan and isinf don't work, but they can be |
|
1024 ### replaced by something that does. |
956
|
1025 |
|
1026 case "$canonical_host_type" in |
1384
|
1027 m68k-hp-hpux*) |
956
|
1028 ;; |
2508
|
1029 *-*-sco*) |
|
1030 AC_MSG_RESULT([defining SCO to be 1]) |
3887
|
1031 AC_DEFINE(SCO, 1, [Define if using an SCO system.]) |
2508
|
1032 AC_MSG_RESULT([forcing HAVE_ISINF for SCO]) |
3887
|
1033 AC_DEFINE(HAVE_ISINF, 1, [Define if you have isinf().]) |
2508
|
1034 AC_MSG_RESULT([forcing HAVE_ISNAN for SCO]) |
3887
|
1035 AC_DEFINE(HAVE_ISNAN, 1, [Define if you have isnan().]) |
2508
|
1036 ;; |
956
|
1037 *) |
3475
|
1038 AC_CHECK_FUNCS(finite isnan isinf) |
956
|
1039 ;; |
|
1040 esac |
|
1041 |
1076
|
1042 ### Check for nonstandard but common math functions that we need. |
|
1043 |
3130
|
1044 AC_CHECK_FUNCS(acosh asinh atanh erf erfc) |
|
1045 |
869
|
1046 ### Checks for OS specific cruft. |
|
1047 |
3887
|
1048 AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct stat.st_rdev]) |
|
1049 |
405
|
1050 AC_STRUCT_TM |
1186
|
1051 AC_STRUCT_TIMEZONE |
1388
|
1052 AC_FUNC_CLOSEDIR_VOID |
1225
|
1053 |
3892
|
1054 AC_CHECK_MEMBERS(struct group.gr_passwd) |
2548
|
1055 |
4067
|
1056 # mkdir takes a single argument on some systems. |
|
1057 OCTAVE_MKDIR_TAKES_ONE_ARG |
|
1058 |
3887
|
1059 octave_found_termlib=no |
2592
|
1060 for termlib in ncurses curses termcap terminfo termlib; do |
2034
|
1061 AC_CHECK_LIB(${termlib}, tputs, [TERMLIBS="${TERMLIBS} -l${termlib}"]) |
405
|
1062 case "${TERMLIBS}" in |
|
1063 *-l${termlib}*) |
3822
|
1064 LIBS="$TERMLIBS $LIBS" |
3887
|
1065 octave_found_termlib=yes |
405
|
1066 break |
|
1067 ;; |
|
1068 esac |
|
1069 done |
869
|
1070 |
3887
|
1071 if test "$octave_found_termlib" = no; then |
|
1072 warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, o\ |
|
1073 r -ltermlib!" |
3105
|
1074 AC_MSG_WARN($warn_termlibs) |
2488
|
1075 fi |
|
1076 |
3822
|
1077 OCTAVE_ENABLE_READLINE |
|
1078 |
832
|
1079 AC_MSG_CHECKING([for struct exception in math.h]) |
|
1080 AC_TRY_LINK([#include <math.h>], |
|
1081 [struct exception *x; x->type; x->name;], |
835
|
1082 AC_MSG_RESULT(yes) |
3887
|
1083 AC_DEFINE(EXCEPTION_IN_MATH, 1, [Define if your math.h declares struct exception for matherr().]), |
869
|
1084 AC_MSG_RESULT(no)) |
|
1085 |
|
1086 ### Signal stuff. |
|
1087 |
834
|
1088 AC_TYPE_SIGNAL |
885
|
1089 AC_DECL_SYS_SIGLIST |
|
1090 AC_MSG_CHECKING([for sys_siglist variable]) |
|
1091 AC_TRY_LINK([#include <stdio.h>], |
|
1092 [extern char *sys_siglist[]; printf ("%s\n", sys_siglist[1]);], |
|
1093 AC_MSG_RESULT(yes) |
3887
|
1094 AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if your system has a sys_siglist variable.]), |
885
|
1095 AC_MSG_RESULT(no)) |
2470
|
1096 OCTAVE_SIGNAL_CHECK |
|
1097 OCTAVE_REINSTALL_SIGHANDLERS |
869
|
1098 |
1762
|
1099 ### Type stuff. |
|
1100 |
|
1101 AC_TYPE_MODE_T |
|
1102 AC_TYPE_OFF_T |
2097
|
1103 AC_TYPE_PID_T |
1762
|
1104 AC_TYPE_SIZE_T |
|
1105 AC_TYPE_UID_T |
3892
|
1106 AC_CHECK_TYPES([dev_t, ino_t, nlink_t, nlink_t]) |
|
1107 AC_CHECK_TYPES(sigset_t, , , [#include <signal.h>]) |
1762
|
1108 |
2633
|
1109 ### A system dependent kluge or two. |
|
1110 |
2035
|
1111 AC_CHECK_FUNCS(getrusage times) |
2427
|
1112 case "$canonical_host_type" in |
3971
|
1113 *-*-cygwin*) |
3887
|
1114 AC_DEFINE(RUSAGE_TIMES_ONLY, 1, [Define if your struct rusage only has time information.]) |
2427
|
1115 ;; |
|
1116 esac |
|
1117 |
2762
|
1118 bsd_gcc_kluge_targets_frag=/dev/null |
2633
|
1119 case "$canonical_host_type" in |
|
1120 *-*-386bsd* | *-*-openbsd* | *-*-netbsd* | *-*-freebsd*) |
|
1121 bsd_gcc_kluge_targets_frag=Makefrag.bsd |
|
1122 cat << \EOF > $bsd_gcc_kluge_targets_frag |
|
1123 |
|
1124 lex.o: lex.cc |
|
1125 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1126 |
|
1127 pt-plot.o: pt-plot.cc |
|
1128 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1129 |
|
1130 symtab.o: symtab.cc |
|
1131 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1132 |
|
1133 toplev.o: toplev.cc |
|
1134 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1135 |
|
1136 unwind-prot.o: unwind-prot.cc |
|
1137 $(CXX) -c $(CPPFLAGS) $(CXXFLAGS_NO_PT_FLAGS) $< |
|
1138 |
|
1139 EOF |
|
1140 ;; |
|
1141 esac |
|
1142 AC_SUBST_FILE(bsd_gcc_kluge_targets_frag) |
|
1143 |
869
|
1144 ### Checks for other programs used for building, testing, installing, |
|
1145 ### and running Octave. |
|
1146 |
4084
|
1147 OCTAVE_PROG_SED |
|
1148 |
3729
|
1149 OCTAVE_PROG_FLEX |
|
1150 OCTAVE_PROG_BISON |
869
|
1151 |
1722
|
1152 AC_PROG_LN_S |
|
1153 |
3222
|
1154 OCTAVE_PROG_NM |
3130
|
1155 OCTAVE_PROG_RUNTEST |
869
|
1156 |
405
|
1157 AC_PROG_INSTALL |
2642
|
1158 INSTALL_SCRIPT='${INSTALL}' |
|
1159 AC_SUBST(INSTALL_SCRIPT) |
869
|
1160 |
3130
|
1161 OCTAVE_PROG_GNUPLOT |
|
1162 OCTAVE_PROG_PAGER |
3673
|
1163 OCTAVE_PROG_GPERF |
3130
|
1164 |
2032
|
1165 ### Even though we include config.h, we need to have the preprocessor |
|
1166 ### defines available in a variable for the octave-bug script. Use |
|
1167 ### UGLY_DEFS for that. |
|
1168 |
|
1169 AC_OUTPUT_MAKE_DEFS |
3956
|
1170 |
|
1171 |
|
1172 dnl Maybe this should really be conditional on "broken sed", or |
|
1173 dnl "broken shell backslash quoting" or somesuch. |
|
1174 dnl |
|
1175 case "$canonical_host_type" in |
|
1176 *-*-darwin*) |
|
1177 UGLY_DEFS=`echo $DEFS | sed 's,\\",\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\",g'` |
|
1178 ;; |
|
1179 *) |
|
1180 UGLY_DEFS=`echo $DEFS | sed 's,\\",\\\\\\\\\\\\\\\\\\",g'` |
|
1181 ;; |
|
1182 esac |
2032
|
1183 AC_MSG_RESULT([defining UGLY_DEFS to be $UGLY_DEFS]) |
|
1184 AC_SUBST(UGLY_DEFS) |
|
1185 |
869
|
1186 ### Maybe add -Wall to compiler flags now that we're done feature |
|
1187 ### testing. |
|
1188 |
3131
|
1189 if test -z "$EXTERN_CFLAGS"; then |
|
1190 OCTAVE_CC_FLAG(-Wall) |
405
|
1191 fi |
3131
|
1192 |
|
1193 if test -z "$EXTERN_CXXFLAGS"; then |
|
1194 OCTAVE_CXX_FLAG(-Wall) |
405
|
1195 fi |
869
|
1196 |
2813
|
1197 ### Someday, maybe include -ansi and even -pedantic in this list... |
|
1198 |
|
1199 GCC_PICKY_FLAGS="-Wcast-align -Wcast-qual -Wid-clash-31 \ |
|
1200 -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ |
|
1201 -Wstrict-prototypes -Wwrite-strings" |
|
1202 |
3131
|
1203 GXX_PICKY_FLAGS="$GCC_PICKY_FLAGS -Weffc++ -Wenum-clash -fno-nonnull-objects" |
2813
|
1204 |
|
1205 AC_ARG_ENABLE(picky-flags, |
|
1206 [ --enable-picky-flags add picky options to CFLAGS, CXXFLAGS, FFLAGS], |
3131
|
1207 [if test "$enableval" = no; then |
|
1208 true |
2813
|
1209 elif test "$enableval" = yes; then |
3131
|
1210 if test -z "$EXTERN_CFLAGS"; then |
|
1211 for flag in $GCC_PICKY_FLAGS; do |
|
1212 OCTAVE_CC_FLAG($flag) |
|
1213 done |
2813
|
1214 fi |
3131
|
1215 if test -z "$EXTERN_CXXFLAGS"; then |
|
1216 for flag in $GXX_PICKY_FLAGS; do |
|
1217 OCTAVE_CXX_FLAG($flag) |
|
1218 done |
2813
|
1219 fi |
|
1220 fi], []) |
|
1221 |
1146
|
1222 ### Run configure in subdirectories. |
|
1223 |
1304
|
1224 export CC |
|
1225 export CXX |
|
1226 export F77 |
|
1227 |
3887
|
1228 AC_CONFIG_SUBDIRS(kpathsea scripts) |
|
1229 |
|
1230 # autoconf 2.50 deprecates the use of variables (e.g. $GLOB_DIR) |
|
1231 # in AC_CONFIG_SUBDIRS; the following form is recommended instead: |
|
1232 |
|
1233 if test "x$GLOB_DIR" = xglob; then |
|
1234 AC_CONFIG_SUBDIRS(glob) |
|
1235 fi |
|
1236 |
|
1237 if test "x$PLPLOT_DIR" = xplplot; then |
|
1238 AC_CONFIG_SUBDIRS(plplot) |
|
1239 fi |
1146
|
1240 |
3923
|
1241 ### Some things to add to the bottom of config.h. |
|
1242 |
|
1243 AH_BOTTOM([ |
|
1244 #if defined (__GNUC__) |
|
1245 #define GCC_ATTR_NORETURN __attribute__ ((__noreturn__)) |
|
1246 #define GCC_ATTR_UNUSED __attribute__ ((__unused__)) |
|
1247 #else |
|
1248 #define GCC_ATTR_NORETURN |
|
1249 #define GCC_ATTR_UNUSED |
|
1250 #endif |
|
1251 |
|
1252 #define CONST_CAST(T, E) (T) (E) |
|
1253 |
|
1254 #define DYNAMIC_CAST(T, E) (T) (E) |
|
1255 |
|
1256 #define REINTERPRET_CAST(T, E) (T) (E) |
|
1257 |
|
1258 #define STATIC_CAST(T, E) (T) (E) |
|
1259 |
|
1260 #define X_CAST(T, E) (T) (E) |
|
1261 |
|
1262 #define HEAVYWEIGHT_INDEXING 1 |
|
1263 |
|
1264 #define WITH_KPATHSEARCH 1 |
|
1265 |
|
1266 #if defined(HAVE_F2C) && !defined(F77_FUNC) |
|
1267 # define F77_FUNC(x,X) x ## _ |
|
1268 # define F77_FUNC_(x,X) x ## __ |
|
1269 #endif |
|
1270 |
|
1271 #if !defined(HAVE_DEV_T) |
4064
|
1272 typedef short dev_t; |
3923
|
1273 #endif |
|
1274 |
|
1275 #if !defined(HAVE_INO_T) |
4064
|
1276 typedef unsigned long ino_t; |
3923
|
1277 #endif |
|
1278 |
|
1279 #if !defined(HAVE_NLINK_T) |
4064
|
1280 typedef short nlink_t; |
3923
|
1281 #endif |
|
1282 |
|
1283 #if !defined(HAVE_SIGSET_T) |
4064
|
1284 typedef int sigset_t; |
3923
|
1285 #endif |
|
1286 ]) |
|
1287 |
869
|
1288 ### Do the substitutions in all the Makefiles. |
|
1289 |
3887
|
1290 AC_CONFIG_FILES([Makefile octMakefile Makeconf install-octave \ |
3215
|
1291 test/Makefile dlfcn/Makefile \ |
|
1292 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile \ |
|
1293 doc/liboctave/Makefile doc/refcard/Makefile emacs/Makefile \ |
|
1294 examples/Makefile liboctave/Makefile src/Makefile \ |
|
1295 libcruft/Makefile libcruft/Makerules \ |
3220
|
1296 libcruft/amos/Makefile libcruft/blas/Makefile \ |
3989
|
1297 libcruft/daspk/Makefile libcruft/dasrt/Makefile \ |
3220
|
1298 libcruft/dassl/Makefile libcruft/fftpack/Makefile \ |
|
1299 libcruft/lapack/Makefile libcruft/linpack/Makefile \ |
|
1300 libcruft/minpack/Makefile libcruft/misc/Makefile \ |
3983
|
1301 libcruft/odepack/Makefile libcruft/odessa/Makefile \ |
|
1302 libcruft/ordered-qz/Makefile \ |
3220
|
1303 libcruft/quadpack/Makefile libcruft/ranlib/Makefile \ |
3215
|
1304 libcruft/slatec-fn/Makefile libcruft/slatec-err/Makefile \ |
3690
|
1305 libcruft/villad/Makefile \ |
3887
|
1306 libcruft/blas-xtra/Makefile libcruft/lapack-xtra/Makefile]) |
|
1307 AC_OUTPUT |
1225
|
1308 |
3887
|
1309 AC_CONFIG_COMMANDS([default-1],[[chmod +x install-octave]],[[]]) |
3176
|
1310 |
1225
|
1311 ### Print a summary so that important information isn't missed. |
|
1312 |
|
1313 if test -z "$F77"; then |
|
1314 FORT="$F2C $F2CFLAGS" |
|
1315 else |
2610
|
1316 FORT="$F77 $FFLAGS" |
1225
|
1317 fi |
|
1318 |
|
1319 AC_MSG_RESULT([ |
|
1320 |
|
1321 Octave is now configured for $canonical_host_type |
|
1322 |
1664
|
1323 Source directory: $srcdir |
|
1324 Installation prefix: $prefix |
3126
|
1325 C compiler: $CC $XTRA_CFLAGS $CFLAGS |
|
1326 C++ compiler: $CXX $XTRA_CXXFLAGS $CXXFLAGS |
1664
|
1327 Fortran compiler: $FORT |
|
1328 Fortran libraries: $FLIBS |
3820
|
1329 BLAS libraries: $BLAS_LIBS |
3827
|
1330 FFTW libraries: $FFTW_LIBS |
3820
|
1331 HDF5 libraries: $HDF5_LIBS |
3822
|
1332 LIBS: $LIBS |
1664
|
1333 Default pager: $DEFAULT_PAGER |
|
1334 gnuplot: $GNUPLOT_BINARY |
|
1335 |
2108
|
1336 Do internal array bounds checking: $BOUNDS_CHECKING |
3034
|
1337 Build static libraries: $STATIC_LIBS |
1679
|
1338 Build shared libraries: $SHARED_LIBS |
|
1339 Minimal kernel option: $OCTAVE_LITE |
|
1340 Dynamic Linking (dlopen/dlsym): $WITH_DL |
|
1341 Dynamic Linking (shl_load/shl_findsym): $WITH_SHL |
3034
|
1342 Include support for GNU readline: $USE_READLINE |
1225
|
1343 ]) |
3105
|
1344 |
|
1345 warn_msg_printed=false |
|
1346 |
|
1347 if test -n "$warn_f77_and_g77"; then |
|
1348 AC_MSG_WARN($warn_f77_and_g77) |
|
1349 warn_msg_printed=true |
|
1350 fi |
|
1351 |
|
1352 if test -n "$warn_f2c_and_f77"; then |
|
1353 AC_MSG_WARN($warn_f2c_and_f77) |
|
1354 warn_msg_printed=true |
|
1355 fi |
|
1356 |
|
1357 if test -n "$warn_f2c_and_g77"; then |
|
1358 AC_MSG_WARN($warn_f2c_and_g77) |
|
1359 warn_msg_printed=true |
|
1360 fi |
|
1361 |
|
1362 if test -n "$gxx_only"; then |
|
1363 AC_MSG_WARN($gxx_only) |
|
1364 warn_msg_printed=true |
|
1365 fi |
|
1366 |
|
1367 if test -n "$warn_gcc_version"; then |
|
1368 AC_MSG_WARN($warn_gcc_version) |
|
1369 warn_msg_printed=true |
|
1370 fi |
|
1371 |
|
1372 if test -n "$warn_gcc_only"; then |
|
1373 AC_MSG_WARN($warn_gcc_only) |
|
1374 warn_msg_printed=true |
|
1375 fi |
|
1376 |
|
1377 if test -n "$warn_f2c_no_lib"; then |
|
1378 AC_MSG_WARN($warn_f2c_no_lib) |
|
1379 warn_msg_printed=true |
|
1380 fi |
|
1381 |
3825
|
1382 if test -n "$warn_readline"; then |
|
1383 AC_MSG_WARN($warn_readline) |
|
1384 warn_msg_printed=true |
|
1385 fi |
|
1386 |
3105
|
1387 if test -n "$warn_termlibs"; then |
|
1388 AC_MSG_WARN($warn_termlibs) |
|
1389 warn_msg_printed=true |
|
1390 fi |
|
1391 |
3673
|
1392 if test -n "$warn_gperf"; then |
|
1393 AC_MSG_WARN($warn_gperf) |
|
1394 warn_msg_printed=true |
|
1395 fi |
|
1396 |
3105
|
1397 if test -n "$warn_flex"; then |
|
1398 AC_MSG_WARN($warn_flex) |
|
1399 warn_msg_printed=true |
|
1400 fi |
|
1401 |
|
1402 if test -n "$warn_bison"; then |
|
1403 AC_MSG_WARN($warn_bison) |
|
1404 warn_msg_printed=true |
|
1405 fi |
|
1406 |
|
1407 if test -n "$warn_less"; then |
|
1408 AC_MSG_WARN($warn_less) |
|
1409 warn_msg_printed=true |
|
1410 fi |
|
1411 |
|
1412 if test -n "$warn_runtest"; then |
|
1413 AC_MSG_WARN($warn_runtest) |
|
1414 warn_msg_printed=true |
|
1415 fi |
|
1416 |
|
1417 if test -n "$warn_gnuplot"; then |
|
1418 |
|
1419 ## If you change this text, be sure to also change the corresponding |
|
1420 ## set of warnings above. |
|
1421 |
|
1422 AC_MSG_WARN([I didn't find gnuplot. It isn't necessary to have gnuplot]) |
|
1423 AC_MSG_WARN([installed, but you won't be able to use any of Octave's]) |
|
1424 AC_MSG_WARN([plotting commands without it.]) |
|
1425 AC_MSG_WARN([]) |
|
1426 AC_MSG_WARN([If gnuplot is installed but it isn't in your path, you can]) |
|
1427 AC_MSG_WARN([tell Octave where to find it by typing the command]) |
|
1428 AC_MSG_WARN([]) |
|
1429 AC_MSG_WARN([gnuplot_binary = "/full/path/to/gnuplot/binary"]) |
|
1430 AC_MSG_WARN([]) |
|
1431 AC_MSG_WARN([at the Octave prompt.]) |
|
1432 warn_msg_printed=true |
|
1433 fi |
|
1434 |
|
1435 if $warn_msg_printed; then |
|
1436 AC_MSG_RESULT([]) |
|
1437 fi |
|
1438 |
|
1439 ### End of configure. |