Mercurial > octave-nkf
annotate configure.in @ 8607:08331c2fb00f
add -lregex to REGEX_LIBS at configure stage, add ARPACK_LIBS, REGEX_LIBS to liboctave's link deps
author | Benjamin Lindner <lindnerb@users.sourceforge.net> |
---|---|
date | Tue, 27 Jan 2009 22:44:38 -0500 |
parents | dee5d60257e4 |
children | f8b3ece45bda |
rev | line source |
---|---|
405 | 1 dnl configure.in |
2 dnl | |
5 | 3 dnl Process this file with autoconf to produce a configure script. |
4 dnl | |
7017 | 5 dnl Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, |
6 dnl 2002, 2003, 2004, 2005, 2006, 2007 John W. Eaton | |
869 | 7 ### |
8 ### This file is part of Octave. | |
9 ### | |
10 ### Octave is free software; you can redistribute it and/or modify it | |
11 ### under the terms of the GNU General Public License as published by the | |
7016 | 12 ### Free Software Foundation; either version 3 of the License, or (at |
13 ### your option) any later version. | |
869 | 14 ### |
15 ### Octave is distributed in the hope that it will be useful, but WITHOUT | |
16 ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
17 ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
18 ### for more details. | |
19 ### | |
20 ### You should have received a copy of the GNU General Public License | |
7016 | 21 ### along with Octave; see the file COPYING. If not, see |
22 ### <http://www.gnu.org/licenses/>. | |
869 | 23 |
4587 | 24 ### Preserve CFLAGS and CXXFLAGS from the environment before doing |
25 ### anything else because we don't know which macros might call | |
26 ### AC_PROG_CC or AC_PROG_CXX. | |
27 | |
28 EXTERN_CFLAGS="$CFLAGS" | |
29 EXTERN_CXXFLAGS="$CXXFLAGS" | |
30 | |
3887 | 31 AC_INIT |
7451 | 32 AC_REVISION($Revision: 1.603 $) |
4531 | 33 AC_PREREQ(2.57) |
3887 | 34 AC_CONFIG_SRCDIR([src/octave.cc]) |
1146 | 35 AC_CONFIG_HEADER(config.h) |
869 | 36 |
5844 | 37 OCTAVE_HOST_TYPE |
38 | |
3887 | 39 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) |
40 | |
6090 | 41 dnl FIXME -- we should probably only generate this file if it is missing. |
42 ### Produce unistd.h for MSVC target, this simplifies changes in | |
43 ### Octave source tree and avoid problems with lex-generated code. | |
44 case "$canonical_host_type" in | |
45 *-*-msdosmsvc) | |
46 AC_MSG_NOTICE([Generating replacement for <unistd.h> for MSVC]) | |
47 cat << \EOF > unistd.h | |
48 /* File generated by configure script. */ | |
49 #include <direct.h> | |
50 #include <io.h> | |
51 #include <process.h> | |
52 EOF | |
53 CPPFLAGS="-I. $CPPFLAGS" | |
54 ;; | |
55 esac | |
56 | |
5098 | 57 AC_GNU_SOURCE |
58 | |
3923 | 59 AC_AIX |
3887 | 60 AC_MINIX |
3923 | 61 AC_ISC_POSIX |
1667 | 62 |
5451 | 63 ### Path separator. |
64 sepchar=: | |
65 AC_ARG_WITH(sepchar, | |
5842 | 66 [AS_HELP_STRING([--with-sepchar=<char>], |
5844 | 67 [use <char> as the path separation character])]) |
5451 | 68 case $with_sepchar in |
69 yes | "") | |
70 case "$canonical_host_type" in | |
6090 | 71 *-*-mingw* | *-*-msdosmsvc) |
5451 | 72 sepchar=';' |
73 ;; | |
74 esac | |
75 ;; | |
76 no) | |
77 AC_MSG_ERROR([You are required to define a path separation character]) | |
78 ;; | |
79 *) | |
80 sepchar=$with_sepchar | |
81 ;; | |
82 esac | |
83 AC_SUBST(sepchar) | |
84 AC_DEFINE_UNQUOTED(SEPCHAR, ['$sepchar'], [Define this to be the path separator for your system, as a character constant.]) | |
85 AC_DEFINE_UNQUOTED(SEPCHAR_STR, ["$sepchar"], [Define this to the path separator, as a string.]) | |
86 | |
2223 | 87 ### some defaults |
88 | |
2813 | 89 OCTAVE_SET_DEFAULT(man1dir, '$(mandir)/man1') |
90 OCTAVE_SET_DEFAULT(man1ext, '.1') | |
91 OCTAVE_SET_DEFAULT(infofile, '$(infodir)/octave.info') | |
3597 | 92 OCTAVE_SET_DEFAULT(octincludedir, '$(includedir)/octave-$(version)') |
3029 | 93 OCTAVE_SET_DEFAULT(fcnfiledir, '$(datadir)/octave/$(version)/m') |
2813 | 94 OCTAVE_SET_DEFAULT(localfcnfiledir, '$(datadir)/octave/site/m') |
4449 | 95 OCTAVE_SET_DEFAULT(localapifcnfiledir, |
5778 | 96 '$(datadir)/octave/site/$(api_version)/m') |
3597 | 97 OCTAVE_SET_DEFAULT(localverfcnfiledir, '$(datadir)/octave/$(version)/site/m') |
3141 | 98 OCTAVE_SET_DEFAULT(octlibdir, '$(libdir)/octave-$(version)') |
3029 | 99 OCTAVE_SET_DEFAULT(archlibdir, |
3130 | 100 '$(libexecdir)/octave/$(version)/exec/$(canonical_host_type)') |
3029 | 101 OCTAVE_SET_DEFAULT(localarchlibdir, |
3130 | 102 '$(libexecdir)/octave/site/exec/$(canonical_host_type)') |
5909 | 103 OCTAVE_SET_DEFAULT(localapiarchlibdir, |
104 '$(libexecdir)/octave/$(api_version)/site/exec/$(canonical_host_type)') | |
3597 | 105 OCTAVE_SET_DEFAULT(localverarchlibdir, |
106 '$(libexecdir)/octave/$(version)/site/exec/$(canonical_host_type)') | |
3029 | 107 OCTAVE_SET_DEFAULT(octfiledir, |
3130 | 108 '$(libexecdir)/octave/$(version)/oct/$(canonical_host_type)') |
3029 | 109 OCTAVE_SET_DEFAULT(localoctfiledir, |
3130 | 110 '$(libexecdir)/octave/site/oct/$(canonical_host_type)') |
4449 | 111 OCTAVE_SET_DEFAULT(localapioctfiledir, |
5778 | 112 '$(libexecdir)/octave/site/oct/$(api_version)/$(canonical_host_type)') |
3597 | 113 OCTAVE_SET_DEFAULT(localveroctfiledir, |
114 '$(libexecdir)/octave/$(version)/site/oct/$(canonical_host_type)') | |
3029 | 115 OCTAVE_SET_DEFAULT(imagedir, '$(datadir)/octave/$(version)/imagelib') |
1667 | 116 |
2155 | 117 ### Make configure args available for other uses. |
118 | |
119 config_opts=$ac_configure_args | |
120 AC_SUBST(config_opts) | |
121 | |
2813 | 122 ### Make it possible to have Octave's array and matrix classes do bounds |
2108 | 123 ### checking on element references. This slows some operations down a |
2813 | 124 ### bit, so it is turned off by default. |
2108 | 125 |
2450 | 126 BOUNDS_CHECKING=false |
2108 | 127 AC_ARG_ENABLE(bounds-check, |
5844 | 128 [AS_HELP_STRING([--enable-bounds-check], |
7091 | 129 [bounds checking for indexing in internal array classes (default is no)])], |
3060 | 130 [if test "$enableval" = yes; then BOUNDS_CHECKING=true; fi], []) |
2108 | 131 if $BOUNDS_CHECKING; then |
3887 | 132 AC_DEFINE(BOUNDS_CHECKING, 1, [Define to use internal bounds checking.]) |
2108 | 133 fi |
134 | |
5275 | 135 ### If possible, use a 64-bit integer type for array dimensions and indexing. |
136 | |
137 USE_64_BIT_IDX_T=false | |
138 OCTAVE_IDX_TYPE=int | |
139 AC_ARG_ENABLE(64, | |
5844 | 140 [AS_HELP_STRING([--enable-64], |
5857 | 141 [(EXPERIMENTAL) use 64-bit integers for array dimensions and indexing])], |
5275 | 142 [if test "$enableval" = yes; then USE_64_BIT_IDX_T=true; fi], []) |
143 if $USE_64_BIT_IDX_T; then | |
144 AC_CHECK_SIZEOF(void *) | |
145 AC_CHECK_SIZEOF(int) | |
146 AC_CHECK_SIZEOF(long) | |
147 if test $ac_cv_sizeof_void_p -eq 8; then | |
148 if test $ac_cv_sizeof_int -eq 8; then | |
149 OCTAVE_IDX_TYPE=int | |
150 elif test $ac_cv_sizeof_long -eq 8; then | |
151 OCTAVE_IDX_TYPE=long | |
5351 | 152 AC_DEFINE(IDX_TYPE_LONG, 1, [Define to 1 if octave index type is long]) |
5275 | 153 else |
5857 | 154 warn_64_bit="no suitable type found for octave_idx_type so disabling 64-bit features" |
155 AC_MSG_WARN($warn_64_bit) | |
5275 | 156 USE_64_BIT_IDX_T=false |
157 fi | |
158 else | |
159 warn_64_bit="pointers are not 64-bits wide so disabling 64-bit features" | |
160 AC_MSG_WARN($warn_64_bit) | |
161 USE_64_BIT_IDX_T=false | |
162 fi | |
163 fi | |
164 AC_SUBST(OCTAVE_IDX_TYPE) | |
165 if $USE_64_BIT_IDX_T; then | |
166 AC_DEFINE(USE_64_BIT_IDX_T, 1, [Define if using 64-bit integers for array dimensions and indexing]) | |
167 fi | |
168 AC_SUBST(USE_64_BIT_IDX_T) | |
169 | |
3215 | 170 ### It seems that there are some broken inline assembly functions in |
171 ### the GNU libc. Since I'm not sure how to test whether we are using | |
172 ### GNU libc, just disable them for all platforms. | |
173 | |
5844 | 174 AC_MSG_NOTICE([defining __NO_MATH_INLINES avoids buggy GNU libc exp function]) |
3887 | 175 AC_DEFINE(__NO_MATH_INLINES, 1, [Define if your version of GNU libc has buggy inline assembly code for math functions like exp.]) |
3215 | 176 |
869 | 177 ### See which C++ compiler to use (we expect to find g++). |
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" | \ |
4368 | 185 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//' -e 's/ .*//'` |
3107 | 186 |
405 | 187 case "$gxx_version" in |
4368 | 188 1.* | 2.[[012345678]].*) |
4843 | 189 AC_MSG_ERROR([g++ version $gxx_version will probably fail to compile Octave] |
190 ) | |
191 ;; | |
192 2.9*) | |
193 warn_gxx_version="g++ version $gxx_version is likely to cause problems" | |
194 AC_MSG_WARN($warn_gxx_version) | |
3775 | 195 ;; |
405 | 196 esac |
869 | 197 |
1894 | 198 CXX_VERSION= |
199 if test -n "$gxx_version"; then | |
200 CXX_VERSION="$gxx_version" | |
201 fi | |
202 AC_SUBST(CXX_VERSION) | |
203 | |
3107 | 204 OCTAVE_CXX_NEW_FRIEND_TEMPLATE_DECL |
3769 | 205 OCTAVE_CXX_ISO_COMPLIANT_LIBRARY |
5854 | 206 OCTAVE_CXX_BROKEN_REINTERPRET_CAST |
3107 | 207 |
869 | 208 ### See which C compiler to use (we expect to find gcc). |
209 | |
5 | 210 AC_PROG_CC |
405 | 211 AC_PROG_CPP |
832 | 212 AC_PROG_GCC_TRADITIONAL |
869 | 213 |
214 ### Do special things for gcc. | |
215 | |
2353 | 216 gcc_version=`$CC -v 2>&1 | grep "^.*gcc version" | \ |
3107 | 217 sed -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//'` |
405 | 218 case "$gcc_version" in |
219 2.*) | |
1087 | 220 if test -z "$LDFLAGS"; then |
221 LDFLAGS="-g" | |
5844 | 222 AC_MSG_NOTICE([defining LDFLAGS to be $LDFLAGS]) |
1087 | 223 fi |
405 | 224 ;; |
225 1.*) | |
3105 | 226 warn_gcc_version="gcc version $gcc_version is likely to cause problems" |
227 AC_MSG_WARN($warn_gcc_version) | |
405 | 228 ;; |
5 | 229 esac |
869 | 230 |
1894 | 231 CC_VERSION= |
232 if test -n "$gcc_version"; then | |
233 CC_VERSION="$gcc_version" | |
234 fi | |
235 AC_SUBST(CC_VERSION) | |
236 | |
3775 | 237 ### The flag to create dependency varies depending on the compier. |
238 | |
239 # Assume GCC. | |
6087 | 240 INCLUDE_DEPS=true |
3775 | 241 DEPEND_FLAGS="-M" |
242 DEPEND_EXTRA_SED_PATTERN="" | |
6087 | 243 if test "$GCC" = yes; then |
244 true | |
245 else | |
246 case "$canonical_host_type" in | |
247 sparc-sun-solaris2* | i386-pc-solaris2*) | |
3775 | 248 DEPEND_FLAGS="-xM1" |
249 DEPEND_EXTRA_SED_PATTERN="-e '/\/opt\/SUNWspro/d'" | |
6087 | 250 ;; |
7451 | 251 *-*-msdosmsvc) |
252 ;; | |
6087 | 253 *) |
254 INCLUDE_DEPS=false | |
255 ;; | |
256 esac | |
257 fi | |
258 AC_SUBST(INCLUDE_DEPS) | |
3775 | 259 AC_SUBST(DEPEND_FLAGS) |
260 AC_SUBST(DEPEND_EXTRA_SED_PATTERN) | |
261 | |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
262 AC_PATH_X |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
263 if test "$have_x"; then |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
264 AC_DEFINE(HAVE_X_WINDOWS, 1, [Define if you have X11]) |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
265 |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
266 X11_INCFLAGS="$x_includes" |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
267 AC_SUBST(X11_INCFLAGS) |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
268 |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
269 AC_CHECK_LIB(X11, XrmInitialize, [X11_LIBS=-lX11], [X11_LIBS=]) |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
270 AC_SUBST(X11_LIBS) |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
271 fi |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
272 |
8595
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
273 ### On MacOSX system the Carbon framework is used to determine ScreenSize |
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
274 OCTAVE_HAVE_FRAMEWORK(Carbon, [#include <Carbon/Carbon.h>], [CGMainDisplayID ()], |
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
275 [have_carbon="yes"], [have_carbon="no"]) |
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
276 if test $have_carbon = "yes"; then |
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
277 AC_DEFINE(HAVE_FRAMEWORK_CARBON, 1, [Define if framework CARBON is available.]) |
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
278 LDFLAGS="$LDFLAGS -Wl,-framework -Wl,Carbon" |
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
279 AC_MSG_NOTICE([adding -Wl,-framework -Wl,Carbon to LDFLAGS]) |
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
280 fi |
dee5d60257e4
Use Carbon framework to determine ScreenSize on Mac.
Thomas Treichl <Thomas.Treichl@gmx.net>
parents:
8577
diff
changeset
|
281 |
5076 | 282 ### On Intel systems with gcc, we may need to compile with -mieee-fp |
283 ### and -ffloat-store to get full support for IEEE floating point. | |
2020 | 284 ### |
3126 | 285 ### On Alpha/OSF systems, we need -mieee. |
869 | 286 |
3126 | 287 ieee_fp_flag= |
350 | 288 case "$canonical_host_type" in |
6102 | 289 ## Keep this pattern first, so that it is preferred over the |
290 ## following pattern for x86. | |
291 *-*-msdosmsvc) | |
292 CXXFLAGS="$CXXFLAGS -EHs -MD" | |
293 CFLAGS="$CFLAGS -MD" | |
294 ;; | |
3887 | 295 i[[3456789]]86-*-*) |
5076 | 296 if test "$GCC" = yes; then |
297 OCTAVE_CC_FLAG(-mieee-fp, [ | |
298 ieee_fp_flag=-mieee-fp | |
299 XTRA_CFLAGS="$XTRA_CFLAGS -mieee-fp" | |
5844 | 300 AC_MSG_NOTICE([adding -mieee-fp to XTRA_CFLAGS])]) |
3126 | 301 |
5078 | 302 ### OCTAVE_CC_FLAG(-ffloat-store, [ |
303 ### float_store_flag=-ffloat-store | |
304 ### XTRA_CFLAGS="$XTRA_CFLAGS -ffloat-store" | |
305 ### AC_MSG_RESULT([adding -ffloat-store to XTRA_CFLAGS])]) | |
5076 | 306 fi |
307 if test "$GXX" = yes; then | |
308 OCTAVE_CXX_FLAG(-mieee-fp, [ | |
309 ieee_fp_flag=-mieee-fp | |
310 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp" | |
5844 | 311 AC_MSG_NOTICE([adding -mieee-fp to XTRA_CXXFLAGS])]) |
5076 | 312 |
5078 | 313 ### OCTAVE_CXX_FLAG(-ffloat-store, [ |
314 ### float_store_flag=-ffloat-store | |
315 ### XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ffloat-store" | |
316 ### AC_MSG_RESULT([adding -ffloat-store to XTRA_CXXFLAGS])]) | |
5076 | 317 fi |
324 | 318 ;; |
3127 | 319 alpha*-*-*) |
4284 | 320 if test "$GCC" = yes; then |
4812 | 321 OCTAVE_CC_FLAG(-mieee, [ |
322 ieee_fp_flag=-mieee | |
323 XTRA_CFLAGS="$XTRA_CFLAGS -mieee" | |
5844 | 324 AC_MSG_NOTICE([adding -mieee to XTRA_CFLAGS])]) |
5076 | 325 else |
326 OCTAVE_CC_FLAG(-ieee, [ | |
327 ieee_fp_flag=-ieee | |
328 XTRA_CFLAGS="$XTRA_CFLAGS -ieee" | |
5844 | 329 AC_MSG_NOTICE([adding -ieee to XTRA_CFLAGS])]) |
5076 | 330 fi |
331 if test "$GXX" = yes; then | |
4812 | 332 OCTAVE_CXX_FLAG(-mieee, [ |
333 ieee_fp_flag=-mieee | |
334 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee" | |
5844 | 335 AC_MSG_NOTICE([adding -mieee to XTRA_CXXFLAGS])]) |
4284 | 336 else |
337 OCTAVE_CXX_FLAG(-ieee, [ | |
338 ieee_fp_flag=-ieee | |
339 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ieee" | |
5844 | 340 AC_MSG_NOTICE([adding -ieee to XTRA_CXXFLAGS])]) |
4284 | 341 fi |
2020 | 342 ;; |
3176 | 343 *ibm-aix4*) |
3351 | 344 OCTAVE_CC_FLAG(-mminimal-toc, [ |
345 XTRA_CFLAGS="$XTRA_CFLAGS -mminimal-toc"]) | |
3176 | 346 |
3351 | 347 OCTAVE_CXX_FLAG(-mminimal-toc, [ |
348 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mminimal-toc"]) | |
3176 | 349 ;; |
324 | 350 esac |
3126 | 351 |
352 AC_SUBST(XTRA_CFLAGS) | |
353 AC_SUBST(XTRA_CXXFLAGS) | |
869 | 354 |
1667 | 355 ### Use -static if compiling on Alpha OSF/1 1.3 systems. |
356 | |
357 case "$canonical_host_type" in | |
3127 | 358 alpha*-dec-osf1.3) |
1667 | 359 LD_STATIC_FLAG=-static |
360 ;; | |
361 esac | |
1679 | 362 if test -n "$LD_STATIC_FLAG"; then |
5844 | 363 AC_MSG_NOTICE([defining LD_STATIC_FLAG to be $LD_STATIC_FLAG]) |
1679 | 364 fi |
365 AC_SUBST(LD_STATIC_FLAG) | |
1667 | 366 |
4094 | 367 ### Defaults for cross compiling. BUILD_CC and BUILD_CXX are |
368 ### the compilers that we use for building tools on the build system. | |
4098 | 369 ### For now, we assume that the only cross compiling we can do is |
4298 | 370 ### with gcc on a Unixy system, but the dedicated hacker can override these. |
4094 | 371 |
372 if test "$cross_compiling" = yes; then | |
373 BUILD_CC="gcc" | |
374 BUILD_CFLAGS="-O2 -g" | |
375 BUILD_CXX="g++" | |
376 BUILD_CXXFLAGS="-O2 -g" | |
4298 | 377 BUILD_LDFLAGS="" |
4098 | 378 BUILD_EXEEXT="" |
4094 | 379 else |
4298 | 380 BUILD_CC='$(CC)' |
381 BUILD_CFLAGS='$(CFLAGS)' | |
382 BUILD_CXX='$(CXX)' | |
383 BUILD_CXXFLAGS='$(CXXFLAGS)' | |
384 BUILD_LDFLAGS='$(LDFLAGS)' | |
4284 | 385 case "$canonical_host_type" in |
386 sparc-sun-solaris2*) | |
387 if test "$GCC" != yes; then | |
4298 | 388 ## The Sun C++ compiler never seems to complete compiling |
389 ## gendoc.cc unless we reduce the optimization level... | |
390 BUILD_CXXFLAGS="-g -O1" | |
4284 | 391 fi |
392 ;; | |
393 esac | |
4298 | 394 BUILD_EXEEXT='$(EXEEXT)' |
4094 | 395 fi |
396 | |
397 AC_ARG_VAR(BUILD_CC, [build system C compiler (used if cross compiling)]) | |
398 AC_ARG_VAR(BUILD_CFLAGS, [build system C compiler flags (used if cross compiling)]) | |
399 AC_ARG_VAR(BUILD_CXX, [build system C++ compiler (used if cross compiling)]) | |
400 AC_ARG_VAR(BUILD_CXXFLAGS, [build system C++ compiler flags (used if cross compiling)]) | |
4298 | 401 AC_ARG_VAR(BUILD_LDFLAGS, [build system C++ compiler link flags (used if cross compiling)]) |
402 AC_ARG_VAR(BUILD_EXEEXT, [build system executable extension (used if cross compiling)]) | |
3222 | 403 |
3232 | 404 dnl This is bogus. We shouldn't have to explicitly add libc too! |
405 | |
406 ### Look for math library. If found, this will add -lm to LIBS. | |
407 | |
408 case "$canonical_host_type" in | |
409 *-*-nextstep*) | |
410 ;; | |
411 *-*-linux*) | |
412 AC_CHECK_LIB(m, sin, , , -lc) | |
413 ;; | |
414 *) | |
415 AC_CHECK_LIB(m, sin) | |
416 ;; | |
417 esac | |
418 | |
6823 | 419 ### Check for the QHull library |
420 AC_SUBST(QHULL_LIBS) | |
421 AC_CHECK_HEADER(qhull/qhull_a.h, have_qhull=yes, have_qhull=no) | |
422 if test "$have_qhull" = yes; then | |
423 AC_CHECK_LIB(qhull, qh_qhull, have_qhull=yes, have_qhull=no) | |
424 if test "$have_qhull" != yes; then | |
425 AC_CHECK_QHULL_VERSION(have_qhull=yes, have_qhull=no) | |
426 AC_DEFINE(NEED_QHULL_VERSION, 1, [Define if the QHull library needs a wh_version variable defined.]) | |
427 fi | |
428 fi | |
429 if test "$have_qhull" = yes; then | |
430 AC_DEFINE(HAVE_QHULL, 1, [Define if the QHull library is used.]) | |
431 QHULL_LIBS="-lqhull" | |
6855 | 432 TEXINFO_QHULL="@set HAVE_QHULL" |
6823 | 433 else |
434 warn_qhull="Qhull library not found --- This will result in loss of functionality of some geometry functions." | |
435 AC_MSG_WARN($warn_qhull) | |
436 fi | |
437 | |
6855 | 438 AC_SUBST(TEXINFO_QHULL) |
439 | |
5585 | 440 ### Check for pcre/regex library. |
7173 | 441 |
442 ## check for pcre-config, and if so, set CPPFLAGS appropriately | |
443 AC_CHECK_PROG(WITH_PCRE_CONFIG, pcre-config, yes, no) | |
444 if test $WITH_PCRE_CONFIG = yes ; then | |
445 CPPFLAGS="$CPPFLAGS $(pcre-config --cflags)" | |
446 fi | |
447 | |
448 ## NB: no need to do separate check for pcre.h header -- checking macros is good enough | |
449 AC_CACHE_CHECK([whether pcre.h defines the macros we need], [ac_cv_pcre_h_macros_present], [ | |
450 AC_EGREP_CPP([PCRE_HAS_MACROS_WE_NEED], [ | |
451 #include <pcre.h> | |
6133 | 452 #if defined (PCRE_INFO_NAMECOUNT) \ |
453 && defined (PCRE_INFO_NAMEENTRYSIZE) \ | |
454 && defined (PCRE_INFO_NAMETABLE) | |
455 PCRE_HAS_MACROS_WE_NEED | |
7173 | 456 #endif], ac_cv_pcre_h_macros_present=yes, ac_cv_pcre_h_macros_present=no)]) |
457 WITH_PCRE="$ac_cv_pcre_h_macros_present" | |
7169 | 458 |
7173 | 459 REGEX_LIBS= |
460 if test $WITH_PCRE = yes; then | |
461 AC_DEFINE(HAVE_PCRE, 1, [Define if PCRE is available.]) | |
462 if test $WITH_PCRE_CONFIG = yes; then | |
463 REGEX_LIBS=$(pcre-config --libs) | |
464 else | |
465 REGEX_LIBS=-lpcre | |
466 fi | |
7174 | 467 else |
6133 | 468 warn_pcre="PCRE library not found. This will result in some loss of functionality for the regular expression matching functions." |
469 AC_MSG_WARN($warn_pcre) | |
470 fi | |
7169 | 471 |
5585 | 472 AC_CHECK_FUNCS(regexec, WITH_REGEX=yes , [ |
473 AC_CHECK_LIB(regex, regexec, WITH_REGEX=yes, WITH_REGEX=no)]) | |
474 if test $WITH_REGEX = yes ; then | |
475 AC_DEFINE(HAVE_REGEX, 1, [Define if regex is available.]) | |
476 AC_CHECK_FUNCS(regexec, REGEX_LIBS= , [ | |
8607
08331c2fb00f
add -lregex to REGEX_LIBS at configure stage, add ARPACK_LIBS, REGEX_LIBS to liboctave's link deps
Benjamin Lindner <lindnerb@users.sourceforge.net>
parents:
8595
diff
changeset
|
477 AC_CHECK_LIB(regex, regexec, REGEX_LIBS="$REGEX_LIBS -lregex")]) |
5585 | 478 fi |
6133 | 479 if test $WITH_REGEX = no; then |
480 warn_regex="regular expression functions not found. The regular expression matching functions will be disabled." | |
481 AC_MSG_WARN($warn_regex) | |
482 fi | |
7173 | 483 |
7169 | 484 AC_SUBST(REGEX_LIBS) |
5585 | 485 |
5270 | 486 ### Check for ZLIB library. |
3820 | 487 |
5270 | 488 WITH_ZLIB=true |
489 AC_ARG_WITH(zlib, | |
5844 | 490 [AS_HELP_STRING([--without-zlib], [don't use zlib])], |
5270 | 491 with_zlib=$withval, with_zlib=yes) |
3820 | 492 |
5270 | 493 zlib_lib= |
494 if test "$with_zlib" = yes; then | |
495 zlib_lib="z" | |
496 elif test "$with_zlib" != no; then | |
497 zlib_lib="$with_zlib" | |
3687 | 498 fi |
499 | |
5270 | 500 ZLIB_LIBS= |
501 WITH_ZLIB=false | |
502 if test -n "$zlib_lib"; then | |
5337 | 503 AC_CHECK_LIB($zlib_lib, gzclearerr, [ |
5270 | 504 AC_CHECK_HEADERS(zlib.h, [ |
505 WITH_ZLIB=true | |
506 ZLIB_LIBS="-l$zlib_lib" | |
507 LIBS="$ZLIB_LIBS $LIBS" | |
508 AC_DEFINE(HAVE_ZLIB, 1, [Define if ZLIB is available.])])]) | |
509 fi | |
510 | |
511 if $WITH_ZLIB; then | |
512 ### Check for HDF5 library. | |
513 | |
514 WITH_HDF5=true | |
515 AC_ARG_WITH(hdf5, | |
5844 | 516 [AS_HELP_STRING([--without-hdf5], [don't use HDF5])], |
5270 | 517 with_hdf5=$withval, with_hdf5=yes) |
518 | |
519 hdf5_lib= | |
520 if test "$with_hdf5" = yes; then | |
521 hdf5_lib="hdf5" | |
522 elif test "$with_hdf5" != no; then | |
523 hdf5_lib="$with_hdf5" | |
524 fi | |
525 | |
526 HDF5_LIBS= | |
527 WITH_HDF5=false | |
528 if test -n "$hdf5_lib"; then | |
529 AC_CHECK_LIB($hdf5_lib, H5Pcreate, [ | |
3820 | 530 AC_CHECK_HEADERS(hdf5.h, [ |
5270 | 531 WITH_HDF5=true |
532 HDF5_LIBS="-l$hdf5_lib" | |
3820 | 533 LIBS="$HDF5_LIBS $LIBS" |
4696 | 534 AC_DEFINE(HAVE_HDF5, 1, [Define if HDF5 is available.]) |
535 AC_CHECK_LIB($hdf5_lib, H5Gget_num_objs, [ | |
5270 | 536 AC_DEFINE(HAVE_H5GGET_NUM_OBJS, 1, [Define if HDF5 has H5Gget_num_objs.])])])]) |
537 fi | |
538 | |
539 if $WITH_HDF5; then | |
6276 | 540 case "$canonical_host_type" in |
541 *-*-msdosmsvc) | |
542 OCTAVE_HDF5_DLL | |
543 ;; | |
544 esac | |
5270 | 545 true |
546 else | |
547 warn_hdf5="HDF5 library not found. Octave will not be able to save or load HDF5 data files." | |
6133 | 548 AC_MSG_WARN($warn_hdf5) |
5270 | 549 fi |
550 else | |
551 warn_zlib="ZLIB library not found. Octave will not be able to save or load compressed data files or HDF5 files." | |
6133 | 552 AC_MSG_WARN($warn_zlib) |
3820 | 553 fi |
3687 | 554 |
5203 | 555 |
3827 | 556 # Checks for FFTW header and library. |
557 | |
558 # subdirectories of libcruft to build if they aren't found on the system: | |
559 FFT_DIR="fftpack" | |
560 AC_SUBST(FFT_DIR) | |
561 | |
562 # Installed fftw library, if any. | |
563 FFTW_LIBS='' | |
564 AC_SUBST(FFTW_LIBS) | |
565 | |
566 AC_ARG_WITH(fftw, | |
5844 | 567 [AS_HELP_STRING([--without-fftw], |
568 [use included fftpack instead of installed fftw])], | |
3886 | 569 with_fftw=$withval, with_fftw=yes) |
3827 | 570 |
5513 | 571 if test "$with_fftw" = yes; then |
4773 | 572 have_fftw3_header=no |
573 with_fftw3=no | |
6668 | 574 AC_CHECK_HEADER(fftw3.h, [have_fftw3_header=yes]) |
4773 | 575 if test "$have_fftw3_header" = yes; then |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7683
diff
changeset
|
576 AC_CHECK_LIB(fftw3, fftw_plan_dft_1d, [ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7683
diff
changeset
|
577 AC_CHECK_LIB(fftw3f, fftwf_plan_dft_1d, [FFTW_LIBS="-lfftw3 -lfftw3f"; with_fftw3=yes])]) |
3827 | 578 fi |
579 fi | |
580 | |
4773 | 581 if test "$with_fftw" = yes && test "$with_fftw3" = yes; then |
3827 | 582 FFT_DIR='' |
4773 | 583 AC_DEFINE(HAVE_FFTW3, 1, [Define if the FFTW3 library is used.]) |
6133 | 584 else |
585 warn_fftw="FFTW library not found. Octave will use the (slower) FFTPACK library instead." | |
586 AC_MSG_RESULT($warn_fftw) | |
3827 | 587 fi |
588 | |
5235 | 589 # Checks for GLPK header and library. |
590 | |
591 AC_ARG_WITH(glpk, | |
5844 | 592 [AS_HELP_STRING([--without-glpk], [don't use GLPK])], |
5235 | 593 with_glpk=$withval, with_glpk=yes) |
594 | |
595 glpk_lib= | |
596 if test "$with_glpk" = yes; then | |
597 glpk_lib="glpk" | |
598 elif test "$with_glpk" != no; then | |
599 glpk_lib="$with_glpk" | |
600 fi | |
601 | |
602 GLPK_LIBS= | |
603 if test -n "$glpk_lib"; then | |
6806 | 604 AC_CHECK_HEADERS([glpk/glpk.h glpk.h], [ |
605 AC_CHECK_LIB($glpk_lib, glp_lpx_simplex, [ | |
5235 | 606 GLPK_LIBS="-l$glpk_lib" |
6806 | 607 AC_DEFINE(GLPK_PRE_4_14, 1, [Define if GLPK version is less than 4.14.])], [ |
608 AC_CHECK_LIB($glpk_lib, _glp_lpx_simplex, [ | |
609 GLPK_LIBS="-l$glpk_lib"], [])]) | |
610 | |
611 if test -n "$GLPK_LIBS"; then | |
612 AC_DEFINE(HAVE_GLPK, 1, [Define if GLPK is available.]) | |
613 fi | |
614 break]) | |
5235 | 615 fi |
616 AC_SUBST(GLPK_LIBS) | |
6806 | 617 if test -z "$GLPK_LIBS"; then |
6133 | 618 warn_glpk="GLPK library not found. The glpk function for solving linear programs will be disabled." |
619 fi | |
5235 | 620 |
6043 | 621 # Checks for CURL header and library. |
622 | |
623 AC_ARG_WITH(curl, | |
624 [AS_HELP_STRING([--without-curl], [don't use CURL])], | |
625 with_curl=$withval, with_curl=yes) | |
626 | |
627 curl_lib= | |
628 if test "$with_curl" = yes; then | |
629 curl_lib="curl" | |
630 elif test "$with_curl" != no; then | |
631 curl_lib="$with_curl" | |
6335 | 632 else |
633 curl_missing=yes | |
6043 | 634 fi |
635 | |
636 CURL_LIBS= | |
637 if test -n "$curl_lib"; then | |
6056 | 638 AC_CHECK_LIB($curl_lib, curl_easy_escape, [ |
6043 | 639 AC_CHECK_HEADERS(curl/curl.h, [ |
640 CURL_LIBS="-l$curl_lib" | |
6133 | 641 AC_DEFINE(HAVE_CURL, 1, [Define if CURL is available.])], [ |
642 curl_missing=yes])]) | |
6043 | 643 fi |
644 AC_SUBST(CURL_LIBS) | |
6133 | 645 if test "$curl_missing" = yes; then |
646 warn_curl="cURL library not found. The urlread and urlwrite functions will be disabled." | |
647 fi | |
648 | |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
649 # GraphicsMagick++ |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
650 |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
651 warn_magick= |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
652 AC_CHECK_PROGS(MAGICK_CONFIG, [GraphicsMagick++-config GraphicsMagick-config]) |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
653 if test -z "$MAGICK_CONFIG"; then |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
654 warn_magick="GraphicsMagick++ config script not found. Assuming GraphicsMagic++ library and header files are missing, so imread will not be fully functional" |
7937
6661387827d6
Allow build without GraphicsMagick installed
David Bateman <dbateman@free.fr>
parents:
7934
diff
changeset
|
655 else |
6661387827d6
Allow build without GraphicsMagick installed
David Bateman <dbateman@free.fr>
parents:
7934
diff
changeset
|
656 AC_DEFINE(HAVE_MAGICK, 1, [Define if GraphicsMagick++ is available.]) |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
657 fi |
6043 | 658 |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
659 # --------------------------------------------------------------------- |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
660 |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
661 ## libraries needed for graphics |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
662 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
663 warn_freetype="" |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
664 warn_ftgl="" |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
665 |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
666 OCTAVE_OPENGL |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
667 if test -n "$OPENGL_LIBS"; then |
7954 | 668 AC_DEFINE(HAVE_OPENGL, 1, [Define if OpenGL is available]) |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
669 |
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
670 ## ftgl (needs freetype 2) |
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
671 AC_CHECK_FT2([9.0.3],[], |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
672 [warn_freetype="FreeType library not found. Native renderer will not have on-screen text"]) |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
673 if test -z "$warn_freetype"; then |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
674 AC_LANG_PUSH(C++) |
8269
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
675 save_LIBS="$LIBS" |
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
676 save_CXXFLAGS="$CXXFLAGS" |
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
677 save_CPPFLAGS="$CPPFLAGS" |
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
678 LIBS="$LIBS $OPENGL_LIBS $FT2_LIBS" |
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
679 CXXFLAGS="$CXXFLAGS $FT2_CFLAGS" |
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
680 CPPFLAGS="$CPPFLAGS $FT2_CFLAGS" |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
681 has_ftgl_h=yes |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
682 AC_CHECK_HEADERS([FTGL/ftgl.h ftgl.h], break, [ |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
683 AC_CHECK_HEADERS([FTGL/FTGL.h FTGL.h], [ |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
684 AC_DEFINE(HAVE_FTGL_UPPERCASE,1,[Define to 1 if you have FTGL.h or FTGL/FTGL.h]) |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
685 break |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
686 ], has_ftgl_h=no)]) |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
687 if test "$has_ftgl_h" = yes; then |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
688 AC_MSG_CHECKING([for FTGLTextureFont in -lftgl]) |
8269
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
689 LIBS="$LIBS -lftgl" |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
690 AC_TRY_LINK([ |
7915
d74e515cb535
configure.in: check for ftgl.h instead of FTGL.h
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
691 #ifdef HAVE_FTGL_FTGL_H |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
692 #ifdef HAVE_FTGL_UPPERCASE |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
693 #include <FTGL/FTGL.h> |
7958 | 694 #include <FTGL/FTGLTextureFont.h> |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
695 #else |
7915
d74e515cb535
configure.in: check for ftgl.h instead of FTGL.h
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
696 #include <FTGL/ftgl.h> |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
697 #endif |
7915
d74e515cb535
configure.in: check for ftgl.h instead of FTGL.h
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
698 #elif HAVE_FTGL_H |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
699 #ifdef HAVE_FTGL_UPPERCASE |
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
700 #include <FTGL.h> |
7958 | 701 #include <FTGLTextureFont.h> |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
702 #else |
7915
d74e515cb535
configure.in: check for ftgl.h instead of FTGL.h
John W. Eaton <jwe@octave.org>
parents:
7914
diff
changeset
|
703 #include <ftgl.h> |
7953
efabe34cce70
make configure compatible with FTGL ver <= 2.1.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7944
diff
changeset
|
704 #endif |
7921
fcc70f30fe31
configure.in: use #endif, not #fi in test
John W. Eaton <jwe@octave.org>
parents:
7915
diff
changeset
|
705 #endif], [ |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
706 FTGLTextureFont font("");], [ |
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
707 OPENGL_LIBS="$OPENGL_LIBS $FT2_LIBS -lftgl" |
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
708 LIBS="$save_LIBS" |
8269
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
709 CPPFLAGS="$save_CPPFLAGS" |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
710 AC_DEFINE(HAVE_FTGL, 1, [Define to 1 if FTGL is present]) |
7874
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7863
diff
changeset
|
711 AC_MSG_RESULT(yes) |
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7863
diff
changeset
|
712 XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS"],[ |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
713 AC_MSG_RESULT(no) |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
714 warn_ftgl="FTGL library not found. Native renderer will not have on-screen text" |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
715 ]) |
7887
627b10572d82
configure.in: fix invalid placement of variables restoration statements
Jaroslav Hajek <highegg@gmail.com>
parents:
7874
diff
changeset
|
716 LIBS="$save_LIBS" |
627b10572d82
configure.in: fix invalid placement of variables restoration statements
Jaroslav Hajek <highegg@gmail.com>
parents:
7874
diff
changeset
|
717 CXXFLAGS="$save_CXXFLAGS" |
8269
37afdd1d1bf8
Use FT2_CFLAGS when checking for FTGL headers.
Jason Riedy <jason@acm.org>
parents:
8256
diff
changeset
|
718 CPPFLAGS="$save_CPPFLAGS" |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
719 else |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
720 warn_ftgl="FTGL headers not found. Native renderer will not have on-screen text" |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
721 fi |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
722 AC_LANG_POP(C++) |
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
723 fi |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
724 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
725 |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
726 GRAPHICS_LIBS= |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
727 GRAPHICS_CFLAGS= |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
728 |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
729 ## fltk (www.fltk.org) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
730 AC_ARG_WITH(fltk-prefix, |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
731 [ --with-fltk-prefix=PFX Prefix where FLTK is installed (optional)], |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
732 fltk_prefix="$withval", |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
733 fltk_prefix="") |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
734 AC_ARG_WITH(fltk-exec-prefix, |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
735 [ --with-fltk-exec-prefix=PFX Exec prefix where FLTK is installed (optional)], |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
736 fltk_exec_prefix="$withval", |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
737 fltk_exec_prefix="") |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
738 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
739 if test -n "$fltk_exec_prefix"; then |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
740 fltk_args="$fltk_args --exec-prefix=$fltk_exec_prefix" |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
741 if test "x${FLTK_CONFIG+set}" != xset ; then |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
742 FLTK_CONFIG="$fltk_exec_prefix/bin/fltk-config" |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
743 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
744 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
745 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
746 if test -n "$fltk_prefix"; then |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
747 fltk_args="$fltk_args --prefix=$fltk_prefix" |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
748 if test x${FLTK_CONFIG+set} != xset ; then |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
749 FLTK_CONFIG="$fltk_prefix/bin/fltk-config" |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
750 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
751 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
752 |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
753 AC_PATH_PROG(FLTK_CONFIG, fltk-config, no) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
754 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
755 warn_fltk_config="" |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
756 warn_fltk_opengl="" |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
757 |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
758 if test "$FLTK_CONFIG" = "no" ; then |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
759 warn_fltk_config="FLTK config script not found. Native graphics will be disabled." |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
760 else |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
761 FLTK_CFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --cflags`" |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
762 FLTK_LDFLAGS="`$FLTK_CONFIG $fltkconf_args --use-gl --ldflags`" |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
763 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
764 AC_MSG_CHECKING(for OpenGL support in FLTK) |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
765 cat > conftest.cc <<EOF |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
766 #include <FL/gl.h> |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
767 int nothing=0; |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
768 EOF |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
769 $CXX $CXXFLAGS $FLTK_CFLAGS -c conftest.cc || \ |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
770 warn_fltk_opengl="FLTK does not have OpenGL support. Native graphics will be disabled." |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
771 |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
772 if test -z "$warn_fltk_opengl"; then |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
773 AC_MSG_RESULT(yes) |
7954 | 774 AC_DEFINE(HAVE_FLTK, 1, [Define if FLTK is available]) |
7863
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
775 GRAPHICS_CFLAGS="$FLTK_CFLAGS" |
2a62d45fa21d
added check for FTGL library
Shai Ayal <shaiay@users.sourceforge.net>
parents:
7834
diff
changeset
|
776 GRAPHICS_LIBS="$FLTK_LDFLAGS" |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
777 else |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
778 AC_MSG_RESULT(no) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
779 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
780 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
781 |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
782 AC_SUBST(GRAPHICS_CFLAGS) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
783 AC_SUBST(GRAPHICS_LIBS) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
784 |
4853 | 785 OCTAVE_IEEE754_DATA_FORMAT |
4850 | 786 |
3827 | 787 # ---------------------------------------------------------------------- |
788 | |
3130 | 789 OCTAVE_PROG_AR |
3012 | 790 |
791 AC_PROG_RANLIB | |
792 | |
7063 | 793 ## Default FFLAGS is -O. |
794 if test "x$FFLAGS" = x; then | |
795 FFLAGS="-O" | |
1233 | 796 fi |
5 | 797 |
7063 | 798 ## the F77 variable, if set, overrides AC_PROG_F77 automatically |
3887 | 799 AC_PROG_F77 |
7063 | 800 AC_F77_LIBRARY_LDFLAGS |
801 AC_F77_DUMMY_MAIN | |
802 AC_F77_WRAPPERS | |
5 | 803 |
6102 | 804 F77_TOLOWER=true |
805 F77_APPEND_UNDERSCORE=true | |
806 F77_APPEND_EXTRA_UNDERSCORE=true | |
7063 | 807 |
808 case "$ac_cv_f77_mangling" in | |
809 "upper case") F77_TOLOWER=false ;; | |
810 esac | |
811 case "$ac_cv_f77_mangling" in | |
812 "no underscore") F77_APPEND_UNDERSCORE=false ;; | |
813 esac | |
814 case "$ac_cv_f77_mangling" in | |
815 "no extra underscore") F77_APPEND_EXTRA_UNDERSCORE=false ;; | |
816 esac | |
6102 | 817 |
7063 | 818 case "$canonical_host_type" in |
819 i[[3456789]]86-*-*) | |
820 if test "$ac_cv_f77_compiler_gnu" = yes; then | |
821 OCTAVE_F77_FLAG(-mieee-fp) | |
822 ### OCTAVE_F77_FLAG(-ffloat-store) | |
1239 | 823 fi |
7063 | 824 ;; |
825 alpha*-*-*) | |
826 if test "$ac_cv_f77_compiler_gnu" = yes; then | |
827 OCTAVE_F77_FLAG(-mieee) | |
828 else | |
829 OCTAVE_F77_FLAG(-ieee) | |
830 OCTAVE_F77_FLAG(-fpe1) | |
5 | 831 fi |
7063 | 832 ;; |
833 powerpc-apple-machten*) | |
834 FFLAGS= | |
835 ;; | |
836 esac | |
837 | |
838 if test -n "$FFLAGS"; then | |
839 AC_MSG_NOTICE([defining FFLAGS to be $FFLAGS]) | |
5 | 840 fi |
7063 | 841 |
6102 | 842 AC_SUBST(F77_TOLOWER) |
843 AC_SUBST(F77_APPEND_UNDERSCORE) | |
844 AC_SUBST(F77_APPEND_EXTRA_UNDERSCORE) | |
869 | 845 |
7063 | 846 if test -z "$F77"; then |
832 | 847 AC_MSG_WARN([in order to build octave, you must have a compatible]) |
7063 | 848 AC_MSG_WARN([Fortran compiler or wrapper script for f2c that functions]) |
849 AC_MSG_WARN([as a Fortran compiler installed and in your path.]) | |
1664 | 850 AC_MSG_ERROR([See the file INSTALL for more information.]) |
5 | 851 fi |
869 | 852 |
6137 | 853 XTRA_CRUFT_SH_LDFLAGS= |
6102 | 854 case "$canonical_host_type" in |
855 *-*-msdosmsvc) | |
856 FLIBS="$FLIBS -lkernel32" | |
6137 | 857 XTRA_CRUFT_SH_LDFLAGS="-Wl,-def:cruft.def" |
6102 | 858 ;; |
859 esac | |
6137 | 860 AC_SUBST(XTRA_CRUFT_SH_LDFLAGS) |
6102 | 861 |
1163 | 862 FC=$F77 |
863 AC_SUBST(FC) | |
869 | 864 |
5498 | 865 OCTAVE_F77_FLAG(-ffloat-store, [ |
866 AC_MSG_RESULT([setting F77_FLOAT_STORE_FLAG to -ffloat-store]) | |
867 F77_FLOAT_STORE_FLAG=-ffloat-store | |
868 AC_SUBST(F77_FLOAT_STORE_FLAG) | |
869 ]) | |
870 | |
3820 | 871 ### Checks for BLAS and LAPACK libraries: |
3887 | 872 # (Build subdirectories of libcruft if they aren't found on the system.) |
873 sinclude(acx_blas.m4) | |
7683
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
874 sinclude(acx_blas_f77_func.m4) |
3887 | 875 sinclude(acx_lapack.m4) |
7683
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
876 ACX_BLAS_WITH_F77_FUNC([], [BLAS_DIR="blas"]) |
3887 | 877 ACX_LAPACK([BLAS_LIBS="$LAPACK_LIBS $BLAS_LIBS"], [LAPACK_DIR="lapack"]) |
3690 | 878 AC_SUBST(BLAS_DIR) |
879 AC_SUBST(LAPACK_DIR) | |
880 | |
7683
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
881 if test "x$acx_blas_f77_func_ok" = "xno"; then |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
882 warn_blas_f77_incompatible="A BLAS library was detected but found incompatible with your Fortran 77 compiler. The reference BLAS implementation will be used. To improve performance, consider using a different Fortran compiler or a switch like -ff2c to make your Fortran compiler use a calling convention compatible with the way your BLAS library was compiled, or use a different BLAS library." |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
883 AC_MSG_WARN($warn_blas_f77_incompatible) |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
884 fi |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
885 |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
886 QRUPDATE_LIBS= |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
887 AC_SUBST(QRUPDATE_LIBS) |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
888 |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
889 # Check for the qrupdate library |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
890 AC_ARG_WITH(qrupdate, |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
891 [AS_HELP_STRING([--without-qrupdate], |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
892 [don't use qrupdate, disable QR & Cholesky updating functions])], |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
893 with_qrupdate=$withval, with_qrupdate=yes) |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
894 |
8562
a6edd5c23cb5
use replacement methods if qrupdate is not available
Jaroslav Hajek <highegg@gmail.com>
parents:
8560
diff
changeset
|
895 warn_qrupdate="qrupdate not found. The QR & Cholesky updating functions will be slow." |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
896 if test "$with_qrupdate" = yes; then |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
897 with_qrupdate=no |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
898 if $have_fortran_compiler; then |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
899 AC_F77_FUNC(sqr1up) |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
900 elif $have_f2c; then |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
901 sqr1up=sqr1up_ |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
902 fi |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
903 AC_CHECK_LIB(qrupdate, $sqr1up, |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
904 [QRUPDATE_LIBS="-lqrupdate"; with_qrupdate=yes], [], [$BLAS_LIBS $FLIBS]) |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
905 if test "$with_qrupdate" = yes; then |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
906 AC_DEFINE(HAVE_QRUPDATE, 1, [Define if the qrupdate library is used.]) |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
907 warn_qrupdate= |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
908 fi |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
909 fi |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
910 if test -n "$warn_qrupdate"; then |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
911 AC_MSG_WARN($warn_qrupdate) |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
912 fi |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
913 |
5451 | 914 # Check for AMD library |
915 AMD_LIBS= | |
916 AC_SUBST(AMD_LIBS) | |
7619 | 917 |
918 AC_ARG_WITH(amd, | |
919 [AS_HELP_STRING([--without-amd], | |
920 [don't use AMD, disable some sparse functionality])], | |
921 with_amd=$withval, with_amd=yes) | |
922 | |
923 warn_amd="AMD not found. This will result in some lack of functionality for sparse matrices." | |
924 if test "$with_amd" = yes; then | |
925 with_amd=no | |
926 AC_CHECK_HEADERS([suitesparse/amd.h ufsparse/amd.h amd/amd.h amd.h], [ | |
927 AC_CHECK_LIB(amd, amd_postorder, [AMD_LIBS="-lamd"; with_amd=yes]) | |
928 if test "$with_amd" = yes; then | |
929 AC_DEFINE(HAVE_AMD, 1, [Define if the AMD library is used.]) | |
930 warn_amd= | |
931 fi | |
932 break]) | |
933 fi | |
934 if test -n "$warn_amd"; then | |
935 AC_MSG_WARN($warn_amd) | |
936 fi | |
5451 | 937 |
6024 | 938 # Check for CAMD library |
939 CAMD_LIBS= | |
940 AC_SUBST(CAMD_LIBS) | |
941 AC_CHECK_LIB(camd, camd_postorder, [CAMD_LIBS="-lcamd"; with_camd=yes],[with_camd=no]) | |
942 | |
5226 | 943 # Check for UMFPACK library. |
944 | |
945 UMFPACK_LIBS= | |
946 AC_SUBST(UMFPACK_LIBS) | |
947 | |
948 AC_ARG_WITH(umfpack, | |
5844 | 949 [AS_HELP_STRING([--without-umfpack], |
950 [don't use UMFPACK, disable some sparse functionality])], | |
5226 | 951 with_umfpack=$withval, with_umfpack=yes) |
952 | |
5703 | 953 warn_umfpack="UMFPACK not found. This will result in some lack of functionality for sparse matrices." |
5513 | 954 if test "$with_umfpack" = yes && test "$with_amd" = yes; then |
5226 | 955 with_umfpack=no |
6232 | 956 AC_CHECK_HEADERS([suitesparse/umfpack.h ufsparse/umfpack.h umfpack/umfpack.h umfpack.h], [ |
5512 | 957 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ |
958 UMFPACK_LIBS="-lumfpack"; with_umfpack=yes], [ | |
959 ## Invalidate the cache. | |
960 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant | |
961 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ | |
962 UMFPACK_LIBS="-lumfpack"; with_umfpack=yes], [ | |
963 | |
5226 | 964 ## Invalidate the cache. |
965 $as_unset ac_cv_lib_umfpack_umfpack_zi_get_determinant | |
966 AC_CHECK_LIB(umfpack, umfpack_zi_get_determinant, [ | |
5512 | 967 UMFPACK_LIBS="-lumfpack -lcblas"; with_umfpack=yes], [], $AMD_LIBS -lcblas $BLAS_LIBS)], $AMD_LIBS $BLAS_LIBS $FLIBS)], $AMD_LIBS) |
5451 | 968 |
5226 | 969 if test "$with_umfpack" = yes; then |
5451 | 970 AC_DEFINE(HAVE_UMFPACK, 1, [Define if the UMFPACK library is used.]) |
5505 | 971 OLD_LIBS=$LIBS |
972 LIBS="$LIBS $UMFPACK_LIBS $AMD_LIBS $BLAS_LIBS $FLIBS" | |
973 OCTAVE_UMFPACK_SEPERATE_SPLIT | |
974 LIBS=$OLD_LIBS | |
5648 | 975 TEXINFO_UMFPACK="@set HAVE_UMFPACK" |
5513 | 976 warn_umfpack= |
5512 | 977 fi |
5513 | 978 break]) |
979 fi | |
6133 | 980 if test -n "$warn_umfpack"; then |
981 AC_MSG_WARN($warn_umfpack) | |
982 fi | |
5513 | 983 |
5648 | 984 AC_SUBST(TEXINFO_UMFPACK) |
5226 | 985 |
5451 | 986 COLAMD_LIBS= |
987 AC_SUBST(COLAMD_LIBS) | |
988 | |
989 AC_ARG_WITH(colamd, | |
5844 | 990 [AS_HELP_STRING([--without-colamd], |
991 [don't use COLAMD, disable some sparse functionality])], | |
5451 | 992 with_colamd=$withval, with_colamd=yes) |
993 | |
5703 | 994 warn_colamd="COLAMD not found. This will result in some lack of functionality for sparse matrices." |
5513 | 995 if test "$with_colamd" = yes; then |
5451 | 996 with_colamd=no |
6232 | 997 AC_CHECK_HEADERS([suitesparse/colamd.h ufsparse/colamd.h colamd/colamd.h colamd.h], [ |
5451 | 998 AC_CHECK_LIB(colamd, colamd, [COLAMD_LIBS="-lcolamd"; with_colamd=yes]) |
999 if test "$with_colamd" = yes; then | |
1000 AC_DEFINE(HAVE_COLAMD, 1, [Define if the COLAMD library is used.]) | |
5648 | 1001 TEXINFO_COLAMD="@set HAVE_COLAMD" |
5513 | 1002 warn_colamd= |
5512 | 1003 fi |
5513 | 1004 break]) |
5451 | 1005 fi |
6133 | 1006 if test -n "$warn_colamd"; then |
1007 AC_MSG_WARN($warn_colamd) | |
1008 fi | |
5451 | 1009 |
5648 | 1010 AC_SUBST(TEXINFO_COLAMD) |
5513 | 1011 |
5451 | 1012 CCOLAMD_LIBS= |
1013 AC_SUBST(CCOLAMD_LIBS) | |
1014 | |
1015 AC_ARG_WITH(ccolamd, | |
5844 | 1016 [AS_HELP_STRING([--without-ccolamd], |
1017 [don't use CCOLAMD, disable some sparse functionality])], | |
5451 | 1018 with_ccolamd=$withval, with_ccolamd=yes) |
1019 | |
5703 | 1020 warn_ccolamd="CCOLAMD not found. This will result in some lack of functionality for sparse matrices." |
5513 | 1021 if test "$with_ccolamd" = yes; then |
5451 | 1022 with_ccolamd=no |
6232 | 1023 AC_CHECK_HEADERS([suitesparse/ccolamd.h ufsparse/ccolamd.h ccolamd/ccolamd.h ccolamd.h], [ |
5451 | 1024 AC_CHECK_LIB(ccolamd, ccolamd, [CCOLAMD_LIBS="-lccolamd"; with_ccolamd=yes]) |
1025 if test "$with_ccolamd" = yes; then | |
1026 AC_DEFINE(HAVE_CCOLAMD, 1, [Define if the CCOLAMD library is used.]) | |
5513 | 1027 warn_ccolamd= |
5512 | 1028 fi |
5513 | 1029 break]) |
5451 | 1030 fi |
6133 | 1031 if test -n "$warn_ccolamd"; then |
1032 AC_MSG_WARN($warn_ccolamd) | |
1033 fi | |
5451 | 1034 |
1035 CHOLMOD_LIBS= | |
1036 AC_SUBST(CHOLMOD_LIBS) | |
1037 | |
1038 AC_ARG_WITH(cholmod, | |
5844 | 1039 [AS_HELP_STRING([--without-cholmod], |
1040 [don't use CHOLMOD, disable some sparse functionality])], | |
5451 | 1041 with_cholmod=$withval, with_cholmod=yes) |
1042 | |
5703 | 1043 warn_cholmod="CHOLMOD not found. This will result in some lack of functionality for sparse matrices." |
5513 | 1044 if test "$with_cholmod" = yes && test "$with_colamd" = yes && |
1045 test "$with_ccolamd" = yes && test "$with_amd" = yes; then | |
5451 | 1046 with_cholmod=no |
6232 | 1047 AC_CHECK_HEADERS([suitesparse/cholmod.h ufsparse/cholmod.h cholmod/cholmod.h cholmod.h], [ |
7036 | 1048 AC_CHECK_LIB(cholmod, cholmod_start, [CHOLMOD_LIBS="-lcholmod"; |
1049 with_cholmod=yes], [ | |
1050 AC_CHECK_LIB(cholmod, cholmod_start, [CHOLMOD_LIBS="-lcholmod -cblas"; | |
1051 with_cholmod=yes], [], | |
1052 $CAMD_LIBS $AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS)], | |
1053 $CAMD_LIBS $AMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $BLAS_LIBS $FLIBS) | |
5451 | 1054 |
1055 if test "$with_cholmod" = yes; then | |
1056 AC_DEFINE(HAVE_CHOLMOD, 1, [Define if the CHOLMOD library is used.]) | |
5648 | 1057 TEXINFO_CHOLMOD="@set HAVE_CHOLMOD" |
5513 | 1058 warn_cholmod= |
5512 | 1059 fi |
5513 | 1060 break]) |
6133 | 1061 fi |
1062 if test -n "$warn_cholmod"; then | |
1063 AC_MSG_WARN($warn_cholmod) | |
1064 fi | |
5226 | 1065 |
5648 | 1066 AC_SUBST(TEXINFO_CHOLMOD) |
5513 | 1067 |
5610 | 1068 CXSPARSE_LIBS= |
1069 AC_SUBST(CXSPARSE_LIBS) | |
1070 | |
1071 AC_ARG_WITH(cxsparse, | |
5844 | 1072 [AS_HELP_STRING([--without-cxsparse], |
1073 [don't use CXSparse, disable some sparse functionality])], | |
5610 | 1074 with_cxsparse=$withval, with_cxsparse=yes) |
1075 | |
5703 | 1076 warn_cxsparse="CXSparse not found. This will result in some lack of functionality for sparse matrices." |
5610 | 1077 if test "$with_cxsparse" = yes; then |
1078 with_cxsparse=no | |
6719 | 1079 AC_LANG_PUSH(C++) |
6232 | 1080 AC_CHECK_HEADERS([suitesparse/cs.h ufsparse/cs.h cxsparse/cs.h cs.h], [ |
5648 | 1081 AC_CHECK_LIB(cxsparse, cs_di_sqr, [CXSPARSE_LIBS="-lcxsparse"; with_cxsparse=yes]) |
5610 | 1082 if test "$with_cxsparse" = yes; then |
1083 AC_DEFINE(HAVE_CXSPARSE, 1, [Define if the CXSparse library is used.]) | |
1084 warn_cxsparse= | |
1085 fi | |
1086 break]) | |
6719 | 1087 AC_LANG_POP(C++) |
5610 | 1088 fi |
6133 | 1089 if test -n "$warn_cxsparse"; then |
1090 AC_MSG_WARN($warn_cxsparse) | |
1091 fi | |
5610 | 1092 |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1093 ARPACK_LIBS= |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1094 AC_SUBST(ARPACK_LIBS) |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1095 |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1096 AC_ARG_WITH(arpack, |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1097 [AS_HELP_STRING([--without-arpack], |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1098 [don't use ARPACK, disable some sparse functionality])], |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1099 with_arpack=$withval, with_arpack=yes) |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1100 |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1101 warn_arpack="arpack not found. This will result in a lack of the eigs function." |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1102 if test "$with_arpack" = yes; then |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1103 with_arpack=no |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1104 AC_CHECK_LIB(arpack, F77_FUNC(dseupd,DSEUPD), [ARPACK_LIBS="-larpack"; with_arpack=yes], , $LAPACK_LIBS $FLIBS) |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1105 if test "$with_arpack" = yes; then |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1106 AC_DEFINE(HAVE_ARPACK, 1, [Define if the ARPACK library is used.]) |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1107 warn_arpack= |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1108 fi |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1109 fi |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1110 if test -n "$warn_arpack"; then |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1111 AC_MSG_WARN($warn_arpack) |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1112 fi |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
1113 |
4110 | 1114 ### Handle shared library options. |
2813 | 1115 |
3034 | 1116 ### Enable creation of static libraries. |
1117 | |
1118 AC_ARG_ENABLE(static, | |
5844 | 1119 [AS_HELP_STRING([--enable-static], [create static libraries])], |
3034 | 1120 [if test "$enableval" = no; then STATIC_LIBS=false; |
1121 else STATIC_LIBS=true; fi], | |
5221 | 1122 STATIC_LIBS=false) |
3034 | 1123 AC_SUBST(STATIC_LIBS) |
1124 | |
2813 | 1125 ### Enable creation of shared libraries. Currently only works with |
1126 ### gcc on some systems. | |
1127 | |
1128 AC_ARG_ENABLE(shared, | |
5844 | 1129 [AS_HELP_STRING([--enable-shared], |
1130 [create shared libraries (not all systems)])], | |
2813 | 1131 [if test "$enableval" = no; then SHARED_LIBS=false; |
1132 else SHARED_LIBS=true; fi], | |
5221 | 1133 SHARED_LIBS=true) |
2813 | 1134 AC_SUBST(SHARED_LIBS) |
1135 | |
4128 | 1136 ### Enable dynamic linking. --enable-shared implies this, so |
1137 ### --enable-dl is only need if you are only building static libraries | |
1138 ### and want to try dynamic linking too (works on some systems, for | |
1139 ### example, OS X and Windows). | |
1140 | |
1141 AC_ARG_ENABLE(dl, | |
5844 | 1142 [AS_HELP_STRING([--enable-dl], |
1143 [create shared libraries (not all systems)])], | |
4128 | 1144 [if test "$enableval" = no; then ENABLE_DYNAMIC_LINKING=false; |
1145 else ENABLE_DYNAMIC_LINKING=true; fi], | |
5221 | 1146 ENABLE_DYNAMIC_LINKING=true) |
4128 | 1147 |
3034 | 1148 if $STATIC_LIBS || $SHARED_LIBS; then |
1149 true | |
1150 else | |
1151 AC_MSG_ERROR([You can't disable building static AND shared libraries!]) | |
1152 fi | |
1153 | |
2813 | 1154 AC_ARG_ENABLE(rpath, |
5844 | 1155 [AS_HELP_STRING([--enable-rpath], |
1156 [override the default link options for rpath; e.g., --enable-rpath='-rpath $(octlibdir)'])], | |
4353 | 1157 [ if test "$enableval" = no; then use_rpath=false; |
1158 else | |
1159 use_rpath=true | |
1160 if test "$enableval" = yes; then true; | |
1161 else enable_rpath_arg="$enableval"; fi | |
4439 | 1162 fi], [use_rpath=true]) |
2813 | 1163 |
1164 CPICFLAG=-fPIC | |
1165 CXXPICFLAG=-fPIC | |
1166 FPICFLAG=-fPIC | |
1167 SHLEXT=so | |
4190 | 1168 SHLLIB='$(SHLEXT)' |
4102 | 1169 SHLBIN= |
4138 | 1170 SHLEXT_VER='$(SHLEXT).$(version)' |
1171 SHLLIB_VER='$(SHLLIB).$(version)' | |
1172 SHLBIN_VER='$(SHLBIN).$(version)' | |
4126 | 1173 SHLLINKEXT= |
6051 | 1174 LIBPRE=lib |
4323 | 1175 SH_LD='$(CXX)' |
2813 | 1176 SH_LDFLAGS=-shared |
4759 | 1177 DL_LD='$(SH_LD)' |
1178 DL_LDFLAGS='$(SH_LDFLAGS)' | |
1179 MKOCTFILE_DL_LDFLAGS='$(DL_LDFLAGS)' | |
3036 | 1180 SONAME_FLAGS= |
2813 | 1181 RLD_FLAG= |
4199 | 1182 NO_OCT_FILE_STRIP=false |
4323 | 1183 TEMPLATE_AR='$(AR)' |
3775 | 1184 TEMPLATE_ARFLAGS="$ARFLAGS" |
6137 | 1185 CRUFT_DLL_DEFS= |
1186 OCTAVE_DLL_DEFS= | |
1187 OCTINTERP_DLL_DEFS= | |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7789
diff
changeset
|
1188 OCTGRAPHICS_DLL_DEFS= |
4104 | 1189 library_path_var=LD_LIBRARY_PATH |
2813 | 1190 case "$canonical_host_type" in |
6668 | 1191 *-*-386bsd* | *-*-netbsd*) |
2813 | 1192 SH_LD=ld |
1193 SH_LDFLAGS=-Bshareable | |
1194 ;; | |
6668 | 1195 *-*-openbsd*) |
1196 SH_LDFLAGS='-shared -fPIC' | |
1197 ;; | |
4323 | 1198 *-*-freebsd*) |
5508 | 1199 SH_LDFLAGS="-shared -Wl,-x" |
1200 RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)' | |
4323 | 1201 ;; |
3127 | 1202 alpha*-dec-osf*) |
2813 | 1203 CPICFLAG= |
1204 CXXPICFLAG= | |
1205 FPICFLAG= | |
4283 | 1206 SH_LDFLAGS="-shared -Wl,-expect_unresolved -Wl,'*'" |
1207 RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)' | |
2813 | 1208 ;; |
3956 | 1209 *-*-darwin*) |
4759 | 1210 DL_LDFLAGS='-bundle -bundle_loader $(TOPDIR)/src/octave $(LDFLAGS)' |
6682 | 1211 MKOCTFILE_DL_LDFLAGS='-bundle -bundle_loader $$BINDIR/octave-$$OCTAVE_VERSION$$EXEEXT' |
4759 | 1212 SH_LDFLAGS='-dynamiclib -single_module $(LDFLAGS)' |
7266 | 1213 case "$canonical_host_type" in |
1214 powerpc-*) | |
1215 CXXPICFLAG= | |
1216 CPICFLAG= | |
1217 FPICFLAG= | |
1218 ;; | |
1219 esac | |
4759 | 1220 SHLEXT=dylib |
1221 SHLLIB='$(SHLEXT)' | |
1222 SHLEXT_VER='$(version).$(SHLEXT)' | |
1223 SHLLIB_VER='$(version).$(SHLLIB)' | |
4199 | 1224 NO_OCT_FILE_STRIP=true |
4786 | 1225 SONAME_FLAGS='-install_name $(octlibdir)/$@' |
4759 | 1226 library_path_var=DYLD_LIBRARY_PATH |
3956 | 1227 ;; |
4105 | 1228 *-*-cygwin* | *-*-mingw*) |
5451 | 1229 DL_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc" |
4102 | 1230 CXXPICFLAG= |
1231 CPICFLAG= | |
1232 FPICFLAG= | |
1233 SHLEXT=dll | |
1234 SHLLIB=dll.a | |
1235 SHLBIN=dll | |
5414 | 1236 SH_LDFLAGS="-shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-auto-image-base" |
4102 | 1237 SHLLINKEXT=.dll |
1238 SONAME_FLAGS='-Wl,--out-implib=$@.a' | |
4104 | 1239 library_path_var=PATH |
4102 | 1240 ;; |
6089 | 1241 *-*-msdosmsvc) |
6794 | 1242 DL_LDFLAGS="-shared" |
6051 | 1243 CPICFLAG= |
1244 CXXPICFLAG= | |
1245 FPICFLAG= | |
1246 SHLEXT=dll | |
1247 SHLLIB=lib | |
1248 SHLBIN=dll | |
1249 LIBPRE= | |
6794 | 1250 SH_LDFLAGS="-shared" |
1251 if test -n "`echo $CFLAGS | grep -e '-g'`" -o -n "`echo $CXXFLAGS | grep -e '-g'`"; then | |
1252 DL_LDFLAGS="$DL_LDFLAGS -g" | |
1253 SH_LDFLAGS="$SH_LDFLAGS -g" | |
1254 fi | |
6255 | 1255 NO_OCT_FILE_STRIP=true |
6100 | 1256 library_path_var=PATH |
6718 | 1257 NO_OCT_FILE_STRIP=true |
6087 | 1258 ## Extra compilation flags. |
6137 | 1259 CRUFT_DLL_DEFS="-DCRUFT_DLL" |
1260 OCTAVE_DLL_DEFS="-DOCTAVE_DLL" | |
1261 OCTINTERP_DLL_DEFS="-DOCTINTERP_DLL" | |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7789
diff
changeset
|
1262 OCTGRAPHICS_DLL_DEFS="-DOCTGRAPHICS_DLL" |
6051 | 1263 ;; |
3740 | 1264 *-*-linux* | *-*-gnu*) |
4906 | 1265 MKOCTFILE_DL_LDFLAGS="-shared -Wl,-Bsymbolic" |
4283 | 1266 SONAME_FLAGS='-Wl,-soname -Wl,$@' |
1267 RLD_FLAG='-Wl,-rpath -Wl,$(octlibdir)' | |
2813 | 1268 ;; |
3887 | 1269 i[[3456]]86-*-sco3.2v5*) |
4283 | 1270 SONAME_FLAGS='-Wl,-h -Wl,$@' |
3705 | 1271 RLD_FLAG= |
3160 | 1272 SH_LDFLAGS=-G |
1273 ;; | |
2813 | 1274 rs6000-ibm-aix* | powerpc-ibm-aix*) |
1275 CPICFLAG= | |
1276 CXXPICFLAG= | |
1277 FPICFLAG= | |
1278 ;; | |
1279 hppa*-hp-hpux*) | |
3887 | 1280 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813 | 1281 FPICFLAG=-fPIC |
1282 else | |
1283 FPICFLAG=+Z | |
1284 fi | |
1285 SHLEXT=sl | |
1286 SH_LDFLAGS="-shared -fPIC" | |
4283 | 1287 RLD_FLAG='-Wl,+b -Wl,$(octlibdir)' |
2813 | 1288 ;; |
1289 *-sgi-*) | |
1290 CPICFLAG= | |
1291 CXXPICFLAG= | |
1292 FPICFLAG= | |
4353 | 1293 RLD_FLAG='-rpath $(octlibdir)' |
2813 | 1294 ;; |
1295 sparc-sun-sunos4*) | |
3887 | 1296 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813 | 1297 FPICFLAG=-fPIC |
1298 else | |
1299 FPICFLAG=-PIC | |
1300 fi | |
3059 | 1301 SH_LD=ld |
1302 SH_LDFLAGS="-assert nodefinitions" | |
3162 | 1303 RLD_FLAG='-L$(octlibdir)' |
2813 | 1304 ;; |
3606 | 1305 sparc-sun-solaris2* | i386-pc-solaris2*) |
3887 | 1306 if test "$ac_cv_f77_compiler_gnu" = yes; then |
2813 | 1307 FPICFLAG=-fPIC |
1308 else | |
3775 | 1309 FPICFLAG=-KPIC |
1310 fi | |
1311 if test "$GCC" = yes; then | |
1312 CPICFLAG=-fPIC | |
1313 else | |
1314 CPICFLAG=-KPIC | |
2813 | 1315 fi |
3775 | 1316 if test "$GXX" = yes; then |
1317 CXXPICFLAG=-fPIC | |
1318 SH_LDFLAGS=-shared | |
1319 else | |
1320 CXXPICFLAG=-KPIC | |
1321 SH_LDFLAGS=-G | |
1322 fi | |
1323 RLD_FLAG='-R $(octlibdir)' | |
6087 | 1324 ## Template closures in archive libraries need a different mechanism. |
3820 | 1325 if test "$GXX" = yes; then |
3775 | 1326 true |
1327 else | |
4323 | 1328 TEMPLATE_AR='$(CXX)' |
3775 | 1329 TEMPLATE_ARFLAGS="-xar -o" |
1330 fi | |
2813 | 1331 ;; |
1332 esac | |
1333 | |
1334 if $use_rpath; then | |
4353 | 1335 if test -n "$enable_rpath_arg"; then |
1336 RLD_FLAG="$enable_rpath_arg" | |
1337 fi | |
2813 | 1338 else |
4353 | 1339 RLD_FLAG="" |
2813 | 1340 fi |
1341 | |
5844 | 1342 AC_MSG_NOTICE([defining FPICFLAG to be $FPICFLAG]) |
1343 AC_MSG_NOTICE([defining CPICFLAG to be $CPICFLAG]) | |
1344 AC_MSG_NOTICE([defining CXXPICFLAG to be $CXXPICFLAG]) | |
1345 AC_MSG_NOTICE([defining SHLEXT to be $SHLEXT]) | |
1346 AC_MSG_NOTICE([defining SHLLIB to be $SHLLIB]) | |
1347 AC_MSG_NOTICE([defining SHLBIN to be $SHLBIN]) | |
1348 AC_MSG_NOTICE([defining SHLEXT_VER to be $SHLEXT_VER]) | |
1349 AC_MSG_NOTICE([defining SHLLIB_VER to be $SHLLIB_VER]) | |
1350 AC_MSG_NOTICE([defining SHLBIN_VER to be $SHLBIN_VER]) | |
1351 AC_MSG_NOTICE([defining SHLLINKEXT to be $SHLLINKEXT]) | |
6051 | 1352 AC_MSG_NOTICE([defining LIBPRE to be $LIBPRE]) |
5844 | 1353 AC_MSG_NOTICE([defining SH_LD to be $SH_LD]) |
1354 AC_MSG_NOTICE([defining SH_LDFLAGS to be $SH_LDFLAGS]) | |
1355 AC_MSG_NOTICE([defining DL_LD to be $DL_LD]) | |
1356 AC_MSG_NOTICE([defining DL_LDFLAGS to be $DL_LDFLAGS]) | |
1357 AC_MSG_NOTICE([defining MKOCTFILE_DL_LDFLAGS to be $MKOCTFILE_DL_LDFLAGS]) | |
1358 AC_MSG_NOTICE([defining SONAME_FLAGS to be $SONAME_FLAGS]) | |
1359 AC_MSG_NOTICE([defining NO_OCT_FILE_STRIP to be $NO_OCT_FILE_STRIP]) | |
1360 AC_MSG_NOTICE([defining RLD_FLAG to be $RLD_FLAG]) | |
1361 AC_MSG_NOTICE([defining TEMPLATE_AR to be $TEMPLATE_AR]) | |
1362 AC_MSG_NOTICE([defining TEMPLATE_ARFLAGS to be $TEMPLATE_ARFLAGS]) | |
6137 | 1363 AC_MSG_NOTICE([defining CRUFT_DLL_DEFS to be $CRUFT_DLL_DEFS]) |
1364 AC_MSG_NOTICE([defining OCTAVE_DLL_DEFS to be $OCTAVE_DLL_DEFS]) | |
1365 AC_MSG_NOTICE([defining OCTINTERP_DLL_DEFS to be $OCTINTERP_DLL_DEFS]) | |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7789
diff
changeset
|
1366 AC_MSG_NOTICE([defining OCTGRAPHICS_DLL_DEFS to be $OCTGRAPHICS_DLL_DEFS]) |
5844 | 1367 AC_MSG_NOTICE([defining library_path_var to be $library_path_var]) |
2813 | 1368 AC_SUBST(FPICFLAG) |
1369 AC_SUBST(CPICFLAG) | |
1370 AC_SUBST(CXXPICFLAG) | |
1371 AC_SUBST(SHLEXT) | |
4102 | 1372 AC_SUBST(SHLLIB) |
1373 AC_SUBST(SHLBIN) | |
4126 | 1374 AC_SUBST(SHLEXT_VER) |
1375 AC_SUBST(SHLLIB_VER) | |
1376 AC_SUBST(SHLBIN_VER) | |
1377 AC_SUBST(SHLLINKEXT) | |
6051 | 1378 AC_SUBST(LIBPRE) |
2813 | 1379 AC_SUBST(SH_LD) |
1380 AC_SUBST(SH_LDFLAGS) | |
4759 | 1381 AC_SUBST(DL_LD) |
1382 AC_SUBST(DL_LDFLAGS) | |
1383 AC_SUBST(MKOCTFILE_DL_LDFLAGS) | |
3036 | 1384 AC_SUBST(SONAME_FLAGS) |
4199 | 1385 AC_SUBST(NO_OCT_FILE_STRIP) |
2813 | 1386 AC_SUBST(RLD_FLAG) |
3775 | 1387 AC_SUBST(TEMPLATE_AR) |
1388 AC_SUBST(TEMPLATE_ARFLAGS) | |
6141 | 1389 AC_SUBST(CRUFT_DLL_DEFS) |
1390 AC_SUBST(OCTAVE_DLL_DEFS) | |
1391 AC_SUBST(OCTINTERP_DLL_DEFS) | |
7825
13871b7de124
Import sources for OpenGL-based renderer.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
7789
diff
changeset
|
1392 AC_SUBST(OCTGRAPHICS_DLL_DEFS) |
4104 | 1393 AC_SUBST(library_path_var) |
4102 | 1394 |
2813 | 1395 ### special checks for odd OS specific things. |
1396 ### | |
1397 ### I am told that on some SCO systems, the only place to find some | |
1398 ### functions like gethostname and gettimeofday is in libsocket. | |
1399 | |
3887 | 1400 AC_CHECK_FUNCS(gethostname, [], [AC_CHECK_LIB(socket, gethostname)]) |
1401 AC_CHECK_FUNCS(getpwnam, [], [AC_CHECK_LIB(sun, getpwnam)]) | |
2813 | 1402 |
4388 | 1403 case "$canonical_host_type" in |
6704 | 1404 *-*-cygwin*) |
4388 | 1405 AC_CHECK_LIB(wsock32, gethostname) |
5451 | 1406 LIBS="$LIBS -lwsock32" |
4388 | 1407 ;; |
6704 | 1408 *-*-msdosmsvc* | *-*-mingw*) |
6091 | 1409 LIBS="$LIBS -lws2_32 -lkernel32" |
1410 ;; | |
4388 | 1411 esac |
1412 | |
4353 | 1413 ### Type stuff. |
1414 | |
1415 AC_TYPE_MODE_T | |
1416 AC_TYPE_OFF_T | |
1417 AC_TYPE_PID_T | |
1418 AC_TYPE_SIZE_T | |
1419 AC_TYPE_UID_T | |
1420 AC_CHECK_TYPES([dev_t, ino_t, nlink_t, nlink_t]) | |
1421 AC_CHECK_TYPES([long long int, unsigned long long int]) | |
7237 | 1422 AC_CHECK_TYPES([sigset_t, sig_atomic_t], , , [ |
1423 #if defined (HAVE_SYS_TYPES_H) | |
1424 #include <sys/types.h> | |
1425 #endif | |
1426 #include <signal.h>]) | |
4353 | 1427 |
2813 | 1428 ### How big are ints and how are they oriented? These could probably |
1429 ### be eliminated in favor of run-time checks. | |
1430 | |
3888 | 1431 AC_CHECK_SIZEOF(short) |
1432 AC_CHECK_SIZEOF(int) | |
1433 AC_CHECK_SIZEOF(long) | |
1434 AC_CHECK_SIZEOF(long long) | |
2813 | 1435 |
1436 ### Does the C compiler handle alloca() and const correctly? | |
1437 | |
4602 | 1438 AC_FUNC_ALLOCA |
2813 | 1439 AC_C_CONST |
1440 | |
4360 | 1441 ### See if we should use placement delete. |
1442 | |
1443 OCTAVE_PLACEMENT_DELETE | |
1444 | |
4366 | 1445 ### See if we can auto allocate variable sized arrays. |
1446 | |
1447 OCTAVE_DYNAMIC_AUTO_ARRAYS | |
1448 | |
8169
66bc6f9b4f72
rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8019
diff
changeset
|
1449 ### See if we can use fast integer arithmetics |
66bc6f9b4f72
rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8019
diff
changeset
|
1450 |
66bc6f9b4f72
rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8019
diff
changeset
|
1451 OCTAVE_FAST_INT_OPS |
66bc6f9b4f72
rewrite integer arithmetics and conversions
Jaroslav Hajek <highegg@gmail.com>
parents:
8019
diff
changeset
|
1452 |
8185
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
1453 ### Check for long double type (for 64-bit integers) |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
1454 |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
1455 AC_CHECK_SIZEOF(long double) |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
1456 |
869 | 1457 ### Checks for header files. |
1458 | |
832 | 1459 AC_HEADER_STDC |
1460 AC_HEADER_DIRENT | |
1377 | 1461 AC_HEADER_TIME |
1462 AC_HEADER_SYS_WAIT | |
2097 | 1463 |
4051 | 1464 ### C headers |
1465 | |
4067 | 1466 AC_CHECK_HEADERS(assert.h curses.h direct.h dlfcn.h fcntl.h float.h \ |
5990 | 1467 floatingpoint.h grp.h ieeefp.h inttypes.h limits.h locale.h memory.h nan.h \ |
7934 | 1468 ncurses.h poll.h pthread.h pwd.h stdint.h stdlib.h string.h sunmath.h sys/ioctl.h \ |
3308 | 1469 sys/param.h sys/poll.h sys/resource.h sys/select.h sys/stat.h \ |
6694 | 1470 sys/time.h sys/times.h sys/types.h sys/utsname.h sys/utime.h termcap.h \ |
1471 unistd.h utime.h varargs.h) | |
3887 | 1472 |
4051 | 1473 ### C++ headers |
1474 | |
1475 AC_LANG_PUSH(C++) | |
1476 AC_CHECK_HEADERS(sstream) | |
1477 AC_LANG_POP(C++) | |
1478 | |
3887 | 1479 have_termios_h=no |
1480 AC_CHECK_HEADERS($TERMIOS_H, have_termios_h=yes) | |
1481 AC_CHECK_HEADERS(termio.h, have_termio_h=yes, have_termio_h=no) | |
1482 AC_CHECK_HEADERS(sgtty.h, have_sgtty_h=yes, have_sgtty_h=no) | |
5451 | 1483 AC_CHECK_HEADERS(glob.h, have_glob_h=yes, have_glob_h=no) |
1484 AC_CHECK_HEADERS(fnmatch.h, have_fnmatch_h=yes, have_fnmatch_h=no) | |
4067 | 1485 AC_CHECK_HEADERS(conio.h, have_conio_h=yes, have_conio_h=no) |
3249 | 1486 |
3225 | 1487 ### I'm told that termios.h is broken on NeXT systems. |
1488 | |
1489 case "$canonical_host_type" in | |
1490 *-*-nextstep*) | |
3887 | 1491 if test "$have_termios_h" = yes; then |
3249 | 1492 AC_MSG_WARN([Ignoring termios.h on NeXT systems.]) |
3887 | 1493 have_termios_h=no |
3249 | 1494 fi |
3225 | 1495 ;; |
1496 esac | |
1497 | |
3887 | 1498 if test "$have_termios_h" = yes \ |
1499 || test "$have_termio_h" = yes \ | |
1500 || test "$have_sgtty_h" = yes; then | |
832 | 1501 true |
1502 else | |
4064 | 1503 AC_MSG_WARN([I couldn't find termios.h, termio.h, or sgtty.h!]) |
832 | 1504 fi |
869 | 1505 |
5451 | 1506 LIBGLOB= |
1507 AC_SUBST(LIBGLOB) | |
1508 if test "$have_fnmatch_h" = yes && test "$have_glob_h" = yes; then | |
1509 AC_CHECK_FUNCS(fnmatch, have_fnmatch=yes, [ | |
1510 AC_CHECK_LIB(glob, fnmatch, [have_fnmatch=yes; LIBGLOB=-lglob], | |
1511 have_fnmatch=no)]) | |
1512 AC_CHECK_FUNCS(glob, have_glob=yes, [ | |
1513 AC_CHECK_LIB(glob, glob, [have_glob=yes; LIBGLOB=-lglob], | |
1514 have_glob=no)]) | |
1515 | |
1516 if test "$have_fnmatch" != yes || test "$have_glob" != yes; then | |
1517 AC_MSG_ERROR([You are required to have fnmatch and glob]) | |
1518 fi | |
1519 else | |
1520 AC_MSG_ERROR([You are required to have fnmatch.h and glob.h]) | |
1521 fi | |
1522 | |
1788 | 1523 ### Checks for functions and variables. |
869 | 1524 |
7638
2df457529cfa
implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents:
7636
diff
changeset
|
1525 AC_CHECK_FUNCS(atexit basename bcopy bzero canonicalize_file_name \ |
8549 | 1526 chmod dup2 endgrent endpwent execvp expm1 expm1f fcntl fork fstat getcwd \ |
7638
2df457529cfa
implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents:
7636
diff
changeset
|
1527 getegid geteuid getgid getgrent getgrgid getgrnam getpgrp getpid \ |
2df457529cfa
implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents:
7636
diff
changeset
|
1528 getppid getpwent getpwuid gettimeofday getuid getwd _kbhit kill \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7683
diff
changeset
|
1529 lgamma lgammaf lgamma_r lgammaf_r link localtime_r log1p log1pf lstat \ |
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7683
diff
changeset
|
1530 memmove mkdir mkfifo mkstemp on_exit pipe poll putenv raise readlink \ |
8185
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
1531 realpath rename resolvepath rindex rmdir round roundl select setgrent setlocale \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7683
diff
changeset
|
1532 setpwent setvbuf sigaction siglongjmp sigpending sigprocmask sigsuspend \ |
7638
2df457529cfa
implement expm1 and log1p functions
Jaroslav Hajek <highegg@gmail.com>
parents:
7636
diff
changeset
|
1533 snprintf stat strcasecmp strdup strerror stricmp strncasecmp \ |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7683
diff
changeset
|
1534 strnicmp strptime strsignal symlink tempnam tgamma tgammaf trunc umask \ |
6694 | 1535 uname unlink usleep utime vfprintf vsprintf vsnprintf waitpid \ |
6829 | 1536 _chmod _snprintf x_utime _utime32) |
1300 | 1537 |
6094 | 1538 case "$canonical_host_type" in |
1539 *-*-msdosmsvc) | |
1540 ## The %T format specifier for strftime is reportedly broken, | |
1541 ## so use our version. We could use an actual configure test | |
1542 ## for this. | |
1543 ;; | |
1544 *) | |
1545 AC_CHECK_FUNCS(strftime) | |
1546 ;; | |
1547 esac | |
1548 | |
7058 | 1549 OCTAVE_STRPTIME_BROKEN |
1708 | 1550 OCTAVE_SMART_PUTENV |
1551 | |
6103 | 1552 case "$canonical_host_type" in |
6704 | 1553 *-*-msdosmsvc | *-*-mingw*) |
6103 | 1554 AC_MSG_CHECKING([for required _WIN32_WINNT]) |
1555 AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[ | |
1556 #include <windows.h> | |
1557 #if _WIN32_WINNT < 0x0403 | |
1558 #error "Wrong version" | |
1559 #endif]], []), | |
1560 AC_MSG_RESULT([none]), [ | |
1561 AC_DEFINE(_WIN32_WINNT, 0x0403, [Define to 0x0403 to access InitializeCriticalSectionAndSpinCount]) | |
1562 AC_MSG_RESULT([0x0403])]) | |
1563 AC_MSG_CHECKING([whether _USE_MATH_DEFINES needs to be defined]) | |
1564 AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[#include <math.h>]], | |
1565 [[int x = M_LN2;]]), | |
1566 AC_MSG_RESULT([no]), [ | |
1567 AC_DEFINE(_USE_MATH_DEFINES, 1, [Define if your system needs it to define math constants like M_LN2]) | |
1568 AC_MSG_RESULT([yes])]) | |
1569 ;; | |
1570 esac | |
1571 | |
4110 | 1572 ### Dynamic linking is now enabled only if we are building shared |
1573 ### libs and some API for dynamic linking is detected. | |
1574 | |
3705 | 1575 LD_CXX='$(CXX)' |
3232 | 1576 RDYNAMIC_FLAG= |
4110 | 1577 DL_API_MSG="" |
1578 dlopen_api=false | |
1579 shl_load_api=false | |
1580 loadlibrary_api=false | |
4163 | 1581 dyld_api=false |
4110 | 1582 |
4163 | 1583 if $SHARED_LIBS || $ENABLE_DYNAMIC_LINKING; then |
1584 | |
6087 | 1585 ## Check for dyld first since OS X can have a non-standard libdl |
4110 | 1586 |
5599 | 1587 AC_CHECK_HEADER(mach-o/dyld.h) |
5717 | 1588 if test "$ac_cv_header_mach_o_dyld_h" = yes; then |
4163 | 1589 dyld_api=true |
1590 else | |
4189 | 1591 AC_CHECK_LIB(dld, shl_load) |
1592 AC_CHECK_FUNCS(shl_load shl_findsym) | |
4201 | 1593 if test "$ac_cv_func_shl_load" = yes \ |
1594 && test "$ac_cv_func_shl_findsym" = yes; then | |
4189 | 1595 shl_load_api=true |
4110 | 1596 else |
4189 | 1597 AC_CHECK_LIB(wsock32, LoadLibrary) |
1598 AC_CHECK_FUNCS(LoadLibrary) | |
4201 | 1599 if test "$ac_cv_func_loadlibrary" = yes; then |
4189 | 1600 loadlibrary_api=true |
2063 | 1601 else |
4189 | 1602 AC_CHECK_LIB(dl, dlopen) |
1603 AC_CHECK_FUNCS(dlopen dlsym dlerror dlclose) | |
4201 | 1604 if test "$ac_cv_func_dlclose" = yes \ |
1605 && test "$ac_cv_func_dlerror" = yes \ | |
1606 && test "$ac_cv_func_dlopen" = yes \ | |
1607 && test "$ac_cv_func_dlsym" = yes; then | |
4189 | 1608 dlopen_api=true |
1609 else | |
4163 | 1610 case "$canonical_host_type" in |
1611 i[[3456]]86-*-sco3.2v5*) | |
1612 LD_CXX='LD_RUN_PATH=$LD_RUN_PATH:$(octlibdir) $(CXX)' | |
1613 dlopen_api=true | |
1614 ;; | |
1615 esac | |
1616 fi | |
2063 | 1617 fi |
4110 | 1618 fi |
1619 fi | |
1620 | |
5451 | 1621 ## autoconf test for LoadLibrary appears broken. Bypass for cygwin/mingw |
6286 | 1622 if $dlopen_api || $shl_load_api || $loadlibrary_api || $dyld_api; then |
1623 true | |
1624 else | |
5451 | 1625 case "$canonical_host_type" in |
6091 | 1626 *-*-cygwin* | *-*-mingw* | *-*-msdosmsvc) |
5451 | 1627 loadlibrary_api=true; |
1628 ;; | |
1629 esac | |
1630 fi | |
1631 | |
4110 | 1632 if $dlopen_api; then |
1633 DL_API_MSG="(dlopen)" | |
1634 AC_DEFINE(HAVE_DLOPEN_API, 1, [Define if your system has dlopen, dlsym, dlerror, and dlclose for dynamic linking]) | |
3958 | 1635 OCTAVE_CXX_FLAG(-rdynamic, [RDYNAMIC_FLAG=-rdynamic]) |
4110 | 1636 elif $shl_load_api; then |
1637 DL_API_MSG="(shl_load)" | |
1638 AC_DEFINE(HAVE_SHL_LOAD_API, 1, [Define if your system has shl_load and shl_findsym for dynamic linking]) | |
1639 elif $loadlibrary_api; then | |
1640 DL_API_MSG="(LoadLibrary)" | |
1641 AC_DEFINE(HAVE_LOADLIBRARY_API, 1, [Define if your system has LoadLibrary for dynamic linking]) | |
4163 | 1642 elif $dyld_api; then |
1643 DL_API_MSG="(dyld)" | |
1644 AC_DEFINE(HAVE_DYLD_API, 1, [Define if your system has dyld for dynamic linking]) | |
4110 | 1645 fi |
1646 | |
4163 | 1647 if $dlopen_api || $shl_load_api || $loadlibrary_api || $dyld_api; then |
4128 | 1648 ENABLE_DYNAMIC_LINKING=true |
1649 AC_DEFINE(ENABLE_DYNAMIC_LINKING, 1, [Define if using dynamic linking]) | |
1978 | 1650 fi |
4163 | 1651 fi |
1652 | |
1653 if $SHARED_LIBS; then | |
1654 LIBOCTINTERP=-loctinterp$SHLLINKEXT | |
1655 LIBOCTAVE=-loctave$SHLLINKEXT | |
1656 LIBCRUFT=-lcruft$SHLLINKEXT | |
1978 | 1657 else |
4110 | 1658 LIBOCTINTERP='$(TOPDIR)/src/liboctinterp.$(LIBEXT)' |
1659 LIBOCTAVE='$(TOPDIR)/liboctave/liboctave.$(LIBEXT)' | |
1660 LIBCRUFT='$(TOPDIR)/libcruft/libcruft.$(LIBEXT)' | |
1664 | 1661 fi |
4163 | 1662 |
4110 | 1663 AC_SUBST(LD_CXX) |
3232 | 1664 AC_SUBST(RDYNAMIC_FLAG) |
4128 | 1665 AC_SUBST(ENABLE_DYNAMIC_LINKING) |
4110 | 1666 AC_SUBST(LIBOCTINTERP) |
1667 AC_SUBST(LIBOCTAVE) | |
1668 AC_SUBST(LIBCRUFT) | |
1901 | 1669 |
1300 | 1670 ### There is more than one possible prototype for gettimeofday. See |
2782 | 1671 ### which one (if any) appears in sys/time.h. These tests are from |
1672 ### Emacs 19. | |
1300 | 1673 |
2782 | 1674 AC_MSG_CHECKING(for struct timeval) |
5844 | 1675 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef TIME_WITH_SYS_TIME |
2782 | 1676 #include <sys/time.h> |
1677 #include <time.h> | |
1678 #else | |
1679 #ifdef HAVE_SYS_TIME_H | |
1680 #include <sys/time.h> | |
1681 #else | |
1682 #include <time.h> | |
1683 #endif | |
5844 | 1684 #endif]], [[static struct timeval x; x.tv_sec = x.tv_usec;]])], |
2782 | 1685 [AC_MSG_RESULT(yes) |
1686 HAVE_TIMEVAL=yes | |
3887 | 1687 AC_DEFINE(HAVE_TIMEVAL, 1, [Define if struct timeval is defined.])], |
2782 | 1688 [AC_MSG_RESULT(no) |
1689 HAVE_TIMEVAL=no]) | |
1690 | |
1691 if test "x$HAVE_TIMEVAL" = xyes; then | |
1692 AC_MSG_CHECKING(whether gettimeofday can't accept two arguments) | |
5842 | 1693 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifdef TIME_WITH_SYS_TIME |
2782 | 1694 #include <sys/time.h> |
1695 #include <time.h> | |
1696 #else | |
1697 #ifdef HAVE_SYS_TIME_H | |
1698 #include <sys/time.h> | |
1699 #else | |
1700 #include <time.h> | |
1701 #endif | |
5842 | 1702 #endif]], [[struct timeval time; |
1703 struct timezone dummy; | |
1704 gettimeofday (&time, &dummy);]])], | |
1705 [AC_MSG_RESULT(no)], | |
2782 | 1706 [AC_MSG_RESULT(yes) |
5842 | 1707 AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, |
1708 [Define if your system has a single-arg prototype for gettimeofday.])]) | |
2782 | 1709 fi |
869 | 1710 |
832 | 1711 dnl Would like to get rid of this cruft, and just have |
1712 dnl | |
1713 dnl AC_CHECK_FUNCS(finite isnan isinf) | |
1714 dnl | |
1715 dnl instead, but that used to fail on some systems... | |
369 | 1716 dnl |
832 | 1717 dnl Also just using AC_CHECK_FUNCS doesn't seem to work to find isinf |
1718 dnl and isnan on Linux systems, so we use AC_CHECK_FUNC, and if that | |
369 | 1719 dnl fails, we try again by including math.h and invoking the function |
1720 dnl with an argument. | |
869 | 1721 |
2508 | 1722 ### I am told that Inf and NaN don't work on m68k HP sytems, and that |
1723 ### on SCO systems, isnan and isinf don't work, but they can be | |
1724 ### replaced by something that does. | |
956 | 1725 |
1726 case "$canonical_host_type" in | |
1384 | 1727 m68k-hp-hpux*) |
956 | 1728 ;; |
2508 | 1729 *-*-sco*) |
5844 | 1730 AC_MSG_NOTICE([defining SCO to be 1]) |
3887 | 1731 AC_DEFINE(SCO, 1, [Define if using an SCO system.]) |
5844 | 1732 AC_MSG_NOTICE([forcing HAVE_ISINF for SCO]) |
3887 | 1733 AC_DEFINE(HAVE_ISINF, 1, [Define if you have isinf().]) |
5844 | 1734 AC_MSG_NOTICE([forcing HAVE_ISNAN for SCO]) |
3887 | 1735 AC_DEFINE(HAVE_ISNAN, 1, [Define if you have isnan().]) |
2508 | 1736 ;; |
956 | 1737 *) |
4349 | 1738 AC_CHECK_FUNCS(finite isnan isinf copysign signbit) |
6061 | 1739 AC_CHECK_FUNCS(_finite _isnan _copysign) |
5098 | 1740 AC_CHECK_DECLS(signbit, , , [#include <math.h>]) |
956 | 1741 ;; |
1742 esac | |
1743 | |
1076 | 1744 ### Check for nonstandard but common math functions that we need. |
1745 | |
7789
82be108cc558
First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents:
7683
diff
changeset
|
1746 AC_CHECK_FUNCS(acosh acoshf asinh asinhf atanh atanhf erf erff erfc erfcf exp2 exp2f log2 log2f) |
7914
e998e81224b5
Various compilation fixes for MSVC.
John W. Eaton <jwe@octave.org>
parents:
7905
diff
changeset
|
1747 AC_CHECK_FUNCS(hypotf _hypotf) |
3130 | 1748 |
869 | 1749 ### Checks for OS specific cruft. |
1750 | |
3887 | 1751 AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, struct stat.st_rdev]) |
1752 | |
405 | 1753 AC_STRUCT_TM |
1186 | 1754 AC_STRUCT_TIMEZONE |
1388 | 1755 AC_FUNC_CLOSEDIR_VOID |
1225 | 1756 |
3892 | 1757 AC_CHECK_MEMBERS(struct group.gr_passwd) |
2548 | 1758 |
4067 | 1759 # mkdir takes a single argument on some systems. |
1760 OCTAVE_MKDIR_TAKES_ONE_ARG | |
1761 | |
3887 | 1762 octave_found_termlib=no |
2592 | 1763 for termlib in ncurses curses termcap terminfo termlib; do |
2034 | 1764 AC_CHECK_LIB(${termlib}, tputs, [TERMLIBS="${TERMLIBS} -l${termlib}"]) |
405 | 1765 case "${TERMLIBS}" in |
1766 *-l${termlib}*) | |
3822 | 1767 LIBS="$TERMLIBS $LIBS" |
4102 | 1768 AC_SUBST(TERMLIBS) |
3887 | 1769 octave_found_termlib=yes |
405 | 1770 break |
1771 ;; | |
1772 esac | |
1773 done | |
869 | 1774 |
3887 | 1775 if test "$octave_found_termlib" = no; then |
1776 warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, o\ | |
1777 r -ltermlib!" | |
3105 | 1778 AC_MSG_WARN($warn_termlibs) |
2488 | 1779 fi |
1780 | |
3822 | 1781 OCTAVE_ENABLE_READLINE |
1782 | |
832 | 1783 AC_MSG_CHECKING([for struct exception in math.h]) |
5842 | 1784 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]], |
1785 [[struct exception *x; x->type; x->name;]])], | |
1786 [AC_MSG_RESULT(yes) | |
1787 AC_DEFINE(EXCEPTION_IN_MATH, 1, | |
1788 [Define if your math.h declares struct exception for matherr().])], | |
1789 [AC_MSG_RESULT(no)]) | |
869 | 1790 |
1791 ### Signal stuff. | |
1792 | |
834 | 1793 AC_TYPE_SIGNAL |
5844 | 1794 AC_CHECK_DECLS([sys_siglist], [], [], |
1795 [#include <signal.h> | |
1796 /* NetBSD declares sys_siglist in unistd.h. */ | |
1797 #if HAVE_UNISTD_H | |
1798 # include <unistd.h> | |
1799 #endif | |
1800 ]) | |
2470 | 1801 OCTAVE_SIGNAL_CHECK |
1802 OCTAVE_REINSTALL_SIGHANDLERS | |
6098 | 1803 if test "$ac_cv_type_signal" = "void"; then |
1804 AC_DEFINE(RETSIGTYPE_IS_VOID, 1, [Define if this if RETSIGTYPE is defined to be void. Needed because preprocessor comparisons to void fail on some systems.]) | |
1805 fi | |
869 | 1806 |
2633 | 1807 ### A system dependent kluge or two. |
1808 | |
2035 | 1809 AC_CHECK_FUNCS(getrusage times) |
2427 | 1810 case "$canonical_host_type" in |
3971 | 1811 *-*-cygwin*) |
3887 | 1812 AC_DEFINE(RUSAGE_TIMES_ONLY, 1, [Define if your struct rusage only has time information.]) |
2427 | 1813 ;; |
1814 esac | |
1815 | |
869 | 1816 ### Checks for other programs used for building, testing, installing, |
1817 ### and running Octave. | |
1818 | |
4544 | 1819 AC_PROG_AWK |
7244 | 1820 OCTAVE_PROG_FIND |
4084 | 1821 OCTAVE_PROG_SED |
5465 | 1822 OCTAVE_PROG_PERL |
5496 | 1823 OCTAVE_PROG_PYTHON |
4084 | 1824 |
3729 | 1825 OCTAVE_PROG_FLEX |
1826 OCTAVE_PROG_BISON | |
869 | 1827 |
1722 | 1828 AC_PROG_LN_S |
1829 | |
405 | 1830 AC_PROG_INSTALL |
2642 | 1831 INSTALL_SCRIPT='${INSTALL}' |
1832 AC_SUBST(INSTALL_SCRIPT) | |
869 | 1833 |
5468 | 1834 OCTAVE_PROG_DESKTOP_FILE_INSTALL |
1835 | |
3130 | 1836 OCTAVE_PROG_GNUPLOT |
1837 OCTAVE_PROG_PAGER | |
3673 | 1838 OCTAVE_PROG_GPERF |
3130 | 1839 |
5934 | 1840 OCTAVE_PROG_GHOSTSCRIPT |
1841 OCTAVE_PROG_MAKEINFO | |
1842 OCTAVE_PROG_TEXI2DVI | |
1843 OCTAVE_PROG_TEXI2PDF | |
1844 | |
2032 | 1845 ### Even though we include config.h, we need to have the preprocessor |
1846 ### defines available in a variable for the octave-bug script. Use | |
1847 ### UGLY_DEFS for that. | |
1848 | |
1849 AC_OUTPUT_MAKE_DEFS | |
3956 | 1850 |
6957 | 1851 ### We have to insert extra levels of backslash quoting here so that |
1852 ### the right thing ends up in oct-conf.h. | |
6959 | 1853 UGLY_DEFS=`echo $DEFS | $SED 's,\\",\\\\\\\\\\\\\\\\\\",g'` |
5844 | 1854 AC_MSG_NOTICE([defining UGLY_DEFS to be $UGLY_DEFS]) |
2032 | 1855 AC_SUBST(UGLY_DEFS) |
1856 | |
4645 | 1857 ### Maybe add -Wall, -W, and -Wshadow to compiler flags now that we're |
4587 | 1858 ### done feature testing. |
869 | 1859 |
3131 | 1860 if test -z "$EXTERN_CFLAGS"; then |
4626 | 1861 OCTAVE_CC_FLAG(-Wall, [ |
1862 WARN_CFLAGS="$WARN_CFLAGS -Wall"; | |
1863 AC_MSG_RESULT([adding -Wall to WARN_CFLAGS])]) | |
4645 | 1864 OCTAVE_CC_FLAG(-W, [ |
1865 WARN_CFLAGS="$WARN_CFLAGS -W"; | |
1866 AC_MSG_RESULT([adding -W to WARN_CFLAGS])]) | |
4626 | 1867 OCTAVE_CC_FLAG(-Wshadow, [ |
1868 WARN_CFLAGS="$WARN_CFLAGS -Wshadow"; | |
1869 AC_MSG_RESULT([adding -Wshadow to WARN_CFLAGS])]) | |
405 | 1870 fi |
3131 | 1871 |
1872 if test -z "$EXTERN_CXXFLAGS"; then | |
4626 | 1873 OCTAVE_CXX_FLAG(-Wall, [ |
1874 WARN_CXXFLAGS="$WARN_CXXFLAGS -Wall"; | |
1875 AC_MSG_RESULT([adding -Wall to WARN_CXXFLAGS])]) | |
4645 | 1876 OCTAVE_CXX_FLAG(-W, [ |
1877 WARN_CXXFLAGS="$WARN_CXXFLAGS -W"; | |
1878 AC_MSG_RESULT([adding -W to WARN_CXXFLAGS])]) | |
4626 | 1879 OCTAVE_CXX_FLAG(-Wshadow, [ |
1880 WARN_CXXFLAGS="$WARN_CXXFLAGS -Wshadow"; | |
1881 AC_MSG_RESULT([adding -Wshadow to WARN_CXXFLAGS])]) | |
5759 | 1882 OCTAVE_CXX_FLAG(-Wold-style-cast, [ |
1883 WARN_CXXFLAGS="$WARN_CXXFLAGS -Wold-style-cast"; | |
1884 AC_MSG_RESULT([adding -Wold-style-cast to WARN_CXXFLAGS])]) | |
405 | 1885 fi |
869 | 1886 |
4971 | 1887 GCC_PICKY_FLAGS="-Wcast-align -Wcast-qual -Wmissing-prototypes \ |
1888 -Wpointer-arith -Wstrict-prototypes -Wwrite-strings" | |
2813 | 1889 |
5194 | 1890 GXX_PICKY_FLAGS="-Wcast-align -Wcast-qual -Wpointer-arith \ |
1891 -Wwrite-strings -Weffc++ -Wenum-clash" | |
2813 | 1892 |
1893 AC_ARG_ENABLE(picky-flags, | |
5844 | 1894 [AS_HELP_STRING([--enable-picky-flags], |
1895 [add extra warning options to CFLAGS, CXXFLAGS, FFLAGS])], | |
3131 | 1896 [if test "$enableval" = no; then |
1897 true | |
2813 | 1898 elif test "$enableval" = yes; then |
3131 | 1899 if test -z "$EXTERN_CFLAGS"; then |
1900 for flag in $GCC_PICKY_FLAGS; do | |
4626 | 1901 OCTAVE_CC_FLAG($flag, [ |
1902 WARN_CFLAGS="$WARN_CFLAGS $flag"; | |
1903 AC_MSG_RESULT([adding $flag to WARN_CFLAGS])]) | |
3131 | 1904 done |
2813 | 1905 fi |
3131 | 1906 if test -z "$EXTERN_CXXFLAGS"; then |
1907 for flag in $GXX_PICKY_FLAGS; do | |
4626 | 1908 OCTAVE_CXX_FLAG($flag, [ |
1909 WARN_CXXFLAGS="$WARN_CXXFLAGS $flag"; | |
1910 AC_MSG_RESULT([adding $flag to WARN_CXXFLAGS])]) | |
3131 | 1911 done |
2813 | 1912 fi |
1913 fi], []) | |
1914 | |
4626 | 1915 AC_SUBST(WARN_CFLAGS) |
1916 AC_SUBST(WARN_CXXFLAGS) | |
1917 | |
1146 | 1918 ### Run configure in subdirectories. |
1919 | |
1304 | 1920 export CC |
1921 export CXX | |
1922 export F77 | |
1923 | |
4378 | 1924 AC_CONFIG_SUBDIRS(scripts) |
3887 | 1925 |
3923 | 1926 ### Some things to add to the bottom of config.h. |
1927 | |
1928 AH_BOTTOM([ | |
1929 #if defined (__GNUC__) | |
5389 | 1930 #define GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__)) |
3923 | 1931 #define GCC_ATTR_NORETURN __attribute__ ((__noreturn__)) |
1932 #define GCC_ATTR_UNUSED __attribute__ ((__unused__)) | |
1933 #else | |
5389 | 1934 #define GCC_ATTR_DEPRECATED |
3923 | 1935 #define GCC_ATTR_NORETURN |
1936 #define GCC_ATTR_UNUSED | |
1937 #endif | |
1938 | |
1939 #define X_CAST(T, E) (T) (E) | |
1940 | |
5854 | 1941 #if defined (CXX_BROKEN_REINTERPRET_CAST) |
1942 #define FCN_PTR_CAST(T, E) (T) (E) | |
1943 #else | |
1944 #define FCN_PTR_CAST(T, E) reinterpret_cast<T> (E) | |
1945 #endif | |
1946 | |
3923 | 1947 #if defined(HAVE_F2C) && !defined(F77_FUNC) |
1948 # define F77_FUNC(x,X) x ## _ | |
1949 # define F77_FUNC_(x,X) x ## __ | |
1950 #endif | |
1951 | |
1952 #if !defined(HAVE_DEV_T) | |
4064 | 1953 typedef short dev_t; |
3923 | 1954 #endif |
1955 | |
1956 #if !defined(HAVE_INO_T) | |
4064 | 1957 typedef unsigned long ino_t; |
3923 | 1958 #endif |
1959 | |
1960 #if !defined(HAVE_NLINK_T) | |
4064 | 1961 typedef short nlink_t; |
3923 | 1962 #endif |
1963 | |
1964 #if !defined(HAVE_SIGSET_T) | |
4064 | 1965 typedef int sigset_t; |
3923 | 1966 #endif |
4101 | 1967 |
4180 | 1968 #if !defined(HAVE_SIG_ATOMIC_T) |
1969 typedef int sig_atomic_t; | |
1970 #endif | |
1971 | |
6122 | 1972 #if defined (_MSC_VER) |
1973 #define __WIN32__ | |
6276 | 1974 #define WIN32 |
6122 | 1975 /* missing parameters in macros */ |
1976 #pragma warning (disable: 4003) | |
1977 /* missing implementations in template instantiation */ | |
1978 #pragma warning (disable: 4996) | |
1979 /* deprecated function names (FIXME?) */ | |
1980 #pragma warning (disable: 4661) | |
1981 #endif | |
1982 | |
4377 | 1983 #if defined (__WIN32__) && ! defined (__CYGWIN__) |
4101 | 1984 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 |
6049 | 1985 #elif defined (__CYGWIN__) |
4377 | 1986 #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 |
1987 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1 | |
6049 | 1988 #else |
1989 #define OCTAVE_HAVE_POSIX_FILESYSTEM 1 | |
4101 | 1990 #endif |
1991 | |
1992 /* Define if we expect to have <windows.h>, Sleep, etc. */ | |
4102 | 1993 #if defined (__WIN32__) && ! defined (__CYGWIN__) |
4101 | 1994 #define OCTAVE_USE_WINDOWS_API 1 |
1995 #endif | |
4153 | 1996 |
8577
ab61b47d3435
configure.in (AH_BOTTOM): Also check __MACH__ when defining OCTAVE_USE_OS_X_API
John W. Eaton <jwe@octave.org>
parents:
8573
diff
changeset
|
1997 #if defined (__APPLE__) && defined (__MACH__) |
8573
da61d0f7ce0b
configure.in (AH_BOTTOM): define OCTAVE_USE_OS_X_API if __APPLE__ is defined
John W. Eaton <jwe@octave.org>
parents:
8562
diff
changeset
|
1998 #define OCTAVE_USE_OS_X_API 1 |
da61d0f7ce0b
configure.in (AH_BOTTOM): define OCTAVE_USE_OS_X_API if __APPLE__ is defined
John W. Eaton <jwe@octave.org>
parents:
8562
diff
changeset
|
1999 #endif |
da61d0f7ce0b
configure.in (AH_BOTTOM): define OCTAVE_USE_OS_X_API if __APPLE__ is defined
John W. Eaton <jwe@octave.org>
parents:
8562
diff
changeset
|
2000 |
4180 | 2001 /* sigsetjmp is a macro, not a function. */ |
2002 #if defined (sigsetjmp) && defined (HAVE_SIGLONGJMP) | |
2003 #define OCTAVE_HAVE_SIG_JUMP | |
2004 #endif | |
4249 | 2005 |
4278 | 2006 #if defined (__DECCXX) |
2007 #define __USE_STD_IOSTREAM | |
2008 #endif | |
4552 | 2009 |
2010 #if defined (_UNICOS) | |
2011 #define F77_USES_CRAY_CALLING_CONVENTION | |
2012 #endif | |
2013 | |
2014 #if 0 | |
2015 #define F77_USES_VISUAL_FORTRAN_CALLING_CONVENTION | |
2016 #endif | |
5275 | 2017 |
5297 | 2018 #ifdef USE_64_BIT_IDX_T |
2019 #define SIZEOF_OCTAVE_IDX_TYPE 8 | |
2020 #else | |
2021 #define SIZEOF_OCTAVE_IDX_TYPE SIZEOF_INT | |
2022 #endif | |
2023 | |
8185
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2024 // To be able to use long doubles for 64-bit mixed arithmetics, we need them at |
8333 | 2025 // least 80 bits wide and we need roundl declared in math.h. |
2026 // FIXME -- maybe substitute this by a more precise check in the future. | |
8185
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2027 #if (SIZEOF_LONG_DOUBLE >= 10) && defined (HAVE_ROUNDL) |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2028 #define OCTAVE_INT_USE_LONG_DOUBLE |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2029 #endif |
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
2030 |
7067 | 2031 #define OCTAVE_EMPTY_CPP_ARG |
2032 | |
6121 | 2033 #include "oct-dlldefs.h" |
5275 | 2034 #include "oct-types.h" |
3923 | 2035 ]) |
2036 | |
869 | 2037 ### Do the substitutions in all the Makefiles. |
2038 | |
7253 | 2039 AC_CONFIG_FILES([Makefile octMakefile Makeconf test/Makefile |
2040 doc/Makefile doc/faq/Makefile doc/interpreter/Makefile | |
2041 doc/liboctave/Makefile doc/refcard/Makefile emacs/Makefile | |
8256
dba0037e6602
Import new texinfo.tex allowing @ in directory name. Update OOP example class location
David Bateman <dbateman@free.fr>
parents:
8221
diff
changeset
|
2042 examples/Makefile examples/@polynomial/Makefile liboctave/Makefile |
8221
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8202
diff
changeset
|
2043 liboctave/oct-types.h src/Makefile src/mxarray.h libcruft/Makefile |
06094fa570a3
Add some documentation for the OOP code of Octave
David Bateman <dbateman@free.fr>
parents:
8202
diff
changeset
|
2044 libcruft/Makerules libcruft/amos/Makefile libcruft/blas/Makefile |
7253 | 2045 libcruft/daspk/Makefile libcruft/dasrt/Makefile |
2046 libcruft/dassl/Makefile libcruft/fftpack/Makefile | |
8306
43795cf108d0
initial implementation of fsolve
Jaroslav Hajek <highegg@gmail.com>
parents:
8269
diff
changeset
|
2047 libcruft/lapack/Makefile |
7253 | 2048 libcruft/misc/Makefile libcruft/odepack/Makefile |
2049 libcruft/ordered-qz/Makefile libcruft/quadpack/Makefile | |
2050 libcruft/ranlib/Makefile libcruft/slatec-fn/Makefile | |
2051 libcruft/slatec-err/Makefile libcruft/villad/Makefile | |
7874
e3a502930e2a
eliminate src/graphics subdirectory
John W. Eaton <jwe@octave.org>
parents:
7863
diff
changeset
|
2052 libcruft/blas-xtra/Makefile libcruft/lapack-xtra/Makefile]) |
3887 | 2053 AC_OUTPUT |
1225 | 2054 |
3887 | 2055 AC_CONFIG_COMMANDS([default-1],[[chmod +x install-octave]],[[]]) |
3176 | 2056 |
1225 | 2057 ### Print a summary so that important information isn't missed. |
2058 | |
2059 if test -z "$F77"; then | |
2060 FORT="$F2C $F2CFLAGS" | |
2061 else | |
2610 | 2062 FORT="$F77 $FFLAGS" |
1225 | 2063 fi |
2064 | |
5844 | 2065 AC_MSG_NOTICE([ |
1225 | 2066 |
2067 Octave is now configured for $canonical_host_type | |
2068 | |
1664 | 2069 Source directory: $srcdir |
2070 Installation prefix: $prefix | |
4626 | 2071 C compiler: $CC $XTRA_CFLAGS $WARN_CFLAGS $CFLAGS |
2072 C++ compiler: $CXX $XTRA_CXXFLAGS $WARN_CXXFLAGS $CXXFLAGS | |
1664 | 2073 Fortran compiler: $FORT |
2074 Fortran libraries: $FLIBS | |
3820 | 2075 BLAS libraries: $BLAS_LIBS |
3827 | 2076 FFTW libraries: $FFTW_LIBS |
5235 | 2077 GLPK libraries: $GLPK_LIBS |
5203 | 2078 UMFPACK libraries: $UMFPACK_LIBS |
6024 | 2079 AMD libraries: $AMD_LIBS |
2080 CAMD libraries: $CAMD_LIBS | |
5451 | 2081 COLAMD libraries: $COLAMD_LIBS |
2082 CCOLAMD libraries: $CCOLAMD_LIBS | |
2083 CHOLMOD libraries: $CHOLMOD_LIBS | |
5610 | 2084 CXSPARSE libraries: $CXSPARSE_LIBS |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
2085 ARPACK libraries: $ARPACK_LIBS |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
2086 QRUPDATE libraries: $QRUPDATE_LIBS |
3820 | 2087 HDF5 libraries: $HDF5_LIBS |
6043 | 2088 CURL libraries: $CURL_LIBS |
6024 | 2089 REGEX libraries: $REGEX_LIBS |
6829 | 2090 QHULL libraries: $QHULL_LIBS |
8560
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
2091 OPENGL libraries: $OPENGL_LIBS |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
2092 FLTK backend libs: $GRAPHICS_LIBS |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
2093 X11 include flags: $X11_INCFLAGS |
5cc594679cdc
get display characteristics from system
John W. Eaton <jwe@octave.org>
parents:
8549
diff
changeset
|
2094 X11 libraries: $X11_LIBS |
3822 | 2095 LIBS: $LIBS |
1664 | 2096 Default pager: $DEFAULT_PAGER |
7361 | 2097 gnuplot: $GNUPLOT |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
2098 Magick config: $MAGICK_CONFIG |
1664 | 2099 |
4110 | 2100 Do internal array bounds checking: $BOUNDS_CHECKING |
2101 Build static libraries: $STATIC_LIBS | |
2102 Build shared libraries: $SHARED_LIBS | |
4128 | 2103 Dynamic Linking: $ENABLE_DYNAMIC_LINKING $DL_API_MSG |
4110 | 2104 Include support for GNU readline: $USE_READLINE |
5275 | 2105 64-bit array dims and indexing: $USE_64_BIT_IDX_T |
1225 | 2106 ]) |
3105 | 2107 |
2108 warn_msg_printed=false | |
2109 | |
4469 | 2110 if $ENABLE_DYNAMIC_LINKING; then |
2111 if $SHARED_LIBS; then | |
2112 true | |
2113 else | |
2114 AC_MSG_WARN([You used --enable-dl but not --enable-shared.]) | |
2115 AC_MSG_WARN([Are you sure that is what you want to do?]) | |
2116 warn_msg_printed=true | |
2117 fi | |
2118 fi | |
2119 | |
3105 | 2120 if test -n "$gxx_only"; then |
2121 AC_MSG_WARN($gxx_only) | |
2122 warn_msg_printed=true | |
2123 fi | |
2124 | |
2125 if test -n "$warn_gcc_version"; then | |
2126 AC_MSG_WARN($warn_gcc_version) | |
2127 warn_msg_printed=true | |
2128 fi | |
2129 | |
2130 if test -n "$warn_gcc_only"; then | |
2131 AC_MSG_WARN($warn_gcc_only) | |
2132 warn_msg_printed=true | |
2133 fi | |
2134 | |
3825 | 2135 if test -n "$warn_readline"; then |
2136 AC_MSG_WARN($warn_readline) | |
2137 warn_msg_printed=true | |
2138 fi | |
2139 | |
3105 | 2140 if test -n "$warn_termlibs"; then |
2141 AC_MSG_WARN($warn_termlibs) | |
2142 warn_msg_printed=true | |
2143 fi | |
2144 | |
3673 | 2145 if test -n "$warn_gperf"; then |
2146 AC_MSG_WARN($warn_gperf) | |
2147 warn_msg_printed=true | |
2148 fi | |
2149 | |
3105 | 2150 if test -n "$warn_flex"; then |
2151 AC_MSG_WARN($warn_flex) | |
2152 warn_msg_printed=true | |
2153 fi | |
2154 | |
2155 if test -n "$warn_bison"; then | |
2156 AC_MSG_WARN($warn_bison) | |
2157 warn_msg_printed=true | |
2158 fi | |
2159 | |
2160 if test -n "$warn_less"; then | |
2161 AC_MSG_WARN($warn_less) | |
2162 warn_msg_printed=true | |
2163 fi | |
2164 | |
7683
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
2165 if test -n "$warn_blas_f77_incompatible"; then |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
2166 AC_MSG_WARN($warn_blas_f77_incompatible) |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
2167 warn_msg_printed=true |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
2168 fi |
8136cb19fb7a
implement BLAS-F77 call compatibility check
Jaroslav Hajek <highegg@gmail.com>
parents:
7638
diff
changeset
|
2169 |
5203 | 2170 if test -n "$warn_umfpack"; then |
2171 AC_MSG_WARN($warn_umfpack) | |
2172 warn_msg_printed=true | |
2173 fi | |
2174 | |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
2175 if test -n "$warn_qrupdate"; then |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
2176 AC_MSG_WARN($warn_qrupdate) |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
2177 warn_msg_printed=true |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
2178 fi |
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
2179 |
7619 | 2180 if test -n "$warn_amd"; then |
2181 AC_MSG_WARN($warn_amd) | |
2182 warn_msg_printed=true | |
2183 fi | |
2184 | |
5451 | 2185 if test -n "$warn_colamd"; then |
2186 AC_MSG_WARN($warn_colamd) | |
2187 warn_msg_printed=true | |
2188 fi | |
2189 | |
2190 if test -n "$warn_ccolamd"; then | |
2191 AC_MSG_WARN($warn_ccolamd) | |
2192 warn_msg_printed=true | |
2193 fi | |
2194 | |
2195 if test -n "$warn_cholmod"; then | |
2196 AC_MSG_WARN($warn_cholmod) | |
2197 warn_msg_printed=true | |
2198 fi | |
2199 | |
5703 | 2200 if test -n "$warn_cxsparse"; then |
2201 AC_MSG_WARN($warn_cxsparse) | |
2202 warn_msg_printed=true | |
2203 fi | |
2204 | |
8417
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
2205 if test -n "$warn_arpack"; then |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
2206 AC_MSG_WARN($warn_arpack) |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
2207 warn_msg_printed=true |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
2208 fi |
654bcfb937bf
Add the eigs and svds functions
David Bateman <dbateman@free.fr>
parents:
8377
diff
changeset
|
2209 |
6335 | 2210 if test -n "$warn_curl"; then |
2211 AC_MSG_WARN($warn_curl) | |
2212 warn_msg_printed=true | |
2213 fi | |
2214 | |
6133 | 2215 if test -n "$warn_fftw"; then |
2216 AC_MSG_WARN($warn_fftw) | |
2217 warn_msg_printed=true | |
2218 fi | |
2219 | |
2220 if test -n "$warn_glpk"; then | |
2221 AC_MSG_WARN($warn_glpk) | |
2222 warn_msg_printed=true | |
2223 fi | |
2224 | |
7926
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
2225 if test -n "$warn_magick"; then |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
2226 AC_MSG_WARN($warn_magick) |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
2227 warn_msg_printed=true |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
2228 fi |
d74f996e005d
__magick_read__.cc: configuration and style fixes
John W. Eaton <jwe@octave.org>
parents:
7921
diff
changeset
|
2229 |
5203 | 2230 if test -n "$warn_hdf5"; then |
2231 AC_MSG_WARN($warn_hdf5) | |
2232 warn_msg_printed=true | |
2233 fi | |
2234 | |
6133 | 2235 if test -n "$warn_regex"; then |
2236 AC_MSG_WARN($warn_regex) | |
2237 warn_msg_printed=true | |
2238 fi | |
2239 | |
6025 | 2240 if test -n "$warn_pcre"; then |
2241 AC_MSG_WARN($warn_pcre) | |
2242 warn_msg_printed=true | |
2243 fi | |
2244 | |
6829 | 2245 if test -n "$warn_qhull"; then |
2246 AC_MSG_WARN($warn_qhull) | |
2247 warn_msg_printed=true | |
2248 fi | |
2249 | |
5270 | 2250 if test -n "$warn_zlib"; then |
2251 AC_MSG_WARN($warn_zlib) | |
2252 warn_msg_printed=true | |
2253 fi | |
2254 | |
5934 | 2255 if test -n "$warn_ghostscript"; then |
2256 AC_MSG_WARN($warn_ghostscript) | |
2257 warn_msg_printed=true | |
2258 fi | |
2259 | |
2260 if test -n "$warn_makeinfo"; then | |
2261 AC_MSG_WARN($warn_makeinfo) | |
2262 warn_msg_printed=true | |
2263 fi | |
2264 | |
2265 if test -n "$warn_texi2dvi"; then | |
2266 AC_MSG_WARN($warn_texi2dvi) | |
2267 warn_msg_printed=true | |
2268 fi | |
2269 | |
2270 if test -n "$warn_texi2pdf"; then | |
2271 AC_MSG_WARN($warn_texi2pdf) | |
2272 warn_msg_printed=true | |
2273 fi | |
2274 | |
5275 | 2275 if test -n "$warn_64_bit"; then |
2276 AC_MSG_WARN($warn_64_bit) | |
2277 warn_msg_printed=true | |
2278 fi | |
2279 | |
3105 | 2280 if test -n "$warn_gnuplot"; then |
2281 | |
2282 ## If you change this text, be sure to also change the corresponding | |
2283 ## set of warnings above. | |
2284 | |
6161 | 2285 AC_MSG_WARN([]) |
3105 | 2286 AC_MSG_WARN([I didn't find gnuplot. It isn't necessary to have gnuplot]) |
2287 AC_MSG_WARN([installed, but you won't be able to use any of Octave's]) | |
2288 AC_MSG_WARN([plotting commands without it.]) | |
2289 AC_MSG_WARN([]) | |
2290 AC_MSG_WARN([If gnuplot is installed but it isn't in your path, you can]) | |
2291 AC_MSG_WARN([tell Octave where to find it by typing the command]) | |
2292 AC_MSG_WARN([]) | |
2293 AC_MSG_WARN([gnuplot_binary = "/full/path/to/gnuplot/binary"]) | |
2294 AC_MSG_WARN([]) | |
2295 AC_MSG_WARN([at the Octave prompt.]) | |
6161 | 2296 AC_MSG_WARN([]) |
3105 | 2297 warn_msg_printed=true |
2298 fi | |
2299 | |
5857 | 2300 if $USE_64_BIT_IDX_T; then |
6161 | 2301 AC_MSG_WARN([]) |
5857 | 2302 AC_MSG_WARN([You used the EXPERIMENTAL --enable-64 option.]) |
2303 AC_MSG_WARN([Are you sure that is what you want to do?]) | |
2304 AC_MSG_WARN([]) | |
2305 AC_MSG_WARN([You must ensure that the Fortran compiler generates]) | |
2306 AC_MSG_WARN([code with 8 byte signed INTEGER values, and that your]) | |
2307 AC_MSG_WARN([BLAS and LAPACK libraries are compiled to use 8 byte]) | |
2308 AC_MSG_WARN([signed integers for array indexing.]) | |
6161 | 2309 AC_MSG_WARN([]) |
5857 | 2310 warn_msg_printed=true |
3105 | 2311 fi |
2312 | |
7944
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2313 native_graphics=true |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2314 if test -n "$warn_freetype"; then |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2315 AC_MSG_WARN("$warn_freetype") |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2316 native_graphics=false |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2317 warn_msg_printed=true |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2318 fi |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2319 |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2320 if test -n "$warn_ftgl"; then |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2321 AC_MSG_WARN("$warn_ftgl") |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2322 native_graphics=false |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2323 warn_msg_printed=true |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2324 fi |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2325 |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2326 if test -n "$warn_fltk_config"; then |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2327 AC_MSG_WARN("$warn_fltk_config") |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2328 native_graphics=false |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2329 warn_msg_printed=true |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2330 fi |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2331 |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2332 if test -n "$warn_fltk_opengl"; then |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2333 AC_MSG_WARN("$warn_fltk_opengl") |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2334 native_graphics=false |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2335 warn_msg_printed=true |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2336 fi |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2337 |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2338 if $native_graphics; then |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2339 true; |
c2449e91f50a
configure.in: fix FTGL test to handle either FTGL/ftgl.h or ftgl.h
John W. Eaton <jwe@octave.org>
parents:
7937
diff
changeset
|
2340 else |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2341 AC_MSG_WARN([]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2342 AC_MSG_WARN([I didn't find the necessary libraries to compile native]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2343 AC_MSG_WARN([graphics. It isn't necessary to have native graphics]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2344 AC_MSG_WARN([but you will have to use gnuplot or you won't be able]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2345 AC_MSG_WARN([to use any of Octave's plotting commands]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2346 AC_MSG_WARN([]) |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2347 warn_msg_printed=true |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2348 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2349 |
6191 | 2350 if $warn_msg_printed; then |
6161 | 2351 AC_MSG_NOTICE([ |
2352 | |
2353 NOTE: libraries may be skipped if a library is not found OR | |
2354 if the library on your system is missing required features. | |
2355 ]) | |
2356 fi | |
2357 | |
3105 | 2358 ### End of configure. |