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