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