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